**** BEGIN LOGGING AT Tue Dec 03 02:59:58 2013 Dec 03 03:10:25 bah guess I'll start over Dec 03 03:11:51 hello Dec 03 03:26:30 Is there something on android similar to NSURLCache in iOS where I can interrupt some requests of a WebView and return my own local files? Dec 03 03:27:02 ie i'm developing some new JS that's not been pushed to the server yet, but I want to make it work before i commit Dec 03 03:29:15 HI, in my console developer i only can see the comments made in my language. Is it any way to see all the comments in all languages? Dec 03 03:59:42 should I be getting eclipse 32 bit or 64 bit if I want to install the ADT plugin? Dec 03 03:59:54 I run a 64 bit PC. Dec 03 04:00:52 where's the /gen folder supposed to go in android studio gradle project?? Dec 03 04:01:29 Snuupy: Just install the ADT package from google Dec 03 04:01:31 it comes with everythign Dec 03 04:01:34 *everything Dec 03 04:02:16 oh Dec 03 04:02:21 that thing isn't an installer, right? Dec 03 04:02:22 just a zip file? Dec 03 04:07:13 Snuup: yes Dec 03 04:09:28 hrm Dec 03 04:09:29 okay Dec 03 04:09:46 so I have to use a separate eclilpse for android dev? Dec 03 04:09:56 I already have eclipse for some other stuff though... Dec 03 04:10:05 just add the sdk Dec 03 04:10:14 but then should I get eclipse 32bit or 64bit? Dec 03 04:10:18 for that other stuff Dec 03 04:10:19 g00s do you use eclipse? Dec 03 04:10:33 not atm; AS Dec 03 04:10:39 er Dec 03 04:10:51 http://www.eclipse.org/downloads/ Dec 03 04:10:59 I can get windows 32/64 Dec 03 04:11:28 stuck converting this file manually because eclipse is confusing me senseless Dec 03 04:13:08 Huhhh...this logged itself in....never mind Dec 03 04:13:48 anyone know where the /gen file goes in AS gradle build? Dec 03 04:13:56 or is that an eclipse thing Dec 03 04:14:50 Couldnt tell you - dont use AS yet Dec 03 04:14:55 What do you guys use to backup your eclipse directory? Dec 03 04:15:02 But I wouldnt imagine it was an Eclipse thing Dec 03 04:15:21 AndreYonadam: If you mean workspace, then an Ext. HDD and 2 online backup places Dec 03 04:15:41 Anthaas: do they automaticly have backups? Version revision? Dec 03 04:15:54 You mean some sort of version control? Dec 03 04:16:15 There are a few - Git, Subclipse, etc. that you can use. Dec 03 04:17:49 yeah but like I think dropbox has versions of your file Dec 03 04:17:55 like it automaticly stores them Dec 03 04:17:58 don't Dec 03 04:18:00 use dropbox Dec 03 04:18:06 yeah I know I was just saying lol Dec 03 04:18:14 i mean for rough backups Dec 03 04:18:19 i am debugging in eclipse Dec 03 04:18:21 but like secondary just incase stuff Dec 03 04:18:24 and it seems to be frozen Dec 03 04:18:28 I don't really know if this might be true or not, but I think evernote screwed up my keystore. Lucky I wasn't going to update that app again. Dec 03 04:18:29 what could the reason be? Dec 03 04:18:36 I have a free 50GB dropbox accoutn - not got a single thing stored in it lol Dec 03 04:18:46 Andre: wow Dec 03 04:18:51 dropbox isnt good backup. if you screw up and corrupt files, it will sych crap to other devices Dec 03 04:18:55 AndreYonadam: http://developer.android.com/sdk/index.html#download Dec 03 04:18:58 32 or 64 bit? lol Dec 03 04:19:02 any ideas would be appreciated Dec 03 04:19:06 64 Dec 03 04:19:08 I run a 64 bit PC, but will that conflict with anything? Dec 03 04:19:10 if it asks you Dec 03 04:19:11 no Dec 03 04:19:13 no Dec 03 04:19:14 it won't Dec 03 04:19:14 okay Dec 03 04:19:16 cool Dec 03 04:19:17 I'll get that then Dec 03 04:19:21 thanks Dec 03 04:19:34 Eeeeeee: I don't know if it can theoreticly screw up my keystore. not sure. Dec 03 04:19:43 I was wondering does anyone have any thoughts on frameworks for pubsub realtime communication on Android? I'm thinking of something like a socket.io client.. but I've been having tons of trouble with reliability with the socket.io clients available Dec 03 04:19:47 Anthaas: I was considering getting amazon S3 lol. Dec 03 04:19:52 And running my files on it. Dec 03 04:19:52 is there any way I can find out WHERE it is freezing? Dec 03 04:19:59 ir7466: post a log Dec 03 04:20:01 it's not even hitting my breakpoints its so slow Dec 03 04:20:09 AndreYonadam: Create a repository on your computer somewhere and just git stuff Dec 03 04:20:18 AndreYonadam; just the things I see in LogCat? Dec 03 04:20:23 ir7466: yeah Dec 03 04:21:02 Anthaas: I don't know if I should get an SD card or USB drive. I only have two usb slots on my laptop and I have 1 sd card slot so idk. Dec 03 04:21:07 12-03 12:18:28.134: E/ThrottleService(148): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory) Dec 03 04:21:16 no idea what that means Dec 03 04:21:24 but that's the newest red message Dec 03 04:21:57 ir7466: Can you post the whole thing here : www.pastebin.com and link us up Dec 03 04:22:10 how do I save it all to a text file? Dec 03 04:22:16 copy paste Dec 03 04:22:17 sorry Dec 03 04:22:19 never mind Dec 03 04:25:28 you figured it out? Dec 03 04:26:02 no not yet, i'm just trying to find the cut off point of the log... there's a lot of entries from earlier today Dec 03 04:26:34 hey AS people, please look at a project and tell me if you have the gen folder, and where it is Dec 03 04:26:36 http://pastebin.com/zVK9MCc0 Dec 03 04:27:09 in relation to the gradle structure Dec 03 04:27:40 if it's not called gen, then where's your buildconfig and R files at Dec 03 04:27:53 shouldn't it be under src? Dec 03 04:28:00 not udner Dec 03 04:28:02 but the next one? Dec 03 04:28:03 src main? Dec 03 04:28:17 and is it's name gen, or is it build on AS? Dec 03 04:28:32 AndreYonadam: here's the log http://pastebin.ca/2488762 Dec 03 04:28:39 http://grab.by/swfe Dec 03 04:28:59 thank you andre Dec 03 04:29:05 your my fuckin hero Dec 03 04:29:08 you're Dec 03 04:29:33 wait Dec 03 04:29:38 that's eclipse bro Dec 03 04:31:45 Eeeeeee: Did you figure it out? Dec 03 04:31:53 ir7466: did you close the cursor? Dec 03 04:32:23 could you export it to gradle from eclipse? omg i would be so grateful Dec 03 04:33:20 Eeeeeee: Sure. Downaloding as we speak . Is it aviable for OSX? Dec 03 04:33:37 wow, good find andreyonadam Dec 03 04:33:38 ir7466: Idk but do you have to add an excpetion incase it can't read or write? Dec 03 04:33:43 ir7466: np Dec 03 04:33:54 ir7466: google helped me out a bit :D Dec 03 04:33:57 omg thank you Dec 03 04:34:04 np Dec 03 04:34:04 I believe so Dec 03 04:34:10 which error clued you in so I know to look for it in the future? Dec 03 04:35:28 W/CursorWrapperInner(355): Cursor finalized without prior close() Dec 03 04:35:31 http://stackoverflow.com/questions/15134143/w-cursorwrapperinner8375-cursor-finalized-without-prior-close Dec 03 04:35:37 You should close the Cursor object once you're done working with it. Dec 03 04:36:22 Eeeeeee: I'll be back. I couldn't figure out how to open it however I'll convert it for you. My mom keeps calling me over to eat. I'll be back. Dec 03 04:36:22 I'm guessing that's what he saw Dec 03 04:36:34 that's fine Dec 03 04:36:36 so basically just cursor.close(); when i've got the data I need? Dec 03 04:36:39 thanks Dec 03 04:36:57 ir7466: Yeah - as soon as you have used the cursor for whatever you need, close it. Dec 03 04:37:51 ok Dec 03 04:37:52 thanks Dec 03 04:37:56 out of curiosity, anyone here ever use spring reactor on an android project ? Dec 03 04:38:05 is the only sideeffect of not doing that a memory leak? Dec 03 04:48:13 is there anyone know how to change the spacing between items on the actionbar? Dec 03 04:48:17 I tried with http://stackoverflow.com/questions/9131954/is-there-a-way-to-reduce-the-spacing-between-the-action-item-icons-on-action-bar Dec 03 04:48:25 but it has no effect Dec 03 04:48:37 someone asked that recently Dec 03 04:48:53 it's me, actually Dec 03 04:48:55 i don't think they got an answer Dec 03 04:48:58 ah Dec 03 04:49:03 no response though Dec 03 04:49:25 wah >_< Dec 03 04:49:26 i saw that the buttons space (i think) when you rotate the device Dec 03 04:49:37 +out* Dec 03 04:50:10 hmm Dec 03 04:50:12 google might be trying Dec 03 04:50:19 to create a consistent experience Dec 03 04:51:03 which would make sense because they're moving menu button away from phone Dec 03 04:51:21 don't take my word for it though Dec 03 04:58:50 so if you have libraries in your eclipse project after converting, you're supposed to get rid of /lib and let maven get them from the internet right? Dec 03 05:01:56 Eeeeeee: I'm back. Shit I'm trying to figure out how to run this. Dec 03 05:02:06 hey Dec 03 05:02:17 i think i got although if you're converting anyway Dec 03 05:02:29 +it Dec 03 05:03:12 oh snap Dec 03 05:03:15 alright then Dec 03 05:03:22 cuz i just downloaded gradle Dec 03 05:03:29 I mean I didn't install it Dec 03 05:03:30 yet Dec 03 05:03:31 I don't know how Dec 03 05:03:34 lol Dec 03 05:03:36 lol Dec 03 05:03:39 what does it do Dec 03 05:03:40 ? Dec 03 05:03:49 it's a build system Dec 03 05:03:55 you have eclipse already Dec 03 05:04:05 i think it comes with plugin but maybe im wrong Dec 03 05:04:33 as an eclipse plugin? Dec 03 05:04:34 it's Android Studio's new build system Dec 03 05:04:36 So its like ANT? Dec 03 05:04:45 i think it's built in to the sdk Dec 03 05:04:48 or eclipse Dec 03 05:04:55 file export gradle files Dec 03 05:05:07 sry i would've said that earlier i thought you meant you were downloading AS Dec 03 05:05:10 yep like ant Dec 03 05:08:04 i haven't tried ant, but gradle uses maven/ivy for dependency management Dec 03 05:08:36 Eeeeeee: I honestly don't know what I did lol. I think it worked. http://ge.tt/api/1/files/6M8jlf61/0/blob?download Dec 03 05:08:38 Not sure though Dec 03 05:09:23 did you use the plugin in eclipse? Dec 03 05:09:26 yeah Dec 03 05:09:29 I think Dec 03 05:09:35 lol Dec 03 05:10:16 lol tell me if it worked. Dec 03 05:11:02 Can someone please tell me what Gradle/Maven/Ivy are and why I should be using them? Dec 03 05:11:02 it worked good enough !!! lol Dec 03 05:11:11 it gave me the gradle.build Dec 03 05:11:33 which keeps your project in eclipse structure i believe Dec 03 05:12:05 http://pastebin.com/DXy3E57v Dec 03 05:12:26 but uses this to show, manifest is under src, main Dec 03 05:12:43 java under src, man Dec 03 05:12:43 etc Dec 03 05:13:19 ^ Dec 03 05:14:40 thanks that's exactly what I needed Dec 03 05:14:44 np Dec 03 05:14:45 actually way more lol Dec 03 05:14:47 hope i actually helped Dec 03 05:14:48 lol Dec 03 05:14:53 now i dont have to write this shit out Dec 03 05:14:55 for an hour Dec 03 05:14:58 lmfao Dec 03 05:15:10 Can you two please explain what Gradle, Maven, Ivy etc are and why I should be using them? Dec 03 05:15:21 build management system Dec 03 05:15:26 ....? Dec 03 05:15:47 Right, I get that building is where all files are packaged etc to be able to run... Dec 03 05:15:52 But why would you need configure it? Dec 03 05:15:56 listen i'm new, so i shouldnt be telling anyone what they should or shouldnt use Dec 03 05:16:12 I have never touched Gradle etc and I've been doing this for a couple years! hahaha Dec 03 05:16:14 so it does it automatically Dec 03 05:16:33 and you can make it release two separate versions of your app Dec 03 05:16:47 targetting different api's or whatever (i'm pretty sure) Dec 03 05:17:25 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Goals-of-the-new-Build-System Dec 03 05:18:05 honestly i think ant, maven, ivy and gradle are basically all similar Dec 03 05:18:15 and developers will say there's is better Dec 03 05:18:48 the only reason i went to gradle is cause AS is kind of making you use it Dec 03 05:18:55 if you create a new project Dec 03 05:19:55 and if google's going with it instead of others they must believe it's gonna make developer's lives easier (that is my thinking anyway, and only an opinion) Dec 03 05:20:00 still deciding USB or SD card lmfao Dec 03 05:20:11 what for? Dec 03 05:20:34 extra laptop storage / transfering files Dec 03 05:20:43 ahh Dec 03 05:20:44 I only have two usb ports though Dec 03 05:20:54 I would have directly went with USb otherwise Dec 03 05:20:54 connect a terrabyte to it Dec 03 05:20:58 USB Dec 03 05:21:02 Ext. HDD Dec 03 05:21:03 it's still fast Dec 03 05:21:13 you can easily buy a cheap USB hub Dec 03 05:21:20 yeah Dec 03 05:21:23 Just because the machine only has 2 ports, doesnt mean you are limited to that Dec 03 05:21:52 true Dec 03 05:22:02 I have Ext. HDD too big Dec 03 05:22:06 might just get a massive Flash drive Dec 03 05:22:08 you're worried about speed of transferring? Dec 03 05:22:14 that looks like a good option Dec 03 05:22:15 not really Dec 03 05:22:27 get refurbished and get both Dec 03 05:22:27 most usb 3 drives are over 100mb/s Dec 03 05:22:29 ;D Dec 03 05:22:33 lol Dec 03 05:22:38 Do they actually have refurb? Dec 03 05:22:50 i buy refurb all the time Dec 03 05:22:57 flash drives though wtf? Dec 03 05:22:58 but i back things up properly as well Dec 03 05:23:02 maybe Dec 03 05:23:14 i can only lead you down the pass grasshopper Dec 03 05:23:14 lol Dec 03 05:23:27 lol Dec 03 05:23:53 just out of curiosity Dec 03 05:24:00 Is there a way to get a list of all the images on the android device without leaving my application? Dec 03 05:25:02 Andre, if you have a vanilla version of eclipse and load a project into it, is it normal for it to throw like 100+ errors? Dec 03 05:25:32 until you set it up correctly? Dec 03 05:26:01 Yeah Dec 03 05:26:10 I think Dec 03 05:26:23 I loaded a project I was working on a year ago and it threw errors like crazy Dec 03 05:27:15 damn Dec 03 05:28:08 what do you have to do to remedy it? Go through the code and update it, or is it a quick fix? Dec 03 05:28:42 like what do you mean importing a project. An old project? Dec 03 05:28:47 er Dec 03 05:28:53 no its like 6 days old Dec 03 05:29:30 hi all. quick question: can dalvik do lazy static initialization? my friend is getting an apparently uncatchable ExceptionInInitializerError when invoking some class's factory function, and my mind immediately wondered about this. Dec 03 05:29:36 Well, with my experiance it gave me a few build path errors, and other errors Dec 03 05:29:37 AS doesn't offer an option to convert to gradle Dec 03 05:29:41 it wasn't building R Dec 03 05:29:46 ah Dec 03 05:31:46 Do you know any good cloud backup services? Dec 03 05:31:53 ya Dec 03 05:31:55 what for Dec 03 05:32:05 personal professional website app Dec 03 05:32:43 do you mean the ones the automatically backup your computer for you? Dec 03 05:32:51 yeah Dec 03 05:32:53 that would be cool Dec 03 05:33:00 i've seen em on TV Dec 03 05:33:23 honestly i have a home server with raided hd to mirror files to both hard drives Dec 03 05:33:52 you can set cron to do it while you sleeep Dec 03 05:34:24 so then I have 3 copies.. you know worst case scenario ;) Dec 03 05:35:04 yeah Dec 03 05:35:05 if house burned down though Dec 03 05:35:06 AndreYonadam: http://www.bestbuy.com/site/drivestation-axis-velocity-2tb-external-usb-3-0-2-0-hard-drive/4164012.p?id=1218456765204&skuId=4164012&st=categoryid$pcmcat186100050005&cp=1&lp=1#tab=specifications Dec 03 05:35:07 i'm fucked Dec 03 05:35:16 you should always have an offsite as well Dec 03 05:35:19 yeah Dec 03 05:35:37 but i could probably recover 3 burned HD :P Dec 03 05:35:43 and if you can live without 7200 rpm http://www.bestbuy.com/site/canvio-connect-2tb-external-usb-3-0-2-0-portable-hard-drive/8914933.p?id=1218955985980&skuId=8914933&st=categoryid$pcmcat186100050005&cp=1&lp=5 Dec 03 05:35:44 thanks looney that loks pretty good Dec 03 05:36:17 need not thank, share some deal with me as well Dec 03 05:36:25 looking for junk myself Dec 03 05:36:38 oh yeah. I did see western digital came out with that personal cloud device Dec 03 05:37:36 but it was like size of an xbox, I guess it stays on Dec 03 05:38:07 Looney: Definatly I found a few good deals today. Dec 03 05:38:27 would love to learn about them Dec 03 05:40:24 Looney: Let me list them out for you Dec 03 05:40:25 http://www.newegg.com/Product/Product.aspx?Item=N82E16820211761 Dec 03 05:40:30 http://www.radioshack.com/product/index.jsp?productId=3155293 Dec 03 05:40:43 all hail AndreYonadam Dec 03 05:42:25 http://www.bestbuy.com/site/porsche-design-p9230-3-tb-3-5-external-hard-drive/6655438.p?id=1218769068794&skuId=6655438&ref=199&loc=aB8BeTfRgb8&siteID=aB8BeTfRgb8-fdMZBvpXavP3v1m1oB7kxQ Dec 03 05:42:32 http://www.amazon.com/dp/B007JR532M/ref=gb1h_tit_c-4_8542_75470100?smid=ATVPDKIKX0DER&pf_rd_m=ATVPDKIKX0DER&pf_rd_t=101&pf_rd_s=center-4&pf_rd_r=15V46K8ZPZ5C233HBP4D&pf_rd_i=5550342011&pf_rd_p=1683538542 Dec 03 05:42:48 http://www.amazon.com/dp/B009QZH7BU/ref=gb1h_tit_c-4_8542_1aa674ca?smid=ATVPDKIKX0DER&pf_rd_m=ATVPDKIKX0DER&pf_rd_t=101&pf_rd_s=center-4&pf_rd_r=15V46K8ZPZ5C233HBP4D&pf_rd_i=5550342011&pf_rd_p=1683538542 Dec 03 05:43:00 I know.... I was mostly looking at memory today... hold up Dec 03 05:43:41 http://www.groupon.com/deals/gg-mota-iphone-controlled-helicopter-2 Dec 03 05:43:56 ^^ not sure if I should get that Dec 03 05:44:52 https://www.groupon.com/deals/gg-call-of-duty-modern-warfare-3-ps3-xbox360 Dec 03 05:47:07 Might get this for Android -dev : http://www.dailysteals.com/icemonkey/#deals/14782 Dec 03 05:47:15 also here. http://www.dailysteals.com/icemonkey/#deals/15068 Dec 03 05:48:41 I guess thats it Dec 03 05:48:46 all the actuall good stuff sold out Dec 03 05:48:55 like the 64gb SD card for 18$ Dec 03 05:52:07 don't buy from groupon Dec 03 05:52:32 bought nexus7 will take 2 1/2 weeks to come in Dec 03 05:52:39 took them like 6 days to answer my email Dec 03 05:52:49 still haven't got tracking yet Dec 03 05:52:56 Hacker news was apparently abuzz with collective scala hatred today. That was interesting. Dec 03 05:53:04 lol Dec 03 05:53:45 and how they're not gonna change their link selection algorithm Dec 03 05:54:00 lmfao Dec 03 05:54:52 Dunno about that. I check the site infrequently. Dec 03 05:54:52 It's usually a cesspit. Dec 03 05:55:15 i love some of the articles Dec 03 05:55:24 Too much startup masturbation/fanfiction, too little in the way of actually interesting news. Dec 03 05:55:24 but it's harder and harder to find them Dec 03 05:55:34 did you see the 4chan parody of HN? Dec 03 05:55:39 omg it was so fuckin funny Dec 03 05:55:48 google it if you missed it Dec 03 05:55:55 Startup culture in general is just bizarre, kind of creepy, and ultimately really nearly disgusting Dec 03 05:56:26 paul graham does a shitty job controlling the community Dec 03 05:56:28 4chan parody of HN.. links to tons of anime and porn then? Dec 03 05:56:37 That's my general impression of 4chan, anywho. Dec 03 05:56:39 you'll love it Dec 03 05:56:54 they're making fun of all the stupid shit HN promotes to the front page Dec 03 05:57:21 http://rbt.asia/g/thread/S38087806 Dec 03 05:57:31 ""Why I stop coding and focus more on my blog" 39123 comments" Dec 03 05:57:36 "Why everything you know is wrong... again." Dec 03 05:57:50 [231 points] Show /hn/: I ripped off an existing product and added Bootstrap to it Dec 03 05:59:13 Sounds about right Dec 03 05:59:13 they get funnier and funnier, mimics the startup bs culture and their stupid posts perfectly Dec 03 05:59:13 Why [popular technology] is [unexpected opinion] Dec 03 05:59:13 "Ask HN: Why is nobody using [obscure niche technology from the 80s]?" Dec 03 05:59:14 k last one Dec 03 05:59:14 Hello Dec 03 05:59:14 sry Dec 03 05:59:14 I'm encountering build errors from a missing import Dec 03 05:59:16 hey AndreYonadam you still around Dec 03 05:59:31 Eeeeeee: of course Dec 03 05:59:36 sweet Dec 03 05:59:50 How can these be fixed? Dec 03 05:59:57 with magic Dec 03 06:00:06 you're gonna have to explain the problem further Dec 03 06:00:29 The first one to occur was in libnativehelper Dec 03 06:01:09 http://pastebin.com Dec 03 06:01:32 The file libnativehelper/include/nativehelper/UniquePtr included it Dec 03 06:01:58 I can't access the original make logs, I can do make again and give the results Dec 03 06:02:27 Eeeeeee: Lol empty pastebin url Dec 03 06:02:43 ARE YOU NOT SEEING MY CODE? Dec 03 06:02:45 lol Dec 03 06:03:08 sorry, no i decided to throw this in eclipse Dec 03 06:03:17 and it's mainly all "R cannot be resolved to a variable" Dec 03 06:03:21 The word "disrupt" when used in a tech context needs to cause programmers to just burst into flames immediately. Dec 03 06:03:22 Or really anyone talking about tech. Dec 03 06:03:43 what did you do to fix? I'm bumbling around in eclipse like an idiot Dec 03 06:04:02 Eeeeeee, what's your problem? Dec 03 06:04:08 "Disrupt disruption" Dec 03 06:04:14 ok I swear last one :P Dec 03 06:04:35 ? Dec 03 06:04:50 I'm trying to convert eclipse projects to gradle Dec 03 06:05:45 The ADT only officially supports eclipse, and I've never used gradle Dec 03 06:06:05 Eeeeeee: The paste bin isn't your pastebin Dec 03 06:06:09 don't sweat it, just paste that stacktrace Dec 03 06:06:10 You'll have to set custom build steps upon file saves Dec 03 06:06:14 Eeeeeee: ITs your build path Dec 03 06:06:16 its wrong Dec 03 06:06:22 or the order is wrong Dec 03 06:06:26 thats what I ran with Dec 03 06:06:29 its null? Dec 03 06:06:46 kk Dec 03 06:08:08 lol whats null? Dec 03 06:08:41 his face Dec 03 06:08:45 my pastebin url Dec 03 06:09:34 hello everybody. Dec 03 06:10:21 i have some doubts regarding handler. The handler runs on the main thread so why does it need a runnable object while the post method is called ? Dec 03 06:12:31 yeah it is Dec 03 06:12:37 you linked pastebin.com Dec 03 06:12:58 that was to that guy lol Dec 03 06:23:52 good night guys Dec 03 06:24:16 will continue my journey with andorid devlopment tomorow. Until then, peace. Dec 03 06:26:02 Hello Dec 03 06:28:05 Is there a channel for Android Studio yet? Dec 03 06:28:29 Gentoon: should there be? Dec 03 06:28:34 probably Dec 03 06:28:51 There is a #Android-Studio Dec 03 06:28:57 but one nick haha Dec 03 06:29:03 lol Dec 03 06:29:27 i'm trying eclipse right now, literally two different worlds Dec 03 06:29:35 why should it be a separate channel from this one? Dec 03 06:29:37 Gentoon who is it ? Dec 03 06:30:05 probably shouldn't but you would receive more help Dec 03 06:30:23 Leeds: It would be off topic to Discuss IDE Specific bugs and such, would it not be? Dec 03 06:30:31 nope, I don't think so Dec 03 06:30:49 it felt like it earlier Dec 03 06:30:56 oh well we should shut down #Netbeans #Geany and #Eclipse then. Dec 03 06:31:07 you do that Dec 03 06:31:26 i'm guessing the majority here use eclipse? Dec 03 06:31:58 Eeeeeee: significant percentage Dec 03 06:32:03 though many use plain IntelliJ Dec 03 06:34:49 eclipse is ugly Dec 03 06:35:48 it doesn't make good use of space Dec 03 06:36:05 at least not til you customize it Dec 03 06:36:10 anyone doing Google Appengine EndPoints here with android? Dec 03 06:37:47 How do I detect when the GPS is in the searching mode (its working but it can't find a location)? Dec 03 06:39:49 Eeeeeee: android studio Dec 03 06:40:56 I am just trying to learn basics, but all the tutorials for Android Studio do not have this same project layout with the Fragmentation. Dec 03 06:41:10 Must be a new thing they just added Dec 03 06:41:21 they're really fragmented :P Dec 03 06:41:21 Gentoon: you want to use fragments? Dec 03 06:42:32 No, I haven't even learned them yet. But now the default package has a Fragment_Main.xml in android studio Dec 03 06:42:38 it didn't used to Dec 03 06:43:08 and it is the main xml for your main activity UI Dec 03 06:43:17 you don't want to, but there is one? Dec 03 06:43:19 At least it seems that way Dec 03 06:43:53 The template for a new project is different than in all the video tutorials, is what I am getting at. Dec 03 06:44:16 I think they made a recent change to the default project in AS, using a Fragment Dec 03 06:44:24 solution to what to do with least file is not clear for you? Dec 03 06:44:43 You start with 2 tabs, main activity dot java as sual Dec 03 06:45:07 but insteal of the activity main xml, now there is Fragment)main.xml Dec 03 06:45:19 What? Dec 03 06:45:41 All I am saying is that it is hard to follow the tutorials when it is all different now Dec 03 06:46:24 +1 Dec 03 06:47:24 you may have skipped some important tutorial regarding file creation and deletion Dec 03 06:47:49 No Dec 03 06:47:55 You do not understand Dec 03 06:48:00 are you talking about master detail flow? Dec 03 06:48:21 No Dec 03 06:49:17 Blank Activity Dec 03 06:49:23 i didn't realize that was a recent change Dec 03 06:49:26 Get the latest build and you will see what I mean Dec 03 06:49:41 i had to roll back cause the bugs were driving me nuts Dec 03 06:50:09 Before you would make changes in activity_main.xml Dec 03 06:50:22 but now there is a fragment Dec 03 06:50:33 fragment_main.xml Dec 03 06:50:39 I have no idea why Dec 03 06:51:35 But when you are editing it, their is no tab for design view like there is for activity_main.xml Dec 03 06:51:42 have you learned how to create files and add activities to the project? Dec 03 06:51:50 but you don't change activity_main.xml Dec 03 06:51:59 Of course Dec 03 06:52:08 What does that have to do with anything though Dec 03 06:52:28 I am just saying... what are they doing with this fragment crap in the default project template? Dec 03 06:52:44 ah you are complaining :) Dec 03 06:52:48 hahahaha Dec 03 06:52:56 thought you are asking for help Dec 03 06:53:03 sorry, misunderstood you Dec 03 06:53:05 i think it's both Dec 03 06:53:14 help me it sucks Dec 03 06:53:26 you should stay away from fragments Dec 03 06:53:44 http://pastey.org/view/38ac5e03 Dec 03 06:53:46 that's what i'm doing Dec 03 06:53:55 this is the default activity_main.xml now Dec 03 06:54:10 Well they make it difficult to, now don't they Dec 03 06:55:18 the change will probably benefit people that haven't learned it yet, well i would hope, but you might have got caught in the middle of the learning the old way Dec 03 06:55:46 during the upgrade Dec 03 06:56:01 that happened to me with the gradle stuff Dec 03 06:57:52 seems they're changing stuff pretty rapidly. Dec 03 06:57:55 I might have just screwed something up Dec 03 06:57:57 maybe it's always been this way Dec 03 06:58:56 <_genuser_> hey guys what do you think about using the switch for a either/or type of choice. Dec 03 06:59:11 <_genuser_> altho, I am looking into making both states not show a "turned on" state. Dec 03 06:59:20 <_genuser_> unless there is a better choice. Dec 03 07:02:09 I mean guy earlier was like trying to make me tell him why he needed to use gradle, and i was like i don't know i'm new. He seemed mad actually Dec 03 07:03:04 Thank god for google Dec 03 07:03:05 http://google-android-studio.blogspot.com/2013/10/creating-non-frame-layout-with-android.html Dec 03 07:04:24 you should probably adapt the new way Dec 03 07:05:24 oh holy shit Dec 03 07:05:36 you were talking about blank activity this whole time? Dec 03 07:07:19 I told you that 2 times Dec 03 07:07:55 but following that post seems to break things even more :( Dec 03 07:08:05 honestly Dec 03 07:08:11 it took the pic Dec 03 07:08:27 for me to understand you, thought you were just lost Dec 03 07:09:28 sorry about that Dec 03 07:12:22 Can not get Design view now Dec 03 07:13:30 honestly all the templates disappeared for me completely Dec 03 07:13:38 until i downgraded Dec 03 07:14:38 /home/name/Desktop/android-studio/sdk/extras/templates Dec 03 07:14:59 https://github.com/jgilfelt/android-adt-templates Dec 03 07:16:35 Okay thuink I have it working how I want it noiw Dec 03 07:27:21 Gentoon make sure you check out the adt templates.. if you think the wizard saves you a lot of time you're in for a big surprise Dec 03 07:49:04 I have an activity containing a "menu" fragment with buttons. Clicking these buttons should change a "content container" in the layout. Where to put the onClickListener code? It makes sense that the activity is in charge of controlling the content displayed in the container, but on the other hand its the fragment which contains the buttons - their logic should be encapsulated in the fragment. Dec 03 07:51:13 guys, if you do not kill AS overnight and work/open two projects, how much memory would it hog Dec 03 07:53:40 Looney: 6gb? Dec 03 07:54:04 I count 3gb AS + emulator Dec 03 07:54:25 well, then, its something I am not interested in Dec 03 07:55:01 3 GB is helluva memory :'( Dec 03 07:55:15 could you lower the priority without it crashing Dec 03 07:55:19 is the question Dec 03 07:56:05 Eeeeeee: how are they related Dec 03 07:56:29 well you think they were ;) Dec 03 07:56:30 HEAT OK Dec 03 07:56:38 jk Dec 03 07:57:36 why would you need to do that anyway? just for convenience? Dec 03 07:57:46 do what Dec 03 07:58:06 leave emulator and ide up overnight Dec 03 07:59:05 by waiting them to launch you waste your life time Dec 03 07:59:14 leaving them overnight you waste.. ram? Dec 03 07:59:16 very true Dec 03 07:59:58 lol i would think it would be slower in the morning.. genymotion boots up super quick we must be talking seconds here Dec 03 08:01:04 g00s: hello :) Dec 03 08:02:31 Trying to use my tablet as a test device is AS Dec 03 08:02:39 but it just says waiting for device for ever Dec 03 08:03:22 hi squ Dec 03 08:03:49 Gentoon: have enabled developer mode? Dec 03 08:04:06 yes Dec 03 08:04:09 and usb debugging Dec 03 08:04:16 I can't use my android device on windows because of drivers Dec 03 08:04:24 is fine on mac Dec 03 08:04:31 I wouldn't know Dec 03 08:04:35 Don't use windows Dec 03 08:04:37 or Mac Dec 03 08:04:38 eww Dec 03 08:05:17 it must be a running practical joke not to tell new people about resources being capitalized Dec 03 08:07:36 what resources? Dec 03 08:08:35 well you guys got me good!!!! Dec 03 08:08:47 lol jk. the resources that make R.java go crazy Dec 03 08:10:18 Don't know why, but it hasn't happened to me until today. Dec 03 08:38:51 wow eclipse is powerful Dec 03 08:39:04 are you being sarcastic Dec 03 08:39:06 you must be Dec 03 08:43:03 lol i wish i was. First time trying it Dec 03 08:43:06 been using AS Dec 03 08:43:46 AS? Dec 03 08:43:53 android studio? Dec 03 08:44:00 that's IDEA based Dec 03 08:44:19 how can you say eclipse is better than IDEA?? Dec 03 08:44:43 android studio is not ready for productive use, its even better to use plain IDEA Dec 03 08:45:21 never used AS :) Dec 03 08:45:23 eclipse has its strenghts for sure, but they are not exactly in android-development Dec 03 08:45:57 for JavaEE / JSF / Server deployment stuff, eclipse beats IDEA imho - and it doesnt require to pay Dec 03 08:47:01 but Google switches to IDEA for a reason Dec 03 08:47:05 timroes, good morning just a quick question about the library Dec 03 08:47:27 while the popup is shows for undo and i exit my app i get a leaked view Dec 03 08:47:47 is there a way i can manually dismiss this popup before i exit the app? Dec 03 08:49:04 lemonxah: yeah you can :) Dec 03 08:49:39 would this be the right call ? mConversationsList.discardUndo() Dec 03 08:49:50 oh damn i forgot that in the docs of the new lib i just recognize :) Dec 03 08:49:57 yeah it is the right call :) Dec 03 08:50:06 its ok i read the docs and thought i would just ask Dec 03 08:50:10 thnx a lot :) Dec 03 08:50:11 https://github.com/timroes/SwipeToDismissUndoList#leaky-popup Dec 03 08:50:15 btw I love android studio, but actually I'm liking eclipse a lot too just poking around. Dec 03 08:50:15 great lib btw Dec 03 08:50:34 just wish i could fix this fuckin R.java problem Dec 03 08:50:43 in the old lib i described it, i will make me an issue (and hopefully find somet ime, but yesterday i finished work at 23 o clock... ) Dec 03 08:50:56 it's really started to get to me.. Do I have to lowercase java objects as well? Dec 03 08:51:42 heh yeah same its end of the year and they want to have release of the new version of our app out soon Dec 03 08:51:52 lemonxah: oh i described it : https://github.com/timroes/EnhancedListView/wiki/Delete-with-Undo below the source code, but yeah it's a bit too hidden Dec 03 08:51:53 its a complete rewrite and its not going to be ready Dec 03 08:53:14 yeah i see it there soz read over it Dec 03 08:53:42 my apologies for asking a question i should have already had the answer to :) Dec 03 08:53:55 no probs, bro Dec 03 08:54:12 so i am afk to do the work i get paied for Dec 03 08:54:33 enjoy :) Dec 03 09:04:34 Most devs only support 2.0 now as a minimum right? Dec 03 09:05:43 2.2i believe Dec 03 09:06:13 Thats good to know I was spending far too much time on 1.x Dec 03 09:06:25 Thanks for clearing that up Eeeeeee :) Dec 03 09:06:27 lol Dec 03 09:06:31 and honestly Dec 03 09:06:41 some guy was in here saying he only supports 4 and up Dec 03 09:06:59 lol Dec 03 09:07:02 which seemed a little selfish Dec 03 09:07:07 yep Dec 03 09:07:16 http://developer.android.com/about/dashboards/index.html Dec 03 09:07:17 er Dec 03 09:07:19 2.3 sorry Dec 03 09:07:24 *really* no point supporting 1.x anymore Dec 03 09:07:44 I don't think 1.6% is worth it but who knows Dec 03 09:07:45 best buy won't accept payment from non-US PayPal Dec 03 09:07:55 "free the wind" :@ Dec 03 09:08:43 so instead of getting 2TB for 99+Tax now I have to buy 1TB for 65 Dec 03 09:08:50 can you guys throw me hints at what I should do fix my problem, and I'll google the rest Dec 03 09:09:14 just need some keywords Dec 03 09:09:19 to get me started Dec 03 09:10:58 and honestly, this guy just released this program on google play, so I don't understand how the whole project is full of errors Dec 03 09:11:38 or maybe I just don't get eclipse and the build class path order concept Dec 03 09:16:19 Eeeeeee: whats your problem? Dec 03 09:16:40 can't guarantee that i can help, but ive played with eclipse a little bit Dec 03 09:16:54 well, i suck at java so probably a lot Dec 03 09:17:06 but its some guys code off github Dec 03 09:17:19 it was fine when I was messing with it in Dec 03 09:17:21 AS Dec 03 09:20:16 and the programming seems ok.. I wanted to convert it to gradle, and didn't feel like attempting to do it manually again. So was going to use eclipse to export it. Dec 03 09:21:18 in eclipse I'm getting a lot of errors. "R cannot be resolved to a variable" and similar but R.java was fine in android studio. Dec 03 09:22:31 Someone said it could be the build class path order, and have been reading that there might be a problem in the xml somewhere Dec 03 09:23:35 It apparently happens in eclipse all the time, but I've never dealt with this in AS Dec 03 09:25:14 hello Dec 03 09:25:27 is it possible to simulate the memory required for an operation Dec 03 09:25:34 before doing this operation ? Dec 03 09:25:49 I'll continue my search if you have any ideas or search terms please i'm dying over here, I am learning a lot more about java which is good though lol Dec 03 09:26:05 what operation Dec 03 09:26:18 on this case its picture compression Dec 03 09:26:24 but its a general question Dec 03 09:26:37 this is development related only Dec 03 09:27:22 that mean no ? :) Dec 03 09:27:30 are ytou building an app? Dec 03 09:27:34 yes Dec 03 09:27:51 then ask away Dec 03 09:28:31 what?? Dec 03 09:28:40 macTAR: there are profiling tools in the SDK Dec 03 09:29:03 sorry thought you were asking general camera questions Dec 03 09:44:57 JakeWharton: here? Dec 03 09:48:55 I need some help. Dec 03 09:49:20 I access to a json http file. that works fine Dec 03 09:49:52 i count some data there Dec 03 09:50:14 then I sort the array. Dec 03 09:50:19 all that works fine!# Dec 03 09:51:00 but now I add a line like that: if (e.getString("match_is_finished") == "true"){ Dec 03 09:51:34 when you compare strings use .equals Dec 03 09:51:47 "true".equals(e.getString("name")) Dec 03 09:51:49 cause the json data also has data with no results. the match is in the future.. Dec 03 09:52:15 dot8: java issue. do not use ==. It compares the reference id of the two strings. Dec 03 09:52:34 ok Dec 03 09:52:51 i try it Dec 03 09:52:58 you can use == if they are interned, but thats … another story :) Dec 03 09:54:52 hows it going alex_PP Dec 03 09:55:42 g00s: Guaranteed or depends on jvm? I mean, is '("true" == "true")' guaranteed to return true? Dec 03 09:56:38 its been a while since i looked at it; inerned strings isn't that useful often Dec 03 09:56:55 i think up until java 7 they lived in permgen Dec 03 09:57:01 not sure about dvm Dec 03 09:57:27 right. so nothing in the java specification that guarantees that behaviour, I suppose. Dec 03 09:59:56 procton i think the spec does guarantee that behavior, but there are enough limitations with interns that its not slam dunk to use them, and sometimes if the JIT is good it isn't faster than String.equals Dec 03 10:00:09 or much faster Dec 03 10:00:32 ok. Dec 03 10:02:42 ok i change it like this: if ("true".equals(e.getString("match_is_finished"))){ Dec 03 10:02:51 the same problem Dec 03 10:03:15 I FIRST sort the array Dec 03 10:04:37 then i give the data to the array adapter. but now the data is unsorted Dec 03 10:06:24 I try 100 time and this works all the time, but when I select the match_is_finished then the result ist unsorted. When I delete the line with the selection it is sorted... Dec 03 10:07:04 why is it using a string instead of a boolean Dec 03 10:09:23 CallumTaylor: I try it with boolean, just a moment. the avd is slow Dec 03 10:09:33 what is the actual json you're using Dec 03 10:09:38 post it in pastebin Dec 03 10:11:09 CallumTaylor: here is the link: http://openligadb-json.heroku.com/api/matchdata_by_league_saison?group_order_id=3&league_saison=2013&league_shortcut=bl1 Dec 03 10:11:34 wow slow api wtf is it doing Dec 03 10:12:12 it's a boolean that's why Dec 03 10:12:19 do getBoolean("match_is_finished") Dec 03 10:12:38 if (e.getBoolean("match_is_finished") == true) {} Dec 03 10:14:12 CallumTaylor: i try it. just a moment Dec 03 10:20:42 CallumTaylor: no, the data is again unsorted. Dec 03 10:26:39 i try something to see if the array.sort still works on the code Dec 03 10:32:33 Too much iterating ? Have a break! Have a Kitkat. ... I should sell this slogan to the next Google's IO :P Dec 03 10:46:21 the code works fine, when I use the data from 2012, there are all matches finished. the problem is only the unfinished matches in 2013. I did not find out why the array.sort does not work in that case Dec 03 10:48:14 bluesm: is it a difference when i have a match in the if or not in the iterating? Dec 03 10:48:47 dot8: What do you mean ? Dec 03 10:49:18 dot8: my message was irrelevant from your ... Dec 03 10:49:29 oh, ok Dec 03 10:53:00 #qlkjg Dec 03 10:58:01 im displaying a picture with an ACTION VIEW intent. Dec 03 10:58:18 it displays image well but is there a way to set a title on that view ? Dec 03 10:58:22 cant find it Dec 03 11:02:17 good evening/morning everyone quick question: Was using Nexus 5 for my application development, everything seemed to work, but was getting a strange error which many people reported seeing on Nexus 5, I connected Nexus 7 tablet to my PC and tried to run app on it, but it crashesh right away, on Nexus 5 it run and did most of the tasts, was just showing some error in logcat which didnt make sense Dec 03 11:02:35 not sure why a change from a device to device would completly break the application, making it unable to launch, any advice? Dec 03 11:03:04 after switching to Nexus 7 it seems to crash with Null error at double latitude = myLocation.getLatitude(); , yet it does not on Nexus 5 Dec 03 11:04:13 Nexus 5 was running android 4.4 nexus 7 is 4.3 not sure if it could be the issue, API set to 14-16 Dec 03 11:04:13 DmitrySokolov : only NPE that can happen there is that myLocation is null Dec 03 11:04:14 “was just showing some error in logcat which didnt make sense” Dec 03 11:04:25 if you paste that error, someone might have a clue Dec 03 11:04:36 sec ill look it up if i still have it in a log Dec 03 11:04:55 DmitrySokolov : perhaps the device couldn't pinpoint a location through GPS / WiFi / cell for whatever reason Dec 03 11:05:08 DmitrySokolov: you are probably better dumping adb logcat > file.txt. And searching that way Dec 03 11:05:46 yeah, Nexus 5 i was working on was my friends who just took it away, so i cant replicate the error i was having ;/ but now same code is not running on Nexus 7 Dec 03 11:05:56 pretty sure double latitude = myLocation.getLatitude(); should not result in Null, since it was finding the location Dec 03 11:06:12 its possible table does not get the information from Cell, which could result in null Dec 03 11:06:15 ill check it right away Dec 03 11:06:54 Hello, is there a way to solve a "existing package by the same name with a conflicting signature is already installed" issue without having to manually uninstall the previous version? I developed an app but I was so naive to build it on two different machines (so different signatures), now half people has one signature, the other half the second signature ... this is preventing me from enabling a single point remote update Dec 03 11:08:09 I'm trying to create a UI element that shows a vertical line with some dots (+ text) on it, allowing the user the flip (vertically) through the dots on the line. Kinda like a listview but with a completely different rendering. What would be the best way to do that ? Dec 03 11:11:28 hi i am changing a image source in gridview on click but it shows nullpointerexception and crash the app Dec 03 11:11:42 i am using this code to change--> chk.setImageDrawable(getResources().getDrawable(R.drawable.checkbox_selected)); Dec 03 11:11:56 chk=(ImageView)findViewById(R.id.chkbox); Dec 03 11:12:26 nope its set to GPS_Provider which both tablet and phone should have ;/ Dec 03 11:12:43 lol this R bug, so stupid Dec 03 11:12:45 i can post a code on pastedump if that will help Dec 03 11:12:54 its pretty messy thou Dec 03 11:13:30 hello guys anyone who can help me clear this little bug :( Dec 03 11:15:05 hi Dec 03 11:15:08 http://pastebin.com/M2xM6Qgw Dec 03 11:15:31 NUll error happening on line 298 Dec 03 11:15:43 sorry 289 Dec 03 11:15:48 chk.setImageResource(R.drawable.checkbox_selected); Dec 03 11:15:51 i am using this now Dec 03 11:15:57 still null pointer error Dec 03 11:16:20 final ImageView chk=(ImageView)findViewById(R.id.chkbox); Dec 03 11:16:24 here is chk is initialised Dec 03 11:17:31 hello Dec 03 11:18:51 This R.java bug was so widespread and simple to fix I wish someone in here would've just said something. Thought it was something I did wrong Dec 03 11:19:29 DmitrySokolov: latLng instead of LatLng maybe? Dec 03 11:19:48 mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f)); Dec 03 11:19:52 mMap is null Dec 03 11:20:03 Google Play Services might nog have been initialized properly Dec 03 11:20:08 but hey at least I got to experience why I'm never gonna be opening eclipse back up Dec 03 11:20:57 R.java usualy is not generating, missing i you have error in XML files, make sure not to Include the android.R and just recheck fix the XML files then clean and rebuild project Dec 03 11:21:25 DmitrySokolov : double latitude = myLocation.getLatitude(); Dec 03 11:21:27 sec ill check, thing is this code worked on Nexus 5, without a problem this part definatly passed fine Dec 03 11:21:31 DmitrySokolov : only thing that can be null heree is the location Dec 03 11:21:33 thank you, yo uwould've saved me some time :P Dec 03 11:21:36 not sure why Nexus 7 crashesh right away Dec 03 11:21:40 like some hours ago Dec 03 11:21:47 sorry wasnt here hours ago Dec 03 11:21:52 i'm jk Dec 03 11:22:03 i remember the people who were here. that's all that matters Dec 03 11:22:13 DmitrySokolov : you should do a null check for the location, but also a null check for mMap, because if your app runs on a device without Google Play Services it will also crash Dec 03 11:22:44 hm, there are google play services, google standart map works, also example maps work Dec 03 11:22:55 there are GPS and its enabled and it is found by the maps and example code Dec 03 11:23:23 only difference tablet does not have a Cell provider and Nexus 5 did, not sure what else it could be Dec 03 11:23:36 ill check mMap for null Dec 03 11:23:49 DmitrySokolov : getLastKnownLocation() only returns a Location object for a provider if that provider has been used recently. If it has not been recently, Android assumes that whatever was the last location given by that provider is out of date and wrong, and returns null. Dec 03 11:24:27 hey dmitry, is there a way to prevent the bug from happening right when i import into eclipse? Dec 03 11:24:58 because when i was in android studio java.R was fine, only reason i was in eclipse was because I was trying to export to gradle Dec 03 11:25:29 Eeeeeee, not to the best of my knowledge when you open it rebuilds it so have to wait a bit, if it does not rebuild then there is an issue in XML files and you have to manualy find it since sometimes it does not see errors and dont mark them, but still does not generates R.java Dec 03 11:25:50 thanks Dec 03 11:25:52 i'll get it Dec 03 11:25:59 now that I know what it is :D Dec 03 11:26:13 was after a ghost earlier Dec 03 11:26:35 i dont think its even getting that far ddewaele, based on my brick and mortar debugging Dec 03 11:27:25 ic that it did handleIntent, then setUpMapIfNeeded, which launghed setUpMap, and after setUpMap 6 message it crashed Dec 03 11:28:11 ah and it did onCreate first, but never finished Dec 03 11:28:23 it never got to the other methods Dec 03 11:30:19 DmitrySokolov : you said that it gets a NPE on 289 right ? call togetLastKnownLocation is at 285 Dec 03 11:31:41 hm nope sec, Dec 03 11:31:53 double latitude = myLocation.getLatitude(); Dec 03 11:31:59 this line results in crash Dec 03 11:32:03 on Nexus 7 Dec 03 11:32:06 but works fine on Nexus 5 Dec 03 11:32:18 DmitrySokolov : like I said, only thing that can be null there is myLocation Dec 03 11:32:47 DmitrySokolov : so the previous call (getLastKnownLocation) returned you a null object Dec 03 11:32:57 DmitrySokolov : see my explanation why that returned null. Dec 03 11:33:40 yep myLocation is null, just checked Dec 03 11:34:04 wierd why it wasnt null when running on Nexus 5, but is null on nexus 7 Dec 03 11:34:13 :) Dec 03 11:34:23 ill check the targetLastKNownLocation Dec 03 11:34:30 see what it gets and maybe redirect it if possible Dec 03 11:47:20 birthday today :D Dec 03 11:48:06 DmitrySokolov : If a call like that can return null (and it can) you always need to prepare for the case when it does. (do a null check and inform the user it could not find the location, or fail silently). otherwise your app will simply crash Dec 03 11:48:41 yeah trying to figure out now why it is getting null on tablet but didnt get it on mobile Dec 03 11:57:02 What kind of app are you building? Dec 03 11:59:52 still getting nulls ;/ Dec 03 11:59:56 not sure how to force update the location Dec 03 12:00:02 instead of obtaining a last known one Dec 03 12:00:11 tried this prior to exectuion Dec 03 12:00:12 locationManager.requestLocationUpdates(provider, 60000, 10, this); Dec 03 12:00:15 but it didnt seem t owork Dec 03 12:00:21 still crashing same place Dec 03 12:00:50 provider it selects is gps Dec 03 12:00:53 and it is enabled Dec 03 12:01:00 DmitrySokolov : like I said before, you need to put a null check in place. nobody can guarantee that it will not be null Dec 03 12:01:05 so not sure why its not getting a location from it and saving in myLocation like it did on nexus Dec 03 12:01:13 DmitrySokolov : http://stackoverflow.com/questions/15997079/getlastknownlocation-always-return-null-after-i-re-install-the-apk-file-via-ecli Dec 03 12:01:41 thanks ill take a look at that Dec 03 12:01:58 DmitrySokolov : can be a bunch of reasons ... are location services enabled ? does the device have a GPS ? is WiFi turned on , does it have a sim card , ....... Dec 03 12:04:59 location services is enabled, and its active, and respnding to application requests Dec 03 12:05:02 Hello! I have 4 fonts of same family. Thick/normal/light/ultralight - I can display first 3, but ultralight won't work. Any ideas? Is it possible that it's too thin/light ? Dec 03 12:05:11 wifi turned on but is not considered optimal so its skippedi n favor of GPS Dec 03 12:05:38 are you stationary? Dec 03 12:05:48 the device you're testing it on Dec 03 12:08:07 yep Dec 03 12:08:13 i can move it around a bit if it would help Dec 03 12:08:23 i mean faster Dec 03 12:08:24 tried the code ddewaele recommended Dec 03 12:08:34 hi Dec 03 12:08:41 I have to believe they have algorithms in place to throttle certain requests. Dec 03 12:09:20 i have a strage behavior in android 4.1+ - for some reasons i replace database files - the files are copied and it works like expected when i use the debugger Dec 03 12:09:37 running without debugger, android creates empty databases Dec 03 12:09:39 why can't I find my pictures after saving them on my sdcard through the camera intent? added all stuff in the AndroidManifest too (I think) Dec 03 12:12:36 It sounds unfair, but I'm sure those gps calls could drain someone's battery quickly. more so if the user has 10 apps requesting the same data. Dec 03 12:12:40 outstream.flush(); Dec 03 12:12:45 yeah ;) Dec 03 12:12:53 * monsti is beating his head Dec 03 12:16:52 I'm not speaking from app development experience, but I've studied their algorithms before. They're hyper efficient. If you're getting null it's probably not because it failed. Dec 03 12:21:48 I'm trying to create a UI element that shows a vertical line with some dots (+ text) on it, allowing the user the scroll (vertically) through the dots on the line. Kinda like a listview but with a completely different rendering. What would be the best way to do that ? Would creating a new view based on AbsListView be a good starting point ? Dec 03 12:27:13 donmatthew: can you pastebin your manifest... might help someone help you out Dec 03 12:27:13 found my issue Dec 03 12:27:52 if its interesting to anyone, it was because in onResume it would not "setUpMapIfNeeded(); for some reason it still worked on Nexus 5 but in Nexus 7 it probably didnt save data as long so it was always null Dec 03 12:27:59 gsteinert: sure, just a sec Dec 03 12:28:02 now it works Dec 03 12:29:06 dmitry, what kind of app btw? Dec 03 12:29:09 if you don't mind sharing Dec 03 12:29:16 android GPS oriented alarm system Dec 03 12:29:27 :D Dec 03 12:29:28 its university project Dec 03 12:29:39 been cracking my head trying to get it to work for past few weeks Dec 03 12:29:47 sounds awesome, when do they get the alarms? Dec 03 12:29:52 haha Dec 03 12:30:03 when close to the destination (based on radius) Dec 03 12:30:15 nice Dec 03 12:30:36 DmitrySokolov: like a don't-miss-your-stop alarm :) Dec 03 12:31:12 pretty much, with a few extra features Dec 03 12:31:42 if ill ever be able to actualy make it work Dec 03 12:31:47 or it will be a good idea without any features Dec 03 12:31:48 me and friend have similar radius/geofencing app planned. Hard or what? Dec 03 12:32:18 Android development is not easy i must admit, some problems arrise that would take minutes to solve on other platforms, but on android its a whole big story Dec 03 12:32:29 gsteinert: http://pastebin.com/3b6skuR7 here's my XML Dec 03 12:32:48 i did iOS development last year, and as much as i dont like apple i must admit, working in xCode/emulators was much easier/faster Dec 03 12:32:56 hahaha Dec 03 12:33:06 yeah friend likes em a lot better too Dec 03 12:33:34 first of all Google Maps dont work in emulator, and recently they even forced independed emulator creators to disable the functionality Dec 03 12:33:36 Hi guys Dec 03 12:33:46 yes Dec 03 12:33:53 i know and i hate it Dec 03 12:34:04 In case you are interested, there is a #Genymotion channel since yesterday. Dec 03 12:34:05 really effects us in the long run Dec 03 12:34:19 and many things that would seem like a small thing, for example, you have built in My location button, how easy would it be to just Hit it on application start? (i dare you to search for a solution) Dec 03 12:34:28 btw Dec 03 12:34:34 did they block api access? Dec 03 12:34:38 to those devices? Dec 03 12:34:50 donmatthew: i can't see anything obvious... is LogCat giving you nothing useful? Dec 03 12:34:59 yeah i downloaded Genymotion in hopes of working with google maps in emulator, they disabled the support for google maps too :( Dec 03 12:35:07 ERM Dec 03 12:35:14 gsteinert: nope Dec 03 12:35:25 they disabled the app, or net access from genymotion devices? Dec 03 12:36:07 cause i was just about to have maps installed when genymotion ran out of space and started crashing Dec 03 12:36:12 you should be able to bypass it Dec 03 12:38:15 As announced earlier, Genymotion now doesn't include Google Apps and ARM libraries support anymore. Dec 03 12:38:28 ya Dec 03 12:38:30 For Google apps, we are still trying to work with Google to add them back. If you decide to add the needed package by yourself, it will be at your own risk and responsibility and we will not be liable for it. Dec 03 12:38:32 just download the apps Dec 03 12:38:34 thats from Nov 13th Dec 03 12:38:52 only thing is you have to repartition the virtualbox hd Dec 03 12:38:52 i tried to do it myself but it didnt work Dec 03 12:38:56 so i got a Nexus 7 to work with Dec 03 12:38:58 which is where i hit a wall Dec 03 12:39:01 hah Dec 03 12:39:14 project is due tomorrow, today actualy in 7 hours Dec 03 12:39:20 still trying to fix the last few parts Dec 03 12:39:28 atm Search/Suggestions to search do not work Dec 03 12:39:55 a bit of a complex system with JSON that i found in a tutorial, implemented it all and now trying to track down why it does not work Dec 03 12:40:28 link me Dec 03 12:40:33 i want that in my app as well Dec 03 12:41:44 I would help you out, but you don't want my coding anywhere near a school project lol Dec 03 12:43:28 http://wptrafficanalyzer.in/blog/adding-google-places-autocomplete-api-as-custom-suggestions-in-android-search-dialog/ Dec 03 12:43:34 thats the one i followed i think Dec 03 12:43:56 i just want it to work :( i no longer care how nice it looks, or if everything works as intended Dec 03 12:44:08 just need to make a presenation by 1pm then ill have time to make it pretty and write documentation Dec 03 12:44:21 is it on github? Dec 03 12:44:29 nope Dec 03 12:45:44 publicly having a bunch of coders crowd source a school project last minute is a bad idea now that i think about ti lol Dec 03 12:46:26 yep, id like to do it myself Dec 03 12:46:43 else i would probably go to some freelance website and pay 50$ for someone on the other side of the world to do it Dec 03 12:46:49 after all i am here to learn Dec 03 12:46:58 btw it'd be quicker to not learn their whole api Dec 03 12:47:16 unless you have already Dec 03 12:47:24 thats what i thought but some of the conceptes (majority) are very new to me Dec 03 12:47:30 so i had to learn everything step by step Dec 03 12:47:38 and while dealing with the erorrs i ended up learning the majority of the API anyway Dec 03 12:47:43 lol Dec 03 12:48:05 the biggest problem i have now is the Search and AutoCOmplete since its completly new for me and it seems like the requests are going thrue web servers not android and using SQL... Dec 03 12:48:15 so yeah... trying to wrap my head around it Dec 03 12:48:42 for now search bar appears, i enter info in it, it accepts it but no autocomplete or a marker on the location Dec 03 12:48:50 not sure why, authorization with web key worked Dec 03 12:48:53 now digging code Dec 03 12:49:21 it sounds really in-depth Dec 03 12:49:31 what ivy league school are you at lol Dec 03 12:50:26 at UofS last year comp sci Dec 03 12:50:35 i jumped a bit over my head with this project Dec 03 12:51:08 pushing yourself, that's the name of the game Dec 03 12:51:11 having some expirience on iOS i knew a project like this would take 10-20h~ at most, and thinking that Google makes Android and also Google Maps I expected it to work easier on their own devices... Dec 03 12:51:13 I was wrong Dec 03 12:51:41 100+ hours in... Dec 03 12:54:03 https://play.google.com/store/apps/details?id=com.google.android.maps.mytracks Dec 03 12:54:17 it's open source Dec 03 12:54:30 and they probably have same features Dec 03 12:54:44 i couldn't check cause apparently phone is eligible Dec 03 12:55:15 which is weird, must be 4.3+ Dec 03 12:55:52 this wont work for me i am afraid Dec 03 12:56:00 DmitrySokolov: sorry to have missed a lot of your sorrow-ful story Dec 03 12:56:14 can you give a one liner of the problem you are facing Dec 03 12:56:21 its not sorrow-ful, live is cheerfull, and i am very optimistic Dec 03 12:56:48 so I can add it to my list namely "ditch to look for" :-P Dec 03 12:56:55 not much atm, trying to figure out why i cant make the code from http://wptrafficanalyzer.in/blog/adding-google-places-autocomplete-api-as-custom-suggestions-in-android-search-dialog/ tutorial to work nicely with my code Dec 03 12:56:57 nah, I was kidding Dec 03 12:57:07 everything else seems to work Dec 03 12:57:20 so trying to implement Search/Autocomplete in search atm Dec 03 12:58:00 oh, ok and you are getting exceptions ? ? Dec 03 12:58:07 or just no problem at all Dec 03 12:59:32 sec ill rerun the code again and tell you the logcat out Dec 03 13:00:17 would be great if you can pastebin some output Dec 03 13:00:29 everyone will be able to help you Dec 03 13:00:32 getEntry failing because entryIndex 13 is beyond type entryCOunt 2 Dec 03 13:01:05 Failure getting entry for 0x7f0b000d (t=10 e=13) in package 0 (error -2147483647) Dec 03 13:01:12 it really does sound like chiness :( Dec 03 13:01:22 thats all i am getting Dec 03 13:01:55 no program crash or anything Dec 03 13:02:01 but markers are not being created at the locations found Dec 03 13:02:06 and no auto suggestion while i type in search Dec 03 13:02:19 no connection errors, fully authenticated with google Dec 03 13:02:37 and reply from google does contain some data, but i cant desipher it, just can confirm reply is not null Dec 03 13:03:59 hmm Dec 03 13:04:03 reply from Google Dec 03 13:04:30 can you Log.d the complete query/post URL and try to access it using curl Dec 03 13:04:36 and see what response is Dec 03 13:04:54 ok give me a second Dec 03 13:05:11 does it matter what kind of Log do i use? i used Log.v Dec 03 13:05:24 nah Dec 03 13:05:28 I do not think Dec 03 13:06:12 nice, sorry just made the Autosuggestions to work Dec 03 13:06:22 so just need the markers now Dec 03 13:06:23 oh, that is good Dec 03 13:06:26 i think i found the issue Dec 03 13:06:34 seems like someone owes me a cofffee :-P Dec 03 13:06:40 :) Dec 03 13:06:44 the URL was not good Dec 03 13:06:54 gladly, if you end up passing by Saskatoon within the next year, let me know Dec 03 13:06:55 some ? or & missing Dec 03 13:07:07 or if you by chance will be near Houston this new year Dec 03 13:07:40 well, I will just sleep over the fact someone owed me coffee :-P Dec 03 13:07:44 all well Dec 03 13:07:57 but you did not tell what resolved the issue Dec 03 13:08:25 nope, it was a wrong import, apperently there is 2 imports Eclipse suggests for the function it used, and i imported the wrong one Dec 03 13:08:30 rechecked with the tutorial and corrected it Dec 03 13:08:44 took me a while to find it, since it was not giving the errors any more Dec 03 13:08:47 it was just not working Dec 03 13:09:18 import android.support.v4.content.Loader; Dec 03 13:09:21 that was the right import Dec 03 13:09:52 ok, that is good Dec 03 13:10:12 else I thought that you may have missed some parameters in the query Dec 03 13:10:31 import android.content.Loader; thats the one eclipse suggested Dec 03 13:11:02 now need to figure out why markers dont get shown up, and i am almost there Dec 03 13:12:33 Anyone made custom dropdown views for actionbar? I want to add a drop-down filter which supports checking multiple items - so a normal Spinner seems wrong.. Dec 03 13:13:54 sorry not me snow Dec 03 13:15:09 any activism on BestBuy's rejection of non-US PayPal accounts Dec 03 13:15:20 had to send money to me mates account Dec 03 13:15:22 DmitrySokolov: ok Dec 03 13:15:37 who in turn will buy merchandise for me Dec 03 13:16:10 I pretty much do all my shopping online, been a while since i purchased anything from a big retailer ;/ Dec 03 13:16:13 its just not worth it Dec 03 13:16:13 heyy all Dec 03 13:16:17 hey lacx Dec 03 13:16:23 hey Dec 03 13:16:32 so, Ebay ? ? Dec 03 13:16:45 anyone successfully got RTP/RTSP streaming working for Android? Dec 03 13:16:52 hey DmitrySokolov X) Dec 03 13:17:13 there is a killer deal on BestBuy for 2TB portable USB harddrive for 100$ Dec 03 13:17:21 eBay/Amazon smaller retailers that sell electronics Dec 03 13:17:32 for example ncix.ca for canada for computers and mostly electronics are great Dec 03 13:17:32 nothing like that on Ebay Dec 03 13:17:50 Amazon does not accepts PayPal Dec 03 13:18:00 wonder why they are so stubborn Dec 03 13:18:27 why not get a local prepayed visa/mastercard and use it for payment? Dec 03 13:19:26 http://www.ncix.ca/products/?sku=75012&vpn=STBV3000100&manufacture=Seagate%20Retail&promoid=1029 Dec 03 13:19:34 110$ for 3tb external HDD Dec 03 13:20:08 but i dont know if they do international shipping Dec 03 13:20:26 but for canada they are > bestbuy/futureshot/other big retailers in quality/price/conviniance Dec 03 13:20:44 where are you from Looney? Dec 03 13:21:10 yup Dec 03 13:21:17 I need it shipped in US Dec 03 13:21:32 would there be taxes/customs Dec 03 13:23:55 not sure about that Dec 03 13:25:16 http://us.ncix.com/products/?sku=57706&vpn=WDBACW0030HBK-NESN&manufacture=Western%20Digital%20WD%20Retail&promoid=1029 Dec 03 13:25:23 they have US shop apperently also Dec 03 13:25:28 so its 120+shipping for that Dec 03 13:25:50 actually free shipping Dec 03 13:25:56 so probably just tax and its yours Dec 03 13:26:09 20$ over best buy 50% more capacity Dec 03 13:27:48 i think they accept paypal Dec 03 13:28:08 check them up, with my highest recomendations, been their customer for past 7-8 years~ Dec 03 13:28:11 big, 6.5 x 5.3 inches :-( Dec 03 13:28:15 not portable Dec 03 13:28:26 and their deals seem good Dec 03 13:29:09 http://us.ncix.com/products/?sku=89580&vpn=AHV620-2TU3-CBK&manufacture=AData%20Technology&promoid=1029 Dec 03 13:29:25 this one is a bit smaller Dec 03 13:29:33 4.5x3.1 Dec 03 13:29:39 oo this windows IRC app isn't terrible Dec 03 13:29:42 I love windows 8 Dec 03 13:39:53 one I am interested in ordering is 109 incl. of tax and shipping Dec 03 13:40:28 er Dec 03 13:40:47 windows 8 on a tablet is probably amazing Dec 03 13:42:15 win8 on a desktop, who knew it could get worse than it already is Dec 03 13:43:05 meh Dec 03 13:44:28 Eeeeeee: no Dec 03 13:44:30 ya you have to pay kinda of a lot in customs Dec 03 13:44:33 Windows 8 is amazing Dec 03 13:44:38 Microsoft said so Dec 03 13:44:39 It seems that MediaPlayer.SeekTo does not go to the position requested, but rather to a keyframe (I don't know if it goes to the previous one or the closest one). Is there a way to "force" the position you requested? Dec 03 13:44:43 AHAHHAHAA Dec 03 13:45:06 i was about to say, who knew we would have microsoft fans in here Dec 03 13:45:43 I actually quite like Windows 8... Although I keep out of the 'metro' apps as much as possible! It still works quite well as a desktop OS Dec 03 13:45:54 have you tried to search Dec 03 13:46:05 oh how bout the big search function on the right Dec 03 13:46:54 it's just, they pushed it out so quick Dec 03 13:47:03 fuck the desktop users Dec 03 13:47:16 No! that's not how it happened Dec 03 13:47:21 LOL Dec 03 13:47:38 They hired and intern Dec 03 13:47:41 they sped it up a little bit i'll give them that Dec 03 13:48:01 but give that computer a year, and i'll go try it again and report back Dec 03 13:48:22 And he committed to the start menu repo Dec 03 13:48:23 Eeeeeee: I don't know, there are a lot of bits that aren't tablet friendly... try changing anything but the most common settings for example Dec 03 13:48:36 an intern designed the entire system? i'm not surprised Dec 03 13:48:38 boom! straight back into the desktop view and links too small to hit reliably with your finger Dec 03 13:48:46 No one realized the start menu was missing until June Dec 03 13:48:55 windows 8 was to release in July Dec 03 13:49:03 on their tablet? Dec 03 13:49:07 wait Dec 03 13:49:09 so they made a start "screen" instead Dec 03 13:49:23 omg, their tablets are like the desktop then too? Dec 03 13:49:52 wow, i had no clue Dec 03 13:49:54 gsteinert: it's like uncle Leo said... windows 8 doesn't know what it is yet Dec 03 13:50:02 i thought they gave tablet users a full tablet experience Dec 03 13:50:04 It's like in an awkward adolescence Dec 03 13:50:12 Eeeeeee: Not exclusively Dec 03 13:50:20 Control panel is still desktop Dec 03 13:50:29 Can we take the Windows bashing and ridiculous claims somewhere else and answer Android development related problems? Dec 03 13:50:39 but there is also metro control panel but the stuff aren't exactly the same Dec 03 13:50:48 Miklas: This is R&D Dec 03 13:50:56 We are learning how not to make apps Dec 03 13:50:59 do you have any problem? Dec 03 13:51:19 trust people aren't gonna not ask the question cause we're bashing windows Dec 03 13:51:34 I think not Dec 03 13:51:38 if anything that will make them know they picked the right place to ask the question Dec 03 13:51:42 LOL Dec 03 13:52:01 But is not asking the question what they are not supposed to do? Dec 03 13:52:16 like this is real life Dec 03 13:52:30 and they're interrupting Dec 03 13:52:35 I'd think they would know not to not do that here Dec 03 13:53:15 Miklas: I would have answered your question but i do not know the answer Dec 03 13:53:19 lol so many double negatives everywhere Dec 03 13:53:31 Those things are deadly Dec 03 13:55:28 birthday today, and if I don't get tracking number soon i got overnight shipping on my nexus for nothing :/ Dec 03 13:56:33 Eeeeeee: Happy birthday Dec 03 13:57:28 ty Dec 03 13:57:48 maybe they're shipping it so fast they don't have time to create a tracking code Dec 03 13:57:53 LOL Dec 03 13:57:55 Happy Birthday Dec 03 13:58:00 you know that thought had crossed my mind Dec 03 13:58:01 Maybe they are sending a drone Dec 03 13:58:10 LOL Dec 03 13:58:13 Maybe its a hunting season... Dec 03 13:58:42 Anyone here use linux on a Mac? Dec 03 13:58:42 maybe they are busy installing windows on it Dec 03 13:58:46 LOL Dec 03 13:58:48 YOU GOT JOKES Dec 03 13:59:07 DarkSlay3r: Eeeeeee: http://www.huffingtonpost.co.uk/2013/12/02/amazon-drones-prime-air_n_4370340.html Dec 03 13:59:14 maybe they just don't care Dec 03 13:59:16 DarkSlay3r we totally turned all the closet windows lovers in here against us Dec 03 13:59:18 haha Dec 03 13:59:21 pduin: Maybe the drone rus on windows 8 and couldn't find the start menu Dec 03 13:59:26 i know :D Dec 03 13:59:42 drones on windows? Dec 03 14:00:03 time to board up my windows Dec 03 14:00:04 p.s. i dont consider myself to be dumb, and used computers since dos days, but it too me at least 5 minutes to figure out how to close a metro application... and where is computer shut down button Dec 03 14:00:17 they would malfunction and turn into war drones Dec 03 14:00:25 DmitrySokolov: i couldn't find notepad Dec 03 14:00:26 after installing Windows 8 for the first time Dec 03 14:00:42 rofklroflrofl Dec 03 14:00:44 :) Dec 03 14:00:47 DmitrySokolov: Alt+F4 is the only way I've found! And you have to open the charms bar on the right, the it's under power there Dec 03 14:00:47 right where the fuck is it?!!? Dec 03 14:00:48 DmitrySokolov, I only know how to close them using the task manager Dec 03 14:01:05 left click and drag down from the top center screen... Dec 03 14:01:25 I was supposed to give a lecture on the big screen Dec 03 14:01:26 very intuitive Dec 03 14:01:31 computer was windows 8 Dec 03 14:01:38 i couldn't find anything Dec 03 14:01:40 yeah very... took me 5 minutes to find it Dec 03 14:01:41 i just refused to give up Dec 03 14:01:45 sup Dec 03 14:01:52 sucked when they took away the ctrl alt delete feature Dec 03 14:01:56 so i had to ask for help and ended up using paint to give a description Dec 03 14:02:15 when i couldn't find paint i just had then scrap the class Dec 03 14:02:29 Dark dont worry about it, we had a 2nd year computer science course start by our Professor sending for a Technitian... to connect a power cord to his screen Dec 03 14:02:29 anyone coming in here asking non dev questions, yeah just hold ctrl alt delete Dec 03 14:02:43 lol Dec 03 14:02:50 microsoft stole the nerve pinch from spock, he should sue them Dec 03 14:02:54 we waited 30 min out of 45 min class for the technitian to arrive look at the professor and plug in the cord... Dec 03 14:03:21 i am far from a n00b at windows Dec 03 14:03:24 lol Dec 03 14:03:37 but the changes were just too drastic Dec 03 14:03:39 mspaint Dec 03 14:03:47 oh shit no where to type commands anymore Dec 03 14:03:58 shit Dec 03 14:04:06 how did we make our way back to bashing windows again Dec 03 14:04:14 must be in our blood Dec 03 14:04:51 Looks that way Dec 03 14:05:24 I don't like that OEMs are trying to force feed it to us though Dec 03 14:06:09 only to the people that don't know any better Dec 03 14:06:12 you mean Dec 03 14:06:43 gsteinert: lol I found those files, just didn't name them by file extensions Dec 03 14:06:46 it's like youtube and this google plus fiasco Dec 03 14:06:49 in root dir Dec 03 14:07:01 yes i hate that Dec 03 14:07:07 you wanna know why Dec 03 14:07:28 because one day i check my youtube account and it's broadcasting to the world every video i watch Dec 03 14:08:05 and that was a really long time ago Dec 03 14:08:08 I bet if you call xbox sexbox it will still respond Dec 03 14:08:16 especially when you endup on that kinky part of youtube Dec 03 14:08:29 hahhaha Dec 03 14:08:40 No honey i wasn't watching teen girl shakes booty like pickle jar Dec 03 14:08:46 i would've felt strongly either way Dec 03 14:09:07 llol Dec 03 14:09:30 but that's the first thing I think when I see my face on their website Dec 03 14:10:15 scary Dec 03 14:11:02 i miss the old days when there was no social on the internet Dec 03 14:11:08 Just good old forums Dec 03 14:11:12 same Dec 03 14:11:17 yes Dec 03 14:11:56 there was an anonymous social structure that existed on forums that we'll probably never see again Dec 03 14:12:44 treat this guy with respect because he's made 10,000 forum posts Dec 03 14:12:57 ok this MediaMetaDataRetriever is way too slow for extracting media info and screenshots from files Dec 03 14:13:03 100,000!? this guy is l33t! Dec 03 14:13:06 is there a faster way ? Dec 03 14:13:15 lol hes hacking it! Dec 03 14:13:35 how fast is it going Dec 03 14:13:56 might be limitations of the flash hd Dec 03 14:14:55 especially the getFrameAtTime for getting thumbnails from video, and it randomly crashes every 5th time I run it Dec 03 14:15:19 without Force Close message, the app just dissapears Dec 03 14:15:39 lol Dec 03 14:15:39 that's almost better than the force close Dec 03 14:15:50 who likes pushing those things anyway Dec 03 14:16:24 man I was so excited to think it was that easy to get screenshots Dec 03 14:18:07 screen shotting your apps users eh? Dec 03 14:18:24 kinda breakin the law there buddy Dec 03 14:18:28 He's stealing our data! Dec 03 14:18:38 nah seriously Dec 03 14:18:56 they're banking, you take a screenshot for quality assurance Dec 03 14:19:11 wait Dec 03 14:19:17 Seriously though be careful Dec 03 14:19:46 hey what app is it shmooz Dec 03 14:20:11 link me i want to try it Dec 03 14:20:41 if I get this working it could be awesome, other than showing thumbnails and artwork and info, I could have it compile a screenshots image, with say 16 or whatever frames Dec 03 14:20:52 Eeeeeee: its just a video player I'm making Dec 03 14:20:59 cool Dec 03 14:21:08 cause i would have reported that shit Dec 03 14:21:16 will do audio as well Dec 03 14:21:19 does android even allow you to do that Dec 03 14:21:28 or did you just hack together a way? Dec 03 14:21:43 just hacking and learning, its still my first app Dec 03 14:22:05 so what kind of permissions is it going to request Dec 03 14:22:43 internet, storage, wake lock Dec 03 14:22:55 what about to take picture of the screen i mean Dec 03 14:23:13 like I knew screenshot apps obviously had to have that permission, but you've just creeped me out Dec 03 14:23:23 no this just extracts frames from a video file using getFrameAtTime Dec 03 14:24:08 lol Dec 03 14:28:43 hello guys i'm having difficult to understand handler, I don't like the tutorial on android doc. What I don't get is how the handlers (one on the ui thread and the other on task thread) are linked one to each other. can anyone explain this? thanks Dec 03 14:29:04 screen = ui thread Dec 03 14:29:27 other thing = task thread Dec 03 14:29:37 cannot talk to each other Dec 03 14:29:40 ok perfect Dec 03 14:29:48 i need to use an handler Dec 03 14:29:57 task thread want to talk to ui thread Dec 03 14:30:06 need bridge Dec 03 14:30:14 bridge = handler Dec 03 14:30:24 yes Dec 03 14:30:41 nice was always unclear on how that worked Dec 03 14:32:05 good job, ok now explain 'context' and why I need to pass that ? Dec 03 14:32:42 DarkSlay3r: is this finished? Dec 03 14:33:09 i was just dealing with understanding that Dec 03 14:33:15 ok Dec 03 14:33:26 sorry had to use the john Dec 03 14:33:46 what determines whether a service runs in its own thread or not? Dec 03 14:34:01 shmooz: I'm trying to do exect the same thing (thumbnail generation) Dec 03 14:34:09 service always runs on background thread Dec 03 14:34:18 Miklas: good to hear, how successful is it for you ? Dec 03 14:34:23 apparently they all run in the main UI thread, unless you spawn a thread? Dec 03 14:34:28 it has it's own separate thread Dec 03 14:34:42 DarkSlay3r: you may not read ALL my question Dec 03 14:34:44 its why when you start a service to play music Dec 03 14:34:49 shmooz: I was using a method that involves a regular mediaPlayer rendering to a SurfaceTexture. Speed was reasonable, but I just found out MediaPlayer.seekTo() only seeks to keyframes. Dec 03 14:34:58 it runs till you stop it Dec 03 14:35:00 DarkSlay3r: "A service runs in the main thread of its hosting process—the service does not create its own thread and does not run in a separate process (unless you specify otherwise)." Dec 03 14:35:04 so if you have keyframes in a video at 0, 1 and 2 seconds, you cannot generate a thumbnail inbetween. Dec 03 14:35:17 guess i was wrong... Dec 03 14:35:41 Miklas: I am running it on a 1Ghz Gingerbread htc MyTouch4g with 768mb ram, and its a bit too slow Dec 03 14:35:53 DarkSlay3r: i use long blocking operations in this service, and it seems to not be blocking UI function Dec 03 14:35:54 shmooz: but you are using getFrameAt? Dec 03 14:35:56 i dont get it ;/ why always when i find even the official tutorials Dec 03 14:36:00 the code is incomplete.. Dec 03 14:36:05 DarkSlay3r: so i'm not sure if that doc quote is accurate Dec 03 14:36:16 gdrc: you cannot do something on the UI thread that you cannot control Dec 03 14:36:21 could some one chech this one for a second please: https://developer.android.com/training/location/receive-location-updates.html Dec 03 14:36:29 The UI thread is everything that you see Dec 03 14:36:39 what's long blocking btw Dec 03 14:36:46 DarkSlay3r: I'm not stupid Dec 03 14:36:47 not that I should need a fast device for that, and this MediaMetaDataRetriever requires minimum API 10, not sure if my gingerbread phone works, but I supress Lint and everything works except getFrameAtTime Dec 03 14:36:50 but when you want to do something potentially dangerous like downloading something Dec 03 14:37:02 gdrc: that must be nice :/ Dec 03 14:37:07 you cannot guarantee that it will finish Dec 03 14:37:13 in onCreate mPrefs and mEditor, what type are they? mPrefs i belive is SharedPreferences mPrefs; which they forgot to mention what about mEditor? Dec 03 14:37:19 so you spawn a separate thread Dec 03 14:37:30 Eeeeeee: like doing network stuff, waiting on a response from a socket, etc Dec 03 14:37:39 Eeeeeee: you can simulate it with just a sleep Dec 03 14:37:46 now you cannot modify the UI from any new thread Dec 03 14:37:55 Miklas: getFrameAtTime seems to work but will randomly close the app sometimes, arghh Dec 03 14:38:04 so you create a handler to basically carry messages to the UI threaf Dec 03 14:38:07 thread** Dec 03 14:38:37 shmooz: and it uses bitmaps wich tend to be really slow? Dec 03 14:38:46 you may want to use a handler to do things like update a progress bar etc Dec 03 14:39:10 DarkSlay3r: ahh, i noticed what the source of confusion is Dec 03 14:39:35 DarkSlay3r: IntentService starts a thread for all intents given to onStartCommand Dec 03 14:39:36 DarkSlay3r: did I ask what an Handler is or what is its job? Dec 03 14:39:37 Miklas: right now I'm running in a asynctask, storing to a ArrayList Dec 03 14:39:47 without using MediaPlayer Dec 03 14:39:49 helo gotcha, thought you meant something else Dec 03 14:39:50 but a noraml Service runs in the main thread Dec 03 14:40:05 shmooz: have you checked how many thumbs you can generate that way? Dec 03 14:40:18 shmooz: when I tried it I got stuck on a few per second. Dec 03 14:40:31 gdrc: read my last two sentences Dec 03 14:40:31 DarkSlay3r: I have asked a specific question and you writing nothing of what I asked so, if you are able to answer me, please do it otherwise stop. thanks. Dec 03 14:40:39 using only MediaMetaDataRetriever.getFrameAtTime(microsecs, OPTION_CLOSEST) Dec 03 14:41:05 Awww boohoo... DarkSlay3r sad... Dec 03 14:41:07 oh thing's are getting heated. and the conversation screeches to a halt /commentary Dec 03 14:41:38 gdrc: a handler is used to run things in a thread Dec 03 14:42:08 gdrc: http://developer.android.com/guide/components/services.html scroll about halfway-down to the "Extending the Service class" part, you'll see a handler being used to handle a blocking operation Dec 03 14:42:53 Miklas: I haven't displayed the images in my ListView yet, only storing them in the arraylist, I have to alter my LazyAdapter to get the images from the arraylist Dec 03 14:43:15 helo: how the handlers (one on the ui thread and the other on task thread) are linked one to each other Dec 03 14:43:17 right now my adapter only loads remote images with url and defaults to a stub if its null or not valid I think Dec 03 14:44:54 could someone recommend a good tutorial on how to setup a Public transport route display (with time for busses) when I already have map and myLocation+search/pin on destination working? Dec 03 14:45:39 chromecast would've been perfect :P Dec 03 14:45:56 gdrc: in that example, there is only one-way communication into the thread. mServiceHandler.sendMessage(msg); from the onStartCommand passes the message to the thread public void handleMessage(Message msg) Dec 03 14:46:34 gdrc: it's really easy to make threads that do tasks that don't need to affect anything directly to the UI thread Dec 03 14:47:42 ok so through context.getMainLooper() I can create thread task's Handler instance Dec 03 14:48:24 can in IntentService (which is started with an Intent, which runs in its own thread) be used as a bound service? Dec 03 14:48:44 gdrc: yes, that sounds right Dec 03 14:48:53 thanks Dec 03 14:49:06 hello guys how can I make http://r.phonedog.com/shared/images/2013/5/177720-newgmailappleak.jpg Dec 03 14:49:17 navigation drawer to have headers(titles) Dec 03 14:49:21 idea13 \o/ Dec 03 14:50:53 newb question, is this how java has always handled these kind of tasks? Dec 03 14:51:03 What is the java equivalent of ?android:textAppearanceLarge ? Dec 03 14:51:13 or is this more android specific? Dec 03 14:51:38 looks like i found a good example of using the "auto-threaded" IntentService to send messages back to an Activity - http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/ Dec 03 14:51:41 Eeeeeee: what do you mean Dec 03 14:51:52 still on the topic of handlers? Dec 03 14:52:13 just in general Dec 03 14:52:23 Kind of Dec 03 14:52:29 i know it was heavy on threading, but is this stuff android specific Dec 03 14:52:30 When dealing with gui Dec 03 14:52:34 rgr Dec 03 14:52:52 You generally don't want to do calculations on UI thread Dec 03 14:53:00 or things tend to lock up Dec 03 14:54:41 like if an android developer left to go develop purely in java, would they be out of their element Dec 03 14:55:24 Hm... I am not sure, but is it really that hard to create a route between 2 points based on public transit information? Dec 03 14:55:29 or is it all roughly the same Dec 03 14:55:30 every guide i found is 200+ pages Dec 03 14:55:45 and sounds super super complex Dec 03 14:55:58 LOL Dec 03 14:56:00 er caps Dec 03 14:56:20 am I missing a simplier solution? Dec 03 14:56:35 plug a laptop into a tv Dec 03 14:56:50 I can find myself on map and center on open now, I can search and autocomplete searches and drop pins, now not sure how to find a public transport route closest to those 2 points Dec 03 14:57:17 any guide/advice is very appretiated Dec 03 14:57:57 lol totally thought you were asking about how to present this to the class Dec 03 14:58:20 nope.... Dec 03 14:58:24 i am still working on it Dec 03 14:58:33 and I am pretty damn great at presentations :) thank you Dec 03 14:58:46 hahahahah Dec 03 14:58:49 speaking of that Dec 03 14:58:58 after class make a vid i wanna see it in action Dec 03 14:59:00 apperently i have to use Google Directions API Dec 03 14:59:06 but cant find a good tutorial Dec 03 14:59:19 its very rough atm Dec 03 14:59:26 if youd like add me on skype Dec 03 14:59:33 and once its polished ill send it to you Dec 03 14:59:50 skypeid: dmitry.sokolov. Dec 03 14:59:54 dont forget the 2nd dot Dec 03 15:00:01 i just wanted to see it Dec 03 15:00:05 i don't care how rough it is Dec 03 15:00:20 do you idle here or only during school projects? Dec 03 15:00:31 atm its 1 button to zoom in on current location 1 menu button to start search, auto complete the search and zoom in to the found location Dec 03 15:00:32 thats it Dec 03 15:00:48 i come here when i work on android applications, recently its pretty often Dec 03 15:00:53 lol Dec 03 15:00:59 i'll be here you can dcc it. Dec 03 15:01:05 when I worked on Unity3D project i was in Unity room Dec 03 15:01:05 i don't get on windows Dec 03 15:01:08 MUCH Dec 03 15:01:15 much Dec 03 15:01:37 there is skype for mac and linyx Dec 03 15:02:11 just saying. Dec 03 15:02:35 i would have to make an account Dec 03 15:02:47 yet we already both have account here how convenient :D Dec 03 15:02:49 I'll wait for the movie Dec 03 15:06:13 ok no promises, thou, ill try to come back here after the finals Dec 03 15:06:25 20th~ of dec, before 24th since I am leaving to Houston Dec 03 15:06:33 so sometime around those dates if everything works well Dec 03 15:06:52 helo: the handler doesnt receive any message :( Dec 03 15:07:19 ec2 was declining my debit card, learned that it has 0.55$ Dec 03 15:07:21 bummer Dec 03 15:07:28 gotta push money into it Dec 03 15:07:42 ;/ Dec 03 15:08:59 TIL that you can not modify your card number if you have entered one in AWS console Dec 03 15:09:09 you will have to add another card Dec 03 15:14:20 so, I am thinking of buying preapid debit card with PayPal Dec 03 15:14:29 any reliable store/place Dec 03 15:14:38 what is google's view on the navigation drawer carret? Dec 03 15:14:49 need the number for making free AWS VM Dec 03 15:14:57 it has to be that shape but can it be multi colored? Dec 03 15:15:42 gdrc: the ServiceHandler doesn't receive the message to its handleMessage()? Dec 03 15:16:03 I'm using Handler Dec 03 15:16:30 from task thread I call mHandler.sendEmptyMessage(0); Dec 03 15:16:42 in the UI thread public void handleMessage(Message msg) { Dec 03 15:16:42 is never called Dec 03 15:16:50 beyond the simple examples in the google android tutorials, i don't have much experience Dec 03 15:17:07 going to be attemping http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/ now Dec 03 15:23:00 helo: if I pass the Handler from UI to task thread, it works Dec 03 15:29:45 hey DmitrySokolov X)/ Dec 03 15:29:51 how long would you guys say it takes to develop an app on average? Dec 03 15:30:02 oops living in the past.. Dec 03 15:30:31 i mean including initial proof-of-concept work and everything involved like testing etc Dec 03 15:35:15 how am I suppose to turn pictures from my camera without file endings to jpgs? Dec 03 15:35:25 can I just add like .jpg after the filename? Dec 03 15:35:53 File file = new File(Environment.getExternalStorageDirectory(), beer.getName()); <-- like add jpg after beer.getName()? Dec 03 15:36:26 hey lacx Dec 03 15:37:11 from start to finish i dunno, with basic knowledge of android i started making thiss pretty simple app, about 100+ hours in and i am not close to completion and thats without post testing et Dec 03 15:37:27 its very individual and depending on your knowledge/pesistance/resources Dec 03 15:37:40 yea i was thinking ballpark 3-6months.. Dec 03 15:37:49 thats very true! Dec 03 15:37:50 all depends Dec 03 15:38:10 i spent 100~ hours in past 2 weeks studying for it Dec 03 15:38:21 wow! X) Dec 03 15:38:27 sounds big X) Dec 03 15:38:27 if you have a full time job and do it as a hobby, 2h/day then yeah 3-6 month Dec 03 15:38:46 thats what its gonna be for me DmitrySokolov X) Dec 03 15:39:06 good luck, its a wonderfull jorney Dec 03 15:39:26 jorney=journey Dec 03 15:39:38 can't spell, after 24h~ coding marathon :) Dec 03 15:40:10 good luck Dec 03 15:40:18 you just need the will to not give up Dec 03 15:40:44 yep have that, just need to find out a good tutorial on Google Directions API that is up to date, and I am golden Dec 03 15:40:56 so far all I could find, does not work or is super outdated Dec 03 15:41:23 if i wont find anything soon, ill probably start building my own... which may take a while Dec 03 15:43:09 if any one could recommend a good tutorial/example I would greatly appretiate it Dec 03 15:47:15 no one ever touched Google Directions API? Dec 03 15:51:16 hey guys Dec 03 15:51:34 do you know an app that can create a flat ext4 image on the sdcard fat32 partition ? Dec 03 15:52:24 steeve: it's called mke2fs ;) Dec 03 15:52:35 and it's not an 'app' :p Dec 03 15:52:42 Peetz0r: i know haha, but i need an app Dec 03 15:52:48 not for me, but for my users :) Dec 03 15:53:02 any terminal app Dec 03 15:53:16 yeah but if there's a graphical app to do it Dec 03 15:53:22 i might as well have them use it Dec 03 15:53:23 guess not actually Dec 03 15:53:26 than a terminal Dec 03 15:53:30 but search, and maybe you'll find Dec 03 15:54:54 what is the best way to manually trigger the dialog on an EditTextPreference? Dec 03 16:03:00 for example, you can give an EditTextPreference a dependency on, say, a checkboxPreference so that it will be disabled if the checkbox isn't checked. Is there a way to also go ahead and spawn the dialog for the EditTextPreference when the user selects the checkboxPreference Dec 03 16:10:30 oh hello Dec 03 16:10:49 hi Dec 03 16:24:52 So in order to get a custom dropdown view when pressing a button in the ActionBar it seems I can either 1) write a custom SpinnerAdapter 2) add a SubMenu 3) show a PopupWindow or 4) show a DialogFragment - they all have drawbacks. Anyone got experience on this? Dec 03 16:29:58 I'm trying to get certain frames from a video file onto a texture for use with OpenGL ES. Currently, I'm using a MediaPlayer object with a SurfaceTexture and that works fine except that the MediaPlayer.SeekTo can only seek to keyframes. Dec 03 16:30:51 * snowpong is leaning towards using a DialogFragment and just styling it without dim and positioning it below the actionbar... Dec 03 16:31:00 Is there any good alternative to get a texture from an aribtrary (and no video)? I could use MediaMetadataRetriever.getFrameAt(x, Option_CLOSEST); but that creates a new bitmap every single time, which is slow? Dec 03 16:31:19 (and no keyframe)* Dec 03 16:34:49 Hi. Dec 03 16:48:32 Miklas: there's some way using ffmpeg that returns .png http://stackoverflow.com/questions/16828103/android-ffmpeg-example-to-get-frames-from-video-using-ndk Dec 03 16:49:37 shmooz: don't need PNG, I need an OpenGL texture. (Png would probably be slower than a bitmap as well due to compression). Futhermore, I'd like to try with the SDK first before going to the NDK. Dec 03 16:49:45 shmooz: to rescue :-P Dec 03 16:54:07 thepoosh: i am now Dec 03 16:54:28 wow new and improved motorola Dec 03 16:54:35 Miklas: there's also this , not sure if it helps ... http://stackoverflow.com/questions/19542385/fastest-way-to-split-video-into-frames-java Dec 03 16:54:43 now with better phones and more apologies Dec 03 16:55:43 he says using MediaCodec instead of MediaMetaDataRetriever Dec 03 16:56:02 shmooz: I'm trying to implement that now Dec 03 16:56:25 although the required extractor only has options to seekTo(); keyframes as well. Dec 03 17:02:47 do multiple calls to startService(intent) start additional instances of the service if the service is already running? Dec 03 17:02:56 an intentservice, in this case Dec 03 17:04:05 Instead of making an android app...can a simple website just somehow DETECT that the client is a smartphone and adjust the CSS accordingly? is that a good idea? Dec 03 17:05:49 hi Dec 03 17:06:04 i am new to this and i want to create a android battery monitor Dec 03 17:06:09 can anybody help me? Dec 03 17:07:10 theseb, yes, easily Dec 03 17:07:31 helo, no, services are singleto Dec 03 17:07:34 singleton Dec 03 17:07:54 hi pfn Dec 03 17:08:04 intent service is a job queue Dec 03 17:08:52 pfn: so which should i choose?....smart server or separate client app? Dec 03 17:09:14 * pfn goes to figure out what to do on kauai & Dec 03 17:14:09 wtf does my nexus 7 still think I'm in sf... Dec 03 17:14:14 theseb, can check user agent for mobile browsers and redirect to a specific mobile page. Can also use CSS Media Queries for responsive UI Dec 03 17:16:35 Is there a good way to make an EditTextPreference that depends on a CheckBoxPreference automatically pop open when that CheckBoxPreference is selected? (see http://stackoverflow.com/questions/20356928/manually-trigger-an-edittextpreferences-dialog-when-a-checkboxpreference-it-dep) Dec 03 17:20:19 anyone using persona for a 'single sign on' solution? Dec 03 17:22:22 Phlow: is one mobile page good enough for both iphone and android or are those soo different they each need their own server code? Dec 03 17:23:35 you rarely need different server code, to be honest. There might be a few things that can be more easily solved that way, but for the most part, some browser specific javascript (hopefully encapsulated in some client library, like jquery) and css media queries gets the job done nicely Dec 03 17:25:52 hi how do i add jsch to my android app? referencing it in eclipse would not be enough right? it crashes when i try to call my login asynctask which is where it creates instances of jsch Dec 03 17:32:15 argh... having a tough time dealing with opening sqlite databases in various places in my app... tends to be arbitrarily locked Dec 03 17:32:29 Phlow: k,,thanks a lot Dec 03 17:37:26 helo post some code Dec 03 17:38:05 might not be of much help but I'm working on something similar so might help me in the process Dec 03 17:38:32 minus the lock outs Dec 03 17:38:53 are the various places significant? Dec 03 17:39:13 working on same thing* Dec 03 17:39:27 for example, when my activity starts it launches a service that inserts some stuff into the database, which the activity reads Dec 03 17:40:02 don't open the sqlite db from multiple places Dec 03 17:40:12 singleton Dec 03 17:40:45 that seems excessively limiting... my app uses the database to store things for various activities, and the data is relational Dec 03 17:40:54 nah Dec 03 17:40:59 it's quick about it Dec 03 17:41:11 i may just not be closing it as quickly as i need to Dec 03 17:41:18 yeah Dec 03 17:41:44 i use sharedpreferences as my database Dec 03 17:42:00 did you mean intent btw Dec 03 17:42:00 i create a sqliteopenhelper in the activities (or their loaders) whenever i need to load some data Dec 03 17:42:07 its extremely powwerful; Dec 03 17:42:13 not a service? Dec 03 17:42:32 why would that matter, helo? Dec 03 17:42:50 evanc: isn't that what you said not to do... "< evanc> don't open the sqlite db from multiple places" Dec 03 17:42:58 nah Dec 03 17:43:04 the point of a singleton is that it can be used from multiple places, but they all get the same instance Dec 03 17:43:08 not how you're thinking of it Dec 03 17:43:40 e Dec 03 17:44:16 evanc: so what you meant is "don't open it at the same time" Dec 03 17:47:47 helo: I meant "have one thing open it" Dec 03 17:53:39 evanc: a singleton? Dec 03 17:54:21 evanc: so two different activities can't open the same database? Dec 03 17:55:36 no Dec 03 17:55:41 that's incorrect Dec 03 17:55:47 hi all Dec 03 17:55:49 anyone an idea on how to include javax.* packages with android studio using gradle? Dec 03 17:58:03 you don't Dec 03 18:05:49 I'm trying to reserve a game name I'm working on in the amazon store but when I tested by creating another app with the same name amazon allowed this? Dec 03 18:08:00 i don't know, but I don't think google does Dec 03 18:11:07 Eeeeeee: Hey, yeah I did take a look but couldn't find a certain answer for android Dec 03 18:11:23 i'm pretty sure it's a firm no Dec 03 18:11:45 no it can't be done? Dec 03 18:12:05 honestly I'm not sure Dec 03 18:12:08 too tired to think Dec 03 18:12:50 but that would open up some stupid problems if it were allowed Dec 03 18:12:57 <|0xD34D|> you can have two apps with the same app name but not the same package name Dec 03 18:13:04 ya Dec 03 18:13:19 that seemed stupid though Dec 03 18:13:21 if my database is locked by another thread, should i just sleep and poll it until it is no longer locked? Dec 03 18:13:29 yeah it does seem strange Dec 03 18:13:32 com.name.app = package name right? Dec 03 18:13:46 <|0xD34D|> yes Dec 03 18:13:52 weird Dec 03 18:14:01 probably linking problems they're worried about Dec 03 18:14:49 I'm surprised we don't see more apps competing for the exact keyword search string then if that's the case Dec 03 18:16:28 if your app is going to be complicated you shouldn't just use a sqliteopenhelper Dec 03 18:17:11 helo http://www.androiddesignpatterns.com/2012/05/correctly-managing-your-sqlite-database.html this explains singletons as well camulus Dec 03 18:17:19 http://www.androiddesignpatterns.com/2012/07/understanding-loadermanager.html Dec 03 18:17:44 and this open source tutorial is amazing https://github.com/spacecowboy/AndroidTutorialContentProvider Dec 03 18:18:22 made me switch to contentproviders and loaders Dec 03 18:19:09 when at first I was trying to do everything with sqliteopenhelper. It also has an amazing design Dec 03 18:20:01 i'm using contentproviders and loaders in some places... i should probably move to that entirely Dec 03 18:20:29 why is it that a bound service gets called with onCreate() every time my bound Activity resumes although i have nothing in onResume? Dec 03 18:23:55 are you recreating it yourself? Dec 03 18:24:00 nop Dec 03 18:24:16 using analytics to determine the user isn't exiting the app? Dec 03 18:24:21 i'd guess it is being destroyed without you knowing it Dec 03 18:24:35 helo: my guess too, but onDestroy isnt called Dec 03 18:25:09 Eeeeeee: i can reproduce it. happens when i close the activity with the home button and reopen it from last apps Dec 03 18:25:30 that's ondestroy i believe Dec 03 18:25:37 if i understand you right Dec 03 18:25:38 yeah pretty sure its destroyed Dec 03 18:25:57 i think i'm doing this wrong. i have a long running service with an xmpp connection Dec 03 18:26:06 and an activity that attachs to it Dec 03 18:26:35 i bind to the service in Activity.onStart and unbind from it in onStop Dec 03 18:26:46 i think the service gets destroyed from unbinding Dec 03 18:26:54 makes sense Dec 03 18:27:03 why bind it at all? Dec 03 18:27:13 because i need to talk to it somehow Dec 03 18:27:20 ah Dec 03 18:27:24 is there a different method i should use instead? Dec 03 18:27:30 i haven't messed with them yet :P Dec 03 18:30:05 what is the service doing? Dec 03 18:32:06 it's an xmpp connection to an internet service Dec 03 18:32:34 lol Dec 03 18:32:46 it's basically gcm. i could just use gcm, but it wont work on kindle Dec 03 18:32:52 does it need to persist beyond the app lifecycle? Dec 03 18:32:54 ah i gotcha Dec 03 18:32:57 yeah Dec 03 18:33:02 thought you meant vpn or something Dec 03 18:33:05 that's the main issue here. Dec 03 18:33:12 well then yeah Dec 03 18:33:34 i think i'll eventually have to fallback to use gcm anyway Dec 03 18:33:37 I don't know the different method, but I would find it Dec 03 18:33:38 but i'll fiddle around first Dec 03 18:33:48 if the service needs to persist beyond the app then it shouldn't be bound to an activity Dec 03 18:33:56 :P Dec 03 18:34:17 seand: right. but then how do i comunicate with it? Dec 03 18:34:33 gcm? Dec 03 18:34:38 :P Dec 03 18:35:02 google cloud messaging. Dec 03 18:35:10 hi guys! I have a fragment with a webview. if I go to a new fragment from that fragment and then go back, the webview is blank. any idea why? Dec 03 18:35:12 you can pass in an Intent with data when you call startService Dec 03 18:35:14 basically starts your app when there is a message from the cloud Dec 03 18:35:37 yeah i mean what do you need to tell it to do, it will be pushing notifications to you Dec 03 18:35:40 anyone an idea on how to include javax.* packages with android studio using gradle? Dec 03 18:35:49 seand: yeah, but how do i get back from the service to the activity? i use broadcast intends, but they are quite ... um ugly Dec 03 18:36:01 oh shit gcm does that?! Dec 03 18:36:07 if a cursor doesn't return any rows, does it still need to be closed? Dec 03 18:36:13 oh in the background i gotcha Dec 03 18:36:28 Eeeeeee: yeah gcm does all that and works nicely, but it rules out kindle Dec 03 18:36:55 anyone an idea on how to include javax.* packages with android studio using gradle? Dec 03 18:36:56 you don't Dec 03 18:37:15 aep: LocalBroadcastManager with a BroadcastReceiver Dec 03 18:37:23 ahh Dec 03 18:37:49 seand: right, so basically back to broadcasts. any idea if another app can intercept them? Dec 03 18:38:14 oh. that is answered right in the docs for LocalBroadcastManager Dec 03 18:38:16 thanks Dec 03 18:38:36 why are broadcast intents ugly? Dec 03 18:38:46 because of the huge boilerplate involved Dec 03 18:38:56 but if this is the way to go, i can probably make it nicer Dec 03 18:39:38 it's basically the same amount that's used for startActivityForResult() Dec 03 18:39:42 Eeeeeee: if I know, I wouldn't ask Dec 03 18:39:58 all I can find so far is jarjar with ant Dec 03 18:40:11 but androidstudio works with gradle now Dec 03 18:40:12 I honestly don't know, just making sure you saw it :P Dec 03 18:40:19 that's just the android way Dec 03 18:40:29 seand: yeah its ok. i just wondered if bound services are better Dec 03 18:40:36 seand: i'll go for broadcasts. thanks Dec 03 18:40:39 sure Dec 03 18:42:07 wow... SQLiteOpenHelper.getWriteableDatabase docs say "Database upgrade may take a long time, you should not call this method from the application main thread" Dec 03 18:42:27 so many examples out there of that being called in the main thread :( Dec 03 18:42:38 if you think broadcast receivers have boiler plate... Dec 03 18:43:46 then you might be a redneck Dec 03 18:44:05 and so what if examples do it badly Dec 03 18:44:53 it's your job to do it right Dec 03 18:46:18 pfn: isn't it the job of the example to also do it right Dec 03 18:46:27 hence the name example Dec 03 18:46:33 lol Dec 03 18:46:41 seand: err yeah, the reason i wanted to go from broadcasts to bound is that when the activity restarts, i need to asynchronously refetch the service data Dec 03 18:46:55 helo that wasn't in one of those links i sent you was it? Dec 03 18:47:00 there's a lot of logic boilerplate involved in the async request Dec 03 18:47:20 no Dec 03 18:47:22 like send an intend to the service asking to re-broadcast all current data Dec 03 18:47:32 it's just an example of doing it Dec 03 18:48:31 aep: the way i do it is startService(), service starts task, task fetches data and stores in the database, service sends broadcast that it has completed, activity fetches data from database Dec 03 18:49:11 seand: right, that makes sense. so since they're in the same process, can i use some lock-free structure as "database" ? Dec 03 18:49:26 and access the service as a singleton or something Dec 03 18:49:58 aep: why not use a database? Dec 03 18:50:44 because all data i have to track is the connection state of a tcp socket :P Dec 03 18:51:39 aep: you could probably store it as a public static variable on the service... or use SharedPreferences, maybe Dec 03 18:51:54 right. i'll just use some statics and see what happens Dec 03 18:52:12 I Dec 03 18:52:22 actually, arent Service and Activity even the same thread? Dec 03 18:52:30 I've learned so much recently just from watching you guys talk Dec 03 18:53:09 aep: i'm not sure... i want to say they're both executed on the main thread Dec 03 18:53:16 the callbacks all occur on main thread Dec 03 18:53:25 ah, good to know. thanks pfn Dec 03 18:53:36 all life cycle methods are, unless explicitly stated otherwise Dec 03 18:53:37 right, so statics should be safe Dec 03 18:53:50 thanks Dec 03 18:54:43 I hate the current Google maps ui... Dec 03 18:54:50 Is there an android package manager, like cocoa-pods, NPM, PyPi etc? Dec 03 18:54:53 gems Dec 03 18:54:59 God, why can't they permanently show the distance scale Dec 03 18:55:06 hello , i want to change a image source in a gridview , but there are two imageview in a single grid view element Dec 03 18:55:09 explodes, maven Dec 03 18:55:09 please help Dec 03 18:55:14 they have gradle they uses maven for dm Dec 03 18:55:15 Oh maven? Dec 03 18:55:21 Huh. Dec 03 18:55:30 pfn : can you please help me with this ? i want to change a image source in a gridview , but there are two imageview in a single grid view element Dec 03 18:55:43 no Dec 03 18:55:59 explodes: gradle supports maven and ivy as dependency resolver. and actually mavenCentral is in there by default. just add your dependencies Dec 03 18:56:00 public void onItemClick(AdapterView parent, View v, int position, long id) { ImageView chk=(ImageView) v; } Dec 03 18:56:02 lol. Dec 03 18:56:06 i am doing something like this Dec 03 18:56:42 Eeeeeee : can you please ? Dec 03 18:56:47 lol Dec 03 18:56:55 chinu: So then v is not an ImageView, its a ViewGroup that holds those 2 ImageViews? … Dec 03 18:56:59 sure i'll attempt to Dec 03 18:57:11 but you guys know more than me about this stuff Dec 03 18:57:19 yes Dec 03 18:57:27 Eeeeeee wrote the android SDK, don't believe his lies Dec 03 18:57:34 You should direct all questions towards him Dec 03 18:57:48 explodes : :) Dec 03 18:57:49 got 3 pm's already Dec 03 18:57:50 thanks Dec 03 18:57:53 lol Dec 03 18:58:03 haha Dec 03 18:58:20 how to access the one imageview from the viewgroup ? Dec 03 18:58:33 explodes : how to access the one imageview from the viewgroup ? Dec 03 18:58:40 v.findViewById(R.id.my_image_view_bro) Dec 03 18:58:48 lol Dec 03 18:58:54 i'm not your bro bro Dec 03 18:58:59 bro Dec 03 18:59:01 relax bro Dec 03 18:59:09 chill bro Dec 03 18:59:11 get off me bro Dec 03 18:59:14 I'm not your friend, pal Dec 03 18:59:19 :) Dec 03 18:59:21 i'm not your pal, buddy Dec 03 18:59:23 i'm not your friend pal!1 Dec 03 18:59:31 wow Dec 03 18:59:33 haha Dec 03 18:59:38 those were supposed to be reversed Dec 03 18:59:41 i need sleep badly Dec 03 19:00:13 does this remind some of Cable Guy Dec 03 19:00:24 explodes : thanks man , you were great help :) Dec 03 19:00:28 *does this remind someone of Cable Guy Dec 03 19:00:29 my whole life reminds me of that movey Dec 03 19:00:47 ouch Dec 03 19:01:01 I'm not your cable... guy! Dec 03 19:01:02 jk haven't seen that movie in forever Dec 03 19:01:05 ll Dec 03 19:01:11 hehehe Dec 03 19:01:51 ok, so I just did a zypper up on my micro AWS instance and its almost life-less :'( Dec 03 19:02:10 meant to ask you earlier today, you use aws for apps? Dec 03 19:02:14 6 Dec 03 19:02:17 crap Dec 03 19:02:30 thinking of Dec 03 19:02:58 only if I can get the server up and running Dec 03 19:03:09 lol? Dec 03 19:03:57 you were acting like your aws budget was all tapped out from mega usage today Dec 03 19:04:00 imposter! Dec 03 19:05:06 perhaps I need to use some lightweight AMI Dec 03 19:08:20 rebooted instance Dec 03 19:08:26 fingers crossed Dec 03 19:08:28 well look at you Dec 03 19:08:35 took you all of 2 minutes Dec 03 19:08:44 Does anyone know how I can decode an arbitrary frame instead of only keyframes? I'm currently using MediaExtractor but that one only allows keyframes. Dec 03 19:08:48 such modesty Dec 03 19:14:10 if a cursor doesn't return any rows, does it still need to be closed? -- I would. sorry just remembered i didn't answer Dec 03 19:17:30 if a tree falls in a forest and no one is around to hear it, does it still make a sound Dec 03 19:17:37 yep Dec 03 19:27:18 I stumbled upon some gists by Cyril Mottier the other day, and it felt like I just hit the jackpot. Dec 03 19:27:31 Anyone know of any other good gists or helpful tidbits to help speed up development? Dec 03 19:28:51 onky one from me, just keep playing Dec 03 19:29:04 Not so much libraries or complex frameworks, but rather modular puzzle pieces Dec 03 19:29:57 does not compute Dec 03 19:30:57 busted Dec 03 19:33:00 g00s_ has two accounts, so no more talking about him when he leaves Dec 03 19:33:15 man that guy g00s, hate him Dec 03 19:35:07 he works for apple Dec 03 19:35:07 he gets paid to make us hate android Dec 03 19:36:00 oh that's all Dec 03 19:36:22 where can I apply for google for job that makes people hates apple lol Dec 03 19:37:22 wat Dec 03 19:37:37 g00s_ you work at apple? Dec 03 19:37:48 yeah, i can be critical of android ;) but i'm critical of any tech. no, of course i don't work for apple Dec 03 19:38:01 ask them why their phones are so small Dec 03 19:38:16 probably so women can fi them in their hands easily Dec 03 19:38:28 Does inflating a view always place it on the screen? Dec 03 19:38:40 also, hello everyone Dec 03 19:38:42 pfft, women Dec 03 19:38:46 am i right guys Dec 03 19:38:56 new apple idea: 32" iphonbe Dec 03 19:38:57 if i reuse a Cursor to receive the results of another query, do i need to close it first? Dec 03 19:39:08 seand in other words, they probably have someone doing anthropometry studies ;) Dec 03 19:39:24 the oems that made android phones always sucked Dec 03 19:39:30 suck, suck, suck Dec 03 19:39:45 iphone with 32" volume, it will be a box Dec 03 19:40:09 Hey guys quick question anyone have tutorial or example on how to have my app check for updates? Dec 03 19:40:32 <|0xD34D|> submit it to google play, done Dec 03 19:40:40 seand: lol Dec 03 19:40:57 Thats it? Dec 03 19:41:11 Hmm easier than I thought. Dec 03 19:41:20 I still love my old htc Dec 03 19:41:21 when I think of mp3's and what itunes does, apple can take a hike Dec 03 19:41:46 * helo obsessively goes through all of his code, closing all of his reused cursors Dec 03 19:41:46 i am annoyed that i can't play itunes-bought songs on spotify Dec 03 19:42:11 seand: since volume is x ^ 3, the 32 ft^3 volume is a cube that is around 3.17 inches height, wide and long. :P Dec 03 19:43:07 you mean 32 in^3 Dec 03 19:43:13 doh yes Dec 03 19:43:47 more lately though, i've become critical of google itself; i've asked myself a number of times whether they are becoming an existential threat to humanity Dec 03 19:43:58 I do wonder too Dec 03 19:44:10 g00s_ why do you say that Dec 03 19:44:12 btw cyanogenmod now has this addon tjhat completely removes google Dec 03 19:44:50 <|0xD34D|> it's not a CM feature, it's someone that wanted to remove all google services found in CM Dec 03 19:44:59 oh Dec 03 19:45:08 <|0xD34D|> since their CMAccounts uses some google shizah Dec 03 19:45:29 good idea Dec 03 19:45:29 google is becoming too big and arrogant like apple Dec 03 19:45:43 they need to have android taken away from them and freed to be totally open source Dec 03 19:45:50 all companies go though that stage Dec 03 19:45:54 seand i haven't read Scoble's new book 'The Age of Context' but presumably it has to do with the measuring of your context, of you - through more complex technology (it was the phone, but soon stuff you wear - watches, Glass) … and how the capturing of this massive amount of info, combined with streams from IoT / etc poses a huge privacy risks Dec 03 19:46:01 microsoft had theirs in 90s-2000s Dec 03 19:46:26 apple is having theirs now Dec 03 19:46:36 google will have theirs maybe next decade Dec 03 19:47:15 there was a great article in Der Spiegel a few weeks ago about "why we're allowed to hate silicon valley"; i do agree they have their own agenda, which is not in line with what is best for everyone else Dec 03 19:47:31 but anyhow Dec 03 19:48:01 http://pastebin.com/b2Fwe4MG hi guys i am using this code please help me it crashes with async error Dec 03 19:48:36 hi #android-dev, i'm having issues with gradle - i'm using the gradle wrapper in a fresh new project and the build plugin nr 19 Dec 03 19:49:08 chinu, thats a simple one :-) Dec 03 19:49:15 you're trying to make a toast in the background Dec 03 19:49:42 iirc, if you want to show updates from an asynctask, you can use something like postupdate Dec 03 19:49:44 " Oh my code " i totally forgot Dec 03 19:49:55 brrt : thanks man Dec 03 19:49:58 let me try again Dec 03 19:50:05 http://developer.android.com/reference/android/os/AsyncTask.html :-) Dec 03 19:50:17 publishProgress is what you are looking for, and onProgressUpdate Dec 03 19:50:39 chinu: you should also follow java naming standards Dec 03 19:51:09 what seand says, and another thing Dec 03 19:51:20 two things, really Dec 03 19:51:58 a): its bad practice to tie your class to an implementation of list (arraylist in your case) for X reasons, none of which i'd like to debate much :-) Dec 03 19:52:29 b): when you post an arraylist of strings, why not post an array of strings instead and have varargs handling take care of it Dec 03 19:53:50 seand two books if you are interested: Dec 03 19:53:56 http://www.amazon.com/Surveillance-Security-Risks-Wiretapping-Technologies/dp/0262518740 Dec 03 19:54:01 http://www.amazon.com/Spying-Democracy-Government-Surveillance-Resistance/dp/0872865991 Dec 03 19:54:30 and an article from a few days ago http://www.theguardian.com/environment/earth-insight/2013/nov/28/war-on-democracy-corporations-spy-profit-activism Dec 03 19:54:35 there is billion free ebooks if you can read ebooks on pc, or on ebook device thats geberally not designed for big pages for those kinda bojs Dec 03 19:54:36 i'm sorta interested but probably not enough to get a book Dec 03 19:54:38 books Dec 03 19:55:22 what really had me surprised is how these big corps hired guys like Blackwater, with ties to the NSA, to go after 'activists' Dec 03 19:56:00 so its almost 'criminally irresponsible' to have so much data about people, which can be accessed - with little effort, from these agencies, imho Dec 03 19:56:04 g00s_ ask wozniak how that pic of him buying an android leaked online Dec 03 19:56:22 Eeeeeee woz openly said he liked android Dec 03 19:56:25 i'm pretty sure we can follow that format for a couple of days before it's not funny anymore Dec 03 19:56:28 look alive people Dec 03 19:56:29 he also openy said WP is great too Dec 03 19:56:30 yeah I know :) Dec 03 19:56:37 i agree Dec 03 19:56:45 i like woz, becuase he doesn't get emotionally attached to dumb shit like a phone platform Dec 03 19:57:52 the owner, matt, he's totally gonna close source us over once he's got enough work done. I think it's slowly beginning to happen Dec 03 19:57:54 seand: http://sharebooks21.com/ g00s_ check this too Dec 03 19:57:56 i agree Dec 03 19:58:01 all legit free ebooks Dec 03 19:58:03 its just a tool. maintain that relationship. don't become a tool to some silicon valley co ;) Dec 03 19:58:09 I don't like apple but I do like woz too, he is very levelheaded Dec 03 19:59:16 he is apple Dec 03 19:59:22 I've hated apple since 1983 Dec 03 19:59:36 when they crossed the open source community? Dec 03 19:59:45 previously I just thought apple was weird. then they got slaves Dec 03 19:59:51 I hated em since Dec 03 19:59:53 back then it was competing with Commodore 64 and Atari 400 Dec 03 19:59:54 slaves? Dec 03 20:00:03 oh theyre not slaves its "interns" Dec 03 20:00:22 with very low pay, below even china minium, and huge hours Dec 03 20:00:27 oooh, i see whats up now Dec 03 20:00:44 yeah because real slaves already exist and they're also part of the corporate world Dec 03 20:00:49 any idea what the latest version of the gradle android plugin is? Dec 03 20:01:04 let's not get into slavery guys Dec 03 20:01:06 yeah apple dont have any actual slaves just basically slaves Dec 03 20:01:12 didn't obama say snowden had enough dirt to fuel the press for years to come; i dont think we know the half of it Dec 03 20:01:24 only because i was a slave as a child. it's a sensitive subject Dec 03 20:01:41 g00s_: lets see. I really hate that kinda crap Dec 03 20:01:43 brrt i think it has been 0.6.3 for a while Dec 03 20:01:43 you can bet he's got some really good stuff hidden that's keeping him alive right now Dec 03 20:01:50 g00s_ thanks :-) Dec 03 20:02:10 Eeeeeee: you may be, but sometimes subject have to be boached in order for that bad stuff to be stopped. Dec 03 20:02:28 we're not stopping anything here Dec 03 20:02:32 except maybe development Dec 03 20:02:33 lol Dec 03 20:02:46 unless you mean soceical development Dec 03 20:03:05 i was jk btw just wanted to keep this shit light hearted Dec 03 20:03:27 yeah thats not nice joke Dec 03 20:03:34 is, in anyone's opinion here, it worth the trouble to install your own gradle? Dec 03 20:03:55 brrt i have my own Dec 03 20:04:03 i prefer knowing where all the pieces are Dec 03 20:04:14 but i guess gradlew can be conveninet Dec 03 20:04:27 is it really elaborate g00s? Dec 03 20:04:42 gradle? no, you just unzip a file like maven Dec 03 20:04:48 and put it in your path :) Dec 03 20:04:48 no your setup Dec 03 20:04:53 no Dec 03 20:05:14 fine, i'll do that than Dec 03 20:05:22 i feel the same way of 'knowing the parts' Dec 03 20:05:24 XXCoder1 i guess it wasn't, come back around midnight that's when we really get into how shitty the world is Dec 03 20:05:38 midnight where? lol Dec 03 20:05:42 its 12 pm here Dec 03 20:05:46 rofl Dec 03 20:05:48 i know i should care about the NSA and all these privacy issues but i can't bring myself to care Dec 03 20:06:06 well see that's why you were trying to get into slave talk thhis early ;D Dec 03 20:06:32 :P Dec 03 20:06:44 there are more people in slavery at this time in history than any other Dec 03 20:06:53 Eeeeeee: no, i'll still listen to a discussion on it. but i care more about slavery Dec 03 20:07:01 slaves to extreme capitalism and corporatism Dec 03 20:07:03 honestly snowden was probably in on the leak, they want everyone to know about it yet be able to do nothing Dec 03 20:07:17 i think thats why the Pope said the other day, "hey dipshits …" Dec 03 20:07:34 i'm not catholic but think the guy is great Dec 03 20:07:35 hahah did he Dec 03 20:07:45 hi Dec 03 20:07:48 sneaking out at night to help the poor :) Dec 03 20:08:00 do you follow him on twitter or something? lol Dec 03 20:08:08 I really like that pope. hard for me to like any religious role person but that person is nice Dec 03 20:08:13 g00s_ - marxist some? :-) Dec 03 20:08:21 brrt Rush thinks he is Dec 03 20:08:28 what an idiot Dec 03 20:08:32 who is rush Dec 03 20:08:36 Limbaugh (sp) Dec 03 20:08:40 rush lol dunno why people takes him seriously Dec 03 20:08:44 ah, /me no americano Dec 03 20:08:50 is this a place where i can "ask someone how-to-do-this" in android programming ? Dec 03 20:08:56 goanaut yeah Dec 03 20:09:00 oh dunno go lol yeah it is Dec 03 20:09:00 yes Dec 03 20:09:10 goanaut come at us Dec 03 20:09:15 right ;-) Dec 03 20:09:16 feel free to jump in and ask goanaut Dec 03 20:09:26 awesome, so i am stuck with this Dec 03 20:09:36 you're code won't stop us from rambling lol Dec 03 20:09:38 i got a table view with a lot of textviews in it Dec 03 20:09:41 all small Dec 03 20:10:00 multiple rows and columns with each cell containing a word Dec 03 20:10:34 now i want to swipe my finger over the cells and the one which is touched should enlarge Dec 03 20:11:05 when i lift the finger i want to implement a ACTION_UP event for this cell Dec 03 20:11:36 goanaut - i suppose you could override onTouchEvent ? Dec 03 20:12:08 yep, i tried that, exactly, i have saved my table cells with rect in some arrays Dec 03 20:12:26 hey g00s_ what do you do at apple? Dec 03 20:12:30 actually dont tell me Dec 03 20:12:31 ok, so, what is your problem? Dec 03 20:12:34 i got this. Dec 03 20:12:41 Eeeeeee he doesn't work at apple Dec 03 20:12:45 the problems are Dec 03 20:12:46 fuck Dec 03 20:12:50 way to ruin the jokes Dec 03 20:12:52 damnit Dec 03 20:13:19 they were mediocre at best too Dec 03 20:13:23 goanaut - take your time :-) Dec 03 20:13:27 he used to work there, then quit Dec 03 20:13:38 sweet ok Dec 03 20:13:39 the table cells (textViews) rects have been saved in an array Dec 03 20:14:00 he came into work one day and his coworker was like "did you hear about steve jobs? he dead" and then g00s_ was like "eff this" and left Dec 03 20:14:01 g00s_ lemme guess, you were the company librarian? Dec 03 20:14:13 oh man Dec 03 20:14:23 and the onTouchListener looks if the current pos is in such a rect Dec 03 20:14:25 well now I feel bad that i just cracked a joke about it Dec 03 20:14:26 but it is off Dec 03 20:14:46 i touch it, and it finds a cell not below my finger but far off Dec 03 20:14:51 what joke Dec 03 20:14:56 seand i think that day nobody would stop talking about it Dec 03 20:15:09 so it got annoying Dec 03 20:15:10 second probelm is, how would i emlarge a TextView Dec 03 20:15:12 lol Dec 03 20:15:22 while i am on it Dec 03 20:15:26 ok so you were broken down emotional, don't feel so bad anymore Dec 03 20:15:34 anyone understood my gibberish ? Dec 03 20:15:40 hey, can you all resume talking about actual development? Dec 03 20:16:03 so what about an android, right? Dec 03 20:16:05 please move your discussions to #android or #android-offtopic as appropriate Dec 03 20:16:17 Hello Dec 03 20:16:22 yes, i did understand goanaut Dec 03 20:16:47 uhh.. so i said to the guy "why did you use an AsyncTask when you could have used an IntentService?" Dec 03 20:16:53 if I want to talk to the people in those channels I wouldn't be here Dec 03 20:17:23 new platform stats http://developer.android.com/about/dashboards/index.html Dec 03 20:17:25 but sure we can sit in silence and watch them talk about a technical problem Dec 03 20:17:27 Has anyone run into an issue with a NoClassDefFoundError when declaring a service in the manifest? Dec 03 20:17:30 #android-dev-offtopic? :-p Dec 03 20:17:46 Eeeeeee: use /ignore judiciously Dec 03 20:17:47 now you're talking Dec 03 20:18:05 jonc: I ran into it with an activity, but that was because I had made a typo. Double-check ALL the things. Dec 03 20:18:09 The NoClassDefFoundError is from an inner class it seems (dealing with a 3rd party library that needs to start a service) Dec 03 20:18:23 I copy and pasted the include I used to start the service myself Dec 03 20:19:18 but if I put the in the manifest (which their readme / demo project state you should) I get that exception Dec 03 20:19:42 what was ginger bread at 25.something? Dec 03 20:20:06 It almost seems like the library isn't being pulled into the apk, but the rest of the code is and works, so that shouldn't be the issue Dec 03 20:20:09 has anyone aggregated these into a time line? Dec 03 20:21:33 man well this channel died Dec 03 20:23:47 Two fragments, two key listeners attached to the root view. If onKey returns false, onKey is not called in the other root view. Any work-around for this? Dec 03 20:29:37 http://blog.jetbrains.com/idea/2013/12/intellij-idea-13-is-released-work-miracles-in-java-and-beyond/ Dec 03 20:30:08 so, now i'm asking: should i use this or AS :) Dec 03 20:30:37 yes Dec 03 20:30:42 "easier SQLite database access" Dec 03 20:30:42 g00s_: http://stackoverflow.com/questions/20241765/adding-external-library-in-android-studio-0-3-6/20242441#20242441 Dec 03 20:30:49 so try it Dec 03 20:31:08 anyone want a bitcoin? Dec 03 20:31:18 nobody wants $1000 Dec 03 20:31:32 Can you paypal it? Dec 03 20:31:44 no, why would I do that. Dec 03 20:31:46 argh, we have to download 13 separately, it doesn't autoupdate? Dec 03 20:32:03 I can break it up into like 50 litecoins Dec 03 20:32:25 You just need 7 more for a bytecoin Dec 03 20:32:31 i'm not sure what the relationship is now between AS and intellij; is AS now just 13 with canary / dev android plugin? or are they still basing off the EAP for *14*? Dec 03 20:32:43 snooplsm: 1he1osoeoQ9LHFh8ioF7gdWkPoyzfzMUy ! Dec 03 20:32:49 g00s_: btw, I managed that background thread thingie yesterday. it stopped hanging when I moved the Handler creation out of the HandlerThread class (but keeping my long-running init code in onLooperPrepared) Dec 03 20:32:59 i guess i'll take one shrug Dec 03 20:33:06 Ge0rG \o/ Dec 03 20:34:30 now I have a working prototype-quality radio intercom for the runbo devices. Dec 03 20:34:52 I wish I could sell it to the chinese guys for pre-installation, a dollar per device Dec 03 20:36:36 hey guys! Dec 03 20:36:44 is there a compatibility library for ondraglistener Dec 03 20:36:51 = Dec 03 20:36:53 ? Dec 03 20:37:14 Searching this is pulling up a lot of results for hacks and rootkits: How do I host free IAPs? Dec 03 20:38:04 I'm trying to play a video back through a VideoView, but the orientation is off when I'm playing the video Dec 03 20:38:21 the video is the product of a MediaRecorer using the camera + mic Dec 03 20:43:58 explodes: er, free IAP? Dec 03 20:44:05 just use a button that they click to enable the feature Dec 03 20:45:10 yea yea Dec 03 20:45:18 but what if you want your product to be free for a day? Dec 03 20:46:39 gotta release an APK? Dec 03 20:46:59 why hasn't google added all the features people have requested to play yet? Dec 03 20:47:06 it's been around for years now Dec 03 20:47:39 seand which features? i wish i could give out coupons Dec 03 20:48:24 i think comments for betas / alphas should be invisible and more like bug reports Dec 03 20:48:36 like what explodes said, or giving out free copies to testers, or tons of other stuff Dec 03 20:48:42 ah Dec 03 20:48:45 seand: http://pastie.org/8526475 Dec 03 20:48:48 thats why Dec 03 20:48:50 and i want my promo graphic back :) Dec 03 20:49:03 i don't understand Dec 03 20:49:20 i don't either Dec 03 20:49:31 android studio on linux - fedora 19 - is a horror Dec 03 20:49:33 i need sleep Dec 03 20:50:20 explodes: you cannot go free -> paid Dec 03 20:50:30 can you go free->paid? Dec 03 20:50:35 *** paid->free? Dec 03 20:50:36 yeah so don't change it to free for 1 day Dec 03 20:50:42 explodes: yes, but you can't go back Dec 03 20:50:42 because it will be free forever Dec 03 20:50:44 oh Dec 03 20:50:50 you CAN make it free, though? Dec 03 20:51:00 yes Dec 03 20:51:01 it is seriously eating 150% of my cpu Dec 03 20:51:03 the $ input says it has to be $.99-200 Dec 03 20:51:17 iirc, you can check a "free" box somewhere Dec 03 20:51:31 unless they've changed it; I haven't published an app in a long time Dec 03 20:51:43 brrt i notice that when it starts up; it runs maybe 4 processes in parallel Dec 03 20:51:51 takes quite a while, but should settle down Dec 03 20:52:14 brrt is the man! Dec 03 20:53:36 * g00s_ is exploring using RxJava Subject as a simple event bus on android; so far it works well :) Dec 03 20:53:52 BehaviorSubject ftw Dec 03 20:55:21 question about intellij 13; so when i used CE 12, i don't ever recall getting an update to the android plugin. if I use 13, will the things being worked on in AS show up in plain intellij 13 ? Dec 03 20:56:52 RxJava is what? i'm interested? Dec 03 20:58:11 g00s_: they should Dec 03 20:58:47 Ok, IDEA 13 is out.. do I upgrade my license or go to the community edition Dec 03 20:58:47 Guess I'll try the community one first and see if it works Dec 03 21:03:08 what does a license give you? Dec 03 21:08:34 * brrt is off, bye Dec 03 21:28:55 Can you use Google Analytics during development (before publishing to Play)? Dec 03 21:29:15 yes Dec 03 21:34:36 hi - I'm working on a camcorder widget that allows the user to shoot some video, then preview it Dec 03 21:35:10 but the VideoView I'm using to play the recorded file is not rotating the video to respect the orientation of the file Dec 03 21:36:09 I know that there's some sort of metadata in the file that instructs clients to rotate the actual video itself, but the VideoView does not seem to respect this Dec 03 21:36:46 I think I've been saying "orientation" when "rotation" might be more appropriate Dec 03 21:44:02 A n d r o i g Dec 03 21:45:04 so my service still gets nuked when the activity is closed Dec 03 21:45:11 START_STICKY makes it get restarted Dec 03 21:45:19 but it's counted as crash Dec 03 21:47:13 i have an intentservice that makes a socket connection and gets data into activities with a broadcast intent. a lot of time is spent waiting for data... Dec 03 21:47:32 if the service is stuck waiting for data, is there any way i can stop it so it will exit? Dec 03 21:49:34 i don't see why not Dec 03 21:49:51 oh, i just have to keep the intent around and do stopService with it Dec 03 21:50:00 i have no clue Dec 03 21:52:56 you should probably assume that anything your app has control over you can manipulate at least in some way programmatically Dec 03 21:53:59 hopefully it is willing to do a kill of a thread that is unresponsive Dec 03 21:54:16 that's how I keep answering you without actually knowing the real answer Dec 03 21:55:10 internet tells us that stopservice is not going to stop the thread. Dec 03 21:55:57 you have to be on a thread to download??? Dec 03 21:56:22 intentservice runs a worker thread. Dec 03 21:56:40 wow that sucks Dec 03 21:56:45 but it seems that there is no actual, immediately googlable answers telling people how to kill it Dec 03 21:56:48 i probably need to read up on threads Dec 03 21:57:03 what I know is that neither stopservice nor stopself actually interrupts, it's a common question on stackoverflow Dec 03 21:57:10 ideally you would just connect, receive data, and exit immediately Dec 03 21:57:27 helo: I would suggest timeouts in your socket code. Dec 03 21:57:29 but in this case, i need to connect and wait for data for an indeterminate period Dec 03 21:57:45 in normal cases i will be able to know when i should disconnect Dec 03 21:58:03 but if the user leaves the activity, it would be nice if the service would stop Dec 03 21:58:06 yeah, your service will have to be smarter. if it timeouts , probably needs to do some sort of exponential back-off / retry Dec 03 21:58:30 btw does service use a worker thread? Dec 03 21:58:33 no Dec 03 21:58:47 doesn't it do very similar stuff? Dec 03 21:58:54 with service you'd have to make a handler thread Dec 03 21:59:02 oh ok Dec 03 21:59:04 thanks Dec 03 21:59:13 took me a while to realize that :/ Dec 03 21:59:39 android services are just ui constructs when no activity is visible Dec 03 21:59:53 do not think, despite the name, that there is any background processing ideas connected to them Dec 03 22:00:03 intentservice is closest to such a thing Dec 03 22:00:33 so is every app running in the background just a ui construct? Dec 03 22:00:49 it is just fine to maintain a singleton worker thread in some static class or such if you need background workers Dec 03 22:01:28 you should use service to display something in a notification bar if your application does some processing while its UI is not visible, that's all. Dec 03 22:01:47 or play music off the internet right? Dec 03 22:01:54 in particular, such a service can declare itself as a foreground service by posting a valid notification with a non-zero notification id Dec 03 22:02:01 a foreground service is protected against android task killing Dec 03 22:03:00 you're talking so succinctly I don't know where to full trust you or google what you're telling me Dec 03 22:03:07 Eeeeeee: I do not understand your question before. Dec 03 22:03:10 whether. fully * Dec 03 22:03:13 god i'm tired Dec 03 22:03:49 oh nothing, first time i've heard the idea of a ui contruct Dec 03 22:04:07 what I mean is, UI construct is something that user can interact with. Normally an application is displaying some activity Dec 03 22:04:20 yeah I know what you mean Dec 03 22:04:29 when it is not, it can display a service to indicate that it's still doing something in the background. Dec 03 22:04:37 rgr Dec 03 22:04:41 if it doesn't do that, android may kill the task Dec 03 22:05:15 if i could have a reference to the socket, i could close it and the intentservice would exit Dec 03 22:05:22 logically the service posting a notification telling something useful to the user also is the abstraction that does (or coordinates) whatever background work there is to do. Dec 03 22:05:39 i'm guessing close isn't thread safe Dec 03 22:05:52 afaik it's a synchronized Dec 03 22:05:54 well i'm completely misremembering then Dec 03 22:06:53 nm Dec 03 22:07:14 yeah so for instance stream music, etc Dec 03 22:12:44 Nilium how is intellij 13 so far ? Dec 03 22:13:03 haven't tried it yet, just because i need to get stuff done :) Dec 03 22:13:08 Shit ain't working. Dec 03 22:13:12 lol Dec 03 22:13:16 clear / invalidate your caches ? Dec 03 22:13:31 That's all I can say right now. Dec 03 22:13:39 actually, each time i installed idea i used appCleaner to nuke the last install's state Dec 03 22:13:45 It's a different release, they shouldn't share caches. Dec 03 22:14:05 i dunno, is some of the cache in .idea ? Dec 03 22:14:09 of your project ? Dec 03 22:14:10 Maybe. Dec 03 22:14:36 Looks like that's a no. Dec 03 22:16:42 Why I got always null Dec 03 22:16:43 https://gist.github.com/anonymous/7778556 Dec 03 22:16:44 Well, invalidating the caches using IDEA's invalidate cache thing fixed it. Dec 03 22:16:54 So that's weird. Within 10 minutes of installing it, I somehow fucked the caches. Dec 03 22:16:54 line 32... Dec 03 22:20:08 bluesm whats with all the 'this' … python dev ? Dec 03 22:20:16 bluesm: @+id/timer_text_view is either not in your layout or not a TextView Dec 03 22:20:37 g00s_: I like to no what belongs to what. Dec 03 22:20:47 it belongs to this of course :) Dec 03 22:22:01 evanc: http://grab.by/sxY2 Dec 03 22:22:36 evanc: It is ? Dec 03 22:22:39 evanc: ... Dec 03 22:22:50 evanc: line 12 Dec 03 22:23:05 1) calm down. 2) why would you post a screenshot of XML? Dec 03 22:23:16 3) that's fragment_main, not activity_main Dec 03 22:23:49 evanc: Sorry. Dec 03 22:25:12 ahh, it was easier than i thought Dec 03 22:25:59 alankila: the intentservice's onDestroy can just close the socket :) Dec 03 22:27:16 evanc: Well, probably because of that screenshot, you were able to identify... this mistake... Dec 03 22:27:18 evanc: Thanks. Dec 03 22:27:42 hahaha Dec 03 22:28:19 they snuck it in on everyone Dec 03 22:29:38 evanc: So I need get the fragment, then find the TextView ? Right ? Dec 03 22:31:03 bluesm: presumbably. It would make more sense to put that code in the fragment, though Dec 03 22:43:17 evanc: Ok. I have not too much of fragment understanding (besides it is part of activity that have it's own life) But : Should it work - > this.findViewById(R.id.container).findViewById(R.id.timer_text_view) Dec 03 22:43:47 evanc: (Yes I tried and still null...) (while this.findViewById(R.id.container) is not null) Dec 03 22:49:41 What would be the best way to persist some json data(as a pojo object or as the data itself i guess) Dec 03 22:57:10 Probably would have to use a db/content provider/ etc Dec 03 23:03:13 desmin88: ... just write the json to disk Dec 03 23:03:59 I should have shared that I need to use this with a list Dec 03 23:04:10 so? Dec 03 23:04:27 wait Dec 03 23:04:34 could i do that? Dec 03 23:04:43 you can use whatever you want to back a listview Dec 03 23:05:08 so instead of saving my json in a db, it would be better to just write to disk? Dec 03 23:08:07 i dont think that would be as fas Dec 03 23:08:08 fast Dec 03 23:11:48 json => gson => pojo => db Dec 03 23:14:17 i actually already take my json and make it into an object with gson Dec 03 23:17:35 When trying to setDataSource on a MediaExtractor I'm getting failed to open file "content:/media/external/video/media/13333' Dec 03 23:17:48 that data source comes from an intent and works fine for a mediaPlayer object. Dec 03 23:18:04 (and is just a String to the file location) Dec 03 23:18:19 Any idea how to convert that content:/ into something MediaExtractor understands? Dec 03 23:22:37 would it best then to just one of the available orm libraries? Dec 03 23:25:26 desmin88: if you know what you're doing, writing to a file would be equivalenty fast. In the end, a db would write to a file too. Dec 03 23:25:39 true Dec 03 23:26:46 Why is support for mediakey events so godawful ba Dec 03 23:26:47 bad Dec 03 23:27:23 e.g. Google Play Music hijacks all of them Dec 03 23:27:31 NetFlix crashes on them Dec 03 23:27:57 Hulu hijacks AND prevents further ones from occuring Dec 03 23:32:20 I'm so mad right now. Nothing android related Dec 03 23:32:50 why Dec 03 23:33:33 Because REASONS Dec 03 23:34:42 OH Dec 03 23:36:22 http://thenextweb.com/google/2013/12/03/google-building-chrome-apps-support-android-ios-beta-release-coming-soon-january-2014/ Dec 03 23:41:32 Can a textview act like a marquee when the rotation is set to 90? Dec 03 23:41:33 hey anyone seen this Exception before?? : E/MemoryHeapBase(3787): error creating ashmem region: Too many open files Dec 03 23:42:35 it happens ~1 min into streaming over RTP/RTSP using the libstreaming library Dec 03 23:43:16 seems to have connected and negotiated to my local crtmpserver too.. Dec 03 23:44:13 anyone have experience of this library? (libstreaming) Dec 03 23:47:20 sounds like it's not closing something or other.. Dec 03 23:50:06 yea it does open a fair few sockets.. Dec 03 23:50:22 but I dont reallly want to go digging too deep Dec 03 23:50:43 Ive already had to hack it a bit Dec 03 23:50:49 only minor stuff tho Dec 03 23:51:22 well, seemingly so far.. Dec 03 23:52:31 desmin88, you anything 'bout libstreaming? Dec 03 23:52:41 no. Dec 03 23:54:21 damn Dec 03 23:58:57 has anyone ever backported a module? Dec 03 23:59:19 ebcdic: what are you really asking/trying to do? Dec 04 00:01:25 evanc: i'm trying to get wifi working on my toshiba trive. i just compiled cm-10.1.3 for it but i'm getting the error "CFGP2P-ERROR) wl_cfgp2p_supported : wl p2p error -23" when i force it online. Dec 04 00:02:00 omg best convenience product I've used in a long time. just got rid of 93 email subscriptions x.X unroll.me Dec 04 00:02:08 why I have that many, I have no idea Dec 04 00:02:12 ebcdic: #android-root, possibly #cyanogenmod or cyanogenmod-dev Dec 04 00:03:12 like 25 were different were google newsletters Dec 04 00:07:01 anyone try to get a textview act like a marquee when the rotation is set to 90? Dec 04 00:50:08 what's the adb shell equivalent of "java -jar foo.jar" for an APK? Is there such a thing? Dec 04 00:50:30 am Dec 04 00:59:10 sjmikem: are you wanting to run the application's UI, or run a command line void main(String[]) style of something? Dec 04 01:11:12 friend linked a site with this video on it https://www.youtube.com/watch?v=nKIu9yen5nc famous coders talking about their experiences Dec 04 01:12:35 it's directed towards youth, but it's a good watch Dec 04 01:13:23 it's like a trailer for the best documentary that will never be made Dec 04 01:21:04 Eeeeeee: My school taught me a lot. Dec 04 01:21:59 I first tried android freshman year of Highschool. Forgot about everything until Junior year. got a 4 on my computer science ap test which helped me out a bit. But the best thing that also boosted me is learning PHP on my own and developing wordrpress plugins. That helped me with real life problems. Dec 04 01:22:09 I'm not a senior in HS. Dec 04 01:22:19 Anyone here live in the Chicago area? Dec 04 01:23:08 Not sure which college I should go to Dec 04 01:26:01 Just out of curioisty anyone here do iOS dev? Dec 04 01:26:54 SimonVT: so my adapter now sets the image every getview regardless like you were telling me about. in my listener i set a value that is checked every getview. however, this means that the changed background image wont be seen until a new getview is called for that list item Dec 04 01:27:02 what can be done about that? Dec 04 01:27:39 Anyone familiar using javax.* classes Dec 04 01:27:50 did a rename with jarjar Dec 04 01:28:00 but always end up with: java.lang.NoClassDefFoundError Dec 04 01:33:20 I am using android studio. for some reason, all of my references to R.layout.whatever... get converted automatically to android.R.layout.whatever . and when I try to correct this, AS just converts it right back to android.R.layout.whatever.... very annoying. why is this happeneing, and how to I get it to stop? Dec 04 01:33:56 I thnk it may have something to do with ActionBarActivity... which is added to the activities reguardless of if I want it or not Dec 04 01:39:34 AndreYonadam Nice. The world is your oyster! lol Dec 04 01:39:49 Eeeeeee: lol how? Dec 04 01:39:55 Do you have a lot of offers? Dec 04 01:40:13 You're young bout to go to college just trust me on this one ;) Dec 04 01:40:39 IrishGringo it Dec 04 01:41:02 Yeah Dec 04 01:41:07 I got in three Dec 04 01:41:09 I need help choosing Dec 04 01:41:10 s a bug, an aggravating one at that. Can't help mcuh in the way of getting rid of it Dec 04 01:41:19 make up your own mind Dec 04 01:41:49 Eeeeeee: are you saying that I am dealing with a bug? Dec 04 01:41:54 I'm dealing with a similar one in eclipse Dec 04 01:41:56 Can someone else maybe chime in please? Dec 04 01:42:10 chime in... with what Dec 04 01:42:11 lol Dec 04 01:42:28 did you post a question like 100 pages ago or something? Dec 04 01:43:42 no Dec 04 01:43:46 20 mins ago Dec 04 01:43:47 everyone's going to have their own opinion for yo uAndreYonadam Dec 04 01:43:49 its still on my screen Dec 04 01:44:11 o my adapter now sets the image every getview. in my listener i set a value that is checked every getview. however, this means that the changed background image wont be seen until a new getview is called for that list item Dec 04 01:45:17 thought there was a 1st half Dec 04 01:46:35 what are you attempting Dec 04 01:47:06 yeah let me rephrase Dec 04 01:47:38 In my listview adapter, I set a background drawable based on a boolean value. I have an imageview with a click listener that changes the boolean value. Dec 04 01:48:02 How can I get that background drawable to change when I click the listener on the imageview Dec 04 01:48:26 Because it wont change until a new getview is called Dec 04 01:49:52 why doesn't it change until that next ones called? Dec 04 01:49:59 have you seen this done before btw? Dec 04 01:50:24 let me get a little video for you Dec 04 01:50:29 Is there a way to receive an SMS in a telnet session with an AVD? I know how to send them, but I can't find anything on the internet showing how to receive them other than using a second AVD. Dec 04 01:50:44 http://gyazo.com/be8f93d6815e8d52ce5d8b9483a821c7 Dec 04 01:50:45 sure Dec 04 01:50:48 click mp4 Dec 04 01:52:33 i guess it doesnt pick up my mouse, but the first star was clicked at the very beginning of the video Dec 04 01:52:45 the video is not playing Dec 04 01:52:51 but the gif explains it fine Dec 04 01:53:03 cool Dec 04 01:53:43 you know I just offer to help to be nice I haven't even put this into my app yet Dec 04 01:53:50 there has to be a tutorial out there though Dec 04 01:55:22 http://stackoverflow.com/questions/8244252/star-button-in-android Dec 04 01:55:56 you said you been waiting 20 minutes for someone to help you Dec 04 01:56:01 that was my first google Dec 04 01:56:14 that doesnt help Dec 04 01:56:21 why not? Dec 04 01:56:33 you're switching activities Dec 04 01:56:33 ? Dec 04 01:56:57 Here is my adapter so you know what im working with Dec 04 01:56:57 http://pastie.org/8527054 Dec 04 01:57:07 um Dec 04 01:57:17 regardless ofwhat you have Dec 04 01:57:27 is it what you're trying to accomplish? Dec 04 01:57:35 Sort of. Dec 04 01:57:44 my job is done here Dec 04 01:57:47 Except it doesn't have anything to with states and background drawables Dec 04 01:57:54 so no it doesnt Dec 04 01:57:57 lol Dec 04 01:58:05 you want the whole background to change? Dec 04 01:58:29 AS 0.3.7 is out Dec 04 01:58:31 I already have it worked out so the star will change from outlined to filled on a click. Dec 04 01:58:50 However, this change is only reflected whenever that particular list item gets redrawn in a new getview Dec 04 01:59:33 your onclick doesn't do anything with the background Dec 04 01:59:41 Exactly. Dec 04 01:59:52 your background code only gets called on getview Dec 04 01:59:58 Exactly Dec 04 02:00:16 getview is only called when the view needs to be created Dec 04 02:00:35 If you change anything about the view in someplace other than the getView() such as in an onclick listener, you get some issues because the listview reuses views Dec 04 02:01:47 So I have to use an onclick listener to set a value that is checked in my getView, but that raises the issue of the changed imageview not being redrawn until the next getview Dec 04 02:01:54 and i dont know how to solve this Dec 04 02:02:42 a dirty way to do it is to also set the background in the "onClick", but you also have to do it in "getView" so that the backgrounds will be drawn correctly for all rows Dec 04 02:03:18 i also thought about this Dec 04 02:03:20 but its dirty Dec 04 02:03:42 agreed :) Dec 04 02:04:08 And i cant seem to find much on the internet about this Dec 04 02:04:30 * g00s_ ponders whether to use as 0.3.7 or intellij 13 :| Dec 04 02:04:36 lol Dec 04 02:04:46 was just wondering if I should upgrade or not Dec 04 02:05:05 leaving my stable build comfort zone Dec 04 02:06:00 " Studio will check whether that SDK corresponds to the IDE SDK, and if not, will ask the user whether to use the Studio one or the project one." Dec 04 02:06:09 why the hell do they have an ide sdk Dec 04 02:06:57 hi, im trying to make a script to setup an android development environment on my debian vm. Dec 04 02:07:19 what language Dec 04 02:07:19 is there a way to run the android tool 'android' so it just installs a specific sdk? Dec 04 02:07:42 javascript Dec 04 02:07:56 or html5 with phonegap / cordova Dec 04 02:08:16 oh sorry its a bash script Dec 04 02:08:55 ah nevermind Dec 04 02:09:00 ive just seen the filter switch Dec 04 02:09:04 there's a cmd line i think Dec 04 02:09:13 yes its Dec 04 02:09:29 android update sdk --no-ui --filter 17 Dec 04 02:10:36 apparently I thought we were currently using an IDE SDK Dec 04 02:14:24 notmystyle: i guess im just going to be dirty about it ;) Dec 04 02:17:53 Anyone familiar using javax.* classes in an android app? Dec 04 02:20:32 what is your use case Dec 04 02:20:52 that's not what he asked, desmin88 :P Dec 04 02:21:15 well i might be able to help if know what he is using in the javax package Dec 04 02:22:39 for a jboss client I need to use the javax.naming.InitialContext Dec 04 02:23:08 I tried renaming it with jarjar and including the resulting jar package Dec 04 02:23:30 tried to include the original java jndi jar package Dec 04 02:24:01 removing classed from the jndi package Dec 04 02:24:04 but all fail Dec 04 02:24:21 error: java.lang.NoClassDefFoundError Dec 04 02:24:49 other libraries are included without any issue Dec 04 02:25:02 but anything in the javax namespace fails Dec 04 02:25:22 desmin88: any help is appreciated Dec 04 02:39:27 did they update gradle plugin with 0.3.7 Dec 04 02:43:49 i can never remember how to find that in mavencentral Dec 04 02:45:42 still looks like 0.6.3, pinned to gradle 1.8 Dec 04 02:47:16 bankai_ there ? Dec 04 02:47:57 I have a Listfragment and the onListItemClick() is not fired at times. Its really strange that sometimes it just works. Dec 04 02:49:27 And well, unlike as seen on all the same questions on stackoverflow, I do not have anything that takes focus in my list items. Dec 04 02:51:59 g00s_: dead, buddy sorry :( Dec 04 02:53:02 bankai_ hey, try new intellij 13 yet ? Dec 04 02:53:16 dead? Dec 04 02:53:26 13 is out ? aww no i haven't Dec 04 02:53:27 awwwwww shit this is working!!! Dec 04 02:53:37 bankai_ yes :) Dec 04 02:54:01 just not sure if i should get off the AS train and switch to a less exciting (presumably) ide Dec 04 02:54:12 nuh Dec 04 02:54:20 more stable / less "excitement" Dec 04 02:56:09 what's the version number is it just 13? 13.0.1 ? Dec 04 02:58:35 dunno, i think 13 Dec 04 02:58:43 g00s_: made the switch today, with AS I wasn't able to export libraries Dec 04 02:59:03 with idea 13 that works flawless Dec 04 02:59:21 DenRaf so, with idea 13, is it still using the android gradle plugin to build ? **** ENDING LOGGING AT Wed Dec 04 02:59:58 2013