**** BEGIN LOGGING AT Tue Sep 25 02:59:58 2012 Sep 25 03:09:08 can we have the whole stacktrace? Sep 25 03:09:46 i hate soap though, so no promises Sep 25 03:33:44 when working with asynctask is there a way to pass more than just a string of params to onProgressUpdate. For instance, if I wanted to pass a String and a double Sep 25 03:34:20 could try stringifying the double Sep 25 03:34:44 i haven't really used async task before, i always use plain threads Sep 25 03:35:50 speakingcode you would have to pass some type of holder object Sep 25 03:36:03 that had the string and the double Sep 25 03:36:22 AyncTask< …, MyStringDoubleHolder, ...> Sep 25 03:36:49 g00s: I would you just make that of Object type Sep 25 03:37:14 epsilonorion: and cast it? Sep 25 03:37:20 that doesn't sound right Sep 25 03:37:29 yeah, that is what makes me wonder Sep 25 03:37:47 * g00s wishes java had tuples Sep 25 03:37:56 meh. Sep 25 03:38:08 I follow the idea of turning into strings, however, my actual situation is that I am passing an object and a string Sep 25 03:38:13 use guava: ImmmutableList.of(foo, bar) Sep 25 03:38:20 you have to wish it were dynamically typed first Sep 25 03:38:39 i would drag in guava for that :) unless you need it for other stuff Sep 25 03:39:06 otherwords, there is no simple solution, lol Sep 25 03:39:10 use scala! Sep 25 03:39:13 no. a real tuple type would be like an array type except each element has a specific type Sep 25 03:39:25 and together those form the type signature Sep 25 03:39:31 speaking of scala, where is pfn these days Sep 25 03:39:57 g00s, don't you use proguard? Sep 25 03:40:12 i do, for releases :) Sep 25 03:40:33 so there's really no size cost beyond what you use Sep 25 03:41:49 its easy to get to this limit with guava http://code.google.com/p/android/issues/detail?id=20814 Sep 25 03:41:54 unless you use proguard Sep 25 03:42:05 and i dont want to /have/ to use proguard Sep 25 03:42:24 well, not by itself, but you throw in one more library and you're really close Sep 25 03:43:53 hmm. i've never hit that. app is far more than just guava. and dev build is not trimmed Sep 25 03:44:55 maybe just really really close, and lucky? Sep 25 03:45:08 :) Sep 25 03:45:16 i tend to be very unlucky Sep 25 03:45:19 XD Sep 25 03:45:47 65,000 method calls is a lot Sep 25 03:46:38 not method calls, methods total Sep 25 03:46:52 haven't counted, guava could easily be like 40k methods Sep 25 03:47:45 maybe my app is actually kind of small. but I dont tend to write lots of tiny methods Sep 25 03:48:07 i must have a few thousand at best Sep 25 04:17:12 Is it cleaner to change activity via intent filters or by using SomethingActivity.class in your Intent? Sep 25 04:22:36 ugh, i need oracle jdk for something and arch doesn't seem to want to let me have open jdk and oracle jdk both installed. is jdk7 ok for android? Sep 25 04:23:34 seriosuly oracle in any sentence is Sep 25 04:23:35 bad' Sep 25 04:23:41 no kiddin Sep 25 04:24:19 i use the db on a daily basis Sep 25 04:24:29 except in the movie Matrix ;) Sep 25 04:24:33 and it boggles my mind how backwards and remenants of an era Sep 25 04:24:38 it is Sep 25 04:24:54 happen to know if android is cool with jdk7? Sep 25 04:25:01 did oracle buy out mysql too ? Sep 25 04:25:19 yup everything sun made pretty much afaik Sep 25 04:25:40 to be fair most of what sun built was shitty Sep 25 04:25:40 haha Sep 25 04:25:49 java? Sep 25 04:25:50 oracle sparkstations lol Sep 25 04:26:03 opensolaris was good imo Sep 25 04:26:11 I like the ideas in java, but its been seriously seriously neglected over the years Sep 25 04:26:16 and postgres, the one time i used it, seemed ffine Sep 25 04:26:27 not much of a db guy tho Sep 25 04:26:28 postgres wasnt sun Sep 25 04:26:35 was it not? Sep 25 04:26:39 oh just comparin dbs Sep 25 04:26:39 nope Sep 25 04:26:46 I don't think mysql was sun either Sep 25 04:26:54 no oracle bought it outright Sep 25 04:27:02 sadly I dislike mysql very much Sep 25 04:27:17 its a very fast db Sep 25 04:27:24 but based on the last 2yr working with oracle on a daily basis? I'd say mysql COULD be better Sep 25 04:27:30 oracle is kind of a joke Sep 25 04:27:45 every 3rd time I reboot, shutting down the db properly etc Sep 25 04:27:51 yeah oracle is just a big monster Sep 25 04:28:05 it has to run recovery and extend the downtime by 5 minutes or whatever that process takes Sep 25 04:28:30 and everyone says "it must be you..." Sep 25 04:28:47 but I dont treat sql server any different, and its been rock solid, as if it wasnt sitting there in the bg Sep 25 04:29:57 does android api have mysql access built in ? Sep 25 04:30:22 unlikey Sep 25 04:30:30 I was thinking about storing the remote data for my app like images and text in a mysql db Sep 25 04:30:54 just use sqlite Sep 25 04:30:56 Can't sqlite handle that? Sep 25 04:31:11 its very quick and its already htere Sep 25 04:31:33 any real, non embedded db is gonna likely be overkill for a mobile device Sep 25 04:31:40 well I'll have to install it on the linux server Sep 25 04:31:58 I already have mysql on the linux server installed Sep 25 04:32:51 it would probably serve data faster than apache Sep 25 04:33:22 even then Sep 25 04:33:27 why run apache on a mobile device Sep 25 04:33:40 for remote data retrieval Sep 25 04:34:08 remote data that is being constantly changed online Sep 25 04:34:30 ahh cool Sep 25 04:34:51 I havent seriously considerd using apache in quite a long time Sep 25 04:35:38 not running on mobile device, it would be running on some real linux server Sep 25 04:35:49 oh I know Sep 25 04:36:01 but apache isnt anywhere near the front of the pack for performance Sep 25 04:36:21 I think mysql would work nice Sep 25 04:36:56 you know there is generally a decent overhead you get when you are talking db out of the database... Sep 25 04:37:06 do yourself a favor and implement some sort of caching Sep 25 04:37:06 gogole android jdbc for the answer to that one Sep 25 04:37:33 webserver out of the box has all sorts of caching in it, and you lose all the automation of that when you start talking blobs Sep 25 04:42:11 speaking of caching Sep 25 04:42:21 i need to implement some of that in an app i'm working on in my spare time Sep 25 04:45:08 the caching for android would be done on the mobile device, the caching of apache only speeds up how fast apache gets the remote data, not how fast it serves it Sep 25 04:52:54 anyone aware of some working rtsp stream out in the wild Sep 25 04:53:01 need to do some testing Sep 25 04:53:51 I gotta go stream hunting to do some tests too Sep 25 04:54:20 shmooz: if you find some working RTSP, you know whom to share the link with Sep 25 04:55:20 Looney: here you go ... http://forum.serviio.org/viewtopic.php?f=41&t=4936&start=290 Sep 25 04:56:26 Your input can't be opened: Sep 25 04:56:27 VLC is unable to open the MRL 'rtsp://tv.futubox.com:1935/live/z050201.stream'. Check the log for details. Sep 25 04:56:42 is this link working for you Sep 25 04:56:53 the one which did not work for me Sep 25 04:59:26 getting the same in VLC myself Sep 25 05:01:28 rtsp://121.241.249.136:1935/livefeed/DISNEYENGLISH_QVGA.sdp no audio Sep 25 05:01:34 video streams Sep 25 05:02:18 same for rtsp://121.241.249.136:1935/livefeed/CARTOONNETWORK_QVGA.sdp in VLC Sep 25 05:02:40 I'm getting audio only on that one Sep 25 05:02:53 oh ok video showed up later, but not synced Sep 25 05:03:37 oops boogie call Sep 25 05:03:43 probably my connection is already clogged up is the cause Sep 25 05:03:53 problem with audio config with VLC Sep 25 05:04:05 the audio works fine here Sep 25 05:04:16 video and audio with stream working in VLC Sep 25 05:04:19 confirmed Sep 25 05:04:45 gotta test the sample now :-) Sep 25 05:05:14 you are slightly ahead of me, I'm still making my channel lists Sep 25 05:05:26 god damn the guys in #archlinux are dickheads Sep 25 05:05:49 but thats my next step , collecting streams Sep 25 05:05:56 thats most #linux* channels Sep 25 05:06:05 yeah no kidding Sep 25 05:06:31 and I will also include an option for users to Manually enter their own streams and add to their custom channel lists Sep 25 05:06:31 # is the number 1 reason people quit using Sep 25 05:07:46 most dists arent THAT different Sep 25 05:07:54 i'm having an issue installing oracle jdk and they wanna sit there and argue with me that it makes no difference if i have oracle or openjdk when i'm reading the requirements that say "You MUST use oracle's jdk, this will not function with openjdk" Sep 25 05:08:08 if you know slackware you know them all ;) Sep 25 05:08:36 distro specific commands suck Sep 25 05:08:44 and low and behod, it doesn't work with openjdk, so don't argue with me about the theoretical likeness of the two, take it up with the people that state their shit doesn't work with openjdk and correctly so Sep 25 05:08:54 shit bugs Sep 25 05:09:15 I'd almost assume the bugs are in oracles and ok in openjdk Sep 25 05:09:47 damn it 5hr energy works super godo Sep 25 05:09:48 good Sep 25 05:09:56 but the stuff taste like complete ass Sep 25 05:13:28 i hhate that stuff Sep 25 05:14:02 used to be an energy junkie but i've freed myself from caffience (except tea here n there) and i personalyl feel like i perform much better this way Sep 25 05:14:48 damnit I cannot type tonight. But yeah, all that energy stuff I think accomplished 1 thing for me, make me lose sleep Sep 25 05:15:11 apples are great for energy boost Sep 25 05:15:36 http://www.motorcyclespecs.co.za/Gallery%20B/Ducati%20Streetfighter%20848%2012%20%203.jpg Sep 25 05:15:42 daddy want, daddy buy Sep 25 05:16:10 chocolate works nice too Sep 25 05:16:11 yeah udcati is sick Sep 25 05:16:19 i have a chopped ninja 6 Sep 25 05:16:38 need to get rid of the thing Sep 25 05:17:24 http://www.youtube.com/watch?v=tfsMzsJwYhw Sep 25 05:17:28 thats my current bike Sep 25 05:18:35 is that a parallel twin or inline4 Sep 25 05:18:51 vtwin Sep 25 05:19:00 ah no kiddin? Sep 25 05:19:31 yep Sep 25 05:19:41 that custom or they build those that way? Sep 25 05:19:57 no my bike has a couple mods, but engine etc is stock Sep 25 05:21:00 ah ok Sep 25 05:30:11 man damn topcoder is teh gays Sep 25 05:30:32 wasted my time getting this crap working and now it wants me to fill out a ginormous form, does this shit ever actually happen Sep 25 05:33:33 shmooz: one only needs the permission to INTERNET in manifest to stream rtsp ? ? Sep 25 05:34:14 Looney I would think that is correct Sep 25 05:34:34 no permission require to prevent screen from locking ? ? Sep 25 05:34:40 my app already has internet permission Sep 25 05:35:07 I forgot the INTERNET permission Sep 25 05:35:24 read the mistake from stackTrace ,i.e., the hard way Sep 25 05:35:40 Is there an easy way to draw a bitmap on a surfaceview Sep 25 05:36:52 * jfpoole never understood topcoder. Sep 25 05:37:50 yes Looney , also wake lock if you're streaming video Sep 25 05:38:25 there is permission for wake lock ? ? Sep 25 05:39:13 there is indeed a permission which I did not expect Sep 25 05:39:15 yes there is Sep 25 05:39:18 gotta add it Sep 25 05:39:44 http://www.androidsnippets.com/stop-screen-from-dimming-by-enforcing-wake-lock Sep 25 05:44:51 thanks for snipper shmooz Sep 25 05:55:49 I am getting network unreachable error shmooz Sep 25 05:56:03 have you tried your sample Sep 25 05:56:16 no I am still working on the GUI Sep 25 05:56:16 I am using WiFi for the interwebz Sep 25 05:56:28 hmm Sep 25 05:56:36 you are ahead of me, be my guinea pig will you Sep 25 05:56:43 nah Sep 25 05:56:50 I want you to be mine Sep 25 05:57:23 good reason to sit back and do nothing Sep 25 05:58:48 none honestly ;-( Sep 25 06:01:00 hmm, I can reach the IP of server from my Droid's browser Sep 25 06:05:27 hope you are using prepareAsync shmooz Sep 25 06:06:04 not sure, but I think you also need WRITE_EXTERNAL_STORAGE permission Sep 25 06:07:52 I went through the ADB docs a good amount, but I feel like this is documented somewhere and I'm being dumb. Is there an environment variable that takes the device name (serial) implicitly for all ADB commands? Sep 25 06:08:04 I feel like I've seen such a thing before Sep 25 06:08:32 Looney: are you using http://developer.android.com/reference/android/widget/VideoView.html ?? Sep 25 06:09:17 nah Sep 25 06:09:28 http://developer.android.com/reference/android/media/MediaPlayer.html Sep 25 06:14:14 ron_frown: i bet you're lusting after the martian pink sgs3 Sep 25 06:14:37 Hi, does anyone know how the change the text style of a spinner's selected item to bold? Sep 25 06:14:52 nah Sep 25 06:14:59 my wife has a white one Sep 25 06:15:05 and the stock software is complete shit =) Sep 25 06:15:11 hm Sep 25 06:17:02 the race to the bottom is well underway Sep 25 06:17:12 But at the end of the day, the $399 Xperia Tablet S is double the price of the Nexus 7, a tablet with virtually identical specs (even the screen is the same resolution, though it's smaller), Google's latest and greatest OS, and the promise of timely updates in the future. Sony's case for the price premium is more compelling than most other tablet makers — primarily its remote control capability — but unless you're dying to replace Sep 25 06:17:12 Logitech Harmony, it's hard to recommend against saving $200 and buying a Nexus 7. Sep 25 06:24:04 Wow, a remote control. Sep 25 06:24:11 I'm gonna use it with all my remote controlled devices. Sep 25 06:24:17 Like my NULL POINTER EXCEPTION Sep 25 06:24:23 \o/ Sep 25 06:24:32 But yeah Sep 25 06:24:35 I got my nexus 7 yesterday Sep 25 06:24:53 Well, I got it on friday, but I didn't know that, because google said it takes 2-4 working days to deliver when they actually sent it by next day delivery. Sep 25 06:24:57 And it's shiny. <3 Sep 25 06:27:05 if you can hack the flash to shoot out infrared you can make a universal remote Sep 25 06:28:26 Infrared is bad anyway Sep 25 06:28:30 Why are we still using it Sep 25 06:28:46 well to be compatible with older devices mostly Sep 25 06:29:20 hnn Sep 25 06:33:17 looks like someone is already on it ... http://www.zokama.com/androlirc Sep 25 06:35:02 oh shit, the sky is falling! Sep 25 06:35:04 http://www.huffingtonpost.com/2012/09/24/bacon-sausage-shortage_n_1909609.html?ncid=edlinkusaolp00000003 Sep 25 06:37:13 Are there any good tools available that help you lay out a UI graphically? Sep 25 06:37:29 pen + paper Sep 25 06:38:03 i tried balsamiq, but i thought it sucked Sep 25 06:38:05 deebo: How do I get the pen + paper to generate the layout in XML? Sep 25 06:38:28 input the paper product into a developer Sep 25 06:38:34 xml should follow in 1-60 days Sep 25 06:38:40 g00s: That's my complaint. There are options out there, but none of them seem fully fleshed out. Sep 25 06:41:01 Anybody know of resources explaining how to inflate a template and populate it with values? Sep 25 06:43:31 ohh Sep 25 06:43:45 You can use findViewById on views, and ids don't have to be unique? Sep 25 07:03:18 Tobias| IDs have to be unique in a certain activity Sep 25 07:03:42 You can have, say, textView1 in both activity1 and activity2, but you can't have two textView1 in the same activity Sep 25 07:04:20 At least that's what I'm pretty sure of. If I'm wrong someone should hit me Sep 25 07:06:54 RazielZ: that would be correct Sep 25 07:07:02 Woot. Sep 25 07:07:30 @+id/... must be unique in a single activity Sep 25 07:09:03 I have a layout/template_blah.xml Sep 25 07:09:12 That'll have IDs unique to everything else Sep 25 07:09:28 But I'll inflate it multiple times Sep 25 07:11:48 I am not familiar with this inflation concept :[ Sep 25 07:12:49 Looney: did you get it working yet ? Sep 25 07:12:57 neither am I for what it's worth, RazielZ :P Sep 25 07:14:03 nopes Sep 25 07:14:07 its java Sep 25 07:14:19 how can one get it working in s single go Sep 25 07:15:14 is there a way to continuously draw a jpeg on an imageview without causing so many garbage collects Sep 25 07:15:45 I made my own class that extends a View Sep 25 07:15:58 and in its onDraw method I drew the bitmap on the canvas Sep 25 07:16:08 works much more reliably than an imageview Sep 25 07:16:46 I tried doing the canvas with a surfaceview, but couldn't get that working Sep 25 07:17:45 as for the canvas, why is it more reliable. I thought it was more to do with the BitmapFactory Sep 25 07:17:51 and immutable Sep 25 07:20:45 Looney are you testing it on a mobile device or emulator ? Sep 25 07:21:09 device Sep 25 07:21:31 ok good Sep 25 07:21:36 Philpax: How do you typically do it then, because drawing is causing such a delay in my app Sep 25 07:25:04 Bitmap bitmap = BitmapFactory.decodeFile(bitmapString); is what I am doing, where bitmapString is a link to a jpg file Sep 25 07:25:48 you should draw asynchrounos, always Sep 25 07:26:32 if you do, sorry; i just now come :) Sep 25 07:28:33 use canvas and buffer it maybe ? Sep 25 07:29:54 ixc: Truthly, I do not think I am but am willing to take any advice. I currently have a fragment that handles drawing an image on part of the screen. An AsyncTask runs grabbing paths for jpgs over time and sends the string to a handler on the fragment. The handler then performs bitmapfactory and calls setImageBitmap on imageview Sep 25 07:30:17 In this process I get massive slowdowns due to garbage collection Sep 25 07:30:51 bitmap factory run on a 'worker' thread, only setimage on main thread Sep 25 07:30:55 and yes, gc work hard Sep 25 07:31:13 you can optimize the loading, with bitmapfactory's configs Sep 25 07:32:25 ok, so I should have bitmapfactory populate in the AsyncTask? I was going to do that, but was worried about passing the data through a bundle to the UIHandler. As for optimization, not sure of how or what settings to use? Sep 25 07:33:27 http://developer.android.com/training/displaying-bitmaps/process-bitmap.html Sep 25 07:33:45 can you people share your thoughts about this Logcat reposehttp://pastebin.com/Un7jzSbQ Sep 25 07:33:48 http://pastebin.com/Un7jzSbQ Sep 25 07:34:14 and you can load images in the size that you need and some other: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Sep 25 07:34:28 ixc: thanks, I will review and try these real quick Sep 25 07:35:18 with async task not will be faster; but application will more responsible Sep 25 07:35:52 I just have to figure out how to pass the ImageView. The main actiivity is what calls the asynctask, however, the imageView is in a fragment class which is separate. Sep 25 07:36:14 ixc: that is partly what I want. I don't want it to be so delayed, though I do still need to look into optimizing image loads Sep 25 07:37:40 you can pass the path like before Sep 25 07:37:55 and make a new async task for read images, in fragment Sep 25 07:38:49 yeah, guess that would be best. Man, I just feel like it gets so messy Sep 25 07:49:30 any idea what JIT unchain all for threadid is about Sep 25 07:58:40 setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL); <- baah. still getting textkeyboard. Weirdly every other edittext it works fine :-/ Sep 25 08:00:34 shmooz: got the audio on my Droid yay Sep 25 08:01:00 still no display Sep 25 08:05:09 ixc: so, I implemented the Async Task for bitmaps and the Large bitmap processing suggestions. It is still very slow and effecting the main UI Sep 25 08:05:36 turn on all kind of strict mode Sep 25 08:07:37 I am not sure what that is. Sep 25 08:09:41 Also, I keep getting a few Not a DRM file, opening normally. And buffer returned Sep 25 08:12:42 Looney yay! congrats Sep 25 08:13:19 well, need to fix this issue, till then no point of congrats :-( Sep 25 08:13:34 well you got something Sep 25 08:13:39 better than nothing Sep 25 08:45:07 hi Sep 25 08:45:15 anyone here from switzerland or austria? Sep 25 08:45:32 bbiab Sep 25 08:52:24 whats the best way to manage authentication on my own service server for mobile apps ? Sep 25 08:52:45 well, for my mobile app. Sep 25 08:55:01 consider supporting android backup for the credentials Sep 25 08:55:15 what do you mean ? Sep 25 08:55:17 though not directly relevant Sep 25 08:56:11 so that users can simply restore the device on getting a new one, if the old one breaks without having to rswtup things Sep 25 08:56:37 wow, you lost me :) (i'm a noob) Sep 25 08:57:10 http://developer.android.com/guide/topics/data/backup.html Sep 25 08:57:28 i never really did figure out how to backup a database Sep 25 08:57:37 interesting :) Sep 25 08:58:54 but back to the users, i dont think i'll store much data on the device Sep 25 08:59:34 I'm wondering how I should authenticate the users of the app with my server. Sep 25 09:00:04 johnnny22: depends on what exactly you want to accomplish Sep 25 09:00:12 johnnny22: is it a subscription service? Sep 25 09:00:58 humm Sep 25 09:01:11 subscription mostly, but with persona. Sep 25 09:01:22 so, user based system. Sep 25 09:02:43 attacks Sep 25 09:03:16 what do i get if I clone my account to a different device Sep 25 09:04:44 what do you mean ? Sep 25 09:04:59 you can use your google account on multiple device Sep 25 09:05:37 then you'll appear at many places maybe ? or you'll be jumping from spot to spot on the map :P Sep 25 09:05:53 johnnny22: well, you could use OAuth to authenticate against google account (or your own server, or possibly with OpenID linking it to Google or other account) Sep 25 09:06:29 johnnny22: also, it might be worth it to make an account authenticator service (though those are apparently broken on 4.1 for paid apps) Sep 25 09:06:33 i wanna keep the account on my server i think Sep 25 09:06:45 we add two google account on devices Sep 25 09:06:45 ah Sep 25 09:06:49 one of the owner Sep 25 09:06:53 and one of the company Sep 25 09:06:54 yeah, saw about those custom authenticators Sep 25 09:07:01 company only sync calendar Sep 25 09:07:14 it would be a free app. Sep 25 09:07:17 and some other thing, dont care now :) Sep 25 09:07:42 johnnny22: well, with OAuth/OpenID the account is still on your server, but it's linked to an existing account of the user with other service Sep 25 09:09:10 what about using the system's already installed built-in account authenticators to identify the user with his list of accounts. Sep 25 09:09:39 do i need to actually communicate with twitter if the user selects his twitter account? Sep 25 09:13:38 I was also considering a flexible identification system where users can create users and delete users very easily. Sep 25 09:14:05 without email validation, nor password, nor mandatory usernames. Sep 25 09:14:41 like a simple token identification system. Sep 25 09:15:20 ideally, a Custom Account Authenticator with a server-side that dispenses the tokens ;) Sep 25 09:15:36 a sufficiently random Swed, hashed? Sep 25 09:15:40 seed Sep 25 09:15:47 yeah, something like that. Sep 25 09:16:00 the client could maybe even generate it .. lol Sep 25 09:16:10 accel would be great for that. Sep 25 09:16:18 accel ? Sep 25 09:16:29 accelerometer Sep 25 09:16:41 ha, for the seed ? Sep 25 09:16:43 foe getting data to hash foe a key Sep 25 09:16:51 SIG Sep 25 09:16:54 sigh Sep 25 09:16:56 that and lat/long Sep 25 09:17:28 predictive text, plus not looking at the keyboard makes me sound idioticer. Sep 25 09:17:56 dont tell me you're typing from and android app :P Sep 25 09:18:26 anyways ;) Sep 25 09:18:53 but, ya, how does such a 'token' identification system sound like ? :p Sep 25 09:18:54 hmm, i wonder if you can get some good entropy from the camera sensor Sep 25 09:19:21 something along the lines of iso=max of a black frame Sep 25 09:26:05 or else, how could i identify users ;o/ Sep 25 09:31:28 if i permit the user to select any of the already existant accounts on the device to identify himself, how does that work with my business logic on my server regarding user identification/authentication. Sep 25 10:03:19 humm Sep 25 10:04:39 johnnny22, read ip on OAuth2 Sep 25 10:04:41 *up Sep 25 10:09:26 Can anyone suggest a good restkit-equivalent library? I've not found anything as mature for Android. Sep 25 10:15:45 Estel i did all my REST calls and parsing manually Sep 25 10:16:08 Estel: i think restlet has a java client that works with android Sep 25 10:16:24 Yeh, restlet was the best option I found. Sep 25 10:16:46 Ravenheart: did you back it onto a datastore? Sep 25 10:17:27 i made entities that represented my json objects Sep 25 10:17:34 parsed the json to those objects Sep 25 10:17:43 and used an adapter to feed to a list Sep 25 10:18:34 You didn't try following either of those Virgil Dobjanschi patterns then? Sep 25 10:19:17 Hello! I have a slight problem with android permissions Sep 25 10:19:28 well my app was working real time Sep 25 10:19:43 as in after 5 mins the data was invalid Sep 25 10:20:07 Fair. Sep 25 10:32:51 i'm looking to make my app able to add its own contacts to the Contacts list and keep them in sync with an external data source, is that what content providers do or should I be looking at something else ? Sep 25 10:37:27 hi Sep 25 10:37:38 meow:) Sep 25 10:38:21 whythe version of android api is from 8 to 16, but the version of sdk is only 2.x? Sep 25 10:38:56 Because it makes sense to give API versions integer increments, but not OS release numbers Sep 25 10:39:50 Estel: why it makes sense? Sep 25 10:40:39 Public facing version numbers are usually expected to denote the size and importance of a release Sep 25 10:41:04 ie the release of Android 3.0.0 is more important than 2.3.5 Sep 25 10:41:46 But for developers an API change doesn't happen with every Android release, and they're equally important (kinda) Sep 25 10:49:11 It's just easier to check if 16 is greater than 8. Sep 25 10:50:40 also, it's easier to compare an integer than complex version number Sep 25 11:06:57 so if I were to have an app that allows users to access their Twitter accounts through the Twitter API, what would I have to be saving in my application? Sep 25 11:07:20 hi Sep 25 11:07:25 I mean, the tweets, mentions, etc.. are all from their Twitter account which in turn is hosted AT Twitter Sep 25 11:07:32 anybody uses a macbook air for android programming? Sep 25 11:07:51 what's the question kikeb ? Sep 25 11:08:54 i want to swtich to macos, i'm in doubt with macbook retina or air. the question: Is macbook air (13", i5 dualcore 1.8ghz, 8gb ram) enough for running Java, Eclipse, virtual machines, apache, python, ... it would be for programming android, java and python+django (and html5, javascript)? Sep 25 11:09:13 yes. Sep 25 11:09:34 the applications you're talking about are basically nothing, except for virtual machines but you have 8GB of RAM Sep 25 11:09:38 shouldn't be a problem at all Sep 25 11:09:50 Sicp, have you an air? Sep 25 11:10:01 I have a Lenovo with the same specs as yours Sep 25 11:10:15 running newest Ubuntu with its heavy Unity DE Sep 25 11:10:27 13" screen? Sep 25 11:10:32 15 Sep 25 11:11:34 air has 13"... may be is short for using eclipse well no? Sep 25 11:12:04 i use 12" notebook :) Sep 25 11:12:36 kikeb: get a asus ux32vd Sep 25 11:12:49 13" full hd, upgradeable with an ssd and 8GB mem Sep 25 11:13:03 I have a ux31a, the full HD on a 13" screen is nice Sep 25 11:13:04 i'm using 15" laptons since years ago, and i'm linux user Sep 25 11:13:08 and it can more than handle eclipse Sep 25 11:13:11 btw i prefer osx for develop Sep 25 11:13:20 deebo, this laptop is really cool :) but a i want to switch from linux to macos Sep 25 11:13:45 if you want to pay a premium for it, go ahead Sep 25 11:13:47 kikeb: hackintosh? <.< Sep 25 11:13:48 , what this means? Sep 25 11:13:56 you will find it bothersome to have to see the code while the LogCat is up Sep 25 11:13:58 but...that's it Sep 25 11:14:04 sdk version , what is it? Sep 25 11:14:17 i only know the version 2.2, 2.3.1, not 4:( Sep 25 11:14:27 go to d.android.com and check api levels Sep 25 11:14:40 Tobias|, it's not legal. for my main OS i preffer not use piracy software Sep 25 11:14:57 Buy Mac OS X and put it on it Sep 25 11:15:04 It's not piracy, it just violates their EULA Sep 25 11:15:42 Tobias|, its true haha but no, in that case i preffer continue using linux Sep 25 11:15:51 fuck Apple. Sep 25 11:15:58 ^^ should sum up everything. Sep 25 11:16:23 i've switched from archlinux to ubuntu, looking for a more automatic linux Sep 25 11:16:35 archlinux is not handy anymore in this day and age Sep 25 11:16:57 takes a year to setup and every once in a while too often, you have to manually intervene to get something fixed Sep 25 11:17:09 i have osx on my all computer except notebook; arch on notebook Sep 25 11:17:10 but i don't feel confortable with ubuntu. and i'm tired having to fix my arch sometimes... Sep 25 11:17:47 i want an unix flavour that just works, that allows me to be more productive Sep 25 11:18:09 I'm still a fan of Arch Sep 25 11:18:14 it's my go-to linux distribution Sep 25 11:18:17 Ubuntu is doing that for me Sep 25 11:18:25 i've tried hackintosh for a while and i work well "under a mac" Sep 25 11:18:25 osx for me :) Sep 25 11:18:25 doesn't take too long to set up, but I admit it takes time and effort Sep 25 11:18:34 I'm a hobbyist and I have that time Sep 25 11:18:39 I went OS X-only for two days Sep 25 11:18:44 went back to windows after those two days Sep 25 11:18:46 couldn't stand it Sep 25 11:18:52 I'd use Mac if I had the cash, no doubt Sep 25 11:19:38 I do still have a hackintosh Desktop..but it's a desktop Sep 25 11:19:53 Sicp, i think like you. the problem is the money. they still are expensive hardware Sep 25 11:20:12 i also maintain a hackintosh, but it not so cool; sometimes need fixes Sep 25 11:20:17 their keyboards suck, though Sep 25 11:20:19 definitely; I got this top-notch Lenovo for just $700, no OS Sep 25 11:20:26 i'm thinking to buy a macbook retina with 8gb ram Sep 25 11:20:49 Mac keyboards suck? I heard the complete opposite Sep 25 11:20:51 ~2300 euro (i'm from spain) Sep 25 11:21:19 Sicp: they layout Sep 25 11:21:32 but air costs ~1300. if i a macbook air is good for programmers then i would buy an air Sep 25 11:21:36 but i want a machine for years Sep 25 11:21:44 from lenovo i think only thinkpad x series are comperable Sep 25 11:21:52 and it's dualcore i5.... 13" screen... Sep 25 11:22:02 that'll get you, at work they gave me a Lenovo that's 1 model older than this one that I have. it had the Fn key in the place of the Ctrl and Home/End were function keys Sep 25 11:22:04 and thinkpad x price also high Sep 25 11:22:07 hell. Sep 25 11:22:11 i think it's not enough Sep 25 11:22:39 btw all people prefer other things Sep 25 11:22:51 what? Sep 25 11:22:53 so kikeb you should try one, and make your decision Sep 25 11:23:26 Sicp: Fn/Ctrl swap is old thing in Thinkpads (I like it now), home/end as function keys... what? Sep 25 11:23:34 yea.. Sep 25 11:23:38 imagine, coding Sep 25 11:23:41 unless you got latest keyboard version (shipped on some older ones as well) Sep 25 11:23:43 ixc, hopefully! this would be the best solution Sep 25 11:23:48 and they were to the right and left of the Up arrow Sep 25 11:23:54 my god, I cringe at the thought Sep 25 11:23:57 but who leaves me a macbook air? :D Sep 25 11:24:05 Sicp: you got the keyboard from the latest model Sep 25 11:24:17 no it was a laptop, the laptop they gave me was one model older than this one Sep 25 11:24:35 Sicp: the keyboard part is compatible between last two generations of same line, iirc Sep 25 11:24:41 if not longer Sep 25 11:24:48 Sicp: just takes a BIOS patch at best Sep 25 11:25:05 so some of the older series got the new keyboard in recent shipments Sep 25 11:25:19 any of you got a DAS? Sep 25 11:25:27 this one I have here is similar to DAS, metal springs underneath Sep 25 11:26:07 kikeb: for a short time you can try it in apple stores Sep 25 11:26:16 i have a table layout in a scrollview. If i move down the position of the table during animation , the clickable areas do not come down. Any ideas how to solve the issue ? Sep 25 11:27:09 https://dl.dropbox.com/u/19390574/20120925_142435.jpg <-- the best keyboard I've ever used Sep 25 11:27:34 click, clack! Sep 25 11:27:47 for me was the best a really old ibm AT keyboard Sep 25 11:27:53 now best is das keyboard Sep 25 11:28:10 wish I could afford a DAS Sep 25 11:28:23 with shipping and all, it would arrive here at near $300 Sep 25 11:28:30 I am not paying $300 for a keyboard Sep 25 11:29:33 yeah, its not cheap Sep 25 11:30:22 i was 'lucky' with mine; but my luck was bad luck for other :( Sep 25 11:32:03 Microsoft Ergonomic 4k is the best xD Sep 25 11:32:29 have to you quickly sorry. thanks for your sggestions :) Sep 25 11:32:41 so now i feel complete with 2x20" display, macmini, das keyboard :) Sep 25 11:35:35 das ass.. Sep 25 11:54:45 http://www.exquisitetweets.com/collection/tomscott/1762 Oh lawd Sep 25 11:55:23 Oh, 404s now Sep 25 12:13:18 guys can you help me with some links where I could learn about UI Designing for android ? Sep 25 12:19:18 maheshm: http://developer.android.com/guide/topics/ui/index.html Sep 25 12:24:34 brian_de: thanks. i was hoping to het some unofficial but easily understandable guides. something like http://visualjquery.com/ Sep 25 12:25:27 maheshm: are you using windows ? Sep 25 12:26:19 Ivru: I am running on Ubuntu Sep 25 12:27:07 maheshm: well, honestly I'd stick to the official guides. If we all would do that, we wouldn't have all those ugly "let's adopt an iphon app for android"-apps out there ;) Sep 25 12:27:45 maheshm: but you could try e.g. http://www.holoeverywhere.com/ or www.androiduipatterns.com Sep 25 12:28:09 ... though, these aren't actually guides Sep 25 12:31:06 brian_de : thanks. I was on the lookout for some place i could learn fast.. Sep 25 12:31:25 Learning what? Sep 25 12:32:30 well, then you should really go through the offical guides. seriously. there is a lot of content you can rely on Sep 25 12:34:27 ... and if you have a specific question on how to do things, you can come here and ask people ;) Sep 25 12:38:59 Anyone have any ideas for workarounds for the new Samsung Galaxy exploit? Sep 25 13:08:23 so if I were to have an app that allows users to access their Twitter accounts through the Twitter API, what would I have to be saving in my application? Sep 25 13:08:32 I mean the tweets, mentions, etc.. are all from their Twitter account which in turn is hosted AT Twitter Sep 25 13:08:56 Only the means of authentication, I assume? Sep 25 13:09:11 through OAuth ,yea? Sep 25 13:09:13 I guessed as far Sep 25 13:09:30 Plus some settings and maybe a cache, but anything else depends on your app's specific purpose. Sep 25 13:09:39 correct Sep 25 13:09:46 thanks, was just making sure Sep 25 13:13:38 I'm having some issues (permissions / file not found) accessing my app's private files via Context.openFileInput()... I guess it's related to the fact that I've changed the app sign key, is it right? Sep 25 13:13:58 I uninstalled the previous version and install the newer one (which uses the new key) Sep 25 13:15:33 whats Context? Sep 25 13:16:11 anyone? Sep 25 13:17:46 neooo: http://developer.android.com/reference/android/content/Context.html Sep 25 13:20:49 umm Sep 25 13:23:16 that is kinda confusing Sep 25 13:23:35 what is it in layman's language? Sep 25 13:24:29 neooo: what is you don't understand? Sep 25 13:25:15 Intent intent = new Intent(this, DisplayMessageActivity.class); Sep 25 13:25:34 here "this" is supposed to a context Sep 25 13:25:43 *to be Sep 25 13:25:57 what does it do here? Sep 25 13:26:43 hello wtf is that? in values-[somelanguage]/strings.xml have string "somestring" and in values/strings.xml it does not got "NotFoundException: String resource ID"? WTF? Sep 25 13:27:06 *it does not Sep 25 13:27:10 . Sep 25 13:27:20 Your language is not somelanguage Sep 25 13:27:43 neooo: the Intent class needs to access something in Context to be able to do whatever it does Sep 25 13:27:56 why resources string not get in values-...? Sep 25 13:28:12 from Sep 25 13:28:34 Because values-somelanguage doesn't match your configuration Sep 25 13:28:36 appel1 : umm I guess i will catch as I do more practice Sep 25 13:28:39 thanks Sep 25 13:28:48 if in values haven't this string! Sep 25 13:29:16 You told android that string is only used in somelanguage Sep 25 13:29:21 If that's not true, don't tell it that Sep 25 13:29:35 should I use a content provider to provide a contact sync from an external data source ? Sep 25 13:29:55 It's be kinda stupid if it fetched resources from folders that don't match the current configuration Sep 25 13:30:21 if in values/ not exits, find in other! Sep 25 13:30:25 its simply Sep 25 13:30:27 way Sep 25 13:30:29 That's not how it works Sep 25 13:32:32 bingels: What you're saying is stupid Sep 25 13:33:02 What if the string isn't in values/ but it's in values-en, values-es, values-de, and 4 other.. Which does it choose? None, because it doesn't make sense to get resources that don't match the configuration Sep 25 13:33:02 cyrilmottier what? Sep 25 13:33:14 because it is completely this behavior would be completely undefined/random Sep 25 13:33:21 +1 SimonVT Sep 25 13:34:08 and you'd end up with a French value while being in Russia … which is completely normal #sarcasm Sep 25 13:34:11 undefined behavior isn't good.. you'd have v10 devices loading from values-v14 Sep 25 13:34:40 Get yourself to a Python shell and type 'import this'. "In the face of ambiguity, resist the temptation to guess." is there for a reason. Sep 25 13:36:21 cyrilmottier: You should write more posts on your website :) Sep 25 13:37:04 SimonVT: It requires time ... Sep 25 13:37:04 :) Sep 25 13:37:11 hehe Sep 25 13:37:31 hi SimonVT Sep 25 13:37:50 any prior experience with surfaceview and mediaplayer Sep 25 13:37:56 nope Sep 25 13:38:08 I am stuck Sep 25 13:38:15 no video Sep 25 13:38:19 only audio Sep 25 13:38:45 went through a lot of SO snippets Sep 25 13:39:13 I am pretty much sure that I am missing some itsy bitsy detail Sep 25 13:39:23 SimonVT: I also don't always have a good subject to talk about ^^. These days I don't have interesting things to talk about ... Holidays completely cleared my mind! Sep 25 13:39:25 but cannot figure what Sep 25 13:40:01 cyrilmottier: Yeah, it has to be interesting posts as well :p Sep 25 13:40:41 interesting is pretty subjective: I love UI but it's not the case for everybody. Sep 25 13:41:00 UI gives me creep Sep 25 13:41:17 I mean how am I suppose to know how a banker would like to use his phone Sep 25 13:41:35 https://twitter.com/pof/status/250540790491787264 Sep 25 13:41:37 lol Sep 25 13:41:55 Anyone having issues with LG Optimus V? I'm getting reports users can't log into our mobile websites and apps using this device. Sep 25 13:42:33 is this real ? Sep 25 13:43:09 or some prank? Sep 25 13:43:23 yes Sep 25 13:43:25 what are you talking about looney Sep 25 13:43:26 an iframe works better Sep 25 13:43:27 fyi Sep 25 13:43:29 The pof post? Real, pretty widely confirmed now. Sep 25 13:43:41 cyrilmottier: More people needs to love ui.. I sometimes look for an app, then give up cus they're all fugly Sep 25 13:43:54 tech1: asked about the twitter link shared Sep 25 13:44:02 some people are having trouble getting it to work via html Sep 25 13:44:14 but it apparently is very much a working via nfc Sep 25 13:44:18 they should use iframes Sep 25 13:44:21 instead of frames... Sep 25 13:44:33 Why, huh? Sep 25 13:44:49 It doesn't make a difference, loading the frame opens the dialer Sep 25 13:45:07 The vulnerability is that touchwiz autodials Sep 25 13:46:00 so anyone has idea about why my video is not displayed Sep 25 13:54:35 the problem is that touchwiz even exists Sep 25 13:59:02 i'm on android-dev and it requires registered nicks I think Sep 25 13:59:30 We can see that you're on android-dev Sep 25 13:59:41 This being android-dev and all Sep 25 13:59:58 Namidairo: in terms of UI, I had people prefer it over stock Sep 25 14:00:21 HDroid: wrong chan sorry, i couldn't change my nick, something about 'cannot change nickname while banned on channel' Sep 25 14:00:33 :) no problem Sep 25 14:02:20 Do I have to use any permission to access files through Context.openFileOutput/openFileInput? Sep 25 14:14:28 Is there a reference anywhere of the new notification system? In particular, there seem to be dozens of different fields to set on a notification, and the descriptions of what shows up where in what combinations is a little vague. The UI design documents are nice for saying what it's supposed to look like, but not how any of that translates into code. Sep 25 14:14:49 I could do trial and error with a lot of variations, but I thought I'd check first. Sep 25 14:24:18 There was a session at google io where they went through a lot of it Sep 25 14:24:24 Not sure which, so good luck :P Sep 25 14:26:26 any idea what "java.lang.SecurityException: caller uid 10045 is different than the authenticator's uid" means when calling addAccountExplicitly() ? Sep 25 14:26:46 I'm attempting to reduce the delay between a LocationManager is initiated and when a fix is attained. Would initializing the LocationListener in the Application context be a reasonable move to have a fix available when needed? Sep 25 14:29:10 freeone3000: what I do is make it a bound service and bind it in each activity. Sep 25 14:29:44 I do it that way because binding to the service in the Application doesn't allow you to stop it when your app is no longer visible. Sep 25 14:30:07 hoy! Sep 25 14:30:34 HDroid: Interesting. Thanks. Sep 25 14:41:23 wtf... "D/AccountManagerService( 145): bind attempt failed for Session: expectLaunch true, connected false, stats (0/0/0), lifetime 0.0, addAccount, accountType fm.last.android.account, requiredFeatures null" yet I have no hits when grepping for "fm.last" in the whole workspace.. how is that even possible ? Sep 25 14:42:14 The Developers blog has really dried up lately :/ Sep 25 14:42:59 /join #elasticsearch Sep 25 14:43:09 oups, sorry Sep 25 14:44:40 rvsjoen: 'fm' is the package name. It's almost certainly your last.fm app attempting to bind its accountmanager. Sep 25 14:48:33 hi! how is the GCM able to broadcast to appropriate devices? are the registered devices running a local service to oing the GCM server? Sep 25 14:48:36 uninstalled the app with adb, and did a clean, seems to have worked it out Sep 25 14:48:56 rvsjoen: yes, that probably was not from your app Sep 25 14:54:21 do I really have to install Kies to get the usb driver for gs2 ? Sep 25 14:54:53 you can edit the android_winusb.inf Sep 25 14:54:57 that's all I ever do Sep 25 14:55:53 The S3 doesn't use the standard driver. The S2 might not either. Sep 25 14:56:36 eh? Sep 25 14:56:41 how lame then... Sep 25 14:57:29 act Sep 25 14:57:53 freeone3000: the standard driver supports only nexus devices and some old ones, afaik Sep 25 15:03:09 standard driver works with all the phones I've used so far Sep 25 15:03:37 droid1, xperia play, htc rhyme, galaxy nexus (not even in the .inf) Sep 25 15:03:38 etc. Sep 25 15:03:52 So nexus devices and old phones. Sep 25 15:04:02 I'm sure new phones, too Sep 25 15:04:17 because if that's not true, then linux and mac wouldn't work Sep 25 15:04:20 bear in mind that the way that the windows driver works, it only shows up for hardware in the android_winusb.inf file Sep 25 15:04:23 but it's all usb acm Sep 25 15:04:29 it will absolutely work for other devices, but you need to edit that file Sep 25 15:04:33 right, so I just hack the .inf Sep 25 15:04:41 pfn: on linux and mac libusb is used Sep 25 15:04:41 all the same driver Sep 25 15:04:51 p_l, libusb for a usb acm device Sep 25 15:05:05 pfn: I meant that the "official" driver doesn't work on windows without inf hacking Sep 25 15:05:05 lov: My S3 was in the inf, but didn't allow remote debugging. Sep 25 15:05:16 p_l, oh, of course Sep 25 15:05:31 * lov shrugs Sep 25 15:05:37 my S3 works just fine Sep 25 15:05:42 the galaxy nexus isn't even in the sdk's android_winusb.inf :p Sep 25 15:05:43 I haven't tried wifi adb or anything fancy though Sep 25 15:05:49 pfn: on linux and mac, they don't use system driver at all Sep 25 15:05:52 I don't do adb over wifi either Sep 25 15:06:07 p_l, they do use the system driver, for accessing the acm device Sep 25 15:06:24 i.e. they open /dev/acm0 or whatnot Sep 25 15:07:14 So is there an established trick for making a list backed by a sqlite database that *doesn't* involve loading the entire db contents into memory? (or at least the contents rendered into list text)? Sep 25 15:07:48 dragorn: CursorAppender backed by a Cursor which runs the desired query. Sep 25 15:07:55 use an cursoradapter or whatever Sep 25 15:07:59 freeone3000: thanks, i'll read into that Sep 25 15:08:03 dragorn: You're going to have to load the contents rendered into list text into memory, because ... yeah. Sep 25 15:08:07 I missed that option somehow before in the other examples Sep 25 15:08:13 freeone3000: oh. So it's still going to load the whole db? Sep 25 15:08:25 Nothing established for paging queries down? Sep 25 15:08:38 no, it's a cursor Sep 25 15:08:42 it doesn't load the whole db Sep 25 15:08:47 Perfect, then Sep 25 15:09:34 the stuff I was looking at was basically making all the list entries at once and that just seems like a bad plan :P Sep 25 15:10:41 ? Sep 25 15:11:38 well in a perfect world it would know how many entries there are for scrolling, and would populate them for viewing as they came into view and destroy them when they left Sep 25 15:12:00 a cursor can potentially have that information Sep 25 15:12:01 so yes Sep 25 15:12:02 otherwise it's making 1500+ list entries in ram Sep 25 15:12:34 er wait. Sep 25 15:12:38 are you talking about with the cursor? Sep 25 15:12:40 or with your UI? Sep 25 15:12:45 You're using a CursorAdapter with a ListView, yes? Sep 25 15:12:47 (yes?) Sep 25 15:13:35 Right now I'm not doing anything. The stuff I had found in tutorials implied it would be generating all the text at once and that would use a retarded amount of ram, so i was hoping there was an established way to be smarter about it Sep 25 15:13:46 there is; use a ListView and a CursorAdapter Sep 25 15:13:53 i'll look at the cursoradapter stuff Sep 25 15:14:14 The idea of the listview is that it only generates the views that are actually visible, and recycles the ones that are no longer visible. Sep 25 15:14:18 I think he's talking about not loading the entire result of his query into memory Sep 25 15:14:24 lov: exactly what I want Sep 25 15:14:29 maybe, but I thought I'd ask and make sure :) Sep 25 15:14:39 SimonVT: Yeah; I think I'm on the same page as everyone else now Sep 25 15:14:46 * dragorn is UI-tarded Sep 25 15:14:49 ( dragorn: do the 'hello world' notepad tutorial on d.android.com! :D ) Sep 25 15:15:22 Your 1500 item query is still loaded into memory, it just only instantiates as many views as are visible on screen Sep 25 15:15:24 Write a device driver in java for usb userspace? Easy! make a god damned list? Ugh. :P Sep 25 15:15:49 i no rite Sep 25 15:16:02 sounds about right Sep 25 15:16:34 is it normal to dread opening Eclipse? Sep 25 15:17:09 if you work on our codebase yes Sep 25 15:17:11 Philpax: did you forget to sacrifice the chicken? Sep 25 15:17:12 SimonVT: Really, it makes a cursor with the full contents of the query? It doesn't dynamically grab the results into memory when you advance the cursor? Sep 25 15:17:33 dragorn: That seems like an awful easy thing to test :D Sep 25 15:17:38 lov: it does Sep 25 15:17:41 lov: I'm just lazy :P Sep 25 15:17:47 insert 1m entries into test database, select *, inspect cursor Sep 25 15:17:49 alankila, I sacrified the chicken and the cow, but I still feel like the demon will get me in my sleep Sep 25 15:18:29 perhaps you need happy pills. Sep 25 15:20:07 Philpax: sounds like you forgot the incense Sep 25 15:21:03 damn Java development requires too many satanic rituals Sep 25 15:27:49 Is there any standardized way of using intents for choosing images from gallery & camera? Sep 25 15:28:28 I see a discussion here : http://stackoverflow.com/questions/4455558/allow-user-to-select-camera-or-gallery-for-image Sep 25 15:29:35 Intent.ACTION_PICK was the accepted way, I thought (haven't looked at SO) Sep 25 15:31:15 evancharlton: ok Sep 25 15:32:24 Is it possible to apply a custom layout to the results shown in the custom search suggestions? For instance, I want to have some of the search results color coded or some such Sep 25 15:33:27 evancharlton: What I'm looking for is that some way to list all possible source of an image depending on a device. I see file managers such as Solid Explorer or apps such as Dropbox can provide images. So possible sources can be "Camera", "Gallery", "Dropbox"... it is a good thing to be able to list all these together in a list Sep 25 15:34:21 I've gone through the search tutorial but didn't see any mention of being able to set a custom layout for the results returned by the cursor that I made Sep 25 15:35:21 napster: yeah, Intent.ACTION_PICK should theoretically handle that, as long as the apps are written correctly Sep 25 15:35:41 ohai evancharlton Sep 25 15:35:49 evil_andy: CursorAppender is a ListAppender, so you'd override getView(). Sep 25 15:36:24 looking up CursorAppender now... thanks Sep 25 15:36:45 evancharlton: hmm not exactly. ok JB it opens up a system dialog to choose an app. I can either choose one app for the instance or I can set it permanently. Sep 25 15:36:58 s/ok JB/on JB Sep 25 15:37:16 I have a Listview with my adapter, etc. Why on earth wont it remove the last item from the view. I have to close the activity and open it again to remove it. so retarded. Any ideas ? Sep 25 15:37:21 How do I bind a service to a fragment? I attempted using getActivity() as the Context for the Intent, but I get an android.app.ServiceConnectionLeaked exception. Sep 25 15:41:09 freeone3000, not seeing anything on cursorappender... I created a ContentProvider which returns a custom AbstractCursor, I can color code the results after the user has pressed enter and the search results are shown, but I'm wondering how to color code the entries that are shown as the user is typing their query. I might just not be understanding your suggestion though Sep 25 15:43:20 evil_andy: A Cursor, in and of itself, doesn't have a View. What's your view? Sep 25 15:43:21 evil_andy: I think he meant CursorAdapter, adapters are the bridge between your data and the list - they prepare the view for the list Sep 25 15:44:32 freeone3000, I think that might be my issue, I'm not sure what my View is because as far as I can tell, the Search Dialog is handling everything for me :| (following this tutorial: http://developer.android.com/guide/topics/search/adding-custom-suggestions.html Sep 25 15:46:08 hi Sep 25 15:47:17 evil_andy: It's a ListView, but you don't have Adapter access. Provide whatever columns you wish to the search box. Sep 25 15:48:21 i have a problem, ActivityA send a string to server, user can change Activity, how can ActivityB receive server response? Sep 25 15:49:03 sup everybody Sep 25 15:49:57 I was wondering if any of you guys is using "json-simple" to hande any of their json needs? Sep 25 15:52:12 Ahh, ok. That's what I was afraid of. is there any way to override which ListView it uses? Sep 25 15:54:25 Is it possible to list all apps that is capable of returning an image as a result? (Gallery, Camera, Apps such as Dropbox etc)? Sep 25 15:54:48 and their intent string as well ;) Sep 25 15:55:45 sasson you need to use some kind of "controller" object to send and receive the request, and have it dispatch the response to the activities Sep 25 15:55:48 napster: get it from packagemanager Sep 25 15:56:27 anybody ever use phonegap for a published app? Sep 25 15:56:49 evancharlton: ok, that seems to be useful. Is it possible to know if a particular app supports a specific intent such as ACTION_PICK? Sep 25 15:56:52 was looking into it for an iOS + Android app, but I'm not sure I like not being native Sep 25 15:56:52 use a static singleton for yuor controller, then in activity b onStart() or whichever lifecycle callback makes sense, basically do like Controller.getInstance().addListener(this); Sep 25 15:57:13 anyone can help me? Sep 25 15:58:21 speakingcode-wor, I want to post to a servlet json messeges, I found "json-simple" and wondering if I should use it for the json part Sep 25 15:58:25 C0deMaver1ck: I have checked phoneGap a while before. They uses something like a webview or something to provide an HTML/CSS based UI Sep 25 15:58:57 define an interface with the callback methods from your controller and have the activities which should get the response implement that interface, for instance interface IServerResponseListener { public void onServerResponse(String response); } and ActivityB extends Activity implements IServerResponseListener { ... } Sep 25 15:59:55 then in the 'controller' when it gets the server response it can do: for (IServerResponseListener listener : myResponseListeners { listener.onServerResponse(responsedata); } Sep 25 16:00:21 i dunno i've only parsed JSON by hand myself, never hadto deal with json that i couldn't easily parse by hand Sep 25 16:00:24 napster: yes Sep 25 16:00:36 ok Sep 25 16:01:25 hey, i think i read somewhere that google released their own android eclipse distribution and you don't have to install all the ADT plugins und related zeug any more Sep 25 16:01:44 s/zeug/stuff/ sorry was thinking in my native language when typing that Sep 25 16:01:53 evancharlton: You got a doc/link or something about it, I can refer to? Sep 25 16:02:49 so I'm using an AsyncTask to go out and make an api call to a server, and I want to be able to toss up an error dialog if the server returns an error.. I'm doing it from within the Handler() that the AsyncTask uses, but I keep getting a message about having a leaked window Sep 25 16:02:56 is this common and does anyone know any way around it? Sep 25 16:03:25 uh, what? Sep 25 16:03:36 tnzr: call showDialog in your result method? :P Sep 25 16:03:48 napster: d.android.com -> look for packagemanager Sep 25 16:03:57 napster: then look for something that accepts an intent Sep 25 16:04:03 msch you might be thinking of motodev studio which is basically an eclipse distirbution with ADT and some extra plugins installed - google acquired that division of motorola so it may be rebranded now, dunno Sep 25 16:04:06 evancharlton: ok Sep 25 16:04:38 speakingcode-wor: ah thanks! Sep 25 16:06:05 speakingcode-wor: can you recommend motodev over eclipse+ADT? Sep 25 16:07:53 msch i'm not sure if there is any difference anymore, but the last i compared motodev had some extra features for common tasks Sep 25 16:08:06 so i would go with that Sep 25 16:08:11 http://developer.motorola.com/tools/motodevstudio/ Sep 25 16:08:30 speakingcode-wor: k thanks again! Sep 25 16:08:44 alright, this is a little irritating... If I look through a file manager on Android, I see the files, and if I do 'adb shell' and go to /mnt/sdcard, I see the files there too, and they're world-readable Sep 25 16:08:55 but if I plug in the device (Transformer TF101) I see only some of the files in that directory Sep 25 16:09:53 no amount of refreshing or unplugging/replugging is seeming to fix this Sep 25 16:10:02 Hodapp: is it using PTP or USB Mass Storage? Sep 25 16:10:10 I've noticed caching issues when using PTP Sep 25 16:10:19 s/PTP/MTP/ Sep 25 16:10:20 'Connected as a media device' Sep 25 16:10:29 so.... MTP? Sep 25 16:10:35 my options seem to be MTP and PTP Sep 25 16:10:51 * lov shrugs Sep 25 16:10:52 it's MTP now Sep 25 16:10:58 not sure what to suggest, sorry. Sep 25 16:11:47 Were those caching issues on the side of the PC? Sep 25 16:11:54 Not a clue. Sep 25 16:17:34 Hi, Is there any significant difference in API between android builds(same versions)? I have Samsung Galaxy S2 updated to android 4.0.3 (model number: GT-I9100, firmware version: 4.0.3, baseband version: I9100XXLPW, kernel version: 3.0.15-I9100XWLPD-CL524746dpi@DELL154 #3, build number:IML74K.XWLPD) and I developed an app which works perfectly on my phone. Sep 25 16:17:39 By my client also have this Samsung Galaxy S2 updated to andriod 4.0.3 but with slightly differences: model number: GT-I9100, firmware version: 4.0.3, baseband version: I9100BULP7, kernel version: 3.0.15-I9100BULPD-CL672248dpi@DELL177 #3, build number:IML74K.BULPD and on his device my application crash during basics performence like finish an activity or something. Have you any idea what may couse this kind of problems? Sep 25 16:19:04 aTah, That's strange. Should not be happening. Sep 25 16:19:07 Doesn't logcat give you clues? Sep 25 16:19:31 speakingcode-wor: ok i tried the motodev download but it was throttled at 60 kb/s (i tested from two locations both with 100 mbit/s internet) so i decided screw motorola :) Sep 25 16:19:39 The problem is i cant get this other phone to connect to debugger, i have only my and logcat is clean. Sep 25 16:20:23 aTah, imgur.com/jacoj Sep 25 16:20:25 :D Sep 25 16:20:31 == lut4rp Sep 25 16:20:49 false. Sep 25 16:20:56 And I don't use any rooted lowlevel hardware tricks which may cause this very easy... just clear API Sep 25 16:21:50 lut4rp - well... as i said, cant get one. Sep 25 16:22:07 the other phone is like... 2k km away Sep 25 16:22:10 It should just work. It's possible something is terribly wrong with his phone. Sep 25 16:23:14 hmm, maybe his update went wrong Sep 25 16:24:07 but he won't format his phone for my app, i think, so Sep 25 16:24:51 aTah, Samsung provides a Remote Testing Lab service for free Sep 25 16:24:58 hi, I'm following a tutorial and keep getting this error Sep 25 16:24:59 You can test your app on a GSII, over the internet Sep 25 16:24:59 java.lang.IllegalArgumentException: Binary XML file line #7: Duplicate id 0x7f050000, tag null, or parent id 0xffffffff with another fragment for com.example.android.rssfeed.DetailFragment Sep 25 16:25:07 i'm just running out of ideas so i decided to came here... maybe someone has same problem Sep 25 16:25:30 lut4rp - oh, that could be interesting, thanks - i will check this. Sep 25 16:25:39 msch yeah their server is slow for some reason, when i had motodev i noticed updates downloaded incredibly slow Sep 25 16:25:43 aTah, http://developer.samsung.com/remoteTestLab.do Sep 25 16:25:44 it's supposed to be boilerplate Fragment tutorial, but I can't see what's wrong :/ Sep 25 16:26:33 http://www.vogella.com/articles/Android/article.html#fragments_tutorial Sep 25 16:36:43 lov: sorry for the late response .. basically I'm throwing up an AlertDialog inside the handleMessage() method of a Handler, and it's causing the leaked window crashes (if that makes more sense) Sep 25 16:41:45 what do most apps use for data storage? im not sure if i should save to a file or a SQLite DB Sep 25 16:42:47 I can't install an apk via adb (adb install -r path\to\MyApp.apk), adb return [INSTALL_FAILED_INVALID_APK], while logcat says "Unable to read AndroidManifest.xml of /data/local/tmp/CrystalPoll-0.1.apk". However, I can install the very same apk file if I copy it to the one and manualy open it Sep 25 16:43:23 any ideas? Sep 25 16:44:27 hello Sep 25 16:44:55 I have a service where I assign some data to a varibale inside its onCreate method Sep 25 16:45:13 I want to access this variable data through a Runnable Sep 25 16:45:16 how to do that? Sep 25 16:46:28 wissem: Assuming it's a local variable and your runnable is an anonymous class, you would need to make the var final Sep 25 16:47:12 xterminator: depends on how much data and what type (primitives, complex types, etc.) Sep 25 16:49:09 BlackYue: yes the runnable is an anonymous class and its a local variable in the onCreate method Sep 25 16:49:28 I've added it public final String dBmindata=""; Sep 25 16:49:36 still not able to access it :( Sep 25 16:49:53 Hi everybody! Can anybody tell me how I can keep a ListView item selected once it's clicked? This is only important for a two-column view on tablets. On the left I have a ListFragment that shows entries, on the right there is a Fragment that shows content. I now want to keep the selected list item on the left highlighted in some way so the user knows which entry the details belong to. Unfortunately I haven't found a solution for that yet. I've tried a wo Sep 25 16:50:23 evident: pastebin.com, show us some source Sep 25 16:50:31 So, uh. Who's ready to make Blackberry 10 apps after watching this? RIM serenades fleeing developers with LOLWTF video Sep 25 16:50:48 http://www.youtube.com/watch?v=WlsahuZ_4oM&feature=player_embedded Sep 25 16:52:29 wissem: You cant have it declared "public" if it's a local variable. Anyway, can you post some code? Sep 25 16:53:09 lut4rp - thaks for this great site, unfortunetly there is no galaxy S2 with android 4.0.x Sep 25 16:53:52 but i will test on another devices with 4.0.x, will see... Sep 25 16:54:25 Is there a way to forcibly update an appwidget from an adb/shell ? I tried an "am broadcast -a android.appwidget.action.APPWIDGET_UPDATE" but that doesn't seem to trigger the onUpdate method in the widget provider. Sep 25 16:55:09 BlackYue: take a look: http://pastebin.com/8x3ieXBW Sep 25 16:55:30 I want dBmaxdata in my runnable Sep 25 16:56:47 evident: I'm pretty sure that is covered in the fragments example on this page: http://developer.android.com/guide/components/fragments.html Sep 25 16:56:53 how can I detect if an area (listview or linearlayout) is overflowing (and needs scrolling)? Sep 25 16:57:29 For example, I'd use a vertical layout, but if it's too big, I'd switch to two columns -- to try to ensure it's all visible without scrolling for the user Sep 25 16:59:13 aTah, You're welcome Sep 25 16:59:59 I'm attempting to show a ProgressBar while I load data, and hide it when I'm done. Is this normally done with a Dialog or somesuch? I'm having issues simply by setting it to Visibility.GONE - it's always gone, even before the ListView's items areadded. Sep 25 17:01:08 BlackYue: any ideas? Sep 25 17:02:05 freeone3000: what's the problem with visibility? when you set it to visible it still doesn't show? Sep 25 17:02:09 do you have anything in it? Sep 25 17:02:25 make sure something's in it and make sure it's visible and start from there Sep 25 17:04:20 Is there a way to specify an integer array as an intent extra from the "am" command? Sep 25 17:05:12 when i set breakpoints in eclipse, the program skips right past them. how can i fix this? Sep 25 17:05:47 is the debugger actually attached? Sep 25 17:05:58 how would i know? Sep 25 17:06:07 don't set breakpoints and then you'll have consistent behavior between run and what you've set. :) Sep 25 17:06:43 (I'm unfamiliar with your situation.. good luck though.) Sep 25 17:06:47 evancharlton: there is not much to show... when a List item is clicked a callback fires the activity which shows the detail fragment on the right... and in the onListItemClick I tried to store the selected item manually... http://pastebin.com/rWhTnR5j Sep 25 17:07:02 i like breakpoints because i have to wait ten minutes for the app to reload every time Sep 25 17:07:09 hey all Sep 25 17:07:19 doc_savage: All it says there is that ListView.CHOICE_MODE_SINGLE should be set in the two-pane view so the seletion is kept Sep 25 17:07:20 whomp: the debugging pane in eclipse will show it if you're attached Sep 25 17:07:30 nothing is kept highlighted there Sep 25 17:08:06 i was wondering, i have animations between activities, and i have animatinos between tabs in my tabhost, but how do i make it so that the animation that happens for the fragmentactivity also fires the tab animation simultaneously Sep 25 17:08:25 If I have a 'back' button on an options menu, does it make sense to have it call onBackPressed() ? Sep 25 17:08:41 right now i have the fragment activity fading in and then the tab slides from the right Sep 25 17:09:01 maslen: I think the better question is why you have a back button in the options menu Sep 25 17:09:12 evancharlton: Not my code. I'm doing some quick patching. Sep 25 17:09:17 evancarlton, when i go to the debug perspective, it has a window with a list of breakpoints, which includes the one i set. is that how i know it's attached? Sep 25 17:09:34 evancharlton: The current implementation of the project I'm looking at uses a separate function that onBackPressed() and the options menu both call. To me, that seems a bit backwards. Sep 25 17:09:46 whomp: that's not the pane you're looking for. Look for one titled "Debug" Sep 25 17:10:34 oh that one. yeah it has nothing in it Sep 25 17:10:54 "connect to a process"? Sep 25 17:11:16 evident: setChoiceMode() sets the ListView as selectable, the setItemChecked() in their showDetails() method is what selects it, the position is stored using onSaveInstanceState() and retrieved in onCreate() Sep 25 17:11:53 onActivityCreated()* Sep 25 17:12:33 evancharlton: From a SW E point of view, this code sucks. I'm just closing some tickets for a professor, as he requested I take a look at it. I've written... one "Hello World" style android app so far :). Sep 25 17:13:14 is there any way of making my fragment activity completely transparent? Sep 25 17:13:44 would that look weird? Sep 25 17:13:59 android:theme="@android:style/Theme.NoDisplay Sep 25 17:14:04 except with a closing quote Sep 25 17:14:32 evancharlton, ok, if i do this will my fragments also be transparent? Sep 25 17:14:41 kaneda^: no Sep 25 17:14:44 hooray Sep 25 17:14:52 one moment Sep 25 17:15:32 Anybody know how I can use NotificationCompat2 to build Jellybean notifications that are similar to say... Foursquare? That is, I'd like to use the BigText style notification, but also add actions. Is it possible to combine the styles somehow? Sep 25 17:16:03 BigText style can have actions Sep 25 17:16:07 just use .addAction(..) Sep 25 17:16:08 evancarlton, any ideas? Sep 25 17:16:21 whomp: you need to figure out why your debugging isn't attaching Sep 25 17:16:36 whomp: have you tried starting the app in debug mode? Sep 25 17:16:41 is android:debuggable set? Sep 25 17:16:42 etc Sep 25 17:17:05 evancharlton, lies! Sep 25 17:17:13 the fragments are also hidden Sep 25 17:17:23 ah cool thx Sep 25 17:18:27 Thanks, evancharlton. Sep 25 17:19:06 hey guys can anyone linke me to a good tutorial for using python to serve android client requests Sep 25 17:19:21 (to a sql database on a webserver) Sep 25 17:22:01 OnActivityResult from a camera intent does not return the newly taken image : getContentResolver().openInputStream(data.getData()); - this is code I use Sep 25 17:22:23 data.getData() returns null Sep 25 17:23:01 What could be the possible reason? I tested on JB and 2.2 Sep 25 17:23:07 we have no fucking clue what "data" is Sep 25 17:23:09 is it an intent? Sep 25 17:23:10 evancharlton, so i made a little test Sep 25 17:23:30 lov: ah sorry, data is the intent passed to the onActivityResult() method Sep 25 17:23:38 i override the transition with an alpha animation that takes place over 1ms Sep 25 17:26:38 lov: Here is the code I use : https://gist.github.com/3783290 Sep 25 17:28:46 Is there a way to have a widget notified when the device orientation and/or keyboard status changes? All of the solutions I've found seem to only work for Activities or newer SDK's. I need to support sdk 7. Sep 25 17:29:58 The reason I need this is that half of my widget goes blank after a device flip. Sep 25 17:31:12 lov, i want to animate between an activity and a fragment activity Sep 25 17:31:21 when i do this the fragment activity is animated first, then it's first fragment Sep 25 17:31:25 causing this awkward gap Sep 25 17:31:31 but going back to the previous activity is smooth Sep 25 17:31:38 haha, https://twitter.com/pof/status/250540790491787264 -> the USSD code to factory data reset a Galaxy S3 is *2767*3855# can be triggered from browser like this: Sep 25 17:31:47 i.e., hooking into finish() is great, hooking into startActivity() makes no sense with fragments Sep 25 17:33:09 the animations WITHIN the fragmentactivity for each fragment look great too Sep 25 17:33:18 it's just the animatino between the activity and the fragment activity that looks choppy Sep 25 17:37:09 doc_savage: thank you for the tip... I have taken a deeper look into that and the example there works fine if I use a standard ArrayAdapter with android.R.layout.simple_list_item_activated_1... but I am using a custom ArrayAdapter... what do I need to have set there so the selection is being kept? Sep 25 17:42:44 Hello! I need a bit of help. I am setting up a web service on the server-side for my Android app and am getting the following message while trying to use the jTDS JDBC driver. Sep 25 17:42:47 java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver Sep 25 17:43:47 jtds-1.2.6 is added to the build path of the web service... Sep 25 17:45:40 cpetersen4: seems like you need to track down docs for whatever web server tech you're using Sep 25 17:53:22 whats the most efficient video stream type to feed to Media Player ? rtsp seems to be choking Sep 25 17:53:43 maybe I should use Flash with RMTP Sep 25 17:53:56 or Vitamio plugin ? Sep 25 17:54:15 evident: you could have a var store the selected position in the adapter, and set it in the ListFragments onListItemClick() method, then you can set the view's selected property in getView()/bindView() Sep 25 17:56:37 how can i dynamically place text views on top of my map view? Sep 25 18:01:08 Found my issue. It turns out that I'm hiding the progress bar once I have data, but not once the changes are pushed to the UI. Is there a "all listview changes have been made" listener? Sep 25 18:03:04 Or is there any other reason that I would have a significant delay between firing a notifyDataSetChanged() on my BaseAdapter, and the ListView being updated? Sep 25 18:04:07 scorche|sh: MPEG4-TS, if your device can handle it. Sep 25 18:05:43 hi, I was wondering if anyone in here has done Objective-C iOS development? And if so, how similar or different it is compared to Android development? Is any of the knowledge from one transferable to the other? I already know some Java and C# but have never done mobile development. Sep 25 18:05:58 it's still...programming Sep 25 18:06:09 basic algorithms and data structures are the same Sep 25 18:07:47 canadiancow, can i start an exit animation AFTER the entrance animation? Sep 25 18:08:13 has anyone implemented an intent filter in their manifest that catches all subdomains? Sep 25 18:08:25 i.e. *.foo.com Sep 25 18:08:51 cokacokacoh: "foo.com" as the host should catch that. Sep 25 18:08:52 cooooooooooooooooooooooooooow Sep 25 18:09:03 In NotificationCompat2, is there any way to get the title text in a BigTextStyle notification to not ellipses at the end if it's too long, but to wrap to the next line instead? Why is this stuff documented nowhere? ;) Sep 25 18:09:29 freeone3000, that's the one thing i didn't try heh Sep 25 18:09:30 thanks Sep 25 18:10:32 kaneda^, try it? Sep 25 18:10:38 canadiancow, how? Sep 25 18:10:46 i tried putting a startOffset, this doesnt work as expected Sep 25 18:10:50 there is no delay for this Sep 25 18:11:24 i dont even know what you're talking about Sep 25 18:11:42 Ah. Of course there's a delay, because I make a blocking call for my location from the EDT. Duh. Sep 25 18:11:55 canadiancow, damnit man, keep up Sep 25 18:12:19 animations damnit, TWEENS Sep 25 18:12:23 Double-nevermind. That's called off the EDT, as part of the AsyncTask, so if that completes, the AsyncTask completes. Sep 25 18:12:23 * kaneda^ runs around in circles Sep 25 18:15:54 between iOS and Android development are there similar design patterns? I remember briefly reading about states for Android apps, are they the same for iOS? Sep 25 18:16:35 design patterns depend on the kind of app you are building Sep 25 18:16:36 canadiancow, don't mind me, i'm just driving myself crazy trying to make these animations sync up Sep 25 18:16:37 design as in UX/UI or design as in architecture? Sep 25 18:16:47 iOS uses Objective C eindoofus Sep 25 18:16:50 I suppose both Sep 25 18:16:55 and you need to develop on mac Sep 25 18:17:15 I know. But I'm wondering how similar the two are in other respects Sep 25 18:17:18 panegyric: he asked about design patterns. Sep 25 18:17:22 "I got rid of my iPhone about a year ago - I prefer Android" - Guy Kawasaki Sep 25 18:17:25 not about languages and OSes Sep 25 18:17:26 Anybody know if it's possible to make the title text not ellipses in NotificationCompat2, but wrap instead? Sep 25 18:17:32 design patterns are like mvc or factory Sep 25 18:17:40 Listener pattern! :D Sep 25 18:17:48 i think from a 30,000 foot view they are similar in architectural approach. one big diff i beleive is that ios doesn't have the granular equivalent to Activity that android does and the same activity lifecycle stuff - the whole app is treated as one entity rather than screen by screen, but i don't know much about it Sep 25 18:18:07 * kaneda^ tears out hair Sep 25 18:18:12 you also have to realize that iOS isn't really multiprocess. Sep 25 18:18:17 I mean it kind of sort of is but it really isn't Sep 25 18:18:29 what lov? Sep 25 18:18:29 lov, it's a unicorn Sep 25 18:18:30 with android, you definitely have multiple applications interacting Sep 25 18:18:57 i thought they were sandboxed Sep 25 18:19:00 lov, gui thread interaction is still limiting Sep 25 18:19:15 eindoofus: Oh, no, not at all. Intents can be fired anywhere. Sep 25 18:19:17 yeah that's fair, but in android you can make an app that's totally without a UI./ Sep 25 18:19:25 yeah, i think ios takes a more "sandbox"/ isolated approach in terms of data sharing, and apps can't launch portions of other apps like android can do with activities /intents afaik Sep 25 18:19:28 eindoofus this is an android channel Sep 25 18:19:32 e.g. you can create an app which only has a contentprovider which other applications can connect to Sep 25 18:19:49 lov, oooohyaaaaah Sep 25 18:19:52 or a task manager Sep 25 18:19:56 lov is that really an app then? or more of a resource Sep 25 18:19:56 ugh Sep 25 18:20:04 tech1: it's absolutely an application. Sep 25 18:20:06 tech1, is a resource manager not an app? Sep 25 18:20:16 are live wallpapers applications? Sep 25 18:20:17 i suppose Sep 25 18:20:22 are apps that just provide widgets applications? Sep 25 18:20:23 tech1 see definition of application Sep 25 18:20:24 lov, widgets i thought Sep 25 18:20:32 lov, i dunno, is there such a formal definition? Sep 25 18:20:35 you are probably right Sep 25 18:20:49 kaneda^: sure; UI has nothing to do with it. Sep 25 18:20:59 . The act of applying. 2. Something applied, such as a cosmetic or curative agent. 3. a. The act of putting something to a special use Sep 25 18:21:08 speakingcode-wor: har har Sep 25 18:21:24 Of or being a computer program designed for a specific task or use Sep 25 18:22:12 they're all applications. they may not be buzzword 'apps', but heh Sep 25 18:22:55 so as long as the resource has code in it it can be a program or app? Sep 25 18:23:16 effectively Sep 25 18:23:18 if it applies a process to carry out a task it's an applicaton Sep 25 18:23:24 lov, right, anything that interacts w/ the OS or other apps is an app itself Sep 25 18:23:28 it doesn't even need to have code Sep 25 18:23:41 so a folder of sound files is an app? Sep 25 18:23:44 you could package some sort of resources that have a way of automatically being executed Sep 25 18:23:48 it may not meet the common current buzzword intepretation of "app" but it's still an application Sep 25 18:23:52 * lov shrugs Sep 25 18:23:53 semantics Sep 25 18:24:00 tech1, it's part of a larger app that allows you to visually explore the disk Sep 25 18:24:04 Okay, let me try a different question. Is it possible to center the icons associated with actions in NotificationCompat2? Sep 25 18:24:15 ok Sep 25 18:24:23 e.g., explorer.exe in windows Sep 25 18:25:39 finding the circumfrence of a circle is an application of geometry and an application of multiplication (assuming your application is 2pi*r) Sep 25 18:26:03 speakingcode-wor, that's a very...euclidean view ;) Sep 25 18:26:38 any females on here Sep 25 18:26:56 lol Sep 25 18:26:59 looking for love? Sep 25 18:27:04 lov, someone's looking for you Sep 25 18:27:06 in all the wrong places Sep 25 18:27:06 Audible laughter. Sep 25 18:27:09 is your app targeted at females? Sep 25 18:27:16 i always wanted to tell my kids i met their mother on an android-dev channel on irc Sep 25 18:27:23 ... Sep 25 18:27:44 Looking for love in too many faces (or irc channels) Sep 25 18:28:06 * C0deMaver1ck thinks how I met your mother ends with talking to a girl in #andorid-dev Sep 25 18:28:50 lov, i was just joking you didnt have to kick me out Sep 25 18:29:03 lov hurts Sep 25 18:29:03 seriously... Sep 25 18:29:07 please don't be creepy. Sep 25 18:29:11 creepy? Sep 25 18:29:14 that's so subjective Sep 25 18:29:14 or weird Sep 25 18:29:16 this isn't aol Sep 25 18:29:19 hello, a simple question on streams close operation...If I create a stream with "GzipInputStream(new FileInputStream(filename))" , will the FileInputStream be closed when I close the GZipInputStream or do I have to close the FileInputStream? Sep 25 18:29:21 bahahaaha Sep 25 18:29:27 lov hurts <-- c'mon that's funny Sep 25 18:29:28 thegrinch1: Yes, it'll be closed. Sep 25 18:29:28 the kick was probably in jest.. heh Sep 25 18:29:45 * maslen recommends reading the topic Sep 25 18:29:58 thegrinch1: close should close all underlying streams Sep 25 18:30:05 so you'll only need to call it once Sep 25 18:30:19 lov, wasn't there a bug in httpstream from android pre 2.0 or something Sep 25 18:30:27 lol...sorry to ask you once more....Just wanted to know if it as right for dalvik too...thanks again Sep 25 18:30:28 where you had to flush and close Sep 25 18:30:54 Hadn't seen you were there too Sep 25 18:30:57 :) Sep 25 18:30:57 I have a ProgressDialog, which is a Dialog. If the user presses the back button, they currently dismiss the dialog. What am I looking for if I want programmatic dismissals to do nothing special, but user dismisals to cancel the entire operation? Sep 25 18:31:25 i think i'll settle for a fade in + slide left Sep 25 18:31:33 this is where the ios programmers make fun of me Sep 25 18:31:42 because android isnt as dev friendly Sep 25 18:32:24 i hate them so much Sep 25 18:32:27 freeone3000 so you want the user back button to cancel some operation? Sep 25 18:33:25 speakingcode-wor: Yeah. That'd be onBackButtonPressed(), wouldn't it. Sep 25 18:33:49 you need to have hooks in yuor operation code (i'm assuming it's some webservive call or something async) to cancel it, and either flip a switch or call some cancel function in onBackButtonPressed() yeah Sep 25 18:33:59 or in ProgressDialog.onCancel() i think Sep 25 18:34:21 there is onCancel() or onDismiss(), check the api docs Sep 25 18:34:25 yah Sep 25 18:34:37 My issue is that they can dismiss the dialog independent of the activity. So yeah, onBackPressed(). Sep 25 18:34:42 i wanna say onCancel() ultimately calls onDismiss() Sep 25 18:34:54 onCancel i believe is correct Sep 25 18:34:57 for a dialog builder Sep 25 18:39:43 need some assistance with the AdMob sdk. Sep 25 18:39:54 LinearLayout layout = (LinearLayout)act.findViewById(R.id.mainLayout); <— this is giving me a null Sep 25 18:40:17 R.id.mainLayout has a value, but I'm not sure what else to look at beyond that Sep 25 18:41:27 cbarrett1: did you already set the layout? Sep 25 18:41:55 marcab: how do you mean? Sep 25 18:42:10 like Sep 25 18:42:19 setContentView(R.layout.whatever); Sep 25 18:42:37 * kaneda^ slaps canadiancow around a bit with a large bag of milk Sep 25 18:42:48 what do you want Sep 25 18:42:59 $1m dollars, wahahahahahhahaha Sep 25 18:43:04 what is act. ? Sep 25 18:43:18 * marcab assumed 'activity' Sep 25 18:43:32 obviously an activity reference. are you in a fragment? how are you initializing that pointer? Sep 25 18:43:39 ah hmmm. marcab so I am writing, well trying to write a PhoneGap plugin for the AdMob sdk. So this isn't being executed in my mainActivity . let me check that out Sep 25 18:43:52 final Activity act = ((Activity)this.ctx.getContext()); Sep 25 18:44:04 yes that's supposed return a reference to the activity Sep 25 18:44:09 hmm Sep 25 18:44:25 why not just do (LinearLayout) findViewById.... Sep 25 18:44:28 act.toString() returns: com.toura.app2_fake.TouraMainActivity@40560ec0 Sep 25 18:44:33 if your'e in an activity it can just call findViewById Sep 25 18:44:46 speakingcode-wor: I'm not in an activity :) Sep 25 18:44:52 yep Sep 25 18:45:05 Anyway, my first guess is that the layout hasn't been set yet. Sep 25 18:45:17 it could be that layout hasn't been set yet in the main activity, let me look and I'll get back to you :) Sep 25 18:45:22 coo Sep 25 18:45:23 layout shouldn't need to be set Sep 25 18:45:35 you can grab a view by id without it being set on the screen anywhere Sep 25 18:45:47 ? Sep 25 18:45:56 You can, but not if it hasn't been inflated Sep 25 18:45:59 speakingcode-wor: If it hasn't been inflated, the references return null. Sep 25 18:46:04 yeah Sep 25 18:46:07 o Sep 25 18:46:10 woops :-\ Sep 25 18:46:20 return venueInfo; Sep 25 18:46:24 hi, I've got a question regarding an extension to the android framework. is this the right channel for that purpose? Sep 25 18:46:25 Darnit. Sep 25 18:46:48 sure ask the question Sep 25 18:46:51 snuy: technically yes but you may not get any good answers. Sep 25 18:47:02 if it's the wrong place, or if we just don't know the answer, we'll tell you it's the wrong place ;-) Sep 25 18:47:20 I want to add code to the java.net.* classes and access android.os.* code from there Sep 25 18:47:34 how can i make the android.os.* code available from java.net.*? Sep 25 18:48:04 you can't import them? Sep 25 18:48:11 I can Sep 25 18:48:17 but they are not compiled correctly Sep 25 18:48:22 or better not found during compilation Sep 25 18:48:34 the problem is that java.net.* is compiled before android.os.* Sep 25 18:48:46 so android.os.* are not available when java.net.* code is compiled Sep 25 18:48:59 marcab: at first look setContentView is not being set. But my mainActivity extends DroidGap, so I need to look into what that is doing Sep 25 18:49:31 cbarrett1: cool Sep 25 18:49:34 i'm not an expert on those matters, but check your build order and export Sep 25 18:49:49 cbarrett1: I know nothing of phonegap, so good luck Sep 25 18:49:55 i know where to do that in eclipse, but i don't know in general Sep 25 18:50:07 cbarrett1 Sep 25 18:50:19 ...It's kinda weird how many phonegap devs come here needing help... isn't the point of phonegap to not need to write native yourself? Sep 25 18:50:26 with phonegap your main activity that extends droidgap sets its own view as the content view Sep 25 18:50:30 marcab: heheh you'd think right? Sep 25 18:50:43 it is a view with their specialized webview Sep 25 18:50:47 You have to write one class.It's four lines! Sep 25 18:50:52 specialized webview. Sep 25 18:50:53 barf Sep 25 18:50:57 if you need an activity with its own views you need a seperate activity Sep 25 18:51:23 speakingcode-wor: I'm pretty sure I don't… I'd need to run AdMob in the same activity right? Sep 25 18:52:14 hmm, hold on Sep 25 18:53:03 How can I get a RandomAccessFile from the assetmanager? Sep 25 18:53:15 speakingcode-wor, marcab, I might be able to get access to the Layout via the activity? Sep 25 18:53:37 DroidGap has private LinearLayout root, so if I were in my mainActivity which extends DroidGap I could do super.root right? Sep 25 18:53:43 thegrinch1: You an't. Sep 25 18:53:48 does anyone here has any idea about the android TV boxes Sep 25 18:54:01 How can I use a string resource (which returns a char sequence) as the input for a format string (which requires a String) ? Sep 25 18:54:12 I mean do they all use similar OS ? ? Sep 25 18:54:14 So I'm stuck with streams? Sep 25 18:54:33 hi all. i don't understand a change in theAaudioManager Sep 25 18:54:45 *AudioManager Sep 25 18:55:01 yeah, i don't see in my phonegap projects any xml resource file being used Sep 25 18:55:08 for layout Sep 25 18:55:21 I just copied project from workspace of 4.2 to ws of 3.8 and it does not appear in package explorer Sep 25 18:55:26 any ideas why ? Sep 25 18:55:26 speakingcode-wor: you have to create one in android/res/layout Sep 25 18:55:33 thegrinch1: stream as in video stream ? ? Sep 25 18:55:36 I didn't have one originally either Sep 25 18:55:39 in android 3+ (don't know when they introduced it), is it still possible to make difference between a vibration setting for the ringer and for notifications? Sep 25 18:55:40 yeah Sep 25 18:55:47 i think it creates it programatically Sep 25 18:55:58 so getting it via findViewById is not gonna work Sep 25 18:56:03 cause now there's only getRingerMode() Sep 25 18:56:15 and it seems it makes no difference about it Sep 25 18:56:22 oh. Stale eclipse errors. Sep 25 18:56:33 Looney: nope, stream as in file stream...:) Sep 25 18:56:34 while before we had getVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION) and getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER) Sep 25 18:56:38 ok Sep 25 18:56:44 for notifications and ringtones Sep 25 18:56:50 thanks for any help Sep 25 18:56:55 speakingcode-wor: could be… I'm going to try to get a hold of that root variable from DroidGap Sep 25 18:57:14 speakingcode-wor: marcab in DroidGap: root.addView(this.appView); Sep 25 18:57:15 setContentView(root); Sep 25 18:57:46 What do I do if onPrepareOptionsMenu is called before a service binds? Sep 25 18:57:54 could I create a function in my main activity that returns super.root if root is a private var? Sep 25 18:57:59 maybe getWindow().getDecorView() Sep 25 18:58:47 ^^ not sure what that is? Sep 25 19:00:04 getWindow gets the window manager and getDecorView gets the root view that attaches to the window Sep 25 19:01:38 "I used the admob android sdk in my app, replacing the findViewById Sep 25 19:01:38 call with a direct reference to super.root" Sep 25 19:01:55 there ya go Sep 25 19:01:59 root is not private it seems Sep 25 19:02:40 speakingcode-wor: yeah, but that's only if it's running in Activity, which mine is not Sep 25 19:02:46 mine is a Plugin Sep 25 19:03:10 ... Sep 25 19:03:27 to show on screen there has to be a plugin Sep 25 19:03:28 err Sep 25 19:03:31 there has to be an activity Sep 25 19:03:39 there is Sep 25 19:03:47 the phonegap application runs in a main activity which extends DroidGap Sep 25 19:03:51 right Sep 25 19:04:01 so I'm trying to add this onto that activity basically Sep 25 19:04:08 yup Sep 25 19:04:23 but since I'm outside of the Activity, I don't have access to DroidGap.root directly Sep 25 19:04:43 you probably need to dynamically insert the view for your admob inside of the activity which extends droidgap Sep 25 19:06:14 not sure why you would want to do it as a plugin Sep 25 19:09:50 speakingcode-wor: yeah I'm starting to really not want to do it as a plugin lol. But that's how our apps are setup to pass data from the JS side to the native side through phonegap Sep 25 19:12:36 lut4rp - i've got more info from my client if you remember my problem...i modified code to save something to debug file after almost every line of code Sep 25 19:13:20 cbarrett1 does your app need to pass data for the admob? Sep 25 19:13:22 and i figure out that the error is after pressing button but before onClick method i onClickListener started Sep 25 19:14:16 speakingcode-wor: yep Sep 25 19:14:22 use a static singleton Sep 25 19:14:26 publisherId Sep 25 19:14:31 but other buttons are working fine...what can be different in one button which is making such a problem? Sep 25 19:14:32 speakingcode isn't that redundant? Sep 25 19:14:44 set your admob View in the activity Sep 25 19:15:00 then pass your data to it view a singleton that holds a reference to your main activity Sep 25 19:15:11 via* Sep 25 19:15:20 speakingcode-wor: yeah but I still need to get the value for pubId from the JS side code to the java side code Sep 25 19:15:25 aka, an asset manager speakingcode-wor Sep 25 19:15:40 kaneda^ shrug Sep 25 19:15:57 i know the implementations, not the terms ;-) Sep 25 19:16:21 well, static typically means that only one exists for the lifetime of the application, so it is typically called a singleton Sep 25 19:16:33 no Sep 25 19:16:49 a singleton is a design pattern, static is the implementation of that pattern, sort of Sep 25 19:16:57 static means it can execute without an instance. static singleton is a deign pattern Sep 25 19:16:57 i should say, static can be used as an implementation of a singleton Sep 25 19:17:07 speakingcode-wor, yah, that's true Sep 25 19:17:23 i think we agree hehe just tomato tomahto Sep 25 19:17:27 yep Sep 25 19:17:28 i think so Sep 25 19:17:37 yeah I'll try this out, then I'll switch gears and move this stuff into my mainActivity Sep 25 19:17:56 it's good practice to have an asset manager instead of creating closely coupled classes cbarrett1 Sep 25 19:18:31 cbarrett1 unfortuntaly it sounds like you're gonna have to set the admob view from within the activity. but, that's ok, as kaneda^ said you can use a middle man to transfer data from the phonegap plugin back to the activity Sep 25 19:18:58 kaneda^: there probably already is one that phonegap uses, but I'm not that familiar with it Sep 25 19:18:58 it's honestly all style in this case, but having that middle-man will make it easier to come bac in a year and figure out what was going on Sep 25 19:19:27 we do very little work in actual native code Sep 25 19:19:47 i have yet to use the NDK Sep 25 19:20:14 speak of the devil, a designer got around to exporting my assets Sep 25 19:20:28 you really don't even need a static singleton probably, could probably just use a static var somewhere, to KISS Sep 25 19:20:45 heh, if it's literally a single variable it's probably excessive to make an asset manager Sep 25 19:21:01 big problems require big solutions, small problems require small solutions Sep 25 19:21:02 yup Sep 25 19:21:03 yeah Sep 25 19:21:13 making something overly scalable will hurt you in the time you spend developing Sep 25 19:21:23 i would say put a static method in your main activity, setPubKey() Sep 25 19:21:31 which is exactly why you always give programmers short deadlines ;) Sep 25 19:21:52 static setPubKey(String key) { pubKey = key); and have a static field String pubKey Sep 25 19:21:56 cbarrett1, just be careful not to mix static and non-static refs, java will complain Sep 25 19:22:04 yeah I know :) Sep 25 19:22:15 then from your plugin class just do MainActivity.setPubKey(keyPassedDownFromJsViaPlugin); Sep 25 19:22:36 ok so I tried to add: Sep 25 19:22:37 public LinearLayout getLayout() { Sep 25 19:22:37 return super.root; Sep 25 19:22:37 } Sep 25 19:22:39 or whatever. setPubKey() can do whatever you need to do with the admob viww to kick it off Sep 25 19:22:54 to my mainactivity, and then in the plugin LinearLayout layout = act.getLayout(); Sep 25 19:23:12 but it complains on compile time that it can't find getLayout() :-/ Sep 25 19:23:19 so do I not really have a reference to my activity? Sep 25 19:23:19 hmm Sep 25 19:23:26 wha Sep 25 19:23:29 show me where yuo initialize act again Sep 25 19:23:32 cbarrett1, put it on pastie.org or something Sep 25 19:23:39 act = ??? Sep 25 19:23:48 yeah I'll put it up on pastie, one sec Sep 25 19:24:03 don't cast it to (Activity), your activity is another type that extends Activity - cast it to that type Sep 25 19:24:15 ahh hmm Sep 25 19:24:42 cbarrett1, where are you using this? you can(should?) call getActivity()? Sep 25 19:24:48 suppose it is MainActivity -> act = (MainActivity) cxt.getContext().getActivity(); Sep 25 19:24:54 it's in aa phonegap plugin gutano Sep 25 19:25:08 speakingcode-wor: true true, didn't even think of that. let me give it a try Sep 25 19:25:12 ahh, sorry I could have taken the time to read back.. Sep 25 19:25:20 no probs Sep 25 19:25:31 yeah for f***'s sake man gutano Sep 25 19:25:33 ;-p Sep 25 19:25:35 haha Sep 25 19:25:45 I'd like to make this a plugin just so I can put it up on github and others can use it Sep 25 19:25:54 if I just throw it into the activity it's not really shareable :) Sep 25 19:32:05 speakingcode-wor: ok, it compiled at least! lets see what happens at runtime Sep 25 19:32:31 compiling is good Sep 25 19:32:38 escuse me, i don't understand this: http://developer.android.com/reference/android/media/AudioManager.html#RINGER_MODE_NORMAL Sep 25 19:32:48 how should i check if the vibrate setting is on? Sep 25 19:32:56 lorenx, sit on the phone Sep 25 19:33:03 you'll find out next time someone calls you Sep 25 19:34:00 it says "It will vibrate if the vibrate setting is on" but there no way to understand how Sep 25 19:34:30 how to ensure that html code that i post on github (related to an issue) is shown as code only? Sep 25 19:34:32 how do i know if the vibrate setting is on Sep 25 19:34:50 all the "useful" methods are deprecated Sep 25 19:35:05 can someone help me understand this please? Sep 25 19:35:44 simme, put it inside a textview? Sep 25 19:36:02 like blabla? Sep 25 19:36:09 holy shit speakingcode-wor, it works! Sep 25 19:36:22 cbarrett1, good job Sep 25 19:36:44 thanks so much for your help guys Sep 25 19:36:56 I have an ad for "Dark Summoner" on my phone! lol Sep 25 19:37:59 Anybody know why when I tap on a BigTextStyle notification from NotificationCompat2, the notification doesn't dismiss? It takes me to the correct Activity, but the notification is still there. Sep 25 19:38:01 a little buggy, it's adding ad upon ad when I go screen to screen lol Sep 25 19:38:38 cbarrett1, you're probably just called addView and never remove Sep 25 19:38:45 so each time the static method is called it pops a new one in Sep 25 19:38:52 speakingcode-wor: I'll create a public repo for it when I've got everything worked out. Sep 25 19:39:24 kaneda^: yeah I have a deleteBanner method, may not be being called however. Sep 25 19:39:34 cbarrett1, you'd know best ;) Sep 25 19:39:51 simme, don't PM w/o asking Sep 25 19:40:20 kaneda^: lol yeah I'll figure it out hopefully Sep 25 19:40:37 most of my problems were inexperience with Android and getting the objects I needed Sep 25 19:41:14 it's always toughest at the beginning Sep 25 19:41:16 honestly Sep 25 19:41:27 the more used to the framework you become the faster you pick things up Sep 25 19:41:36 i only started seriously android programming 2 months ago Sep 25 19:42:39 hey guys, no one? :P Sep 25 19:43:11 can anybody tell me how I can change the background-color for a pressed ActionBar button? Sep 25 19:43:22 (I would like to change the blue to something else) Sep 25 19:43:42 put the color change in the button's action listener? Sep 25 19:43:54 oh actionbar sorry.... Sep 25 19:48:13 has anyone on here successfully used dynamic elements (and root element) for ContentView (ala setContentView()) with Fragments? I'm having trouble getting around the "No view found for id" error when there is no XML. Sep 25 19:48:55 i use fragments insdie a fragment activity w/ a tabhost Sep 25 19:49:09 i use a fragment transaction to attach and detach the fragments Sep 25 19:49:35 Starting from a base ViewPager, using a FragmentPagerAdapter subclass. Sep 25 19:50:05 @kaneda^, are you using zero XML? Sep 25 19:50:17 sorry, which "vibrate setting" does the RINGER_MODE_NORMAL documentation referring to? "It will vibrate if the vibrate setting is on" Sep 25 19:51:32 Skywalker5446, i use XML for the fragment activity, and then each fragment has xml taht it inflates Sep 25 19:51:44 the vibrate settings i knew are now all deprecated Sep 25 19:53:33 thx, @kaneda^, but looks like the issue is when you don't have a ViewGroup that's defined in XML, the fragments won't/don't get created as expected. Works fine when root is defined in XML, but moving to dynamically creating (and nothing else) causes "No view found fir id" error. Sep 25 19:53:57 Skywalker5446, i'd suggest you give each of your fragments a root in xml then Sep 25 19:54:06 inflate the XML and append to the root element Sep 25 19:54:18 I can't, not an option with the design in question. Sep 25 19:55:10 Docs suggest this should work, just be a quirk (or a detail I'm missing) w/r to what the FragmentManager expects, I'm thinking. Sep 25 19:55:49 Skywalker5446, i mean, a root is necessary to inflate XML Sep 25 19:56:01 i'm not sure how it coudl be a design to not ahve a root Sep 25 19:56:04 Skywalker5446: If you're using a FragmentPagerAdapter, you should try swapping it out for a FragmentStatePagerAdapter. Sep 25 19:56:58 @kaneda^, a root exists, it's just not defined in XML. It works when you don't have fragments. Sep 25 19:58:11 @Chronax, thought the only difference there was for whether you should be handling the creation/destruction of many elements... I'm only looking to have a few items... though maybe with "State" version I force it to properly create the views? Hmmm... will try. Sep 25 19:58:13 Skywalker5446, i see, so why can you not exchange craetnig the root in program for creating the root in the fragment's XML? Sep 25 19:59:19 @kaneda^, because there is no XML :) Sep 25 19:59:35 kaneda^: I've also not worked with java in like 6 years Sep 25 19:59:39 :-D Sep 25 19:59:44 Skywalker5446, looks like you're going to make some then Sep 25 19:59:47 @kaneda^, I'm creating all the supposedly necessary elements in code Sep 25 20:00:10 I've done php,ruby,python,JS in the meantime Sep 25 20:00:30 Skywalker5446, as i said, make some XML to inflate and operate on that Sep 25 20:02:01 Is there a way to use layout XML that is _NOT_ defined as a resource/on the R object? Because otherwise I have to move to an apklib, which I'm trying to avoid for other reasons.... thx for input! Sep 25 20:09:43 its been a morning of bad security flaws, dang ! first samsung and their factor reset issue, now java Sep 25 20:10:17 g00s: URL on the Java issue? Sep 25 20:10:48 Bink: http://blogs.computerworld.com/malware-and-vulnerabilities/21056/another-critical-java-vulnerability-puts-1-billion-users-risk Sep 25 20:11:26 thanks Sep 25 20:12:01 np Sep 25 20:12:18 I kinda doubt the "1 billion" :P Sep 25 20:14:58 sorry, which "vibrate setting" does the RINGER_MODE_NORMAL documentation referring to? "It will vibrate if the vibrate setting is on". the vibrate settings i knew are now all deprecated, thanks. Sep 25 20:22:26 g00s, just busy lately Sep 25 20:22:41 and guava actually makes java almost bearable... kinda almost Sep 25 20:22:46 pfn: :) hope all is well Sep 25 20:23:23 yeah, just busy with work, and I've been playing league of legends in my free time, too Sep 25 20:23:26 heh Sep 25 20:23:32 i need to display a graphic on a map, and here are my choices: draw each piece of the overlay item, or make a view in XML to represent the overlay item and continually update its pixel location based on how the user interacts with the map. which might be better? Sep 25 20:24:31 zomg. so excited. just got new work MBP. 16gb ram, 1tb disk (w/4gb SSD "hybrid cache"), 8-core i7 Sep 25 20:25:17 nice mbp... Sep 25 20:25:17 one of my testers: "... so.. does this mean you'll fix bugs faster?" "FCUK YOU IS WHAT IT MEANS" Sep 25 20:25:27 tophyr: dont get excited, you still won't be able to run the emulator satisfactorily Sep 25 20:25:36 who uses the emulator... Sep 25 20:25:42 g00s: lmao Sep 25 20:25:49 finally got around to setting up jdb so I can debug my android stuff Sep 25 20:25:49 heh Sep 25 20:26:02 pfn: actually i use the emulator pretty extensively, for build verification tests Sep 25 20:26:04 pfn: Depends on whether you left the testing device at home :) Sep 25 20:26:17 pfn jdb vs adb? Sep 25 20:26:22 pfn: i do :) can't afford new devices, my only device is 2.x … but i'm having a problem on 4.1.1 Sep 25 20:26:39 https://gist.github.com/3784232 Sep 25 20:26:48 tophyr, no, using jdb in conjunction with adb Sep 25 20:26:51 tophyr, i.e. see above Sep 25 20:27:06 g00s, get a galaxy nexus on subsidy is $100, or less... Sep 25 20:27:14 how can you not afford that... Sep 25 20:27:21 hm, interesting, what use case is that for? what does jdb offer Sep 25 20:27:33 tophyr, I don't use eclipse; that's what it has to offer Sep 25 20:27:35 or is it like an actual debugger Sep 25 20:27:37 ahhh Sep 25 20:27:42 it's just a commandline debugger Sep 25 20:27:47 gotcha Sep 25 20:27:53 and I don't want to got hrough the hassle of loadingup eclipse to debug stuff Sep 25 20:28:01 I don't use an IDE... Sep 25 20:28:03 never cared to Sep 25 20:28:15 what editor do you use pfn? Sep 25 20:28:16 damn, grizzly adams Sep 25 20:28:21 tech1, vim Sep 25 20:28:26 i use emacs Sep 25 20:28:37 hmm, wish I could find the sensor size of the rear camera on this TF101 Sep 25 20:28:48 It's not in the Exif and it's apparently not documented anyplace I can find Sep 25 20:29:00 really? /me digs out his Sep 25 20:29:03 only reason I want to use an IDE ever is for "organize/auto-import" Sep 25 20:29:50 huh, so it's not Sep 25 20:29:54 g00s, considering how much you use your phone, it's usually a pretty well-justified expense... especially vis a vis the provider costs Sep 25 20:30:22 8MP is the highest option it gives in Camera. obv not much help for actual #'s tho Sep 25 20:31:46 why do you care about the sensor size? Sep 25 20:32:02 pfn: Because I'm using it for photogrammetry. Sep 25 20:32:11 photowhat? Sep 25 20:32:36 tophyr: Yeah, it's not the pixel count I need, but the physical sizes of the sensor Sep 25 20:32:39 hmm, I wonder how I go back to 15xxx prl on my galaxy nexus Sep 25 20:32:49 I did a *22899 the other day and I'm on a non-lte optimized prl :-/ Sep 25 20:33:24 hmmm Sep 25 20:33:42 I suppose I could just measure its FOV and use the focal length (which is in the Exif) to compute the sensor size Sep 25 20:33:57 sorry, which "vibrate setting" does the RINGER_MODE_NORMAL documentation referring to? "It will vibrate if the vibrate setting is on". the vibrate settings i knew are now all deprecated, thanks. Sep 25 20:34:05 you sumbitch.. better not be writing the-idea-i've-had-for-a-year-but-never-bothered-to-do-anything-on Sep 25 20:34:10 that shit's mine, i'll go all apple on you Sep 25 20:34:18 tophyr: bah? Sep 25 20:34:38 not gonna tell you what it is in case it's not what youre doing tho. Sep 25 20:35:03 nm, im just being retarded heh Sep 25 20:35:53 buddy of mine gave me an idea last summer for something that looks like it'd use these photogrammetric concepts Sep 25 20:37:21 and FWIW, measuring FOV and calculating dimensions via focal length was the direction i had imagined going with it Sep 25 20:37:52 though one thing on my mind was that most of the devices have pretty severe edge-of-field distortions Sep 25 20:43:19 tophyr: We've tested the distortion here, and with most of these it's really not that substantial. Sep 25 20:43:37 greetings everybody Sep 25 20:44:21 i have a question about dexgen .... how do you use dexgen to generate a switch/case statement? Sep 25 20:45:11 Hodapp: hm, cool Sep 25 20:45:20 i woulda figured it'd have been a big factor Sep 25 20:45:28 tophyr: Coworker of mine is performing measurements and generally being within fractions of a millimeter, and that's with curved surfaces that are adding in a lot of other error. Sep 25 20:45:43 tophyr: So I wouldn't label it as "pretty severe" by any means. Sep 25 20:45:48 wow, cool Sep 25 20:47:52 tophyr: So, what was the idea, anyhow? It's doubtful anyone's going to steal it... most people already have piles and piles of ideas. Sep 25 21:02:30 evening all Sep 25 21:03:06 fact. i was just being ridic, mostly. buddy does carpeting and said an app to estimate room sizes would be fantastic. click, turn, click, "14ft x 20ft." Sep 25 21:03:21 is there any way i can see or browse files, in the private data area (for an app) of the file-system? Sep 25 21:04:59 MrQwak, your probably going to need root for that. Sep 25 21:05:02 with root, yes. Sep 25 21:05:35 MrQwak: if you're running the emulator, the permissions are relaxed somewhat on the file system. you can browse a bit more. Sep 25 21:05:43 ... than you can on a device. Sep 25 21:05:45 ah, thanks chaps Sep 25 21:05:51 it's running on a device Sep 25 21:06:05 may need to root it then, is that a complex job? Sep 25 21:06:54 well, technically yes ... but if there's a place on the file system you can't see it's probably for a good reason (security). Sep 25 21:07:01 i think you can safely assume most of your users wont be rooted, unless your just using it for yourself... Sep 25 21:07:27 so, developing while your NOT root is a great way to help ensure you don't write apps that malfunction on a normal device (IMHO) Sep 25 21:07:31 yeah, i just want to see what files my app is saving, just for peace of mind etc Sep 25 21:07:39 oh, for that ... Sep 25 21:07:55 you're files are going to be in two places ... the private app directory, or the sd card. Sep 25 21:07:56 root your phone, use ES File Explorer from Play. Sep 25 21:08:00 if there is a way to do that without rooting? Sep 25 21:08:03 yes. Sep 25 21:08:11 create your files using world readable permissions. Sep 25 21:08:15 MrQwak, use adb Sep 25 21:08:17 i think there's in the private data area Sep 25 21:08:25 path is something like data/data/... Sep 25 21:08:26 then, use pull, and specify the path to your file. Sep 25 21:08:40 adb? pull? Sep 25 21:08:42 $ adb pull /data/data/my.package/files/myfile.txt Sep 25 21:08:52 ah right Sep 25 21:08:53 you can get root shell access with adb(Android Debug Bridge) Sep 25 21:09:14 just make sure you lock the permission down before releasing your app. Sep 25 21:09:25 im not gonna tell you how to use adb, maybe someone else will, but minimal googling will get you there. Sep 25 21:09:27 adbbbbbbb Sep 25 21:09:50 no, that's great thank you all Sep 25 21:12:22 I've got two activities: activity 1 launches activity 2, but it doesn't make sense to keep activity 1 around once activity 2 has been displayed (e.g., the user shouldn't be able to navigate to it with the back button). How do I destroy activity 1? Sep 25 21:13:51 @jfpoole: what does activity 1 do ? Sep 25 21:14:16 http://www.youtube.com/watch?v=WlsahuZ_4oM Sep 25 21:14:18 hi, i want to install the android SDK on ubuntu 12.04 64 bit for a system behind an authenticated http proxy Sep 25 21:14:28 has anyone tried netty in an android activity? Sep 25 21:14:46 coderroadie: It's a progress display for a long-running CPU-intensive operation. Sep 25 21:15:56 i activity 1 is just run here and there, it sounds like it would make more sense for some other activity (activity 2?) to launch activity 1, actually. Sep 25 21:16:05 the main activity is always there. Sep 25 21:16:16 Anybody know why when I tap on a BigTextStyle notification from NotificationCompat2, the notification doesn't dismiss? It takes me to the correct Activity, but the notification is still there. Sep 25 21:16:28 coderroadie: There is a third activity (the home activity) that launches activity 1 Sep 25 21:16:38 hey all. when creating a project in eclipse, you have the option to choose the List/Detail layout, but only if minSdk is >=11. I'm trying to retro-fit this back to api8 to save some time but the apk crashes when run on an emulator with api8. I'm using ActionBarSherlock. Here is a stack trace http://imagebin.org/229800 Sep 25 21:17:38 @jfpoole. You can have main activity start activity 1 with a call to startActivityForResult. Then let activity 1 exit - or cause it to exit. when it does immediately start activity 2. Sep 25 21:17:51 that will let activity 1 go away while activity 2 is displayed. Sep 25 21:18:14 coderroadie: Ah! How do I cause the activity to exit? Sep 25 21:18:27 jeppy: use the debugger to found out where you're getting the NPE Sep 25 21:18:49 saik0_, i'm trying but i cant seem to catch it Sep 25 21:18:56 I think I'm getting a security error, but I'm not getting an exception; it's somewhere in netty's code, I think Sep 25 21:19:09 jfpoole: just call finish() after you startActivity(activity2_intent) Sep 25 21:19:18 Gotcha. Sep 25 21:19:31 Thanks. Sep 25 21:19:36 @jfpoole: Activity.setResult(int code); Activity.finish(); Sep 25 21:20:11 i think what kbs says might work too. Sep 25 21:20:29 coderroadie: Thanks. Much appreciated. Sep 25 21:20:57 i usually go back to the main activity first so the design of the activity stack is clearer ... but my brain works that way too. Sep 25 21:21:00 np Sep 25 21:22:05 i'm using openSL to play some music (in MP3 format), which I am first (only do this once) copy from the APK, to my app's private data area. i then play the file that's in the private data area. all seems to work fine. is this a bad idea for any reason? Sep 25 21:22:38 i am using the NDK and most of my code is C/C++ Sep 25 21:23:23 also, i treat the APK as a zip file, for loading files from it (using libzip) Sep 25 21:23:24 coderroadie: That, that makes more sense. It's what my app does on iOS, and I should've been thinking the same way on Android. Sep 25 21:23:55 @jeppy: retrofitting something like the list/detail layout can cause more work than it's worth. Sep 25 21:24:28 if you want backward compatability with list/detail layouts, then it might be best to create your own custom views... Sep 25 21:25:03 coderroadie, yeah i'm just going to start without it Sep 25 21:25:19 custom views and adapters rock. Sep 25 21:25:53 use a Handler to pass data between the views and you should be fine ... Sep 25 21:26:18 on a related note ... fragments can be a royal pain in the ass. Sep 25 21:26:49 if you don't adhere to the model exactly, you'll get weird bugs that are hard to track down. Sep 25 21:26:55 but I'm venting now ... :-p Sep 25 21:29:31 Hey guys, I added a new activity to my project and it works fine and all, but apparently it installed itself as a separate app. If I run it directly it just crashes. What's that about? Sep 25 21:29:50 manifest file? Sep 25 21:30:24 Looks like just another activity in there Sep 25 21:30:35 name, label, and intent filter Sep 25 21:30:37 intent? Sep 25 21:30:52 Hmm, what of it? Sep 25 21:31:29 final Intent petIntent = new Intent(this, PetDetails.class); Sep 25 21:31:43 This being made in the activity where I'll run the petdetails one from Sep 25 21:31:51 And I'm just adding a stringExtra to it later, and that's it Sep 25 21:32:43 error? Sep 25 21:32:52 None when running the main app Sep 25 21:33:20 And starting the activity from it by pressing the button that's supposed to start that activity. Sep 25 21:33:39 then the behavior is as expected Sep 25 21:34:08 Well, the part that's not expected is it installing and adding another "app" to the phone. Like, it made a PetDetails app in the menu. That ain't right :< Sep 25 21:35:53 what package did you specify as the main package? Sep 25 21:35:56 com.razielz.appname Sep 25 21:36:29 Well there's only one package Sep 25 21:36:45 how do yuo reference the 2nd activity in the manifest? Sep 25 21:36:52 .SecondActivity yah? Sep 25 21:37:08 Yeah Sep 25 21:37:12 But I just noticed something weird Sep 25 21:37:13 In the manifest Sep 25 21:37:21 Sep 25 21:37:32 ...why is that there? Under the intent filter for that activity? Sep 25 21:37:34 that's so the activity will be on the app menu on the phone Sep 25 21:37:42 so the user can launch your app Sep 25 21:37:43 Well that's what it's doing that it's not supposed to. Sep 25 21:37:48 Because that's not the main activity Sep 25 21:37:53 then remove it Sep 25 21:38:00 you can launch directly into any activity Sep 25 21:38:25 and reading back up and seeing your issue, that will fix it Sep 25 21:38:32 Why did eclipse even make it like that... gotta check settings better next time Sep 25 21:38:44 dunno Sep 25 21:39:00 I'll just copy the info off the other secondary activity that has metadata for parent activity Sep 25 21:39:05 Over the intent filter for this Sep 25 21:39:23 only once launcher in the manifest file please Sep 25 21:39:31 unless you intend to launch another app Sep 25 21:39:47 Anybody know why when I tap on a BigTextStyle notification from NotificationCompat2, the notification doesn't dismiss? It takes me to the correct Activity, but the notification is still there. Sep 25 21:40:11 kaneda^, yeah, I wasn't, which was apparently my problem, and I just removed it so I should be fine now! Thanks :D Sep 25 21:40:45 hmm, sometimes i say, give me an arrow, and align it right, and android says "no" Sep 25 21:40:47 and i have no idea why Sep 25 21:41:03 the layout system is unfortunately fragile if you dont use gridlayout or weights in the linearlayout Sep 25 21:41:52 ello folks Sep 25 21:42:12 did ActionBarSherlock became some sort of standard? Sep 25 21:43:32 anyone had any experience of UDP over GPRS Sep 25 21:43:33 in the UK Sep 25 21:45:37 you will be fighting the nat Sep 25 21:46:06 fight the nat Sep 25 21:46:27 well, mny device sends an inbound at regular interfvals Sep 25 21:46:30 intervals Sep 25 21:46:36 I then record the port/ip Sep 25 21:46:38 of the device Sep 25 21:46:49 and thats when I send data back Sep 25 21:46:51 over udp Sep 25 21:46:55 horatio_cromwell: you do not on a mobile have a public IP Sep 25 21:47:06 SpeedEvil, he could be talking about over intranet Sep 25 21:47:12 something i want to try Sep 25 21:47:13 'GPRS' Sep 25 21:47:20 oh Sep 25 21:47:24 that is rarely intranet Sep 25 21:47:25 my b Sep 25 21:47:28 yah Sep 25 21:47:29 it can be. Sep 25 21:47:29 it seems to work for a while but then for some unknown reason its as though, server to device UDP comms gets disabled on the network Sep 25 21:47:36 aaisp.net Sep 25 21:47:50 (O2 mobile GPRS network) Sep 25 21:48:16 O2 - UK mobile cellular netowrk provides Sep 25 21:48:16 horatio_cromwell: yeah, don't expect UDP to work reliably. nat pairing will also timeout Sep 25 21:48:34 I understand the limitations of UDP as a protocol Sep 25 21:48:47 I am just quite new to the Mobile comms world Sep 25 21:48:55 it's not to do with UDP Sep 25 21:49:00 I understand that the IP/Port of the device on a public GPRS netowkr changes Sep 25 21:49:10 and I make allowances for that Sep 25 21:49:10 its also not public Sep 25 21:49:27 it's to do with the implementation of the nat, and what packets it drops Sep 25 21:49:34 Anybody know where I can go to get some help with NotificationCompat2 and expandable notifications? I have many questions due to the complete lack of documentation or deep examples. Sep 25 21:49:50 well maybe if you would ask those questions Sep 25 21:49:50 SpeedEvil: ok, can you elaborate Sep 25 21:49:52 (From Google, not JakeWharton.) Sep 25 21:49:53 rather than asking where to ask Sep 25 21:50:00 o_O Sep 25 21:50:12 stfu, JakeWharton Sep 25 21:50:20 :| Sep 25 21:50:21 google has a NotificationCompat2 ? Sep 25 21:50:23 JakeWharton Sep 25 21:50:27 isnt it just called NotificationCompat? Sep 25 21:50:37 I went to an interview yesterday and they were asking me about ActionBarSherlock Sep 25 21:50:39 Talking about JakeWharton's. Sep 25 21:50:47 are you saying some mobile network providers place restrictions Sep 25 21:50:48 and I m like wtf, I never use any 3rd party stuff Sep 25 21:50:58 But, even Google's core expandable notifications aren't documented really at all. No examples. Sep 25 21:50:59 on server to mobile device UDP comms ? Sep 25 21:51:00 ok so Chronax ask your question Sep 25 21:51:14 meetoman uses only code he writes. Sep 25 21:51:23 http://dev.numerex.com/getting-started/article/why-are-my-enfora-commands-timing-out/ Sep 25 21:51:27 is related Sep 25 21:51:28 I have several. First, any idea why the notifications don't dismiss after the PendingIntent? Sep 25 21:51:33 I used your lazy loading for a while evancharlton lol Sep 25 21:51:35 -_- Sep 25 21:51:42 meetoman: I'm so sorry to hear that, haha Sep 25 21:51:54 Any flags or something that I need to set to get the expandable notifications to dismiss upon selecting an action (or even just tapping the whole notification)? Sep 25 21:51:56 later on I had to write my own cuz it didn't scale =| Sep 25 21:52:03 also, Google nat traversal UDP Sep 25 21:52:04 meetoman: and because it was terrible Sep 25 21:52:15 I know, but it was the best at the time you wrote it Sep 25 21:52:18 Chronax: NotificationManager#cancel(int) Sep 25 21:52:22 horatio_cromwell: yes, restrictions Sep 25 21:52:24 and somehow you got a really good SEO spot Sep 25 21:52:32 meetoman: haha yeah I don't know how that happened Sep 25 21:52:35 evancharlton: I need to manually execute that when an action is selected? Sep 25 21:52:39 Chronax: yes Sep 25 21:52:43 horatio_cromwell: some by intent, some by side effect Sep 25 21:52:46 no setAutoCancel(true) Sep 25 21:52:52 Eeek, okay -- thanks. Sep 25 21:52:58 canadiancow: that applies to the notification, not the action Sep 25 21:53:05 ah Sep 25 21:53:23 it's just funny how JakeWharton's stuff became part of interview standard lol Sep 25 21:53:32 SpeedEvil: I know all about that. I have my device send a keep alive message to my server regularly (once a minute) and when I receive the message I record the IP/Port for the device, then use this updated new IP/Port to communicate, and this works fine for a while but then it seems the network kills server to device comms. but during this time device to server still works fine Sep 25 21:53:44 Also, I've got 2 actions and they both pass an intent extra which happens to be a boolean. 1 action = true, the other is false. For some reason, it seems to always be passing whichever boolean I've specified in the FIRST pending intent, but ignores the pending intent for the 2nd action. Any thoughts there? Sep 25 21:53:50 huh Sep 25 21:53:50 who's JakeWharton? Sep 25 21:53:57 some asshat Sep 25 21:54:00 mmm, indeed Sep 25 21:54:01 iknorite Sep 25 21:54:10 whosethisguyanyways Sep 25 21:54:10 horatio_cromwell: it may be intentional to kill stuff like im and skyoe Sep 25 21:54:15 Skype Sep 25 21:54:33 * kaneda^ reinstalls the app for the 3000th time today Sep 25 21:54:43 and what about LoadManager, when did AsyncTask got obsolete, I freaking hate AsyncTask Sep 25 21:54:51 huh? Sep 25 21:54:56 are you sending regular packets in both directions?? Sep 25 21:54:57 SpeedEvil: where areyou from ? Sep 25 21:55:04 you in the UK ? Sep 25 21:55:05 Scotland Sep 25 21:55:07 ok Sep 25 21:55:20 during my interview process my interviewer told me AsyncTask is no longer the best practice... Sep 25 21:55:20 I have tried Tesco mobile PAYG sim Sep 25 21:55:26 (O2 network) Sep 25 21:55:32 Le sigh. Sep 25 21:55:35 I am just trying a t-mobile contract sim now Sep 25 21:55:37 and all is fine Sep 25 21:55:42 meetoman: uh, that's not true Sep 25 21:55:46 (it is usually with the tesco sim too) Sep 25 21:55:46 So, notification .setAutoCancel(true) didn't work. Notification is still there after I select an action. Sep 25 21:55:53 yeah. different sims do random shit. Sep 25 21:55:57 Chronax: I already told you that. Sep 25 21:56:02 evancharlton, I am trying to learn LoadManager's process, didn't find any good examples for past 2 days Sep 25 21:56:02 And the action still passes the wrong boolean value, even though the method to build the pending intent is clearly setting it correctly. Sep 25 21:56:16 evancharlton, at least not architect that I can copy from Sep 25 21:56:23 SpeedEvil: you saying you have experienced different behaviour with different network providers ? Sep 25 21:56:56 horatio_cromwell: yes, and wihndifferent service providers or apns within one provided Sep 25 21:57:01 Chronax: I would bet you that you're being bit by PendingIntent de-duping your two intents. Set different URIs for the two intents, even if they aren't used Sep 25 21:57:02 provider Sep 25 21:57:31 What do you mean by de-duping? And also, the method setAutoCancel() doesn't work? Sep 25 21:57:43 it works for tapping the notif, not the actions Sep 25 21:57:44 I know this is probably asked all the time, but do I really need everything listed to develop a simple app for my own use? Sep 25 21:57:53 I have a relatively small SSD (64GB) Sep 25 21:57:56 so you'll need to hide it manually when an action is selected Sep 25 21:58:05 Chronax: I told you that you have to use cancel(int) to remove it Sep 25 21:58:06 Got it, thanks canadiancow. Sep 25 21:58:13 This detail is so clearly documented. Sep 25 21:58:23 Chronax: and, once again, set different Uris for the intents Sep 25 21:58:39 Chronax: http://b.android.com/ - File documentation bugs when you find them Sep 25 21:58:56 horatio_cromwell: limits on Skype/... are sometimes the cause. sometimes it's simplt different network hardware in use. Sep 25 21:59:22 and incidental differences in config Sep 25 21:59:24 If I didn't have so much code to write I'd be much more diligent about that. ;) Sep 25 21:59:32 SpeedEvil: are these mainly UDP restrictions rather than TCP ? Sep 25 21:59:33 JakeWharton, on your actionbarsherlock, is there anyway I can do Text and Icon Combined? Sep 25 21:59:40 in order of text Icon Sep 25 21:59:45 in the same menu item Sep 25 21:59:50 custom view Sep 25 22:00:04 or look at it on a w600dp device and normal menu items will get both Sep 25 22:00:11 how do you set custom view's gravity to right? Sep 25 22:00:26 evancharlton: How do I set a URI on an intent? Sep 25 22:00:29 I played with all the bits of it, its always aligned to the left Sep 25 22:00:30 meetoman, in xml or java? Sep 25 22:00:36 custom action item view, not custom action bar view Sep 25 22:00:37 Chronax: setData(..) Sep 25 22:00:38 kaneda^ either way Sep 25 22:00:51 and you can control the former using ActionBar.LayoutParams Sep 25 22:00:55 gotta run Sep 25 22:00:59 JakeWharton, let me try that Sep 25 22:01:02 meetoman, in xml if the view has the same directives as linearlayout it's layout_gravity="right" Sep 25 22:01:09 evancharlton: Any advice for what sort of URI I should be specifying here? Sep 25 22:01:13 Can I just make them up for now? Sep 25 22:01:14 kaneda^: it doesn't Sep 25 22:01:25 Fully qualified class name or something globally unique or what? Sep 25 22:01:28 Chronax: content://my-dummy-uri/ + booleanValue Sep 25 22:01:34 JakeWharton, what directives does it have? Sep 25 22:01:39 horatio_cromwell: UDP tends to be dealt with less well. Sep 25 22:01:40 Chronax: it really doesn't matter, just as long as your two action Uris are different Sep 25 22:01:48 Got it. Thanks, evancharlton. Sep 25 22:01:58 horatio_cromwell: are you sending keepalices in both directions? Sep 25 22:02:03 Chronax: if you want to see why this matters, go look at Intent#filterEquals(Intent) Sep 25 22:02:40 SpeedEvil: t-mobile seems to handle this very different compared to O2 Sep 25 22:02:44 Thanks again. Sep 25 22:03:12 ma Sep 25 22:03:29 SpeedEvil: maybe O2 just isn;t friendly to this kind of traffic? Sep 25 22:03:29 i'm not yo mama Sep 25 22:05:48 horatio_cromwell: basically, if you are not doing 'Normal' stuff (TCP out to port 80, loading http and DNS), mobile nets are weird. Sep 25 22:06:07 and their configuration is not rational or consistent Sep 25 22:06:52 evancharlton: You were right. As usual. Any problem leaving a potentially non-globally-unique URI in there to fix this issue? Sep 25 22:07:12 SpeedEvil: ok, but there are plenty of apps that make persistent tcp connections to a server that mst work reliably Sep 25 22:07:18 on non 80 ports Sep 25 22:07:40 TCP to servers outgoing is more reliable Sep 25 22:07:57 the above is slightly pessimistic Sep 25 22:08:22 but things like timeouts till your xonnextion dies will be quite random Sep 25 22:08:40 night all Sep 25 22:09:12 evancharlton: And one more small question. Is there any way to execute code when an action occurs in these expandable notifications? Is there an event or something I can hook into? Sep 25 22:09:42 thats what you intent is for Sep 25 22:09:54 I have a dozen thumbnail drawables that I'm putting in a ListView using a simpleadapter, what can I do to make the performance not awful? Sep 25 22:17:22 Hi guys Sep 25 22:19:13 i might have to hi Sep 25 22:19:28 oops ... i meant just hi Sep 25 22:19:30 I'm thinking in develop an app to request to web site in order to download the html an analyze it to check a field, and if field is filled, launch new notification. What is the best way? I supposed to create a Service but reading dev doc I don't know if to use started service or bound service instead... sorry for my english! Sep 25 22:19:54 read the web page, parse the HTML and then do your magic. Sep 25 22:20:20 coderroadie I need to read web page every 15 min if field is not filled Sep 25 22:20:22 use a bound service if the activity needs to hold onto the service for something. it works very well. Sep 25 22:20:35 you can set up a timer that fires an intent to the service... Sep 25 22:20:45 the service will startup automatically and do it's work. Sep 25 22:20:54 create new service every 15 min? Sep 25 22:21:05 the OS will manage the service. Sep 25 22:21:24 you just have to set up the timer (alarm). Sep 25 22:21:29 the OS will take care of the rest. Sep 25 22:22:49 but what happen if I close my app (click on back or home button), it still works? Sep 25 22:23:20 in trying to use cordova again, my app stops. E/AndroidRuntime(2153): j.l.RuntimeException: Unable to instantiate activity ComponentInfo{com.x.sleepalarm/com.x.sleepalarm.HelloCordovaActivity}: java.lang.ClassNotFoundException: com.x.sleepalarm.HelloCordovaActivity Sep 25 22:23:52 solution here says it's the use of external libs: http://stackoverflow.com/questions/11514193/tip-apache-cordova-and-android-unable-to-instantiate-activity-componentinfo Sep 25 22:24:27 my cordova lib is imported to /libs/ though. However, in java build paths there are other libs (like android.jar) which are referenced in the android sdk paths Sep 25 22:24:56 (I'm trying straight android coding as well as cordova/phonegap, which someone recommended) Sep 25 22:25:56 @Sepho : yes. Sep 25 22:26:09 it will all work. when you use an alarm, you register it with the OS. Sep 25 22:26:27 the OS starts the service ... that's the value of using services for this kind of thing. Sep 25 22:26:42 the activity is just used for user interaction. Sep 25 22:27:21 ok, thanks coderroadie ! Sep 25 22:30:08 here someone lists some other things to try: http://stackoverflow.com/questions/8835685/phonegap-app-crashes-at-runtime Sep 25 22:34:57 that was it... final problem was android:name="" was not set to the proper class name.. Sep 25 22:48:13 anyone else having issues uploading images to dev console? Sep 25 22:51:01 I'm getting some JSON error Sep 25 22:58:33 is it possible to give someone a "voucher" for a paid app? Sep 25 23:09:36 I'm having a bit of trouble understanding what role an AccountAuthenticator plays in authentication. I've read the documentation, but it's vague on specifics - say I have user A with an account on server B. When .addAccount() is called, does that add an account on server B, or simply connect the user's existing account to their phone? Sep 25 23:15:24 @freeone3000: AccountAuthenticator helps with collecting credentials. It doesn't necessarily talk to a server. If you need to authenticate against a server, then you have to write the code to do that. Sep 25 23:16:04 coderroadie: Okay. So it's simply a local-only reflection of state, andI need to fill in the methods with whatever n-tier magic I need. That cleared it up, thanks. Sep 25 23:16:06 The key thing to understand there is that the OS manages the accounts and starts activities to do authentication - not your application. You simply tell the OS what activity to use to do authentication. Sep 25 23:16:28 local-only reflection of state ... that's more or less correct. Sep 25 23:16:47 and keep in mind that most android phones can't encrypt user names and passwords. Sep 25 23:16:58 those can be hacked ... Sep 25 23:17:30 Right. I'm going to save a session cookie instead. Still vulnerable to a LNMN-style attack, but they expire, so. Sep 25 23:17:31 you'll get some mileage by implementing OAuth, but it's still problematic. Sep 25 23:17:46 right ... keep your expiration times as small as possible. Sep 25 23:18:08 one way hashes can work as well. incorporating timestamps helps etc .... Sep 25 23:18:30 if you treat the session as insecure as possible, it will help give good direction to you overall design. Sep 25 23:19:07 nevermind, it works now Sep 25 23:19:49 Mostly it's integrating to an existing system. THey're happy with the existing system, so I just have to act like a web browser with a strangely long cache. Sep 25 23:34:51 hey Sep 25 23:34:58 is there any app I can do ab testing through 2 different apks Sep 25 23:35:15 then compile them into one apk, half of the user gets first apk, and the other half uses the second one Sep 25 23:41:16 meetoman: no Sep 25 23:41:29 meetoman: but you can do a/b testing in a single APK much more easily Sep 25 23:59:17 what is the best way to retrieve the size of a file? Sep 25 23:59:32 having a really tough time getting a grasp of java... im decent at PHP but java syntax is not clicking for me Sep 25 23:59:51 File.length() Sep 26 00:01:12 man getting sigsegvs like NUTS in libhwui and libdvm =( Sep 26 00:01:17 The file is located in the assets...I try to get a descriptor but I get a "file not found exception" Sep 26 00:03:03 I think i should use openFD on the assetmanager and the the getlength function Sep 26 00:05:33 the exception states "This file can not be opened as a file descriptor; it is probably compressed" Sep 26 00:07:01 damn it Sep 26 00:07:03 thegrinch1: Is it in drawable, sound, or raw? Sep 26 00:08:04 a binary file.... Sep 26 00:08:12 raw Sep 26 00:08:34 located in assets... Sep 26 00:08:56 I access it using the assetmanager Sep 26 00:09:36 anyone shed any light on this? Sep 26 00:09:37 http://paste.ideaslabs.com/show/xcXCf6FteF Sep 26 00:09:51 romainguy: How can I get a File using the assetManager? Sep 26 00:10:14 then AssetManager.getAssetLength() Sep 26 00:10:34 I'll check Sep 26 00:10:39 Thanks Sep 26 00:10:50 romainguy_ my question the other day about the sigsegv's are spat out in the pastecode here Sep 26 00:10:51 http://paste.ideaslabs.com/show/xcXCf6FteF Sep 26 00:11:03 looks like there its saying libdvm.so Sep 26 00:11:11 how can i set the position of a TextView within its layout container programmatically? Sep 26 00:11:45 ron_frown: well you should decode the stack trace first Sep 26 00:11:50 whomp: .setLayoutParams(), with the ViewGroup.LayoutParams from your ViewGroup. Sep 26 00:11:57 ok Sep 26 00:12:03 AssetManager.getAssetLength() what is the API level? Sep 26 00:12:04 usng addr2mem? Sep 26 00:12:13 thegrinch1: open the documentation? Sep 26 00:12:16 er Sep 26 00:12:22 ron_frown: build/tools/adbs logcat Sep 26 00:12:32 there might be a "stack" tool somewhere inthe source tree too Sep 26 00:12:46 wait what? Sep 26 00:12:53 thats where I got that trace was from logcat Sep 26 00:13:07 adb****s**** Sep 26 00:13:08 not adb Sep 26 00:13:13 oh weird Sep 26 00:13:19 Besides build.prop, where else is the device information stored? Sep 26 00:13:20 Already done,but no method AssetManager.getAssetLength() in AssetManager Sep 26 00:13:41 thegrinch1: oh yeah my bad it's private Sep 26 00:14:01 I appreciate the pointers romainguy_ Sep 26 00:14:20 :) Sep 26 00:14:40 thegrinch1: then open the asset as a file description Sep 26 00:14:44 I think diagnosing the stacktraces will at least give me an idea where I can look which will be good Sep 26 00:14:49 and use getLength() oon AssetFileDescriptor Sep 26 00:15:00 s/diagnosing/decoding Sep 26 00:15:41 I tried,but it raises an exception saying:"This file can not be opened as a file descriptor; it is probably compressed" Sep 26 00:15:49 It's a binary file Sep 26 00:16:07 And I intend to use gziped files Sep 26 00:22:41 Does anyone else's eclipse bug out when your editing a layout xml file through the editor (not the gui one, but hte text editor)? Sep 26 00:22:57 I'll be typing and then it'll just draw some of the other text over what I wrote, and if i highlight it tunrs into something else Sep 26 00:23:02 so i have no idea what i'm actually editing Sep 26 00:24:12 had the same problem...no answer about that. Sep 26 00:24:18 its super annoying Sep 26 00:24:22 I don't know if its eclipse or ADT Sep 26 00:24:43 I am sadly excited that adbs is gonna help out debugging Sep 26 00:25:01 haha such a common prob in windows Sep 26 00:28:24 weird....I inserted a file "a.gz" int the assets and the assetmanager list it's filename as just "a"... is it normal? Sep 26 00:31:18 I'm making an app (updating, I suppose) an app that gets logcat logs. If the user is on jellybean, and the app is converted to a system app, can it get logs? Or must it run logcat as root? (Kind of trying to avoid running a root script) Sep 26 00:31:26 do I need to put MediaPlayer as an object in my main.xml like I would VideoView ? Sep 26 00:32:03 or can I just initialize it all from within MainActivity alone Sep 26 00:33:43 shmooz: layout xml files are for Views you want instantiated from declarative xml. If it's not either of those things, you don't put it there. Sep 26 00:35:15 thanks freeone3000 Sep 26 00:36:12 Another quirk ADT gives me is that when I enter a new string into the string ID editor, it doens't auto pick that string when I click OK. If I just made a string to be used, I'm obviously going to pick it. IIRC it used to do this... Sep 26 00:36:13 I need it to pop up after having gone through some list choices like Countries->Channels->Play Sep 26 00:37:03 shmooz: So you need to have its visiblity be GONE by default, and VISIBLE on action. Sep 26 00:37:16 I just discovered the visibility of views Sep 26 00:37:19 I'm using it right now :D Sep 26 00:40:55 hmmm getting sound but no video :( Sep 26 00:41:07 shmooz: Unsupported video codec, sounds like. Sep 26 00:41:28 its a mobile rtsp link Sep 26 00:41:33 for discovery channel Sep 26 00:42:04 I'll try another stream Sep 26 00:46:11 is this suppose to load? I'm getting an error trying to install the plugins... https://dl-ssl.google.com/android/eclipse/ Sep 26 00:46:20 FF and eclipse says it's broken :( Sep 26 00:55:01 Using org.apache.http.conn.ssl.SSLSocketFactory is giving me a NoSuchMethodError on (SSLContext). Why? It compiles fine, obviously. Sep 26 00:56:15 anyone have a copy of the eclipse ADT plugin zip? google isn't giving it to me... either direct .zip or pointing eclipse to their repo Sep 26 00:57:02 Okay. Apparently there's a conflict. How do I tell the android runtime that I want to use the class from my APK, not the one from the android standard library? Sep 26 00:57:26 how can I prevent asset files from being compressed?(defining a custom extension which disable asset compression) Sep 26 01:03:11 no idea? Sep 26 01:10:27 Maven came to the rescue; maven-shade-plugin allowed me to simply repackage httpcomponents and dynamically change the bytecode of the affected classes. Sep 26 01:14:13 Or not. Looked like it worked. Didn't. Darn. Sep 26 01:20:25 So how do you all have proper HttpClient support regardless of Android version? Sep 26 01:27:42 freeone3000: what seems to be the issue with the built-in http components? Sep 26 01:29:37 so can anyone give me a copy of the latest ADT, seems it can't be downloaded from google... and I want to start programming :/ Sep 26 01:29:53 err, eclipse plugin Sep 26 01:30:11 how would I do that? Sep 26 01:30:27 you dont download from google Sep 26 01:30:29 both methods, both http and https do NOT work http://developer.android.com/sdk/installing/installing-adt.html ... Sep 26 01:30:33 you download from eclipse Sep 26 01:30:52 KNERD, and i put the android url in and eclipse says it's broke Sep 26 01:31:15 may have to wait a while..things do have problems.. Sep 26 01:31:18 sometimes Sep 26 01:32:17 well i've been trying for almost an hour, and it looks like they might be releasing the next ADT tonight... but I'm inpatient Sep 26 01:32:29 leslie, ehh, if you have the zip laying around I'd take that Sep 26 01:32:34 if not... uhh, dunno Sep 26 01:33:00 Edman007:Which version of eclipse do you use? mine is working with location:https://dl-ssl.google.com/android/eclipse/ Sep 26 01:33:22 4.2.0 Sep 26 01:33:40 same as mine.... Sep 26 01:34:00 Yep...me too : ADT Plugin - https://dl-ssl.google.com/android/eclipse/ Sep 26 01:34:17 yeah, it's working fine for me too. I just updated to 20.0.3 Sep 26 01:34:29 http://dl.google.com/android/ADT-20.0.3.zip <- does that download 11MB? Sep 26 01:34:44 if so can you download and send to me? maybe that will work :/ Sep 26 01:35:12 no updates found Sep 26 01:35:24 Did you do the "Help->Install new software" and "Add" with "https://dl-ssl.google.com/android/eclipse/" Sep 26 01:35:52 "Why would I do that? I just wan the ADT yesterday!" Sep 26 01:36:07 the ADT is not very big...the SDK is... Sep 26 01:37:02 quite. my sdk folder is 2.45Gb and I only have two SDKs installed Sep 26 01:37:02 edman:You want the latest one or just have none and want one? Sep 26 01:37:36 Version: Juno Release Sep 26 01:37:36 Build id: 20120614-1722 Sep 26 01:38:08 I have all the SDKs and it's 3.5Go Sep 26 01:38:59 anyways, eclipse says Error reading update site https://dl-ssl.google.com/android/eclipse/. Error reading update site https://dl-ssl.google.com/android/eclipse/. Premature end of file. Sep 26 01:39:05 thegrinch1, i have none and want one Sep 26 01:39:17 leslie: It doesn't allow me to override the in-build SSLSocketFactory's SSLContext with my custom one with a custom X509Authenticator. Sep 26 01:39:34 leslie: Basically, I need to put it into "encrypt, but don't validate" mode. Sep 26 01:39:50 freeone3000: ah ok. well, it's open source. maybe you could just change the package names and recompile Sep 26 01:40:14 leslie: That's what maven-shade-plugin is supposed to do, but apparently dex hits first and apparently android classes aren't java classes. Sep 26 01:40:26 leslie: Unless you mean manually. Sep 26 01:40:31 http://developer.android.com/sdk/installing/installing-adt.html....the zip is properly downloading Sep 26 01:41:00 by clicking the zip Sep 26 01:41:02 I'm not sure how the whole dex thing would affect it. can you take the jar file and just repackage those, without running it on the whole program? Sep 26 01:41:52 leslie: It's ideally part of the build process. As in, I reference a.b.C, and when packaging my classes, it changes a.b.C to x.y.Z, and all bytecode references to a.b.C to x.y.Z in my code, and all of my libraries... Sep 26 01:42:22 yeah, but clearly that's not working, and it's not something you'd have to do regularly, just whenever you update the httpcomponents jar Sep 26 01:42:37 http://edman007.mine.nu/~edman007/pub/android-eclipse.png Sep 26 01:42:41 Okay, so a manual repackage. Sep 26 01:42:50 thegrinch1, not for me :( Sep 26 01:42:58 downloads as a zero byte file Sep 26 01:43:39 edman007: https://dl.dropbox.com/u/3086823/ADT-20.0.3.zip there's the zip file, if you can figure out what to do with it Sep 26 01:45:18 freeone3000: it's probably just getting confused by the fact that the httpcomponent classes are also referenced in android.jar Sep 26 01:46:19 leslie, that works... Sep 26 01:46:36 maybe my local google download server is fubar... Sep 26 01:46:39 Running a CM10 rom on my atrix... ADB is not seeing it Sep 26 01:46:47 Not sure if I need the moto driver or the google usb driver Sep 26 01:47:08 im going to guess it's the 'Motorola ADB Interface' <_< Sep 26 01:47:18 probably the moto one Sep 26 01:47:28 the google one is only for nexus devices afaik Sep 26 01:47:55 I want a nexus... Sep 26 01:48:30 Motorola has taken a dump all over atrix users, and gave some diarrea to bionic users Sep 26 01:49:26 I'm tempted to get a Nexus 7. even though I really don't need one Sep 26 01:49:30 I have two tablets already Sep 26 01:49:39 can anyone help with "Error while reading from repository: http://dl-ssl.google.com/android/eclipse/site.xml." on a mac with a fresh juno install? Sep 26 01:50:14 benbruscella, that's what I had, that site was fubar Sep 26 01:50:24 couldn't download, and some people said it worked Sep 26 01:50:36 edman007: whats the solution? Sep 26 01:50:37 then I get the file and it magically started working right after that Sep 26 01:50:41 benbruscella, wait an hour Sep 26 01:50:47 been 24 hours Sep 26 01:50:48 I think google is doing an update Sep 26 01:51:41 ohh, IMHO the repo is suppose to be http://dl-ssl.google.com/android/eclipse/ (without the site.xml), dunno if that matters though, worth a try, and google says try with http:// too Sep 26 01:58:17 Anyone installed the Google Play app on the emulator? Sep 26 01:59:03 does anyone have an app on google play that has a video on the market page? and if so, can you link me :( Sep 26 02:00:55 kanzure: https://play.google.com/store/apps/details?id=com.squareup.cardcase Sep 26 02:01:39 JakeWharton: thank you Sep 26 02:03:01 I have a preference screen (not sure the exact term...) that is an activity. It has 4 items in it. It does not seem to fill up the entire screen on my phone. I do not use a layout, so this activity is done entirely in java. Is there a setting to make it take up the whole screen? Every other part of hte app uses the full screen. Not sure if I need to put a match_parent somewhere... Sep 26 02:05:31 I am D/l the 3.7.13 of the google play app Sep 26 02:07:57 Mgamerz: provide a screenshot Sep 26 02:08:01 i am Sep 26 02:08:03 in progress Sep 26 02:08:18 https://docs.google.com/open?id=0B9bwvhTrA6pZLXVPNWI5VU53Z3M Sep 26 02:08:25 Mgamerz: you can override preferencesactivity and modify the view I'd imagine, but in general prefs are linearly stacked and not scaled full screen so you might want to keep the preferences panel standard Sep 26 02:08:45 In GB and below it looked fine Sep 26 02:09:01 I don't see why the compatabiolity lib doesn't have preference fragment Sep 26 02:09:21 it looks like what I'd expect it to look like? Sep 26 02:09:33 Mgamerz: because the APIs didn't exist Sep 26 02:09:35 you can't backport everything Sep 26 02:09:36 No. Why does it not go all the way? There shouldn't even be scrolling Sep 26 02:09:45 It's in a little box in the middle Sep 26 02:09:45 If I have some standard component, like "Current time: hh:mm", how do I use this in multiple activities? Sep 26 02:09:55 since code must fill out and update the hh:mm Sep 26 02:09:56 addPreferencesFromResource(R.xml.options); Sep 26 02:10:03 just use the native PreferenceFragment on API 11+ and the crappy activity one on pre-11 Sep 26 02:10:22 has someone used opengl 2.0 with the emulator? Sep 26 02:10:29 this is what people call 'fragmentation' Sep 26 02:10:39 I should not have to code this twice Sep 26 02:11:23 and those people would be wrong Sep 26 02:11:35 you're not coding it twice, you're switching implementations of the display mechanism Sep 26 02:12:01 you can use preferenceactivity on ics as well Sep 26 02:12:18 But my app MUST run on less than 2.3. Sep 26 02:12:27 so use preferenceactivity Sep 26 02:12:32 ............. Sep 26 02:12:34 I AM! Sep 26 02:12:54 yes but you shouldn't Sep 26 02:12:58 ok? I don't know what you're talking about then. Your screenshot looks normal to me. Sep 26 02:13:15 Don't yo usee the scroll glow? The top faded out? Look at all that black space. Sep 26 02:13:18 i'm not a huge fan of a single list of preferences taking up my 10" screen Sep 26 02:13:31 It has no subpreferences Sep 26 02:13:45 no opengl programmer there? Sep 26 02:13:47 It looks like a standard preference screen in portrait mode to me Sep 26 02:13:58 let me show you it in portrait Sep 26 02:14:04 er, landscape Sep 26 02:14:51 https://docs.google.com/open?id=0B9bwvhTrA6pZYW5ScE95bXZNbVU Sep 26 02:15:12 It has some padding to the left and right. Not a lot. Acceptable. Sep 26 02:15:32 But in landscape there is a lot of padding to the left and right, and a huge padding to the top and bottom Sep 26 02:15:44 so you're doing something to cause it Sep 26 02:15:47 if you add up the padding and the title bar you get maybe half of hte screen Sep 26 02:16:13 http://pastebin.com/EUNjH06a Sep 26 02:16:29 I love how pastebin always rapes the formatting. Sep 26 02:16:46 actually that's your code not consistently using tabs or spaces Sep 26 02:16:57 Ctrl Shift F Sep 26 02:17:02 Code looks great in eclipse Sep 26 02:17:11 because your tabs and spaces happen to line up Sep 26 02:17:44 how about your theme? and your menu XML? Sep 26 02:17:52 and what SDK are you compiling with? Sep 26 02:17:55 what API are you targetting? Sep 26 02:18:06 Targetting 4.0, min 2.1 Sep 26 02:18:18 testing on 4.1 right now cause thats all I have phone wise. Sep 26 02:18:25 Will run others in the emulator. Sep 26 02:19:21 I don't have a menu.xml. I am using a preference activity. Sep 26 02:19:54 Errr Sep 26 02:20:09 I have an options.xml. (folder names). Contains PreferenceSCreen and some preferences in it. Sep 26 02:20:19 (those 4 items) Sep 26 02:21:06 I never get why the emulator doesn't have an orientation button. Sep 26 02:21:16 it does Sep 26 02:21:18 it does.... Sep 26 02:21:26 use the 9 keypad.. Sep 26 02:21:33 thats not a button, thats a key Sep 26 02:21:51 it looks fine on eclair Sep 26 02:22:39 https://docs.google.com/open?id=0B9bwvhTrA6pZOXpxTF9sRWNZQ2s Sep 26 02:41:19 http://stackoverflow.com/questions/12593789/preferenceactivity-works-properly-on-android-2-1-but-not-4-1-padded Sep 26 02:50:03 edman007: tried all that, no luck. any other ideas? Sep 26 02:50:26 uhh, what's the exact error? Sep 26 02:50:52 Mgamerz: huh, interesting. i'll have to see if that happens to me too :| Sep 26 02:51:03 It is rather annowing. Sep 26 02:52:33 i have to tweak some behavior for 4.1.1 myself, my app seems to crash all of a sudden :( worked fine froyo - up Sep 26 02:52:56 its a SecurityException from the content provider; still trying to figure it out Sep 26 02:53:21 Wish there was a website that listed all android drawables for menus, and told me if they were private or not. Sep 26 02:53:32 I can see all of them but none of them tell me if they are private or not. Sep 26 02:53:45 The forward button is private. Seriously. Sep 26 02:57:09 g00s, so they probably fixed a security exploit :P Sep 26 02:57:15 oi Sep 26 02:57:35 canadiancow: perhaps ! Sep 26 02:57:51 oi ron_frown Sep 26 02:59:15 now, this is very interesting http://phandroid.com/2012/09/25/survey-says-developer-interest-in-android-on-the-decline/ Sep 26 02:59:25 but, despite headlines, seems all pplatforms are showing decline Sep 26 02:59:46 so i wonder if this is true "The figure could be easily attributed to the introduction of new platforms such as Windows Phone or to a general shift towards HTML5 over native mobile apps." Sep 26 02:59:57 but i can't imagine the HTML5 part, yet **** ENDING LOGGING AT Wed Sep 26 02:59:58 2012