**** BEGIN LOGGING AT Wed Jul 17 02:59:59 2013 Jul 17 03:00:04 |0xD34D|: https://gist.github.com/acidjazz/6017335 Jul 17 03:00:08 thats my crap so far Jul 17 03:00:25 0 errors in eclipse Jul 17 03:00:27 0 in logcat Jul 17 03:01:11 <|0xD34D|> but what about the activity? Jul 17 03:02:10 as in does hte menu open? Jul 17 03:02:17 or those get functions Jul 17 03:02:19 oh here Jul 17 03:02:30 <|0xD34D|> as in that's where the meat of the navigation drawer stuff lies Jul 17 03:02:47 https://gist.github.com/acidjazz/6017344 Jul 17 03:02:49 tnx for lookin btw Jul 17 03:05:03 <|0xD34D|> maybe something is going on in your overridden setContentView() method? Jul 17 03:07:08 fuck sake android... i've been casting EditText to TextView all this time and it works :p Jul 17 03:07:22 would hte menu work and show up upon my dragging? Jul 17 03:07:25 <|0xD34D|> maybe not, but the rest seems fine Jul 17 03:07:35 yea menus workin great Jul 17 03:07:45 minus this.. Jul 17 03:07:57 but casting it correctly doesnt?? Jul 17 03:08:16 <|0xD34D|> acidjazz: so you can open and close it manually? Jul 17 03:08:43 oh AIDE has C++ support now, cool Jul 17 03:09:41 Makalak thats not android; that you :| Jul 17 03:10:48 |0xD34D|: yup Jul 17 03:10:54 opens and closes fine Jul 17 03:10:58 via drag Jul 17 03:11:20 and hte handlers fire ive tested Jul 17 03:11:42 g00s hardy Jul 17 03:12:17 edit text derives from text view Jul 17 03:13:07 i forget but istn't there some principle about success casting derived classes? Jul 17 03:15:00 |0xD34D|: might be something in this category http://androiddev.orkitra.com/?p=11228 Jul 17 03:15:48 damn Jul 17 03:15:48 nope Jul 17 04:03:10 does dvm do JIT method inlining ? Jul 17 04:26:18 hmm, shipit ain't here Jul 17 04:36:38 can I test in app billing (using a sandbox account) on a production app downloaded thru/submitted to the play store? Jul 17 04:58:47 guys Jul 17 04:59:07 is there a way to find an menuitem form within a method Jul 17 05:08:56 whats the best way to make an async http request? httpclient doesnt seem to support it. Jul 17 05:09:08 do i just spawn a httpclient in a runnable and execute? Jul 17 05:12:28 pretty much Jul 17 05:12:31 or use asynctask Jul 17 05:22:12 woah, hey dragorn Jul 17 05:22:26 fancy meeting you here Jul 17 06:21:53 asm: get a room. Jul 17 06:22:27 huh, that was an hour ago. that's what I get for ignoring joins/parts/quits. Jul 17 06:23:29 (though I actually employ a smart-filter which blocks joins/parts/quits only of users that haven't had any activity in the past hour) Jul 17 06:47:52 g00s: Actually I am not sure if javac itself doesn't do basic inlining... but I think some is done, would have to go into source Jul 17 06:48:23 its done by the vm mostly, because it needs to know what classes are actually loaded Jul 17 06:48:54 marking stuff final is an old myth Jul 17 06:49:29 in an ArrayAdapter, is getItemViewType always called prior to getView? Jul 17 06:58:08 probably Jul 17 06:58:16 don't rely on it Jul 17 06:58:46 both can be called any number of times at any time Jul 17 07:09:32 g00s: right, forgot about certain hooks Jul 17 07:13:27 fuck, now textual is crashing every time i quit. i wonder of weechat is any good Jul 17 07:18:08 g00s: irssi :> Jul 17 07:18:58 p_l is it still alive? they haven't had a release in 3 years Jul 17 07:20:21 I've been using it for the past three years. it is alive here :P Jul 17 07:20:25 g00s: maybe because they don't need to :> Jul 17 07:20:48 g00s: TeX didn't have a new release since what, early 1990s? Jul 17 07:21:09 yeah but, Knuth Jul 17 07:25:45 ummm Jul 17 07:25:46 guys Jul 17 07:25:52 why do you need IRSSI? Jul 17 07:26:00 this is the GUI age after all Jul 17 07:26:02 no? ok Jul 17 07:26:04 :( Jul 17 07:26:17 narekb: because netcat to 6667 gets annoying after some time of typing ping replies Jul 17 07:26:36 haha Jul 17 07:26:51 p_l, Y U NO USE GUI CLIENT? Jul 17 07:27:09 weechat is gui :) Jul 17 07:27:13 can't wait till rui Jul 17 07:27:18 lasserix, rui? Jul 17 07:27:19 text gui :) Jul 17 07:27:23 retinal user interface :) Jul 17 07:27:27 lasserix, what would it be? Jul 17 07:27:42 ahh wait Jul 17 07:27:46 you mean on the eye? Jul 17 07:27:46 narekb: GUI has horrible bandwidth requirements and thus even bigger latency Jul 17 07:27:46 subvocalize your commands, see everything projected in your eye Jul 17 07:27:46 yeah sure Jul 17 07:28:04 lasserix, API included, so you can make eyeApps Jul 17 07:28:08 hehe Jul 17 07:28:11 eyePhone Jul 17 07:28:12 narekb: My irssi setup dates back to time when I had 9s ping Jul 17 07:28:18 oh wait, that's almost plagiarising Jul 17 07:28:19 with the integrated circuit contacts can't be too long now Jul 17 07:28:34 p_l, what year was that? Jul 17 07:28:40 narekb: quite recent Jul 17 07:28:50 Mobile networks and TCP don't like each other Jul 17 07:28:54 :D Jul 17 07:29:27 narekb: especially when you are in a small village where the telco doesn't even want to bring the missing kilometer of copper Jul 17 07:29:47 noone uses bitchX or ircii no more ? Jul 17 07:30:52 p_l, if I may ask, a small village in which country? Jul 17 07:31:49 narekb: Poland. But it doesn't really matter, IMO - it was small enough and out of the way (in various ways) that it would be even worse in many other western countries Jul 17 07:32:04 ahh Poland Jul 17 07:32:21 so...Poland cannot into internet? Jul 17 07:32:22 :D Jul 17 07:32:28 anyway, at least better than Armenia Jul 17 07:32:46 narekb: more like my house is beside a radio jammer :> Jul 17 07:33:25 the kind that when it broadcasts, you can listen to it by just powering the speakers, no aerial needed Jul 17 07:33:43 you have strange neighbors Jul 17 07:33:50 lasserix: yeah. Jul 17 07:34:36 reminds me of a math professor i had, who had worked for the nsa (doing cyrpto) apparently one of things he allowed himself to tell us was that they had been for months cracking some transmission that was intermitenly sent out Jul 17 07:34:39 OTOH, long-range jammers make very good broadcast stations for sending exactly the same kind of stuff they were designed to jam (It used to jam radio free europe, now it broadcasts radio free belaruss) Jul 17 07:34:53 turned out it the message was simply "i love you" Jul 17 07:35:29 ahh that's good to know :) Jul 17 07:35:32 which could be still an important message from their pov Jul 17 07:36:15 I'm not sure if I ever got a response here. Any good way to profile native code with Android? Jul 17 07:36:23 p_l, wait, why ould it jam Free Europe? Jul 17 07:36:34 is it broadcasting some anti-government stuff? Jul 17 07:37:03 "all you need is love" Jul 17 07:37:17 narekb: there was that bit of scuffle called Cold War kinda started by FDR being useless in zombie diet. Jul 17 07:37:33 "and massive ground armies" Jul 17 07:38:02 Leeds: love can help keep the ground armies motivated :) Jul 17 07:38:14 Hi all, I'm using the Google Maps API V2. Is it possible to handle the click on the "my position" button ? .setMyLocationEnabled(true); --> this button Jul 17 07:38:25 "and, ideally, overwhelming non-conventional forces, just in case" Jul 17 07:38:32 Leeds: did you ever see that "The Men Who Stare at Goats?" apparently it was based on some guy who was consultant for military but also kinda new age. He was writing metaphorically saying stuff like you can move through walls (a metaphor) but the generals would take it seriousily (hence the stare at goats and stop the hearts) Jul 17 07:38:55 lasserix: I never actually watched it - should chase it down Jul 17 07:39:08 anyways his ultimate vision of an army *universal soldier was one in which soldiers would be equipped only with a goat in one arm and flowers in the other Jul 17 07:39:28 lasserix: ... lol Jul 17 07:39:29 actually makes a lot of sense if you are trying to win over "hearts and minds" Jul 17 07:40:57 Sonicadvance: if you see iceman ask him, he's been doing opengl stuff in ndk probably has some ideas Jul 17 07:42:05 p_l thank god ragel can output to graphviz Jul 17 07:42:13 stuff can warp the mind Jul 17 07:42:49 lasserix: except that he's crosseyed and looking very angry, doesn't win my heart ;) Jul 17 07:43:17 g00s: yeah :) Jul 17 07:43:30 hm Jul 17 07:45:04 p_l all i can say is, the dude who wrote it - adrian - is one smart dude Jul 17 07:50:47 g00s, adrian wrote what? Jul 17 07:50:59 a tool called ragel Jul 17 08:01:45 ugh I am so desperate I have to ask #android for app ideas Jul 17 08:01:53 Woops, Anyone remember the on 64bit function return on ARMv7 if R1 is high or low bits? Jul 17 08:02:21 Sonicadvance1: ... isn't 64bit ARMv8? Jul 17 08:02:37 or do you mean returning 64bit long in registers? Jul 17 08:03:21 p_l, returning 64bit long Jul 17 08:03:54 ... would have looked into manuals, but then remembered the weird licensing Jul 17 08:06:43 Oh maybe I'm thinking wrong as well anyway Jul 17 08:07:04 64bit float is probably returned in a VFP register I assume? Jul 17 08:08:08 Hello hello. Why doesn't my OnActivityResult get called in the following code: http://pastebin.com/aYh4pRtj ? The same thing seems to work elsewhere, but I don't know if theres something about being inside an event listener or what that's causing the problem Jul 17 08:08:21 hey guys I have a activity I'm hanlding configuration changes myself problem is when its rotated the activity which launched it (back is stack) is getting orientation notifications ? Jul 17 08:08:25 hmm... I'd guess so, if you're using VFP for floating point and not the ancient fpu instructions Jul 17 08:08:52 snollux why are you calling finish? Jul 17 08:09:47 oh wow, how did that get there? @__@ Jul 17 08:09:56 I must have copy/pasted some of my code wrongly Jul 17 08:09:59 one moment please Jul 17 08:10:15 p_l, Yea, just checked with gcc, double output is returned in d0 Jul 17 08:10:34 yes that was indeed the problem, laserix :) Jul 17 08:11:21 cool Jul 17 08:11:24 This explains why some of my other code was failing Jul 17 08:11:37 thanks, sometimes having an extra set of (not stupid) eyes helps haha Jul 17 08:11:50 all the coffee in the world can't make up for the amount of sleep I'm not getting Jul 17 08:12:10 yeah coding sleep deprived is like driving sleep deprived Jul 17 08:12:56 lots of crashes? Jul 17 08:12:58 ;) Jul 17 08:13:19 he wanted to finish it quick Jul 17 08:13:31 yeah exactly Jul 17 08:18:42 hi Jul 17 08:20:11 are there more apps for android then there are for ios? Jul 17 08:21:41 omg i need to go Jul 17 08:25:49 short attention deficit Jul 17 08:27:39 disorder = SADD Jul 17 08:30:03 n sei Jul 17 08:30:52 anyone needs to register for dropbox ? Jul 17 08:31:06 Nighthawk``: lol Jul 17 08:32:06 i need space :) Jul 17 08:33:16 buy it :) Jul 17 08:33:20 I got 50GBs Jul 17 08:34:25 ye, i'll buy for 2 month and that's it. Jul 17 08:34:27 thanks. Jul 17 08:34:42 no 50gb, min 100gb Jul 17 08:35:09 yeah, I got referals Jul 17 08:35:34 how many GB is gmail now ? Jul 17 08:36:08 9? Jul 17 08:36:10 15 Jul 17 08:36:35 yeah 15 now Jul 17 08:36:47 I dunno, I pay $20 for 80GB Jul 17 08:38:17 what do you guys store there? Jul 17 08:38:35 it's strange, everyone cares about storage in phones, big cloud storage Jul 17 08:38:52 I don't give a **** about phone's storage (8GB is more than enough for me) Jul 17 08:39:01 and my free Dropbox is juuuuust fine Jul 17 08:39:51 narekb: music, podcasts, videos, games... Jul 17 08:39:58 (on the phone, that is) Jul 17 08:40:01 yep Jul 17 08:40:02 I need one with a few hundred petabytes for all my vids and stuff ;) Jul 17 08:40:08 lasserix: you know that code I posted? I wonder how hard it'd be to turn that Preference option into just a regular button? Or maybe just take away the checkbox, because right now I'm not even using it Jul 17 08:40:14 narekb, maybe because mostly the dataplans are still rather expensive := Jul 17 08:40:31 * narekb never uses podcasts, because phone doesn't have data, stores not so much music, never stores videos, and doubts he can install any games on his crappy Racer Jul 17 08:40:44 Mavrik: In the US, yes. Jul 17 08:40:56 kakazza, even here in EU Jul 17 08:41:17 it's noticable cheaper than US, but when you can download your spotify library on phone and not burn dataplan is even better :) Jul 17 08:41:19 I pay less than 10 Euro for 1GB, 1000 Minutes, 1000 SMS. And it's not even the cheapest plan, I am just lazy. Jul 17 08:41:40 Every additional GB is 4 EUR. Jul 17 08:41:52 kakazza, or a 32GB SD card is 15 eur Jul 17 08:41:54 * p_l goes by with 300MB plan. Didn't really need more Jul 17 08:42:05 and you don't have to upgrade you plan or be dependant on working 3G signal ;) Jul 17 08:42:27 I think I once had one MP3 on my phone, to test an app. Jul 17 08:42:42 I don't listen to music on my phone, I guess we have different needs Jul 17 08:43:05 kakazza, yes and I think that's the point of this discussion ;) Jul 17 08:43:20 It's still cheap here, no matter if you listen to music or not. Jul 17 08:43:27 the 12 free GB of Nexus 4 storage fills up pretty quickly if you want to listen to music and play a game or two Jul 17 08:43:35 I pay in one year what others pay in two months. Jul 17 08:43:35 snollux: i don't typically use preference activities since my preferences have been very custom, but probably Jul 17 08:43:37 add 2-4GB of space needed for offline nav and you're done :) Jul 17 08:43:54 kakazza, other thing is… roaming costs in EU are still expensive as hell… even with latest directives :) Jul 17 08:43:59 Yeah, sadly N4 has no SD card slot. Jul 17 08:44:15 That's true. Cross the border and you're in deep shit if you use mobile data. Jul 17 08:44:17 why do you need an SD on N4? Jul 17 08:44:28 isn't the internal storage enough? Jul 17 08:44:40 Mavrik does, he has more space needs than your average user. Jul 17 08:44:49 Completely legitimate ones Jul 17 08:44:55 hmmm Jul 17 08:44:59 nah, my N4 is running with about 2-3GB free at all times Jul 17 08:45:03 i guess i will only understand all this when i have a good phone Jul 17 08:45:07 but I can easily understand why some people want 32GB of space Jul 17 08:45:08 (coming not so soon) Jul 17 08:45:35 I have a N4 and I don't have music or games on it. So I'm good. :) Jul 17 08:46:03 mhm, as I said, most space by me is used by Spotify cache and offline nav maps Jul 17 08:46:15 which I could delete… but I hate to redownload them everytime I travel :) Jul 17 08:46:19 :'( this is really bad Jul 17 08:46:26 i dont have Spotify Jul 17 08:46:29 not available in Armenia Jul 17 08:46:36 and the N4 is expensive as **** here Jul 17 08:46:42 I like the S4 for keeping stuff like sd card and replacable battery, and the S3 allowed a 64 GB microSD I think Jul 17 08:46:47 narekb, not available here either Jul 17 08:46:54 What do you use for offline nav? Jul 17 08:46:54 $300 in USA, almost $500-600 in Armenia Jul 17 08:47:02 Mavrik, where are you from? Jul 17 08:47:12 shmooz, yeah… I can't stand the Samsung design though so there's that :/ Jul 17 08:48:10 narekb, slovenia Jul 17 08:48:17 oh Jul 17 08:48:26 how do you use Spotify then/ Jul 17 08:48:27 ? Jul 17 08:49:02 if you pay, you can use i wherever, i beleive Jul 17 08:49:06 mhm Jul 17 08:49:09 yea? Jul 17 08:49:10 damn! Jul 17 08:49:11 just need to open the account through a bpn Jul 17 08:49:14 a) Order from Germany/Austria. b) Drive 2 hours to Austria, buy N4. Jul 17 08:49:23 *vpn Jul 17 08:49:29 I have a friend living in Sweden who's getting me gift cards Jul 17 08:49:32 kakazza, whom was that referring to? Jul 17 08:49:34 and pay with a supported card Jul 17 08:49:51 Mavrik, I believe Slovenia is small and close to Austria. Jul 17 08:50:05 :) Jul 17 08:50:09 hmmm Jul 17 08:50:15 lemme see if that is applicable for Armenia Jul 17 08:50:16 No offense. Not that other EU states are that much bigger. Jul 17 08:50:21 kakazza, yeah, N4 is sold here without problem :P Jul 17 08:50:31 You said it's expensive? Jul 17 08:50:33 most people still bounce the buy from UK's Play store Jul 17 08:50:36 kakazza, it was me Jul 17 08:50:37 Isn't the 8GB version like 300 Euros? Jul 17 08:50:37 narekb did Jul 17 08:50:42 Ahhh, sorry. Jul 17 08:50:46 no problem Jul 17 08:51:03 kakazza, but it is true that our telcos think it coses 600 euro and sell it to you for 350 (16GB) with contract ;) Jul 17 08:51:06 they rolled out spotify here a couple of months ago - for the equivalent of EUR4.71 a month... pretty much a no-brainer Jul 17 08:51:18 N4 is not sold in Portugal Jul 17 08:51:18 :D Jul 17 08:51:28 Mavrik, question Jul 17 08:51:33 if you buy it with contract Jul 17 08:51:41 can you take it outside of the country Jul 17 08:51:42 sim unlock it Jul 17 08:51:46 and screw their contract? Jul 17 08:52:03 A friend in Vienna told me they sell the 8GB version for 300 Euros in their local electronics store. Jul 17 08:52:45 narekb, most EU countries don't lock phones anymore anyway Jul 17 08:52:53 and Play store versions aren't locked at all Jul 17 08:53:01 Leeds - Sweet Jul 17 08:53:04 Mavrik, ok then, but can you take it out of country? Jul 17 08:53:06 (forever) Jul 17 08:53:10 yep Jul 17 08:53:21 but still, have to pay for the contract right? Jul 17 08:53:56 yeah, but usually they won't want to give you a contract if you're not a resident Jul 17 08:54:03 oh Jul 17 08:54:04 I see Jul 17 08:54:16 my best bet is waiting until the release of Nexus 5 Jul 17 08:54:20 and when others get cheap Jul 17 08:54:24 buy a Galaxy Nexus Jul 17 08:54:30 for I am a cheapskate :D Jul 17 08:54:44 I got a contract when I first arrived in Hong Kong, as a non-resident, but I had to put down quite a big deposit... got it back once I got my residency Jul 17 08:54:57 oooh Jul 17 08:55:07 Leeds, yeah, I had huge problems in denmark Jul 17 08:55:17 until they gave me their SS nubmer Jul 17 08:55:20 same with Germany Jul 17 08:55:28 SS number? Jul 17 08:55:33 Germany? Jul 17 08:55:39 * narekb smells something fishy Jul 17 08:55:51 careful Jul 17 08:55:52 (no offense Germans) Jul 17 08:55:53 :D Jul 17 08:56:00 anyway Jul 17 08:56:09 narekb, can't you just grab the phone from co.uk ebay or something? Jul 17 08:56:27 I have no idea how much will the delivery cost Jul 17 08:56:29 avoiding garbage collection is so much fun Jul 17 08:56:33 lasserix, oh yes Jul 17 08:56:34 :D Jul 17 08:56:35 err *evading Jul 17 08:56:46 but thanks for offering .co.uk, I was looking at the USA one all the time Jul 17 08:56:52 i went to the java room to ask about something and they were "ahh you fool don't try and outsmart the gc!" Jul 17 08:56:53 ;p Jul 17 08:57:17 lasserix, and how do you do it? Jul 17 08:57:27 i just reduced my vector objects to float arrays Jul 17 08:57:49 hmmm Jul 17 08:58:17 it was for game physics simulating Jul 17 08:58:29 so probably doesn't apply to many other things in android Jul 17 08:59:19 lasserix, well, Android GC is even more punishing than the Oracle JVM one Jul 17 08:59:28 hehe yeah Jul 17 08:59:28 that's why people quickly switch to C for that code usually :) Jul 17 08:59:40 sice Dalvik has this wierd expensive method calls Jul 17 08:59:51 for instance they say to use enhanced for loop for arraylists for speed, but the transient iterator adds up Jul 17 09:00:51 mhm Jul 17 09:01:16 I had those kind of problems when using AES… had to go to C since BouncyCastle implementation on Android is too slow Jul 17 09:01:37 ahh Jul 17 09:01:40 didn't they switch later to OpenSSL-backed crypto? Jul 17 09:04:03 p_l, hmm, didn't notice on 4.2.2 N4 Jul 17 09:04:10 the openssl lib is about 10x faster Jul 17 09:05:06 but I think the problem was with the key derivation function, which kept calling back to Java for each iteration Jul 17 09:07:29 hey guys Jul 17 09:10:30 anybody good with google+ logins? Jul 17 09:17:53 Hi, I take it that's a problematic question, but still, are there any decent free non-GPL libraries for displaying PDFs or rendering them into images? Jul 17 09:18:51 Writing a publication reader that should also support PDF pages in addition to image pages and while iOS has CGPDF built-in, I haven't found anything suitable for Android yet... Jul 17 09:40:48 exactly how does listview decide to restore the scroll position on configuration change or not? Jul 17 09:41:02 i have it working in one fragment but not another even though they're practically almost the same Jul 17 09:43:59 Anonyneko: can't find anything Jul 17 09:44:17 well, nothing that isn't paid Jul 17 09:46:40 What about mupdf? Jul 17 09:47:45 GPL or commercial... Jul 17 09:50:15 mupdf is even worse, it's AGPL... Jul 17 09:53:04 veeti you can check first visible stow it in out bundle and setposition on the listview on resume Jul 17 09:53:34 i know, but i already have one list where the position is preserved pixel-perfectly Jul 17 09:53:38 dunno why i can't get it working in another Jul 17 09:54:03 id just assume it won't be consitent and garuntee it'll go back to near enough to where user last was Jul 17 09:54:36 you'll want to do it anyways in case you are using back buttons too Jul 17 09:54:51 ie if user scrolls clicks into and goes back, you'll probably want it back at that point Jul 17 09:55:56 might give up and just settle for that :p Jul 17 09:57:06 veeti apparently if you want pixel perfect check out http://stackoverflow.com/questions/3014089/maintain-save-restore-scroll-position-when-returning-to-a-listview but it won't work with dynamic loading content Jul 17 09:57:22 via Eugene Mymrin's answer Jul 17 09:58:49 in reality i was asking myself the same question and i dont think the user will notice that as egregious Jul 17 09:59:12 it's kinda like playing dark side of the moon to the wizard of oz, sure it's not perfect but as long as it syncs up mostly the mind will overlook :) Jul 17 09:59:24 yea, thanks Jul 17 10:19:50 Hey yo! Jul 17 10:28:42 Hey ho Jul 17 10:29:10 memoryleak: how's trix? Jul 17 10:29:17 trix? Jul 17 10:29:34 *a wild developer appears* Jul 17 10:29:57 memoryleak I choose you! Jul 17 10:30:27 Oh sure, choose him over me... *sulks* Jul 17 10:30:48 Glitch_, don't worry, I will choose you Jul 17 10:30:56 Glitch_ used glitch in matrix Jul 17 10:31:04 Glitch_: I thought you were the wild Pokemon in this scenario Jul 17 10:31:07 I don't know if it will be effective :D Jul 17 10:31:26 I've a GridView that shows a couple of information about a list of users. The grid item contains some images and labels. When I retrieve new data, I use mUsersAdapter.notifyDataSetChanged(); mGridViewUsers.invalidateViews(); to refresh the grid - but the grid is not refreshed. The Adapter uses the viewholder pattern, but the view isn't refreshed Jul 17 10:31:29 * Ankhwatcher splashes. It's Super Effective! Jul 17 10:32:11 What can I do to ensure the grid is refreshed? Jul 17 10:33:46 Any of you sell apps on the market? Jul 17 10:34:11 Google decided to pay out twice this month, is this a known issue? Jul 17 10:41:04 hi all - I had a concern about how much disk space apps can use to cache files like images. Take for example tumbler - 30 mins viewing results in a massive folder of images in the android section of the device. My concern is that over time this will balloon in size and result in a full device. I know as a techy I can go into apps and clear the device storage / cache but a home user may not think of this. Is every app given a set block of storage that Jul 17 10:41:04 they cant exceed for example 50mb or could the device potentially get full if the files are not cleared out regularly Jul 17 10:42:06 do you really need to cache an image you saw 30 minutes ago? Jul 17 10:42:58 lasserix, sadly, ImageView cannot display images from remote URLs Jul 17 10:43:04 they need to be downloaded first Jul 17 10:43:17 (not if you use volley's imageview) Jul 17 10:43:25 volley? Jul 17 10:43:59 but still my point why does an app need to cache an image seen 30 minutes prior? Jul 17 10:44:01 narekb: http://www.youtube.com/watch?v=yhv8l9F44qo Jul 17 10:44:27 steveccc: your app is not limited on consumed disk space, you have to take care of it by yourself Jul 17 10:45:13 memoryleak, I...I just... thanks man :D Jul 17 10:45:21 hehe Jul 17 10:45:36 and depending on your target group, you might realize that a lot of users don't even have 10MB of free space for your cache... Jul 17 10:45:50 karlo, example, Mavrik :D Jul 17 10:46:00 please dont take my comments as me arguing as you guys know much more than me. However I wondered if that is a potential source of problems from users who are not technically minded - ie the device slows and gets painful to use over time just because they dont know you have to go in and clear files Jul 17 10:46:10 What's the best Android IRC client? Jul 17 10:46:22 steve you should definatly not be assuming users are going to clear cache your app accumulates Jul 17 10:46:48 lasserix, you should definitely not be assuming that we are talking about HIS app Jul 17 10:46:49 steveccc: it's even worse, if you use something like DiskLruCache class, it'll stop working if there's less free space it assumes Jul 17 10:46:58 he hasn't made any apps (right Steve?) Jul 17 10:47:09 well whoevers app Jul 17 10:47:20 Tumblr Jul 17 10:47:31 i think any app requiring a user to clear the cache manually is a fail. Jul 17 10:47:49 that's like having a user have to set the clock everytime they start their device Jul 17 10:48:04 lasserix, the API provides a way of clearing your app's cache? Jul 17 10:48:31 no i am not an app developer - I only asked the question as a techy I can see how end users may run into problems how android currently runs. Couldnt there be some sort of cache filetype that would be overwritten by a more permanent file such as an app or user data. I just think apps that can cache an unlimited number of files over time could cause problems? Jul 17 10:48:53 idk tbh but i can't imagine it's that hard to keep an int of cache size and delete it (some) of it on startup Jul 17 10:49:35 or maybe a setting in the config where you can say only keep cache files for 7 days, a month, a year etc Jul 17 10:49:49 steveccc survival of the appest: if "you're" app is working like that the only people who are going to continue using it are those who still use AOL out of fear Jul 17 10:50:33 haha Jul 17 10:50:45 this channel is slowly becoming addictive Jul 17 10:50:49 (and VERY useful) Jul 17 10:50:57 lasserix: still use, or still pay for Jul 17 10:51:09 lasserix: i am not sure what you mean. I am coming it from the angle that surely an os maker wants everyone to use their OS and thing its quick and efficient. If over time it becomes slow and bogged down then isnt that something that should be corrected so that the system self cleans itself Jul 17 10:52:16 i think too much thought is put into users knowing what to do themselves (clearing the caches etc) Jul 17 10:54:14 steveccc, that's why developers must also erad the Design Guidelines Jul 17 10:54:17 it is design related I know Jul 17 10:54:30 but design and code are so closely related that it can help greatly while developing the app Jul 17 10:54:45 for example, the guidelines ask app makers to do the heavy lifting or the users Jul 17 10:54:49 example, cache clearing Jul 17 10:56:39 i updated android studio and now there's an issue with gradle. It's saying a min version of 0.5 but if I change the dependency from 0.4 to 0.5 it isn't found Jul 17 10:58:23 jeppy: you should set it to 0.5.+ Jul 17 10:59:29 jeppy: check the troubleshooting section here: http://developer.android.com/sdk/installing/studio.html Jul 17 11:01:25 steveccc: it's an unfortunate situation, but I don't see any way around it that wouldn't also limit apps that actually need that much space. Jul 17 11:01:28 one final question from me - I notice there is a setting for setting where your home directory is stored. I presume this is another feature that the app developers must use is it as alot of the apps I use seem to ignore the setting Jul 17 11:01:37 It's just lazy programming and it happens everywhere, not just Android. Jul 17 11:02:05 sorry not my best sentence but you know what i mean :) Jul 17 11:04:02 steveccc: not really Jul 17 11:06:44 ankhwatcher: what i meant was that I would presume once you set your home folder to say be the external sd card that all temp files or files that an app saves like ted talks for instance would be stored in folders on that home directory. However it seems to be ignored in many cases and hence I wondered if this was another feature that the app developers have to implement and many dont Jul 17 11:09:39 Hi. I have one question about using "Android frome existing code". There is trouble in jni folder. All my code marked with bugs. Jul 17 11:09:41 Ankhwatcher, the change you suggested plus another fixed the problem (the other being http://stackoverflow.com/questions/17614477/gradle-failure-could-not-determine-which-tasks-to-execute) Jul 17 11:10:11 I can compile it but can't launch android application in java. Jul 17 11:10:21 steveccc: as far as I know Android doesn't have a system wide 'Home folder'. Individual apps could allow a user to select where they want to store things on External Storage. But it's probably best not to: http://developer.android.com/training/basics/data-storage/files.html Jul 17 11:11:02 How to fix it? Jul 17 11:12:16 jeppy: I think I had that one too, look for the build.gradle file with nothing but: /home/rory/Dropbox/workspace/AndroidStudio/YoutubeVideosTestAppProject/build.gradle in it Jul 17 11:12:29 ankhwatcher: thanks - I will have a read - I just finding it annoying when you have things like the S4 with limited internal storage (16gb) but a massive card inserted and apps like ted talks and others provide no way to say - put the files you download in this location Jul 17 11:13:18 jeppy: in that file add: task assemble { } Jul 17 11:14:04 Ankhwatcher, deleting the from the iml file fixed compilation Jul 17 11:14:52 steveccc: ultimately that's a design decision by the developer of that application. You should write a review telling them you want an External Storage option. Jul 17 11:15:06 I have a spinner and the default value must be "unknown" but the items inside the spinner must be "status1" & "status2", not the "unknown" inside the values, how can i do that? Jul 17 11:15:06 jeppy: oh, you must have had a different problem than me Jul 17 11:16:13 Ankhwatcher: except Android was designed with one external storage location in mind, the additional sdcard support is basically for read-only access to media. Not that Samsung and friends cared and added multiple external storage anyways breaking most apps from the users point of view. Jul 17 11:16:16 this trouble exist for project with jni only. Every else projects imported fine and work without trouble, Jul 17 11:16:39 any ideas? Jul 17 11:17:02 I have to go now - thanks for the conversation all - I appreciate it Jul 17 11:17:05 AndrewEagle: are you using Eclipse or AS? Jul 17 11:17:11 cya steveccc Jul 17 11:18:02 AndrewEagle: could this be the problem you're having? http://stackoverflow.com/questions/17340240/jni-folder-in-android-studio Jul 17 11:18:38 Ankhwatcher: Eclipse. I wrote below. Jul 17 11:20:01 Ankhwatcher: there is a syntax errors while import project frome existing code. Errors only with jni projects Jul 17 11:20:44 AndrewEagle: (full disclosure - I've never used the Native interface and I never heard of JNI before this discussion) Are you sure you have all of your native dependancies straight? Jul 17 11:20:51 for example 'unresolved inclusion something' Jul 17 11:22:15 Ankhwatcher I have this project work on my another computer. I just copied that and try to create android project frome existion code Jul 17 11:22:44 AndrewEagle: but do you have your workspace set up the same way, do you have the NDK and all the other crap that JNI needs? Jul 17 11:23:00 sure Jul 17 11:23:06 Like I said, I've never done this but it sounds complicated: http://www3.ntu.edu.sg/home/ehchua/programming/java/JavaNativeInterface.html Jul 17 11:24:17 what is it? Jul 17 11:25:56 I already have working code I just need copy that on another computer. And I won't create a new project and replace all files by hand Jul 17 11:27:49 I reask for release all misunderstanding. There is trouble in jni folder. All my code marked with bugs. I can compile it but can't launch android application in java. Jul 17 11:28:01 AndrewEagle: fine just pastebin your errors so we can take a look at them Jul 17 11:30:24 huh, weird. my Preview window is greyed out in Tools -> WIndows in android studio. any ideas? Jul 17 11:30:45 There is not errors in my program. It's errors with import. For example "Unresolved inclusion ", "Type JNICALL could not be resolved" and etc Jul 17 11:31:49 AndrewEagle: that still sounds like an environment issue to me. Can you create a new JNI project successfully? Jul 17 11:31:58 yes Jul 17 11:32:39 I can copy this code manually. File by file. Jul 17 11:33:20 And everything will fine. But it take a lot of time. Jul 17 11:33:55 will it really take that long to copy in a bunch of files and hit refresh? Jul 17 11:37:14 It's abnormal way to use eclipse) Jul 17 11:37:55 BTW this proble appear only with jni projects. Jul 17 11:38:13 yo guys, should stages have levels or do levels have stages... Jul 17 11:38:13 and I see errors only in c code. Jul 17 11:38:20 making a puzzle game Jul 17 11:38:41 james-ubc: levels should have stages Jul 17 11:38:43 and only with import Jul 17 11:40:10 This day last year I was in Los Angeles Zoo Jul 17 11:40:23 james-ubc: it's just semantics Jul 17 11:40:52 Leeds: acknowledging that it doesn't make any difference takes all the fun out of arguing about it Jul 17 11:44:25 can a phase have levels? Jul 17 11:53:25 If I want to make a custom animation (just want to launch a timer basically and change a few values every frame), do I need to superclass Animation or is there something easier/more correct? Jul 17 11:54:27 Are there any mature alternatives to Java for Android development? Like Clojure or Scala? Jul 17 11:54:37 Scala works, afaik Jul 17 11:55:20 Is it possible to use it along with the official documentation? I have no prior Android experience so I'm a bit concerned about that aspect. Jul 17 11:55:22 clojure kind of works as well. Jul 17 11:55:42 paldepind: you can have a look at aprsdroid (scal) and nightweb (clojure) on github Jul 17 11:56:05 paldepind: yes Jul 17 11:56:27 p_l: That sounds great! Jul 17 11:58:28 I'd like to experience with creating a custom keyboard? Is that possible? Jul 17 11:58:46 As in possible using a language other than Java. Jul 17 11:59:45 paldepind: yes. In general, anything that runs under Java 1.5 without load-time tricks or bytecode generation works, but works != usable Jul 17 12:00:05 clojure used to murder the GC with extreme violence Jul 17 12:00:29 paldepind, word of advice: Android is a large framework. Putting a broken 3rd party language support on that will turn your life into living hell. Jul 17 12:00:57 it's feasable if you already know how android works. If you have no idea how Android works it will cause you huge problems. Jul 17 12:01:24 yeah. leaky abstractions Jul 17 12:01:52 at least with clojure, they have their own UI toolkit that abstracts away all the android specifics Jul 17 12:02:08 Well, I'm leaning towards just using Java. Jul 17 12:02:59 paldepind, I suggest at least finishing a basic project with Java so you know basic nuances about how lifecycles work, what app components are, etc. Jul 17 12:03:15 after all, you may like Java Jul 17 12:03:20 and continue using it :D Jul 17 12:03:27 afterwards decide if you want to make your life easier with libraries (e.g. AndroidAnnotations, Guice, etc…) or try to use another language Jul 17 12:03:57 Would Scala be any better? Jul 17 12:05:01 Triple buffering is enabled since Android 4.1 for every surface right? Jul 17 12:05:13 narekb: Yeah, it might not be as bad as I think :) Jul 17 12:05:26 exactly Jul 17 12:05:46 heh, idk why I just realized this Jul 17 12:06:13 the mobile OS competition is in reality a competition between companies for who can port the most exotic language to phones Jul 17 12:06:34 it's hardware after all, embedded technologies, an expected language would be C/C++ Jul 17 12:06:39 Android - Java Jul 17 12:06:44 iOS - ObjC Jul 17 12:06:56 Firefox OS - JavaScript (I consider this the most exotic) Jul 17 12:07:24 narekb, that's the nature of current dev world… when have you last seen a competent C++ developer? Jul 17 12:07:37 C wasn't really a feasable language anyway. Jul 17 12:07:41 narekb, iOS supports Obj-C++ :P Jul 17 12:07:51 narekb: WP - C#? Jul 17 12:07:56 Sonicadvance1, what the **** is that Jul 17 12:08:00 Leeds, even more exotic Jul 17 12:08:02 We should make a python phone Jul 17 12:08:04 I forgot about that one Jul 17 12:08:10 Achillion, screw Python, we must go deeper Jul 17 12:08:13 Brainf**k! Jul 17 12:08:16 lol Jul 17 12:08:29 actually, BB10 is probably the most language-friendly, given you can do C++, Javascript, Java... Jul 17 12:08:33 Leeds: WP does everything that works with CLR Jul 17 12:08:42 narekb, http://en.wikipedia.org/wiki/Objective-C#Objective-C.2B.2B Jul 17 12:08:48 Mix of Obj-C and C++ Jul 17 12:08:53 Leeds, sorta, BB sums the current market up in one OS Jul 17 12:08:59 I'm going to do everything in renderscript Jul 17 12:09:00 :| Jul 17 12:09:01 narekb: I consider Firefox OS to be kinda crazy. In case you haven't seen it: http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ Jul 17 12:09:11 Here is my question in details. http://stackoverflow.com/questions/17699347/eclipse-import-android-project-frome-existing-code-a-lot-of-bugs-in-jni-fold Jul 17 12:09:13 Leeds, Symbian? :) Jul 17 12:09:20 C++, Python, JS, Java, etc. Jul 17 12:09:22 Mavrik: dead Jul 17 12:09:26 :D Jul 17 12:09:41 I dunno, I kinda liked the idea behind FF OS, though I liked it in a fun way and not with any serious contemplation Jul 17 12:09:52 actually dead, as dead as WebOS, WM, PalmOS, etc. Jul 17 12:10:00 i never heard an opinion abut them being slow Jul 17 12:10:02 but I loved the idea Jul 17 12:10:10 it was probably the easiest platform to develop for Jul 17 12:10:19 but I think it will have almost no market on arrival Jul 17 12:10:27 there is no way FFOS will take on high-end phones Jul 17 12:10:35 it has to be stuck in mid to low range Jul 17 12:10:44 narekb: A while ago I asked some Mozilla guy why they though using JavaScript on low cost phones was a good idea considering how inefficient it is compared to more native lanugages. He replied that in Firefox OS JavaScript would be the native language and that that would solve the problem. *sigh* Jul 17 12:10:46 but those both ranges are under Android's reign Jul 17 12:10:46 They'll get a lot of android experiemnters Jul 17 12:11:05 paldepind, JS...native Jul 17 12:11:10 ... Jul 17 12:11:15 I wouldn't mind flashing FF OS on my old android to check it out and if I like it, who knows Jul 17 12:11:19 Achillion: remember that Android is due to hit 1 *billion* shipped devices this year, before you use phrases like "a lot" Jul 17 12:11:21 Achillion, ZTE already made a phone Jul 17 12:11:36 Leeds, wow Jul 17 12:11:37 seriosuly Jul 17 12:11:40 1 billion? Jul 17 12:11:46 give or take, yes Jul 17 12:11:51 Mozilla just seems kinda obsessed with JavaScript despite it's many flaws. Jul 17 12:11:52 Leeds: I'm not saying they'll dominate, just that there might be a little corner of the market for them too Jul 17 12:12:10 I've actually got an interesting problem that I can't fix. I've been working on porting a extremely GPU and CPU heavy application to Android. I'm rendering everything in the JNI code with making an EGL context from ANativeWindow_FromSurface. Problem is the application can't get anywhere near Vsync most of the time, and the farther away from it(5FPS avg) the higher chance of the screen just being black. Anyone have any ideas? Jul 17 12:12:43 I'd try out Firefox OS if I could install it on my Nexus One Jul 17 12:12:50 well, they said 900 million at I/O, and they're at something like 40-50 million new devices per month, so it could be a billion by now, give or take Jul 17 12:13:04 wow Jul 17 12:14:25 Ankhwatcher: Did you know that you can also try it in Firefox? Jul 17 12:15:07 paldepind, nothing beats the real experience Jul 17 12:15:21 Sure. But it's better than nothing ;) Jul 17 12:15:49 well, I can't say he got nothing Jul 17 12:15:51 he has a Nexus S Jul 17 12:16:03 and iirc mozilla has a guide on how to boot FFOS on it Jul 17 12:17:05 narekb: Sure. But the emulator is still easier if he doesn't want to mess around with his phone. Jul 17 12:17:23 yeah, the emulator is two clicks and you're done Jul 17 12:21:43 ugh i badly need something to work on Jul 17 12:24:16 even #android couldn't give me any project ideas Jul 17 12:24:18 damn Jul 17 12:25:21 make a distributed computing client for android Jul 17 12:25:29 folding@mobile Jul 17 12:25:51 Hey all... Jul 17 12:26:09 I'm having an 'issue' with intent filters: Jul 17 12:28:58 balls2thewall, damn, your nickname hurts Jul 17 12:29:00 D: Jul 17 12:30:07 This filter: http://pastebin.com/43q4JxsC somehow matches this intent: http://pastebin.com/j8wK9hZJ Jul 17 12:31:30 is there some clever trick to get around the user clearing the aps data and killing all of my alarm managers :/ Jul 17 12:31:54 yes, don't make an app that makes the user want to kill you Jul 17 12:35:27 balls2thewall, no. Jul 17 12:38:07 ff simulator recognises my android as a connected device Jul 17 12:39:15 I've just downloaded the ADT Bundle but when trying to launch I get this error: plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807: cannot open shared object file: No such file or directory Jul 17 12:39:23 I'm on 64 bit Ubuntu. Jul 17 12:42:18 Could it have something to do with me using openJDK? Jul 17 12:42:41 I'm using openjdk just fine Jul 17 12:42:49 Does it say more, or can you find a real log? Jul 17 12:43:01 You're missing a library, somewhere it should say which one. Jul 17 12:43:19 I'm launching from terminal and that's all I get. Jul 17 12:44:46 does adb work for you? Jul 17 12:45:01 paldepind: try to find the eclipse log file, should have more info. Jul 17 12:45:53 karlo: It's eclipse in the ADB bundle I'm trying to launch. Jul 17 12:46:09 ADB not ADT Jul 17 12:46:21 I'd bet it's this: see http://askubuntu.com/questions/73491/no-such-file-or-directory-for-existing-executable Jul 17 12:47:28 Nope, I've already checked for that library. It is installed. Jul 17 12:47:42 Q: What would be the intent filter matching: scan://scan:0/[OP:TRO] Jul 17 12:49:21 EuroTrash: I've tried launching eclipse with --consoleLog but it doesn't show anything more. Jul 17 12:49:24 * Lachezar slaps his forehead: the PATH should start with a / Jul 17 12:49:42 paldepind: strace eclipse Jul 17 12:49:50 paldepind: it should dump something in its base directory Jul 17 12:50:36 paldepind: Somewhere at the end there should be a line containing "open", "...so" and "ENOENT" Jul 17 12:57:47 Lachezar: I can't seem to find anything. Jul 17 12:58:03 Leeds: why issit so diffcult for you to unban *!*Regi@*.singnet.com.sg from #android-root?!!! Jul 17 12:58:21 Leeds: is un-banning *!*Regi@*.singnet.com.sg from #android-root such an issue to you? Jul 17 12:58:35 how do I constrain a text value in an SQLite table to 'not null' and 'unique' at the same time Jul 17 12:59:00 guys...I'm not trying to be annoying here Jul 17 12:59:14 Ankhwatcher: unique not null? Jul 17 12:59:15 or does 'unique' infer 'not null' Jul 17 12:59:20 no, it doesn't Jul 17 12:59:26 you can have one null entry. that's unique. Jul 17 12:59:43 sqlite.org Jul 17 12:59:52 there's rather thorough documentation there on what can be in each command Jul 17 12:59:54 Leeds: what is your problem honestly? Jul 17 13:00:10 Digistras: it's starting to sound like his problem is you Jul 17 13:00:25 gah i got mad dc'd ;_; Jul 17 13:00:28 lov: I was wrongly banned Jul 17 13:00:30 and while you're not trying to be annoying, that's what's happening. Can you please just /msg Leeds? Jul 17 13:00:33 OK, great. Jul 17 13:00:36 lov: yeah I found the documentation, that's how I know it's called unique, I just wasn't sure how to apply it Jul 17 13:00:43 I don't know why that concerns us since -dev and -root aren't in the same group. Jul 17 13:00:59 anyway, can i somehow prevent my Alarms from being wiped when the user clears the app's data? Jul 17 13:01:07 Leeds is the connection Jul 17 13:01:25 I'm in #crypto, maybe when you get banned from here you should complain there? Jul 17 13:01:39 balls2thewall: a data wipe means your app pretty much goes back to newly-installed state... it wouldn't make much sense for your alarms to still fire Jul 17 13:02:12 i need those alarms to refresh my widget :/ Jul 17 13:02:18 Digistras: look, I'm trying to gently suggest that you just take this up directly with leeds, instead of with entire unrelated channels. Jul 17 13:02:47 Leeds's PM is set to ignore al Jul 17 13:02:49 all* Jul 17 13:03:06 Well, figure out someone else who's an op in #android-root and bug them. Jul 17 13:03:11 Alternately, go outside; it's IRC drama. Jul 17 13:03:13 lov: short story - I banned him from -root for asking about warez, he came in on another account and moaned about it for over an hour, so I banned his new account as well Jul 17 13:03:15 Does anyone had a google developers account terminated yesterday ? Jul 17 13:03:19 oh, sweet. Jul 17 13:03:20 and now I'm ignoring him Jul 17 13:03:33 Yeah, my heart aches for you Digistras. Jul 17 13:04:15 hah Jul 17 13:04:41 Leeds: Like I said...there wasn't any warning or whatsoever about asking for warez! Jul 17 13:04:51 Hello. I have a question. Jul 17 13:04:59 it's common sense. Jul 17 13:05:01 sulaiman: hello Jul 17 13:05:09 Why can I simply call findViewById in my activity class Jul 17 13:05:19 but in my fragments, I need to call it on a view object Jul 17 13:05:23 You're asking for illicit software in channels filled with people who make their living by writing software Jul 17 13:05:23 Leeds: Unless you have a warning...is not fair to ban people Jul 17 13:05:28 just like that Jul 17 13:05:43 Digistras: look, this is your final gentle warning. Please stop and go away. Jul 17 13:05:54 yeah, everyone knows you should ask for warez in #android-dev, 'cause developers just love helping people steal software Jul 17 13:06:23 or you should just put it in Chan Topic Jul 17 13:06:30 like what everybody else is doing Jul 17 13:06:31 the difference is confusing me. Jul 17 13:06:59 hah Jul 17 13:07:06 lov: sorry about that Jul 17 13:07:11 Not really your fault Jul 17 13:07:28 I mean, 09:04:46 < Digistras> Leeds: Like I said...there wasn't any warning or whatsoever about asking for warez! Jul 17 13:07:37 I'm not going to lose sleep about this. Jul 17 13:08:03 Leeds: How would u feel if the person who is banned is u? Jul 17 13:08:24 oh ffs. Jul 17 13:08:33 ReGiStRaS: kinda obvious that warez is not to be talked here Jul 17 13:08:35 heh Jul 17 13:08:45 hi Jul 17 13:09:43 does anyone know if I listen for GPS_PROVIDER location updates does Android really just uses GPS or are they using the GSM/Cell-ID and WIFI although ? Jul 17 13:09:52 No, it really uses GPS Jul 17 13:09:57 Q: Can I send broadcasts from a Thread started in a Service? Using the getApplicationContext() from the service... Jul 17 13:10:03 If you want Cell/Wifi, register for network provider updates. Jul 17 13:10:10 you have to register for both if you want both Jul 17 13:10:12 lov: ok thanks Jul 17 13:10:14 np Jul 17 13:10:21 Lachezar: I don't see why not. Jul 17 13:10:24 try it and see? Jul 17 13:10:56 lov: do you know if it is possible to pass the GSM/Cell-ID location to the GPS sensor to get a faster GPS result Jul 17 13:11:00 lov, why am I able to call "findViewById()" in my activity class without a view object? Jul 17 13:11:15 I think this technique is called "hotfix" but iam not really sure Jul 17 13:11:30 bdrop: this actually happens transparently if your hardware supports it and the oem isn't a nitwit Jul 17 13:11:40 bdrop: AGPS, and it's done transparently for you Jul 17 13:11:48 the LocationManagerService will try to seed the GPS with information from other sources Jul 17 13:11:49 sulaiman: because Activity has a findViewById() method Jul 17 13:11:59 sulaiman: I'm not really sure what the question is. Jul 17 13:12:02 bdrop: sometimes you need to make sure you've got very good time data, though Jul 17 13:12:09 so it DOES use GSM already? Jul 17 13:12:16 bdrop: again, it's an implementation detail. Jul 17 13:12:38 so it depends on the hardware not on the android version? Jul 17 13:12:39 bdrop: I'd encourage you to take a look at the LocationManagerService, GPSProvider, and the glue C code Jul 17 13:12:52 lov, I just got confused, in my activity class, I access view objects using "findViewById()", in my fragments class, I need to call that method on a view object. Jul 17 13:12:57 well, support for this was added in 1.6 or so, so I think it's safe to ignore version. Jul 17 13:13:07 ok Jul 17 13:13:10 and it's more an issue of "did the oem drop the ball or are they actually hooking this up" Jul 17 13:13:25 I'm trying to remember this from like 2 years ago though, sorry Jul 17 13:13:28 can I programatically say "dont do it" Jul 17 13:13:30 ? Jul 17 13:13:34 I'd strongly recommend that you view the source to know for sure Jul 17 13:13:36 no, not really. Jul 17 13:13:50 Unless you're able to flash a custom firmware, you don't have control over this, effectively. Jul 17 13:13:52 ok damn … but thanks a lot Jul 17 13:14:09 There are some undocumented extra commands you can pass through locationmanager but whether they do anything who knows. Jul 17 13:14:24 bdrop: why don't you want to do this? Jul 17 13:14:58 as I understand it they are AGPS chipsets, they're basically useless without some sort of network awareness Jul 17 13:15:18 not true! Jul 17 13:15:28 GPS works just fine without the A part, it's just much slower Jul 17 13:15:45 the original Moto Droid, for example, had no A at all and it worked quite well Jul 17 13:15:48 Ankhwatcher: "A" stands for "Augmented", not "Retarded" Jul 17 13:15:57 or Assisted Jul 17 13:16:02 Assisted :> Jul 17 13:16:13 we are testing for hardware stuff … do you know when I switch to airplane mode … my GPS should be up but GSM down right ? so that a way I could test if it makes a difference to the chip right? Jul 17 13:16:15 lov: both work :P Jul 17 13:16:15 AGPS is a really confusing term, because there are at least 2 different features which use that name Jul 17 13:16:24 lov: I am trying... The Brodcast seems to have sent OK, but the receivers don't get it, just the one set by the sendOrderedBroadCast() gets it. Jul 17 13:16:31 even though, if you don't have any A-GPS tech it can be really hard to get a lock in the middle of a large city Jul 17 13:16:34 Leeds: well, the "old" AGPS got kinda renamed to DGPS, iirc Jul 17 13:16:50 ah, View.findViewById() and Activity.findViewById() are two separate methods. Jul 17 13:16:59 no longer confused Jul 17 13:17:30 sulaiman: yes, that's what I said Jul 17 13:17:31 bdrop, some GPS startup data can be cached for awhile, so keep that in mind when testing no-network support Jul 17 13:17:31 bdrop: you're assuming that the GPS hardware wasn't already primed with a location. Jul 17 13:17:44 bdrop: if you do a battery pull then start the device in airplane mode with wifi off, that would work. Jul 17 13:18:00 thanks Leeds Jul 17 13:18:18 Mavrik: that's an urban canyon problem, and not really GPS's fault per se Jul 17 13:18:28 lov: damn seems to be a hard field … of really getting to know what the deivice is doing Jul 17 13:18:43 lov, yep, but usually that coincides with having alot of Wifis around making at least some location lock possible :) Jul 17 13:18:55 bdrop, also, remember to send delete_aiding_data to LocationProvider Jul 17 13:19:01 so Android clears all cached GPS data Jul 17 13:19:18 Mavrik: that's an implementation detail and not guaranteed. Jul 17 13:19:30 true Jul 17 13:19:45 not sending it however will practically guarantee cached GPS boot-up data ;) Jul 17 13:19:48 Even a battery pull may not be safe, depending on whether the GPS impl on the radio has the concept of caching recent aid data Jul 17 13:19:56 * lov rolls his eyes Jul 17 13:19:56 * p_l wishes more OEMs supported more sourced of location data like Samsung does Jul 17 13:20:16 p_l, what do you mean? :) Jul 17 13:20:21 ? Jul 17 13:20:43 Samsung implemented INS in some Galaxy series devices Jul 17 13:21:20 it's noisy as fuck, but gives you extra movement data to use with GPS, GLONASS, WiFi and Cell data Jul 17 13:21:53 mhm Jul 17 13:22:05 afaik new Nexuses have barometers to aid GPS locks as well Jul 17 13:22:14 wonder how many devices have GLONASS capable chips though Jul 17 13:22:18 Mavrik: barometer... wouldn't exactly do much Jul 17 13:22:18 Can I add a new custom permission to an existing Android permission Group? Jul 17 13:22:30 p_l, gives altitude data Jul 17 13:22:40 apparently helps :) Jul 17 13:22:43 Mavrik: N4, SGS3, Note II and SGS4 do have GLONASS I think (N4 definitely does) Jul 17 13:22:59 Gargh! Pasted, and noted the misspelling... F*ck. Jul 17 13:23:08 I am stuck, I need the partition list in bytes there is nothing to see in /proc/mtd Jul 17 13:23:13 Mavrik: well, more like helps you know altitude rather than get lock - altitude data from GPS is the worst component in quality Jul 17 13:23:14 I think I have to contact some hardware manufactures to really know when AGPS is used … or do you know any information sources about that? Jul 17 13:23:15 xperia mini pro does too, that was one of the reasons I decided to get it Jul 17 13:23:43 bdrop, the catch is that GPS chipsets are really device specific, so manufacturers are your best bet Jul 17 13:23:49 since the behaviour can vary wildly Jul 17 13:24:43 dENNISZZ: You MAY have better luck asking in #android-root, sorry. Jul 17 13:24:59 bdrop: good luck getting any responses out of them. Jul 17 13:25:03 ok Jul 17 13:25:04 what's the keyboard shortcut to bring up documentation in Android Studio, I swear I know it last week but now I can't remember it. Jul 17 13:25:05 I will .. thanks for nice discussion! Jul 17 13:25:56 Ankhwatcher: try Control-Q ? Jul 17 13:26:22 p_l: that's it! I new it was something with my left hand, but that's all I could remember Jul 17 13:26:32 Ankhwatcher: that's the default IntelliJ keymap Jul 17 13:27:05 gah, lemme guess Jul 17 13:27:17 implementing listview sorting via drag-and-drop is gonna be a two-day tasj Jul 17 13:28:37 Mavrik, https://github.com/bauerca/drag-sort-listview Jul 17 13:29:30 I use that and it works fine Jul 17 13:36:48 Mavrik, did you get what I said? -.- Jul 17 13:36:57 yep, looking at it Jul 17 13:37:03 ok Jul 17 13:37:04 am slightly annoyed, but still :P Jul 17 13:42:52 Hola mentlegen Jul 17 13:44:00 Hi, starting to create my own rom, Build went throug till here : Jul 17 13:44:02 running: java -Xmx2048m -jar /home/optx/s/out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpIl0nr1 /home/optx/s/out/target/product/i9300/schizo_i9300-ota-eng.optx.zip Jul 17 13:44:02 done. Jul 17 13:44:02 Running releasetool... Jul 17 13:44:03 /bin/bash: ./vendor/zzz/tools/squisher: Datei oder Verzeichnis nicht gefunden Jul 17 13:44:05 make: *** [bacon] Fehler 127 Jul 17 13:44:40 I suspect you'll get more help in #android-root and/or #cyanogenmod (or was it #cyanogen?) Jul 17 13:44:47 and also, use pastebin Jul 17 13:44:56 ... and LANG=C Jul 17 13:45:00 or something besides pasting multiple lines into irc Jul 17 13:45:13 and install english language files for everything ^^ Jul 17 13:45:23 sorry... and thanks Jul 17 13:45:30 What's the best way to make a ListFragment hook to a cursor and update automatically? Jul 17 13:45:34 np man, gl Jul 17 13:46:24 is there an etherpad-clone with syntax coloring? that would be the bomb Jul 17 13:46:47 unfortunately GNU tools and thus a lot of soft on linux doesn't have standard error ids, so if not for heroic efforts of my HS german teacher and my general language skills, I would have even less idea what "Datei oder Verzeichnis nich gefunden" means Jul 17 13:47:07 (I am guessing it couldn't find a file) Jul 17 13:47:13 p_l: yep Jul 17 13:47:20 file or directory not found Jul 17 13:47:31 p_l: pretty sure it means "Insufficient funds for a date, Verzeichnis, get a job and try again" Jul 17 13:47:54 "also, you have an odor." Jul 17 13:48:05 lov: I applaud you, sir, for your wonderful wit :D Jul 17 13:48:10 * lov bows. Jul 17 13:48:19 * p_l slowly claps Jul 17 13:49:37 yeah, german error texter are a mean bunch. it's because thei're unionized. you don't want to know what they put into VS 2008 error texts, when they nearly went on strike Jul 17 13:51:09 defnordic: at least Microsoft puts message ids in them, so you can refer to a database when you get something in language you completely don't understand Jul 17 13:51:39 for that release they converted all IDs to base e Jul 17 13:51:48 nasty bunch Jul 17 13:53:40 nice strike methods :) Jul 17 13:54:35 ...so any advice for me? Jul 17 13:54:56 there is something like oncontentchangedobserver if you use cursorloader Jul 17 13:55:05 Well, bravo on the IntelliJ folks for making the shortcut for "Refactor code" be Ctrl-Alt-L, which is the same keyboard shortcut for "Lock session" in ubuntu. Jul 17 13:55:08 thanks guys. Jul 17 13:55:49 lov: yeah that was nice of them Jul 17 13:56:12 It got a good laugh out of me the first time I did it Jul 17 13:57:02 lov: ... who the fuck makes Ctrl-Alt-L the lock sequence o_O? Jul 17 13:57:31 I have mine set to Windows+L, but for some reason you need to do it twice to lock the computer Jul 17 13:57:33 my refactor is ctrl+T, iirc Jul 17 13:57:59 I never think about the shortcuts, I just use them Jul 17 13:58:17 so I might not recall the modifiers correctly Jul 17 13:58:30 * Ankhwatcher is running Linux Mint Cinnamon 15 Jul 17 14:00:35 * p_l is pretty sure C-M-l does something in his Emacs Jul 17 14:00:45 bad ubanto, bad Jul 17 14:00:57 well that gors without saying Jul 17 14:01:03 crapuntu is crap :p Jul 17 14:02:28 I just opened emacs to see if ctrl-alt-l did something, and it just locked my screen :x Jul 17 14:02:39 hahahahahaha Jul 17 14:02:52 didn't think that one through Jul 17 14:03:18 moves a page, it seems Jul 17 14:03:46 C-M-l = reposition-window Jul 17 14:03:47 My spinner invokes the onItemSelected method when the app is started, how can i handle this (not invoking with startup)? Jul 17 14:11:18 found it Jul 17 14:16:41 ubuntu is my distribution of choice because it has significant community support, i.e. lunchpad, and installation/maintenance is a breeze, and is far better than shit like fedora or gentoo. Jul 17 14:18:47 if I were setting up a production server, I'd probably use debain stable over ubuntu, but for personal use I happily enjoy using ubuntu. Jul 17 14:19:16 anybody who says otherwise is just a circlejerking clueless fanboy. Jul 17 14:19:17 aaaaaaaah Jul 17 14:19:22 ubuntu is gay Jul 17 14:19:28 ubuntu is loaded with full of bloatware Jul 17 14:19:29 google play changes on desktop wrecked my downloads!!!! Jul 17 14:19:31 AAAAAAAAH!!!!! Jul 17 14:19:38 what I do now????? Jul 17 14:19:45 reboot recovery :P Jul 17 14:20:17 dENNISZZ: good thing you can select what you want to install instead of going the "i'm a stupid moron, just install everything for me" route. Jul 17 14:21:07 Hmmm... Anything special I should do to sendBroadcast() to a listener in a different application? Jul 17 14:21:42 speeder: first, you can stop screaming like an excited schoolgirl. Jul 17 14:22:12 pragma-: excited schoolgirl scream "AIIIIIII!" at least on my language Jul 17 14:22:17 (I am from Brazil Jul 17 14:22:18 ) Jul 17 14:22:31 I'm getting a couple errors when I try to build my android application. Apparently it can't find R.layout.login and all the ids defined in that layout. The weirdest part is those fields exist in R.java. Here is login.xml http://vpaste.net/47pTB I've been trying to figure out the issue for the pass hour with no luck. Jul 17 14:23:03 lov, default intellij refactor is ctrl+alt+shift+t Jul 17 14:23:18 taar779: did you import android.R.* ? Jul 17 14:24:00 defnordic: you shouldn't have to correct? Jul 17 14:24:13 Zharf: Argh, typo. I meant reformat, not refactor. Jul 17 14:24:42 aha Jul 17 14:24:53 pragma-: that true, but a lot of users dont know that ;) Jul 17 14:25:19 yeah that's ctrl+alt+l, however I've *never* used it -.- Jul 17 14:25:24 GG I suck Jul 17 14:25:35 I caused a memory leak with my SQLiteOpenHelper Jul 17 14:25:36 D: Jul 17 14:27:03 Yay! Jul 17 14:27:07 Lachezar, broadcasts, by default, go to every registered listener Jul 17 14:28:01 taar779: not sure :/ Jul 17 14:29:08 pfn: Yet no listener gets my broadcasts :( Any way to debug it? Jul 17 14:29:10 Zharf: is there a way to have IntelliJ automatically refactor on save or something? I want our team to avoid having stupid whitespace changes be part of code reviews and changes Jul 17 14:29:16 defnordic: Well crap. Jul 17 14:29:47 Lachezar, make sure you're sending the right intent Jul 17 14:30:54 lov: why not just tell your team to use whitespace correctly? Jul 17 14:31:27 I'm not sure what else to try, I've cleaned the project a bunch of times. Removed the bin and ten files myself and I'm still getting the errors even though they exist in R.java Jul 17 14:31:27 * pragma- shudders at automated tool-assisted reformating. Jul 17 14:31:28 pragma-: mistakes happen. The point is that if everything is always formatted correctly on save/commit, it's not an issue. Jul 17 14:31:46 hi, anyone used a viewpager with fragments together with google analytics tracking yet? I can't find a good way to "track" the viewpager fragment viewing Jul 17 14:31:59 pfn: Does the 'data' field come in play with Broadcast Receiver matching? Jul 17 14:32:22 Lachezar, only if your intentfilter specifies it Jul 17 14:33:18 How is it possible to leak an SQLiteOpenHelper when you have no references to it outside of local scopes? :S Jul 17 14:38:57 I need to build an app that runs services in the background (even it the app is closed), look like an alarm. What kind of services do i need to build? Jul 17 14:40:31 Brian|CS, because you passed a context to it, and you didn't close it for it to unregister itself? Jul 17 14:40:48 pfn: Actually, I just figured out 1 memory leak lol Jul 17 14:40:48 pfn: If I setData() on the intent broadcasted I don't receive it. If I don't I receive it. The IntentFilter is: new IntentFilter("action"); Jul 17 14:40:56 there was one instance where I forgot do .close() Jul 17 14:40:59 so thats like 2 memory leaks down Jul 17 14:41:07 but still missing something D: Jul 17 14:41:46 FrancescoV: I would use the AlarmService, and keep nothing from the application running. Jul 17 14:42:33 Lachezar: tnx, i'll check it out :) Jul 17 14:51:04 So it was my understanding that when an activity/fragment is stopped, and there are no more references to it, that it's associated view and itself would be released from memory Jul 17 14:51:21 that's right Jul 17 14:51:27 anyone wanna explain why when I manually release my view's bitmaps on the fragments .onStop() it reduces my memory usage? >.> Jul 17 14:52:00 because bitmaps are managed externally to your activity Jul 17 14:52:03 Because release is optimistically releasing the bitmap contents living in C memory, rather than waiting for the GC stage. Jul 17 14:52:15 You're doing the same thing that would happen automatically, just sooner. Jul 17 14:52:28 lov, you can reformat before commit in intellij Jul 17 14:52:30 lov: So bitmaps in a view aren't released when a view is released? Jul 17 14:52:33 am I getting that right? Jul 17 14:52:37 pfn* Jul 17 14:52:37 not quite. Jul 17 14:52:44 that was my hypothesis Jul 17 14:52:52 but I couldn't find any real backup to it online Jul 17 14:52:53 so I wasn't sure Jul 17 14:52:54 It's important to note that the Bitmap class has native code backing it, where the actual bitmap content lives. Jul 17 14:53:12 So it's not bad practice to .recycle() my bitmaps on my .onStop()? Jul 17 14:53:28 As long as you can guarantee that no one else is using that bitmap, it won't hurt. Jul 17 14:53:44 lov: The Bitmap is specific to the view Jul 17 14:53:44 that said, it's extra effort for little gain if you're not paranoid about your memory usage. Jul 17 14:53:54 so once the fragment is gone, it's not being uesd Jul 17 14:54:07 Yeah, I'm sorta oCD about memory usage cause this app is using more memory than it should Jul 17 14:54:18 partially because the REST API I have to use makes you keep a giant XML string of the running state Jul 17 14:54:24 and keep cahnging and posting that state back to server Jul 17 14:54:36 which seems inconsequential, but it adds up over time Jul 17 14:54:37 >.> Jul 17 14:54:38 alright, then you might want to prematurely optimize here. Jul 17 14:54:47 That said, try having the API not use XML :V Jul 17 14:56:10 I'm passing a SurfaceView to my JNI code to make a EGL context around. It's single buffered, is there anyway to make it dual buffered? Jul 17 14:58:07 lov: I wish Jul 17 14:58:08 lol Jul 17 14:58:35 The best part is lov, that the biggest chunk of the API has a flag you can set to use JSON or XML Jul 17 14:58:41 but there is 1 key part that only takes XML currently Jul 17 14:58:46 welp Jul 17 14:58:48 because the API is being worked on really slowly Jul 17 14:58:49 >.> Jul 17 14:58:52 Not really upt ot me though Jul 17 14:58:58 cause I'm just doing the android app Jul 17 15:04:32 what function gets called when you rotate the screen? Jul 17 15:04:35 I'm having issues accessing a method from a toggle button click. When I tap the toggle button, I get this error message: 07-17 07:44:06.617: E/AndroidRuntime(12583): java.lang.IllegalStateException: Could not find a method onWaterToggled(View) in the activity class android.view.ContextThemeWrapper for onClick handler on view class android.widget.ToggleButton with id 'waterToggle' Jul 17 15:05:09 any ideas how to help it find the method? the method exists in the same activity that has the button Jul 17 15:05:18 pastebin your activity and layout, please. Jul 17 15:05:26 sure, one moment Jul 17 15:05:42 kc8hfi_: a variety of functions get called. Read up on the Activity lifecycle. Jul 17 15:06:11 lov: ahh, thats the google search term i coudln't think of Jul 17 15:08:34 @lov I have the code in a github repo, would that work for you? Jul 17 15:10:03 https://github.com/csterling/LidoPenninsulaUtilityApp Jul 17 15:10:10 csterling123: link us to the files, please Jul 17 15:10:45 csterling123: I'm not building and running your app to repro your bug. Link us to the relevant files if they're in github, otherwise pastebin. Jul 17 15:11:35 https://github.com/csterling/LidoPenninsulaUtilityApp/blob/master/res/layout/dialog.xml Jul 17 15:11:41 dialog with the toggle button Jul 17 15:12:05 and the java source? Jul 17 15:12:06 https://github.com/csterling/LidoPenninsulaUtilityApp/blob/master/src/com/fuscoe/lidoPenn/LidoPennActivity.java Jul 17 15:12:08 yep Jul 17 15:12:09 thanks! Jul 17 15:12:10 just got it Jul 17 15:12:17 many folders to click through :P Jul 17 15:12:25 that's why I wanted a link, haha Jul 17 15:12:44 the method exists in your activity, not in your dialog Jul 17 15:13:17 ^^ Jul 17 15:13:20 also, android:onClick is a terrible idea and should never be used Jul 17 15:13:32 what? Jul 17 15:13:38 we shall duel sir Jul 17 15:13:41 heh. okay, so an onclick listener on the toggle button? Jul 17 15:13:42 uh oh Jul 17 15:14:32 so @lov thinks android:onclick is okay, but @evanc disagrees Jul 17 15:14:46 I mean, it's a preference, but he's wrong Jul 17 15:15:02 csterling123: if you're new, don't use it until you're more familiar with the whole thing so you can track down issues like this. Jul 17 15:15:12 i'm new Jul 17 15:15:28 as a noob, what would you recommend? Jul 17 15:16:04 don't use it until you'd be able to figure that problem out yourself. Jul 17 15:16:46 csterling123: setOnClickListener(View.OnClickListener) Jul 17 15:16:56 evanc +1 Jul 17 15:17:24 so here's the thing...i tried that yesterday as well but got errors. let me try to reproduce it. brb Jul 17 15:20:33 hi, anyone used a viewpager with fragments together with google analytics tracking yet? I can't find a good way to "track" the viewpager fragment viewing Jul 17 15:20:57 hm, where would I find a profile file for Android? Jul 17 15:26:56 Datalink: a what? Jul 17 15:28:00 evanc, I'm poking around in my phone's commandline with busybox and trying to figure out how to set some environment variables that aren't set, traditional unix uses a .profile file, I'm trying to find the equivelent on my phone Jul 17 15:29:02 specifically Python's missing core dependancies Jul 17 15:29:21 I'm gonna try installing SL4A first, to see if that works for what I need Jul 17 15:31:07 dzan: The default adapters call setUserVisibleHint on your Fragments, you can use that to figure out what Fragment is visible Jul 17 15:32:13 SimonVT: wouldn't it be better to use the tag? Jul 17 15:32:52 SimonVT, thanks Jul 17 15:33:07 strange there is still non real callback for it Jul 17 15:34:29 Does the Google Play Services work on the Amazon line of products? i.e. kindle and kindle fire HD? Jul 17 15:37:37 dzan: the ViewPager has setOnPageChangeListener Jul 17 15:38:28 Argh. How come my resultReceiver for a sendOrderedBroadcast is NOT in ordered mode?!? Jul 17 15:38:50 okay @lov and @evanc i added an onClicklistener to my toggle button, and the app wont open now Jul 17 15:38:55 my .java is here http://pastebin.com/WxdaUFNN Jul 17 15:39:28 dialog layout containing the toggle button: https://github.com/csterling/LidoPenninsulaUtilityApp/blob/master/res/layout/dialog.xml Jul 17 15:40:28 the error is: 07-17 08:33:25.897: E/AndroidRuntime(13688): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fuscoe.lidoPenn/com.fuscoe.lidoPenn.LidoPennActivity}: java.lang.NullPointerException Jul 17 15:40:35 csterling123: you're still searching the activity's layout for a button that's in the dialog Jul 17 15:40:45 it doesn't work like that :) Jul 17 15:41:09 Ouch... Do I need a new receiver instance every time? Jul 17 15:41:10 so...uh...what? haha Jul 17 15:41:25 TheDruidsKeeper, I need a activity refernce which is null at that moment i read Jul 17 15:41:50 i thought i had a handle on the toggle button Jul 17 15:41:58 csterling123: that button is located in the dialog (lines 54-60), yet on 66, you're searching the Activity for the button Jul 17 15:43:15 so...do i move that code inside the onclick method at line 51? Jul 17 15:43:36 You need to call findViewById on the Dialogs view Jul 17 15:45:08 can you explain that? Jul 17 15:45:46 Get the dialog's view.. Call findViewById on it Jul 17 15:46:05 Guys... When working with ordered broadcasts do I need to somehow 'reset' the call-back receiver? Jul 17 15:46:14 Or call it on the Dialog, think you can do that as well Jul 17 15:46:36 so would that be my variable 'd' Jul 17 15:46:37 Either way, activity != dialog Jul 17 15:47:09 o\ Jul 17 15:47:10 sorry Jul 17 15:47:11 so Jul 17 15:47:40 d.findViewById(waterToggle); ? Jul 17 15:52:13 would i store that in a variable Jul 17 16:01:37 I'm looking for someone who has experience with android porting, framebuffer stuff. anyone who's looking for a freelance project, msg me. Jul 17 16:09:14 thc: Lemme guess, you posted that thread on reddit asking about porting stuff from iOS? Jul 17 16:09:57 SimonVT JakeWharton Are you guys opposed to me referring to you as the brain trust? Jul 17 16:16:30 it seems like google is paying me more than they should; any idea how i can let them know? Jul 17 16:16:43 bwr: Witha gold plated messag? Jul 17 16:17:10 haha Jul 17 16:18:15 bwr: If you don't want the $ send it to me.. LOL.. Jul 17 16:18:33 well, i do want more money :P Jul 17 16:18:42 What The Google giveth, The Google can taketh away. Jul 17 16:18:50 right Jul 17 16:19:31 i only make around 30 dollars a month. yesterday they paid me 34.83 twice Jul 17 16:19:35 and today they did it again Jul 17 16:20:04 if this continues, it could eventually add up to be a pretty large amount Jul 17 16:20:08 And no reason at all why they would pay more? Jul 17 16:20:11 bwr: Woohoo! Share the wealth! Bubblegum for everybody.. Jul 17 16:20:14 I.e. your app caught on or something? Jul 17 16:20:34 EuroTrash: no, i mean... they payments are duplicates Jul 17 16:20:40 Hm ok Jul 17 16:20:41 they are all for the exact same amount Jul 17 16:20:57 if i sold more they would just give me more money in one payment :P Jul 17 16:21:01 Don't... spend it then :o Jul 17 16:21:04 right Jul 17 16:21:06 i won't Jul 17 16:21:57 Is there a contact address for your service? Or a group maybe? Jul 17 16:22:12 Not that Google is very responsive to those things... but at least you can show you've tried your best. Jul 17 16:22:37 contact for what service? Jul 17 16:22:50 Whatever is paying you money. Jul 17 16:22:52 Play? Jul 17 16:22:55 yea Jul 17 16:23:35 https://support.google.com/googleplay/android-developer/troubleshooter/2857301?hl=en maybe Jul 17 16:24:19 yea, that seems reasonable Jul 17 16:24:37 there isn't really any option that makes sense but it just sends you to a form if thats the case Jul 17 16:26:35 hum...I have the same issue with Google Wallet...Multiple payments. What the hell Jul 17 16:26:44 oh good Jul 17 16:26:50 i figured it wouldn't just be me Jul 17 16:27:06 bwr: it is also mentionned by other people in android-developer Google group Jul 17 16:27:11 ah Jul 17 16:27:19 that's a problem Jul 17 16:27:59 How come optionList is null?: optionList = intent.getStringArrayListExtra(MainActivity.EXTRA_OPTIONS); Jul 17 16:30:43 Anyone know of a good way to check howmuch space in memory a bitmap is using? Jul 17 16:32:14 width x height x bits per pixel? Jul 17 16:32:14 w * h * 4 byte Jul 17 16:32:56 Brian|CS: Is the bitmap configuration ARGB_8888? Jul 17 16:33:09 Miesco: I believe so Jul 17 16:33:14 Yeah, unless you use another bitmap configuration.. ARGB_8888 is the default Jul 17 16:33:38 I know Ihave some custom options on my bitmaps, but I don't think I cahnged it from ARGB_8888 Jul 17 16:33:49 SimonVT: That was the formula I was looking for, thanks. Jul 17 16:35:21 so it's 4 bytes per pixel is essentially the ratio Jul 17 16:36:03 http://developer.android.com/reference/android/graphics/Bitmap.Config.html Jul 17 16:36:35 when i make a custom dialog, should i make a new .java file Jul 17 16:36:50 whats the best practice for creating custom dialogs? Jul 17 16:37:24 i like using XML Jul 17 16:37:51 but am having issues getting methods to be passed after buttons are pressed in the dialog Jul 17 16:37:54 methods to be called* Jul 17 16:38:19 http://paste.debian.net/16584/ Jul 17 16:40:16 hrm, how do I set http-proxy in the avd so I don't have to run it from commandline Jul 17 16:48:36 Can I programatically turn on 'Use physical keyboard'? Jul 17 16:52:45 Hey folks. I'm building an app with many flavors, and I need to find a way to specify a flavor-specific string array resource in a way that each element references a drawable (for the icon) …. any cluebats laying about? Jul 17 16:55:09 I figured it out Jul 17 16:58:07 Pushnell: er, what? Jul 17 16:58:17 Lachezar: what do you mean by that? Jul 17 16:58:57 evanc: ok, let me try again :) I need to define a menu for each flavor of my app. Each menu item needs a name and an icon. I'm trying figure out how to define / parse a resource for this. Jul 17 16:59:24 Pushnell: use a different menu XML in the various res/ folders Jul 17 16:59:50 Well, it's not an actual menu, it's an ExpandableListView which I'll need to write the adapter for myself. Jul 17 16:59:53 res/menu-v8/menu.xml, res/menu-sw600dp/menu.xml, res/menu-xhdpi/menu.xml Jul 17 17:00:27 Pushnell: s/menu.xml/bools.xml/ and use those flags to control behavior? Jul 17 17:00:28 This is using https://github.com/jfeinstein10/SlidingMenu to house an ExpandableListView Jul 17 17:04:33 Is there a class already made that I can put coordinates in? Jul 17 17:05:09 hey @evanc did you see my earlier messages? Jul 17 17:06:43 Point :D Jul 17 17:11:26 csterling123: protip: this isn't twitter - you don't need to put @ in front of someone's nick :) (and at least for me, it doesn't highlight when you do that) Jul 17 17:11:29 so, no, I didn't see them Jul 17 17:11:55 @evanc It isn't? #mindblown Jul 17 17:11:59 heh, sorry. i feel like some other channel i used to frequent would ping Jul 17 17:12:04 when the user would be @ Jul 17 17:12:35 that means they're an operator Jul 17 17:12:42 like this? Jul 17 17:12:59 What is the best service to use if I want to be able to have a database and poll it for json data? Jul 17 17:13:14 csterling123: anyway, sorry, I didn't see your messages. What's the tl;dr ? Jul 17 17:13:31 sorry just got a phone call...brb Jul 17 17:13:50 * Bleeptech thinks there need to be a findViewByDyslexicCoder(R.id.how_did_I_spell_that) Jul 17 17:14:19 When finish() is called on an activity and you exit out to the previous activity, what method is called? Jul 17 17:14:25 (on the previous activity) Jul 17 17:15:58 foomanshoo: at a minimum, onResume() Jul 17 17:16:20 if you started the other activity with startActivityForResult(), you'll get onActivityResult(..) Jul 17 17:16:31 hmm, interesting. Jul 17 17:16:42 since my onResume() code isn't being called post finish() Jul 17 17:18:35 foomanshoo: onResume() should be called on the next activity. Are you looking for a callback on the currently-dying activity? Jul 17 17:18:44 nope, on the next activity. Jul 17 17:20:47 oh, hm, actually, it's a race condition Jul 17 17:20:49 that's the issue. Jul 17 17:20:54 evanc: thanks anyways! Jul 17 17:33:34 evanc: okay, im back. sorry about that Jul 17 17:34:06 the tl;dr is- how do i read the click event on a button in a dialog xml Jul 17 17:34:36 well, the modern answer is to use DialogFragment Jul 17 17:34:39 evanc: would you like links to my code again? Jul 17 17:35:27 but if you want to use Dialog, inflate the view (using LayoutInflater), find the button, set the click listener, then call Dialog#setContentView(view) Jul 17 17:35:28 with DialogFragment, would I create a new .java file Jul 17 17:35:38 csterling123: it's up to you, but yes, you should Jul 17 17:35:55 okay Jul 17 17:36:19 4.3 next week? http://www.androidcentral.com/google-schedules-android-event-july-24 Jul 17 17:37:11 do you know of any good tutorials for dialogfragment? the references confuse me a little bit Jul 17 17:37:21 developer reference* Jul 17 17:37:23 theelfismike: I think they're just going to announce Chrome 29 :) Jul 17 17:38:31 i have a TabHost object with 3 tabs. when i change the orientation, i would like to have the currently selected tab showing. I save the tabid in the onSaveInstanceState, and then I can get it from the onRestoreInstanceState. Jul 17 17:38:31 csterling123: http://developer.android.com/guide/topics/ui/dialogs.html Jul 17 17:39:02 thanks, i'll give it a shot! hope you dont mind me pestering you with further questions.. Jul 17 17:39:08 I tried to call the setCurrentTab on the TabHost object inside the onRestoreINstanceState, but the tab being displayed is not the correct one Jul 17 17:40:20 here is the code for those 2 functions, http://www.fpaste.org/25984/74082812/ Jul 17 17:44:11 evanc: if i want to use a dialog for choosing what layer to draw on a map, i would not be interested in using alert dialog, DatePickerDialog or TimePickerDialog, correct? Jul 17 17:51:39 How do you check how much memory an application is allocated? Jul 17 17:51:59 DDMS? Jul 17 17:53:36 What does 'finishReceiver called but none active' mean? Jul 17 17:54:02 That's ActivityManager logging when I try to use ordered broadcast. Jul 17 17:57:12 evanc: I'd like to make my application use the -querty layouts, and not show IME. Jul 17 17:57:36 Bah... Managed to write qwerty with a mistake. Jul 17 17:59:49 Lachezar: Turn off the spell checker in your brain? Jul 17 18:03:41 evanc: so im going through that dialog tutorial...and ive built that dialogfragment class like they say. how do i call it from the main activity? Jul 17 18:03:52 http://pastebin.com/SPNQjmTZ Jul 17 18:04:00 http://pastebin.com/1ziCzqLf Jul 17 18:04:48 csterling123: have you read about fragments ? Jul 17 18:04:56 no Jul 17 18:05:01 perhaps you should do this. Jul 17 18:05:08 do it! Jul 17 18:05:50 sure thing Jul 17 18:15:21 <|Agent> Question about services. Is onBind called each time some activity binds to the service? I'd normally say "yes," but the docs for onUnbind make it seem like it is only called once after all activities have un-bound from the service, rather that each time an activity un-binds. Jul 17 18:15:46 |Agent its pretty easy to try out Jul 17 18:16:46 also, look at onRebind() Jul 17 18:16:48 |Agent: yes Jul 17 18:16:58 try it out if you're not sure. Jul 17 18:18:42 dear all :) Jul 17 18:18:43 I'm currently trying to develop a facebook login functionality using phonegap in an android app. I've done all the ncessary installs and generated an hash key for the app which I have placed on facebook but I keep getting the following error: Jul 17 18:18:50 Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. Jul 17 18:18:59 I've had a look at the following link and done what the link suggested but I'm still getting the same error in the logcat console Jul 17 18:19:09 http://stackoverflow.com/questions/14474122/given-url-is-not-permitted-by-the-application-configuration Jul 17 18:19:13 Please advice Jul 17 18:20:10 |Agent but the docs can be somewhat fuzzy https://code.google.com/p/android/issues/detail?id=24996&q=onRebind&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Jul 17 18:20:56 beshoo: think your in the wrong channel Jul 17 18:21:01 is an asset required to customize the dropshadow on a dialogfragment? Jul 17 18:21:02 try #phonegap Jul 17 18:21:29 #phonegap HH no one will answer Jul 17 18:21:29 ugg, having trouble populating a gridview Jul 17 18:21:47 i set my gridview adapter to ImageAdapter class that i created Jul 17 18:21:53 the code for the getView is here: http://pastebin.com/JNQBpwgG Jul 17 18:22:02 it only populates 1 image in the top left hand corner Jul 17 18:22:08 i must not be getting how the adapter works Jul 17 18:22:08 beshoo: well I would suspect thats where all the web/phonegap devs are, here is mostly pure android Jul 17 18:22:18 anyone a master of Adapters? Jul 17 18:22:19 :) Jul 17 18:22:26 |Agent there is an interesting paragraph in the docs: "Multiple clients can connect to the service at once. However, the system calls your service's onBind() method to retrieve the IBinder only when the first client binds. The system then delivers the same IBinder to any additional clients that bind, without calling onBind() again." Jul 17 18:22:28 Shinkamui: getCount() { return 1; } <-- there's your problem Jul 17 18:22:37 What the literal fuck Jul 17 18:22:38 i think this was originally a bug they decided to make into documentation :) Jul 17 18:22:52 <|Agent> g00s, okay, thanks. Looks like onBind and onUnbind are each called only once, not per client. Jul 17 18:22:55 If I call .recycle() on a bitmap, why is my heap still increasing by the size of the bitmap D: Jul 17 18:23:37 |Agent: There's onRebind Jul 17 18:23:44 Brian|CS probably not garbage collected yet? Jul 17 18:24:18 |Agent: And iirc, onUnbind only gets called when all connections are removed, but it happens every time all connections are removed. Jul 17 18:24:30 <|Agent> Good point. Jul 17 18:24:31 theelfismike: I believe garbage collection is being called though Jul 17 18:24:38 as the DDMS only updates its heap log when GC occurs Jul 17 18:25:06 are you nulling out all references to the object? Jul 17 18:25:17 There is only a single reference tot he object Jul 17 18:25:27 and it is part of a fragment that is being stopped Jul 17 18:25:49 This will not free the pixel data synchronously; it simply allows it to be garbage collected if there are no other references. Jul 17 18:25:58 evanc to the rescue once again! Thank you dude, its working now, now to figure out how to dynamically change that return Jul 17 18:26:01 wow, play changed quite a bit Jul 17 18:26:05 <|Agent> At any rate, my intent is to cancel pending stuff related to each client when that client disconnects, so it sounds like I can't really use onUnbind or onRebind. Jul 17 18:26:17 if you still have Bitmap bitmap = yourRecycledBitmap; somewhere, even if it's recycled, it could still be retained in the heap Jul 17 18:26:40 Shinkamui: return skin.length? (judging by your getView(..) stuff) Jul 17 18:26:44 try setting that reference to null, then gcing and see what happens Jul 17 18:26:51 hey, what the fuck, they got rid of my promo graphic Jul 17 18:26:56 theelfismike: I believe I have no remaining references, I'm testing the = null as we speak Jul 17 18:27:28 evanc, im going to have to change some things around, so that value is calculated in the constructor Jul 17 18:27:36 g00s: was it sh*t ? Jul 17 18:27:44 right now, im doing all teh work in the adapter view generator Jul 17 18:27:46 Brian|CS, use MAT, jhat, etc. to see what actually holds references to it Jul 17 18:27:46 they got rid of all promo graphics Jul 17 18:27:50 StingRay_ not at all, got lots of compliments Jul 17 18:27:53 i should probably precache the images too, its pretty slow Jul 17 18:27:59 had porn or swearing ? Jul 17 18:28:01 :) Jul 17 18:28:04 50 images took about 40 seconds Jul 17 18:28:09 tiny 4k pngs too Jul 17 18:28:17 StingRay_ do you have anything on the market yet :| Jul 17 18:28:25 in beta yes Jul 17 18:28:28 pfn: I've been trying to acclimate myself to using MAT today Jul 17 18:28:29 out of beta… no Jul 17 18:28:36 but it's kind of a pain in the ass Jul 17 18:28:41 ok, was going to ask if yours went away too Jul 17 18:28:48 * pfn just uses jhat Jul 17 18:28:49 * pfn shrugs Jul 17 18:28:49 g00s they all went away Jul 17 18:28:51 I'venever used it before, so it's a learning process I guess :S Jul 17 18:29:15 theelfismike that fucking sucks Jul 17 18:30:03 just a reminder we're all just renters here Jul 17 18:32:19 i'm pissed, because the promo graphics, having such heavy visual mass and being at the top, was a great way to customize your page Jul 17 18:32:36 now its just a baren wasteland of app icons Jul 17 18:32:39 sterile Jul 17 18:32:53 g00s: https://plus.google.com/u/0/+GooglePlay/posts/Gkk8tEEkbpt Jul 17 18:32:53 like your urine Jul 17 18:32:57 some of the complaints Jul 17 18:33:29 lov you piss app icons ? :D Jul 17 18:34:41 I was referring to sterile but I don't see how that's any of your business anyway Jul 17 18:34:44 g00s: lov is that far gone? Jul 17 18:34:44 Hmm. Setting the bitmaps to null seems to make no real big difference.... Jul 17 18:34:51 so I guess I must have a memory leak somewhere else? :S Jul 17 18:35:06 Brian|CS: setting the bitmaps to null won't do anything. calling recycle on them would. Jul 17 18:35:11 * Bleeptech slowed down when his eyes went 16:9.. Jul 17 18:35:14 that said, the memory might not show up in heap. Jul 17 18:35:19 lov, you need to do both Jul 17 18:35:40 theelfismike: I did both and it make no difference to my huge heap jumps Jul 17 18:35:47 so I definitely have a leak somewhere else I have to assume Jul 17 18:35:55 is there a list of all common/possible android memory leak types? Jul 17 18:35:59 Brian|CS, stop assuming, look at MAT Jul 17 18:36:03 MAT lists and shows all Jul 17 18:36:10 ^^ Jul 17 18:36:16 pfn: I've been trying to, but I have no luck at intpreting mat results Jul 17 18:36:18 also it runs really slowly Jul 17 18:36:19 >.> Jul 17 18:36:30 It's like the prism of memory Jul 17 18:36:35 Sometimes I hit dump hprof profile and it literally just does nothing Jul 17 18:36:43 I can only assume it's attempting to do something and just taking forever Jul 17 18:36:59 so you mean you haven't used MAT at all Jul 17 18:37:09 There's an IO talk about memory Jul 17 18:37:14 iirc it shows how to use MAT Jul 17 18:37:19 speaking of MAT, is there an equivalent for intellij? Jul 17 18:37:27 or do I have to use yourkit or jvisualvm or something Jul 17 18:37:35 pfn: No I literally just installed it today Jul 17 18:37:36 MAT is a standalone app Jul 17 18:37:39 I've never run into issues like these before Jul 17 18:37:40 :S Jul 17 18:38:13 is it Jul 17 18:38:18 I always thought it was part of eclipse Jul 17 18:38:21 it is Jul 17 18:38:28 then it's not standalone :p Jul 17 18:38:32 SimonVT: I installed it as an eclipse addon O.o Jul 17 18:38:40 .. Jul 17 18:38:50 My it is was not to the eclipse thing Jul 17 18:39:01 I'm sure there's some addon to integrate it into eclipse Jul 17 18:39:07 But it's available as a standalone app Jul 17 18:39:33 Sometimes when I attempt to dump my .hprofs it just breaks ADB >.> Jul 17 18:39:44 http://www.eclipse.org/mat/downloads.php Jul 17 18:39:56 "The stand-alone Memory Analyzer is based on Eclipse RCP. It is useful if you do not want to install a full-fledged IDE on the system you are running the heap analysis." Jul 17 18:40:05 indeed Jul 17 18:40:27 * Lachezar thinks he's had enough for today. Jul 17 18:40:37 Good night all... Jul 17 18:40:51 can mat be installed into monitor ? Jul 17 18:40:56 I don't think there's any memory analyzer integrated into intellij tho Jul 17 18:40:59 ehm Jul 17 18:41:08 so is anybody else gotten paid multiple times this month ? Jul 17 18:41:08 I've been using my own device to run my app for testing and I noticed that after a while it got very slow (it's quite computationaly intensive). Reverting to an older, faster version didn't help, so I cleared the dalvik cache, and now it's fast again. Any insight into why this happens? Does the cache get corrupted or bloated by the successive revisions of an app, pushed through adb? Is there a proper way of avoiding this? Jul 17 18:41:08 If there is, it's probably not as useful as MAT :p Jul 17 18:41:51 Chainfire, someone was talking about it earlier Jul 17 18:42:25 I see a quick move to Venezuela in my near future Jul 17 18:42:34 haha Jul 17 18:44:44 there is discussion of multiple-payments here: http://www.reddit.com/r/androiddev/comments/1ihaa6/eu_devs_multiple_payouts_this_month_negative/ Jul 17 18:45:04 g00s, no, because RCP apps don't support plugins... you could try just dropping the bundle in the plugins dir Jul 17 18:45:52 hm, ok. thanks Jul 17 18:46:08 that's ANDROID_HOME/tools/libs/monitor-xXX/plugins Jul 17 18:52:20 SimonVT / pfn / everyone so basically in MAT I see 3 suspects, it gives me a hint saying that suspects 1 adn 2 are related/similar source Jul 17 18:52:29 but I know that suspect 2, which is a simple bitmap I've loaded, is not leaking Jul 17 18:52:33 it's just a very large file size Jul 17 18:52:34 :S Jul 17 18:54:17 i usually use the dominator tree view rather than looking at the "suspects", in my experience the suspects are indeed just large legitimate allocations Jul 17 18:54:57 if you have a reference to a finished activity it should show in the dominator tree (like by displaying two of the activities or their major data structures when you know you should just have one) Jul 17 18:55:26 hi guys, i'm desperately trying to add a "border-top" to the "quick action bar" http://i.imm.io/1cLDu.jpeg this is my menu_bar.xml http://paste.ubuntu.com/5885223/ Jul 17 18:55:28 folks, will I get burnt if I make a WP7-style app on Android? Jul 17 18:56:00 kevinb thanks for the link, interesting stuff Jul 17 18:56:03 i tried stroke, but that does a border all around, not just top Jul 17 18:56:41 narekb: why would you do that? Jul 17 18:57:09 just asking Jul 17 18:57:20 narekb: people might complain that visually it's jarring but you can do whatever Jul 17 18:58:02 yeah, i'd probably uninstall that app pretty quickly unless it provided an absolutely essential service to me Jul 17 18:58:30 lov, jarring? Jul 17 18:58:42 Hmm. I still have no idea where the memory issues are stemming Jul 17 18:58:43 >.> Jul 17 18:59:45 narekb: you ever see an app on android that was clearly developed for iOS and the developer did the absolute minimum to port it over, so it still looked like an iOS app? Jul 17 18:59:48 kind of like that. Jul 17 19:00:13 ahh I see Jul 17 19:06:36 I have tried googling this but I get nothing useful back can anyone tell me if this is really an issue and if so can anything be done to fix it? Error setting a sleep mode on core Jul 17 19:10:36 narekb i dont think its so clear. you're probably asking about /design language/. there are elements that translate both ways, because they are universal principles. i've seen each platform borrow elements from others. if anything i think holo borrowed quite a bit from metro Jul 17 19:11:15 g00s, you know what I was asking? I was thinking of making an app with the WP homescreen interface Jul 17 19:11:20 now, there are some things that would be weird Jul 17 19:11:33 just as an example, a hub for social networks Jul 17 19:11:43 if i create an class extending application, and i override onCreate, will it automatically execute that code on launch, and then launch my starting activity, or do i have to then in the onCreate launch my desired activity manually, or some 3rd option i haven't thought of? Jul 17 19:11:47 tile for FB, tile for Twitter, G+, some weather info etc etc Jul 17 19:11:48 for example, to indicate more, WP apps often have text on the top which dissapears on the right of the screen, an affordance for you to flick to that Jul 17 19:12:07 would just like to simplify some super globals i use across several activities Jul 17 19:12:31 i can also initialize them in my starting activity, but i'd like to keep it compartmentalized if possible Jul 17 19:12:33 narekb well, thats an interesting example - the guiding principle in metro there was content is the interface, content forward. you can do that too without using their design language exactly Jul 17 19:12:49 hmmm Jul 17 19:12:57 moral of the story, read design guidelines of every OS Jul 17 19:13:02 always useful Jul 17 19:13:03 of course Jul 17 19:13:10 but good design is timeless Jul 17 19:13:18 typography, etc Jul 17 19:13:25 I even found some really interesting info in the Firefox OS guidelines Jul 17 19:13:28 What the fuck do I do when MAT says heap dump completed but there is no dump Jul 17 19:13:31 GG MAT Jul 17 19:13:37 the difference between light and dark apps and what they are for Jul 17 19:13:59 i think on android, media stuff was dark, others were light Jul 17 19:14:05 at least with the built in apps Jul 17 19:14:05 it said that dark apps are more suited to multimedia apps, because they provide a theatrical experience, so the user can focus on content Jul 17 19:14:15 yeah Jul 17 19:14:18 haha yeah, so Android has that too Jul 17 19:14:45 ok then, thanks g00s i will read the WP guide, I am sure it will be something useful Jul 17 19:15:29 there was a good interview with the lead Metro designer in "Mobile Frontier" Jul 17 19:15:49 (Hinman) Jul 17 19:16:03 i think their principles are more important than the specific guidelines Jul 17 19:16:26 if you have some tabs, is it better to make each tab an activity? Jul 17 19:16:28 not sure i would bother reading the WP guide, unless it distills their principles, which you may find interesting. hopefully it does Jul 17 19:16:41 kc8hfi_ not any more Jul 17 19:16:52 hasnt been for like 2 years Jul 17 19:16:53 g00s, http://dev.windowsphone.com/en-us/design/principles Jul 17 19:17:41 I imagine whatever sick bastard created eclipse is in some creepy castle laughing menacingly right now Jul 17 19:18:01 narekb the interview i read drilled more into "content over chome" and "authentically digital" Jul 17 19:18:10 the rest is fluffy Jul 17 19:18:24 Brian|CS IBM, its old as hell Jul 17 19:18:42 when it came out, there was nothing like it Jul 17 19:19:42 Brian|CS, why? Jul 17 19:19:49 because it's driving me insane Jul 17 19:19:49 why do you people hate Eclipse that much? Jul 17 19:19:53 how when i run MAT in eclipse Jul 17 19:19:58 it decides to randomly break my ADB bridge Jul 17 19:19:59 anyone using Volley to display remote images? I need to display an indeterminate spinner to show that the image is being downloaded, but I'm not having success.. Jul 17 19:20:02 for no aparent reason Jul 17 19:20:03 >.> Jul 17 19:20:37 Brian|CS well, adb randomly breaks on my machine all by itself Jul 17 19:20:41 that has nothing to do with eclipse Jul 17 19:20:44 just adb and the emu Jul 17 19:20:53 It's not been a real issue for me befoer Jul 17 19:21:03 it started happening to me more lately Jul 17 19:21:04 but after trying to use MAT, I ntoice it constantly breaks when I try to dump .hprof profiles Jul 17 19:21:04 >.> Jul 17 19:21:15 like, sometimes i need to try starting adb 4 or 5 times before ot latches on Jul 17 19:21:46 never had that problem before Jul 17 19:21:48 adb devices -> nothing found -> adb kill-server -> adb devices -> nothing found ….. Jul 17 19:21:58 you've been malwared Jul 17 19:22:00 right after starting an emu Jul 17 19:22:32 it takes a while for the emu to appear after launching Jul 17 19:22:50 g00s: I've had that problem since I started using Android Studio. Jul 17 19:22:57 if I quit the IDE everything is fine Jul 17 19:23:33 anyone with experience extending class Application? Im curious on the effects of overriding onCreate there and how it will affect my current multi activity app Jul 17 19:23:46 Shinkamui: what is the question? Jul 17 19:24:19 can i override onCreate to handle some initialization of globals, and not affect the normal flow of my app? or will i have to then switch to my first activity manually from that method? Jul 17 19:24:42 furthermore, does it execute automatically, or do i have to change the manifest starting activity Jul 17 19:24:43 there's no change to the flow. you have to call the super.onCreate method. Jul 17 19:24:54 oh Jul 17 19:25:04 so from my starting activity, I call super.onCreate Jul 17 19:25:07 which is already called Jul 17 19:25:27 so within it, i'd also need to call super.onCreate Jul 17 19:26:44 hmm, not what i was expecting. Can i create a constructor for the app to auto define globals without having to mess with the apps onCreate? Jul 17 19:27:07 and have that execute when the app loads teh first time? Jul 17 19:27:47 you probably just want to create statics, probably in their own classes Jul 17 19:27:55 Application#onCreate is called when your app is created Jul 17 19:28:12 if you need a context then the application or activity's constructor doesn't have one, you'd need to use onCreate or lazy initialization Jul 17 19:28:13 It has nothing to do with your activities.. It might as well have been created to start a service Jul 17 19:29:37 All of my activities call super.onCreate. If used an overridden application onCreate, then i would just need to remove the activity calls and everything should run as normal? Jul 17 19:29:55 Uh, no Jul 17 19:30:06 As I said, it has nothing to do with your activities Jul 17 19:30:30 i just realized what you mean Jul 17 19:30:46 the activities super class onCreate is obviously not my apps onCreate Jul 17 19:30:51 yea, i get what you're saying now Jul 17 19:31:05 if you need common code in each activity's onCreate, you can create an abstract class called BaseActivity that extends Activity, override onCreate in that class, then have all your activities extend BaseActivity Jul 17 19:31:08 on startup my apps overridden onCreate would execute, and my activities dont' need to change Jul 17 19:31:14 yeah Jul 17 19:31:16 that too Jul 17 19:33:14 the main point is to initialize some code and objects that are universal to all my activiities (some Images and environment variables) that i'd like to set up once, and reference all over. Right now they're stored in the application class, but i'm initializing them in my first activity and it just doesn't feel like its in the right place Jul 17 19:33:28 but you've cleared up my confusion Jul 17 19:33:30 thanks dudes Jul 17 19:33:55 i should be able to clean this up and organize it a lot better now Jul 17 19:33:55 alternatively, create a java class called Constants and put all your stuff there as static variables Jul 17 19:37:23 http://24.media.tumblr.com/8df8b1d260e896a64ad96fea3b0253e0/tumblr_mkgqvm4Be31rzupqxo1_500.png Jul 17 19:37:42 Shinkamui you may also be able to use AspectJ if you do this a lot Jul 17 19:38:04 you'll have to use compile-time weaving Jul 17 19:38:29 n idea how i would get it to work with gradle though Jul 17 19:38:51 <3 when MAT refuses to dump .hprof files for no fucking reason Jul 17 19:38:53 <3 Jul 17 19:39:37 well, this is my first big android app and im using a whole lot of new classes, and studio has been a little bit of a learning curve but otherwise a pleasurable change from eclipse, not sure its time to throw anything else into the mix :) Jul 17 19:40:17 indeed Jul 17 19:41:13 AspectJ is useful if you find yourself needing to weave stuff in a lot Jul 17 19:42:10 i remember it was the new hawt like 10 years ago, Gregor Kiczales tried to bring mop to java Jul 17 19:49:45 how do you set the view of a tab from an xml file? Jul 17 19:49:49 Do references inside onClick listeners cause leaks? >.> Jul 17 19:50:14 hi Jul 17 19:52:04 mat doesn't dump hprof files Jul 17 19:52:09 ddms does Jul 17 19:52:24 I have another question about the android-binding library Jul 17 19:52:36 when I have a touch screen and I click a menu item, things are good Jul 17 19:52:44 here is some code for a tabspec object, http://www.fpaste.org/26018/09074213/ Jul 17 19:52:50 but when I use something like a bluetooth controller to navigate the list and click Jul 17 19:52:58 the style shows the hover state, and it shows the click state Jul 17 19:53:05 it is clearly being clicked as far as the list is concerned Jul 17 19:53:09 but it isn't calling my callback Jul 17 19:53:16 my onClick handler Jul 17 19:54:01 what is the android-binding library ? Jul 17 19:54:13 a MVVM framework Jul 17 19:54:17 https://code.google.com/p/android-binding/ Jul 17 19:55:14 g00s: ok, so each tab don't need to be an activity. How do you set the layout of a tab with a layout that lives in its own xml file? Jul 17 19:57:28 g00s: this is the code for a new tab, http://www.fpaste.org/26018/09074213/ and here is the xml file for said tab, http://www.fpaste.org/26023/09103913/ Jul 17 19:59:50 ProgramMax looks like a neat idea. i agree with the premise; but i'm always hesitant to use these kinds of things that change the general design of the app in a way that if it were to go unmaintained, you would have a hard time backing out of it Jul 17 20:00:22 perhaps Jul 17 20:00:36 the old design I inherited was pretty unmaintainable Jul 17 20:00:42 kc8hfi_ read the actionbar info, tab navigation, etc Jul 17 20:00:58 UI and business logic were so intricately tied, as was various view code Jul 17 20:01:08 so changing one page broke another page on the app ("page") Jul 17 20:06:44 so do you guys mostly design your UIs with fragments? Jul 17 20:06:58 i use butterflies ! Jul 17 20:07:42 lol. is that a thing? i have no idea Jul 17 20:07:57 it's from xkcd Jul 17 20:08:49 I jsut started android because of a project at work, but I think you make every design with a different fragment, right? or do you often rewrite the GUI elements via code? Jul 17 20:09:04 design = screen Jul 17 20:09:30 Does the regular ListView intercept onKeyPress and turn it into an onClick or something? Jul 17 20:09:32 defnordic in short, its probably best to have an activity for a conceptual cluster of screens Jul 17 20:09:42 I notice android-binding isn't overloading onKey* for lists Jul 17 20:09:54 so you may have a few activities, and maybe a bunch of frags Jul 17 20:10:38 so when i start conceptualizing my UI i should be thinking in frags instead of just designing the activity Jul 17 20:10:45 activity's layout Jul 17 20:10:48 its the middle point between 2 extremes; 1 activity with all fragments or an activity for each thing Jul 17 20:10:59 i see Jul 17 20:11:17 hello, does anyone know how to handle orientation change with the volley library? Jul 17 20:11:25 g00s, i personally prefer a 1:1 ratio on phones Jul 17 20:11:53 canadiancow so you mean an activity for every screen ? Jul 17 20:11:57 (on phones) Jul 17 20:13:09 lets say i have 3 tabs, if i click on tab2 and then change the orientation, tab1 is the shown tab. what if each tab is its own activity? if the second tab is running, and you rotate the screen, will the second tab run after the switch? Jul 17 20:13:14 honestly, this is a place where i really wished the tools helped me more. i have a hard time conceptualizing the paritioning of my activities / fragments across all my configurations Jul 17 20:13:25 yes g00s Jul 17 20:13:34 Ew Jul 17 20:13:40 I use 1 activity for all the things Jul 17 20:14:09 i just took Jesse Wilson's advice from his Square presentation Jul 17 20:14:16 i thought it was sane at the time :| Jul 17 20:14:31 i know a fairly large app that uses one activity for almost the whole app Jul 17 20:14:34 How does an onClickListener tie in to the garbage collection? References inside an OCL shouldn't matter, right? Jul 17 20:14:35 and the code to manage it is a mess Jul 17 20:14:36 Since handling several activities with a drawer sounds horrible Jul 17 20:14:52 oh no SimonVT Jul 17 20:14:56 i should rephrase my statement Jul 17 20:14:58 canadiancow is that app open source? Jul 17 20:15:03 id really like to see how thats done Jul 17 20:15:08 shigeru, no :( Jul 17 20:15:12 I think that app is gmail Jul 17 20:15:12 boo ok Jul 17 20:15:16 hey, where is the iosched 2013 code ? Jul 17 20:15:19 :D Jul 17 20:15:20 lol Jul 17 20:15:21 every day Jul 17 20:15:24 haha Jul 17 20:15:38 g00s, dunno Jul 17 20:16:47 I just made a FragmentStack class.. Just add a fragment and it detaches the old one.. Set a top-level fragment, and it removes the old stack and switches to it Jul 17 20:17:01 So like, if I have an onClickListener as a member of my fragment it will just be destroyed when the fragment is destroyed, correct? Jul 17 20:17:04 Quite simple if you can manage with a single stack of fragments Jul 17 20:17:30 oh no, it was eric burke Jul 17 20:17:42 is it open source? Jul 17 20:17:42 and if so, what license Jul 17 20:18:02 No Jul 17 20:18:23 I need to clean it up before I open source it Jul 17 20:18:34 But soon, and Apache Jul 17 20:19:11 Well, Soon(tm) Jul 17 20:20:18 csterling123 http://www.infoq.com/presentations/Android-App @ 17:20 Jul 17 20:20:39 thx Jul 17 20:20:51 i think i may need to redesign the application flow of my program. i might want a desktop lookin thing with buttons on it - a button for the entry form, button for showing stats, and so on Jul 17 20:21:27 i can pass an intent to each button's activity so that any data that needs to be shared will be available Jul 17 20:21:49 does this sound like a good idea? Jul 17 20:24:52 wow, http://blogs.wsj.com/venturecapital/2013/07/17/bjork-brings-biophilia-to-android-with-a-little-help-from-apportable/ Jul 17 20:25:44 if I start another activity from within one, and i want to receive some data back from it, where would execution return from, the point after the activity was started? Jul 17 20:26:04 onActivityResult Jul 17 20:26:16 solid Jul 17 20:26:28 "The CEO says that more than half of the apps made using its technology ranked in the Top 500 paid apps on Google Play" Jul 17 20:26:54 Although "return to" is the wrong term; your app keeps on running waiting for something to happen. Jul 17 20:27:27 thats good to know, but thats the starting point i needed. just need to do some readin Jul 17 20:28:28 It's a bit cumbersome (feels like it's from another decade), but works fine. Jul 17 20:29:48 g00s: what if they've only made two apps? Jul 17 20:29:58 ha! Jul 17 20:34:05 then both of them would have to qualify for "more than half" to be true. Jul 17 20:34:31 in which case, I would have just said "all of our apps" which would be a stronger statement. Jul 17 20:35:55 oh you Jul 17 20:40:14 * g00s is sad. just sold his 4x12 boogie stiletto cab Jul 17 20:40:27 you guys im getting very frustrated trying to learn all this stuff. plz convince me to keep going Jul 17 20:40:42 now i'd like to buy a new android or iOS device; but where the hell is the n& refresh Jul 17 20:40:46 *n7 Jul 17 20:41:20 why did you sell your boogie cab? Jul 17 20:41:48 i've been de-accumulating for a while. Jul 17 20:41:58 a what Jul 17 20:42:05 pfn: a google. Jul 17 20:42:45 g00s, you should de-accumulate if you refuse to buy any new equipment Jul 17 20:42:57 you dont happen to have a fender twin or blackstar do ya?? Jul 17 20:43:17 heh, no -- i still have my tc electronic g-force and boogie single rectifier tho Jul 17 20:43:33 wut? Jul 17 20:43:56 im picking up a blackstar ht club 40 soon Jul 17 20:43:58 very soon... =D Jul 17 20:44:01 I have a list item who's background is an animation-list Jul 17 20:44:05 but the list item doesn't actually animate Jul 17 20:44:16 maybe I have to get the item and call .start() on it? Jul 17 20:44:35 pfn i;m waiting for the dang N7 Jul 17 20:45:00 i want the new one, presumably guaranteed with 4.3 to have working BLE stack Jul 17 20:45:10 a new n7 is the single biggest thing i wanted from i/o Jul 17 20:45:15 * pfn shrugs Jul 17 20:45:21 still waiting Jul 17 20:45:25 google's making some sort of announcement next week... Jul 17 20:45:31 yeah, saw that Jul 17 20:45:47 but i already bought a second n7 last month Jul 17 20:45:56 I haven't ever bought an n7.... Jul 17 20:46:02 but it would be nice to replace my old tab 10.1 Jul 17 20:46:06 damn thing is next to worthless Jul 17 20:46:11 heh Jul 17 20:46:24 I just use it as a secondscreen for watching video Jul 17 20:46:28 and broadcast audio to my pc over a2dp Jul 17 20:46:37 shrug. I bought a 32gb HSPA+ n7. I never use it since my SGS3's display is adequate for everything I need to do (and it also has a 64gb removable sdcard) Jul 17 20:46:59 mine just sits on my desk with cm10.1 so that co-workers and i can select music to play on the stereo Jul 17 20:47:12 sits next to my nexus q now that google has killed it Jul 17 20:47:31 is there a way to use a beagle board as a hardware emu, but have its display vnc'd or something to your desktop so you interact with it like the regular emu ? Jul 17 20:47:53 we used to all have our devices connected to it and could each play our music, but now i had to resurrect the tab 10.1, put android 4.2 on it and have everyone sign in Jul 17 20:48:35 what, the nexus q doesn't have a wifi/lan or offline mode? Jul 17 20:48:44 pragma-: nope Jul 17 20:49:02 only streams from play music, play movies & tv and youtube Jul 17 20:49:03 lel Jul 17 20:49:08 I imagine you got it for free or got a refund/credit? Jul 17 20:49:18 play music and youtube have removed support Jul 17 20:49:24 Can you flash a different ROM? Jul 17 20:49:26 csterling123 the guy that bought my cab; played it yesterday in the storage unit's main hallway - we heard a rattle - the ceiling was vibrating :D Jul 17 20:49:37 pragma-: unless someone bought a Q from ebay, no one has had to pay for it Jul 17 20:49:38 oh the sweet sound Jul 17 20:49:57 it was given out free at i/o 2012 and shipped free to all who pre-ordered when google cancelled it Jul 17 20:49:59 beautiful Jul 17 20:50:05 yeah, I don't remember anything at all about the nexus q launch. Jul 17 20:50:09 I thought it was a bit of a joke. Jul 17 20:50:36 i actually love the thing, we made great use of it, but now its officially dead Jul 17 20:50:55 google should just push a gtv rom to it :) Jul 17 20:51:12 I wonder how prevalent google glasses will be in 20 years. Jul 17 20:51:22 umm, not? Jul 17 20:51:38 kinda depends how prevalent google is in 20 years Jul 17 20:51:52 5 years, maybe even 10 years, but 20? it will be long dead by then Jul 17 20:52:02 in 20 years, I hope weh ave shit implanted in our brains or something Jul 17 20:52:39 flying cars will never be commonplace. it would be a safety nightmare. Jul 17 20:52:42 that would result in a massive e-coli infection Jul 17 20:52:59 pragma- unless they flew themselves Jul 17 20:53:05 BORING Jul 17 20:53:54 self-driving cars are not likely to gain widespread popularity Jul 17 20:54:32 dunno. just read last week about unmanned full sized aircraft flight Jul 17 20:54:38 i mean, it just happened last week Jul 17 20:54:43 http://www.crutchfield.com/p_130SPDA110/Pioneer-SPH-DA110-AppRadio-3.html Jul 17 20:54:47 hmm, I wonder how well that works with android Jul 17 20:54:52 If im trying to make an interface editor, would i be better off using ImageView objects on a relative layout, or bitmaps on a surfaceView? Jul 17 20:55:13 for ease of coding, i need to register press, press and drag, and long press for each interface item placed Jul 17 20:55:17 "The AppRadio 3 works with iPhone® 4, 4S, and 5, as well as select Androidâ„¢ models" Jul 17 20:55:19 and I wonder if their protocol is open or if they have an sdk to develop your own apps Jul 17 20:55:26 "how well" not "if" Jul 17 20:55:42 MirrorLink allows certain Nokia and Samsung smartphones (with more to come in the future) to display their interface on the AppRadio 3, so you can make phone calls, access map services, or check out music with ease Jul 17 20:55:58 i just saw that Jul 17 20:56:04 that's pretty cool Jul 17 20:56:10 apparently pioneer thinks nokia makes android phones? Jul 17 20:56:16 well, ignore the nokia bit Jul 17 20:56:59 Is there a way to have some list item use an animation-list without having to call .start() ? Jul 17 20:58:14 $400 is a pretty decent price if it works well Jul 17 20:58:49 not even a pioneer head unit could make me buy another samsung Jul 17 20:59:12 what are you preferring instead of samsung now? Jul 17 20:59:20 just make one with stock android built-in Jul 17 20:59:50 ive always prefered htc, but lg and sony are making great devices also Jul 17 21:00:16 birbeck i like the sony xperia being water proof Jul 17 21:00:25 i guess there is a water proof S4 version too Jul 17 21:00:34 seems like a pretty killer feature Jul 17 21:00:44 i dont really care about that, but it is a nice device regardless Jul 17 21:01:00 and the s4 active is not really an s4, its more of a s3 Jul 17 21:01:09 oh Jul 17 21:01:14 O.o Jul 17 21:01:22 mirrorlink, is that some sort of mhl implementation Jul 17 21:01:26 very mid-low end specs by todays standards Jul 17 21:01:51 pfn: i imagine dlna Jul 17 21:02:03 birbeck, it requires plugging in the usb cable Jul 17 21:03:56 well, google maps, google play music and installable 3rd party android apps like my tracks and trackmaster, or no dice Jul 17 21:04:20 i dont want to pair my phone and/or mirror its display. i want a native android head unit Jul 17 21:04:29 I don't Jul 17 21:04:32 pfn not sure if you are using macvim; its been getting a few updates lately for 7.4 Jul 17 21:04:45 g00s, I have been using macvim, but I don't really care about updates Jul 17 21:04:56 even if it were unchanged since 15 years ago, I wouldn't really care Jul 17 21:05:20 heh, yeah … i'm sure 15 years from now they will stil lbe using shitballs Jul 17 21:05:41 I like the nice little touches, like syntax highlighting and colorization Jul 17 21:05:45 but that's about it, really Jul 17 21:06:06 http://www.mirrorlink.com/technology/ Jul 17 21:06:11 hmm, ok, nice way to be vague Jul 17 21:06:46 birbeck, anyway, having a single android head unit vs. pairing a different unit makes it easier for multiple android devices to play and interact Jul 17 21:06:50 pfn: https://cert.mirrorlink.com/ProductListing/ Jul 17 21:06:52 rather than just having a single device Jul 17 21:06:58 click servers and search Jul 17 21:07:47 galaxy s3 but not 4? Jul 17 21:08:05 Products displayed in this listing meet the compliance requirements for MirrorLink™ certification. The Certified Product Listing does not represent a complete list of certified products as some companies choose to keep their products private. Jul 17 21:08:05 meh Jul 17 21:08:25 works with the experia z Jul 17 21:08:33 screw samsung :) Jul 17 21:08:44 the s4 is the next phone I'm most interested in Jul 17 21:11:09 well, motox first Jul 17 21:11:21 then I'll fall back to s4 if it's disappointing Jul 17 21:11:39 I hope google offers a generous subsidy on it Jul 17 21:11:56 http://justpaste.it/34a5 Jul 17 21:12:01 Help Please :( Jul 17 21:12:02 http://justpaste.it/34a5 Jul 17 21:12:14 Should we add permission for using google map API in android? Jul 17 21:12:22 app exists Jul 17 21:12:36 debug for me, anyone? please. I will be heavilty grateful Jul 17 21:12:37 http://justpaste.it/34a5 Jul 17 21:12:38 http://justpaste.it/34a5 Jul 17 21:12:44 someone ban please Jul 17 21:12:50 sorry Jul 17 21:12:54 i didnt intend to spam Jul 17 21:12:54 Issac: this is not how you get help in this channel Jul 17 21:12:56 :| Jul 17 21:13:04 ok I'm sorry Jul 17 21:13:27 app exits Jul 17 21:13:46 Issac: that gives us no information. show us the logcat output Jul 17 21:14:15 ok wait a minute Jul 17 21:14:30 Ok, I'm a bit flabbergasted by this … I have a values/config.xml with a tag … my app runs fine with all other resources, but I have and the bulid process fails to find that symbol even though the IDE is perfectly happy with the reference. This is under the latest android studio. Jul 17 21:15:17 In case that was unclear, I can access all of the other regular string resources from this file just fine, but the build fails when I try to access the string array Jul 17 21:15:25 evanc It uses Network Service so oobviouslt dont work in emulator. I use it directly on phone :| Jul 17 21:15:39 Are there any known issues with GCM ? Our system is unable to connect to google Jul 17 21:16:30 Issac: so what? You can get logs from a phone. Jul 17 21:16:33 stupid pc crash Jul 17 21:16:47 evanc how how? Jul 17 21:16:55 Issac: same way you do on an emulator Jul 17 21:17:20 Pushnell, provide build error Jul 17 21:17:25 evanc I dont understand. I dont get logs from emulator i get it in eclipse Jul 17 21:17:27 :| Jul 17 21:17:30 ok I;ll google Jul 17 21:17:41 http://bit.ly/13xgUnB Jul 17 21:18:08 pfn: I just saw that an update is available. Installing that, then I'll let you know what I find. Jul 17 21:18:30 v0.1.9 -> v0.2.0 Jul 17 21:27:33 ugh, great. Ok, now my entire build is broken. Jul 17 21:28:22 asked me to bump the gradle dependency to v0.5. Now, "FAILURE: Could not determine which tasks to execute. Task 'assemble' not found in root project" Jul 17 21:28:49 delete the .idea directory and re-import the toplevel build.gradle. Jul 17 21:32:06 codebutler: "Create project from existing sources" or "Import project from external model" ? Jul 17 21:32:49 just "open project" and select the build.gradle Jul 17 21:33:27 Use gradle wrapper? Jul 17 21:33:36 codebutler otherwise, has 0.5 been pretty good? i'm still using 0.4.3 Jul 17 21:33:41 (from commandline) Jul 17 21:33:48 ( / Use auto-import / use local gradle) Jul 17 21:33:55 there was one feature i wanted, but not at the expense of breaking stuff Jul 17 21:34:12 life on the edge :P Jul 17 21:34:16 g00s: uh well i've got a pretty major problem actually: https://plus.google.com/105828098943406053578/posts/Gm266osBy25 Jul 17 21:34:34 any references on how can I display a loading spinner while downloading the image to be displayed in the imageview ? Jul 17 21:34:45 codebutler hmm Jul 17 21:35:07 someone claims clearing app data "fixes" it, haven't tried that yet (and is not very encouraging, since I can't expect users to do that) Jul 17 21:35:15 i think this is where pfn says use sbt or something Jul 17 21:35:38 maybe we should just go back to .bat files Jul 17 21:35:39 I like gradle quite a bit, but some of this stuff is definitely beta Jul 17 21:35:43 well, not if you're using androidstudio Jul 17 21:35:48 because androidstudio sucks ass Jul 17 21:35:54 better off using intellij Jul 17 21:36:03 ^ +1 Jul 17 21:36:05 thats what i'm using atm Jul 17 21:36:07 (intellij) Jul 17 21:36:08 Woooo. Can't deserialize target data of key 'IdeaAndroidProject'. Given class loaders: [com.intellij.util.lang.UrlClassLoader@a4a63d8 Jul 17 21:36:10 if androidstudio didn't use a different product-code so that you could use actual intellij plugins Jul 17 21:36:23 pfn defuq what ? Jul 17 21:36:24 half of the intellij plugins out there won't install into android studio without hacking Jul 17 21:36:36 because it's a different product-code Jul 17 21:36:49 shit, so does that mean i would need a different intellij for lua then? Jul 17 21:36:54 Android is so special it needs its own IDE Jul 17 21:36:57 g00s, huh Jul 17 21:37:56 well, it needs an environment that's well-integrated Jul 17 21:38:10 like VS for wp8 and xcode for ios Jul 17 21:38:21 android lags behind those platforms in that regard Jul 17 21:38:35 g00s, and if you'd try sbt, you'd see that it's actually awesome Jul 17 21:38:46 rather than just making offhand comments Jul 17 21:39:18 pfn i was just joking man, not putting down sbt Jul 17 21:39:22 'cept for instrumented tests, I haven't found the value in adding it Jul 17 21:39:28 i haven't used it, so i'm not commenting on it Jul 17 21:39:39 yes having 50 IDEs for customized purpose is the solution.. Jul 17 21:39:52 i propose going back to eclipse Jul 17 21:39:55 \o/ Jul 17 21:39:57 * g00s runs Jul 17 21:40:19 while you're at it, suggest left hand dvorak Jul 17 21:40:30 dvorak would be awesome, if it didn't fuck up vi Jul 17 21:40:45 the guy from the magazine? Jul 17 21:40:53 hi, i have a question about google play developer api, it's python but related with android ;-) anyone uses https://developers.google.com/android-publisher/v1_1/ ? Inapppurchases, i'm trying to get info about purchase status, i have access_token but i'm getting error 400 (Invalid Value), i don't know why ;-S it's working when i am using first token, but after generating new access_token.. always 400 ;-S Jul 17 21:41:02 pfn: seen the left/right hand layouts? freaky .... Jul 17 21:41:28 bankai_, haven't, no; completely uninterested in alternative keyboard/one-handed layouts until I actually lose a hand Jul 17 22:06:06 Chainfire still there ? Jul 17 22:08:22 I have a Service with a Timer scheduled to run every 10 minutes. In the log I see that sometimes it is called every 10 minutes, but sometimes every 12 minutes, 30 minutes, 43 minutes, etc... Any explanation? Jul 17 22:08:44 jstemmer: you should be using AlarmManager for this Jul 17 22:08:56 jwalker60 ^^ Jul 17 22:09:05 also, you should (if at all possible) use a 15-minute interval and use setInexactRepeating Jul 17 22:09:12 yes, jwalker60; sorry (thanks g00s) Jul 17 22:10:50 evanc i'd like your opinion on this; what do you think is a good cutoff point for using alarmManager vs delayed messages, 2min, 5min, 10min? of course, assuming you have a cpu wakelock or something with delayed messages. i'm guessing 5 minutes would be the min? Jul 17 22:11:18 yeah, 5 minutes or so. ctate might have a better idea Jul 17 22:11:30 * evanc summons him Jul 17 22:11:33 ok, thanks ! Jul 17 22:11:43 You rang? Jul 17 22:11:43 ctate, you have been summoned ! Jul 17 22:11:56 please to repeat yon question Jul 17 22:12:10 ctate ; what do you think is a good cutoff point for using alarmManager vs delayed messages, 2min, 5min, 10min? of course, assuming you have a cpu wakelock or something with delayed messages. i'm guessing 5 minutes would be the min? Jul 17 22:12:56 well Jul 17 22:13:11 delayed messages won't necessarily get delivered if the app is quit, etc Jul 17 22:13:25 unlike alarms Jul 17 22:13:26 evanc, I want to use as little battery as possible. Will setInexactRepeating wake the device anyway every 15m, or only if I use it? Jul 17 22:13:33 that's one of the major decision factors Jul 17 22:13:52 jwalker60: alarms dont' wake the device unless you use a _WAKEUP time base Jul 17 22:13:52 ctate right, assuming appropriate safeguards with delayed messages (like cpu wakelock, service, etc) Jul 17 22:14:13 g00s: i dont' think time is really the factor Jul 17 22:14:26 i think whether you want to be *launched* to handle the work is the factor to consider Jul 17 22:14:31 comes down to, if you have to do some repeating thing every x minutes; whats the cutoff between waking up the phone with alarmmanager or just keeping it on and using delayed messages Jul 17 22:14:49 oh god Jul 17 22:14:54 don't wake the phone often Jul 17 22:14:55 please Jul 17 22:14:56 jwalker60: it'll be approximately every 15 minutes, but is allowed to fire early or late, depending on if other alarms are happening around that time Jul 17 22:14:58 as you love battery Jul 17 22:15:05 so it can batch the broadcasts Jul 17 22:15:19 if you're talking *wakeups*, i'd recommend not waking up more than ~ halfhourly if you can possibly avoid it, and even that is a pain Jul 17 22:15:28 especially if you are contemplating network traffic at wakeup time Jul 17 22:15:44 ctate so imagine i have to sample some scientific equipment every 1, 2, 5, 10, 15, or 30 minutes. atm, i use alarmmanager for 5+ Jul 17 22:15:46 (I thought 15 minutes was the smallest inexact repeating interval; might want to fact-check me on that) Jul 17 22:15:49 one of the fastest ways to burn battery is to cause the data connection to spin up from idle Jul 17 22:15:55 for 1 & 2 minutes, i just keep the phone one Jul 17 22:15:57 g00s: aha, niche case Jul 17 22:15:58 *on Jul 17 22:16:00 Just for reference, if the device isn't sleeping why is my Timer not executing? Jul 17 22:16:08 okay, for specific uses cases that sounds pretty reasonable Jul 17 22:16:26 although frankly you might just want to use alarms all the time Jul 17 22:16:32 oh Jul 17 22:16:33 and cancel them when you're stopped if appropriate Jul 17 22:16:49 it's a bit more song-and-dance to handle the alarm, obviousliy Jul 17 22:16:54 * JesusFreke imagines smooth radio voice .oO "All Alarms, All the time" Jul 17 22:17:00 haha Jul 17 22:17:23 thanks ctate Jul 17 22:17:28 cue pink floyd "Time" Jul 17 22:17:52 oh man, comfy numb is one of my fav solos Jul 17 22:17:52 I am trying to uninstall (to reinstall) the android SDK Jul 17 22:18:07 how might one go about this? I already un/reinstalled the ADT and it didnt solve my problem Jul 17 22:18:12 android sdk is just a zip, nothing to uninstall reinstall Jul 17 22:18:17 rats. Jul 17 22:18:21 maybe you guys can help then.. Jul 17 22:18:33 http://stackoverflow.com/questions/16724895/text-in-xml-graphical-layout-appears-as-strange-characters Jul 17 22:18:37 is my issue Jul 17 22:19:18 g00s: as soon as you said "sample some scientific equipment every…" you were into "oh look wall clock precision is actually relevant" land Jul 17 22:19:22 => alarm manager FTW Jul 17 22:19:25 csterling123, you messed up your system fonts or something Jul 17 22:19:32 csterling123, or you're using non-english text Jul 17 22:20:06 whats odd is that when i change the typeface to serif, the chars appear fine Jul 17 22:20:15 you messed up your fonts Jul 17 22:20:32 you can try nuking your adt directory and unzipping it again Jul 17 22:20:35 ive checked the encoding...cant figure it out Jul 17 22:20:38 and if it still happens, then you messed up your system fonts Jul 17 22:21:03 by nuking do you mean going to Help > About Eclipse > Installation Details ... uninstall ADT ? Jul 17 22:21:16 because i just did that Jul 17 22:21:46 Curse you fragments! Jul 17 22:21:48 is there a way to make "checkbox" UI to show text on the left and the box on the right, as opposed to the default behavior of box on the left and text on the right? Jul 17 22:21:50 damn your eyes Jul 17 22:22:11 i agree with you ankhwatcher, as ive spent all day today trying to understand them. still dont Jul 17 22:23:25 pfn: do i want to delete the sdk jar file? Jul 17 22:23:30 and re do that? Jul 17 22:24:50 evanc, what are the considerations in my case of using a non-waking AlarmManager vs. Timer ? Jul 17 22:28:05 csterling123: I'm trying to populate a ListFragment from a database through a provider. consistently empty so far Jul 17 22:28:38 sorry, cant help you. i dont even know how to make fragments work with buttons :P Jul 17 22:28:58 * ctate knows not of this thing called "Timer" Jul 17 22:29:26 csterling123: this Vogella article I was using has a fragment with buttons: http://www.vogella.com/articles/AndroidFragments/article.html Jul 17 22:29:35 oh, well. Everybody knows android has always had problems with fragmentation, anyway. Jul 17 22:29:51 ctate, http://developer.android.com/reference/java/util/Timer.html ? Jul 17 22:29:56 Izhido: you absolute bastard. Jul 17 22:30:01 is there any tutorial that walks a complete noob to android through making an activity work with frags? Jul 17 22:30:09 oh, random javaish thing. i don't know from that. :) Jul 17 22:30:26 ctate ok, thanks again Jul 17 22:30:28 ankwatcher: thats actually a tut i literally just finished. guess what didnt work?! Jul 17 22:30:50 I don't understand why a non-waking AlarmManager is better than just a Timer. Jul 17 22:30:58 the big difference is that the Alarm Manager is integrated into the Android component lifecycle model, and Timer isn't Jul 17 22:31:03 csterling123: wait, wait don;t tell me! Jul 17 22:31:20 jwalker60: the Alarm Manager can launch your app to do work at hte designated time Jul 17 22:31:22 Timer can't. Jul 17 22:31:44 ankhwatcher: i dont know java/android well enough to know if the guy made typos in his code, or if i completely missed something Jul 17 22:31:52 i swear i followed his instructions exactly Jul 17 22:32:33 csterling123: I always find that there is some special component that is only in the code that you download Jul 17 22:32:41 including using the exact version of the tools he used? Jul 17 22:32:55 yeah idk, the tut was updated yesterday Jul 17 22:32:57 er Jul 17 22:33:01 by yesterday Jul 17 22:33:02 i mean Jul 17 22:33:04 last week Jul 17 22:33:11 lol Jul 17 22:33:20 and by last week, I mean in 2011 Jul 17 22:33:22 and by last week i mean 10 days ago Jul 17 22:33:23 haha Jul 17 22:33:36 and since i think im up to date....idk man Jul 17 22:34:15 looks like the only way you will get that working is by talking with the guy Jul 17 22:34:20 csterling123: do you definitely have everything right in the Manifest, that tends to be the thing I don't do when I'm following a tutorial Jul 17 22:34:44 (also, dear everybody: please use inexact alarms unless you have a compelling reason otherwise. thanks!) Jul 17 22:35:08 ctate: why? Jul 17 22:35:23 dude never mentioned anything in that tut about manifest Jul 17 22:35:27 (as far as i know) Jul 17 22:35:29 because then the OS can batch wakeups together and minimize battery drain Jul 17 22:35:46 ctate, I understand, thanks. In the log it doesn't say that my Service was killed, so I really can't say why would the Timer not fire in time. Anyway I'll use the inexact alarm. Jul 17 22:36:05 right now only repeating alarms will get batched together this way Jul 17 22:36:08 csterling123: yeah, that's just what I mean. Jul 17 22:36:15 but i'm working on broadening the net :) Jul 17 22:36:56 i had to change the min version in my manifest to address an error, other than that, didnt change anything Jul 17 22:37:11 but the errors in the .java file are from referencing things that dont exist Jul 17 22:37:12 i think Jul 17 22:37:20 b/c of typos? im not sure Jul 17 22:44:48 I'm at a loss can anyone tell me why this ListFragment fails to populate? http://pastebin.com/LvM1yFje Jul 17 22:45:10 The search resutls populate their listview just fine. Jul 17 22:55:52 Ah hah! Failed to find provider info for ie.appz.youtubevideostestapp.persistence.UsersOpenHelper Jul 17 22:59:06 That should be called ie.appz.youtubevideostestapp.persistence.UsersProvider Jul 17 23:08:44 I am running a network connecting method in AsyncTask but it crashes the app with Pool-1 thread 3 error , whta could be the reason ? Jul 17 23:15:45 there any ? Jul 17 23:15:58 android AsyncTaks error pool1 therad 2 ? Jul 17 23:16:10 what is this ? and what may cause such an error ? Jul 17 23:20:46 pastebin the log of the actual crash, andro-noobe Jul 17 23:25:25 is it possible to network p2p between androids? Jul 17 23:25:44 i.e. devices on mobile internet? Jul 17 23:26:26 NFC? bluetooth? Jul 17 23:26:50 device as access point while others connect to it Jul 17 23:26:51 ? Jul 17 23:26:57 you need to be more specific Jul 17 23:30:22 @ctate here is my Asynctask and function which runs in background http://upaste.me/d21a6624677dd8fc Jul 17 23:30:49 i told you to paste the log of the crash Jul 17 23:30:51 not the source code Jul 17 23:31:03 although the source might be useful once people see the text of the crash log :) Jul 17 23:31:31 http://upaste.me/a1256625fcb01de4 here is the crash report Jul 17 23:31:38 ctate http://upaste.me/a1256625fcb01de4 Jul 17 23:32:07 * ctate | java.lang.IllegalArgumentException: identDigests is not a constant in class org.nikki.omegle.core.OmegleEvent Jul 17 23:32:13 that's your bug Jul 17 23:32:19 says so right there Jul 17 23:33:07 but earlier it worked fine Jul 17 23:33:33 right after some changes in this file it started displaying this error i never touched the omgeleEvent file Jul 17 23:35:45 @ctate i never touched the OmegleEvent file and earlier it worked , before 2-3 hours , i just changed some outside code and it started throughing such a error Jul 17 23:37:18 you pasted OmegleChat.java Jul 17 23:37:26 which is not even mentioned in your crash report Jul 17 23:38:08 read the stack trace of the crash Jul 17 23:38:13 look at what classes it mentions there Jul 17 23:38:19 go look at the lines in question Jul 17 23:38:24 go from there Jul 17 23:39:52 i did it i just placed a identDigests constant in the file it mentions and it started working thank you so much ctate Jul 17 23:45:20 is there an ID that specifically idents an android device uniquely Jul 17 23:45:23 ? Jul 17 23:45:37 you can generate one Jul 17 23:49:22 define "device" Jul 17 23:49:44 physical device? ownership session bounded by [setup -> factory reset]? Jul 17 23:53:44 Goodnight all Jul 17 23:56:27 g00s ? Jul 18 00:13:23 if i swap out the underlying array inside my custom adapter (not just add/remove elements), should i notifyDataSetInvalidated, or still just use notifyDataSetChanged? Jul 18 00:13:52 probably notifyDataSetInvalidated Jul 18 00:14:08 i've tried with notifyDataSetChanged and it doesn't work, as it loses it's reference to the array Jul 18 00:14:17 what happens to the views then? do they still get recycled? Jul 18 00:14:29 ah, that's good to know Jul 18 00:15:00 any reason you don't want to just clear and re-add elements? Jul 18 00:16:36 Chainfire what do you think about the play store redesign? i remember you had a nice promo graphic for dslr controller; they removed that :( Jul 18 00:16:52 because this adapter is for the tab view for the child array of my object, and i'm swapping out the parent object for a new instance Jul 18 00:17:03 would it still be preferred to clear & addrange? Jul 18 00:18:34 that's what I did when reloading, and seemed to work well, can't tell you if its the "best" way, but it works :) Jul 18 00:19:17 which is what you did? clear & readd, or override with new? Jul 18 00:21:46 clear and readd Jul 18 00:21:58 k, good to know. thanks Jul 18 00:28:09 did intel just abandon the x86 image? i mean crap, can't they put out a rev2 that at least fixes the fing logging shit? Jul 18 00:28:15 what a bunch of lazy fucks Jul 18 00:41:51 wow, harsh words about the play store redesign http://www.androidpolice.com/2013/07/15/what-did-google-change-and-remove-in-the-web-play-store-redesign-tons-of-stuff-heres-everything-weve-found-so-far/ Jul 18 00:42:04 "Is Google on a screw-up spree?" yes Jul 18 00:53:04 ah, finally fixed my sbt plugin with respect to provided libraries Jul 18 00:53:15 g00s, that's what I say about their image, too Jul 18 00:53:26 I wonder how hard it is to build an x86 emu image out of aosp Jul 18 00:53:45 shouldn't be so hard Jul 18 01:04:26 my sweet loader for my samsung android app https://docs.google.com/file/d/0B7_AACxm8yEhaHhOamtObEU1c2c/edit Jul 18 01:07:45 you mean boot image? Jul 18 01:07:50 boot animation Jul 18 01:08:51 yea Jul 18 01:08:55 boot animation Jul 18 01:26:03 In my Service I use AlarmManager to get alarms every 15m. I get the "Network on main thread error". Should I create a new thread, or will it prevent from AlarmManager to know when I finished processing? Jul 18 01:36:19 I'm about to flip a shit on gradle + android studio. fuck me Jul 18 01:36:49 BobLoblaw, change the build.gradle to version 0.5.+ Jul 18 01:37:08 jeppy: Did that Jul 18 01:37:19 the other issue is probably here: http://stackoverflow.com/questions/17614477/gradle-failure-could-not-determine-which-tasks-to-execute) Jul 18 01:37:26 "Could not excecute build using Gradle Installation /blah blah bullshit" Jul 18 01:37:52 chceking that out jeppy thanks Jul 18 01:39:04 Is there a way to have an animated image from an animation-list without having to get the element and call .start() on it? Jul 18 01:39:16 Like...maybe a way to have an ImageView go ahead and start the animation? Jul 18 01:42:01 ProgramMax: i have the same issue, I want to display a spinner while the image is being downloaded... Jul 18 01:45:36 the reason I ask is because mine is going inside a listview Jul 18 01:45:38 it's a list item Jul 18 01:55:47 call start when you assign the drawable Jul 18 01:56:00 I'm not assigning it Jul 18 01:58:10 the problem is, I'm using a library called android-binding Jul 18 01:58:13 I give it an arraylist Jul 18 01:58:44 it populates the listview Jul 18 01:58:57 I can give it a xml file to use for the list items Jul 18 01:59:36 jeppy, thanks, I fixed my issue, but I still want to burn android studio to the ground. Unbelieveable Jul 18 02:00:42 bobsonator: how did you fix it ? Jul 18 02:00:49 Yeah I was in your place this morning Jul 18 02:01:19 shmooz: had to delete my .idea and go into the .iml File and remove all the facet bullshit Jul 18 02:50:16 oh well, looks like the n7 will be a little more expensive? $230 for the base model Jul 18 02:50:29 screw the cameras man Jul 18 02:50:44 give me flash that won't crap out **** ENDING LOGGING AT Thu Jul 18 02:59:58 2013