**** BEGIN LOGGING AT Thu Feb 14 03:00:00 2013 Feb 14 03:00:19 canadiancow: never having a nexus device, when it says "It was upgraded to the latest Android software 4.1 (Jelly Bean) in mid-July 2012" but upgradeable to 4.2.2 , what does that mean ? Feb 14 03:01:08 does it mean OTAs stop, but you can grab something yourself ? Feb 14 03:01:20 some official build Feb 14 03:01:35 g00s: i'm pretty sure it is still getting OTA updates Feb 14 03:02:03 g00s: I expect my daily phone galaxy nexus to be supported for another 2 year Feb 14 03:02:05 s Feb 14 03:02:22 2 years? :) Feb 14 03:02:27 StingRay_: that extra 's' won't count for your stats :) Feb 14 03:02:42 lol Feb 14 03:02:45 I hope not Feb 14 03:02:53 lol doesn't count either :D Feb 14 03:03:11 * StingRay_ doesnt want an increase at all Feb 14 03:04:50 but StingRay_ , on the wikipedia page, the 'Release Date' and 'Last update date' weren't 2 years for the N1 and Nexus S Feb 14 03:10:04 uh, i haven't used the emu in a while. after i start it, and do 'adb devices' it should show up, right ? Feb 14 03:10:21 it isn't :/ Feb 14 03:10:59 g00s: Yeah, there are meny different Galaxy Nexus. The "yakjuxw" is the one sold by Samsung, it is stuck at 4.1. The normal "yakju" is sold by Google and gets OTA and is at 4.2.1 Feb 14 03:11:25 kakazza: thanks, i forgot about that Feb 14 03:12:10 Also takju, which is US, I think. Feb 14 03:12:49 I recently flashed a Galaxy Nexus from yakjuxw to yakju, so it will get OTA Updates in the future. A wipe was necessary though. Feb 14 03:13:03 The wipe was however no problem because of the awesome 'adb backup' command. Feb 14 03:13:26 do i get free $25 Feb 14 03:13:31 if i buy a nexus product? Feb 14 03:13:49 Huh? Feb 14 03:14:07 Are you talking about the - iirc - preorder bonus for the Nexus 7? Feb 14 03:14:49 That is not available anymore afaik since it was a _pre_order bonus. Feb 14 03:21:49 anyone get that dev unit of leap motion? Feb 14 03:22:03 got mine coming in, wondering if its *that* interesting Feb 14 03:36:03 how do i access a subclasses function w/in a function of the father class Feb 14 03:38:36 acidjazz, Isn't it super.whatever? Feb 14 03:40:31 I am trying to send a binder over for callback. is there anything I need to do like register it somewhere Feb 14 03:40:48 when the other side gets the object, it throws a RunTimeException when it tries to access it Feb 14 03:45:03 acidjazz: methods requiring that behavior should probably be abstract. Feb 14 03:46:29 kakazza, yakju is not sold by google Feb 14 03:46:32 takju is sold by google Feb 14 03:46:55 and according to androidpolice, they're both at 4.2.2 now Feb 14 03:48:01 Then what is different between yakju and yakjuxw? I know the latter is sold by Samsung. At least I read that Feb 14 03:48:22 Or rather, maintained by Samsung iirc Feb 14 03:48:27 novie: https://gist.github.com/acidjazz/4950224 i need to use a function that has inherited DroidGap inside this onReceive function Feb 14 03:49:09 no idea what DroidGap is :) Feb 14 03:49:13 "Yakju is the exact same device sold internationally by Google, but doesn’t ship with Google Wallet. Yakjuxx is the exact same device sold internationally by Samsung." Feb 14 03:49:37 novie: its jsut a package included w/ phonegap to pass data to javascript.. but thats kind of irellevant right Feb 14 03:50:09 novie: heres an example.. https://gist.github.com/acidjazz/4950502 Feb 14 03:50:40 acidjazz: I don't see what you are trying to do. What method on what class are you trying to call? Feb 14 03:53:03 using pin points on a map, is there a way to get them to scale/stretch with the map? I noticed that on a map using an icon, it stays the same size and thus looks weird as the user zooms in/out Feb 14 03:53:18 I have a radius circle around this icon which makes it even more awkward as the user zooms out Feb 14 03:56:55 should callbacks for AIDL be inout parameters? Feb 14 03:56:59 or just in Feb 14 03:57:13 I notice that when my service tries to callback on the AIDL object, it crashes Feb 14 03:57:25 and I think it is because it is trying to "write" to an "in" object Feb 14 04:00:31 novie: im trying ot harness the extension of the DroidGap class in the class receiver class Feb 14 04:01:29 acidjazz: the DroidGap class looks like an Activity. Feb 14 04:01:38 it is not clear what you are trying to do here... Feb 14 04:02:42 see the super.loadUrl() Feb 14 04:02:53 thats part of DroidGap.. and i need to pass referrerString into that Feb 14 04:02:58 im sorry im a java noob Feb 14 04:04:18 hi Feb 14 04:04:25 is there anyone here mad at me? Feb 14 04:04:39 anyone? Feb 14 04:05:05 the deepest innermost hatred is hard to find so i guess no on will answer Feb 14 04:05:47 linuxuz3r_ what? Feb 14 04:06:04 nothing Feb 14 04:06:13 i just get paranoid moments again Feb 14 04:06:26 can you please stay on topic here... Feb 14 04:06:33 ok Feb 14 04:06:47 novie: am i still not being clear? Feb 14 04:06:59 acidjazz: you need to start the activity and pass the referrer. Feb 14 04:07:19 you can't just call the method from the receiver, it won't work. Feb 14 04:07:26 i see Feb 14 04:07:33 so i need to start teh activity w/in the referrerr class Feb 14 04:08:10 no idea how to do that.. Feb 14 04:08:35 http://developer.android.com/training/basics/activity-lifecycle/starting.html Feb 14 04:08:45 you should probably spend some time with the getting started guide. Feb 14 04:09:13 yea id like to.. only issue is im writing a proposal TO write an app Feb 14 04:09:34 eek. Feb 14 04:09:40 so im just doing a prototype to win this 1st Feb 14 04:10:37 w/ a js background i was able to get phonegap going.. w/help from here i was able to write receiver and have it work w/ log.w().. now i just need to pass it to loadUrl so i cna show it off Feb 14 04:11:00 that link shows how to start an activity. Feb 14 04:11:07 yae i read through it Feb 14 04:11:17 I don't know anything about phonegap, and glad I don't :) Feb 14 04:11:26 how about teh sms_sxsw class you saw Feb 14 04:11:32 that is an activity Feb 14 04:11:44 do you imaginne an easy way i can get the receiver string in there? Feb 14 04:12:13 I told you where to look for that info. Not really interested in writing that for you. Feb 14 04:12:25 this https://gist.github.com/acidjazz/4950559 Feb 14 04:12:27 yea im not asking that Feb 14 04:12:49 w/ this i was able to pass the IMEI back Feb 14 04:13:07 but i can get that instantly.. hwere as the receiver class grabs a referral whenever its returned Feb 14 04:13:44 yea receivers don't work that way... Feb 14 04:14:03 if that activity is already running, you'd essentially be restarting it Feb 14 04:14:33 kakazza, google only directly sold the GN in the united states, and it was takju Feb 14 04:14:41 im not sure exactly what yakju is Feb 14 04:14:56 i know the updates come from google, but im not sure how the sales worked Feb 14 04:15:31 novie: so the functionality to pass this value to DroidGap would have to be in the receiver class then? Feb 14 04:16:17 what is calling this receiver? Feb 14 04:16:32 yakju is takju without Wallet Feb 14 04:16:59 Feb 14 04:17:09 intent-filter.. Feb 14 04:17:39 novie: you can get this option allt eh way from play.google.com/app/details?id=yourapp&referrer=thisdata Feb 14 04:18:17 acidjazz: I don't believe that would execute when your app is running in the foreground... Feb 14 04:18:32 it does ive tested it Feb 14 04:18:34 the log.w() runs Feb 14 04:18:42 ive tested it in adb and via google play Feb 14 04:19:07 what I mean is it may not be guaranteed to. Feb 14 04:19:26 upon app install its worked every time Feb 14 04:19:34 i change the variable/etc it passes thorugh Feb 14 04:19:56 I understand that, but if that DroidGap activity isn't running you'll be basically popping up a screen when that is fired. Feb 14 04:20:33 ok how about a static global variable i set the string to that DroidGap can check on at some point? Feb 14 04:21:05 im not tryign to build an app i just need a simple duct tape solution of some kind to pass this through Feb 14 04:21:17 then i win the gig and have the time to learn to do it properly Feb 14 04:21:20 lol Feb 14 04:22:36 im guessing thats a no Feb 14 04:23:45 novie: this direction is no bueno? https://gist.github.com/acidjazz/4950592 Feb 14 04:23:51 i'm not going to sit here and write the code. if you need to pass that along when the app is run after install have a look at sharedpreferences Feb 14 04:24:06 acidjazz: no that code will not work. Feb 14 04:24:12 im not asking you to do this im asking for a possibility Feb 14 04:26:36 acidjazz: look at sharedpreferences. you can store the referrer there and then pull it in the activity to pass along to the webview Feb 14 04:27:57 thanks Feb 14 04:34:50 anyone have ideas on what I need to look into to scale my png on mapview so it doesn't look awkward when zooming in/out? Feb 14 04:35:08 I'm looking at bitmap scaling options for MapView but not really running into any solutions Feb 14 04:40:09 novie: so now im back to square one Feb 14 04:40:31 novie: ive imported sharedPreferences and i want to call getSharedPreferences() inside my receiver class Feb 14 04:40:58 you need to read the API documentation for SharedPreferences Feb 14 04:40:59 novie: how do i acess this function? Feb 14 04:41:03 i read it Feb 14 04:41:12 i need to instantiate it. do a putString and then commit() Feb 14 04:41:20 im asking you a java question.. same exactly original question Feb 14 04:41:22 https://www.google.com/search?q=android+accessing+preferences&aq=f&oq=android+accessing+preferences&sourceid=chrome&ie=UTF-8 Feb 14 04:41:31 yup Feb 14 04:41:39 more specifically Feb 14 04:41:40 http://stackoverflow.com/questions/2614719/how-do-i-get-the-sharedpreferences-from-a-preferenceactivity-in-android Feb 14 04:42:09 the answer that is checked works in activities that aren't preferenceactivity Feb 14 04:42:16 Google is your friend :) Feb 14 04:44:17 yea i google 10x before i ask you trust me Feb 14 04:44:20 context. i see Feb 14 04:53:24 cool works thanks Feb 14 04:53:50 so now that i can pass parameters into an app during install i got one more task.. i need to detect if an app is installed via a web intent Feb 14 05:34:22 my device only supports 2.2 but I want to use an app that doesn't run on 2.2 is there any way to get around this? Feb 14 05:34:59 uhh Feb 14 05:35:41 no Feb 14 05:35:58 get a newer device, or email the developer and ask really nicely Feb 14 05:36:04 but 2.2 isnt very popular Feb 14 05:36:36 I know Firefox gets around this sort of thing but using a User Agent add-on.. nothing like that available? Feb 14 05:37:11 but why would you want to run an app that clearly requires 2.3+ or whatever that is higher than 2.2 Feb 14 05:37:14 ? Feb 14 05:37:22 it probably will crash/not function properly Feb 14 05:38:05 because Nintendo just released a Pokemon app for iOs and Android. it's their first app for the states and I wanted to check it out Feb 14 05:38:21 this also isn't a -dev question... Feb 14 05:38:35 that too Feb 14 05:38:38 on top of being pointless :) Feb 14 05:38:48 novie, you seem fairly active these last few days :) Feb 14 05:39:08 irccloud is much nicer than it was before. Feb 14 05:39:16 so I don't forget about irc :) Feb 14 05:39:24 lol Feb 14 05:40:29 I thought it might be dev oriented because maybe someone here could help me make it happen. maybe the app could be tricked into running or something Feb 14 05:40:51 nope, not something done here. Feb 14 05:40:57 this is for app development. Feb 14 05:41:26 here's app dev question... how do I scale my png marker as I zoom in/out in MapView? Feb 14 05:41:57 QubeZ: no idea, just like the last dozen times you asked :) Feb 14 05:42:10 novie: at least you noticed =) Feb 14 05:42:18 I'll stop Feb 14 05:42:28 :) Feb 14 05:42:44 lol Feb 14 05:42:51 man I've been getting on this extreme couponing kick lately Feb 14 05:43:13 in last 6 weeks, I've gotten household items 7 months stockpiled and up $50 Feb 14 05:44:43 wow Feb 14 05:44:54 i tried buying a large box of toilet paper recently Feb 14 05:44:57 i have nowhere to put it Feb 14 05:45:03 haha Feb 14 05:45:27 Saturday I ran through 4 walgreens and made $85 in that one day, as an experiment Feb 14 05:45:36 got 49 scrubbing bubbles toilet drop-ins Feb 14 05:45:38 what do you mean "made $85" Feb 14 05:45:39 so im trying to pull web params when my app is launched then an intent.. i got Uri data = getIntent.getData(); which is fine btu when i List params = data.getPathSegments(); when my app is NOT launched via the web it crashes.. what sort of check can i write to stop this from happening? if (data.getPathSegments() != null) didnt work Feb 14 05:45:53 canadiancow: I racked up 75,000 pts at walgreens Feb 14 05:45:58 = $85 Feb 14 05:46:00 ah Feb 14 05:46:16 out of pocket vs rewards at the store Feb 14 05:46:42 im kind of hooked on it now Feb 14 05:47:03 send me something for walgreens next time Feb 14 05:47:09 tell me how this works Feb 14 05:47:34 canadiancow: will do Feb 14 05:47:38 :D Feb 14 05:47:49 i'm going to end up with a closet full of stuff i'll never use, won't i Feb 14 05:48:27 nope, sure I've had to get stuff I won't use because of the process of racking up the moneymakers but I buy all that I need with the extra cash then donate the stuff I dont want Feb 14 05:48:57 for example, this week I "bought" choloraseptic spray for $1 each while making $3 on each transaction i.e. +$2 Feb 14 05:49:21 so I bought 20 of them, turned my $20 investment into $60 and donated the sprays to salvation army Feb 14 05:50:49 i know i'm dense many times, but since i updated to the newest sdk - 'android devices' does not show a running emu; wtf could be wrong? Feb 14 05:51:43 err, 'adb devices' Feb 14 05:53:39 canadiancow: can you do me a favor and tell me what your sdk manager shows for "Android SDK Platform-tools" ? Feb 14 05:54:01 what version, that is Feb 14 05:54:37 16.0.1 Feb 14 05:54:39 g00s: mine says 16.0.1 I know you didn't ask me Feb 14 05:54:50 canadiancow: QubeZ thanks Feb 14 05:55:08 im about to install the updated Androkd SDK tool 21.0.1 Feb 14 05:55:09 i thought that version followed the sdk version; so i /thought/ it should be 21.1 Feb 14 05:55:17 lets see if mine is broken too Feb 14 05:55:24 err 21.1 Feb 14 05:56:22 g00s: still works for me Feb 14 05:56:25 after upgrade Feb 14 05:56:38 but I'm on a Mac, things always work Feb 14 05:57:03 im on windows and linux and it works Feb 14 05:57:19 QubeZ: so your sdk-tools is 21.0, and your sdk platform-tools is 16.0.1 Feb 14 05:57:28 g00s: affirmative Feb 14 05:57:38 ok, thanks Feb 14 05:58:02 wait Feb 14 05:58:04 21.1 Feb 14 05:58:09 not 21.0 Feb 14 05:58:19 oh right, im not paying attention Feb 14 05:58:21 let me double check Feb 14 05:58:30 oops yeah, 21.1 Feb 14 05:58:54 g00s: SDK Tool = 21.1; SDK Platform-tool = 16.0.1 Feb 14 05:59:03 yeah, cool thanks Feb 14 05:59:16 but i cant get adb to see the emu :/ Feb 14 05:59:42 i really wish people couldn't leave 1 star reviews without a reason Feb 14 05:59:48 i have an app with 7 5-star and 3 1-star Feb 14 05:59:58 like... tell me what doesn't work, and i'll fix it Feb 14 05:59:59 :( Feb 14 06:00:04 tell me about it Feb 14 06:00:05 yeah :( Feb 14 06:00:25 I have several 1-star ratings for things that aren't even the apps fault like they were not connected to the internet (my app tells them this) Feb 14 06:00:37 mine dont even have reviews Feb 14 06:00:37 then when it does work, they never come back to update Feb 14 06:00:39 its just the star rating Feb 14 06:00:46 but my latest review, im very happy about Feb 14 06:00:52 whoever that was, raved about it Feb 14 06:00:57 heh Feb 14 06:01:10 g00s: I'm 2/5 of the way through your suggestions btw =) Feb 14 06:01:35 QubeZ: :) Feb 14 06:01:41 i/m 2/5 of the way to going insane Feb 14 06:02:00 reboot Feb 14 06:02:03 computer and phone Feb 14 06:02:14 its emu issue for him Feb 14 06:02:20 adb sees my phone ok, just not the emu Feb 14 06:02:20 computer and emu :P Feb 14 06:02:24 adb wont see the emu (assuming he can see the phone) Feb 14 06:06:40 although after the upgrade, there is a lot of red markers in my source tree Feb 14 06:06:41 wtf Feb 14 06:08:22 \o/ reboot worked :/ Feb 14 06:10:55 night guys I'm out Feb 14 06:11:08 me too, going to reboot Feb 14 06:11:10 peace Feb 14 06:11:18 pea ... Feb 14 06:12:46 interesting "jQuery Core has more lines of fixes and patches for WebKit than any other browser." Feb 14 06:19:59 I'm new to android development. I've downloaded the latest tools (eclipse, jdk, adt, etc) and gotten everything working on my Windows 7 laptop. I want to buy a cheap android device to test on. Is there a list somewhere of phones that work with the dev tools? I can't seem to find the right google query to find what i'm lloking for. Thanks :) Feb 14 06:21:52 williehurl9, I'd guess that all the nexus devices will. Feb 14 06:21:55 williehurl9: just about every device will work. Feb 14 06:22:08 williehurl9: also, not sure what 'cheap' means ;) Feb 14 06:22:18 chinese? Feb 14 06:22:54 williehurl9, and my kindle HD 7" seem to do OK but does not have all the extras. Feb 14 06:23:07 novie: I bought a $50 Virgin Chaser from Radio Shack, but could not get it working. I then read online that dozens of other developers were having the same problem. So, I took it back. Feb 14 06:23:32 I'm looking for something around $100 USD Feb 14 06:23:53 williehurl9, Can't you chase your own virgins for free? Feb 14 06:24:28 jda2000: yeah, that's quite a name they're using, eh? ;) Feb 14 06:24:29 O.O Feb 14 06:24:29 williehurl9: maybe something off ebay used? Feb 14 06:25:08 williehurl9: somehow i would try to muster 200 for a N7 Feb 14 06:25:39 i was reading a nice post that the N10 is pretty ideal since you can play tricks with its size/density Feb 14 06:25:44 but thats 400 Feb 14 06:27:11 g00s: yeah $200 is a little beyond my budget right now. And, the only reason I need to get a device is because the emulator is just really really slow on my laptop. If I could get that running nice and fast, I could skip an actual device for now. Feb 14 06:28:13 if at any random time you cant spend $200 on a whim, you might be living above your means :) Feb 14 06:29:20 deebo: I'm not living above my means. I'm living above my friend's garage. :) Feb 14 06:29:42 :) Feb 14 06:29:48 get a job! and a haircut! Feb 14 06:30:18 i understand williehurl9 ;) Feb 14 06:31:50 Trinity: http://www.quickmeme.com/meme/3szc6b/ Feb 14 06:35:46 It looks like for $100 I can get either a Boost Samsung Galaxy Rush or a Virgin Mobile Kyocera Rise, both running Android 4.0. Does anyone know if these work for sure with eclipse? Feb 14 06:35:50 Is hdmi bi-directional? Feb 14 06:36:08 jda2000: HDMI is two-way communication, yes Feb 14 06:36:31 if you're asking whether you can stream content both ways, then no, I'm fairly certain you cannot Feb 14 06:36:57 JakeWharton, Yes, that was what I was wondering. Feb 14 06:37:48 JakeWharton, I have a hdmi cable for my Kindle and an hdmi port on my laptop...... Feb 14 06:38:19 JakeWharton, Don't want to see any blue smoke though, so I didn't try it. Feb 14 07:19:31 hello Feb 14 07:19:41 i'm writing an android application Feb 14 07:19:46 and i'm using AccountManager system Feb 14 07:20:28 I'm getting help from SampleSync sample Feb 14 07:20:34 but i'm stuck at somewhere Feb 14 07:20:40 here is the question Feb 14 07:20:58 i want to check if there is an account already in system if exists use its credentials Feb 14 07:21:35 first i used that: AccountManager.get(mContext).getAccountsByType(Constants.APP_NAME) Feb 14 07:21:47 and set the variables Feb 14 07:21:54 but not sure if this is the right way Feb 14 07:22:22 how come accountManager = AccountManager.get(this); and mUsername = intent.getStringExtra(PARAM_USERNAME); Feb 14 07:22:30 doesn't retreive the user Feb 14 07:22:41 any ideas? Feb 14 07:28:59 btw, i'm using my own account mechanism Feb 14 07:40:23 Hi I need the width and height for text with stroke on it. Nothing seems to take stroke into account. Any ideas? Feb 14 07:41:28 I tried measureText, staticlayout, nope Feb 14 07:42:25 You would think since Paint holds text bounds apis, it would account for stroke or have a switch for it but no Feb 14 08:16:25 Hi guys. Haven't been able to find anything about this, but I'm trying to get a tabs current title text - is this possible? Feb 14 08:47:58 how to make reputation in stackoverflow. The cheaty way. Feb 14 08:47:59 http://stackoverflow.com/questions/14870819/what-is-the-difference-between-collections-emptylist-and-collections-empty-lis/14870838#14870849 Feb 14 08:48:06 Answering the own questions. :p Feb 14 09:35:31 <3 android Feb 14 09:36:24 hey guys, I have this OOM exception Feb 14 09:36:24 02-14 11:34:42.075: E/dalvikvm-heap(14139): 147456-byte external allocation too large for this process. Feb 14 09:36:25 02-14 11:34:42.075: E/dalvikvm(14139): Out of memory: Heap Size=5831KB, Allocated=4337KB, Bitmap Size=18667KB Feb 14 09:36:25 02-14 11:34:42.075: E/GraphicsJNI(14139): VM won't let us allocate 147456 bytes Feb 14 09:36:29 can You please help me? Feb 14 09:36:41 I tried MAT, nothing suspicious was found Feb 14 09:37:03 the most strange part is that there is no further explanation, just this exception Feb 14 09:37:20 it happens, when I try to inflate XML Feb 14 09:40:11 hello Feb 14 09:40:38 does anyone play with the hidden android nfc_extras lib Feb 14 09:40:39 ? Feb 14 09:41:35 vlad__: are you having defined very large images (e.g. as background) in your xml? Feb 14 09:42:32 Hi Feb 14 09:43:54 I would not say they are large, I have no image that would be THAT big? I also test this on HTC Desire, which is 2.2, does VM collect Bitmaps, which are declared in XML? Feb 14 09:44:11 I have Problem with the location manager and distanceTo. Wrong method String. How to fix it? http://pastebin.com/w7e1Ha9u Feb 14 09:44:48 Besides, I have a tabhost with fragments, and this message happens when I navigate to my Fragment with List for the second time Feb 14 09:45:09 oh that sounds like a memory leak imo :) Feb 14 09:45:44 like you are allocating resources every time you switch there, but not letting them release Feb 14 09:46:22 yeah, but why doesn't MAT see anything? Feb 14 09:46:31 it's like 1.2 MB free Feb 14 09:46:35 before I navigate Feb 14 09:47:20 it also crashes right before I try to inflate XML, which contains ImageView with image that's like 2KB in size Feb 14 09:47:30 02-14 11:34:42.075: E/GraphicsJNI(14139): VM won't let us allocate 147456 bytes that sounds btw pretty much like it is some graphic you are trying to load Feb 14 09:48:13 does anyone play with the hidden android nfc_extras lib ? Feb 14 09:48:18 should I keep something like a List with references to my Images? Feb 14 09:48:20 have you watched the google IO talk on memory analysing of apps? Feb 14 09:48:43 you mean this one Feb 14 09:48:43 http://www.youtube.com/watch?v=_CruQY55HOk Feb 14 09:48:44 ? Feb 14 09:49:15 Having a list of references does not seem like an agile design ))) Feb 14 09:49:21 yeah i guess it was that one Feb 14 09:49:27 I started watching Feb 14 09:49:31 maybe it will help Feb 14 09:49:37 he shows also some example on how to detect some memory leak Feb 14 09:49:55 I just thought maybe someone ran into the same problem, because googling does not help ( Feb 14 09:50:06 okay, I better watch it, I guess Feb 14 09:52:21 thanks Feb 14 10:00:02 no one? or s Feb 14 10:00:18 or is the questing stupid Feb 14 10:02:30 Hi I need the width and height for text with stroke on it. Nothing seems to take stroke into account. Any ideas? Feb 14 10:03:30 dot8: what's the error you're getting? Feb 14 10:05:10 ryanm: eclipse tell me: The method distanceTo(double) is undefined for the type String Feb 14 10:05:59 mReportA is a String, Strings don't have a distanceTo method Feb 14 10:06:47 anyone good experiences with an Android graphing library? (or a C++ one?) Feb 14 10:06:59 I'm still fiddling with the sensors Feb 14 10:07:18 and came to the conclusion that getting good graphs shows far more then lines and lines of data Feb 14 10:07:31 ryanm: Double.parseDouble(mReportA) should help? Feb 14 10:08:13 double doesn't have a distanceTo method either - it's not even an object Feb 14 10:08:36 Hey...is there a way to change the color of the default tabs in android? Feb 14 10:09:29 I had an activity I registered broadcast receivers inside. Now that i've converted that activity to a fragment instead, I cant figure out how to reference my fragment from inside my MainActivity so that i can call adapter.notifyDatasetChanged() for my listview adapter. can someone please help Feb 14 10:10:29 sirstean: the actionbar tabs? Feb 14 10:14:52 yep....i just want it in an other color Feb 14 10:15:20 this might help you with that and other styling: http://jgilfelt.github.com/android-actionbarstylegenerator/ Feb 14 10:15:37 lets you set the colors for a bunch of stuff in your app Feb 14 10:18:18 thank u Feb 14 10:18:29 no problem, hope it helps Feb 14 10:30:05 it worx <3 Feb 14 10:42:28 Im Feb 14 10:42:40 I'm having an issue with the context menu only on API 15 & 16 Feb 14 10:42:59 It works perfectly fine on every other API from API 8 to API 17 Feb 14 10:52:47 i am looking for a good fast free pdf viewer library..any suggestions? Feb 14 11:13:47 Morning Guys. Is there way to overwrite the design of Dialogboxes? Background: Samsung made their own UI, but i want to get the nomal UI back. is there any way? Feb 14 11:14:28 Styler2go: on the whole system? Feb 14 11:14:34 no in my app Feb 14 11:14:50 you have full control over your own app Feb 14 11:15:02 i mean the dialogboxes Feb 14 11:15:11 in the android manifest you can choose the theme your app uses Feb 14 11:15:17 i want the normal honeycomb UI, samsung made somethign different Feb 14 11:16:06 you can also make your own theme if samsung has removed the theme from the phone(don't know why they would do that though) Feb 14 11:16:29 you could probably download the honeycomb ui style from somewhere Feb 14 11:17:55 i did Feb 14 11:18:39 i used this page: http://android-holo-colors.com/ Feb 14 11:19:37 hello ...i need help with my buttons. Everytime the keyboards is displayed the buttons move with the keyboard up. How can i fix it Feb 14 11:25:46 is a timer running in background thread? :o Feb 14 11:34:00 hey, I wonder if there's any more documentation on the file format of traceview generated log files: http://developer.android.com/tools/debugging/debugging-tracing.html#format Feb 14 11:34:09 I would like to parse that file myself Feb 14 11:34:13 hey guys, trying to run an emulator w/ an x86 image but all i get when the emulator window opens is a black screen... Using Linux Mint x64 Feb 14 11:34:26 not having to launch an application to see its contents Feb 14 11:42:07 Is there any reason why my getTag returns null in a ListAdapter? I've set the tag to the viewholder... Feb 14 11:42:28 s/viewholder/convertview Feb 14 11:43:49 Silox|: viewholder is separate class is it not? Feb 14 11:44:59 also, getTag isn't a method of a ListAdapter Feb 14 11:45:35 Well, I'm following this toturial http://www.mysamplecode.com/2012/07/android-listview-checkbox-example.html Feb 14 11:45:53 But I'm extending BaseAdapter and implementing StickyListHeaderAdapter Feb 14 11:46:28 Silox|: you're talking about setting tags associated with Views Feb 14 11:47:05 Indeed Feb 14 11:47:30 Silox|: can you post your code? Feb 14 11:49:19 I'm kinda confused with the whole actionbar menu system thing Feb 14 11:49:22 http://pastie.org/private/7yvfuub3lshlcrsl9ahdya Feb 14 11:49:38 the association in line 13 is null Feb 14 11:50:34 how would I make this happen in an actionbar -> https://dl.dropbox.com/u/63726/Screen%20Shot%202013-02-14%20at%203.49.50%20AM.png ? Feb 14 11:51:12 I can get anything spaced out properly Feb 14 11:51:21 mheld: http://developer.android.com/guide/topics/ui/actionbar.html Feb 14 11:51:26 You can or you can't? Feb 14 11:51:39 can't Feb 14 11:51:41 typo, sorry Feb 14 11:51:59 Did you define the items in the res/menu/ ? Feb 14 11:52:28 in Android.mk when using the NDK, how do I add compiler flags for C but not C++? Feb 14 11:52:29 Silox|: you set the tag on to the convertview not the views inside of it... Feb 14 11:52:38 Silox|: yeah, I get something that ends up looking like this -> https://dl.dropbox.com/u/63726/Screen%20Shot%202013-02-14%20at%203.51.26%20AM.png Feb 14 11:52:54 so you just want dividers? Feb 14 11:53:12 Silox|: where it should be either https://dl.dropbox.com/u/63726/Screen%20Shot%202013-02-14%20at%203.49.32%20AM.png or https://dl.dropbox.com/u/63726/Screen%20Shot%202013-02-14%20at%203.49.50%20AM.png depending on whether or not you're in search mode Feb 14 11:53:17 mikedg: that's half the battle Feb 14 11:53:31 mikedg: dividers + spacing + the search should knock out the icons Feb 14 11:54:06 spacing is probably your icons Feb 14 11:54:12 alexfu: So how should I set it? o_o Feb 14 11:54:42 mikedg: there are two distinct groups of icons in one of those screengrabs (https://dl.dropbox.com/u/63726/Screen%20Shot%202013-02-14%20at%203.49.50%20AM.png) Feb 14 11:54:52 alexfu: to the checkbox? Feb 14 11:55:15 Silox|: what's PreferenceAssociation Feb 14 11:55:24 it's a class Feb 14 11:55:31 containing the info for the activities Feb 14 11:55:35 well, associations Feb 14 11:55:38 with a name, a boolean Feb 14 11:55:55 Silox|: do you set a tag on the checkbox anywhere? Feb 14 11:56:32 alexfu: Well, you're saying i'm setting the tag to the wrong place, no? Feb 14 11:57:52 Silox|: not for viewholder Feb 14 11:58:38 I only set a tag to the viewholder o_o Feb 14 11:58:42 Like in the tutorial I linked... Feb 14 11:58:51 Silox|: I mean, would I just be better off setting a custom view for the actionbar? Feb 14 11:58:59 I don't think so, mheld Feb 14 11:59:07 did you put the other items to show="ifRoom" ? Feb 14 12:00:22 if I do ifRoom, it only shows the search button + one icon + the there-is-more button Feb 14 12:00:25 Silox|: In the tutorial, they set tags on the convertview AND the child views.. in your code, you're not.. Feb 14 12:01:06 they do? o_o Feb 14 12:01:48 Silox|: Yes... if you dont set a tag to the child view, you of course will get null.. Feb 14 12:01:56 ah wait o_o Feb 14 12:01:57 I see. Feb 14 12:03:24 Ah thanks alexfu, it's fixed :) Feb 14 12:03:33 Silox|: np! Feb 14 12:06:35 bring the action Feb 14 12:08:26 Silox|: is there any way to set an item to be SHOW_ALWAYS except for when in search mode? Feb 14 12:09:17 I'm sure the whole entire actionbar thing is wonderful, but it doesn't seem like it's really meant to be touched Feb 14 12:13:42 http://stackoverflow.com/questions/14873544/unable-to-access-file-larger-than-10mb-in-android-application Feb 14 12:13:43 lolol Feb 14 12:14:39 ... 8MB of CSS... 8MB of JS... 15MB of HTML o_O Feb 14 12:14:41 id have a hard time believing that desktop browsers dont choke on that Feb 14 12:15:10 mikedg: Probably not, but they silently sacrifice a big chunk of 32bit address space to keep the DOM tree :P Feb 14 12:15:38 My sympathy to anyone who is a busy tabber on Firefox 32bit opening that Feb 14 12:21:12 hello ...i need help with my buttons. Everytime the keyboards is displayed the buttons move with the keyboard up. How can i fix it Feb 14 12:21:44 what do you want to happen and show a screenshot Feb 14 12:21:52 your physical buttons on the phone? Feb 14 12:26:42 if the physical buttons on the phone are moving upward, you should probably consult a physician. Feb 14 12:29:00 p_l, it doesn't say that there's 8M of CSS and 8M of JS, it could mean that CSS + JS are 8MB! ;) Feb 14 12:29:37 Zharf: Still probably makes the GC want to get physical with OP Feb 14 12:29:57 :) Feb 14 12:30:18 SirStean: it sounds like you want to look at http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft Feb 14 12:30:26 specifically the adjustPan option Feb 14 12:30:47 Zharf: especially since you need to consider the size of created objects after parsing Feb 14 12:31:24 Silox|: ha, I'm getting closer! Feb 14 12:31:35 Silox|: https://dl.dropbox.com/u/63726/device-2013-02-14-043029.png + https://dl.dropbox.com/u/63726/device-2013-02-14-043037.png Feb 14 12:31:40 no my app buttons :D....thx for the link...i take a look Feb 14 12:32:24 another slightly-relevant, extremely old, and somewhat broken blog post is here: http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html Feb 14 12:37:11 I have a drawable that I use to style my buttons. Now thing is that I have 4 different colors variants of that, but apart from the color the drawables is the same. If there some clever way that I can do this without having 4 almost identical drawables? Feb 14 12:39:37 rohdef: You could use a colorfilter, like so: http://stackoverflow.com/a/5327404/208273 Feb 14 12:39:40 the link didnt help....my buttons still go up with the keyboard :( Feb 14 12:40:04 That method kind of assumes that you have a grayscale drawable. Feb 14 12:40:19 it'll work if you don't, but your results may be ...unexpected. Feb 14 12:40:50 ryanm, but a greyscale drwable should be easy, can't I just for instance create a grey scale gradient if I want a gradient? Feb 14 12:40:59 guys, is there some ListView event for recycling entities? Feb 14 12:41:10 like an opposite to getView? Feb 14 12:41:10 rohdef: yep Feb 14 12:41:19 vlad__: listview does this all by itself Feb 14 12:41:27 in getView you have one parameter that might be a recycled view Feb 14 12:41:32 ryanm, then I think your solution will be perfect for me. Thanks a lot :) Feb 14 12:41:38 oh, okay Feb 14 12:41:41 tnx Feb 14 12:41:44 if the listview has somethign to recycle it will pass it in, if not you have to create it Feb 14 12:42:33 ryanm, and it looks really nice and easy to do too, I like that :) Feb 14 12:42:48 vlad__ : youtube -> 'world of listview' Feb 14 12:42:50 make sure to recycle Feb 14 12:43:00 otherwise you'll perform like ubersocial Feb 14 12:47:55 really? nobody knows how to make the search action hide all the other menu items in the action bar? Feb 14 12:49:20 android.view.WindowLeaked: Activity de.pixelstein.DokuMedia.ActivityStartPage has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40b4e5c0 that was originally added here Feb 14 12:49:24 what does this mean? Feb 14 12:50:16 that you hold somehow a reference to an activity and trying to do something with it, while its not longer available Feb 14 12:50:53 btw your work seems to bear fruits :) you've got a lot of good comments on your app the last days Feb 14 12:57:14 yes :) i only get good ratings :) Feb 14 12:57:25 but today morning i used your app a bit Feb 14 12:57:36 (what that has something to do with hip hop? :D i thought its about gaming) Feb 14 12:57:37 hey timroes by the way :) Feb 14 12:57:51 its about music :D Feb 14 12:57:59 yeah recognized that :D Feb 14 12:58:02 a battle contest Feb 14 12:58:36 ofc there can still be done a bit, and i have 4 suggestions if you want to hear them :) Feb 14 12:58:52 3 of them actually are pretty easy to correct :) Feb 14 12:59:20 i have one big problem Feb 14 12:59:32 i lost all my project data and currently ccant do any update Feb 14 12:59:40 ... :D Feb 14 12:59:51 nice :D Feb 14 12:59:52 XD Feb 14 12:59:55 always good to have backups Feb 14 13:00:04 i am waiting for the dropbox support Feb 14 13:00:31 ah so you deleted them and hope they still hgave it? Feb 14 13:00:32 all fiels are 0 bytes "bug" Feb 14 13:00:35 "big" :D Feb 14 13:00:37 which View property is manipulated by ? Feb 14 13:00:44 no, they are empty Feb 14 13:00:47 because setAlpha is there only for API 11+ Feb 14 13:00:51 from one to the other day Feb 14 13:00:52 "fields"? Feb 14 13:00:55 What was it in e.g. API level 7 Feb 14 13:00:58 files Feb 14 13:01:02 ah :) Feb 14 13:01:29 yeah... Feb 14 13:01:33 you could try yourself btw Feb 14 13:01:35 i could restore tem manually :D Feb 14 13:01:44 but over 5000 files? Feb 14 13:01:52 each one manually? Feb 14 13:02:28 yeah thats sucks for sure too :) Feb 14 13:02:30 i am in contact with the support and they are helping me to get those files back so, what are your suggestions? :) Feb 14 13:02:35 thought you can do the revision stuf falso on folders Feb 14 13:02:38 but as it seem only on files Feb 14 13:03:07 1) the very tiniest one. you use in a dialog often ... at the end, right? Feb 14 13:03:18 you typed in the file three dots (at least thats how it looks like?) Feb 14 13:03:25 Why does AlphaAnimation exist since Android 1 but View.setAlpha() since API 11? Feb 14 13:03:26 I mean Feb 14 13:03:30 which value was manipulated before? Feb 14 13:03:51 i want to add a field to a contact to start my application with that user's information, how can i do that? Feb 14 13:04:26 what do you mean timroes? Feb 14 13:04:27 because there is actually a character for the "three dots" (called ellipsis) that is meant to be used for that … Feb 14 13:04:30 ... Feb 14 13:04:33 Oh yes,why? Feb 14 13:04:36 vs … Feb 14 13:04:45 okay in my font that doesn't make big difference :D Feb 14 13:04:49 how do you know that i dont use this? Feb 14 13:05:06 the ellipsis have a bit different spacing and I would say you didn't Feb 14 13:05:09 but thats why I ask :D Feb 14 13:05:14 because i don't know Feb 14 13:05:22 i use simple dots Feb 14 13:05:29 and (that was the first half of that sugegstion) in german you put a space before it Feb 14 13:05:39 Sortieren nach … Feb 14 13:05:45 noch Sortieren nach… Feb 14 13:05:52 no, no space before Feb 14 13:05:57 lots of ppl do that wrong, but there belongs a space :) Feb 14 13:06:03 :o Feb 14 13:06:05 really? Feb 14 13:06:13 lemme check it again :) Feb 14 13:06:41 "Auslassungspunkte, die für weggelassene Wörter oder Satzteile stehen, werden wie diese von Leerzeichen umgeben, ... " Feb 14 13:06:59 ok you are right Feb 14 13:07:03 are you german? Feb 14 13:07:07 yeah :) Feb 14 13:07:09 I'm using ViewPageIndicator and I have ListView elements in each page... I'm inflating one XML, so all the LV's are listView1 (id)... how can I somehow mark it as inflated so that when I 'page' back to it, it doesn't inflate all over again? Driving me nuts. It's in "OnCreateView" where the View view = inflater.inflate(R.layout.name, container, false); Feb 14 13:07:10 oh ok^^ Feb 14 13:07:22 so whats your other ideas? Feb 14 13:07:27 and my wife studies german philology and told me that, because I beforehand neither ever made spaces there :D Feb 14 13:08:02 2) (now we are getting to the more serious stuff :D) your video screen is lacking the Up button (in actionbar) Feb 14 13:08:24 since it definately isn't the main screen you should place it there (going back to main screen or perhaps participant list) Feb 14 13:08:29 video is also not working un fullscreen Feb 14 13:08:33 (should be one tag in manifest file) Feb 14 13:08:34 SimonVT, do you have an idea on this? Feb 14 13:08:39 I'm really puzzled on that one Feb 14 13:08:46 Why does AlphaAnimation exist since Android 1 but View.setAlpha() since API 11? Feb 14 13:09:01 3) your lists (at least the favorit list) is centered verticaly if there aren't enough items to fill the screen Feb 14 13:09:05 How was it manipulated before API 11? Feb 14 13:09:09 that looks somewhat very weird. Feb 14 13:09:10 does anybody know a good way to display pdf files withing my app not open an native reader Feb 14 13:09:26 I guess you put a android:layout_height="wrap_content" to the list (but just guessing) Feb 14 13:09:28 i currently dont know what you mean timroes Feb 14 13:09:49 Styler2go: wait i make a you a screenshot :) Feb 14 13:10:31 is there a way to reduce the chances of my activity being killed when turning off the screen? it always happens, but if i put the activity in the background with the home button, it's fine even if i open 1-2 apps then go back to mine Feb 14 13:10:31 http://s14.directupload.net/images/130214/8yhq8sbf.png Feb 14 13:10:33 thank you :) Feb 14 13:10:45 oh yes. the list is centered in the layout Feb 14 13:10:47 the item is centered vertically instead of (like a list usually should work) at the top of the screen Feb 14 13:10:57 so if you have more entries it gets better and better Feb 14 13:11:04 yes :D Feb 14 13:11:07 yeah but you should place your list at the top :) Feb 14 13:11:12 the same in the news and every other list Feb 14 13:11:19 yeah Feb 14 13:11:23 i will correct that :) Feb 14 13:11:27 but that should be just some xml tags Feb 14 13:11:37 and now the 4th and last suggestion :) Feb 14 13:11:42 yes :) Feb 14 13:11:58 hey you also have a n4? Feb 14 13:12:06 nope galaxy nexus Feb 14 13:12:11 oh ok :) Feb 14 13:12:13 also someone complained in your comments that video isn't playing. I was wondering about that too, but as it seems you have to select a video before it will be loaded Feb 14 13:12:25 i think you could load one video by default in the video player (e.g. the newest one) Feb 14 13:12:25 yes Feb 14 13:12:39 because confused me also quite a lot and thought okay why isnt it working.. ah i should select one :D Feb 14 13:12:52 i thought about loading my "promo video" as first video in every screen where the video appears Feb 14 13:13:34 with one item in the screen its always a bit confusing that its actually a link you can click (so at leasty if there i sonly one video, i would load this and not your promo video) Feb 14 13:13:44 also the ppl have your app already (or what is the promo video for :D) Feb 14 13:13:57 but that could perhaps also be done a bit nicer, if you place a heading over the list Feb 14 13:14:05 (wait i make you another screenshot :)) Feb 14 13:17:15 oh and by the way, can i change to color of holo emelents? like the linke under the title of a dialogbox? Feb 14 13:17:19 Styler2go: http://s1.directupload.net/images/130214/wrwsns6u.png Feb 14 13:17:38 Hello guys! Question interpolators (android.view.animation). I am trying to use DecelerateInterpolator. But according docs it starts even faster and ends evens slower. I need something opposite AccelerateInterpolator but not DecelerateInterpolator because it starts even faster. Does anyone have solution? Feb 14 13:17:40 yeah this looks great :) Feb 14 13:17:43 sorry neither have photoshop on this pc nor Robot font installed, so image that have a nice font and actualy fitting metrics :D Feb 14 13:17:58 yes :) i will do that Feb 14 13:18:28 and for the holo color change, you can subclass the holo theme and change the colors Feb 14 13:18:37 but I would leave it the default one Feb 14 13:18:41 can you tell me how? :-/ Feb 14 13:18:50 actually the light blue doesn't look wrong in your app in my opinion Feb 14 13:19:03 and can i overwrite if the company (samsung) made another ui? Feb 14 13:19:17 its nto for my application, its for my work Feb 14 13:19:36 You can always just copy the theme files out of AOSP Feb 14 13:19:44 Styler2go: http://android-holo-colors.com/ Feb 14 13:19:56 you can just use this generator to generate all the resources you need :) Feb 14 13:20:13 yeah it generates buttons and all ( i used that) Feb 14 13:20:15 hmm but lemme check i think it doesn't change the dialog Feb 14 13:20:19 but the dualog is still blue Feb 14 13:20:46 oh thats why: http://stackoverflow.com/questions/10057859/android-theme-holo-dialog-changing-blue-lines-to-orange Feb 14 13:21:09 ? Feb 14 13:21:23 in the android sources the color is hard coded and not a color taken from a theme Feb 14 13:21:24 is this what i need? Feb 14 13:21:28 so you can't subclass the theme and use it Feb 14 13:21:35 so i cant change it? Feb 14 13:21:36 since the dialog doesn't take its color form a theme Feb 14 13:21:43 you would need to implement your own dialog ui Feb 14 13:21:51 no thanks Feb 14 13:21:54 :D Feb 14 13:21:55 now THIS is a helpful error message. Tells me file not found for adb. Reason: Some libs not installed -.- Feb 14 13:22:00 you coan copy the layout stuff and such from the android sources, but sounds like unnecessary lot of work :D Feb 14 13:22:02 i will have to talk with my boss Feb 14 13:22:21 wow a new adt version ist out Feb 14 13:22:27 i will send you a link to the layout via private emssage and you can tell me what you think^^ Feb 14 13:23:07 kay :) Feb 14 13:23:15 Hello guys! Question interpolators (android.view.animation). I am trying to use DecelerateInterpolator. But according docs it starts even faster and ends evens slower. I need something opposite AccelerateInterpolator but not DecelerateInterpolator because it starts even faster. Does anyone have solution? Feb 14 13:23:35 Styler2go: to get a heading like i drawn in there you can use that style: http://pastebin.com/4q572G3R Feb 14 13:23:50 so there is no way to overwrite this dialog? that it is holo at least? device-2013-02-14-121625.png Feb 14 13:24:03 http://styler2go.de/device-2013-02-14-121625.png Feb 14 13:24:04 :D Feb 14 13:24:04 did they fixed the slow multiple xml layout bug? Feb 14 13:24:15 Styler2go: and that in your layout to make a heading http://pastebin.com/Fk2XfmAQ Feb 14 13:24:32 Styler2go: wuaah what sthat for a style :D Feb 14 13:24:37 or what for a device Feb 14 13:24:50 samsung tablet >.> Feb 14 13:24:51 wow! Feb 14 13:24:51 so ugly Feb 14 13:24:57 like +1 for the adt update Feb 14 13:25:05 Styler2go: i guess you set devicedefault them> Feb 14 13:25:08 or didn't set any? Feb 14 13:25:16 theme* Feb 14 13:25:24 i have set my custom theme Feb 14 13:25:33 because from android (i think) 3+ every device must contain the holo design Feb 14 13:25:39 i will set the hol now wait Feb 14 13:25:43 so you can set that for your app Feb 14 13:26:12 btw if the pin is a number, tell the Edittext that :) Feb 14 13:26:36 its not only a number Feb 14 13:26:51 okay :) just thought so, since your number keyboard is up :D Feb 14 13:26:55 seems as i cant overwrite this style :'( Feb 14 13:27:41 i sent you the screen of the design i have to realize Feb 14 13:28:04 android:theme="@style/Theme.Sherlock.Light" in your application tag in manifest Feb 14 13:28:21 or @android:style/Theme.Holo.Light if you don't use actionbarsherlock Feb 14 13:32:02 android:theme="@android:style/Theme.Holo.Light" Feb 14 13:32:05 won't work :( Feb 14 13:32:12 i think i cant overwrite this... Feb 14 13:35:06 hmm thats strange, but i use nexus devices so that i don't have that problem :D Feb 14 13:35:31 yeah Feb 14 13:35:40 its like htc with their UI Feb 14 13:35:44 I want to change my default Launcher program using adb shell command, How can I do that ? Feb 14 13:36:06 you cant overwrite those and they a have a complete different feel for your app >.< Feb 14 13:36:51 thats why android forces the manifacturers to deploy holo style on their new devices, i wonder why that isn't working in that case Feb 14 13:36:59 perhaps someone with a ssamsung here has experience in that Feb 14 13:37:21 I want to keep my default programs after rebooting my android device , for example I but my program as default launcher program , but when I restart my device the android ask me again to choose the default program, how can I enforce my device to always use this program Feb 14 13:41:03 finally whatsapp got Holo Ui. looking nice! Feb 14 13:41:52 look here timroes: on the left picture is htc: http://www.androidmag.de/news/endlich-google-fordert-einheitliche-app-optik-auf-allen-android-4-0-geraten/ Feb 14 13:42:15 its since 4.0 and this device uses 3.0 Feb 14 13:57:29 SimonVT: hey.. you around? Feb 14 13:58:00 SimonVT: looks like int[] selectorIdices is not used in NumberPicker.java Feb 14 13:59:26 it's supposed to be selectorIndices I think Feb 14 14:00:15 line 1454 Feb 14 14:00:57 is it possible to format a float in a string resource via something similar to "%1$0.0f" because %1$f shows too many digits Feb 14 14:01:23 yes, basically like that Feb 14 14:01:28 androverso: do not try 0.0f, instead 1.0f Feb 14 14:01:36 otherwise you'll get exceptions on some devices Feb 14 14:01:36 java.lang.ExceptionInInitializerError what can i do against this error? Feb 14 14:02:03 fix it? Feb 14 14:02:08 look at the stacktrace to see why it's thrown? Feb 14 14:03:03 its thrown in this line: Feb 14 14:03:04 DownloadJSON arrs = new DownloadJSON(); Feb 14 14:03:08 thanks @lov & @Ge0rG Feb 14 14:04:10 no it's not. Feb 14 14:04:14 look at the "caused by" Feb 14 14:04:17 %1$1.1f is working for 1 decimal place. Feb 14 14:04:26 there is no caused by Feb 14 14:04:28 either that class isn't getting loaded because you're on the wrong API, or you're missing something else. Feb 14 14:04:32 pastebin your stacktrace, please. Feb 14 14:04:39 oh Feb 14 14:04:43 there is this: Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Feb 14 14:04:48 ... yeah. Feb 14 14:05:03 does android save the default programs after reboot or not ? Feb 14 14:05:15 http://pastebin.com/fL4nBSvZ Feb 14 14:05:35 forsubhi: "default" in what way? Intent handler selections are saved when you choose them Feb 14 14:06:00 there's some clever code to preload (but not run) applications that you use often Feb 14 14:06:19 and the applications that receive BootComplete broadcast do something Feb 14 14:06:39 I mean I make andthor launcher app and make it the default but after reboot android ask me again what is the default app Feb 14 14:06:44 anyone know off hand a good channel when it comes to rooting/installing custom roms on nexus devices? Feb 14 14:08:00 guyz: #android-root maybe? Feb 14 14:08:06 #android-root Feb 14 14:08:12 also #cyanogenmod Feb 14 14:08:22 Styler2go: yes, I believe you've found the root cause. Feb 14 14:08:52 thanks Feb 14 14:10:34 why are there so many twitter apps out there? Feb 14 14:10:55 because that shit is dead easy Feb 14 14:11:02 because of twitter's public API and because they all suck? Feb 14 14:11:22 ,oO( wow, there are so many twitter apps that suck, lets write our own one ) Feb 14 14:11:29 I see Feb 14 14:18:00 is there a new loader graphic with android 4.x? Feb 14 14:18:39 I have this in one of my designs but I can't figure out whether or not it's native -> https://dl.dropbox.com/u/63726/Screen%20Shot%202013-02-14%20at%206.18.13%20AM.png Feb 14 14:19:31 mheld: ProgressBar in indeterminated mode Feb 14 14:20:36 mheld: yeah ^^ Feb 14 14:20:37 that's a 4.x graphic though? Feb 14 14:20:52 I definitely remember the graphic being... dottier with 2.x Feb 14 14:20:54 yeah, 4.x has two circles, one going clockwise one counter-clockwise Feb 14 14:21:10 is there a support library or anything for that graphic? Feb 14 14:21:11 don't remeber what is was beforehand :D Feb 14 14:21:12 you can always make your own image or whatever Feb 14 14:21:13 so long ago Feb 14 14:21:21 mheld: no Feb 14 14:21:27 in particular, you don't want to break with the theme on the device Feb 14 14:21:28 thought that'd be a silly question :-P Feb 14 14:21:32 mheld: copy the resource from android sources Feb 14 14:21:42 if you're building something that'll work for 2.3, let it use the 2.3 image for spinning. Feb 14 14:21:47 lov: it fits the aesthetic of my application much better Feb 14 14:21:53 i would say it depends... Feb 14 14:21:53 well, that's a decision you get to make Feb 14 14:22:04 but i hope you have an art team. Feb 14 14:22:08 lov: right now I have a spinney GIF Feb 14 14:22:11 you can either say: stick with your platform, or you say: I use ActionBarSherlock and Holo Everywhere and try to make it a modern android app Feb 14 14:22:11 lov: heh, I do Feb 14 14:22:17 What's up with "error opening trace file: No such file or directory (2)"? Google didn't give any good results Feb 14 14:22:32 lov: boxfish.com ;-) Feb 14 14:22:32 Happens every time I run my app on my device Feb 14 14:23:23 timroes: that... is a splended idea Feb 14 14:23:59 mheld: I don't really understand what your product is for but good luck :D Feb 14 14:24:16 (I mean I understand what it does, I just don't get the 'who is going to use this' part) Feb 14 14:24:21 lov: the mobile app's a mix between a tv guide, an analytics thing, a remote control, and a personal assistant Feb 14 14:24:30 i think most pppl (even 2.3) users think the holo design is more beautiful. At least most of the 2.3 users I know don't but a 4+ device because they prefere the old design, but because they don't have enough money or doesn't prefere that large screens Feb 14 14:24:33 lov: oh, to different people we're different things Feb 14 14:24:44 lov: to our partners, we're like nielsen on crack Feb 14 14:24:54 lov: to our users, we're a content discovery application Feb 14 14:26:58 fair enough Feb 14 14:30:19 Anybody know if it is possible to invoke any kind of sort option when loading an xml into a listview without having a separate xml file presorted? Basically following this tutorial - http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/ Feb 14 14:31:59 funny how a simple string resource causes > 500 lint/java errors Feb 14 14:32:07 ONE string resource * Feb 14 14:33:25 weiss jemand wie ich dieses flayout menu breche? also momentan steht halt alles untereinander und ich hätte es gerne in zwei zeilen Feb 14 14:33:34 lol wrong channel Feb 14 14:49:04 http://stackoverflow.com/questions/14874407/i-lose-my-default-programs-after-reboot Feb 14 14:50:06 forsubhi: android normally asks you when you select a program if you want to run one time with it or always.. Feb 14 14:50:15 if the user select always, it will always run with that app Feb 14 14:51:23 http://cdn.androidpolice.com/wp-content/uploads/2012/11/nexusae0_wm_2012-07-17-14.41.09.png Feb 14 14:51:30 I selected always but when I reboot android ask me again ? ! Feb 14 14:52:01 what is the problem ? Feb 14 14:52:07 okay thats strange (and a question to #android not here, since its not depending on android development, because what app runs by default is usage and not dev :D) Feb 14 14:52:18 don't know, for my devices that worked :) Feb 14 14:53:33 but I think the problem from my app because other apps don't lose their defaults Feb 14 14:56:08 forsubhi: it that was broken it would be a much bigger problem... Feb 14 14:56:21 if that* Feb 14 14:56:39 your intent filter looks right for me Feb 14 15:03:14 I don't know really where is the problem ? Feb 14 15:05:30 forsubhi: when the user sees the dialog to choose the app there's a checkbox to always use that app. Feb 14 15:10:58 So I want to build a library of a bunch of custom UI objects I use frequently. Creating the library is no problem, but I can't seem to get the R package to work. Feb 14 15:11:24 Do I really need to implement all of the UI in code in my library?!? Feb 14 15:12:27 jecxjo: is it a library project? Feb 14 15:12:34 novie: yes Feb 14 15:12:35 or are you just trying to package as a jar? Feb 14 15:12:49 novie: android create lib-project ... Feb 14 15:13:37 was hoping I could make a custom activity and implement all the layout in res/layout/foo.xml but apparently R is not accessable in a library project? Feb 14 15:14:23 jecxjo: the library project has an R class Feb 14 15:14:54 novie: ooooohhh i know what i did. I created a ui directory and put it there Feb 14 15:15:36 ok so now i have a completely different issue hah. Feb 14 15:16:34 created com.jecxjo.lib and i want to break up all my components into their own groups like com.jecxjo.lib.widgets, etc. but im obviously missing something when trying to get the class added to my manifest Feb 14 15:27:17 oh god, one more question: if i open fragment with list (occupies the entire screen) and open over it fragment with surface. when i click on surfaceview - onItemClickListener receives callback. How to make surface view not clickable? Feb 14 15:28:04 are there yet any known ways of passing an image attachment from the resources directory? Feb 14 15:29:32 spobat: what does that mean? Feb 14 15:32:04 ? Feb 14 15:32:08 e.g. as an email attachment Feb 14 15:40:59 is there some trick to getting R to be accessable in a class with a deeper path than the package you created for your project? Tried in both a library and an application and I can't figure the error out Feb 14 15:41:14 How can is tart a new backgroudn thread? new Thread(new Runnable(){}) is not working... Feb 14 15:41:29 Styler2go: did you .start() it as well? Feb 14 15:41:36 .run() i used... Feb 14 15:42:17 no difference... Feb 14 15:43:00 http://pastebin.com/YFdF08Zj Feb 14 15:45:15 that error seems to be relating to a handler rather than thread startup? what code are you using? Feb 14 15:47:09 anyone here that have used this the "traceview": http://developer.android.com/tools/debugging/debugging-tracing.html Feb 14 15:47:42 I'm trying to add a preference to my settings, and getPreferenceScreen is returning null. If I first call addPrefrencesFromResource it works, so I assume that's doing something to create the screen, but I don't want to add anything from resources, so what do I need to do to create the screen without adding anything to it Feb 14 15:48:13 the problem is that this line: InetAddress.getByName(Configuration.getDomain()).isReachable(5000) is on main thread Feb 14 15:48:42 i now recreated this: http://stackoverflow.com/questions/1921514/how-to-run-a-runnable-thread-in-android first code from first answer Feb 14 15:50:59 ok i will try asynctask Feb 14 15:51:51 How could I attach an image to my email-intent WITHOUT requiring any additional permissions? Feb 14 15:52:00 // without the write_external_storage file Feb 14 15:52:07 I want to attach an image resource Feb 14 15:52:15 or a image I download from the web. Feb 14 15:52:29 it's the company-icon (which will reside in the /res folder) Feb 14 15:58:56 spobat: use a content provider and give a uri? Feb 14 15:59:39 anyone? I should note that getPrefrenceManager is also returning null, and that I'm doing this after being attached because it's called inside onAttach Feb 14 16:00:09 lov, can you show me that in code? Feb 14 16:00:22 I've no idea how one would do that with image resources Feb 14 16:01:34 spobat: do you know what a ContentProvider is? Read up on them if you don't. Feb 14 16:02:21 take a look at http://stackoverflow.com/questions/6534698/how-to-store-files-in-content-providers too Feb 14 16:03:33 right, but how do you combine this with the action_send intent? Feb 14 16:03:59 I want to make startup service and I write this code https://drive.google.com/?tab=wo&authuser=0#folders/0B01ew9ECCvc8WklyVnJpdk82Tnc Feb 14 16:04:05 but it is not working Feb 14 16:04:28 spobat: .... you pass the uri as an extra as per the docs. Feb 14 16:07:09 Feb 14 16:08:46 or https://docs.google.com/file/d/0B01ew9ECCvc8dmpiNnRiOXUxNUE/edit Feb 14 16:10:06 how can I debug a service Feb 14 16:11:08 forsubhi - use logcat + log.d ? Feb 14 16:11:51 but the I don't know why the service doesn't start my activity after boot Feb 14 16:12:05 and how can I see the logfile of it Feb 14 16:12:25 because I will reboot Feb 14 16:13:30 in all fairness, most devices are so obscenely spammy now that you'll never get the log in time. Feb 14 16:14:00 not sure, maybe an emulator if you can reproduce the problem Feb 14 16:15:17 forsubhi: use adb logcat Feb 14 16:15:54 you mean specify log file in it Feb 14 16:15:54 forsubhi: quick sanity check first though, after you installed your app, have you launched any of its activities before you rebooted? Feb 14 16:16:15 no Feb 14 16:16:35 forsubhi: version of android on your device? Feb 14 16:16:38 it is considered to run after boot Feb 14 16:16:49 does it have the run on boot permission Feb 14 16:16:51 4.0 Feb 14 16:17:09 Feb 14 16:17:22 forsubhi: don't think any manifest registered receivers are active until you've launched it at least once after install Feb 14 16:17:24 these are my permission Feb 14 16:17:55 and you defined a receiver for BOOT_COMPLETED ? Feb 14 16:17:59 how can I lunch it Feb 14 16:18:26 anyway this: http://stackoverflow.com/a/5439320/867099 Feb 14 16:19:17 forshubi - in case your app is getting the message, but is crashing during startup, change it to use a different message you can send at will Feb 14 16:19:37 it's possible it's registered right, but built wrong. Feb 14 16:21:16 no thing heppen when I reboot Feb 14 16:22:30 Hi, i have a big doubpt, but is there anyway to force an activity to not be suspend when it goes to background ? (switching to other activity) Feb 14 16:23:35 forsubhi: have you launched any activity in your app before you rebooted? Feb 14 16:24:45 ohmy: move stuff to a service Feb 14 16:25:02 no Feb 14 16:25:13 should I do that ? Feb 14 16:25:21 Anoia: My activity has UI Feb 14 16:25:39 ohmy: then it shoudl talk to the service Feb 14 16:25:45 activities are transitory Feb 14 16:25:48 forsubhi: yes, installed applications are in the stopped state when installed. all broadcasts made by the system exclude stopped apps. Feb 14 16:25:53 ohmy is it more important than letting the user decide what he wants? Feb 14 16:26:22 oh I will try that Feb 14 16:26:25 xorgate: it's an activity generated by a third party tool (unity3d), even me can't decide what class it implements Feb 14 16:26:36 ohmy: effectively no. Feb 14 16:26:45 then you're at their mercy Feb 14 16:26:46 forsubhi: you can read more about it here http://developer.android.com/about/versions/android-3.1.html#launchcontrols Feb 14 16:26:52 Anoia: that's right Feb 14 16:26:58 and it's really for the best; you don't want to be running a game engine while the user isn't looking at your activity. Feb 14 16:27:21 you pretty much need to plan your app around the idea that the user can navigate away from it at any time (or be forcibly navigated away, such as by phone call) Feb 14 16:27:38 you also have to assume that they may not come back before your process is ended Feb 14 16:27:57 attempting to "fix" this behavior is generally an anti-pattern Feb 14 16:28:13 if you found a stack overflow post from about a year and a half ago with some of the worst advice ever Feb 14 16:28:22 would you ask an interviewer to explain it Feb 14 16:28:33 or should you just ask questions around that topic Feb 14 16:28:39 wut Feb 14 16:28:53 do you mean ask the interviewee? Feb 14 16:28:58 hey lov, yesterday you told me i didn't need the /layout and /menu dir Feb 14 16:28:59 interviewee i ean Feb 14 16:29:06 wunz: for what you're doing, no Feb 14 16:29:10 so i deleted it, how come when i install/launch app, it still launches a gui? Feb 14 16:29:19 because you're doing it wrong :> Feb 14 16:29:27 you just want to immediately start a new activity and finish, right? Feb 14 16:29:33 yes Feb 14 16:29:44 your onCreate should be "public void onCreate(Bundle args) { Intent i = new Intent(...); startActivity(i); finish(); } Feb 14 16:29:47 and that's it. Feb 14 16:29:48 mikedg - Like how ContentProviders are always threadsafe? (heard a lot of that years ago) Feb 14 16:29:58 (create the intent as appropriate) Feb 14 16:30:04 like "I solved this problem by making a view static global" Feb 14 16:30:09 D:! Feb 14 16:30:10 yea i have that, the gui shows then disappears, but in the task manager, it's there Feb 14 16:30:17 oh Feb 14 16:30:27 that's controlled by some flag in the activity tag in your manifest Feb 14 16:30:39 you may also want to make your activity theme transparent or something so it doesn't appear to show up Feb 14 16:31:07 wunz: sounds like you are making a virus Feb 14 16:31:12 are you making a virus Feb 14 16:31:18 wunz: http://developer.android.com/guide/topics/manifest/activity-element.html#nohist Feb 14 16:31:27 also, http://developer.android.com/guide/topics/manifest/activity-element.html#theme Feb 14 16:31:33 a virus for my company's app, hehe, i think i want to keep my job mikedg ;o Feb 14 16:31:58 do you also need to learn how to download files to an sd card and load them with the classloader? Feb 14 16:32:19 lov: there's no way to make it not show up in the task switcher/manager (3rd btn on right) Feb 14 16:32:21 mikedg: I'd ask the candidate questions around the topic, to answer your question Feb 14 16:32:23 if you fire me then I won't be there to run the app each day that puts the virus to sleep Feb 14 16:32:33 wunz: see http://developer.android.com/guide/topics/manifest/activity-element.html#nohist Feb 14 16:32:45 DubLo7: exactly :> Feb 14 16:32:46 lol DubLo7 - good idea Feb 14 16:33:20 oh sorry http://developer.android.com/guide/topics/manifest/activity-element.html#exclude as well Feb 14 16:33:34 thanks lov Feb 14 16:33:38 np Feb 14 16:34:04 wunz: it's valentine's day, you can do better than just "thanks lov" Feb 14 16:34:10 lol Feb 14 16:34:21 but DubLo7 and mikedg, to answer your question, no. we use mobile iron to deploy apps to end-users, and as a requirement, they want basically a shortcut on the homescreen that takes them to an internal support url Feb 14 16:34:39 mobile iron can not deploy shortcuts, therefore i must make an apl for mobile iron to deploy Feb 14 16:34:52 which is an app that opens up the browser to the intranet url. Feb 14 16:34:56 oh thats retarded Feb 14 16:34:56 what is the mean of Feb 14 16:35:14 just make a widget icon to launch a url ? Feb 14 16:35:36 wunz: ok i believe you Feb 14 16:35:42 is that easier DubLo7 ? Feb 14 16:35:46 i have told the authorities to stand down from entering your backdoor Feb 14 16:36:04 users still have to tap the desktop and add the widget Feb 14 16:36:20 if they have already set your house on fire, then i apologize Feb 14 16:36:35 then just make it launch the browser Feb 14 16:36:55 oh, can't then Feb 14 16:37:20 it needs to be deployed so that its already an app they have without having to add it to homescreen theirself Feb 14 16:39:15 hey all, i'm working with the android camera and for some reason the preview frame appears to always be 1.5x larger when i send it as a jbytearray to native code Feb 14 16:39:36 this makes converting the NV21 jbytearray to an unsigned char* or something similar very confusing... Feb 14 16:39:51 does anyone know why this is, and how to do this conversion given the size difference? Feb 14 16:40:33 http://www.41post.com/3470/programming/android-retrieving-the-camera-preview-as-a-pixel-array <--i've read this Feb 14 16:41:00 i'm trying to do the decode portion in native code Feb 14 16:44:10 I have a textView that show an address, and this address is updated by moving a map in my view, so, every time that I move the map, I get it's center lat/lng, make a request on Google's Geocode api and update the textView on callback. Some of you guys know a better approach? Feb 14 16:47:34 Hello. Beginner looking to start learning to make apps.. where should I start? Feb 14 16:47:45 Bubo: http://d.android.com Feb 14 16:47:55 http://d.android.com/training Feb 14 16:48:09 Awesome, thanks timroes Feb 14 16:48:21 or if you are not common with java: http://docs.oracle.com/javase/tutorial/ Feb 14 16:48:33 One more question, is it possible to code the apps in python, or only in java? Feb 14 16:48:41 yeah, I'll need to learn Java first Feb 14 16:48:52 main programming language for android is java Feb 14 16:49:07 c/c++ is also supported from google directely. everything else only if someone wrote some wrapper for it Feb 14 16:49:44 So you can code your apps in c/c++ aswell without the need of java? Feb 14 16:49:55 no Feb 14 16:51:23 if anyone has experience with android camera and ndk interop please PM me Feb 14 16:51:27 Bubo: no you can code parts of your app in C if you have some heavy algorithms going on Feb 14 16:51:36 Somebody knows how to attach textview to some value, and everytime I update the value the text updates itself? Feb 14 16:51:36 but you stil need a google wrapper around it Feb 14 16:51:39 Oh. Feb 14 16:51:40 ehh google=java Feb 14 16:51:46 So Java it is. Feb 14 16:52:34 SimpleCursorAdapter does it? Feb 14 16:52:36 if you are going to make really professional android apps, you won't get around java. you can also give html5+js+css for cross paltform crap a look, but don't expect you will be able to make professional apps with that Feb 14 16:53:06 android = java, c, c++ Feb 14 17:00:44 Does anyone have any good ideas about how to implement the overscroll = refresh feature that twitter and facebook use? Feb 14 17:01:09 Where if you scroll the list down too far it has a little animation at the top? Feb 14 17:01:21 or i guess pull down, not scroll down Feb 14 17:01:30 Bump FragmentState question: http://stackoverflow.com/q/14860239/354247 Feb 14 17:01:46 DubLo7: https://github.com/johannilsson/android-pulltorefresh Feb 14 17:02:40 timroes - don't know how I missed that. Thanks! :-) Feb 14 17:04:28 @DubLo7 to search from commandline. get https://github.com/gleitz/howdoi. and type "howdoi -a android pull to refresh" Feb 14 17:07:17 shreesh - thanks. I kept calling it overscroll and didn't find much. Must learn to think like others. Feb 14 17:20:17 does anyone know why the previewframesize is always 1.5x larger in the previewcallback? Feb 14 17:51:27 Hey Guys! :) Feb 14 17:52:04 hello Feb 14 17:53:09 I have a problem with my project.. it gives ma an error when gernerating the gen files... this is my error i get: Errors occurred during the build. Errors running builder 'Android Pre Compiler' on project 'ActivityMain'. java.lang.NullPointerException Feb 14 17:53:11 any idea? Feb 14 17:53:33 that's about as generic as it gets Feb 14 17:53:43 ? Feb 14 17:53:54 Styler2go: wrong target version Feb 14 17:54:30 i did not chang eanything in the project Feb 14 17:55:16 http://pastebin.com/raw.php?i=ddHyMt8f thats what i get Feb 14 17:55:50 clean the project? Feb 14 17:55:56 same error Feb 14 17:56:08 no Feb 14 17:56:09 wait... Feb 14 17:56:20 ah yes, same error multiple times Feb 14 17:58:56 Styler2go: Have you updated your Android SDK recently maybe deleted one API version Feb 14 17:59:07 i am currently updating Feb 14 18:00:27 http://pastebin.com/raw.php?i=8a31qgTn Feb 14 18:00:53 Styler2go: Think I have seen this problem when the project.properties was set to a no existing android version Feb 14 18:01:15 lets see :) Feb 14 18:02:19 target=android-17 Feb 14 18:02:29 http://img694.imageshack.us/img694/8945/climsyclipboardf.png Feb 14 18:04:16 Styler2go: Well that looks ok And Eclipse is updated too Feb 14 18:05:00 http://img40.imageshack.us/img40/4164/climsyclipboardhe.png Feb 14 18:05:24 there is Android Developer two times o.O Feb 14 18:06:52 now i destroyed my eclipse :D Feb 14 18:09:30 Advice on best practice regarding sharing objects/ class instances between activities, have read about using the application "object" and serializing the object... I would prefer the Application approach, but it seems like a bad hack.. what is the best / right way to do it. Or have I misunderstood something and overcomplicated it. Feb 14 18:10:00 I'd go with Parcelable Feb 14 18:10:08 serializable is expensive Feb 14 18:10:15 or wait Feb 14 18:10:21 actually sharing an object, or passing around? Feb 14 18:12:27 I think you've misunderstood. Feb 14 18:12:31 You can use a singleton or something Feb 14 18:13:01 alternately, you can ensure your object implements Parcelable and just pass it as part of the intent Feb 14 18:15:26 damn the google server for downloading eclipse is slow... Feb 14 18:18:13 lov: So if I have two activities that I want to do work on the same instance of a object I do work on the object parse it to the next activity do some more work and parse it back to the original activity... And I can do that if my object implements Parcelable? Feb 14 18:18:18 Hmm, I try to download "Google Play APK Expansion Library, revision 3" through the Adroid SDK Manager but I only get "Download interrupted: URL not found.", any idea why? Feb 14 18:18:53 I run SDK Tools 21.1 Feb 14 18:20:05 Forcing it to use http instead of https doesn't seem to matter. Feb 14 18:25:10 I completely recreated my eclipse enviroment now. I still have the problem... Feb 14 18:33:09 ok after creating a new workspace it works Feb 14 18:37:55 does anyone know why the previewframesize is always 1.5x larger in the previewcallback? Feb 14 18:39:35 http://sphotos-d.ak.fbcdn.net/hphotos-ak-prn1/18406_502078523189627_1712662332_n.jpg Feb 14 18:39:36 :} Feb 14 18:39:43 valentine's card Feb 14 18:39:51 :D Feb 14 18:40:00 why is it 1.5x larger :( Feb 14 18:40:40 is it because NV21 is somehow compressed so that the extra info is only 1.5x larger? Feb 14 18:46:04 Hey Feb 14 18:46:05 How can I get technical information about Tethering in Smartphones ? Feb 14 18:46:31 I want to run command shell after boot , how can I do that ? Feb 14 18:50:48 hoooooooooooooly crap: the y componenet is the first width*height bytes Feb 14 18:50:55 that is, so confusing Feb 14 18:59:51 Hmm, I redownloaded the Android ADT Bundle to be sure I started from scratch and I still get "Download interrupted: URL not found." when Downloading Google Play APK Expansion Library. Something seem to be wrong. Running Ubuntu 12.04 btw. Feb 14 18:59:59 64 bit version Feb 14 19:10:08 I can't get logging to work. In my application I did this: Log.i("SomeTag", "HELLO LOG"); But the message is not visible in Android Debug Monitor when I start my application. Feb 14 19:10:25 so I have a cursorloader -- how can I delay the view generation until the row has been on the screen for more than 200ms? Feb 14 19:10:43 ambro718 prolly your filter is set to warn or something 'higher' than info (i) Feb 14 19:11:03 xorgate: it's set to verbose Feb 14 19:11:30 ambro718: try Log.d? Feb 14 19:11:36 but .i should also work Feb 14 19:12:37 still nothing Feb 14 19:12:50 are you sure that code path is executing? Feb 14 19:13:05 this is a dummy project, I didn't change anything other than adding this log command in onCreate Feb 14 19:14:23 this is the java code: http://ideone.com/m6qpdR Feb 14 19:18:59 oh wait, it works, but the application filter doesn't work Feb 14 19:19:21 If I remove "app:com.example.foobar" from the filter, I can see the messageg. Feb 14 19:19:33 the message has an empty Application field!? Feb 14 19:27:17 anyone know of a channel dedicated to android apps? Feb 14 19:27:35 development? Feb 14 19:28:07 Nah just apps. i'm looking for a good exchange task sync (i'm on cm10.1) Feb 14 19:28:24 #android ? Feb 14 19:28:39 i'll try there Feb 14 19:29:04 just a suggestion :) Feb 14 19:29:43 apps and development, that's why i tried here first Feb 14 19:30:12 :) Feb 14 19:34:26 No one else experiencing this problem with downloading Google Play APK Expansion Library? Is it something to file at b.android.com or how does it work? Feb 14 19:35:47 bear_, im seeing that too Feb 14 19:35:49 one sec Feb 14 19:36:09 Damnit canadiancow, fix it already Feb 14 19:36:13 Lazy googler Feb 14 19:38:35 SharedPreferences sharedPreferences = getPreferences(MODE_APPEND); Feb 14 19:38:43 why is eclipse arguing about MODE_APPEND Feb 14 19:39:23 Because you're doing it wrong Feb 14 19:39:31 http://stackoverflow.com/questions/14874407/i-lose-my-default-programs-after-reboot Feb 14 19:41:27 bear_, i'll filing a bug report Feb 14 19:41:32 file* Feb 14 19:43:41 bear_, https://code.google.com/p/android/issues/detail?id=48337 Feb 14 19:43:49 it should get looked at soon Feb 14 19:44:01 until then, https://dl-ssl.google.com/android/repository/market_apk_expansion-r02.zip is accessible Feb 14 19:44:06 canadiancow: great, thanks for the help! Feb 14 19:44:37 Someone knows about YouTube andorid api? Feb 14 19:44:47 i want to disable fullscreen Feb 14 19:45:25 ok found the function setShowFullscreenButton.. should work.. Feb 14 19:50:56 how could i export an arg from a url? like index.php?hello=world&foo=bar and i can chose if i can get these values of hello and foo? Feb 14 19:51:40 ..you mean how do you parse a URL? Feb 14 19:51:49 java has a class for this, URL, and android does too, Uri. Feb 14 19:52:19 ah. so i can simpls Uri.parse(url) and then get these args? Feb 14 19:53:18 yes, of course. they are called query parametrs. Feb 14 19:54:08 oh.. sorry... Feb 14 19:55:47 what should I do in Activity.onCreate if there is a problem initializing something? Throw some exception? Feb 14 19:56:22 can you give more information? maybe a stacktrace? Feb 14 19:57:18 Styler2go: you asking me? Feb 14 19:57:42 it's irrelevant, I just want to know how to report the error to make the OS kill my app because it failed to initialize Feb 14 19:58:35 Hopefully this isn't an app you intend to let other people use Feb 14 19:58:51 what?? Feb 14 19:59:11 I said, hopefully this isn't an app you intend to let other people use Feb 14 19:59:37 For example I want to open a file from onCreate() but due to some bug the file doesn't exist. What do I do in the "catch" block to report the error? Feb 14 20:00:04 it has nothing do to with the reliability of my code. Feb 14 20:00:22 ambro718: reliability and resilience has everything to do with that. Feb 14 20:00:44 If it's recoverable, recover, if it's not, rethrow exception Feb 14 20:00:45 ok could someone just provide the answer, how to I trigger a fatal error? Feb 14 20:00:59 I can't throw it, because the compiler won't let me. Feb 14 20:01:21 [javac] overridden method does not throw MySpecialException Feb 14 20:01:23 hmm... pack it in RuntimeException? Feb 14 20:01:37 that's all? Thanks. Feb 14 20:01:40 If your app crashes for whatever reason (intentional or not), users are going to blame you Feb 14 20:01:46 And they're gonna 1 star Feb 14 20:01:58 lol this is not what the question is about Feb 14 20:02:15 And leave comments like "wtf who made this shit app?" Feb 14 20:02:25 whatever.... Feb 14 20:02:33 hey but your dashboard will at least record the error :P Feb 14 20:03:09 http://stackoverflow.com/questions/4554230/rethrowing-checked-exceptions <--- might be of help Feb 14 20:03:35 the suggested code rubs me wrong, but a lot of java rubs me wrong Feb 14 20:04:05 OTOH, I'm the guy that the guest pentester teaching us how to break web apps called "weird" :> Feb 14 20:07:50 does anyone know if it's ok to pass null into TextView.setTypeface()? will it just use the default font if you do or will it implode? Feb 14 20:10:04 tnzr: why would you do that? Feb 14 20:12:00 how do I specify some code to execute when my application is about to be closed (as in removed from memory, not just if user switches to home screen)? Feb 14 20:13:29 how is this charakter called? ... Feb 14 20:13:33 the 3 dots? Feb 14 20:13:49 oh.. ellipsis... sorry again.. Feb 14 20:16:05 Styler2go: you should try the Google search box before the IRC text box. You'll get faster results. Feb 14 20:17:32 :D Feb 14 20:17:52 i tried ellipse first, but.. yeah, you know what it is.. Feb 14 20:17:55 Or even better, duckduckgo Feb 14 20:19:09 dont you like google? Feb 14 20:28:08 how can i pull in Context non-statically if I can't pass it in as a parameter? Feb 14 20:29:37 oh noes, google is aware that you've searched for "...", your darkest secrets have been exposed! Feb 14 20:30:11 acidjazz: you can create an application object Feb 14 20:30:16 and use this instead Feb 14 20:31:49 is there a way of getting rid of the app termiated unexpectly popup? Feb 14 20:32:09 1) lern to code Feb 14 20:32:18 2) custom exception handler Feb 14 20:32:49 how does one declare an attribute in two separate styleables with the same name? Feb 14 20:32:56 i keep getting the error that it's already defined Feb 14 20:32:58 unexpected bluetooth beaviour when reading out data from a car XP Feb 14 20:32:59 Just don't crash Feb 14 20:33:12 damn keyboard :D Feb 14 20:33:32 tnzr: Define it outside the declare-styleables, reference it with (notice no format) Feb 14 20:33:58 mesger: android 4.2.1? Feb 14 20:34:12 from api lvl 14 Feb 14 20:40:34 (21:19:10) Styler2go: dont you like google? Feb 14 20:40:34 I use both, but my default is duck duck and go because of the features it offers, such as zero click box, and direct searches on sites (!bang in their language), also I absolutely fucking HATE filtered results of the type Google always delivers now. I want consistent results that aren't biased to my IP or my cookies, unless I ask for that. Or even just the option to turn it off, which they don't provide. Feb 14 20:40:35 so, I'm getting a The specified child already has a parent. You must call removeView() on the child's parent first. exception when I try to add a linearlayout to another linearlayout -- but when I do one of these, ((ViewGroup)toAdd.getParent()).removeView(toAdd);, I get a nullpointerexception Feb 14 20:40:36 I've been using it for the majority of my searches for nearly a year and am more than happy. They also remove bogus bulk-content sites from listings, which is super helpful. Feb 14 20:40:49 does that make sense to anyone? Feb 14 20:40:49 Apologies for the OT :-p Feb 14 20:43:06 monsti any tips on how to google it? Feb 14 20:44:14 mesger: i suggest putting on a usb debugger and check the logcat Feb 14 20:44:23 if the app faults by a sigterm 11 - then it's the bad side ;) Feb 14 20:45:16 I'm using an alarmmanager to start up an activity at a relatively big interval but i just want to be sure if something goes wrong that stupid popup doesnt block my next startup Feb 14 20:45:48 what i did - i created a synchandler Feb 14 20:45:54 you can put a fixed intervall Feb 14 20:45:59 and when you app dies - android pulls it up Feb 14 20:46:08 thats what e.g. whatsapp does Feb 14 20:46:36 for now i just want to get rid of the popup :) Feb 14 20:47:03 well there is a bug Feb 14 20:47:06 and a but is a bug ;) Feb 14 20:47:17 if this is outside of your code - there is nothing you can fix Feb 14 20:47:24 errr, alarms don't create popups. Feb 14 20:47:33 you're starting an activity in response to it? Feb 14 20:47:35 yeah but int 5 / 0; does ;) Feb 14 20:47:42 so, like an alarm clock app. Feb 14 20:48:00 be really, REALLY careful about taking over the foreground UI Feb 14 20:48:04 Hi all. I cannot seem to understand why when my app switches to portrait mode it gets re-initialized i.e the onCreate method gets called again Feb 14 20:48:12 i.e. basically never do it unless it's for time-critical stuff like alarm clocks Feb 14 20:48:17 no but if my app fails for reason whatsoever i want it to be able to startup next time and that isnt so if the terminated unexpectedly opup apears Feb 14 20:48:30 "terminated unexpectedly" is easy to avoid Feb 14 20:48:32 mesger: i suggest adding a custom exception handler Feb 14 20:48:32 just fix yo shit Feb 14 20:48:42 it means your app is buggy and is crashing :) Feb 14 20:48:46 mesger: and save the error in a log file ;) Feb 14 20:48:48 diki: because the layout is recreated. The activity itself isn't *fully* recreated (the constructor isn't called, iirc :D) Feb 14 20:48:54 i dont want to fiddle at the code right now Feb 14 20:48:57 monsti: no, no, a thousand times no Feb 14 20:48:59 Oops i meant from portrait to landscape and vice versa Feb 14 20:49:22 ctate: well thats fine for debuggin Feb 14 20:49:26 i just want it to restart Feb 14 20:49:30 diki: it's easier to redo layout init and have it working right than expect everyone to handle rotation Feb 14 20:49:35 oh, go figure -- the parent isn't always non-null Feb 14 20:49:36 p_l: how may I fix that? Feb 14 20:49:48 mesger: err, no? you'd rather *not crash in the first place* Feb 14 20:50:06 ^^ Feb 14 20:50:08 you're going to have to change your code in some way to avoid crashing Feb 14 20:50:10 ctate: i know you are right :) Feb 14 20:50:17 ctate: in terms of helping to avoid the crash or detecting it, i suggest the handler Feb 14 20:50:19 because once you crash it's out of your control; you cannot just restart Feb 14 20:50:21 my 5cents Feb 14 20:50:34 diki: ... you don't fix that, you learn how to *use* that. Unless you really need to handle rotation yourself, then SDK docs contain info how to do it :) Feb 14 20:50:39 monsti: i disagree. actually fixing the crash is much better than wallpapering over it and pretending it's fine. Feb 14 20:50:44 ctate: but i dont want to fiddle with try catches and checks , i just want it to restart Feb 14 20:50:49 ctate: he's debugging a app for using bluetooth in cars Feb 14 20:50:58 ctate: yeah i agree Feb 14 20:51:04 fix bug != find bug Feb 14 20:51:12 this is sounding more and more like "i don't want to actually do the work required to write a good app; i just want it to work" Feb 14 20:51:18 i have no time to test it thuroughly Feb 14 20:51:19 p_l: can you point me in the right direction? Feb 14 20:51:26 this is an incoherent position to take. :( Feb 14 20:51:28 mesger: lol to hell ;) Feb 14 20:51:36 i starts runs a routine and closes Feb 14 20:51:45 it's a bluetooth app for cars -- there isn't enough time in the universe to test it thoroughly ;) Feb 14 20:52:04 Can you use an intent to launch Adobe Reader or the Docs Reader to open an specific PDF in an Android machine? Feb 14 20:52:13 so can you understand now ? Feb 14 20:52:21 or is this just irony? Feb 14 20:52:26 From a site, that is. Feb 14 20:52:32 diki: use onCreate to create only the view stuff, and avoid reinitializing stuff that you already loaded? Feb 14 20:52:38 if you just catch the crash and ignore it, then what you're doing is turning an app that currently fails in a visible and debuggable way into an app that fails in an invisible and nonobvious way Feb 14 20:52:51 p_l: The activity is fully recreated Feb 14 20:53:01 It's a completely new instance Feb 14 20:53:11 ctate: yeah but what if bluetooth acted up and i get the popup Feb 14 20:53:12 anyway, there's no way to avoid the crash dialog &c Feb 14 20:53:14 the OS won't let you Feb 14 20:53:20 not that it does but just in case Feb 14 20:53:28 SimonVT: you can put the shared state in separate object Feb 14 20:53:35 pfff Feb 14 20:53:35 you mean "what if bluetooth acted up and my app isn't well written so i don't recognize that and blithly go ahead and do stuff that isn't available and crash" Feb 14 20:53:58 Let me repharase that, actually: can you program a link on a site that will run on Android OS in a way that that link activates an intent for either Adobe Reader or the default reader, causing that reader to launch a specific PDF? Feb 14 20:54:00 SimonVT: but thanks for reminder, been a bit long since I looked into that Feb 14 20:54:01 a huge part of most apps is the error checking and graceful recovery, FWIW. Feb 14 20:54:08 i dont know memory issues on low budget phones etc ... Feb 14 20:54:28 unless you're working with very large graphics, you are almost certainly not hitting memory-demand issues. Feb 14 20:54:30 well Feb 14 20:54:40 p_l: Sure, you can also use onRetainNonConfigurationInstance to retain objects Feb 14 20:54:54 memory issues are easy to fix Feb 14 20:54:55 SrPx: if you link a PDF file on a site, it will trigger a download which you then can click to use whatever application handles PDFs... running arbitrary links from external websites is IMO not a good idea... Feb 14 20:55:00 ok so getting rid of that dialog is nogo Feb 14 20:55:03 Wouldn't really be a need for that method if the activity wasn't recreated :p Feb 14 20:55:11 Damn my english is bad today Feb 14 20:55:20 not even when i have control over the phone e.g having it here in my hands? Feb 14 20:55:20 mesger: create a logfile in case of an exception Feb 14 20:55:25 . Feb 14 20:55:26 open your eyes and fix the error Feb 14 20:55:37 5 minutes after the crash it's all done Feb 14 20:55:37 SimonVT: well, I'm too used to go straight for "shared state in separate singleton object" to remember :P Feb 14 20:55:57 :( Feb 14 20:56:02 the popup dissappears after 5min ? :) Feb 14 20:56:11 mesger: i give up Feb 14 20:56:14 hehe Feb 14 20:56:18 p_l: the problem is my client is claiming it's users are too stupid to figure out how to open the PDF after it was downloaded. So I have to make the site open it automatically somehow. Feb 14 20:56:27 ... Feb 14 20:56:41 p_l: I know, sorry. Is there any solution? Feb 14 20:56:44 even rooting the phone wont help? Feb 14 20:56:53 (n.b. the behaviour you asked for was default before 2.3, afaik) Feb 14 20:57:21 p_l: it automatically openned downloaded PDFs? Feb 14 20:57:28 i'll try catch the whole routine then Feb 14 20:57:29 p_l: I hope you save enough state in the bundle to restore the activity as it was ;d Feb 14 20:57:51 SrPx: no, but it wouldn't use download manager but download and launch an "Open" intent on it, iirc Feb 14 20:58:01 I see Feb 14 20:58:02 my four quarters with a parachute have dropped :) thanks monsti and ctate Feb 14 20:58:12 well, anyway, no solution? Nobody? Please Android gods help me on this delicate moment Feb 14 20:59:04 SimonVT: or not use Bundle for saving such state at all, instead treating said singleton as "cache" to storage, with Bundle keeping stuff like "position in listview" Feb 14 21:00:12 I'm not sure if you just agreed with me Feb 14 21:01:02 close enough :P Feb 14 21:01:17 alright then :p Feb 14 21:06:26 This is kind of what I would like to implement on my site: Click here to open foo.pdf on your Android! - a link that would cause adobe (or another) reader to launch a "foo.pdf" (which is already on the device internal memory). Feb 14 21:06:29 Is such a thing impossible? Feb 14 21:07:23 it would download the file, and then you can press the downloaded file to open it in your pdf reader Feb 14 21:07:27 is that not good enough? Feb 14 21:08:17 flodin: SrPx's client is the issue ;) Feb 14 21:08:50 perhaps, but I also want to clarify what the actual problem is Feb 14 21:09:15 flodin: my client claims his users are too stupid to figure out how to open the PDF after it was downloaded. Feb 14 21:09:21 His client is too stupid to open a pdf the standard android way, so he thinks his users are as well Feb 14 21:09:46 I have a linearlayout and I wish to replace it with another -- how would I do that? Feb 14 21:10:20 i'm 90% sure that's not possible Feb 14 21:10:29 SrPx: use a file:// URL? Feb 14 21:10:45 mheld: You'd replace the and attributes with those of another layout. These are located in your layouts/view xml file. Feb 14 21:10:52 SimonVT: no, it's actually a report from his users they aren't able to open the PDF. They claim they click on the PDF on our site and "nothing happens". Feb 14 21:10:52 While it is being downloaded perfectly, they just can't figure out how to open it after download. Feb 14 21:10:52 Which I will be honest is not trivial as it seems. Feb 14 21:11:06 iirc even if you wrote and installed a specific pdf reader to do it, and you wrote the intent filter for that, it's not possible to match on suffixes Feb 14 21:11:12 SrPx: you said the file is already on internal storage; why is it being downloaded? Feb 14 21:11:16 flodin: me too. Feb 14 21:11:30 grimmWolf: ... I guess I should've been more concise Feb 14 21:11:33 erm, specific Feb 14 21:11:53 grimmWolf: I have an inflated linearlayout, I wish to replace that instead of adding children to it Feb 14 21:11:57 evanc: oh no, forget the download. We have the option of putting everything on internal storage previously. Feb 14 21:12:01 SrPx: his users probably don't have a pdf reader installed either Feb 14 21:12:11 SrPx: perhaps he should convert the pdf to html instead Feb 14 21:12:19 flodin: they do, they received a tablet with a PDF reader already. Feb 14 21:12:33 flodin: that's a great idea!!!!!! Feb 14 21:12:36 SrPx: will a file:// URL not work? Isn't there a way to reference files in your own APK from within a webview? Feb 14 21:13:57 mheld: unsure on the specifics but could you not create a new Layout of your choice, and then loop though the various child elements within the linearlayout and add them to the new layout. I'll be honest I'm new to android dev, I saw your original question and thought 'Ooo I can help'. Perhaps I'll leave that for the bigger boys :D Feb 14 21:14:21 grimmWolf: yeah, I just decided to do that (plus removed them from their parents) Feb 14 21:14:28 heh, I orphaned a view Feb 14 21:14:59 hehe Feb 14 21:15:26 well, not really Feb 14 21:15:40 if you removed a view from its parents, you viewnapped it Feb 14 21:15:47 :O Monster Feb 14 21:15:50 unless you deleted its parents Feb 14 21:16:23 "In iOS 6, however, Apple has separated user and kernel address space..." Feb 14 21:16:49 Their bodies were later found in the garbage.....Collector *snigger* Feb 14 21:17:04 Hi I need the width and height for text with stroke on it. Nothing seems to take stroke into account. Any ideas? Feb 14 21:17:06 grimmWolf: found by the garbage collector would be better Feb 14 21:17:13 whoops, wrong channel Feb 14 21:17:13 Yeah I realised that when I typed it Feb 14 21:17:15 and signed Feb 14 21:17:17 sighed Feb 14 21:17:54 kroot: heh, wut ? Feb 14 21:17:55 evanc: not sure what you mean by file:// url. Could you explain? Feb 14 21:18:07 "In iOS 6, however, Apple has once again broken Exchange and other things -- prompting most major IT departments to ban iOS 6 devices" Feb 14 21:18:11 evanc: you mean simply changing http to file? Would it change the behavior? Feb 14 21:18:27 SrPx: well for starters, of course it would change the behavior Feb 14 21:18:37 evanc: as in http://www.example.com/my.pdf to file://www.example.com/my.pdf ? Feb 14 21:18:39 file:// refers to a file on the computer rendering the page (the phone) Feb 14 21:18:49 Oh, I didn't know that. Feb 14 21:18:56 but no, you'd do something like file:///mnt/sdcard/foo.pdf Feb 14 21:19:01 or wherever it lives Feb 14 21:19:21 evanc: wow. So I can open any file anywhere from my site and that's it? Feb 14 21:19:25 I suspect it will "download" the file anyway, but it's worth a shot Feb 14 21:19:37 flodin: it won't "download" a file:// URL Feb 14 21:19:40 SrPx: just try it Feb 14 21:19:44 sure. Feb 14 21:27:19 is there a way to reduce the chances of my activity being killed when turning off the screen? it always happens, but if i put the activity in the background with the home button, it's fine even if i open 1-2 apps then go back to mine Feb 14 21:27:22 evanc: typing on the browser file://root/Download/test.pdf won't work Feb 14 21:27:34 evanc: file://sdcard/Download/test.pdf neither Feb 14 21:28:22 question: are androids setup to swap? ie, if i say "large mem" in the manifest, and proceed to rape the memory with a HUGE data file representation, will it just push it out to "disk" or will it grind to a halt and die? or will it just crash with OOME ? Feb 14 21:33:11 SrPx: are you just guess-and-checking URLs? Feb 14 21:34:03 evanc: no, I'm not sure how android filesys works but the path it shows on the file browser when opening the pdf is /sdcard/Download/test.pdf, even though I have to actually click on "root" then "download" then "test.pdf" Feb 14 21:34:11 no Android devices swap to disk Feb 14 21:34:13 that i'm aware of Feb 14 21:34:21 (it's a great way to destroy flash disks) Feb 14 21:34:24 evanc: this is why I tried both Feb 14 21:34:43 fredcooke: some rooted users have swap disks, but generally no Feb 14 21:34:47 SrPx: try file:///mnt/sdcard/Download/test.pdf Feb 14 21:34:55 SrPx: note the extra / in the beginning Feb 14 21:35:05 file:///, not just file:// Feb 14 21:35:29 evanc: Oh, that worked. Feb 14 21:35:32 evanc: wow. Feb 14 21:36:51 nobody joked about file://// on the mac :D Feb 14 21:37:07 or file:///// in IE Feb 14 21:37:14 it's [domain] then a literal "://" followed by a path Feb 14 21:37:22 and you want an absolute path, so yours starts with / Feb 14 21:37:23 etc. Feb 14 21:37:46 "domain" isn't the technical term, i forget what it is. Feb 14 21:37:55 authority Feb 14 21:37:57 scheme Feb 14 21:38:07 hi all Feb 14 21:38:44 Can you tell me how easy get div tag from url ? Feb 14 21:38:44 and then after the ":" is the "hierarchical part" of the uri Feb 14 21:38:46 * ctate | If this part begins with a double forward slash ("//"), it is followed by an authority part and a path. Feb 14 21:38:53 anyway. Feb 14 21:41:08 flodin: you have no idea on how much this is helping me Feb 14 21:41:13 flodin: thank you very much Feb 14 21:41:46 Now I just have another problem, we actually (words from my client) can't download the PDFs previously. Is there a way to detect when the download was finished? Feb 14 21:41:48 flodin: did my last message come through before my net bailed? Feb 14 21:42:51 SrPx: evanc came up with the file scheme, not me :) Feb 14 21:43:07 SrPx, i think you can get a callback from the downloadmanager Feb 14 21:43:22 Nemanjaa, a "div tag" from a "url" ? Feb 14 21:43:33 i dont think urls generally have div tags Feb 14 21:43:34 yes Feb 14 21:44:00 fredcooke: don't think so Feb 14 21:44:02 get html source from url ... Feb 14 21:44:08 oh Feb 14 21:44:10 flodin: thanks, so what's the effect of mem abuse? I have large files that take even more memory to represent efficiently in java (naturally...) so if someone has one of these beasts on flash, and I do the dumb thing and just load it, what will happen? Feb 14 21:44:27 i try jsoup Feb 14 21:44:28 try a quick google search, it will be faster than me explaining it here Feb 14 21:44:49 but aplication is cresh Feb 14 21:45:16 I imagine the best bet will be to sacrifice cpu for memory, and keep a circular buffer and index in the file and load as they scroll through on demand with pauses/progress Feb 14 21:45:24 fredcooke: well if it's too big to fit in the allocated heap space, logically you will get an OutOfMemoryError exception. I haven't tried this though Feb 14 21:45:39 can i ignore everythign in bin/ in version control? Feb 14 21:46:04 as a general rule, never put anything that is generated at build time into version control Feb 14 21:46:21 fredcooke: if the entire OS runs out of space there's a whole range of steps taken to reduce memory consumption, such as killing off idle processes Feb 14 21:46:34 ok, thanks, good insight :-) Feb 14 21:46:41 Nemanjaa, http://imgur.com/jacoj Feb 14 21:49:46 canadiancow, and sometimes Feb 14 21:49:47 http://imgur.com/DuJYY Feb 14 21:50:30 tsk tsk sonOfRa Feb 14 21:50:42 lol Feb 14 22:04:20 acidjazz: bin/ and gen/ please Feb 14 22:06:59 http://android-developers.blogspot.com/2013/02/security-enhancements-in-jelly-bean.html Feb 14 22:07:20 "Content Provider default access has changed" :) yes, this broke my app :D Feb 14 22:07:46 Bump: http://stackoverflow.com/q/14860239/354247 Feb 14 22:08:04 i'm wondering why the blog is so late though Feb 14 22:09:38 because the people who broke it don't care about writing blog posts Feb 14 22:15:02 g00s: What was your target API set to? Feb 14 22:15:09 sonOfRa: What if I want the activities to "share" an object instead of updating and then pass an object around. Feb 14 22:15:10 kroot: 8 Feb 14 22:15:28 g00s: hm, it shouldn't break your app Feb 14 22:15:39 it did, i have customers waiting for the fix ;) Feb 14 22:15:40 kroot: unless he was pulling from apps that target JB, no? Feb 14 22:16:04 g00s: Oh, your app doesn't provide a content provider? Feb 14 22:16:12 * ctate | If either the minSdkVersion or targetSdkVersion of your app is set to 17 or higher, the content provider will no longer be accessible by other apps by default. Feb 14 22:16:17 kroot: it does; its used in the file handoff to gmail Feb 14 22:16:42 the file is the attachment to gmail, which comes from my provider Feb 14 22:17:00 * ctate | However, if your app is relying on SecureRandom to generate deterministic data.... Feb 14 22:17:01 g00s: Okay, so the default shouldn't apply to your app. Do you have a link to the Play Store version of it Feb 14 22:17:04 ... you're gonna have a bad time. Feb 14 22:17:32 kroot: sure, pm ? Feb 14 22:17:39 g00s: sure Feb 14 22:20:50 say I have a library that provides an adapter that accepts a layout identifier, and from the inflated layout it locates specific views by their ID Feb 14 22:21:19 the IDs are predefined, and the user has to supply a layout that contains views with those IDs Feb 14 22:21:41 in my library, how do I define the IDs without having an actual layout file containing views with those IDs? Feb 14 22:23:05 put them in a values XML Feb 14 22:23:11 ==JakeWharton Feb 14 22:23:22 typically they go in ids.xml, by convention Feb 14 22:23:23 you need to do *something* that freezes the values at compile time Feb 14 22:23:40 see: http://developer.android.com/guide/topics/resources/more-resources.html#Id Feb 14 22:23:48 and ensures that their IDs don't conflict with other resources' Feb 14 22:24:08 JakeWharton: ah, thank you Feb 14 22:24:31 ctate: shouldn't the android sdk take care to only generate IDs not already defined? Feb 14 22:24:43 or do you mean the names Feb 14 22:25:02 it's more complicated than that because the IDs are supposed to be tightly packed and sequential Feb 14 22:25:22 and are sort of partitioned into namespaces by convention Feb 14 22:25:48 defining them at app-build time is the best way, because then they're allocated optimally Feb 14 22:26:00 but you are requiring that some of them be pre-allocated, so you need to make that explicit Feb 14 22:26:51 I've never seen anyone use before. In what case would one use that? Feb 14 22:26:55 it's not a static library, it's built together with the main app... so if I read the page JakeWharton gave me correctly, I can just have the ID value generated at build time Feb 14 22:27:13 the point is to define the name, the value is irrelevant Feb 14 22:27:15 kakazza: number of action items that can be displayed in the action bar Feb 14 22:27:15 He just wants to be able to do R.id.blah.. All he needs to do is define it in values Feb 14 22:28:12 JakeWharton: But that isn't defined anywhere at compile time, no? That depends on the space available? Feb 14 22:28:25 kakazza: yes, it changes based on the configuration of the device Feb 14 22:29:19 So I am not sure how that's a usecase for in an XML Feb 14 22:29:31 You'd also use it for items/row in a grid view, based on configuration Feb 14 22:30:05 Because the number of action items visible is defined in XML, using various qualifiers Feb 14 22:30:51 JakeWharton: maybe you can give me a hand... I've got ActionBarSherlock and ViewPageIndicator running together... I have activity_main.xml with a ListView inside.. running into some quack though because I'm not as educated as you... First, I don't know if this is correct or not, but when I page back and fourth by sliding-motion, it's like it is trying to inflate the layout all over again Feb 14 22:30:51 (or something).... my custom adapter makes the call to the internet again to grab the data and it refreshes... I have another simple question but that's thing #1 that's getting me. Feb 14 22:31:13 that doesn't have anything to do with ABS nor VPI Feb 14 22:31:38 but ViewPager dynamically destroys and creates pages Feb 14 22:31:56 your adapter shouldn't be loading data Feb 14 22:32:00 ah... Feb 14 22:32:04 it should be ADAPTING data to views only Feb 14 22:32:11 use something like a loader to do the actual downloading Feb 14 22:32:21 OMG OBAMA SPIT IT OUT Feb 14 22:32:25 oh right.. my mistake... the TestFragment.java is loading the data, and the adapter is putting it in Feb 14 22:32:33 beda beda beda thats all folks Feb 14 22:33:29 kakazza: it's actually a perfect use case. so is SimonVT's example Feb 14 22:33:38 JakeWharton, Sorry to ask, what's meant by VPI? Feb 14 22:33:41 actually man, would you mind just taking a quick look? I can find a way around the reloading somehow (by saving it until refresh is hit...) but what my main goal is, is to learn fragments since you told me about them and try to not make a fubar sandwich. Feb 14 22:33:45 ViewPagerIndicator Feb 14 22:33:59 most of it should be 100% familiar.. it's not a lot of code. Feb 14 22:34:04 k Feb 14 22:34:06 i'll pastebin it Feb 14 22:34:12 Secure ADB \o/ Feb 14 22:34:16 i'm sure many people in the channle would be willing to help Feb 14 22:34:21 i'm quite busy Feb 14 22:34:30 only glancing in here during compilation Feb 14 22:34:55 I like ABS :} Feb 14 22:34:57 ok man. thanks for the input, however. hardest part is trying to describe what I'm looking NOT to do... which is screw it up Feb 14 22:35:21 what controls whether or not an EditText receives focus automatically when you land on the screen? Feb 14 22:35:44 i have a login screen activity in which the username EditText always snatches focus and makes the KB pop up Feb 14 22:35:49 I want to stop that Feb 14 22:36:13 did you Google it? Feb 14 22:36:25 because I've see no less than 10 StackOverflow questions about that very same behavior Feb 14 22:37:01 point taken. Feb 14 22:37:15 tnzr: its easy Feb 14 22:37:47 tnzr: just can't remember exactly how. but he's right.. it's everywhere. it _might_ go in the manifest, but you just disable it with one simple line I believe. Feb 14 22:38:00 its in the manifest Feb 14 22:38:04 thanks Feb 14 22:38:42 android:windowSoftInputMode="stateHidden" Feb 14 22:38:59 or programmatically: InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); Feb 14 22:38:59 imm.hideSoftInputFromWindow(editTextField.getWindowToken(), 0); Feb 14 22:39:24 i got it, thanks Feb 14 22:39:38 yep Feb 14 22:43:00 JakeWharton, where are you working? Feb 14 22:43:04 Square Feb 14 22:43:30 this one? https://squareup.com/ Feb 14 22:43:41 indeed Feb 14 22:44:58 JakeWharton: "I'm a business guy with awesome ideas. I just need a programmer." Feb 14 22:46:33 lol Feb 14 22:47:31 are you guys referring to Lieutenant :) Feb 14 22:47:50 not only were they awesome, they were /million/ dollar ideas Feb 14 22:48:17 \drevil Feb 14 22:48:55 its often presented as "I just need this built, you can take all the credit" Feb 14 22:49:10 JakeWharton: you're not the jake wharton of ABS+VPI+others? Feb 14 22:50:20 The very same. Feb 14 22:50:46 i think one is a git clone Feb 14 22:52:31 speaking of git; a new version is out and my friends at adobe corrupted their git repo again Feb 14 22:52:36 XD Feb 14 23:00:08 damn i moved my project folder and eclipse is shittinb bricks.. any easy way to fix this? Feb 14 23:00:19 try 'refresh' Feb 14 23:00:39 you mean, the project in your workspace? that might be more work Feb 14 23:02:14 would nt recreating the activity when you change your orientation have overheads? Feb 14 23:02:26 i mean it would take a long time to load right Feb 14 23:02:32 or is it Feb 14 23:02:43 ? Feb 14 23:04:17 not very long, no Feb 14 23:04:31 all the code is already resident in memory and the DVM is spun up and so on Feb 14 23:04:56 it's just creating a new Activity instance and running through onCreate() / onStart() / onResume() Feb 14 23:05:29 ok Feb 14 23:05:34 make sense Feb 14 23:06:10 well, i updated to 4.2.2. and now adb shows "device offline" Feb 14 23:06:14 and if you're properly saving state, it's not like you'd have to redo network requests Feb 14 23:06:18 shreesh, update your sdk tools Feb 14 23:06:40 Also, secure ADB afaik Feb 14 23:06:51 canadiancow: will do. Feb 14 23:07:00 yes, it's secure adb, which requires an update to the sdk tools :P Feb 14 23:08:19 Btw, I found no information that yakju was not sold by Google. Most sources claim it was. Feb 14 23:08:34 it was definitely not sold directly by google Feb 14 23:08:42 i am 100% sure of that, but not of much else Feb 14 23:11:12 And I am sure that yakjuux/xw/... are maintained by Samsung and have not received OTA updates after 4.1.1 Feb 14 23:11:29 yakju is definitely MAINTAINED by google Feb 14 23:13:53 http://news.yahoo.com/android-4-2-2-blocks-unofficial-lte-support-211726210.html Feb 14 23:14:02 ... why? Feb 14 23:14:52 yakju is just takju without Wallet installed Feb 14 23:14:52 pragma-: It was a bug, not a feature. Feb 14 23:15:41 okay I commented my 'question' if anyone could take a look at this paste and give me some much needed advice/help: http://pastebin.com/Yr6D90u4 Feb 14 23:16:07 ^^ everything "works" ... but implementation is a bit of a question Feb 14 23:21:20 how do i access an element of a list string in java Feb 14 23:23:16 array.get(index) Feb 14 23:24:13 The paste above is: ActionBarSherlock, ViewPageIndicator... There are about 4 'pages' using the same XML file. Each page has a ListView. MainActivity references a fragment that is the ViewPageIndicator stuff to set the 'page tabs'. The fragment sets page tab/titles, inflates XML containing ListView, loads JSON from server, sets custom adapter. TubeAdapter.java handles data in background, Feb 14 23:24:13 populates listView1 (id), and everyone is happy... Except, I'd want to be able to access this stuff to do a 'refresh' from the refresh menu item of ActionBar, AND lastly, when sliding from page to page, it ends up calling the server to get the JSON and automatically 'refreshing', so I'd want a suggestion on how to save the data once it's loaded initially, and only re-phone-home when refresh Feb 14 23:24:13 is tapped. Feb 14 23:27:02 so in other words, once these things are loaded initially, I have no clue how to properly grab the [fill in name of what i even need to grab] again, and control/manipulate it (as in say: hey listview, you're the one I want to do something with) after the initial inflation/loading., etc. Feb 14 23:27:05 So, when using the org.apache.httpclient to do http requests, how may I err make a progressbar to count the downloaded so far data? Feb 14 23:28:11 get the content length, count bytes as you read them from the stream, and divide Feb 14 23:28:29 The execute method which is from the httpclient class does not have any callback on received chunks of data and returns when the request was completed Feb 14 23:28:49 diki: I'd suggest using the AQuery libray (android-query) and handle all downloading/internet stuff in background .. easy to use, PLENTY of documentation and all you'd have to do is set the ID of the progress 'bar'. Though, Jake is right re: process if you are seeking to use it specifically. Feb 14 23:28:52 brb Feb 14 23:30:43 and I'll negate that recommendation of AQuery giving it a neutral rating Feb 14 23:30:58 but, do what you have to do Feb 14 23:31:17 Well I wanted to avoid using many libraries cause I all i wanted to do was fetch the source of a page and parse it via jsoup Feb 14 23:32:02 pierpark: if each view is a fragmentactivity then use onRetainCustomNonConfigurationInstance to sace/data structure Feb 14 23:32:05 call me a noob but: if (segments.get(0) == "offer") { Feb 14 23:32:11 s/sace/save Feb 14 23:32:25 i Log.w() segments.get(0) and it is exaclty ofer.. that boolean isnt firing Feb 14 23:32:28 acidjazz: don't use == on strings, use .equals Feb 14 23:32:30 offeR* Feb 14 23:32:45 mdwright:really? Feb 14 23:32:54 if (this .equals that) {} ? Feb 14 23:33:06 this.equals(that) Feb 14 23:33:09 shreesh: thanks for the info. I'll go google that when I get off the phone! thank you! Feb 14 23:33:10 acidjazz: if(foo.equals(bar)) {...} Feb 14 23:33:19 oh .() Feb 14 23:33:21 thanks Feb 14 23:33:31 acidjazz: These type of questions are probably more appropriate for an environment about learning Java Feb 14 23:33:35 you should try a few regular Java tutorials as well to learn the ins and outs of the language Feb 14 23:33:42 JakeWharton: fair enough on AQuery. I've used it for lack of guidance on doing things the right way, which is what I'm actively seeking to learn. Feb 14 23:33:45 brb on phone Feb 14 23:33:48 mdwright: yea this is mainly phonegap.. just gotta do a couple custom plugins :) Feb 14 23:36:50 lol @ phonegap Feb 14 23:37:37 Does httpclient even support chunk based downloading of data? Feb 14 23:38:05 I.e to be able to calculate the speed per second and display the progressbar i percents Feb 14 23:38:37 diki: google it Feb 14 23:38:42 seems to suggest yes Feb 14 23:38:46 examples too Feb 14 23:38:51 All the examples Ive seen dont use it any differently Feb 14 23:42:00 Hi, I've just started android development but I'm not sure what type of testing device to purchase? Feb 14 23:42:33 https://play.google.com/store/devices Feb 14 23:44:27 Thanks canadiancow , any particular model? Would a phone or tablet be better for testing? Feb 14 23:44:42 depends what you're writing Feb 14 23:44:45 apple741: well I started out with a G1 and it worked out pretty well for me. So maybe look into that? Feb 14 23:44:48 :) Feb 14 23:47:03 evanc: My first app will be pretty basic, some sort of 2d puzzle game. G1? Feb 14 23:47:18 Just trying to make sure I get everything right at this stage :) Feb 14 23:47:55 i'm wondering how JavaFX for iOS/Android will work technically; they seem to also ship Java SE Embedded. So will JavaFX android apps use Java 7 :O Feb 14 23:48:36 apple741: I'm kidding; G1 was the first Android phone released to the public :) Feb 14 23:48:54 not that writing java cross platforms app ever lived up to the hype, but writing JavaFX for Android/iOS/Windows 8 would be pretty killer for some kinds of apps Feb 14 23:50:20 evanc: lol, so would the nexus 7 be too high-end for testing? Feb 14 23:50:47 apple741: no, it'd be a great device. Anything on play.google.com/store/devices is a fine development device Feb 14 23:50:58 (they're fine devices in general) Feb 14 23:51:59 apple741: if you get the N10 https://plus.google.com/107708120842840792570/posts/cz5TxuoNDfG Feb 14 23:54:39 Thanks evanc , really great tip! Probably out of my budget at the moment , wish I could afford it though :) Feb 14 23:57:57 Looking at the site the nexus 7 seems like the best balance for me, is there any chance of it becoming outdated in the near future? I'd hate to get a new device and can only test on it for a few months. (I'm sure this won't be the case but best to double check ;) ) Feb 14 23:58:54 apple741: rumors are that better DPI one will be available around I/O; maybe ctate could confirm XD Feb 14 23:59:34 anyhow, the bigger concern is how long it will be supported by google, i would guess maybe 12 more months at minimum Feb 15 00:00:09 apple741, what does "outdated" mean? Feb 15 00:00:15 im using a nexus s fairly regularly for testing Feb 15 00:00:32 canadiancow: what version of android does your S have ? Feb 15 00:00:43 JB Feb 15 00:00:52 which JB :) Feb 15 00:01:26 MR0 Feb 15 00:02:09 anyone know why an edittext would be losing focus immediately after being focused, but only when im using a physical keyboard? Feb 15 00:02:56 An empty onClick method on a dialogInterface.OnClickListener simply dismisses the dialog? Feb 15 00:03:21 canadiancow: Maybe something that would no longer be suitable for testing for some reason or google would no longer support but g00s made a good point about there being at least 12 months Feb 15 00:04:04 g00s: that adb am tip is great! Feb 15 00:04:11 well apple741, the galaxy nexus was released in november 2011 i believe, and it's fully up to date Feb 15 00:04:19 g00s: ive been wanting to fix my layouts on small screens, but the emulator is painfull Feb 15 00:04:33 now i can cripple my tablet for an hour to test it :D Feb 15 00:06:16 Error: Unknown command: display-density Feb 15 00:06:29 hmmm, only half works, but good enough for the first layer problem Feb 15 00:06:43 and i probly want to leave dpi alone for now Feb 15 00:09:23 Can anyone point me in the right direction for hiding (if at all possible) the bar containing the 'back', 'home' button. Feb 15 00:10:17 if the emulator is painful, you're doing it wrong Feb 15 00:10:34 the emulator will be faster than any physical device when configured properly Feb 15 00:10:55 JakeWharton: the windows system only has 1gig of ram Feb 15 00:11:06 and eclipse eats up 1gig by itself Feb 15 00:11:13 that leaves how much for the emulator? Feb 15 00:11:31 1gig Feb 15 00:11:42 1gig - 1gig == 0 Feb 15 00:11:51 But 1 + 1 = 2 Feb 15 00:11:53 clearly you do not understand how operating systems work Feb 15 00:11:54 ;p Feb 15 00:12:06 JakeWharton: swapping makes it painfully slow Feb 15 00:12:21 even on a 3gig laptop (linux), it struggles to get things going Feb 15 00:12:32 and i know all about how virtual addressing and paging tables work Feb 15 00:12:55 do you know about GPU acceleration and x86 AVDs as well? Feb 15 00:13:09 yes, and those generaly only work on windows for me Feb 15 00:13:12 because they scream on my 2GB linux laptop from 4 years ago Feb 15 00:13:27 and the windows pc is too short on ram to run everything at once Feb 15 00:13:50 (dedicated emulator pc) Feb 15 00:13:52 ive also checked, qemu is hard-coded to run adb on 127.0.0.1, so i cant dual-box it Feb 15 00:13:56 sounds like there's a clear solution to your problem then: buy a mac! Feb 15 00:14:10 * JakeWharton fades away Feb 15 00:14:16 * clever gets the axe! Feb 15 00:15:53 hey all im using intent-filter's to launch my app via the browser and i'm getting that prompt on my phone "open with browser or thisapp" .. any way to bypass that prompt? Feb 15 00:15:58 * pierpark jumps off the deep end Feb 15 00:18:50 acidjazz: the user should have an option to make that app the default Feb 15 00:19:12 acidjazz: also, i think custom protocols will prevent the question completely Feb 15 00:19:23 the browser isnt trying to catch acidjazz://example/path Feb 15 00:19:42 clever: the issue w/ custom protocols is they 404 if the app isnt installed Feb 15 00:19:53 but other than that yes clever custom schemes do bypass that question Feb 15 00:20:27 And are also not recommended Feb 15 00:20:59 yea i understand.. scheme space isnt a free for all Feb 15 00:22:22 http://stackoverflow.com/questions/3469908/make-a-link-in-the-android-browser-start-up-my-app/3472228#3472228 Feb 15 00:23:02 anyone use AndroVM? when i try to install my app it just says "app not installed".. Feb 15 00:23:50 kakazza: ive just generaly thought that if the scheme has something unique to me, and is long enough, i can avoid collisions Feb 15 00:24:02 but the error when the app doesnt exist isnt as good Feb 15 00:25:11 acidjazz: are you setting cateory.DEFAULT? Feb 15 00:29:33 testing on android without a device is still a joke, that x86 emu wont work and nor with androvm Feb 15 00:30:08 What do you mean by not work? Feb 15 00:30:28 requires an intel chip as far as i can see, and androvm just says app not installed Feb 15 00:31:00 That's because afaik Intel provides the x86 AVDs, I could be wrong, though. Feb 15 00:31:16 The official guide says, AMD works under Linux. Feb 15 00:31:21 model name : Genuine Intel(R) CPU T2300 @ 1.66GHz Feb 15 00:31:30 and thats probly why i never got it to work on linux Feb 15 00:31:32 yeh i have amd but im on windows Feb 15 00:31:42 androvm looks like it will be amazing Feb 15 00:31:46 but refuses to install apps Feb 15 00:31:59 i did get it to install some but when they go fullscree nthe vm goes haywire Feb 15 00:32:09 if you modified the qemu source and built your own emulator, you could expose its adb port to the network Feb 15 00:32:17 and then dedicate a single pc to the emu Feb 15 00:32:23 clever: Should work on Linux with Intel and AMD. Did you follow the instructions to use KVM? Feb 15 00:32:24 hehe Feb 15 00:32:39 but at that point, android-x86 would be simpler Feb 15 00:32:52 kakazza: dont remember Feb 15 00:33:42 https://developer.android.com/tools/devices/emulator.html#accel-vm Feb 15 00:33:45 clever: yes why? Feb 15 00:33:50 clever: sorry for hte delay Feb 15 00:33:55 there really does need a be a working x86 android emu Feb 15 00:34:00 acidjazz: i thought it may help, but probly wont Feb 15 00:34:16 nah Feb 15 00:34:19 Gaz`: android-x86.com is a bootable cd that just runs android without an emu Feb 15 00:34:29 oops, .org Feb 15 00:34:32 looks like google cloud messaging was killing it Feb 15 00:34:40 hmm Feb 15 00:34:45 clever: i wonder if theres a way to detect native schemes in javascript Feb 15 00:35:11 acidjazz: in my use-case, that part of the website can only be opened by the app Feb 15 00:35:17 so i already know the app is installed Feb 15 00:36:11 clever i wanna run in vmware on my pc tho Feb 15 00:36:34 Gaz`: android-x86.org may work on that, once you smooth over the driver issues Feb 15 00:36:51 jesus what are google playing at Feb 15 00:36:52 fix it! Feb 15 00:37:20 the builds are targeted very narrowly Feb 15 00:37:51 and the x86 fork isnt made by google Feb 15 00:38:16 That's why they are "Intel Atom x86" AVDs in the SDK Manager, they are provided by Intel for all I know. Feb 15 00:38:43 and those are already built against the 'hardware' in qemu, so no driver issues Feb 15 00:40:43 clever: no but you cant auto-launch the app..they have to click a link Feb 15 00:44:39 who here's good with sqlite? Feb 15 00:45:06 I want to do something like select distinct chanelId, * from channels (where channels is something like (_id, channelId, title, isHd ...) Feb 15 00:46:27 always list columns explicitly Feb 15 00:47:58 it'll prevent future facepalming Feb 15 00:48:23 that's a good idea Feb 15 00:48:44 ok, group by channelId seems to do the trick Feb 15 00:52:01 it will give you what you ask for Feb 15 00:52:15 the corollary is: make sure you ask for *exactly* what you want. ;) Feb 15 01:00:22 ok, I have a horizontalscrollview and a listview (that has a bunch of linearlayouts of different lengths) -- I was able to get everything to scroll in two directions earlier but now I can't Feb 15 01:00:41 anybody have any thoughts as to what the right way to layout my xml is? Feb 15 01:00:54 http://pastie.org/private/pswerqooocneaggzlcv4qw Feb 15 01:00:57 is what I'v got now Feb 15 01:01:17 which seems right, but now I can't scroll horizontally Feb 15 01:01:23 if you have scrollers inside scrollers, you're doing it wrong. Feb 15 01:01:37 viewpagers aren't an option Feb 15 01:01:59 either do normal two-axis panning, like web pages, or figure out how to present with single-axis scrolling Feb 15 01:02:27 the effect of the thing should be pretty much normal two-axis panning Feb 15 01:05:13 the issue I was having earlier was that every time I'd scroll down, the cursor would have to regenerate the bigass linearlayout and that was slow as balls Feb 15 01:05:27 I have some async loaders in there so it's fast but I seem to have lost the horizontal scrollability Feb 15 01:06:47 to the git repo! Feb 15 01:11:07 would there be any reason why a match_parent directive would be ignored by a horizontalscrollview? Feb 15 01:14:09 sometimes it works, others it doesn't -> https://dl.dropbox.com/u/63726/device-2013-02-14-171251.png vs https://dl.dropbox.com/u/63726/device-2013-02-14-171301.png Feb 15 01:17:52 mheld: the main point of listview is to prevent regenerating large things like that Feb 15 01:18:09 but i'm not sure how well listview would work once it looses control of the scrolling Feb 15 01:19:01 clever: you can only scroll in either/or direction Feb 15 01:19:02 not both Feb 15 01:19:53 you might have to subclass something like GridView and modify it to do what you want Feb 15 01:20:26 clever: it does what I wont, it just doesn't always behave consistently Feb 15 01:20:41 always list columns explicitly Feb 15 01:20:43 why? Feb 15 01:20:58 canadiancow: memory Feb 15 01:20:59 so that when you add a column you don't break your code Feb 15 01:21:04 that too Feb 15 01:21:16 why would it break your code Feb 15 01:21:21 on SQLServer using * doens't use any indices Feb 15 01:21:27 JakeWharton: i believe sqlite doesnt let you insert columns, only add to the end of the set Feb 15 01:21:50 its due to how its lazy, and never modified existing records Feb 15 01:21:50 because columns have changed Feb 15 01:22:18 you're not hard-coding the column index, are you? Feb 15 01:22:29 i'm not Feb 15 01:22:32 i don't do sqlite Feb 15 01:22:51 then i dont really see how it would break your code Feb 15 01:23:03 er, you just said how it would Feb 15 01:23:18 ok, so if you write fragile code, it's fragile Feb 15 01:23:27 :P Feb 15 01:23:31 yes Feb 15 01:23:35 welcome to #android-dev Feb 15 01:23:41 where fragile code comes to thrive Feb 15 01:23:45 like bacteria Feb 15 01:25:36 in my personal app, the database schema likely isnt consistent between versions Feb 15 01:25:53 because i may have stopped needing a column, so i stopped adding it, but i cant remove it Feb 15 01:26:02 thats probably not a good idea either Feb 15 01:43:05 be very careful with your upgrade sequences Feb 15 01:43:24 ctate you got the same spam i guess? Feb 15 01:43:28 he's not even in here though Feb 15 01:43:45 Han shot first. Feb 15 01:44:08 #freenode gave me a tip: /mode YOUR_NICK +R Feb 15 01:44:16 prevents unregistered users from messaging you Feb 15 01:44:31 he's registered Feb 15 01:44:49 chanops here should remain messageable by unregistered nicks Feb 15 01:45:02 becasuse people routinely fail to read the channel topic etc about needing to register, and ask the chan ops Feb 15 01:45:05 comedy! Feb 15 01:45:12 lol Feb 15 01:45:24 that's why im not sitting up there with +o =P Feb 15 01:45:41 it's a dirty job but somebody has to do it Feb 15 01:46:02 someone like that is just going to bug you until you paste them the command to register a nick Feb 15 01:46:07 then come here and ask "how do i start an activity" Feb 15 01:48:40 ctate, doesn't +r on a channel mean you can't JOIN if you're not registered? Feb 15 01:49:01 http://freenode.net/using_the_network.shtml Feb 15 01:53:55 think so, happens to me all the time Feb 15 01:55:31 bah he left Feb 15 01:55:46 i wasn't sure whether this channel was unjoinable by nonregistered, or just mutes nonregistered Feb 15 01:55:53 at least it used to be the latter Feb 15 01:55:54 yeah i couldnt join when i logged out Feb 15 01:55:58 grump grump Feb 15 01:56:03 oh well Feb 15 01:56:13 it is within our power to change that... :P Feb 15 01:56:39 hmm, strange. Feb 15 01:57:10 oh you know what, there have been cases of mass spam of people just joining and parting Feb 15 01:57:15 so i guess it makes sense Feb 15 01:57:31 if you have a stupidly large set of dex files and you incrementally dex them all together with --force-jumbo, it looks like dx will produce output it can't read back in / verify. Feb 15 01:58:00 even though the dx merge completes successfully. odd :) Feb 15 01:58:13 consult baksmali? Feb 15 01:58:19 i was gonna try that next Feb 15 01:58:19 re jumbo: Feb 15 01:58:21 * ctate | they were never supported, should not be used, and the particular values they used may be recycled for other purposes in future. Feb 15 01:58:37 eh, then why does the SDK officially support it? Feb 15 01:58:55 it's written in the change notes, even. Feb 15 02:00:26 just quoting from android-contrib today Feb 15 02:00:55 well, that seems odd then. perhaps you've got some folks internally that disagree with that statement oo. or are unaware of it. Feb 15 02:01:14 just 2 months ago a release went out adding dex.force.jumbo and all that Feb 15 02:01:28 and some posts from xavd i think saying use it if your shit breaks Feb 15 02:04:01 oh ah, unrelated, apparently Feb 15 02:04:21 i wonder if i can find a repro case here and maybe fix it Feb 15 02:04:32 or ask kindly that jwilson please fix it :) Feb 15 02:04:47 jasta: either way, you should file a bug about it Feb 15 02:05:18 yeah, that's a bug :) Feb 15 02:05:34 god make a rock so big He can't life it etc Feb 15 02:05:38 *lift Feb 15 02:06:28 sure, will do. Feb 15 02:06:38 its very much in my interest to have this fixed :) Feb 15 02:07:03 i think ill devise a test that at least tries to break down first at one point does it fail. that is, say i have 100 dex files to merge, which one causes dexdump to no longer read the result Feb 15 02:07:29 protip: write smaller code. Feb 15 02:07:36 :D Feb 15 02:07:58 actually whats going on here is using a bunch of bloated-as-hell J2EE libraries (many of which written by google *grin*), that take an eternity to proguard Feb 15 02:08:20 so for build efficiency, sure would be nice to just cache the dexes and proceed with a fast incremental dex merge build Feb 15 02:08:55 even tho i only use various little features of these enormous libraries Feb 15 02:08:55 it's like sure i could manually strip them down and all that, but where's the fun in that? Feb 15 02:09:09 i want dx to just work harder. Feb 15 02:10:08 yeah, thats why i try not to drag in guava\ Feb 15 02:11:46 and proguard isn't bugless either ;) Feb 15 02:16:22 Hi Guys! Where can I find an authoritative treatment of theory and best practices for content URI's ? Feb 15 02:20:03 jda2000: you can look at the iosched app to see how they structured their tables / uris Feb 15 02:20:20 their data model isn't too complex, but … hopefully yours isn't either :P Feb 15 02:20:34 g00s, Thank you! Feb 15 02:29:31 holy crap, i just plugged my Buffalo NAS into my MBP w/o a router and it works :| Feb 15 02:45:00 g00s, IT JUST WORKSâ„¢ ! Feb 15 02:45:15 yeah, not sure how :| Feb 15 02:46:16 g00s, Courtesy of bonjour. Feb 15 02:47:26 interesting. i thought i would set up another 2 node lan, the NAS would say oh crap, and choose some known IP and I had to manually set the other IP … but didn't have to do any of that Feb 15 02:48:05 g00s, http://en.wikipedia.org/wiki/Bonjour_%28software%29 Feb 15 02:48:29 jda2000: cool, thanks Feb 15 02:49:20 g00s, If your NAS is running Linux it could have Avahi packages on its end. Feb 15 02:50:22 hey all Feb 15 02:50:43 g00s, And soon, you can too! http://developer.android.com/reference/android/net/nsd/NsdManager.html Feb 15 02:51:25 question regarding xml layouts... if i have a RelativeLayout android:orientation="vertical" but no definition for a "horizontal", does android just automatically fallback the vertical one, scaling components as necessary? Feb 15 02:51:38 jda2000: cool, thanks again ! Feb 15 02:52:38 What's the character limit of android notification messages (either title and body)? Feb 15 02:52:49 there is no character limit Feb 15 02:52:52 it depends on your device Feb 15 02:52:55 and its orientation Feb 15 02:52:58 and the font you use Feb 15 02:52:59 etc Feb 15 02:54:47 knightrage, I don't know. try it. Feb 15 02:56:18 If your message is too big and too important, treat it inside the app, use the Push just as an alert. **** ENDING LOGGING AT Fri Feb 15 02:59:58 2013