**** BEGIN LOGGING AT Thu Nov 07 02:59:58 2013 Nov 07 03:00:16 Drill a tiny hole for pressure relief in any nonvented light. Nov 07 03:00:19 i dont remember how well it distributed the heat though. some of the p60 style drop-ins seem to transmit the head right to the battery Nov 07 03:00:21 Especially multicell Nov 07 03:00:40 i won't use multicell any more Nov 07 03:00:58 unless its AA NiMH Nov 07 03:01:19 has anyone ever implemented first-time tutorials within their apps? Nov 07 03:03:24 SpeedEvil crap that poor dude is in bandages Nov 07 03:03:46 yeah - there are actual almost lethal ones posted elsewhere too. Nov 07 03:04:29 thermal runaway is like 120'f right ? thats ambient here in AZ summer :) Nov 07 03:05:07 but i also toss lithiums after a while; used to use a spreadsheet Nov 07 03:05:23 i think they are more likely to blow up after they have been through many cycles Nov 07 03:05:46 deep charge / deep discharge cycles Nov 07 03:06:14 it would be cool if there was a way on android, or even my mac, to write an app that kept the Li battery between 80% / 40% charged Nov 07 03:06:33 seems to be the safe area ;) Nov 07 03:06:44 g00s_: possible on Android, actually Nov 07 03:06:57 but deep in the custom kernel area Nov 07 03:07:05 ah Nov 07 03:07:32 i would have thought it would be baked into some circuit or firmware Nov 07 03:08:02 CC/CV circuit Nov 07 03:08:17 phones tend to not have a separate "Embedded Controller" like laptops tend to have, and instead you have a power management and control chip which is controlled by firmware (there are even drivers in kernel to do it that are included in official kernel repo) Nov 07 03:08:33 cool , nice to know Nov 07 03:11:13 SpeedEvil which 18650s do you use? (i'm guessing somehow that you use 18650s :) Nov 07 03:18:14 SpeedEvil still there ? looks like you disconnected Nov 07 03:18:37 Hi, i've been android programming now for a little over 6 months and i really dislike most of the android IDE out there (i have used eclipse and android studio) and I'm just wondering what other developers think and the problems they encounter Nov 07 03:19:10 well, eclipse is eclipse, AS is a preview Nov 07 03:19:25 i actually like eclipse, but the ADT sucks Nov 07 03:20:05 coreybain3 whenever its slow, asking eclipse vs intellij is likely to start a shitstorm ;) Nov 07 03:20:17 especially when ron_frown is here XD Nov 07 03:20:21 yeah the reason i ask is, that i was considering putting together a small team to build a IDE (using either eclipse or intellij) that address some of these issues Nov 07 03:20:57 if vim / emacs was more java smart; i'd just be using that Nov 07 03:21:16 i don't want to compare the two no lol i want to see if there is a need, like if it not just me that wanted a IDE made by us specifically to make our development faster and easier Nov 07 03:21:41 coreybain3 i think it would be a lot of work :( Nov 07 03:22:06 g00s_: I did, Nov 07 03:22:21 SpeedEvil do you have a pref for one of those 18650s ? Nov 07 03:22:40 g00s_: Basically - CPF is a good source. Nov 07 03:22:46 ;) Nov 07 03:23:00 g00s_: Thinkpads do this right. Nov 07 03:23:10 I set mine to not charge above 85% usually Nov 07 03:23:22 The battery is not as good in the first 8 months or so Nov 07 03:23:36 After that, it's better, and stays good enough for much longer Nov 07 03:23:47 its nice to hear they still have that option Nov 07 03:23:57 fancy Nov 07 03:24:08 i thought our shitty dells had that in the bios options Nov 07 03:24:18 or they were HPs Nov 07 03:24:23 can't remember Nov 07 03:25:01 g00s: yeah i know, but i was thinking if there was a need and the team would start small i could gain interest for other developers and investors. The good thing is we would not start from scratch as there are good code bases out there Nov 07 03:25:44 coreybain3: you want to create an android ide based off intellij...? Nov 07 03:25:47 coreybain3 i think once AS has its kinks out, lots of people will use that Nov 07 03:26:02 making a profit from dev tools is rough business Nov 07 03:26:24 https://github.com/JakeWharton/ActionBarSherlock/issues/752 Nov 07 03:26:34 is this fixed? how come I am still seeing it from my crash report Nov 07 03:27:24 meetoman maybe minSdk=15 will fix it ;) Nov 07 03:27:32 lol Nov 07 03:27:36 yeah g00s that was i was thinking and seand i know android studio is based of intellij but how i have used it, it has nice feature but doesn't resolve core issues Nov 07 03:27:50 I dont have a lot of crashes, but I do have some and its the top on my list right now Nov 07 03:27:50 making similar to using eclipse Nov 07 03:27:55 coreybain3: core issues like what Nov 07 03:27:58 coreybain3 what core issues are unresolved ? Nov 07 03:30:30 the main feature i'm missing from any android ide; is to declare the navigation and information architecture for all form factors in a more visual way; i get lost in all my res/ stuff Nov 07 03:30:58 so like embedding metadata in like iosched does, plus some wiring up Nov 07 03:32:03 but seems like i'm intellectually week here; nobody else has this issue (or that i hear talking about it) Nov 07 03:33:01 seand g00s_ while i can't speak fully for studio as it is incomplete at this point, one thing that gets me whenever i by a new machine is the setup of the IDE, the process of doing it not hard but should not be necessary (correct me if wrong) and the moving of projects between different IDE's Nov 07 03:33:16 but anyhow, do you have issues with the IDE or plugin? maybe you could send patches for one or either Nov 07 03:33:20 by no means am i saying its a bad environment Nov 07 03:33:30 i use it as much as i can Nov 07 03:33:38 but i think there is a better way Nov 07 03:33:40 the moving of projects between different IDEs? Nov 07 03:33:44 why would you do that Nov 07 03:35:11 i tried to get my friend to use studio for a while he hated the import of project both between eclipse and studio and different instances of eclipse we were running, we knew the work around just thought it wasted time Nov 07 03:35:41 hmm Nov 07 03:36:11 updated to the latest SherlockAction from 4.1 Nov 07 03:36:16 lets see if that fixes the problem Nov 07 03:36:44 not from what I'm gathering here I'm assuming no one like the state of androids development tools? Nov 07 03:37:04 **from what I'm gathering here.... Nov 07 03:39:47 coreybain3 you can get an idea of what people like / dislike about the tools reading the Google+ tools thing; and google groups adt-dev Nov 07 03:39:58 i think most complaints these days are about bugs Nov 07 03:40:20 people using the gradle stuff, running into bugs, etc Nov 07 03:40:32 but Google says for production, not to use Gradle ;) Nov 07 03:40:41 we're impatient bunch though :D Nov 07 03:41:17 cool thanks g00s_ it seems funny we have gotten use to eclipse that while we dislike it we still use it because there nothing else Nov 07 03:41:39 coreybain3 you can use plain IntelliJ Nov 07 03:41:47 +1 on IJ :) Nov 07 03:42:34 coreybain3: are you planning on selling this IDE? Nov 07 03:42:46 so you have 3 options; eclipse; intellik; AS … it depends on your team, deadlines, etc what is best for you Nov 07 03:43:17 actually 4; you can use Intellij EAPs also Nov 07 03:43:33 yeah but even that has problems there doesn't seem to be a clean solution, for instance permissions must be hard-coded i think it would be an awesome little feature if the IDE new you needed this permission and put it in (ask/telling you first) Nov 07 03:43:55 does anyone know how to start a HTTP connection between the PC and the android device via ADB? Nov 07 03:44:15 yea that would be cool Nov 07 03:44:32 seand: you talking to me? Nov 07 03:44:38 no Nov 07 03:44:58 seand: havent gotten to that point yet just floating the idea and seeing whether developers wanted/needed it, but probably not for individual but to big business Nov 07 03:45:54 i have written down heaps of ideas like that and it just struck me this morning, to ask the community what they though and if they like it do something about it Nov 07 03:46:17 coreybain3 maybe you could create a plugin for IntelliJ or eclipse ? Nov 07 03:46:40 i mean, these things are huge … writing a new IDE is .. insane ;) Nov 07 03:47:20 its an idea i also thought about but its not just the small things in these IDE it the whole interface too, they where never designed for android development and it shows Nov 07 03:47:46 btw, does anyone know where to find Android devs? Specifically for OS customization Nov 07 03:47:55 yeah that why i thought about starting with an exciting source pool and working from there Nov 07 03:47:56 paid position of course Nov 07 03:48:29 coreybain3 sounds like a huge undertaking Nov 07 03:49:35 seand g00s_ wat about reskinning intellij and writing these plugins for it, then bundling it as one package Nov 07 03:53:00 I have an Intent, how do I get a Context? Nov 07 03:59:29 i guess the basic nutshell of my question are what are the problems you guys have having with your smartphones and development everyday/week Nov 07 04:01:56 i'd like AS to have an sqlite browser Nov 07 04:02:03 ^ Nov 07 04:02:05 that would be nice Nov 07 04:02:28 i always thought that was lame; user builds not having sqlite3 tool and having to adb pull it or some crap ;) Nov 07 04:03:18 yeah i have to use some third party sqlite browser and it's garbage Nov 07 04:03:24 if there's any bug in the sql it crashes Nov 07 04:03:31 when evaluating sql Nov 07 04:05:43 motodevstudio has had it since the beginning Nov 07 04:06:13 I don't understand why you guys need all that Nov 07 04:06:19 sqlite3 file.db Nov 07 04:06:27 SELECT * FROM foo; Nov 07 04:06:51 poutine: graphical displays for EXPLAIN and ANALYZE would be nice Nov 07 04:06:57 you have to put sqlite3 into /data/local/tmp and chmod it to 755; hopefully the one you find works on your phone Nov 07 04:07:11 unless you're rooting, screw that Nov 07 04:07:15 or using a dev build Nov 07 04:07:41 poutine: use the command line? that sounds horrible Nov 07 04:07:48 p_l, it's like 6-10 rows of data usually, I've been using SQL databases for over 12 years and have never needed a GUI for it, and it's not like I shun GUIs, I just fail to see what benefit you think you're getting out of it Nov 07 04:08:03 the sqlite3 for android doesn't even have readline compiled in ; it sucks Nov 07 04:08:24 poutine: well, I learned to use EXPLAIN through the displays in PgAdmin III, which was great in learning how to structure my queries etc. Nov 07 04:08:47 poutine: it was simply easy to navigate the structures Nov 07 04:09:40 how would using the command line work for tweaking a long select query? Nov 07 04:10:17 maybe I'm a masochist, I look at pgadmin's screenshots, and it just looks worse than typing out things, also there's usually some wacky security restrictions between me and the DB Nov 07 04:10:33 seand, home, end, hold control and hit the right arrow to move by word Nov 07 04:10:45 poutine: for queries in pgadmin I actually typed them out Nov 07 04:11:03 oh sorry, i meant how would it work well Nov 07 04:11:05 sometimes I'll type a query in vim and write it out to mysql Nov 07 04:11:20 poutine: I used pgadmin mainly for schema creation (where i could explore the options) and for visualization of EXPLAIN output for my hand-written query Nov 07 04:13:38 lol i didn't mean to start a war but i understand where your coming from and the sqlite browser was something that i have heard a few people ask about Nov 07 04:14:04 poutine: there must be something that just annoys you that you have to do when your developing for android? Nov 07 04:16:53 coreybain3, yeah, I'd like more money Nov 07 04:17:04 lol Nov 07 04:17:16 same as all of us Nov 07 04:21:18 why is there more money in iOS development if 90% of smartphones are running android Nov 07 04:21:42 because companies are stupid, lazy and shortsighted Nov 07 04:24:31 look at the majority of android apps and the layout of the play store, they're trying to fix it but its a massive problem Nov 07 04:25:12 the layout looks better than the apple store Nov 07 04:25:20 plus the face that the majority of android phones are just that phones not used for apps but for making calls only Nov 07 04:25:50 the majority of android phones aren't running the good play store Nov 07 04:26:24 i personally like it better but i see the cheap android phones everyday and they did can't run it Nov 07 04:33:41 just bouncing ideas off here (hope that alright) but I've been working on a "computer in your pocket" idea which would basically be android 4.4 modded to allow for a desktop launcher while being used as a phone, and a desktop launcher while connected to a external display. The core would be based of cyanogenmod Nov 07 04:33:41 **mobile launcher while used as a phone** Nov 07 04:35:21 isn't that what ubuntu phone is ? Nov 07 04:40:23 similar but ubuntu phone is trying to move a desktop based os onto a phone then using there new mobile os (+android) to skin the phones. but i thought what to average people use computers for limit work, gaming and internet. so i thought android is a great mobile platform working perfect on arm now. just push the display to an external monitor when connected and you have the best of both worlds Nov 07 04:41:19 perfect for families, uni students, china, and then as the hardware gets better the OS can mature, plus average people know how to use android most people haven't used ubuntu Nov 07 04:41:35 ASUS has done similar with their padfone too. the phone plugs into a tablet and the layout switches to be appropriate. And Motorola had their WebTop laptop docks that ran X11 and Firefox. Nov 07 04:41:35 and ubuntu touch is so different without any apps that there not interested Nov 07 04:42:27 ugh, feedly looks like shit on 4.4 Nov 07 04:42:42 i highly recommend Press Nov 07 04:42:47 feedly looks like shit on anything, i hate it Nov 07 04:42:54 have a look at my website and tell me wat you think, even if you think its crazy lol (i know its difficult) http://www.spectrul.com/ Nov 07 04:42:59 I'm using newsblur for now... Nov 07 04:43:03 i generally like feedly Nov 07 04:43:11 i don't like feedly either rather use flipboard Nov 07 04:43:56 but the drawing is all fucked up on 4.4 Nov 07 04:45:49 coreybain3: i don't understand Nov 07 04:46:05 coreybain3: i'm reading all this marketing BS and i just want to know what the hell it does Nov 07 04:46:28 pfn: take a screenie! :) Nov 07 04:47:28 okay now i see, "Spectrul allows developers to build one app, whether it be an browser to watch video or an amazing game to play with friends, and have it run as in mobile, desktop, or console modes." Nov 07 04:48:25 that just doesn't make any sense to me Nov 07 04:49:07 it was an idea a friend and i were working on, the concept is an average user should have to by multiple machine just there phone a wireless receiver with wifi-ac and bluetooth work allow the phone to connect with a monitor, keyboard and mouse and not they can use it like a computer and get really work done, walk away and the work goes with them Nov 07 04:49:17 no sync and the issues involved with it Nov 07 04:49:53 but they really can't, because batteries in smartphones suck ass Nov 07 04:50:35 Actually, Gmail misbehaves in a similar fashion on this 4.4 rom, must be a problem with the rom then Nov 07 04:50:38 that and that a shit tone of data to pass around to make it reliable Nov 07 04:52:12 coreybain3: wouldn't this idea be more suited for a tablet? how are you going to have room for an hdmi output and 2 usb inputs on a phone? Nov 07 04:52:37 yeah that is why i put it on the back burner updating it occasionally, but the IDE is something i really wanted to do because (the way i see it) its the massive problem with android Nov 07 04:52:47 seand: the way i read it was done wireless Nov 07 04:52:56 oh Nov 07 04:53:55 nvm seand it was an idea that i thought id bring up here just to pick public opinion but as i said the IDE is something i really thing need working on Nov 07 04:55:20 coreybain3: i think it is do able it's getting the desktop monitor to redraw with out a huge lage and transmitting all that data in a timely manner Nov 07 04:56:29 coreybain3: there is an app that does that, but it uses the usb cable to trasfer data Nov 07 04:56:43 so there is no battery issue there Nov 07 04:56:50 and it sux Nov 07 04:56:56 but it does work Nov 07 04:57:03 lol what was it? Nov 07 04:57:39 coreybain3: how did you create that website? Nov 07 04:57:43 coreybain3: hold on gotta find it , i uninstalled it about 8 monts ago Nov 07 04:57:52 i also thought about wireless charging while using desktop mode, place it down on a receiver and it charges while projecting Nov 07 04:58:39 I've used joomla since i was a kid and thats what i chose to use for the website why? Nov 07 04:59:20 coreybain3: i was just curious because it seemed pretty mature. has a blog and forums and everything Nov 07 04:59:34 coreybain3: no it was the other direction, you could remotly controll android from desktop Nov 07 05:00:09 i want to control spotify from my phone Nov 07 05:00:12 using my voice Nov 07 05:00:15 but the desktop would still have to draw what was on your device Nov 07 05:00:16 someone make it happen Nov 07 05:00:53 lol google now for spotify Nov 07 05:01:12 night all Nov 07 05:02:39 actually spotify has google now integration Nov 07 05:02:49 i meant spotify app on my PC Nov 07 05:03:05 just be like "play hanson on PC" Nov 07 05:03:30 yeah the specs of these devices now are becoming also the same as average household desktop so and the face that both smartphones and computers really haven't evolved in years (computer really are the same as in 2004, minus specs and add-on features, and the same for phones since 2007) Nov 07 05:05:07 coreybain3: but your idea is based off the premise that users have to buy multiple devices Nov 07 05:05:17 that's not a big deal for most people because they're pretty cheap Nov 07 05:05:51 most households have at least one PC Nov 07 05:06:36 coreybain3: look at share keyboard & mouse (beta) Nov 07 05:11:48 chat failed Nov 07 05:13:57 i was going to say that, that was the reason i was pivoting to the IDE, this is something that has continued to bother me (i have used both visual studio and Xcode) and while i like android development these products are much more polished and just work better, i have having to do the ground work like permissions when i want to ship an app Nov 07 05:15:25 yeah, gonna revert to the 4.3 rom for my gnex Nov 07 05:16:59 computers are the same as in 2004? you might as well say they've been the same since the keyboard and mouse were invented. Nov 07 05:17:31 i think that's what he's saying. their mode of interaction hasn't changed Nov 07 05:17:53 yeah, since keyboard and mouse... Nov 07 05:19:32 i really hope google glass fails hard Nov 07 05:20:16 pfn: lol as i said it was a cool idea in theory. seand: in its current style it will i can't see people going around with glass on there heads all day Nov 07 05:23:20 although as far as wearable technology goes, i see oculus rift going places Nov 07 05:23:34 i want to think of a cool use for that Nov 07 05:23:47 but i'm so bad with ideas Nov 07 05:23:58 what's the opposite of an ideas man. that's me Nov 07 05:24:26 I think they're called "managers" Nov 07 05:28:30 dude what if you could use google glass to race your own ghost Nov 07 05:28:39 that would be pretty awesome Nov 07 05:29:17 as long as not drive lol Nov 07 05:29:41 lol Nov 07 05:30:04 that would also be awesome. why don't we have windshields with full HUDs yet Nov 07 05:38:57 TIL about setHasOptionsMenu() in a Fragment Nov 07 06:39:54 Hello! I created an authenticator with a sync adapter but it does not show under my "Accounts" in the main Settings menu. Any idea what is missing? Nov 07 06:57:51 uh, i forgot: gson or jackson? this is for a config file; speed is not important but flexibility / deserialization is Nov 07 07:00:52 ? Nov 07 07:02:04 squ i forgot which is better on android; gson or jackson :| Nov 07 07:02:32 am I a weirdo because I just use the built-in org.json stuff? Nov 07 07:03:13 :) Nov 07 07:04:28 um, isn't that just like stream / tree parser :) Nov 07 07:04:53 i'd like to deserialize into custom types Nov 07 07:05:02 ok so is there a way of detecting if an action view is closed or opened in the actionbar? Nov 07 07:05:24 g00s, you could use case classes .. oh wait you are using java :) Nov 07 07:06:37 JakeWharton do you have a preference between jackson or gson ? Nov 07 07:06:43 Gson Nov 07 07:06:53 thx Nov 07 07:08:14 JakeWharton, i am using actionbarsherlock is there a way to detect when action views are visible? Nov 07 07:08:27 just ignore the question is if at all stupid :) Nov 07 07:08:54 hmm Nov 07 07:09:36 onAttachedToWindow? Nov 07 07:09:45 otherwise, probably not. never used one, to be honest Nov 07 07:10:21 cool thanks i will try that, using it for a search bar and want to add a header view and remove it again when its closed Nov 07 07:14:24 Leeds, yes, complete weirdo Nov 07 07:15:00 I use gson out of familiarity, but jackson is allegedly faster Nov 07 07:15:24 they both provide the same end result and have similar features Nov 07 07:18:32 lemonxah, and even with case classes, you still need something for serialization Nov 07 07:43:42 I want to copy some text from Adobe reader and paste it into memo keeping the source formatting.. Like line breaks, etc Nov 07 07:44:20 But when I paste it, it becomes garbled loosing linebreaks Nov 07 07:44:43 How can I keep source formatting Nov 07 07:45:07 Any special apps available Nov 07 07:46:56 screen shot Nov 07 07:47:43 :) Nov 07 07:48:36 How to take screens hot of a part of page in Adobe reader Nov 07 07:48:58 snipping tool in windows Nov 07 07:49:27 In Android? Nov 07 07:49:48 I am using Android tablet Nov 07 07:50:07 sonda: you're writing a pdf app? Nov 07 07:50:32 anyone happen to know of a good app that does some phone monitoring and alerting? basically i want an sms (on my personal phone) when another phone's battery or data connectivity is low. Nov 07 07:50:53 No.. I am just using Adobe reader on Android tablet Nov 07 07:51:15 sonda: this channel is for app development though Nov 07 07:51:24 mandric: if there is none, let me know Nov 07 07:51:27 But can't figure a way to copy paste with source formatting intact Nov 07 07:51:37 I am looking for ideas which have audience Nov 07 07:51:39 Looney ;) Nov 07 07:52:08 sonda: this is not the right place for user questions Nov 07 07:52:32 Then where should I ask Nov 07 07:52:44 #android Nov 07 07:52:46 Any channel u know Nov 07 07:53:00 OK thanks Nov 07 07:53:01 the answer is "you probably can't do what you want to do", but you should ask there, not here Nov 07 08:14:29 Im kind of new to maven, we have two projects. a Android Tablet and Phone Project. The Tablet is deep into development already and has some reusable stuff Nov 07 08:14:34 is there anyway I can set up the phone pom.xml to reference the tablet without touching the tablet poms Nov 07 08:14:42 I want to be able to reuse stuff from tablet project for me and two team members Nov 07 08:14:46 ? Nov 07 08:23:18 i have the WIERDEST issue :/ i have a layout that looks fine in the design view but when its added to the listview one of the textviews just dies Nov 07 08:24:09 http://pastebin.com/C5ni3ZmV Nov 07 08:24:38 the @+id/invite_count_text disappears when its added to the listview Nov 07 08:24:43 and i have NO idea why Nov 07 08:25:31 huh Nov 07 08:25:44 yes :( drives me mad Nov 07 08:26:00 i add that layout as a headerView Nov 07 08:26:24 but for some reason the invite_count_text textview is not showing Nov 07 08:26:57 looks to me, invite_action should take up the entire row height and the other textview gets laid out above it, out of sight Nov 07 08:27:53 but invite_action is layout_height="wrap_content" Nov 07 08:29:23 if i look at this in the preview on AS it looks perfect :/ Nov 07 08:31:16 pfn let me show you what it looks like on the phone Nov 07 08:31:42 that's because the preview isn't limiting the height probably Nov 07 08:32:05 i will send a preview with bounds on Nov 07 08:34:48 pfn, http://i.imgur.com/UDBqCeq.png Nov 07 08:35:19 it has the same layout layout as the contacts accept for the icon Nov 07 08:37:31 I'm trying to develop a small game and on Android performance is an issue. So I want to see the influence of my latest features on that preformance, but as the FPS is capped on 60 FPS this is rather difficult. Is there a way to remove this cap in the development stage? Nov 07 08:40:02 don't think so. Better to trace your code instead on the bad passes... Nov 07 08:41:15 I prefer having it unlocked and see if the FPS drops when implementing new features Nov 07 08:41:46 then all of a sudden notice the FPS doesn't get to 60 anymore -- which one of those 10 new features you've added is the main bottleneck? Nov 07 08:42:26 well, tracing gives better information about such things, because you can see how much time you spend in various calls... Nov 07 08:43:46 True; let us keep it on that way. Nov 07 08:47:09 driving me nuts :/ Nov 07 08:51:48 Hi to all Nov 07 08:51:55 Small question, where can i change inside the framework.jar, that ethernet connection is a valid connection to get android route traffic through it? Nov 07 08:53:03 hi all Nov 07 09:14:16 lemonxah, no idea what is what text, but looks like you have images and stuff in there, and the height of one of the textfield is the entire height... so there you go Nov 07 09:33:42 must sleep Nov 07 09:34:38 if anyone has an hcidump binary working on android, pm me a link :D Nov 07 09:34:48 standalone toolchain not working Nov 07 09:35:05 busybox (non root) not working. (but i am rooted) Nov 07 09:35:16 need to run on nexus 4 only. Nov 07 09:35:18 gnite Nov 07 09:35:50 Hi, I am dealing with photos, I have a combination of: rotate-scale-compress. which order is better for performance? and is the quality loss negligeable if scale-compress is done before rotating? Nov 07 09:36:14 elye, for performance, scaling ASAP is the best Nov 07 09:36:22 since then all other filters work on less pixels Nov 07 09:36:33 elye, are you rotating for 90 degree steps or something in between? Nov 07 09:36:46 Mavrik, yes 90 degrees Nov 07 09:37:02 for 90 degrees do scale - rotate - compress Nov 07 09:37:14 since rotating 90 degrees doesn't cause a quality loss Nov 07 09:37:54 okay, thnx alot Nov 07 09:47:23 Unless the image is JPEG Nov 07 09:50:40 pduin, how can image be JPEG before compressing it? ;) Nov 07 09:51:11 source: jpeg file -> decompress to bitmap -> recompress to jpeg Nov 07 09:51:16 results in quality loss Nov 07 09:52:21 I think there are options for lossless jpeg rotation, but I'm not sure they are available in Android. Nov 07 09:53:16 which wasn't really the question. Nov 07 09:54:07 I just want you to notice me! Nov 07 09:54:24 ;_; Nov 07 09:54:33 * Mavrik hugs kakazza. Nov 07 09:54:41 \(^∀^)メ(^∀^)ノ Nov 07 09:54:48 yeah, it's possible to do rotation and integer factor scaling of JPEGs without recompressing Nov 07 09:57:27 well, if you're working with jpeg directly, you can just read/write the file data Nov 07 09:57:35 since it's not a part of any image manipulation library, generally Nov 07 09:57:41 usually part of jpeg libraries Nov 07 09:58:35 I have a sqlite database, when i log the result i get the data, but i am not getting the data displayed in the activity(front end) … what could be the problem ? Nov 07 10:00:02 http://pastebin.com/RbjGahpe Nov 07 10:00:09 this is my code after db function.... Nov 07 10:03:05 hi guys Nov 07 10:04:06 textView breaks the line in android based on special characters like brackets { . How can i forbit android to break line starting from bracket ? Nov 07 10:08:59 Guys, it happens only in emulator and not in device ….. crazy … help me out Nov 07 10:13:26 friends, there is no error… emulator doesn't have support for the language i am working on…. is there anything i can overcome? Nov 07 10:13:40 If I change the minimumHeight of a view, how do I get the layout be recomputed (in the superviews)? Nov 07 10:14:21 I've tried the obvious refreshLayout (both on the view and on the root view), but it didn't work. Nov 07 11:06:46 setBackground() is not available in GB, and setBackgroundDrawable is deprecated. This one sounds funny, do they really expect us to put an if there to change a background? Nov 07 11:07:13 hi, i have a question about renderscript. I want to use it alongside a gles 2.0 app, how much would that decrease performance of renderscript? e.g. can RS still utilize the GPU, even though i'm using opengl to render in the main thread of my app Nov 07 11:38:11 entity^, android UI is rendered by OpenGL in any case Nov 07 11:40:03 Mavrik: so it shouln't matter? nice, thanks Nov 07 11:40:53 entity^, honestly I don't know 100%... up until 4.4, Nexus 10 was the only device with GPU acceleration support for RS Nov 07 11:43:39 oh Nov 07 11:43:48 well that means i can't use it, not at all Nov 07 12:38:52 hi i have a numb question, how can i send push notification to chrome on android? i am not asking how can i do, i just ask is this posible? Nov 07 12:39:17 hi, where should I put lock files on Android? /data/local/tmp? Nov 07 12:39:39 I am trying to port our project, QtSerialPort on to Android, and our operation depends on lock file management, i.e. it is not optional as of now. Nov 07 12:40:00 we use the same folders what lockdev uses on unix, but those folders are not available on Android due to the sandboxing. Nov 07 12:40:11 e.g. /var/tmp, or /var/lock, or /etc/lock Nov 07 12:40:23 what can we use as an alternative if any to lock the port when opened, and released when closed? Nov 07 12:40:44 I read this a few days ago, https://groups.google.com/forum/#!msg/Android-ndk/u_JadDj9uBA/7T3pzriQPpIJ and that is why I thought about /data/local/tmp Nov 07 12:43:12 selam, I think you can't do that yet Nov 07 12:45:06 i found a extension for chrome browser for pc, google develop this extension i guess, my main problem i use pc more speed than phone so i like the search things on pc and i need to send phone for sharing people with whatsapp i guess i can do that with that extension Nov 07 12:53:43 need some help with android ui design and ux? Nov 07 12:56:48 if anybody can tell me how to create awesome looking apps, i would be grateful Nov 07 12:56:49 greatful* Nov 07 12:56:58 lol Nov 07 13:00:27 sorry, timed out Nov 07 13:06:50 ughlol: look at http://androidniceties.tumblr.com/ Nov 07 13:07:47 CallumTaylor: taking a look! Nov 07 13:13:52 CallumTaylor: circa looks absolutely fantastic. You just made me all the more jealous. Any idea how to create apps with interfaces like that? Nov 07 13:14:38 creating the layouts is straight forward, the hard part is getting the design in the first place Nov 07 13:15:57 CallumTaylor: i have a query. I dont think im supposed to use just Eclipse right? Nov 07 13:16:16 for development you can use just eclipse Nov 07 13:16:17 Im currently reading about the various cross-platform application development frameworks like phonegap Nov 07 13:16:23 don't use phonegap Nov 07 13:16:27 no? Nov 07 13:16:30 no Nov 07 13:16:31 any other framework? Nov 07 13:16:34 and why not? :) Nov 07 13:16:44 because phone gap uses web views and is terrible Nov 07 13:17:11 I see.. Nov 07 13:17:32 you'll never had a good app no matter how amazing you might be at js/html if you use web views Nov 07 13:18:46 true Nov 07 13:19:01 is there any good framework that you can suggest? for designing my app? Nov 07 13:19:43 nope, i do everything using xml layouts as part of the android frame work Nov 07 13:19:56 wow Nov 07 13:20:23 are you telling me, we can create apps that look like - http://24.media.tumblr.com/194e7536a0dfdb1da595f483d7e237bd/tumblr_mup0glzdIV1r2wjwko1_1280.png using just xml layouts? Nov 07 13:20:31 yes Nov 07 13:21:05 I need to learn how to do some actual design Nov 07 13:21:16 All i can see is a dialog activity or fragment, and the layout consisting of a relative layout, couple linear layouts, a custom horizontal scroll view with pagination (or view pager with fragments) Nov 07 13:21:21 Not just trying to build stuff using xml sand and super glue Nov 07 13:21:21 CallumTaylor: but how? Are there online resources to learn the same? Nov 07 13:21:40 CallumTaylor: but what about the button design? And the clean look and feel? Nov 07 13:21:45 the structure is like html, you have different blocks that do different things Nov 07 13:21:53 the button design is just a button with a custom background iamge Nov 07 13:21:59 s/iamge/image Nov 07 13:22:38 http://developer.android.com/guide/topics/ui/declaring-layout.html Nov 07 13:23:47 okay.. taking a look.. Nov 07 13:24:02 obviously the stuff in the android niceties blog is very advance, but it is doable Nov 07 13:28:06 CallumTaylor: I pmd you. I forgot to ask, may I? :) Nov 07 13:28:32 um sure Nov 07 13:28:35 Someone give me an idea for an app that doesn't require a webserver Nov 07 13:28:57 web server on your phone Nov 07 13:29:02 apache for your phone Nov 07 13:29:09 web socket server on your phone Nov 07 13:32:21 DarkSlay3r: A program that you can point your phone/tablet at a numeric 7 segment display, or a flashing light that flashes to indicate things, and it will log the values over time. Nov 07 13:32:35 a rape alarm Nov 07 13:32:39 Ideally you can define several displays to log at once. Nov 07 13:32:50 why Android block 3rd party apps from changing "Location Services" settings? Nov 07 13:33:14 ReGiStRaS: Because if I don't want my location revealed, I don't want my location revealed. Nov 07 13:33:39 Could you imagine if they did allow it, wow Nov 07 13:33:45 i always have it off because privacy and battery Nov 07 13:33:48 alright..is there any apps that can perform Location Services Profile Switch? Nov 07 13:33:55 not based on location but more of user selection Nov 07 13:34:10 Waht are you trying to do? Nov 07 13:35:04 I'm looking for something like Phone Profile switcher... Nov 07 13:35:32 like I can create different profiles for Location services settings Nov 07 13:35:49 cause sometimes I want it on and sometimes not Nov 07 13:36:16 but would like to switch just by a tap instead of going into settings and change Nov 07 13:38:18 is there any? Nov 07 13:40:36 This isn't specifically related to Android, but utilizing Google APIs, so I thought maybe someone here might help Nov 07 13:40:52 trying to authenticate a python script with Google APIs using OAuth2 to use the Directory API to no avail Nov 07 13:41:26 Added my app to the API console, gave it Admin SDK, created an OAuth2 profile... downloaded the client secrets Nov 07 13:41:42 CLIENT_SECRETS = os.path.abspath('client_secrets.json') Nov 07 13:41:49 FLOW = client.flow_from_clientsecrets(CLIENT_SECRETS, Nov 07 13:41:49 scope=[ Nov 07 13:41:49 'https://www.googleapis.com/auth/admin.directory.orgunit', Nov 07 13:41:49 ], Nov 07 13:41:49 message="woot") Nov 07 13:41:53 always fails on message Nov 07 13:54:58 hi i have probleme http://pastebin.com/cm5PmXk4 my android app not calling the php Nov 07 14:10:17 hi Nov 07 14:10:31 how i can start an activity inside and FragmentPagerAdapter ? Nov 07 14:11:46 You need a context to start an activity. Nov 07 14:12:57 So either you give a context (the current activity or the application) to your adapter, or you define a static method somewhere so that the adapter can get a context (the current activity or the application). Nov 07 14:14:36 how o can serach in google to learn this? Nov 07 14:15:30 search Nov 07 14:19:35 t0th_-: You need a context to start an activity. Nov 07 14:19:48 Sorry. Nov 07 14:19:57 Well, you can just type android start activity Nov 07 14:36:37 i have probleme http://pastebin.com/cm5PmXk4 my android app not calling the php Nov 07 14:41:12 my app android trying connect in mysql database but not worked Nov 07 14:41:19 displayin follow message Nov 07 14:41:33 Communications link Failure Nov 07 14:42:04 ricardobarbosams: please tell me that you didn't try to directly talk to mysql database Nov 07 14:42:30 The Last packet send successfully to the server was 0 miliseconds ago. The Driver has not received any packets from server Nov 07 14:42:50 but i monitored with tcpdump, not seen any packets Nov 07 14:42:59 p_l: I think you know the sad answer to that Nov 07 14:43:27 p_l, is direct Nov 07 14:43:45 ;_: Nov 07 14:43:58 ricardobarbosams: mysql is in no way a suitable wire protocol to use across the internet Nov 07 14:44:39 http://paste.archlinux-br.org/2209 Nov 07 14:44:42 Kript: you see the link in the topic, right at the end? see what it says? that. Nov 07 14:44:54 leeds but its local network Nov 07 14:45:16 you're only ever going to run this app on your own device, on your own wifi? Nov 07 14:45:17 in the computer tryin ping for mysql database with sucess Nov 07 14:45:30 via mysql front connect successfully Nov 07 14:45:47 ricardobarbosams: check if you have correct permissions on android device etc... Nov 07 14:45:55 no help here ? Nov 07 14:45:56 so ? Nov 07 14:46:06 Kript: you see the link in the topic, right at the end? see what it says? that. Nov 07 14:46:46 and ? Nov 07 14:46:47 Hey guys, quick question: one of my client is reporting on Skype that my app crashes: what's the easiest way for him to give me a logcat so I can debug? Nov 07 14:46:49 Kript: you see the link in the topic, right at the end? see what it says? that. Nov 07 14:47:00 what does that link tell you? Nov 07 14:47:00 Leeds, i using emulator Nov 07 14:47:09 http://imgur.com/jacojno ? Nov 07 14:47:14 running computer with windows 7 Nov 07 14:47:23 eclipse android 4.4 Nov 07 14:47:36 Kript: let me paraphrase for you: Stacktrace, or GTFO Nov 07 14:48:02 i don t have stacktrace Nov 07 14:48:10 cool... then GTFO Nov 07 14:48:20 gtfo ? Nov 07 14:48:23 either that, or get one Nov 07 14:48:50 get the fsck out, or words to that effect Nov 07 14:49:03 Leeds, i I'm suspecting that my emulator eclipse has no ip address to connect to mysql database Nov 07 14:49:13 for error message Nov 07 14:49:19 The Last packet send successfully to the server was 0 miliseconds ago. The Driver has not received any packets from server Nov 07 14:49:28 i use just httpost for post value Nov 07 14:49:32 ricardobarbosams: again. is this an app which is only *ever* going to run on your own device, on your own network? Nov 07 14:49:50 Kript, do you know how to logcat? Nov 07 14:50:08 Leeds, yes Nov 07 14:50:12 its test Nov 07 14:50:36 are you ever, under any circumstances, considering planning writing an app which would ever run on anyone else's device or network? Nov 07 14:50:52 Leeds, study tool for learning how to connect to a mysql database. only Nov 07 14:51:16 then now would be an *excellent* time to lean how to connect to a mysql database - the answer is not to use jdbc Nov 07 14:51:56 Leeds, for internet environment, i will use webservice Nov 07 14:52:02 then do that now Nov 07 14:52:45 Leeds, why? Nov 07 14:53:06 because it's the right thing to do Nov 07 14:53:10 * Leeds done Nov 07 14:53:29 Leeds, which use instead of jdbc? Nov 07 14:55:00 Leeds, always use webservice? Nov 07 14:59:54 question. In eclipse I see myKey.keystore does that get packed with the app… or is it okay to delete it in eclipse? Nov 07 15:01:10 does the nexus5 actually have the nfc card emulate hardware feature? Nov 07 15:03:06 do not pack your app with the keystore Nov 07 15:03:11 and do not sign an app and then delete it Nov 07 15:04:34 in Android Studio with Gradle: Is it possible to define a versionName in the projects build.gradle and then use it in the applications build file? Nov 07 15:08:19 suddenly android studio unlinked to all projects files on windows 8.1. Any way to associate it to project files back again? Nov 07 15:14:54 ?? Nov 07 15:18:41 do someone know what the "DISABLE" button on the published APK does? Nov 07 15:19:04 talking about the developer console, DISABLE button appear when you switch to advanced mode Nov 07 15:19:12 couldn't find documentation about it Nov 07 15:19:19 Hey folk, I have a question about the Android source code. Nov 07 15:19:41 I am going to buy the Nexus 5 when it is available in my country. I then want to make changes (mostly UI) to the Android source code and run it on my phone. My question is: how do I fastest test the code I have modified? Do I need to compile and create a ROM and flash it after every change to my phone or may I use the emulator and "quick-build" to it? Nov 07 15:20:27 zettez, I think you want to talk in #android-root Nov 07 15:20:51 Ah I see, is this more general stuff? Nov 07 15:21:08 If anyone has the answer please check my so-question: http://stackoverflow.com/questions/19837951/fastest-way-to-test-modified-android-source-code Nov 07 15:21:15 I will check it mastro Nov 07 15:22:46 zettez, this is for android development, as in "writing application for android" I think Nov 07 15:23:09 mastro, I see, then I was in the wrong section. Thank you for helping me! Nov 07 15:23:56 zettez, or maybe #androidrom-dev Nov 07 15:25:22 zettez, no problem Nov 07 16:10:00 4.4 brings changes to the nfc stack (host card emulation). do the devices have specific requirements or is all they need an nfc chip? Nov 07 16:10:26 like, if nfc works on the phone, will host card emulation work as well or are there any specific requirements. Nov 07 16:17:49 sigv: probably will work fine for devices with the NCI-based NFC stack Nov 07 16:18:09 annoying that we only get 14443-4 Nov 07 16:19:56 mhm, now to find out if the nexus 4 has an nci-based stack. or maybe i should check out what nci stands for first. :) Nov 07 16:20:20 nfc controller interface, it seems. Nov 07 16:22:54 hmm, "In the Nexus 4 review I noted that Broadcom’s BCM20793 appeared to have taken the slot of the up until now relatively ubiquitous NXP PN544 controller [...]" from http://www.anandtech.com/show/6458/android-42-hits-aosp-broadcom-replaces-nxp-with-nci-stack-for-nfc Nov 07 16:23:06 does that mean it's not going to have support for host card emulation then? Nov 07 16:24:50 found a spec-sheet and it states "Card emulation ISO 14443 –A-B-B’, MIFARE, FeliCa RF". good. Nov 07 16:25:03 i should read on the nfc stack specs then... Nov 07 16:25:25 n4 uses nci Nov 07 16:25:39 also, you don't get mifare Nov 07 16:26:00 no mifare for you unless the phone uses NXP chip. Because politics Nov 07 16:26:19 heh, okay. but as the review/link/article stated it's a nxp pn544. Nov 07 16:26:26 not in n4 Nov 07 16:26:30 no? Nov 07 16:26:32 okay. Nov 07 16:26:44 sigv: N4 has the broadcom 20793 and uses nci-based stack Nov 07 16:27:13 okay, thank you. Nov 07 16:27:19 it has full capability for card emulation and advanced routing, it's just that certain operations are blocked from SDK Nov 07 16:27:47 if you implement MiFare's crapto-1 and bypass certain annoying things, you can read/write/emulate mifare tags as well Nov 07 16:27:56 p_l: i see. Nov 07 16:28:16 that's why I am annoyed at being given only 14443-4 access, because that means no mifare emulation Nov 07 16:28:46 i see. well thanks for the info. :) Nov 07 16:30:15 what is missing in 4.3 to access mifare tags without NXP chip is the ability to pass "raw" data in one TagA class Nov 07 16:33:12 well, i know some of these words. :) Nov 07 16:33:19 * sigv has never really messed with nfc Nov 07 16:33:33 i am just starting to look into it. all this lingo is so foreign to me. :) Nov 07 16:34:53 Does anyone know why a WebView that is scaled to fit the width of the screen perfectly would get an extra like 100px of padding to the right that causes the WebView to scroll horizontally? Nov 07 16:57:54 Should I use Fragments for option drawers that slide in from the left, right, and bottom? Nov 07 16:58:03 maybe 1 fragment for each? Nov 07 16:58:11 each side will have multiple drawers. Nov 07 16:58:39 I've never used fragments before, but I don't like that this Activity has a billion lines of code Nov 07 17:02:20 Is there a single task that runs check and connectedCheck (manually would be ./gradlew check connectedCheck), they seem to be mutually exclusive Nov 07 17:12:36 Hello everyone Nov 07 17:14:05 Do we have any front-end devs online? I am looking for help in debugging a JS issue on the Android ARM using SDK Nov 07 17:39:12 Hello! What is the best practice for creating fragment which have map inside. MapView or SupportMapFragment? Nov 07 17:46:12 xgear supportmapfragment Nov 07 17:48:47 js isn't front-end dev on android Nov 07 17:53:30 The AndroidManifest.xml file isn't "complied" in any way is it? I should be able to unzip an apk and view it as text, right? Nov 07 17:53:46 it gets compiled Nov 07 17:54:00 aapt d xmltree Foo.apk AndroidManifest.xml Nov 07 17:54:42 How can I launch my app and parse some data using a URI string? for example abc://whatever Nov 07 17:54:43 evanc: Oh, thanks! Nov 07 17:55:00 CallumTaylor but it should be nested fragment Nov 07 17:55:02 ExeciN: what are you asking? Nov 07 17:55:12 ExeciN: launch it via adb? Nov 07 17:55:13 good resource for sizing/height or width of UI elements of app Nov 07 17:55:16 i want map inside of fragment Nov 07 17:55:28 xgear: so put one in there Nov 07 17:55:44 i thing that mapfragment as nested - bad idea Nov 07 17:55:52 then use MapView Nov 07 17:55:53 *think Nov 07 17:56:07 so i ask for best practices Nov 07 17:56:33 evanc: What I ment is I want my app to launch when an abc:// URI is clicked in a browser Nov 07 17:56:39 which way is better? nested supportmapfragment or mapview Nov 07 17:57:00 ExeciN: add an to your manifest. Please consult the docs or numerous tutorials for examples Nov 07 17:57:13 xgear: they're basically the same; just pick one Nov 07 18:02:14 ok Nov 07 18:02:17 thanks Nov 07 18:20:43 You realise StackOverflow isn't the best name for a site when you need to search google for a stack overflow issue, and the results are full of unrelated questions. Nov 07 18:22:44 can someone explain to me why this behavior happens? I have a vew with a content_frame, which is a linear layout... I was using this code previously, to swap out what was in the view fragmentManager.beginTransaction().replace(R.id.content_frame,fragment).commit(); Nov 07 18:23:25 then in some instance i didnt want to replace what the contents were so I used begintransaction.add()... but then when i do replace it doesnt clean out the old fragments any more Nov 07 18:23:29 well about half of them Nov 07 18:23:29 Max-P: filter so that stack overflow is excluded? :) Nov 07 18:23:35 Max-P: the site, that is. :) Nov 07 18:24:32 sigv, Yeah. but the answer to the problem is likely to be on that site too lol Nov 07 18:24:47 Max-P: heh, true that :) Nov 07 18:26:46 Looks like Gingerbread doesn't like displaying an hundred EditText, that's going to be though to work around Nov 07 18:29:32 Or that it just calls its own event listener in a loop which trigger itself Nov 07 18:29:37 * Max-P feels like a total idiot Nov 07 18:32:47 anyone have any ideas Nov 07 18:34:13 anyone know how to get a tool like firebug for the Emulator ARM? Nov 07 18:35:38 is there a way to ask the SDK for the beginnign and ending offsets of the actual data in an audio file (mp3, m4a, etc)? The purpose is to get the audio bits without any tag/headers/etc. Nov 07 18:36:18 JeremieDeNoob, we will need more code to help. It's probably elsewhere in the code that some IDs don't match or something Nov 07 18:40:20 KempfCreative: what? Nov 07 18:40:33 any ant users here Nov 07 18:41:09 I am looking at an issue with a webpage I developed that only appears on a certain version of Android OS. So I created a device using the SDK and I am browsing to the webpage to see the issue. Nov 07 18:41:22 But I have no way to debug, since I can't see the javascript calls and such Nov 07 18:42:08 how to add jsoup jar to my ant project Nov 07 18:42:41 So is there a way to inspect javascript calls that come back from the page using the Android SDK? Nov 07 18:42:43 would project update do the trick after adding the jar in libs folder Nov 07 18:44:57 does anyone have a built version of taglib w/ java bindings for android? Nov 07 18:46:29 any ideas about including jsoup's jar file using ant Nov 07 18:46:36 someone must have done this Nov 07 18:59:19 Can anyone help me use the virtual device to debug front end issues? Nov 07 18:59:35 This seems like a simple thing but I have been searching all day and haven't found a reasonable solution Nov 07 18:59:50 This isn't a project I am creating, it is a live website Nov 07 19:00:08 using phonegap ? ? Nov 07 19:03:09 What is the best way to sync files/pathes of a specific directory with subdirectorys as soon as it's created? i want to avoid using filewatchers because it can thousands of files and directorys. And it must be synced with a server. Currently im syncing all on the first time and store the lastmodified timestamp. Then i go through all directorys hourly and check if there are any files or Nov 07 19:03:09 directorys newer then the lastmodified timestamp and push anew json file to the server Nov 07 19:13:41 misterli: FileObserver is supposed to be efficient, it uses Linux kernel features Nov 07 19:14:54 misterli: "Each FileObserver instance monitors a single file or directory. If a directory is monitored, events will be triggered for all files and subdirectories inside the monitored directory." Nov 07 19:18:52 Looney: That is not what I am looking for Nov 07 19:21:17 Is there seriously no equivalent of firebug or even developer tools to use on a virtual device created using the SDK? Nov 07 19:21:31 That seems ridiculous Nov 07 19:32:23 So do developers for android just not debug front end issues? Nov 07 19:32:42 i guess they just use USB Debugging or a simulator Nov 07 19:32:56 what are you trying to debug? what frontend? Nov 07 19:33:02 a web frontend? Nov 07 19:33:14 Yes, a website javascript code Nov 07 19:33:23 on a virtual device I created using Android SDK Nov 07 19:33:32 in the emulator? Nov 07 19:33:37 yes Nov 07 19:33:59 so that would be a function of the browser you are using Nov 07 19:34:09 stock android browser Nov 07 19:34:50 KempfCreative: did you try googling 'firebug android' ? Nov 07 19:34:53 https://developers.google.com/chrome-developer-tools/docs/remote-debugging Nov 07 19:35:01 https://developers.google.com/chrome/mobile/docs/overview Nov 07 19:35:03 heh Nov 07 19:35:04 yeah Nov 07 19:35:05 yes. Nov 07 19:35:35 alright. thanks. Nov 07 20:00:40 man, bitmap manipulation is really really slow for me. Nov 07 20:02:00 opengl ftw Nov 07 20:02:22 i still need to load a ton of bitmaps into memory, modify them, and then write them to disk. Nov 07 20:02:43 all while displaying thumbnails for them Nov 07 20:27:39 hi guys Nov 07 20:27:50 I want to have a floating view in my android app. Nov 07 20:28:24 .addView Nov 07 20:28:42 hi, have question regarding security and for MIME types - afaik does not check for MIME type other then by checking some generic stuff, so it is possible to smuggle different MIME type content to the application - am I right ? Nov 07 20:29:05 what doe you mean by .addview? Nov 07 20:29:40 i mean, there's a catch to it.. the question had a second part :P Nov 07 20:30:12 it's very easy to manipulate views Nov 07 20:30:14 I want this view to remain on the screen even if the user moved to another activity Nov 07 20:31:10 <|0xD34D|> tonyMontana9099: see WindowManager http://developer.android.com/reference/android/view/WindowManager.html Nov 07 20:31:29 |0xD34D| aiight mate, lemme have a look Nov 07 20:31:35 <|0xD34D|> specifically the inherited methods from ViewManager Nov 07 20:32:26 |0xD34D| , jaynewstrom, to be more specific, I want to whenever my app is open, (and visible to the user) and a push notification arrives, show it as a floating free object on the activtiy layout which does not take focus. Nov 07 20:32:32 anyone into s ? Nov 07 20:40:07 hexe nop mate.. at least not as detailed as you question above :/ Nov 07 20:40:12 post Question to SO Nov 07 20:40:17 might draw a hint or two from there Nov 07 20:44:02 Quick question, all the resources I found on this topic are from 09-11. So at the moment I have a pre created sqlite database 1 table and about 2k rows. Is there a less messy way of including your database. And a follow up is there a better alternative or possibly keeping my db remote ? Nov 07 20:44:26 Specifically I'm talking about this http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Nov 07 20:44:53 Where you add your database to your apk and it then creates a duplicate in the phone under /data Nov 07 20:45:28 neredsenvy this site is the universal site for the db adding lol... as far as I know every body implements this method.. works like a charm Nov 07 20:49:00 what is windowManager ? Nov 07 20:49:15 Man I hope there's a ORM that can handle all that an CRUD xD Nov 07 20:49:54 me too neredsenvy ,i dont know how people manage to do all these crud hell Nov 07 20:50:18 xD Nov 07 20:54:12 whats ORM ? Nov 07 20:54:18 guys sqlite crud is pretty easy. Nov 07 20:54:32 you can just do it once, and use that class forever, my simple modifications. Nov 07 20:55:30 hm/yuck; Enum.valueOf() does a linear scan through an array to match string to enum Nov 07 20:55:44 at least in harmony Nov 07 20:55:50 tonyMontana9099: that's really easy to do. Just have a FrameLayout as the root, and use findViewById to add another view to it, which will place it on top, not grabbing focus Nov 07 20:57:28 jaynewstrom assume I did that, but how to I keep it when i move to another activity ? Nov 07 20:58:43 check to see if the view is in the current activity, and pass it in a bundle to the next Nov 07 20:59:36 Can i pass a view to another activity ? Nov 07 20:59:51 and does this mean all my activity layouts should be frame layouted ? Nov 07 21:02:32 i would use bundle to package up the information in the view Nov 07 21:02:32 is there a nexus 7 with the hierarchy viewer onboard? Nov 07 21:02:47 (e.g. a debug/engineering variant of the nexus 7) Nov 07 21:02:55 since I can't quite find one to order. Nov 07 21:05:16 Hey all, anyone have a way to read APN info in 4.2+ ? Nov 07 21:05:24 What is the best way to sync files/pathes of a specific directory with subdirectorys as soon as it's created? i want to avoid using filewatchers because it can thousands of files and directorys. And it must be synced with a server. Currently im syncing all on the first time and store the lastmodified timestamp. Then i go through all directorys hourly and check if there are any files or Nov 07 21:05:24 directorys newer then the lastmodified timestamp and push anew json file to the server Nov 07 21:05:50 misterli: "Each FileObserver instance monitors a single file or directory. If a directory is monitored, events will be triggered for all files and subdirectories inside the monitored directory." Nov 07 21:06:06 I am referencing https://code.google.com/p/android/issues/detail?id=39987 Nov 07 21:06:27 misterli: huh? Nov 07 21:06:38 Yes. But how about scanning Environment.getExternalStorageDirectory(). Will it really scan all files created/modified in this directory? How about performance? Is a foreground-service required for that? Nov 07 21:07:43 misterli: read api reference first Nov 07 21:07:56 misterli: Nov 07 21:07:58 Warning: If a FileObserver is garbage collected, it will stop sending events. To ensure you keep receiving events, you must keep a reference to the FileObserver instance from some other live object. Nov 07 21:08:34 Yes, i rode that already. This shouldnt be a problem. But: There's nothing about memory-consume, ... When the GB collect them quickly then it must use heavy memory-usage Nov 07 21:11:48 misterli: it can't be worse then you scanning all the directories every few seconds Nov 07 21:15:45 icedp. How does Security-Software do that? Like Avast. It scans as soon as a file created Nov 07 21:18:28 we all love virus scanners for not eating precious resources ;) Nov 07 21:18:55 Linux has inotify. I'm guessing Windows has something similar. Nov 07 21:19:04 Android uses iNotify with the Filewatchers too Nov 07 21:19:05 misterli: read the api reference, I really urge you. avast is on windows. on Linux it's done thru inotify (it's in the android reference). inotify is linux kernel which notifies you exactly when it happens(because all file operation go thru kernel) Nov 07 21:19:11 OS X has something like that, Time Machine uses it. Nov 07 21:19:31 doesn't inotify call through to the java layer though ? Nov 07 21:19:42 i never ment avast for windows, haha. https://play.google.com/store/apps/details?id=com.avast.android.mobilesecurity Nov 07 21:20:17 This one scans very well and takes less ressources. Ive no idea how they do that but aslong as there is no broadcastreceiver or filewatcher who's working well there must be another solution scanning for modified files Nov 07 21:20:53 g00s: well sure Nov 07 21:21:22 misterli: I don't understand why you don't like FileObserver, what do you want to find really Nov 07 21:21:44 http://energychallenge.energy.gov/ Nov 07 21:21:44 it's a syncservice. As soon as a new file has been created it should be synced with the server (via wifi) Nov 07 21:22:00 Using FileObserver on all directorys is ... Nov 07 21:22:36 misterli: not all, just root dir (your sync folder) Nov 07 21:22:49 what does windowManager do ? Nov 07 21:22:58 okay. Ill try that. Hopefully it does not eat my ressources quickly ;P Nov 07 21:24:17 tonySoprano9099: manages windows (views) Nov 07 21:24:55 icedp i could have managed that :P Nov 07 21:25:08 I mean, what does it do explained via an example icedp Nov 07 21:25:20 misterli: how do you find more efficient way to be notified right away of file creating if not receiving push from hook in the kernel call? ... Nov 07 21:25:47 tonySoprano9099, for example: when a view needs managing - it will take care of managing it. Nov 07 21:25:54 i have no idea how inotify work. But if it's working like i guess then it should be very fast and takes less ressources Nov 07 21:26:10 I just rode lots of stackoverflow posts which means that its buggy or should not be used Nov 07 21:26:32 rode... Nov 07 21:26:33 jedir0x but, cant we just manipulate views by calling the methods ? like changing the text of a button Nov 07 21:26:41 misterli: that's why I told read the fine reference, there is direct link to explanation right in the beginning Nov 07 21:27:04 yeah, will do it. thanks Nov 07 21:27:14 tonySoprano9099, yes we can. Nov 07 21:27:30 jedir0x so why the windowManager ? Nov 07 21:27:36 hence the purpose of my question. Nov 07 21:27:39 for managing the windows Nov 07 21:27:57 why not? Nov 07 21:28:00 okay, jedir0x what is a 'windows' and what is a 'view' Nov 07 21:28:11 and what is a 'slide' ? Nov 07 21:28:39 jedir0x the real issue I am facing is that I want to make a floating custom view appear in my app (whenever I receive a push notification) Nov 07 21:29:43 and I want to keep it visible to the user even if the user moved to another activity. Nov 07 21:30:02 tonySoprano9099, Then use a manager to manage the view into a floating state while being managed by the manager. Manage. Nov 07 21:30:39 i'm trolling tonySoprano9099 - ignore me. Nov 07 21:30:49 let me manage to manage reading the word manage in the above sentence :P Nov 07 21:32:10 no jedir0x seriously, I need to know this. Nov 07 21:32:17 if you can guide me, I'd be grateful Nov 07 21:43:40 oh great Nov 07 21:43:55 now I have to complain to sleep as android team for going full retard on their time selection widget thingie Nov 07 21:44:07 ? Nov 07 21:45:44 * g00s sighs; kill -9 AS Nov 07 21:45:54 http://eclipser.xmms2.org/device-2013-11-07-234531.png Nov 07 21:46:07 g00s: Emacs+gradle FTW! ;-) Nov 07 21:46:14 hehe Nov 07 21:46:31 Even libgdx supports it now. :-) Nov 07 21:47:04 Gradle-based building I mean, so you can kiss laggy IDEs goodbye. Nov 07 21:47:29 intellij has some weird swing bugs on mac os; seems when i have it full screen; once in a while it will pop up a dialog on another desktop; both windows become unclickable then Nov 07 21:48:07 kjeldahl have you written any more gradle plugins :D Nov 07 21:48:11 soon I'll have to write myself a clone of this app as well -.- Nov 07 21:48:18 it seems to be the trend these days.. Nov 07 21:48:42 Zharf wtf is that Nov 07 21:48:46 http://eclipser.xmms2.org/device-2013-11-07-234531.png Nov 07 21:48:56 it's a horrible horrible time selection widget in sleep as android Nov 07 21:49:09 in sleep ? Nov 07 21:49:15 sleep as android Nov 07 21:49:25 it's an app I use as my alarm clock Nov 07 21:50:04 oh great Nov 07 21:50:09 it's even better in landscape Nov 07 21:50:42 http://eclipser.xmms2.org/device-2013-11-07-235016.png Nov 07 21:51:21 is there a threadpool for BroadcastReceiver's to run in - or do i need to make my receiver have a thread pool? Nov 07 21:51:54 nevermin, onReceive runs on the UI thread Nov 07 21:52:25 g00s: No. I'm expecting the Google team will fix their Gradle plugin so it works fine with the java plugin, which will make everything a lot easier. Nov 07 21:52:42 kjeldahl do you think they will? Nov 07 21:53:17 i did notice that gradle team is adding flavors as some first class abstraction; maybe somewhere down the line they will converge; dunno Nov 07 21:53:48 I hope at least. libgdx also mixes a "pure" java build with the Android specific build, which is also an approach I might want to revisit later if I have to. Nov 07 21:57:52 aah, at least they had one great idea in that patch.. added a setting to revert that stupid new timer setting -.- Nov 07 21:58:06 which one would you use? http://eclipser.xmms2.org/device-2013-11-07-235652.png or the new http://eclipser.xmms2.org/device-2013-11-07-234531.png :) Nov 07 21:58:35 That new one is trying too hard. Nov 07 21:58:39 The second, because my phone doesn't suck Nov 07 21:58:43 hah Nov 07 21:58:54 it's horrible even if it did fit my screen Nov 07 21:59:08 what on earth is that Nov 07 21:59:21 need help with google play services, can i ask here? Nov 07 21:59:23 that is the worst clock I've seen Nov 07 21:59:27 it's UI control? Nov 07 21:59:31 alankila, yeah... Nov 07 21:59:36 http://pastebin.com/xUjbrq8N Nov 07 21:59:38 it's used to select the wake up time Nov 07 21:59:41 I can see how it's faster to use, though Nov 07 21:59:54 but ... god, it's just so ugly Nov 07 22:00:01 pft, like it's a matter of usage speed in this case Nov 07 22:00:03 is that some native widget ? Nov 07 22:00:06 no Nov 07 22:00:09 Well, they did make it ugly.. Probably the dark theme Nov 07 22:00:10 phew ;) Nov 07 22:00:12 It's UI gameification; guess how to select time! Nov 07 22:00:17 A puzzle game. Nov 07 22:00:18 Google Calendar has been using it for a while Nov 07 22:00:27 yeah, i was like uh is the outer ring minutes or hours Nov 07 22:00:37 hours Nov 07 22:00:46 you get to choose minutes after choosing the hour Nov 07 22:00:54 Zharf: I'd use that one http://i.imgur.com/tqGpS.png Nov 07 22:00:58 it's just that the inner circle text should be smaller to make it seem harmonious Nov 07 22:01:05 http://pastebin.com/xUjbrq8N i receive this when use adview from google play service 4. in particular banner view works fine, interstitial not at all. any suggestion? Nov 07 22:01:17 each hour is a bit like a pie and the glyphs need to scale in distance from the center. A bit of graphics to highlight the touch areas wouldn't hurt either Nov 07 22:01:22 and you only get 5, 10, 15, 20, etc minutes Nov 07 22:01:26 nothing in between Nov 07 22:01:49 this is really interesting; i think its ugly - but who cares; i wonder if we measured task completion time which would come out better Nov 07 22:01:52 * kjeldahl goes to bed. Nov 07 22:02:00 gnight kjeldahl Nov 07 22:02:05 nite all Nov 07 22:02:07 I don't like this new style of making everything look like some autistic neckbeard aggressively minimized everything. Nov 07 22:02:18 g00s, however, I don't think task completion time is really relevant in this use case -.- Nov 07 22:02:24 autistic neckbeard, ha Nov 07 22:02:29 And I'm speaking that as a kind of autistic neckbeard myself. I still like aesthetics. I hate controls that are too plain. Nov 07 22:02:36 Zharf how long it takes to set the time :) Nov 07 22:03:07 It's a lot prettier with a light theme https://dl.dropboxusercontent.com/u/100261/2013-11-07%2022.01.12.png Nov 07 22:03:10 g00s, I know what you meant but really... it never takes too long with either of them Nov 07 22:03:21 light theme hurts my eyes Nov 07 22:03:39 i'm having issues linking to a jar with Android Studio, is there someone around who might be able to help? Nov 07 22:03:41 Dark themes need to die Nov 07 22:03:45 no way Nov 07 22:03:50 light themes need to di Nov 07 22:03:51 e Nov 07 22:03:52 whaaaa Nov 07 22:03:53 There are hardly any pretty dark themes Nov 07 22:04:01 It's still ugly. The inner circle numbers are out of balance with the outer circle. The symmetry demands a different way to do this. Nov 07 22:04:02 dark theme looks cool Nov 07 22:04:04 It's all just "zmg amoled need dark save battery" Nov 07 22:04:07 http://pastebin.com/xUjbrq8N help me pls Nov 07 22:04:08 Yeah, your app is ugly Nov 07 22:04:11 i think the dark theme is best for this; setting an alarm clock at night, looking at a white screen ? may as well stare into a light bulb Nov 07 22:04:18 A lot easier making a "decent" light app Nov 07 22:04:27 I haven't seen any decent light apps Nov 07 22:04:29 good way to mess up your melatonin, etc Nov 07 22:04:49 i guess this is why an app should provide both light and dark themes as an option Nov 07 22:04:58 and if you look at it at night when the lights are out, i would want it as dark as possible Nov 07 22:05:02 but then, I prefer darkness anyway, battery drain doesn't come into play here Nov 07 22:05:13 seand, fair enough :) Nov 07 22:05:18 in Android Studio im getting a lot of "Gradle: error: package com.xxx.yyy does not exist" Nov 07 22:05:43 g00s, I hardly ever use lights in my flat and my curtains are pretty much always closed :p Nov 07 22:05:46 one other thing that bugs me about the light version is the select circle. At first I was convinced it wasn't centered on the number, but it is. Then I thought the selection circle makes my brain think the outline of the clock is wonky, not a perfect circle Nov 07 22:05:50 i like coding in intellij's dark theme Nov 07 22:05:51 in the build.gradle file i've added the line: compile files('libs/xxx=yyy.jar') Nov 07 22:05:55 My poor head. I hope I never have to see this control in my life. Nov 07 22:06:00 in the dependencies clause Nov 07 22:06:12 alankila, you just saw it Nov 07 22:06:31 there's something about it that makes me think it's some kind of visual eye trick meant to emphasize defective human visual processing Nov 07 22:07:07 Zharf: yeh, in my real android. Nov 07 22:07:50 alankila, fair enough Nov 07 22:09:35 http://pastebin.com/xUjbrq8N help Nov 07 22:11:48 anyone can help? Nov 07 22:33:05 did AS ever get that xml style formatting thing ADT had? Nov 07 22:33:27 for manifest, layouts, etc Nov 07 22:34:29 Why is my "PhotoOption" view showing up below my "TouchableOverlayLayerView" ? xml: http://pastie.org/8463951 The PhotoOption is supposed to be alignParentBottom'd but it is not on the bottom, its below the TouchableOverlayLayerView, in the middle of the screen... Nov 07 22:34:50 It shows up correctly in design mode o.O Nov 07 22:35:05 But on the motorolla xoom its showing up in the middle of the view area Nov 07 22:38:16 Not sure if its some crap related to the linear layout as the root view, so I switched to a relative layout and I get the same view Nov 07 22:38:16 hi Nov 07 22:38:23 you're struggling Nov 07 22:38:32 yeah Nov 07 22:38:47 why was your name red there Nov 07 22:39:16 cuz i said your name Nov 07 22:39:22 struggling Nov 07 22:39:25 boobs Nov 07 22:39:26 ok Nov 07 22:39:27 struggling Nov 07 22:39:28 boobs Nov 07 22:39:40 I don't like struggling but I like boobs Nov 07 22:40:16 do you guys understand broadcastreceiver Nov 07 22:41:00 came back to chat at a weird time. Nov 07 22:41:04 I'm new here, just lurking to learn stuff Nov 07 22:41:21 i'm struggling with how it is supposed to wokr Nov 07 22:42:29 First it gets a URL, you see if you can handle the url, if you can, then you handle it Nov 07 22:43:01 i don't understand...i'm making an alarm app Nov 07 22:43:27 but it doesn't work when the emulator is turned off and on again Nov 07 22:43:43 so i'm trying to use broadcastreceiver but i don't undertand any of the guides i've read Nov 07 22:44:11 like am i supposed to set the intent that the alarm manager does to the broadcastreceiver? or can i jus start up the app and then the alarm exists again Nov 07 22:44:13 or what? Nov 07 22:44:21 how is the alarm stored in the os? Nov 07 22:44:36 i'm not the person to ask Nov 07 22:45:12 who should i ask? Nov 07 22:45:32 you must consult the architect Nov 07 22:46:04 just kidding; someone here would know Nov 07 22:46:33 doesn't seem to be many people active here right now Nov 07 22:46:43 you have to be patient when you ask for help in IRC Nov 07 22:46:59 not everyone, if anyone, is willing to stop what they're doing just to help a stranger Nov 07 22:47:06 %s/in IRC//g Nov 07 22:47:16 heh Nov 07 23:10:43 This alignParentBottom ain't doin' shitz Nov 07 23:14:56 Ok, I have a RelativeLayout in a horizontal LinearLayout, the RL's height is set to fill_parent, but it is not filling the parent. The LL's height is also fill_parent, so it should be taking up the whole vertical space of the display, but it is not… Am I missing something? Nov 07 23:17:38 hi there, I use a activity multiple times in my app with different intent extras. Can I be sure that onCreate() is called each time or do I have to check in onStart() Nov 07 23:18:46 onCreate is called when an Intent starts your activity. Nov 07 23:19:11 so, each time you startActivity, onCreate will be called. Nov 07 23:19:42 thanks a Lot I could not find this in the documentation. Do you know where This is documented? Nov 07 23:24:49 http://developer.android.com/reference/android/app/Activity.html Nov 07 23:26:21 thank you all a lot. have a nice day. Nov 07 23:29:22 Anyone know how to read APN information given https://code.google.com/p/android/issues/detail?id=39987 Nov 07 23:33:54 Can I set settings like versioName in the projects build.gradle that will be inherited in the Apps build.gradle? Nov 07 23:37:17 Random as hell question, but does anybody know of any good papers/journal articles discussing methodologies within mobile application development? Nov 07 23:42:30 methodologies? like Agile, Waterfall, etc? Nov 07 23:42:34 Yeah Nov 07 23:43:16 vetsin: well do you have the permission? Nov 07 23:43:43 icedp: no one does, it's a system level permission Nov 07 23:44:00 no one third party* Nov 08 00:20:47 Hi, anybody online at the moment? Nov 08 00:22:27 ye Nov 08 00:25:39 I have a question. :) I have an android applciation which I want to build two version, the two version of app have almost the same logic,resources,app icon and etc, except they user different library and native library. I want to know how do you organize this kind of project ? Nov 08 00:25:56 well I did something like that Nov 08 00:26:02 I used main project as library Nov 08 00:26:11 with 2 projects with just files that was changed Nov 08 00:26:29 in my case it was 2 different settings setup for free and paid versions. Nov 08 00:30:31 XXCoder: I have the same idea as yours, however each android project will have a AndroidMinefest.xml, but the two project for different should have the same androidminefest.xml with my library. Is this possible? Nov 08 00:31:06 yeah my projects has same manfest, one that just refers to that library Nov 08 00:32:11 I'm sure gradle allows this Nov 08 00:32:26 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Type-Product-Flavor-Build-Variant Nov 08 00:32:58 refer? Is this possible? How to make it in android studio, since I do not want to copy the contents once I make some change in the and..fest.xml Nov 08 00:32:58 gradle I know nothing Nov 08 00:33:18 Hey guys. So I'm looking at a heap dump for my app. I'm seeing a large amount of activities still in memory. They dont seem to get destroyed and cleaned up. I dont see it reference by anything I'm doing though. I see current activity points to mGlobal -> mRoots -> a bunch of activities in the back stack. Is this correct? Am I missing something? Seems like those activities are still stuck in memory. Nov 08 00:33:53 This is for activities in the backstack, memory gets released if activities are finished. Nov 08 00:34:22 XXCoder: :( Me too, know a little about gradle. Nov 08 00:35:30 anyway I use eclipse, I usually edit source in library and both will change according, unless its something that was overidden Nov 08 00:35:41 in my project case its just settings xml file Nov 08 00:35:42 jayd16: have you tried DDMS? Nov 08 00:36:53 Woop: in what sense? I'm using it to look at heap dumps. Nov 08 00:37:25 XXCoder: I know what you said. I just want to avoid copy/paste the ad..fest.xml from the library project to version project. Nov 08 00:37:44 oh, looking *at* not *for* Nov 08 00:37:46 carry on Nov 08 00:38:13 I don't know where the rogue references are Nov 08 00:38:26 yeah dunno how far you can take this. I'm not expert Nov 08 00:38:36 I'm quite hacky coder something Nov 08 00:42:15 Thank you, I will have try. Nov 08 00:44:40 anyone know if adb over tcp is available when using ART? Nov 08 00:54:02 dcow, art has nothing to do with that Nov 08 00:54:09 or at least, it shouldn't Nov 08 00:54:12 if it does, file a bug Nov 08 00:54:35 @canadiancow the option does not appear when I am using ART Nov 08 00:55:05 the option where? Nov 08 00:55:29 @canadiancow in the developer settings. there used to be an "enable adb over wifi" option Nov 08 00:55:46 i dont see that option while using dalvik Nov 08 00:56:07 i've always enabled it over adb Nov 08 00:56:16 adb tcpip portnumber Nov 08 00:56:18 or something like that Nov 08 00:56:21 dcow, are you using a AOSP? Nov 08 00:56:42 Or are you on CM or something else? Nov 08 00:57:00 @canadiancow oh, so I have to have the device connected over usb then use that? I was trying that without the device connected Nov 08 00:57:02 and it wasn't working Nov 08 00:57:09 makes sense though, I'll try it. Nov 08 00:57:19 what's all this @ shit, i feel like i'm reading a twitter feed :S Nov 08 00:57:37 @kakazza CM10 I know has that setting. I just assumed it was a standard setting because there's nothing else CM specific in the dev menu Nov 08 00:58:13 bankai_: What are you talking about? Nov 08 00:58:23 bankai you admit to actually reading twitter ;) Nov 08 00:58:23 @bankai_ it is used to reference the person you're talking to Nov 08 00:58:27 ^ Nov 08 00:58:32 XXCoder: i saw it once! just once! heheh Nov 08 00:58:35 On Twitter. Nov 08 00:58:46 bankai_: I'll do this instead Nov 08 00:58:49 lol sure you didnt intale it either ;) Nov 08 00:58:51 bankai_ probably just has stocks. Nov 08 00:59:20 I'm sure twitter took the @ idea from IRC anyway Nov 08 00:59:43 Yeah, because it's such an original idea. Nov 08 00:59:49 it used to be the only way to reference people (at least back when some clients only recognized @ shit) Nov 08 01:00:03 kakazza: well I just remember people used to use it all the time on IRC Nov 08 01:00:10 kakazza: then clients got smart Nov 08 01:00:16 ive been using irc for a while now, and i dont recall seeing @name until twitter became popular Nov 08 01:00:29 aye Nov 08 01:00:36 yeah I used irc over decade ago. no @ Nov 08 01:00:47 well around decade anyway Nov 08 01:01:01 Man, I wish I had the logs from back then. Nov 08 01:01:04 admitted I was not using software development rooms back then Nov 08 01:01:18 kk you'd probably crange on what you said then Nov 08 01:01:21 maybe it was a server-specific thing Nov 08 01:01:27 I know I do when I see rare very old forum posts. Nov 08 01:01:49 my grammar as bad it is now, was much worse then Nov 08 01:02:13 XXCoder: oh god I have some forum posts which I wish would disappear forever Nov 08 01:02:34 luckily the inheritance trilogy forums have kinda died out Nov 08 01:02:38 XD Nov 08 01:02:48 * XXCoder hunts down dcow posts ;) Nov 08 01:02:53 you can try Nov 08 01:03:38 for anyone curious about my activities in the back stack question, this answers it : http://stackoverflow.com/questions/7536988/android-app-out-of-memory-issues-tried-everything-and-still-at-a-loss/7576275#7576275. I guess I misunderstood how activities were handled. Nov 08 01:07:36 canadiancow: adb over tcp working. thanks! Nov 08 01:14:42 What's the advantage of using it over TCP/IP? Nov 08 01:15:36 no cords? Nov 08 01:15:50 using it remotely? Nov 08 01:16:04 He's using TCP/IP over cable. Nov 08 01:16:33 wait, what? Nov 08 01:16:57 Yep Nov 08 01:17:12 adb over tcp over adb? Nov 08 01:17:54 adb tcpip Nov 08 01:18:10 Listens on TCP on the specified port instead of USB. Nov 08 01:18:25 "instead of usb" Nov 08 01:18:30 Well... Nov 08 01:18:51 e.g. if you're on the same wifi network, you can connect over wifi Nov 08 01:19:15 which has the potential advantages I mentioned above :) Nov 08 01:20:03 Yeah, got that wrong. Nov 08 01:21:29 you just have to plug it in to "enable" the tcp port Nov 08 01:21:34 @kakazza no I'm on cable. you just have to start it over cable Nov 08 01:21:35 then are free to unplug and connect wirelessly Nov 08 01:21:42 yea Nov 08 01:21:44 kakazza: then you can disconnect the cable Nov 08 01:21:50 Yeah, I was confused for a moment, heh. Nov 08 01:21:53 aah Nov 08 01:21:56 yeah it's pretty cool Nov 08 01:22:14 It used to be a pretty bad idea - somewhat rather quite insecure Nov 08 01:22:20 but with the secure adb these days, it's much better Nov 08 01:22:34 it still doesn't persist through reboot though Nov 08 01:22:51 someone can't randomly connect to your phone without your knowledge Nov 08 01:22:51 and I'm on a locked down network so I don't have any security concerns Nov 08 01:22:57 ^ right Nov 08 01:23:24 Eclipse/IDEA pick the device up just like that? Nov 08 01:23:30 i think ISP can push stuff to your phone without u knowing Nov 08 01:24:01 ... Nov 08 01:24:05 I don't think so, no. Nov 08 01:24:15 if your phone is publicly visible then yes.. Nov 08 01:24:27 but now you have to allow devices explicitly for adb to work Nov 08 01:24:36 and I don't think your ISP would be doing that Nov 08 01:24:44 maybe some malicious 3rd party though Nov 08 01:25:10 (I hope my isp isn't malicious) Nov 08 01:25:10 regardless I'm behind a gateway so… Nov 08 01:25:28 but it works ... Nov 08 01:25:51 DJ-Rack: IF you allow some random device yes Nov 08 01:26:02 you have to allow the device on your phone now Nov 08 01:26:10 phone/tablet Nov 08 01:26:21 after every call i make i get a popup that i cant control, why cant that popup become somthing malicious Nov 08 01:26:30 what? Nov 08 01:26:43 What popup? Nov 08 01:26:45 that's an entirely different network Nov 08 01:26:59 it's PRISM, quick turn your phone off Nov 08 01:27:12 DJ-Rack: you can probably look at logcat and figure out what app is doing it Nov 08 01:27:14 don't bother they'll just remotely turn it back on Nov 08 01:27:21 our ISP sends the amount i spend on each call i make as a popup not SMS etc.. how can they trigger that popup Nov 08 01:27:34 it's not with adb Nov 08 01:27:35 oh, nevermind Nov 08 01:27:37 it's using GCM push Nov 08 01:27:40 it also works on other devices not just android Nov 08 01:27:42 they're running a service on your phone Nov 08 01:27:50 that is legitimately receiving data Nov 08 01:27:55 from your cell company Nov 08 01:28:07 i dont want that Nov 08 01:28:07 when you make calls Nov 08 01:28:13 then uninstall the service Nov 08 01:28:26 where can i find it ? Nov 08 01:28:39 who installed it from the first place ? Nov 08 01:28:50 these don't sound like developer questions Nov 08 01:28:51 probably in the "apps" section of the settings Nov 08 01:29:28 you may not be able to remove it if is preinstalled by your carrier though Nov 08 01:30:35 dcow: i mean who installed it i just installed a custom rom etc.. and now i see an app called by the name of my ISP Nov 08 01:30:47 dcow: like how did that shit came in Nov 08 01:32:32 anyone know how it's possible to make table rows fill on oreintation changes or diff res (for example, 3 per row in portrait, 6 per row in landscape, or 3 on nexus 7 and 2 on phone), lengthy explaination means i don't know the term Nov 08 01:32:33 your sim card.. something you agreed to when you activated your phone on their service.. a website used to set your phone up.. Nov 08 01:32:46 i keep trying but the failure never ends Nov 08 01:33:02 s0beit: Different layouts are one possibility. Nov 08 01:33:06 s0beit: you're using a gridview? Nov 08 01:33:12 layout-land layout-sw600p etc Nov 08 01:33:18 no, tablelayout Nov 08 01:33:19 dcow: i think its my sim card since we have no website to set stuff up Nov 08 01:33:26 i guess gridview is better? Nov 08 01:33:47 kakazza: somebody actually said that before, but i know some apps dynamically adjust Nov 08 01:33:53 DJ-Rack: what carrier? Nov 08 01:33:58 would rather not make a bunch of different res Nov 08 01:34:01 dcow: etisalat Nov 08 01:34:02 painful Nov 08 01:34:21 s0beit: more painful than handling config changes dynamically??? Nov 08 01:34:32 whatever floats your boat Nov 08 01:35:35 dcow: even though i disabled that app/service i still get the popups after the call without being able to disable it Nov 08 01:37:39 dcow: kinda like this one http://community.giffgaff.com/t5/Submit-Great-giffgaff-Ideas/Disable-Balance-Pop-ups/idi-p/4701 Nov 08 01:39:02 Anyone know how to to simulate android loosing an apps fragments or state then restoring state? or osmething like that? not quite sure how to ask the correct question... Nov 08 01:39:21 basically i have an app in which i create some fragments with a pager adapter Nov 08 01:39:30 DJ-Rack: Find out what app does it. Nov 08 01:39:50 then i have a button which you click and it takes you to one of the fragments that has been created using its tag and does something on that fragment Nov 08 01:39:50 kakazza: its not an app Nov 08 01:40:11 kakazza: after reading about it here and there its like a delivery notice Nov 08 01:40:15 Yeah, they directly draw into your framebuffer over TCP. Nov 08 01:40:21 if i leave the app in the background on my phone for a long period of time and go back, the mPager, or fragment or something begins returning null Nov 08 01:40:37 they - NSA Nov 08 01:40:45 flipture you are probably storing references to your fragment in a static field somewhere. don't do that Nov 08 01:41:20 kakazza: this quot from some guy "hm, i thinked, and this message looks like flash sms: sms with system flag flash=1, which not stored in inbox and directly showed on screen when received." Nov 08 01:41:24 dcow: i'm using the pager adapter to do it using getItem Nov 08 01:41:31 flipture: but you can simulate lifecycle events with an instrumentation. the easiest way to get one is to subclass a test case in a test application Nov 08 01:42:02 dcow: how else would I get access to a fragment? I went through a whole big thing asking around about how to do that and this seemed to be the best answer... Nov 08 01:42:25 flipture: getItem gets them from where? Nov 08 01:42:34 My thought to fix this now is just to check to see if the mpager is null or is returning null and then run my method to init the fragments again. Nov 08 01:42:38 (sorry I dc'd for a few seconds so idk if you replied) Nov 08 01:42:59 dcow: getitem is an overridden method inside of MyFragmentPagerAdapter which extens FragmentStatePagerAdapter Nov 08 01:43:11 flipture: yes. where do the fragments come from? Nov 08 01:43:20 inside of get item, its storing the fragment reference inside of a map... Nov 08 01:43:28 where is the map located? Nov 08 01:44:12 dcow: its inside the fragmentPagerAdapter... should I stick it outside of that class and in the main class? Nov 08 01:44:38 I'm assuming when this happens, the fragments are going to have been recreated. does that sound right? Nov 08 01:45:14 flipture: and is the map a static field/member? Nov 08 01:47:03 dcow: the map is a private Map which inside the FragmentStatePagerAdapter gets initialized to new HashMap(); Nov 08 01:47:07 does that answer yoru question? Nov 08 01:47:22 i'm guessing answer is no, its not set to static Nov 08 01:47:38 Is the pager adapter static? Nov 08 01:47:48 dcow: yes Nov 08 01:48:26 at its only reference is probably in something that gets destroyed when the activity is cleaned up Nov 08 01:48:40 so that means once its set it wont' change? mybe it shoudl nto be static so that when the app is brought back into life? Nov 08 01:49:10 dcow: the fragmentPagerAdapter was being called from onCreate Nov 08 01:49:27 its now in its own method but that is still called from onCreate Nov 08 01:49:27 flipture: basically, you need to structure your app so that any content that is needed is retrieved while the activity is alive. basically, don't rely on static things holding references Nov 08 01:49:57 in general the solution to your problem is to, yes, make sure you always reinitialize all the fragments when the app is created Nov 08 01:50:06 so you're saying instead of holding references to the fragments, do it dynamically in some way? or just recreate them every time? Nov 08 01:50:15 oh ok Nov 08 01:50:28 thing is, i do have that initFragments in onCreate Nov 08 01:50:33 so it shoudl be recreating it Nov 08 01:50:42 well recreating every time defeats the purpose of the fragmentpageradapter Nov 08 01:50:52 but you have to "recreate every time" at some level Nov 08 01:50:55 if it gets to the point when it recreates it, the fact that its static shouldn't matter because it will not really have been created yet Nov 08 01:51:00 and that's usually tied to the life of the activity Nov 08 01:51:02 dcow: right Nov 08 01:51:15 it's fine if the class is static. Nov 08 01:51:25 i guess im just not sure what does and does not get called within the new-life (?) of the activity lol Nov 08 01:51:41 so if it dies... so end of life of activity Nov 08 01:51:44 while its in the background or something Nov 08 01:51:47 then i bring the app back up Nov 08 01:51:55 oncreate will be called again Nov 08 01:51:55 it will run its savedInstanceState stuff right? Nov 08 01:51:58 right Nov 08 01:52:11 and it SHOULD be recreating the pageradapter... Nov 08 01:52:19 savedinstancestate will only be provided for configuration changes Nov 08 01:52:19 becuase it is being called from onCreate Nov 08 01:52:40 (at least reliably) Nov 08 01:52:51 right :) Nov 08 01:52:55 basically, acquire all your resources in onCreate Nov 08 01:53:01 release them ondestroy Nov 08 01:53:06 hum so i wonder if its sometihng else thats causing it to be null Nov 08 01:53:12 i dno't think i have any onDestroy Nov 08 01:53:21 don't try to hold stuff in memory between an ondestroy and an oncreate Nov 08 01:53:24 atelast not overridden... woudl there be any reason to do it manually? Nov 08 01:53:26 because it won't always work Nov 08 01:53:28 right Nov 08 01:53:31 i don't believe I do Nov 08 01:53:39 (unless you're using a retained fragment) Nov 08 01:53:43 nto intending to atleast. and it doesn't appear that i do Nov 08 01:54:04 well just double check everything then. Nov 08 01:54:10 yeah Nov 08 01:54:27 what i did was put a try/catch in where it references the mPager and it did tell me that it was null Nov 08 01:54:28 you're probably forgetting to initialize your fragments in one case Nov 08 01:54:39 and now i've added a test to see if its null and run the init again if it is Nov 08 01:54:46 is mPager static? Nov 08 01:55:01 no Nov 08 01:55:13 if you initialize mPager in onCreate it should not be null Nov 08 01:55:20 right :-\ Nov 08 01:55:25 unless you only initialize it in certain cases Nov 08 01:56:03 would it help to post some code? if you have a moment to peek? Nov 08 01:56:16 dcow: kakazza to clear things up its was a ussd code that they send to our phones thats all Nov 08 01:56:26 flipture: what's the lingering question, then? Nov 08 01:56:45 well im just still not sure why its returning null after a while Nov 08 01:56:51 becuase it seem si'm doing everything the way you're suggesting Nov 08 01:56:52 already Nov 08 01:56:54 DJ-Rack: yeah it sounds like an annoying feature, not a security hole or anything Nov 08 01:57:24 flipture: post the code if you want. pastbin or SO Nov 08 01:57:31 (not in here) Nov 08 01:57:34 dcow: well, if you have a moment, i'd greatly appreciate a peek... http://pastebin.com/db1eUeFT Nov 08 01:57:38 dcow: of course :) Nov 08 01:58:00 line 214 is the initFragments() Nov 08 01:58:01 I wonder if Dalvik conforms to the word tearing bit of the Java spec.. Nov 08 01:58:13 You can see the getItem on 247 Nov 08 01:58:41 and the try catch where i'm seeing the null begins on 363 Nov 08 01:59:41 Looks like it does. Nov 08 02:00:15 flipture: I bet it's because you setcontentview before you initialize the pager Nov 08 02:00:51 dcow: huh. i coudl try to put it below new mMyFragmentPagerAdapter Nov 08 02:00:59 dcow: where does the ussd function gets stored i mean who says *#0*# is for testing (in samsung note 3) etc.. is it stored locally on the phone or ? Nov 08 02:03:19 flipture, static MyFragmentPagerAdapter mAdapter; Nov 08 02:03:44 crt: it should be static? Nov 08 02:03:57 ye probably it should Nov 08 02:04:32 compiler should complain thou Nov 08 02:04:57 crt: ok, I'll give that a shot as well. I stuck the setContentView below the init of the fragmentpageradapter Nov 08 02:05:28 crt: compiler was ok with it Nov 08 02:06:14 Now I just load it up on my phone and give it a few days and see :) Nov 08 02:06:23 I appreciate the help dcow and crt Nov 08 02:06:40 I'm working with fragmentpageadapter and therre should not be setContentView in there Nov 08 02:06:52 flipture: you can poke lifecycle events via a test app Nov 08 02:07:03 and crt why should mAdapter be static? Nov 08 02:07:09 I would argue the opposite Nov 08 02:07:14 Hi. I am trying to load drivers so I can test my android app on a device. I'm using Windows 8, but after I update driver software it says "A problem was encountered while attempting to add the driver to the store". Has anyone encountered this before? Nov 08 02:07:26 crt: static fields will get you into trouble Nov 08 02:07:46 the problem flipture is experiencing is due to an incorrect order of initialization somewhere Nov 08 02:07:46 dcow: static just means its one variable for all instances Nov 08 02:07:58 using a static reference will hide the problem Nov 08 02:08:02 yeah he does not want that Nov 08 02:08:22 anyone know why AS bellyaches that URI is not registered Nov 08 02:08:36 static also means you might end up leaking a context if you're not careful. Nov 08 02:08:41 flipture: I would advise you do not make the field static Nov 08 02:08:56 g00s: Does your project had an Android module? Nov 08 02:08:57 *have Nov 08 02:09:03 Nilium: if the class was not static then he would be leaking a context Nov 08 02:09:13 dcow: hum ok. I agree that it shouldn't be changing mid run anywho Nov 08 02:09:22 and if it recreates it, its set where it should be to get created for a new lifecycle Nov 08 02:09:41 Hi. I am trying to load drivers so I can test my android app on a device. I'm using Windows 8, but after I update driver software it says "A problem was encountered while attempting to add the driver to the store". Has anyone encountered this before? Nov 08 02:09:43 dcow: A class, yes, but a field? Nov 08 02:10:15 Last I checked you were talking about a static field. Nov 08 02:10:35 I have my adapter init in parent onCreate method Nov 08 02:10:36 Nilium: yes. Nov 08 02:10:47 definetly not another on create in child fragment adapter Nov 08 02:10:49 Though I'm not paying much attention to what the type of the field is. Nov 08 02:11:09 I'm saying if the class he is storing in the field was not static, and the field was, he would leak the context Nov 08 02:11:28 Nilium: you are right, a static field can leak a context Nov 08 02:11:47 i've not heard the term field before Nov 08 02:11:47 but he's storing a nested class and not an inner class in the field Nov 08 02:11:56 so it does not hold a reference to the activity Nov 08 02:12:03 are we considering my adapter a field? Nov 08 02:12:17 flipture: Member. Nov 08 02:12:17 Well, member variable. Nov 08 02:12:18 Or instance variable. Nov 08 02:12:26 you have a field in your activity that stores a reference to your adapter Nov 08 02:12:39 the adapter does not, however, store a reference to your context Nov 08 02:12:43 so it's fine Nov 08 02:13:00 (in the hypothetic scenario of making the field static) Nov 08 02:13:03 yeah Nov 08 02:13:04 cool Nov 08 02:13:36 i'd shove init of adapter in onCreate and make it a static field for this class Nov 08 02:13:44 Nilium thanks; forgot to include that module in settings.gradle Nov 08 02:14:16 crt: the nit is in the onCreate Nov 08 02:14:19 but I'm not Java expert Nov 08 02:14:19 *init Nov 08 02:14:53 eh i see Nov 08 02:14:55 you made a function Nov 08 02:14:56 ok Nov 08 02:15:10 yeah it was directly in onCreate but i broke it out jsut for clenliness Nov 08 02:15:12 then i'd just make static and it should work :D Nov 08 02:15:38 * Nilium just uses Scala, so static fields are off limits. Nov 08 02:15:39 on pastebin its hard to jump around to check for functions ;) Nov 08 02:15:50 crt: yep :) Nov 08 02:15:57 flipture: what I'm wondering (I don't recall the specifics at the moment) is if, when you setcontentview and the views have saved state, if the views are reconstructed Nov 08 02:16:06 crt: and make what static? Nov 08 02:16:20 the adapter "field" Nov 08 02:16:41 something guys here advised against Nov 08 02:16:44 for valid reason Nov 08 02:17:00 if that's the case, then you have to create the adapter and load it with fragments before setcontentview otherwise the pager's state will be restored and it will try to reference a field that has not been initialized. but I *don't* think that's the case Nov 08 02:17:12 crt what will making the field static do? Nov 08 02:17:17 just curious Nov 08 02:17:23 how will that solve the problem? Nov 08 02:17:35 it just does :D Nov 08 02:17:36 dcow: yeah i'm not sure. Nov 08 02:17:39 LOL Nov 08 02:17:44 want ot know whyyyyY!! :) Nov 08 02:17:49 crt that's not a valid reason to use a solution Nov 08 02:18:02 he could be breaking it in more insidious ways by using a static field Nov 08 02:18:13 almost everyone I've talked does not recommend using static fields to store data in android Nov 08 02:18:16 I'm not nearly expert enough in Java to take this conversation any further Nov 08 02:18:34 yet I get this static stuff from C Nov 08 02:18:39 because, while it works sometimes, the dalvik vm can wipe static definitions out at a whim Nov 08 02:18:47 the static shit has nothing to do with c Nov 08 02:18:59 static in c is different Nov 08 02:19:01 anyway Nov 08 02:19:02 Hi. I am trying to load drivers so I can test my android app on a device. I'm using Windows 8, but after I update driver software it says "A problem was encountered while attempting to add the driver to the store". Has anyone encountered this before? Nov 08 02:19:29 anyway pm me the solution when you find it - apparently my android program is messed as well :D Nov 08 02:19:53 if I'm still around I will (; Nov 08 02:21:03 bugs are hard when apps get big... lol Nov 08 02:21:05 and crt, I'm not saying you can't use static members, but your application should be able to be brought up from nothingness with a saved state and function properly. for this to work you should not reference *data* in static members unless they are always initialized statically. Nov 08 02:21:13 flipture: LOC? Nov 08 02:21:28 LOC? Nov 08 02:21:31 lines of code? Nov 08 02:21:51 you know how to find out in eclipse? Nov 08 02:22:08 so there is a problem when you store a reference to data that is obtained dynamically in a static field Nov 08 02:22:32 and when you don't handle the even that the static class definition is wiped from memory Nov 08 02:22:33 dcow, look how f***ed i am: https://github.com/Letme/give-me-coinsMonitoringApp/blob/master/src/give_me_coins/dashboard/MainScreen.java <- and that is why I need to have a solution Nov 08 02:23:56 crt your final constants should be static. Nov 08 02:23:59 that's OKAY Nov 08 02:24:10 but everything else should not be Nov 08 02:25:06 ye well... as you can see I have a big problem :D Nov 08 02:25:25 so I'd be happy with solution Nov 08 02:26:15 crt, yes. you can't just make everything static. what's going to happen is, if someone navigates away from the MainScreen, and then back up to it and a new instance of the activity is created, all the fields will be as they are according to the original MainScreen Nov 08 02:26:34 this may be what you want, but if so, you should either flag mainscreen as a singletop activity so it doesn't get recreated Nov 08 02:27:06 or you should store global state on disk and load it onCreate and populate your (now nonstatic) member fields Nov 08 02:27:14 singletop? Nov 08 02:27:21 you can also store global state in an application instance Nov 08 02:27:31 which is guaranteed to be loaded before any activities or services are Nov 08 02:27:36 If i want to access phone calls live, I should start in telephony manager right? Nov 08 02:27:51 but that "global state" will die if the application does (different from activity) Nov 08 02:27:51 android:launchMode="singleTop" ? Nov 08 02:27:59 yeah Nov 08 02:28:23 you would use that if you only ever want one instance of your MainScreen activity to be running (in a given task) Nov 08 02:28:41 actually thats what I am already doing Nov 08 02:28:48 but ok Nov 08 02:29:01 seems valid to put it down into manifest Nov 08 02:29:08 k then the static modifier is (somewhat) superfluous Nov 08 02:29:27 otherwise I should play with storing stuff around Nov 08 02:29:40 which doesnt work nearly as good as setting few "global" variables Nov 08 02:30:00 you can get "global" variables via an application instance Nov 08 02:30:21 but even that shares pitfalls with the static variables Nov 08 02:30:40 well if application is runined I dont care where variables go Nov 08 02:30:45 you can't rely on application instance variables to be available if you set them in an activity the next time the activity loads Nov 08 02:30:47 otherwise I'd used SharedPrefs Nov 08 02:31:01 but, if you initialize everything in your application oncreate you should be fine Nov 08 02:31:12 basically you want to avoid a false sense of security that static things give Nov 08 02:31:31 I init everything in onCreate - thats how I understand it Nov 08 02:31:37 then other functions change it Nov 08 02:31:40 that's true Nov 08 02:31:44 that's also fine. Nov 08 02:31:46 sorry flipture to steal you're question liekt this Nov 08 02:31:57 so what you want to do to force this is to remove the static modifiers Nov 08 02:32:18 because I think you're not quite understanding the entirety of what they imply Nov 08 02:32:27 crt: it's relevant to flipture too Nov 08 02:32:30 crt: np :) Nov 08 02:32:39 having to catch up... phone call :) Nov 08 02:32:52 sorry I just went though this whole static thing when I was learning android Nov 08 02:32:55 with singletop application runs much faster Nov 08 02:33:32 I didn't quite understand the android app model and though I could have my state retained in static fields Nov 08 02:34:04 if I didn't put it in the activity then I could have my activity die and be recreated and just reference some static field in another class. Nov 08 02:34:08 when going through activities - no. Nov 08 02:34:11 (or even it's own) Nov 08 02:34:32 but with fragments you really dont have multiple activities anymore Nov 08 02:34:43 and this works when you're playing with the app and using it and the system isn't killing your activityies or wiping your static class definitions Nov 08 02:35:01 crt you still do have many activities (possibly) Nov 08 02:35:24 a fragment is a basic user interface functional (to your app) element Nov 08 02:35:32 but I use them just to get results from them Nov 08 02:35:40 what? Nov 08 02:35:47 fragments give your results? Nov 08 02:35:52 no Nov 08 02:35:52 doesn't have to be a UI ;) Nov 08 02:35:58 ^ true Nov 08 02:36:06 sorry I misspoke Nov 08 02:36:09 activities give me results - fragments just show results as UI Nov 08 02:36:31 so actually that activity never "reloads" Nov 08 02:36:40 it doesnt expire... Nov 08 02:36:45 what? Nov 08 02:36:57 crt it should be more like services give you results and activities show them Nov 08 02:37:09 services or persistent state Nov 08 02:37:20 well you have activityForResult() Nov 08 02:37:41 so that activities should not have statics holding state between them Nov 08 02:37:43 yeah, that's for getting results from a finished activity Nov 08 02:38:08 yes, there are intents in the forward direction and activity result for the backward direction Nov 08 02:38:34 you pass around *references* to content and each activity should load the content on its own Nov 08 02:38:35 in case of fragment activity, it never dies except if UI dies - then you're crapped anyways Nov 08 02:38:38 unless it's super simple Nov 08 02:39:33 I'm not sure what you mean Nov 08 02:39:48 activites *may not* does even if their ui is gone Nov 08 02:39:55 die* not does Nov 08 02:40:19 or they may if the user navigates away from your app and the system kills your process Nov 08 02:40:32 I am talking about fragment activity - Nov 08 02:40:38 no different Nov 08 02:40:50 yes and if system kills my process then calls onCreate Nov 08 02:40:57 (unless fragment activity calls finish onPause) Nov 08 02:40:59 where I instance everything again Nov 08 02:41:24 crt so you have the right idea. but you're using static fields imporperly Nov 08 02:41:43 if you obtain everything onCreate, then you should be able to store it in non-static fields Nov 08 02:42:02 if you do that, you'll never accidentally reference a static field that hasn't been initialized Nov 08 02:42:31 ok Nov 08 02:42:31 and in this case static isn't saving you memory or anything if you only ever have one instance of your activity running Nov 08 02:43:20 Hi, I am able to grab an image byte[] from camera preview and save it as jpg. This seems to work and I can see the image is saved. But I would also like to load the image and feed it back to the camera preview as a byte[] array. How can I convert from the saved jpeg back to the byte[] NV21 format of the camera preview? here's what i got so far: http://pastebin.com/wgNYpweM Nov 08 02:44:33 anyway, got to go, hope I was helpful. In Android, everything should be initialize onCreate (or later, whatever your want) and onCreate is only called after the activity is instantiated (because it's not static) so just keep everything you need in normal fields, not static ones). if there are constants that don't change (ever) or other meta fields then they can be static, that's fine. you just want to avoid abusing static fields to store state. Nov 08 02:45:01 anyone here familiar with bcrypt Nov 08 02:45:02 basically, don't rely on static fields to store dynamically set data Nov 08 02:45:09 thanks dcow Nov 08 02:45:29 thats the part i'm missing on my journey Nov 08 02:45:40 search stack overflow, there's a few good posts on static variables in android **** ENDING LOGGING AT Fri Nov 08 02:59:58 2013