**** BEGIN LOGGING AT Thu Jun 28 02:59:58 2012 Jun 28 03:04:13 what do i use to read a text file line by line in android? Jun 28 03:04:30 the Java APIs Jun 28 03:04:50 google: java read text file line by line Jun 28 03:05:33 scanner right? Jun 28 03:05:42 I thought that could be used on android Jun 28 03:05:59 *couldn't Jun 28 03:06:34 Ginger: there are many options you have for reading files Jun 28 03:06:47 All from java Jun 28 03:08:42 scanner is easiest though Jun 28 03:12:07 Ginger: then use a Scanner? Jun 28 03:17:08 hi Jun 28 03:17:19 train … wreck :) Jun 28 03:17:27 cool the guitarist uses my ap tho ;) Jun 28 03:17:29 where's Google AOSP bugzilla? Jun 28 03:17:29 *amp Jun 28 03:17:59 after a runnable has run and finished is it null? Jun 28 03:18:19 or how to report a bug in Android framework? Jun 28 03:19:05 gump, google 'android issues' Jun 28 03:24:42 hehe, these 2 singing are funny Jun 28 03:24:50 fun Jun 28 03:35:04 but i cant figure out to get scanner to read file on android when im the who made it and placed it in the app scanner was broken Jun 28 03:37:27 how do i search for publishers from the web and not exact matches ? Jun 28 03:52:05 how do i search for publishers from the web and not exact matches ? Jun 28 03:53:13 pub: Jun 28 03:57:35 but that requires the exact match i am looking to search by keywork for say Goo Jun 28 03:58:08 and return a list matching all of the apps that include Goo such as Google. Google Inc. Googl etc Jun 28 03:58:39 JakeWharton, ^^ Jun 28 04:02:06 ctate, you around ? Jun 28 04:06:38 anyone have any thoughts on Juno? looks kinda the same :| Jun 28 04:10:00 hmm, i wonder if this version of the support library will fix the viewpager / fragment/ options menu bug Jun 28 04:10:23 is v9 new? i can't even tell Jun 28 04:11:07 any hints on how to "automatic" load some data from picture? Jun 28 04:14:07 hm, ok. compat lib looks new Jun 28 04:27:24 you mean r9? Jun 28 04:27:31 revision 9 Jun 28 04:27:51 v9 would imply API 9 with their naming convention Jun 28 04:28:12 yeah, sorry Jun 28 04:28:28 had to check and make sure there wasn't another new one Jun 28 04:30:57 I use motodev/eclipse for android dev and it used to auto complete so if you typed this. it would pull up a menu with the functions for this and now it does not what setting is this under/does anyone know? Jun 28 04:41:07 does anyone use eclipse? Jun 28 04:43:07 JakeWharton: any idea if this is fixed with the new support lib https://github.com/JakeWharton/ActionBarSherlock/issues/351 Jun 28 04:43:40 no idea Jun 28 04:44:00 haven't played with the support lib yet Jun 28 04:44:07 updating our apps to use the new APIs Jun 28 04:45:54 these new notifications are amazing Jun 28 04:48:39 JakeWharton: if i am going to use abs 4.1.0, does it matter if i say targetSdk=15 or 16 ? Jun 28 04:48:53 no Jun 28 04:48:59 ok, thanks Jun 28 04:48:59 targetSdk just has to be greater than 11 Jun 28 04:49:03 preferably 14+ Jun 28 04:49:12 compilation SDK has to be Android 4.0 or newer Jun 28 04:49:37 what new notifications JakeWharton ? Jun 28 04:50:16 sup dogs Jun 28 04:50:21 oh crap Jun 28 04:50:39 mikey mikey Jun 28 04:50:49 jakey jakey Jun 28 04:50:51 damccull: rich notifications with expanded views Jun 28 04:51:01 oooh. jelly bean? Jun 28 04:51:07 yeah Jun 28 04:51:51 can't wait to mess w/ those Jun 28 04:51:58 hi, just asking, if r20 reinclude source viewing for dependency lib? I'm still updating Jun 28 04:52:07 me neither i want to see what you do with them Jun 28 04:52:25 Is it possible to backport notifications? Probably not, right? Jun 28 04:52:28 i'm messing with them now, so much potential Jun 28 04:52:29 no Jun 28 04:52:34 how very sad Jun 28 04:52:42 potential for backporting you mean! Jun 28 04:52:52 Jake Wharton is the houdini of backjobs Jun 28 04:53:10 this is different Jun 28 04:53:22 no it isn't it's identical Jun 28 04:53:39 uh, you would have to rip out the notification manager Jun 28 04:53:41 it's perfect for a bj by jake Jun 28 04:53:46 hehe Jun 28 04:53:52 badumpcha! Jun 28 04:54:11 mikey mikey Jun 28 04:54:13 I just back ported all of Jelly Bean's APIs. You have to be running Jelly Bean to use them though Jun 28 04:54:31 they changed so much now that they finally put the most up to date google auth source code up Jun 28 04:54:32 grrrr Jun 28 04:54:37 forget CM, this is SherlockDroid Jun 28 04:55:01 I forget how to set up Google Authenticator so I can't log in to my work stuff with these new devices :( Jun 28 04:55:10 oooh. partial-updates in play store Jun 28 04:55:22 i really don't understand how they are doing that Jun 28 04:55:41 Oh how i wish I could have made google io this year :( Jun 28 04:56:16 JakeWharton: i insecurely saved my google auth setup qrcode to evernote :/ Jun 28 04:56:17 lol Jun 28 04:56:20 i need to ask ctate, it actually makes me pretty nervous. Jun 28 04:56:24 so i can just register new devices easily Jun 28 04:56:41 g00s: nervous about hat? Jun 28 04:56:51 the play store partial update mechanism Jun 28 04:56:55 why? Jun 28 04:57:03 these bits are the same, don't ship them Jun 28 04:57:08 i like it Jun 28 04:57:11 faster updates Jun 28 04:57:45 oh interesting...they're gonna encrypt our paid apps now eh? Jun 28 04:57:56 even if it does make you nervous, it's already turned on and enabled and you can't disable it Jun 28 04:58:17 so why bother caring, literally not a soul wants to steal your app Jun 28 04:58:42 nor mine, nor anyone in here probably Jun 28 04:58:44 i'm not worried about anyone stealing the app, i don't see what that would have to do with partial updates Jun 28 04:59:04 what's to worry about Jun 28 04:59:05 whats wrong with partial updates? Jun 28 04:59:07 save too much money? Jun 28 04:59:07 i'm more worried about applying deltas incorrectly Jun 28 04:59:19 that's not your problem Jun 28 04:59:22 they will fix it if they are doing it wrong Jun 28 04:59:23 also, checksums Jun 28 04:59:40 i'm more concerned about bit loss during 3g transfers Jun 28 04:59:47 what if i lose the first bit of all my apk's Jun 28 04:59:51 my users are going to be pissed Jun 28 04:59:57 that's my favorite bit of your app! Jun 28 05:00:05 insta-refund without it Jun 28 05:00:07 everyone loves the first bit Jun 28 05:00:14 a guy buys your app then cancels the payment a few seconds into the purchasing process. Is that somebody stealing the app? It's happened a few times Jun 28 05:00:34 no Jun 28 05:00:42 capture never happened, the app was never authed to the account Jun 28 05:00:59 mebbe they just pressed the wrong button Jun 28 05:01:48 you can wash shoes right? Jun 28 05:01:48 what's the first bit so important for? :) Jun 28 05:01:54 JakeWharton: so you did or did not get into io? Jun 28 05:02:00 yeah i was there Jun 28 05:02:12 playing with 4.1 on my Nexii Jun 28 05:02:23 they wouldnt let me get mine tonight :( Jun 28 05:02:26 have to wait til tommorow Jun 28 05:02:29 trying to update our apps to use new notification API Jun 28 05:02:32 mike novak let me borrow his for the day though Jun 28 05:02:44 my usb port broke :( Jun 28 05:02:54 All you folks suck. And I'm jealous. Jun 28 05:02:58 is that a euphemism? Jun 28 05:03:26 nobody answered my question about shoes and #shoes-dev is empty Jun 28 05:03:27 no... Jun 28 05:03:30 do you want it to be Jun 28 05:03:35 yes ;) Jun 28 05:03:44 well, no. it sounds painful Jun 28 05:04:05 it is Jun 28 05:04:06 JakeWharton, you can wash tennis shoes. dunno about other kinds Jun 28 05:04:24 i asked Google Now Jun 28 05:04:27 my price for that advice is that you steal me one of each dev device while there and ship them t omy house. Jun 28 05:04:35 muahaha Jun 28 05:04:42 google now needs more press Jun 28 05:04:44 they're in these locked wire cages Jun 28 05:04:49 its the most impressive thing of io for users at least Jun 28 05:04:54 complete shit for devs Jun 28 05:05:01 also, why are we giving devs a nexus Q Jun 28 05:05:03 ? Jun 28 05:05:11 it was like 2000 Nexus 7s just sitting there Jun 28 05:05:13 hey here's something you can't dev for Jun 28 05:05:24 mikedg: you can dev a client maybe? Jun 28 05:05:33 maybe we can have a first gen google tv too Jun 28 05:05:42 i haven't plugged mine in yet, i still have a Google TV I got a month ago that hasn't been plugged in yet either Jun 28 05:05:52 night folks. Jun 28 05:05:56 plug it in, see if we can dev a client Jun 28 05:06:05 i want to make a penis app and send penises to all the Qs Jun 28 05:06:21 your video is great, but this PENIS is better Jun 28 05:06:40 i'm jake wharton and i approve that message Jun 28 05:07:10 i wanted to interrupt the last question during the fireside chat and say action bar sherlock is the greatest library of all time, but that required effort Jun 28 05:07:16 so i thought hard and hoped someone closer would do it Jun 28 05:07:20 an they did not Jun 28 05:08:26 i want to try my new build of google authenticator, but dont feel like switching phones again grrr Jun 28 05:08:36 I bought a Sphero Jun 28 05:09:04 http://www.gosphero.com/sphero/overview Jun 28 05:13:36 they came to our office two weeks ago Jun 28 05:14:40 mikedg: i expected you to be one of the BMX bikers and ride off with the glasses Jun 28 05:16:52 any hints on how to get(load) some data from image? Jun 28 05:17:03 be more specific Jun 28 05:19:23 Is there a lower level camera API that will allow me to capture images from the camera without the hassle of rendering a preview pane and trying to guess at when a preview is ready? Jun 28 05:20:14 hey i am trying to develop an camera application which click image in grey mode and sed the image to the server Jun 28 05:20:24 can any on help me on this Jun 28 05:21:21 mikedg: i'm going to invite you to a Google+ Event in my pants Jun 28 05:21:41 oh now we're talkin! Jun 28 05:21:59 JakeWharton for example image with some account number and list of bought things... how to get(read) that account number or/and bought things... Jun 28 05:22:14 you need an OCR library Jun 28 05:24:22 thx Jun 28 05:24:23 anyone know an app that displays a live waveform of the mic? I need it for debugging purposes Jun 28 05:29:32 hi guys, could anyone give me some ideas about a plan of attack? I am calling OpenCV functions from NDK, often when using the cvLoad function I will get a long delay (30-40 seconds) and a SIGSEGV … however very occasionally it will work straight up. About 1 in 10 times the app will work. I am aware that when the register is 0XDEADBAAD would indicated corrupted heap memory (maybe freeing memory prematurly), but I think this would existing somwhere in c Jun 28 05:33:07 hi everybody Jun 28 05:33:20 Guys, I have this sql statement: "SELECT attempted, correct FROM progress;". Can someone tell me how to get the values "attempted" and "correct" when executing this query in Java? :/ Jun 28 05:34:03 bah samples are all redirecting to the api demos now…. stupid Jun 28 05:34:12 this is fun: http://www.theverge.com/2012/6/28/3122587/android-4-1-jelly-beans-easter-egg Jun 28 05:34:47 ahh yes jelly bean and the new fire killer, must google Jun 28 05:35:02 JakeWharton: can you help me.. m trying to create an app to click an image in grey mode and send it to server Jun 28 05:39:38 ? Jun 28 05:59:18 anybody familiar with this error? Occured right after updating to the new ADT. http://pastebin.com/K479W2E2 Jun 28 06:04:28 compiling with JDK7? Jun 28 06:05:09 wow, the nexus 7 went from 0 to finish in 4 months with a 24 hour development cycle Jun 28 06:07:19 is there any way to make a fake root directory on the sdcard ? Jun 28 06:07:28 JakeWharton: yeah Jun 28 06:12:57 lwizardl: a fake directory? no? you can make a real directory. Jun 28 06:14:59 dragorn, what i want to do is basically change the system from using /sdcard as root directory for apps into like /sdcard/AppsUseThis/ Jun 28 06:15:37 lwizardl: if you make a custom rom. Which is maybe something for #android-root Jun 28 06:16:15 k, wasn't sure if it could be done with an application or not Jun 28 06:17:24 lwizardl: do you think that app A should be able to change how app B sees the filesystem? Jun 28 06:17:51 yeah I can see it that way Jun 28 06:38:07 fuuuuu … hike into the mountains for epic pictures pre dust storm, didn't focus right and they all came out like shit Jun 28 06:41:25 what are the default mount points for internal and external storage ? Jun 28 06:41:53 i think the oems can partition stuff however the hell they want Jun 28 06:41:55 lwizardl: there's a function to get the path to external storage Jun 28 06:42:16 yeah, you have to use Environment.* and Context.& functions to get the paths Jun 28 06:42:20 Environment.getExternalStorageDirectory(); Jun 28 06:42:30 but read the docs Jun 28 06:42:52 i was reading from a google search and it was showing as this Jun 28 06:42:54 Internal = /sdcard = /mnt/sdcard Jun 28 06:42:56 External = /emmc = /mnt/emmc Jun 28 06:43:06 yeah, don't rely on that Jun 28 06:43:10 which doesn't sound right to me Jun 28 06:43:15 read the docs..... Jun 28 06:45:05 lwizardl: the only reliable way is to use the official API functions to get the path. Jun 28 06:45:48 okay Jun 28 07:01:54 annoying. program works fine on my android but crashesh 2 other androids. Humhum. Jun 28 07:03:11 i've got a project that is giving me an error when trying to run, it has the intent name wrong, and therefore the class does not exist. It's correct in the manifest and the .java class file. where else could this be coming from? Jun 28 07:03:51 I just received an odd stacktrace : http://pastebin.com/pmZSFc8D . The guy who sent it to me is using a galaxy nexus on stock rom / stock kernel ... on my galaxy nexus I have no issue at all Jun 28 07:12:45 tneva82_: did your program make some assumation? Jun 28 07:12:56 nice word Jun 28 07:12:57 maybe its something different about your device Jun 28 07:20:01 hi there, whats the name of the mentioned tool yesterday @googleio for tracing like traceview ... Jun 28 07:20:59 hotzenpl0tz: systrace Jun 28 07:22:58 romainguy_: thanks a lot! Jun 28 07:24:07 romainguy_: so I hear you're not the guy to talk to about getting a global N7? :) Jun 28 07:29:00 bah. think this program is getting too messy :( Feel like rewriting it from scratch. Jun 28 07:33:43 i enabled debugging on my Q but it doesn't seem to want to be recognized by adb Jun 28 07:34:38 do i need to grab the USB vendor ID from dmesg and add it to ~/.android/adb_usb.ini or whatever? Jun 28 07:34:48 JakeWharton: I was about to suggest that, yes Jun 28 07:35:15 also, how do you enable debugging? :) Jun 28 07:35:37 when you pair a device you can access it in the settings Jun 28 07:35:45 ah, nice Jun 28 07:36:53 I'm also trying to unbork my AOSP clone. One of the repos refuses to return to a clean state to let me sync Jun 28 07:37:24 Does anyone know how to get the "Users who viewed this also viewed" or "Users who installed this also installed" list on the side of your app's homepage on Google Play? Jun 28 07:37:38 Notevision: by waiting for a week or so Jun 28 07:37:51 Notevision: it probably requires a certain threshold of visitors first to stabilize the data Jun 28 07:37:56 Does it usually take that long? Or is it only if your app gets popular? Jun 28 07:38:04 and i can't image the job that populates those runs constantly Jun 28 07:38:23 Google has given me a graph showing around 10-50 installs of my app. Is that too low to get that list? Jun 28 07:39:23 (to get a : "Users who viewed this also viewed" list) Jun 28 07:39:23 I do not know (nor do I think we'll ever be given) the exact numbers required. And, furthermore, I'm only speculating that a minimum number of visitors is required. There may be some other requirement. Jun 28 07:40:33 Well, on average, how many visitors do you usually get to your app once it's finally published within the first week or month? Considering you (the creator) believe it's a suitable and good looking app. Jun 28 07:41:07 your opinion doesn't matter... the opinion of 400 million users does Jun 28 07:44:32 Well do the views usually go up? Do people actually spend a pain taking amount of time to promote their app? Or do they just submit and hope for the best? Jun 28 07:44:45 Oh noes. I crashed the I/O app :-/ Jun 28 07:45:15 JakeWharton: now just hope it is not a bug in your ABS ;-) Jun 28 07:45:36 scrambling for a cable to check longcat Jun 28 07:46:14 t Jun 28 07:46:56 NOPE Jun 28 07:47:31 something auth-related. worked on the second time around. Jun 28 08:28:34 hmm, using tabs with a simple 32x32 icon Jun 28 08:28:51 on the emu the tabs only take the same width as the icon Jun 28 08:29:01 so the 5 tabs i have fit on one screen pretty easily Jun 28 08:35:48 having absolutely zero design skill sucks lol Jun 28 08:35:52 as in graphical design Jun 28 08:39:22 eSatsu: look up dilbert engineer gui Jun 28 08:40:40 eSatsu: http://dilbert.com/strips/comic/2002-09-23/ go foward 2 more times for complete story Jun 28 08:45:08 hey guys Jun 28 08:45:16 anoyone here with a little JSON experience in android? Jun 28 08:47:20 i used before Jun 28 08:52:14 so what function was called when keyboard lock is engaged? onPause()? Jun 28 08:58:40 ehh Jun 28 08:59:50 on the emulator the tab sizes vary according to the size of the icon used Jun 28 08:59:58 All app i Jun 28 09:00:06 but on my 4.0.4 ics samsung galaxy s3 they dont Jun 28 09:00:21 doesnt matter whether i use 32x32 or 16x16 icons can only fit 3 in the screen Jun 28 09:00:46 while on the emu with smaller res 5 32x32 icons will fit in easily Jun 28 09:03:34 hi Jun 28 09:03:58 Has the android developer site a new layout? I am not sure, if I am on the corrct site? Jun 28 09:04:06 http://developer.android.com ? Jun 28 09:05:56 gaah. I can get program working just fine as long as keyboard isn't locked or orient changed but one of those happen and some error or another comes up. Beh. Does the variables get reseted or something? locationManager.removeUpdates(locationListener); seems to not stop the GPS location tracking sometimes for example when button is pressed. Button goes just fine but it still blinks for GPS Jun 28 09:05:56 location... Jun 28 09:09:37 which irc client supports socks 4/5? Jun 28 09:09:57 ?? Jun 28 09:10:23 on android.... Jun 28 09:12:06 any1 here worked with ActionBarSherlock before? Jun 28 09:13:54 alright, so i have this login screen, that sends httppost messages (username and password) to a php server, the php server uses it to check if the user and pass exist in the database, and then creates a session. this all works, but after it creates a session, the android app jumps from login screen to another screen that lists database values into a listview. Jun 28 09:14:26 but it only shows them when your logged in, how can i get the session from php to android? because it doesnt save it after i log in. Jun 28 09:18:01 any samples in github that uses phonegap ? Jun 28 09:19:18 I'm using ActionBarSherlock with tabs, and when i'm in landscape mode and there are x action items, the tabs get shown as a dropdown list Jun 28 09:19:36 now that's not really a problem, but when i then swipe to next tabs, the dropdown list doesn't get updated Jun 28 09:19:44 any1 got an idea how to fix this? Jun 28 09:20:34 how can I tell an activity to be "landscape" or "portrait" depending on the device type? (smartphone or tablet) Jun 28 09:24:35 any sample application in github that uses phonegap ? Jun 28 09:28:29 how can i re-use those http sessions or cookies? can you in any way get them from the header? Jun 28 09:39:13 anyone? Jun 28 09:51:47 any1 knows how to update the ActionBar dropdownlist when swiping to other tabs? Jun 28 10:00:13 hey, is there a way to show a context menu for just some of the items in a listview? Jun 28 10:01:02 * g00s wonders what keynote days 2 will cover Jun 28 10:02:17 chrome(OS)? Jun 28 10:02:22 hmm Jun 28 10:13:06 Leeds: are you using chromeOs Jun 28 10:13:16 good lord no Jun 28 10:19:43 i think i will employ the same strategy as day 1 : sleep through it and get the bullet points from the verge Jun 28 10:19:56 yeah, not planning to stay up for it tonight Jun 28 10:20:19 although they have announced that they're going to run the glass stunt again, for those who missed it yesterday and want to see it live Jun 28 10:20:43 in vegas? Jun 28 10:21:46 it was in San Francisco yesterday... Jun 28 10:22:43 so i'm guessing … with google working with asus, on this 7" tablet - since there are no margins, any sane oem would probably give up on 7" Jun 28 10:24:01 i wasn't in SF yesterday Jun 28 10:24:07 would have liked to be there though Jun 28 10:24:32 yeah me too; i would have asked one of several hard questions during the fireside :) Jun 28 10:25:24 i would have gone to Denny's Jun 28 10:25:31 i could use a slice of french toast Jun 28 10:25:40 hehe Jun 28 10:25:50 mmmm Jun 28 10:25:56 i should go to the USA again Jun 28 10:26:29 but when Jun 28 10:26:30 and how Jun 28 10:26:35 and with whom Jun 28 10:26:36 i want to go on an US eating tour Jun 28 10:26:37 * g00s would have paid to see Leeds get on stage and sing Don't stop Believin' Jun 28 10:26:45 following the trails of man v food Jun 28 10:26:51 mmm applebee's Jun 28 10:26:57 mmm heartattack grill Jun 28 10:26:58 TGI friday's Jun 28 10:27:02 that's the second time this week someone has suggested I get on stage and sing... Jun 28 10:27:08 I miss america Jun 28 10:27:26 Snuffel: did you leave it :P Jun 28 10:27:35 wait, you're Miss America??? Jun 28 10:27:41 i am so going to take my daughter to disney world when she's old enough Jun 28 10:27:49 g00s: i never lived there Jun 28 10:27:55 oh, i assumed that farm picture was in the us ! what a clod Jun 28 10:28:35 oh the one I took with my phone Jun 28 10:28:45 no that was in the very crowded country called The Netherlands Jun 28 10:30:46 i've been to the US a few times Jun 28 10:30:48 and I loved it there Jun 28 10:32:16 the US is crazy Jun 28 10:32:34 "cray cray" is the technical term, i believe :D Jun 28 10:33:30 so today, loooking through keynote stuff, they said 1million activations per day Jun 28 10:33:57 but i still don't see any revenue figures Jun 28 10:34:25 Is it possible to upgrade to jelly bean already? Jun 28 10:36:00 To submit an android app, how much does it cost? Jun 28 10:36:07 $25 Jun 28 10:36:09 $25 dollars a year? Jun 28 10:36:21 no, forever i think Jun 28 10:37:35 That's pretty good, are there any other submission fees that I should expect? Jun 28 10:37:43 no Jun 28 10:39:07 That's great, would I be correct in thinking google play is the correct place to submit an android app? Jun 28 10:39:33 laaalla Jun 28 10:39:34 any1 knows how to update the ActionBar dropdownlist when swiping to other tabs? Jun 28 10:39:40 now I want french toast Jun 28 10:39:42 and pancakes Jun 28 10:39:44 and bacon Jun 28 10:39:52 and toast Jun 28 10:40:07 and cheesepuffs Jun 28 10:40:11 or doritos Jun 28 10:40:17 but that's weird in the office Jun 28 10:43:01 * g00s hopes adt 20 plays well with eclipse 4.2 Jun 28 10:43:10 apple741: you don't have to pay anything to develop... you pay a one-off $25 to register as a develop on the Play Store - although other markets are available... Jun 28 10:43:36 Leeds: do you use any other markets ? Jun 28 10:43:54 g00s: I refer to you my earlier answer, regarding ChromeOS Jun 28 10:44:03 hehe Jun 28 10:45:25 Leeds: What the most 'popular' store? Jun 28 10:46:03 play, the main one Jun 28 10:46:51 Amazon is probably second, and there have been a *few* positive reports - but more negative ones Jun 28 10:49:37 I've made an android app and it seems to be going ok so far, whats the cheapest way to test it? Jun 28 10:50:31 erm... install it on your phone and run it? Jun 28 10:50:48 anybody know if its possible to upgrade galaxy nexus to run android 4.1 jelly bean? Jun 28 10:51:24 diverdude: mid-July Jun 28 10:51:36 i think you will have to wait a few days/weeks diverdude Jun 28 10:52:15 ah ok Jun 28 10:52:31 Leeds: I currently don't have an android device to test, is there a 'cheap' recommended one for testing? Or perhaps some accurate way to do this on a computer? Jun 28 10:52:57 apple741: the emulator? Jun 28 10:53:02 apple741: you can test it with the emulator on your computer, but I wouldn't suggest releasing anything without testing it on some hardware first Jun 28 10:53:33 you can pick up really cheap'n'nasty hardware for $100 up, or wait a couple of weeks and grab a nexus 7 for $199 (plus tax, shipping, handling, and bad joke fee) Jun 28 10:54:21 Leeds & g00s : Thanks for all the advice =) Jun 28 10:55:01 good luck :) Jun 28 10:55:48 Thanks Jun 28 10:56:00 there is something of an airline-style dishonesty about pushing a price of $199 for a device which will *only* be sold online, and which you therefore *always* have to pay shipping on Jun 28 10:57:05 to me it's very simple - if something is a fixed fee, which applies to all buyers in all cases, it should be listed as part of the headline price Jun 28 10:59:58 i would like to find out more about the smart app updates bit Jun 28 11:02:53 damn. Still the program crash issue not solved. This time I got back to home screen and BANG then program running on background crashed. Not good. Jun 28 11:04:24 Hey Jun 28 11:04:56 What could I be doing wrong, when my app hangs when I add the GpsStatusListener? http://pastebin.com/GTfSLUrM Jun 28 11:05:23 when I comment out the line 6, it works ok Jun 28 11:06:06 anybody could give ideas on what on background might be causing the crash? It works stable when program is visible. What it does in background that might cause issue? Does altering textviews while on background cause program to crash? If so is there way to determine is the view visible? Jun 28 11:18:03 i can haz help plz? still in need of something to save my cookies when i log in to a website. Jun 28 11:21:25 * g00s gives vancha a cheezeburger Jun 28 11:22:41 cheezeburgers are lousy substitutes for cookies :P Jun 28 11:35:24 helps to keep people quiet though... Jun 28 11:37:00 api 16 isn't showing up in my sdk manager, anyone else? Jun 28 11:37:50 bourke: update adt Jun 28 11:38:17 thilden: bingo Jun 28 11:38:18 thanks Jun 28 11:38:30 i updated just needed to restart Jun 28 11:38:34 for it to show Jun 28 11:40:49 "Starting with Android 4.1, Google Play will help protect application assets by encrypting all paid apps with a device-specific key before they are delivered and stored on a device.: <-- they probably should have had this in android 1.0 Jun 28 11:54:39 Is there a way to get date of build at runtime? Jun 28 11:55:00 g00s: they should also have had a responsive-focused OS, but hopefully 4.1 will remove the android lag once and for all Jun 28 11:55:59 the verge said it still felt laggy :P Jun 28 11:56:11 Is there a way to get date of build at runtime? Jun 28 11:58:35 g00s: link to the article? Jun 28 11:59:39 I'm really dissapointed that they showed a magazine with "print"-design where you had to zoom in to read the article. People should stop doing that, it's shit. Jun 28 12:00:42 They had some magazines where they did it the proper way, magazines designed for the surface they inhabbited, they should only have showed that/only supported that. Jun 28 12:02:35 hello, can I use java source level 7 with android? Jun 28 12:05:04 MyWay: sadly, not yet. However, I imagine java 7 support will arrive once OS X ships java 7. There exists an official java 7 for OS X today I think. Jun 28 12:05:21 What could I be doing wrong, when my app hangs when I add the GpsStatusListener? http://pastebin.com/GTfSLUrM Jun 28 12:05:35 When I comment out the line 6, it works ok Jun 28 12:06:00 so the reason for holding off java 7 for android should now be gone Jun 28 12:06:03 nice Jun 28 12:06:29 when google gets around to enabling java 7 features for dalvik is however an open question with no answer that I have heard. Jun 28 12:08:49 and even though I have jdk7 installed on my system, for instance eclipse and minecraft still fire up with java 6 because of the way their launchers have been coded or something Jun 28 12:09:25 so clearly OS X still has some work left with this. Perhaps the RSN release of Mountain Lion fixes that. Jun 28 12:09:41 anyone know of a good book/etc that covers hardware acceleration in detail? Jun 28 12:09:54 it may be that ML is the reason why Oracle had to release a jdk7 for OS X, because it's supposed to eliminate legacy technologies like java and X from OS X. Jun 28 12:09:54 i am almost dead-set on getting scrolling to be as smooth as it is in the iphones Jun 28 12:10:17 i got pro android 4 app development but it's very light on that Jun 28 12:10:41 funktronic: from experience, that is very hard to do reliably Jun 28 12:10:50 funktronic: according to arstechnica report, the 4.1 version of android comes with some hacks specifically designed to increase apparent responsiveness of the android UIs. Jun 28 12:10:53 there's hope 4.1 will fix it. Jun 28 12:11:12 i've disabled hardware acceleration on a bunch of views and it's nice but not super-smooth Jun 28 12:11:42 i'll be okay even with windows phone level of smoothnes Jun 28 12:12:06 imho 4.0 is not horrible in terms of responsiveness, but apparently it could be better yet. Jun 28 12:12:27 yeah it's very usable but still slighlty choppy sometiems Jun 28 12:13:43 i guess i should focus on making it not throw all those exceptions and crash Jun 28 12:13:45 one of the problems of ARM is that the race-to-idle power saving is not the most effective power saving strategy, despite it seems to be really good for x86. So clock speed of the CPU is lowered, to reduce the core voltage, to save energy Jun 28 12:14:19 and because the cpu clock is lowered based on demand for cpu, there is some time when cpu is used at maximum capacity before the scheme can notice that increased clock would be good Jun 28 12:14:30 4.1 fixes the cpu clock to maximum whenever user has finger against touchscreen, allegedly Jun 28 12:14:48 I wish they would just fix it to maximum whenever screen is on, personally, but apparently that's not a good idea for ARM Jun 28 12:15:18 Reading some text on your phone? CPU TO MAXIMUM Jun 28 12:15:33 that's not a bad way to kill the battery Jun 28 12:15:50 Dark-Side: if ARM had corresponding deep sleep states as x86 does, it would still work without battery penalty. Jun 28 12:15:53 what do you guys think of that mono article that was lke "we're a billion times faster than dalvik" Jun 28 12:16:59 Dark-Side: but even fixed to max, and at some reduced power draw, it's probably still the screen that uses most energy. However, the cpu will surely make things worse, so I understand the desire to do everything possible to prolong the usable screen-on time. Jun 28 12:17:53 With the bigger devices screen power draw as the real killer yeah Jun 28 12:18:09 funktronic: I got the impression that the claims are mildly unproven. It's always possible to write interesting press releases, but what we need are real applications that show benefit in ways that don't require you to for instance rewrite everything Jun 28 12:18:28 afaik the mono thingy was some new runtime only though Jun 28 12:18:51 but it also seemed like independent validation of the claims was not possible at the time when I read it. Jun 28 12:19:17 it was still interesting Jun 28 12:19:40 it definitely feels from my experience with c++/c# that dalvik *should* be faster Jun 28 12:19:47 then again, i probably write really shitty java Jun 28 12:20:01 err... you probably meant the reverse Jun 28 12:20:22 Actually I don't know the quality of C#. Microsoft did the crafty thing and forbade publishing benchmarks with CLR Jun 28 12:20:53 mono/c# is not so well optimized as jvm, according to benchmarks, but then again, we aren't using the jvm on android. Jun 28 12:21:07 dalvik as alternative java runtime outside android context just hasn't happened, unfortunately. Jun 28 12:21:28 i used it on an extremely popular service and we got quite nice perf out of it and windows server Jun 28 12:22:43 and c++ is c++.. just don't be an idiot and it'll run fast Jun 28 12:23:15 so your earlier statement meant that you think the dalvik runtime doesn't do as good job as it should Jun 28 12:23:22 yes Jun 28 12:23:26 I think I only now understood it properly. Jun 28 12:23:31 it's a completely unfounded hunch Jun 28 12:23:54 the htc one x i am developing on should be able to completely obliterate this little list of thangs Jun 28 12:24:04 I have a FFT algorithm written in C that should convert to java handily. I might benchmark that as native code and as java implementation sometime Jun 28 12:24:21 because java is so compatible with C that the syntax needs almost no changes. Jun 28 12:24:37 well, compatible-ish :) Jun 28 12:25:00 what would be considered fast C would look different from fast java IMHO Jun 28 12:25:11 bah. I am not going to go into that argument Jun 28 12:25:16 it's just basic for loops and arithmetics Jun 28 12:25:26 yeah that'd look similar Jun 28 12:25:38 and a few array lookups using 32-bit indices. Almost all operations are the same between the languages as far as I can tell Jun 28 12:25:45 only java validates the array bounds Jun 28 12:25:50 well you'd still do the same basic things.. locality of reference, low branching, loop unrolling etc.. Jun 28 12:26:37 i have been considering using mono for the backend that would be shared across iphone/droid/ipad Jun 28 12:26:48 if it's almost the same source, I think it constitutes a good benchmark of basic number crunching, and some evidence of the abilities of the relative compilers, whether ahead-of-time or not Jun 28 12:26:50 but gotta ship first :) Jun 28 12:27:19 jitters can be faster in those situations since they can do runtime optimizations Jun 28 12:27:43 while you can mess around with C program at runtime it's quite dangerous.. and quite fun Jun 28 12:27:51 theoretically yes, but their runtime optimization capabilities tend to be limited much in the same way than just statically built things are Jun 28 12:28:08 and the CPU "runtime" is pretty good at things like branch prediction. Jun 28 12:28:26 all in all, it reduces the penalty of poorly constructed statically built program Jun 28 12:28:52 sure but the cost of a branch misprediction with newer cpus with super-long pipelines is quite high Jun 28 12:28:55 alankila: no, dalvik is limiteed but the jvm is really impressive, check the docs Jun 28 12:29:03 and it's a micro-optimization Jun 28 12:29:22 it appears that no JIT can do better than AOT design, so I am not convinced I will ever see JIT better than AOT except maybe in some microbenchmarks where it has in fact occurred. Jun 28 12:29:40 alankila: there were some C# examples that were faster than the comparable C++ Jun 28 12:29:52 Hey guys Jun 28 12:30:03 comparable C++ being C with classes so no costly things like vtable lookups and dynamic_cast and smart pointers Jun 28 12:30:04 there are thing like loop unrolling, stack allocation, remove monitors, unvirtualizing methods calls and lots of things like this Jun 28 12:30:16 funktronic: yes. microbenchmarks, most likely. There are cases where it can do a good job. My point is, all real programs are slower, and by quite a margin, even when comparing gcc and jvm doing the same sort of task or solving the same problem Jun 28 12:30:28 olivier_b: ah i forgot about that Jun 28 12:30:42 but hey, that's not entirely fair against jvm because jvm tries to give you the "will never crash" property. It comes with a cost. Jun 28 12:30:46 the CLR (and possbly jvm?) is faster at allocating memory than malloc Jun 28 12:31:12 funktronic: the jvm too Jun 28 12:31:21 olivier_b: so it's a generational mark and sweep? Jun 28 12:31:34 Is it possible to access the AndroidManifest.xml file at runtime? Jun 28 12:31:45 but then again, C modified with capability to check all array bounds is not much slower -- only few % -- so it's clearly possible to fix C to never crash (for that reason) too. Jun 28 12:32:05 sure C is a very very sharp knife Jun 28 12:32:24 especially multi threaded C Jun 28 12:32:34 the gc strategy has little to do with fast memory allocation, the thing is the runtime asks for the os for a large memory allocation at the times and then allocates in this large chunk, avoiding kernel calls Jun 28 12:32:35 * funktronic has fun memories of looking through symbol-less core dumps Jun 28 12:32:53 there are other optimisations, don t remember all but it s really tricky Jun 28 12:33:23 btw, the G1 gc available as standard in hotspot/openjdk 7 is not generational Jun 28 12:33:39 I want to know, I have an android app I wrote that needs to connect to a server I wrote. so far the server side was on my home computer, I want to use a commercial server but to pay as littel as possible. any suggestions? I looked at amazon's cloud server calculator (http://calculator.s3.amazonaws.com/calc5.html) but I'm not sure how to price it the right way... Jun 28 12:34:09 sasson: what's the server written in? Jun 28 12:34:16 I still suspect that GC will be slower than explicit malloc/free. The work to discover what memory is unused is something programs designed to do malloc/free do not have to face. Jun 28 12:34:18 amazon gives you a free year of their micro thing iirc Jun 28 12:34:41 funktronic, java, and it calls mysql Jun 28 12:34:46 so GC implies quite a bit of work, even if you can argue all you like that memory allocation is just incrementing a pointer most of the time because you already reserved all the memory you need from the OS. Jun 28 12:35:01 alankila: malloc usually has to look through a free list and find a slot. clr just gives you a chunk immediately. Jun 28 12:35:17 where can i watch google io 2012 if i didnt watch them yesterday live? Jun 28 12:35:22 but hey, C programs don't do kernel calls for every malloc. They have a heap which they do allocations in, and they don't move the heap end all the time either Jun 28 12:35:25 of course allociing can cause a gc sweep which is quite a bit costlier :) Jun 28 12:35:32 any allocation optimization that applies to GC can also apply to malloc Jun 28 12:35:38 so that's not an argument Jun 28 12:35:45 with a generational gc, allocation and reclaiming memory is really cheap for short lived objects Jun 28 12:35:46 well your heap can get fragmented Jun 28 12:36:04 MDijkstra: sure, you could write malloc to do the same thing Jun 28 12:36:16 funktronic: yes, but there's that work to be done later... either you manage the free list up front, or push the work later and hope you can do it sometime when nothing else is happening. Let me say it loud and clear: I LOVE GC. And I think it's great way to find work for the useless cores all systems come with these days. Jun 28 12:36:21 funktronic: there's no reason why you couldn't do generational allocation in your malloc implementation in libc Jun 28 12:36:26 exactly Jun 28 12:36:36 yes it's a tradeoff. amortization and all Jun 28 12:36:45 MDijkstra: agreed completely. Jun 28 12:36:53 yep, nothing forbids to do it, but do you have such a lib as standard Jun 28 12:36:54 ? Jun 28 12:37:21 I don't know, can't say I've looked at libc's malloc Jun 28 12:37:36 the point is not what is the fastest doable, which of course would be assembly, but what is the best for a real world app, then java have some really good parts Jun 28 12:37:41 but I worry that GC does represent a lot of work, one way or other, because as I said, there is that pesky problem that programs don't come with the information when something can be freed anymore. It's up to the runtime to discover it now. Jun 28 12:37:42 i wouldn't venture to say that i know better than the guys who wrote mallloc in libc Jun 28 12:37:46 I do know they usually swap out the allocator in HPC applications Jun 28 12:37:52 That is work in addition to any complexities of implementing malloc/free in GC context or not Jun 28 12:37:53 so I'm assuming they do some optimization Jun 28 12:38:02 or just "malloc" in case of GC Jun 28 12:38:14 MDijkstra: that probalby has more to do with reducing contention wiht many threads Jun 28 12:38:42 funktronic: as well, but also with the allocation strategy Jun 28 12:38:54 hello. I have an application with a bunch of activities launched from a main menu, standard stuff. Our customer likes that for phones, but for the tablet version wants a lot of those activities on a single page. I've looked into fragments but don't think it will work without some major refactoring (maybe I'm wrong?) What I really want is something like a bunch of iframes on a webpage, with each frame running its on activity... Jun 28 12:39:11 funktronic: if you need a large amount of small blocks of memory then you benefit from a different GC algorithm than say if you need page-sized large blocks only Jun 28 12:39:26 The G1GC for instance adds performance hit to reference manipulation because apparently lists must be kept about what pointers point in and out of their 1 MB heap chunks Jun 28 12:39:52 G1GC's hope is that there are few such pointers, ideally none, which means that once it sees nobody points in or out, the entire memory region is recyclable Jun 28 12:40:10 MDijkstra: makes sense. i don't know a lot about it all so i defer Jun 28 12:40:10 or that is how I understood it. But you got to manipulate those lists. Jun 28 12:40:53 guys guys! Jun 28 12:41:03 whats google chrome's favorite food? Jun 28 12:41:10 answer: "cookies" :D :D Jun 28 12:41:32 is today bring your special needs kid to work day? Jun 28 12:47:40 alright ill leave then :( nobody likes my jokes anyway's... Jun 28 12:50:01 well, they were not very good jokes... Jun 28 12:53:51 any1 knows how to update the ActionBar dropdownlist when swiping to other tabs? Jun 28 12:58:36 sasson, you checked out heroku? Jun 28 13:09:56 in eclipse, is there an easy way to clear LogCat automatically when a certain Tag/Text is received? Jun 28 13:10:18 specifically, i want it to be cleared each time my app is launched Jun 28 13:11:00 there is the clear log button Jun 28 13:11:05 i guess you dont want to press taht? Jun 28 13:12:20 exactly Jun 28 13:12:39 ant debug install; adb logcat -c; adb shell am start -a MAIN -n your.app/your.app.activity Jun 28 13:12:42 :> Jun 28 13:13:12 is ant included in the sdk? Jun 28 13:13:54 no ffs >:| Jun 28 13:14:12 http://lmgtfy.com/?q=apache+ant Jun 28 13:17:16 that doesn't clear in logcat window of eclipse, which is what i wanted. does it work for you? Jun 28 13:27:32 I don't know if it clears it in eclipse Jun 28 13:27:41 it clears the actual logcat queue and quits Jun 28 13:31:55 how to get scanner to point to a text file inside the apk? I know how to do it on a computer but not apk. Jun 28 13:33:21 Rover: http://stackoverflow.com/questions/4087674/android-read-txt-raw-resource-file Jun 28 13:42:01 does anyone know why $(window).width(); reports an incorrect width in jquery for HTC Legend and HD Desire? Jun 28 13:42:17 and what will work instead Jun 28 13:42:47 I don't, but you might want to open a ticket with the jquery team. Jun 28 13:42:58 it's possible that it's a webkit bug Jun 28 13:43:37 lov: will do. thx :) Jun 28 13:44:08 also some mobile browsers fake window size so they can render "zooming" properly Jun 28 13:44:22 poppiez: what do you mean with incorrect? Jun 28 13:44:45 DashCC: the width is 6 pixel lower than it should be Jun 28 13:44:55 maybe that's where the scrollbar is but it isn't visible Jun 28 13:45:07 Is there an application border or a url bar or something? Jun 28 13:45:26 (ignore the url bar part) Jun 28 13:45:56 usually $(window).width() returns the size of the current browser window, if its resized or anything Jun 28 13:46:01 it affects the value Jun 28 13:46:16 DashCC: no, nothing, just white space Jun 28 13:46:36 window.outerWidth gives me the proper value but that isn't the right way to get the value and isn't the value I'm looking for Jun 28 13:47:24 and window.innerWidth? Jun 28 13:50:21 poppiez: you might just be stuck. The manufacturers can customize android, this might be an "optimization" that they've done, or it might just be a bug of theirs. Jun 28 13:50:21 DashCC: gives me 314 Jun 28 13:50:31 DashCC: and the exact value should be 320 Jun 28 13:50:53 lov: I sure don't hope so. there's always a fix :P Jun 28 14:00:55 * jug6-alt hates the waiting that is downloading api updates... Jun 28 14:02:09 sup guys Jun 28 14:02:29 whats the best google maps alternative? I'm developing an app for the kindle and it doesn't have the support Jun 28 14:02:40 i've tried osmdroid but its kinda sucky Jun 28 14:07:06 CallumTaylor, just curious about your experience with osmdroid, what makes you dislike it? Jun 28 14:07:22 (OSMdroid would be my answer to your question) Jun 28 14:08:57 well i had problems with setting it up, i have to include an extra library which i don't really want to do Jun 28 14:09:05 its a logging library, god knows why they're using it Jun 28 14:09:29 i might just have to bite my tounge with it, i really can't find anything else Jun 28 14:11:13 I looked into it some time ago, i only have superficial experience with the different offerings, but osmdroid seemed to me like the most mature Jun 28 14:11:23 hang on, think i've still got my notes somewhere Jun 28 14:11:45 did they officially show the tablet yet? Jun 28 14:11:50 does the android ndk still use gcc4.4 or something newer? Jun 28 14:13:38 how do you get your activity to save/restore which fragment is currently showing? Jun 28 14:14:15 CallumTaylor, im sorry, i cannot find them. But if you havent already, maybe you could take a look at nutiteq and mapsforge Jun 28 14:14:24 ok Jun 28 14:14:25 thanks Jun 28 14:14:58 i might download the osmdroid source and remove the refs to the other library Jun 28 14:20:15 now i just need to port my map overlay class for ohm compatibility, this'll be fun Jun 28 14:21:11 Does anyone know of any preferred sites that explain how to query databaes when programming for android (for newbies (: ). I've looked around and am still unsucessful in doing so... Jun 28 14:22:23 http://www.vogella.com/articles/AndroidSQLite/article.html is nice Jun 28 14:27:01 am i missing something or are the rest of yesterday's android sessions missing from youtube? Jun 28 14:32:51 Sorry for a generic question, but what is the most effective way to learn advanced user interface development for Android? Reference books just don't do the trick for me. Is the best way to fire up apps on the cell phone and inspect the view hierarchy? Anything else? XML Layouts vs code, custom views vs xyz? Jun 28 14:34:04 depends what you want to do Jun 28 14:34:17 I'm a big fan on custom views and using xml layouts for everything Jun 28 14:34:40 i make stubbed templates then inflate them to the correct place for repetitive things Jun 28 14:39:50 anyone know why osmdroid wouldn't be showing the tiles on a kindle fire? Jun 28 14:45:18 how do you get your activity to save/restore which fragment is currently showing? Jun 28 14:47:31 CallumTaylor: thanks Jun 28 14:48:07 Fragment.isVisible? Jun 28 14:48:08 i wrote a tut for custom controls if you wanted to learn http://blog.callumtaylor.net/archives/142 Jun 28 14:48:17 there's one on the android dev website aswell Jun 28 14:50:28 stork: Jun 28 14:50:32 onSaveInstanceState(Bundle state) { Jun 28 14:50:34 if(myFrag!=null && myFrag.isVisible) { Jun 28 14:50:36 state.putShit(fragmentindicator); Jun 28 14:50:37 } Jun 28 14:50:39 } Jun 28 14:50:58 * moonlightcheese hides from ops. Jun 28 14:51:00 what if the fragments are dynamically added with bundles and shit Jun 28 14:51:32 doesn't matter, as long as you have a reference to it. then you pick it back up in onRestoreInstanceState. Jun 28 14:51:53 the Fragment has it's own save state override it calls. Jun 28 14:52:28 save the Fragment data with the Fragment's save and save which Fragment to display in the FragmentActivity. Jun 28 14:55:15 does that save the back stack as well moonlightcheese ? Jun 28 14:55:16 CallumTaylor: I ahve had the same issue with no tiles showing up on the fire too Jun 28 14:55:29 did you ever fix it Jun 28 14:55:30 I only briefly looked into the issue though Jun 28 14:55:30 ? Jun 28 14:55:53 stork: i'm not sure, but i think it does. it should. Jun 28 14:55:58 unfortunately not, I planned on looking into that later Jun 28 14:56:04 alright Jun 28 14:56:36 when the FragmentActivity is saved and restored, the back stack should return with it. Jun 28 14:56:39 But I am pretty sure there are a couple apps out there that have it working Jun 28 14:56:50 i couldn't even get the demo app working Jun 28 14:57:34 CallumTaylor: just a tip, your site is an eyesore. Jun 28 14:57:44 my blog? Jun 28 14:57:49 yes. Jun 28 14:57:54 yeah i know, can't be bothered to find a better template Jun 28 14:58:00 lol right on. Jun 28 14:58:16 same here, the OpenStreetMapViewer? Jun 28 14:58:37 um yeah Jun 28 14:58:43 v 3.0.8 Jun 28 15:23:02 I have this code in this page and I would love someone in the channel to tell me if it's correct. http://www.vogella.com/articles/ApacheHttpClient/article.html. I implemented it in my Activity. but there is nothing changed in my database Jun 28 15:23:17 all i want is to send data to my webserver Jun 28 15:23:32 GET or POST i never mind Jun 28 15:25:38 superlinux-hp: then, did you check your server side? Jun 28 15:25:50 superlinux-hp: does your server receive any request? Jun 28 15:25:55 edwinkcw, yes! Jun 28 15:26:06 just one query string variable Jun 28 15:26:10 only one Jun 28 15:26:27 superlinux-hp: then, the database you mention is android db or your server db? Jun 28 15:27:18 server db , mysql Jun 28 15:27:26 i am sending to a PHP script Jun 28 15:27:55 then, there is any wrong about android (assuming your android can send request to your server successfully). You should check your php source code Jun 28 15:28:26 just a sec and be back Jun 28 15:28:41 superlinux-hp: you can just type your server url in browser, and see if your db changes Jun 28 15:28:44 superlinux-hp: ok Jun 28 15:29:05 edwinkcw, in my browser it does change! Jun 28 15:29:43 my code in php is just insert into a one-field table Jun 28 15:29:48 ok, then you should check the error log of your server, see if you have any error Jun 28 15:30:32 Why convertView from getChildView inside an ExpandableListView is type of group convertView? Jun 28 15:32:00 JulienDev: "This differs from the ListView by allowing two levels: groups which can individually be expanded to show its children. " Jun 28 15:32:09 JulienDev: from the api "http://developer.android.com/reference/android/widget/ExpandableListView.html" Jun 28 15:33:50 ejenkins: hm, it seems to be working now.. Jun 28 15:33:53 superlinux-hp: btw, how do you know the request is successfully pass to server from android? Jun 28 15:33:54 not sure what i've changed Jun 28 15:34:29 edwinkcw: When I show child of a groupView, why the convertView is not null? (Instead, the convertView I get is the group viewHolder) Jun 28 15:34:29 I'm guessing you changed a lot, huh Jun 28 15:34:30 edwinkcw, i am using phpmyadmin to see if the data has been saved Jun 28 15:34:40 i am sending to mysql Jun 28 15:34:42 I've only been working on layouts and drawables, haven't touched the view Jun 28 15:34:48 ill have a dig around, see what has changed Jun 28 15:35:02 that's kinda strange Jun 28 15:35:10 but yeah, I would appreciate that a lot Jun 28 15:35:17 superlinux-hp: then, what? I mean how do you know your android device can send request to your server successfully Jun 28 15:35:21 it will save me a lot of time in the near future Jun 28 15:35:59 i am looking into apache's log files Jun 28 15:36:45 wtf, looks like the demo app is working aswell Jun 28 15:36:48 JulienDev: when do you find out your convertView is not null? when scrolling? when activity create? Jun 28 15:36:55 and i just ran the apk, haven't touched the sources Jun 28 15:37:09 superlinux-hp: umm....then..no error in your apache error log? Jun 28 15:37:31 i have just cleared them so i can have a fresh start Jun 28 15:37:43 that's really weird Jun 28 15:37:46 edwinkcw: When clicking on a group element of my ExpandableListView Jun 28 15:38:34 superlinux-hp: look at the log files. Does the device send the appropriate request? Yes/No Jun 28 15:38:39 if yes, the problem is with your script Jun 28 15:38:43 if no, the problem is with your app Jun 28 15:38:51 go from there Jun 28 15:38:52 JulienDev: I am not sure the implementation of the ExpandatableListView, but I think it is similar to listview, after the activity start and create the listview. The convertView will not be null for view reuse. Jun 28 15:38:56 don't tell us "BUT I CAN'T SEE IT IN MYPHP!!!!" Jun 28 15:39:06 lov: also, 2+2=4 Jun 28 15:39:12 if the problem is with your app, attach the debugger and figure out what is ACTUALLY happening. Jun 28 15:39:24 don't just say "HAY GUYS ITS BROKE HELP PLZ" Jun 28 15:39:39 superlinux-hp: umm....I think you are using get method to test your server, are your php script using $_GET? Jun 28 15:39:46 also, if you're sending data to the server, use POST, not GET. Jun 28 15:39:52 GET is idempotent and MAY BE CACHED! Jun 28 15:40:50 edwinkcw: Yes, but as child use a different layout I thought the convertview has to be null on the first expanding Jun 28 15:40:51 edwinkcw, i am using $_REQUEST so either way must work Jun 28 15:41:18 superlinux-hp: might be cached in between your server and app Jun 28 15:41:28 superlinux-hp: 11:38:40 < lov> superlinux-hp: look at the log files. Does the device send the appropriate request? Yes/No Jun 28 15:41:28 superlinux-hp: ok, are your param names correct? Jun 28 15:41:31 11:38:46 < lov> if yes, the problem is with your script Jun 28 15:41:34 11:38:50 < lov> if no, the problem is with your app Jun 28 15:41:37 please stop and perform this step. Jun 28 15:41:54 yes! it just a var named "x" Jun 28 15:42:14 superlinux-hp: have you made a test query to verify what would happen if you did this on your browser? Jun 28 15:42:22 let me paste you the codes Jun 28 15:42:30 pastebin oh god please use pastebin Jun 28 15:42:31 yay, PHP... Jun 28 15:42:32 on paste bin Jun 28 15:42:59 JulienDev: then it is better to look at the source code. Jun 28 15:43:18 Lesson learned: I you have a site using MediaElement.js and you do not explicitly tell it to set "Loop: false", leaving the page will play the html5 video (again) in the background, and there is nothing short of going to another MediaElement.js page that will stop that video. Jun 28 15:43:33 JulienDev: but, Android may try to reuse view as many as possible. Jun 28 15:46:35 Is there any api for programming external screen on android devices? Jun 28 15:47:04 no, there isn't Jun 28 15:47:07 afaik no Jun 28 15:47:17 they heard you wanted one, and made sure not to build it Jun 28 15:47:36 edwinkcw: Ok, thanks ;) Jun 28 15:47:44 Leeds: they??? who are they? Jun 28 15:47:55 "they"... y'know, "them" Jun 28 15:48:02 the ones who are... listening Jun 28 15:48:20 Leeds: ...why? Jun 28 15:48:29 edwinkcw: to screw wit hyou Jun 28 15:48:35 because they... can't see you through IRC Jun 28 15:48:45 but with a screen reader they... can hear you Jun 28 15:48:47 lov: what's up? Jun 28 15:49:33 edwinkcw: http://developers.getpebble.com/ Jun 28 15:49:45 Leeds: .....you can't say his name?? voldemort? Jun 28 15:50:04 c who shall not be named tate Jun 28 15:50:11 hello! I've got an abstract class which executes commands with the root permissions. I'd like to log the command's results, but it will never log it. TBH I've took this class from internet, I've only added the non-working logging "feature". May you please help me find out what's wrong? Thanks. http://pastebin.com/Lke7xgP0 Jun 28 15:50:27 edwinkcw: it was a joke Jun 28 15:50:39 tors: umm...I know this watch Jun 28 15:51:25 here, http://pastebin.com/QRhUkE0h Jun 28 15:51:32 tors: but I don't mean this kind of external screen. You know, there are lots of tablet having HDMI, I think they can have different output. But I can't find any resource to do it. Jun 28 15:51:53 any idea on the log? Jun 28 15:52:08 is it possible to have some logic in android that will test for an internet connection and if there is no internet connection to automatically create a custom HTML page that tells the user there is no internet connection? Jun 28 15:52:37 john_doe_jr: have you tried with an HttpResponse? Jun 28 15:52:38 john_doe_jr: yes. Jun 28 15:52:40 john_doe_jr: probably. Jun 28 15:52:40 edwinkcw: ok Jun 28 15:53:13 elegos: elegos this is tricky because the input stream is probably blocking, waiting for more input that's not going to come. Jun 28 15:53:30 tors: this watch is nice, but quite dear Jun 28 15:53:40 elegos: yes...it just throws an exception once it can't execute Jun 28 15:53:47 john_doe_jr: http://stackoverflow.com/questions/4101331/editing-or-creating-a-custom-web-page-not-available Jun 28 15:53:57 Googleftw Jun 28 15:53:58 superlinux-hp: so you are saying that you didn't have a new record in your database? Jun 28 15:54:20 edwinkcw, YES! Jun 28 15:54:32 john_doe_jr: well, catch the exception and Toast the notification Jun 28 15:54:45 mmm... toasted notifications Jun 28 15:54:55 edwinkcw, should I have a new record? Jun 28 15:54:55 whatever Leeds, just an example... Jun 28 15:55:10 elegos: they're like marshmallows, only less sugary Jun 28 15:55:11 I mean shouldn't I? Jun 28 15:55:14 superlinux-hp: no exception on your android deveice log? Jun 28 15:55:21 Leeds: marshmallows light :D Jun 28 15:55:32 elegos: here's my pastebin..(or anybody else)....can you help me determine what is wrong with my logic? http://pastebin.com/8VLuZfkv Jun 28 15:55:37 edwinkcw, let me see.. i am using the emulator Jun 28 15:56:39 john_doe_jr: you're setting a variable in a try...catch statement, but assuming it as defined outside it Jun 28 15:56:49 hi Jun 28 15:57:15 I'd set it to null it gets an exception and check for the null state then Jun 28 15:57:48 btw anyone can tell me why my class isn't logging the command's response? http://pastebin.com/Lke7xgP0 Jun 28 15:58:05 line 108 and up Jun 28 15:58:12 97-108 Jun 28 15:58:49 edwinkcw, I think it's better if i uninstall it , and try again Jun 28 15:59:04 uninstall my current code Jun 28 15:59:14 from the phone Jun 28 15:59:15 superlinux-hp: you can try Jun 28 15:59:28 elegos: I don't think you have to do it in this way Jun 28 15:59:51 is there anything we can do when we know a crackers email? Jun 28 15:59:59 put it on cheese :> Jun 28 16:00:19 elegos: I think the better way is to override the onReceivedError method Jun 28 16:00:32 error != stdout Jun 28 16:00:35 it's strerr Jun 28 16:00:37 elegos: look at the code in error handling http://developer.android.com/reference/android/webkit/WebView.html Jun 28 16:00:46 ahh you say that one Jun 28 16:00:49 not the log ._. Jun 28 16:02:08 edwinkcw, but yet , is the code in java i pasted correct? Jun 28 16:02:38 just rougly read it, assume you have internet permission and you are testing your local computer server Jun 28 16:03:14 edwinkcw, exactly! everything is local Jun 28 16:03:28 has anyone tried deploying the new gcm servlets? Jun 28 16:04:48 superlinux-hp: then, watching your apache access log, and then launch the android app, see if there any incoming request Jun 28 16:05:18 my access log does not show any line about the php script Jun 28 16:05:35 your accesslog should show any incoming access Jun 28 16:05:53 anyone can tell me why my class isn't logging the command's response? http://pastebin.com/Lke7xgP0 - formerly lines 97 - 108 Jun 28 16:06:30 superlinux-hp: you should now access your website through your browser, see if your access log has any request Jun 28 16:07:42 elegos: can you find the line "Result: " ?? Jun 28 16:07:46 elegos: in your log Jun 28 16:07:56 no, I can't Jun 28 16:07:58 this is the point Jun 28 16:08:15 not an error either Jun 28 16:08:31 elegos: ok, then can you find Executing command: ? Jun 28 16:12:00 edwinkcw: yes I see that logcat Jun 28 16:12:14 ok, what is the command? Jun 28 16:12:38 dd if=SOURCE of=DESTINATION Jun 28 16:12:48 (they're variables ofc) Jun 28 16:12:53 it should output the progress Jun 28 16:13:21 erm... dd doesn't display progress Jun 28 16:13:43 well, if it doesn't, it should exit with an empty log Jun 28 16:13:49 or give me any error Jun 28 16:13:59 elegos: ok, add log in line 103 Jun 28 16:14:15 elegos: then you know if the android doing the loop Jun 28 16:14:28 it should do the 1st one at least... checking Jun 28 16:14:28 elegos: maybe you trapped in infinite looping Jun 28 16:14:35 yeah I think so Jun 28 16:15:06 edwinkcw, inside the emulator's browser, I have no problems. maybe it's a permission thing inside my app must be set. Jun 28 16:15:34 elegos: I think the loop condition makes you into infinite loop Jun 28 16:15:57 edwinkcw: it will hang on the read, it won't spam the message Jun 28 16:16:14 it logs only once the log before the read Jun 28 16:17:10 elegos: did you log the output variable as well?? Jun 28 16:17:32 superlinux-hp: did you set internet permission.. Jun 28 16:17:43 edwinkcw, how in eclipse? Jun 28 16:17:54 superlinux-hp: in your application manifest Jun 28 16:18:10 ah ok Jun 28 16:18:12 edwinkcw: I'll try again, I already tried to Jun 28 16:18:18 I'll log the read, if possible Jun 28 16:18:24 superlinux-hp: http://stackoverflow.com/questions/2169294/how-to-add-manifest-permission-to-android-application Jun 28 16:18:48 superlinux-hp: if so, you should have error in your log. But you should you don't have Jun 28 16:19:12 elegos: I think read will not greater than 4096 Jun 28 16:19:29 elegos: your buffer only have 4096, how can it greater than 4096 Jun 28 16:19:32 edwinkcw: it will hang at the read process Jun 28 16:20:15 elegos: ok, you mean line 103? Jun 28 16:20:17 edwinckw: won't buffer.read(INT) read untill int or EOF? Jun 28 16:20:30 edwinkcw, guess what?! the menifest has no permissions at all for the internet Jun 28 16:20:33 edwinkcw: yes Jun 28 16:23:51 superlinux-hp: impossible... Jun 28 16:23:58 superlinux-hp: did you see my link ? Jun 28 16:24:59 edwinkcw, yes! Jun 28 16:25:03 elegos: is your phone rooted? Jun 28 16:25:17 superlinux-hp: then add the line in the manifest Jun 28 16:25:21 superlinux-hp: then you are done Jun 28 16:25:28 in my project there was no permissions for it Jun 28 16:25:28 i have just added it, we'll see Jun 28 16:25:39 ok great! Jun 28 16:25:56 edwinkcw: yes Jun 28 16:26:27 superlinux-hp: please look at your log carefully, I think there must be a line talking your didn't have permission Jun 28 16:27:34 elegos: I am not sure if your implementation works here. You may try to use the implmentation in canRunRootCommands to get the output Jun 28 16:28:10 elegos: create a BufferedReader, and use osRes.readLine() after writeBytes Jun 28 16:28:19 I'll try that Jun 28 16:35:02 edwinkcw: it will hang, too. If I try to insert it in the try next to the for cycle, it will return "null", even if I've told to execute a non-existent command (lolasd): it should at least read "lolasd: not found" Jun 28 16:35:50 elegos: just a wild guess, dd may take a long time in your devices, so it looks like hang Jun 28 16:35:58 how do I compile the sample AIDL application provided in the Android source code with filenames IRemoteService.aidl, IRemoteServiceCallback.aidl, and RemoteService.java? Jun 28 16:36:11 elegos: you can try "ls" see if the program work Jun 28 16:36:27 edwinkcw: like I said, I tried with a non-existant code, it should return me an error message Jun 28 16:36:29 elegos: or "ls /" to check if su works Jun 28 16:36:43 it's in development/samples/ApiDemos/src/com/example/android/apis/app directory Jun 28 16:36:55 elegos: yep, then dd may take a long time to process. Jun 28 16:37:46 elegos: "http://linuxcommando.blogspot.hk/2008/06/show-progress-during-dd-copy.html" FYI Jun 28 16:38:10 edwinkcw: "ls /" returned me... "acct" lol! Jun 28 16:41:55 or to put it in other words, how to compile ApiDemos all together? Jun 28 16:42:14 I have pulled the source code with repo sync Jun 28 16:46:27 edwinkcw, still! apache is not showing any access Jun 28 16:47:11 superlinux-hp: first of all, if you using browser, you can see the access, right? Jun 28 16:47:26 edwinkcw, yes i can Jun 28 16:47:50 superlinux-hp: ok, if you launch your app, nothing happen, right? Jun 28 16:47:54 yes Jun 28 16:48:06 and the permission is now has been added Jun 28 16:49:01 and I am pointing to the correct IP Jun 28 16:49:25 10.0.2.2 is my development machine localhost Jun 28 16:49:39 superlinux-hp: ok, then add a line Log.d("HTTP", "Here"); before client.execute(method) Jun 28 16:49:47 ok Jun 28 16:50:09 superlinux-hp: then run it, and go to your logcat, see if you can find the line "Here" Jun 28 16:50:50 ok Jun 28 16:52:33 edwinkcw, nothing! Jun 28 16:52:46 the word "here" does not appear Jun 28 16:53:26 superlinux-hp: then your program doesn't run Jun 28 16:53:37 superlinux-hp: can you post your whole source code? Jun 28 16:53:37 why do I get this when trying to upgrade? http://pastebin.com/ttG9rewr Jun 28 16:54:11 Sicp: erm, upgrade what? Jun 28 16:54:18 edwinkcw, this code i pasted is part of a button. and the button is working Jun 28 16:54:34 Syu, Leeds Jun 28 16:54:36 Syu Jun 28 16:54:37 and i can see change of the entry Jun 28 16:54:49 and i can see change of the text entry that's there Jun 28 16:55:06 wtf is Syu Jun 28 16:55:17 wtf am I doing here, sorry! Jun 28 16:55:22 superlinux-hp: can you see "here" in your log after clicking the button? Jun 28 16:55:25 was supposed to be in #arch! Jun 28 16:55:29 apologies Jun 28 16:55:58 heh :) Jun 28 16:57:50 anyone attempted gcm yet? Jun 28 17:00:53 edwinkcw, here is the whole code: http://pastebin.com/TXwfpZtT Jun 28 17:01:03 and the log is showing nothing Jun 28 17:01:55 superlinux-hp: ok, I think you are saying toz in your textbox? Jun 28 17:02:01 after pressing the button Jun 28 17:02:03 yes Jun 28 17:02:04 hehe Jun 28 17:02:25 edwinkcw: working solution: http://pastebin.com/hh1mpA85 Jun 28 17:02:33 superlinux-hp: then what your log showing? Jun 28 17:02:47 log cat shows nothing!! Jun 28 17:03:41 superlinux-hp: do you know how to use logcat? Jun 28 17:03:56 elegos: thanks, though I don't think I will use those code :) Jun 28 17:03:56 well not really.. Jun 28 17:04:20 superlinux-hp: are you using eclipse? are you using windows? linux? Jun 28 17:04:36 eclipse on Linux debian Jun 28 17:04:43 open a terminal Jun 28 17:04:47 ok Jun 28 17:04:49 superlinux-hp: then, run adb logcat Jun 28 17:05:01 superlinux-hp: I mean type "adb logcat" Jun 28 17:05:08 ok Jun 28 17:05:11 superlinux-hp: any output? Jun 28 17:05:40 i think i should locate adb 1st Jun 28 17:05:56 superlinux-hp: in your sdk Jun 28 17:06:22 superlinux-hp: /path-to-sdk/platform-tools/adb Jun 28 17:08:01 i found it Jun 28 17:09:32 superlinux-hp: ok, then .can you read the log now? Jun 28 17:10:04 yes! and when i click the NEW ISSUE button, I get network exceptions Jun 28 17:10:24 system.err(679) Jun 28 17:10:43 superlinux-hp: ....now you should know how to debug andorid app. Jun 28 17:10:54 superlinux-hp: the name of the exception please Jun 28 17:11:00 edwinkcw, and the Here is showing now Jun 28 17:11:07 superlinux-hp: 679 doesn't help to debug Jun 28 17:11:30 android.os.NetworkOnMainThreadException Jun 28 17:11:55 heh NOMTE Jun 28 17:11:56 superlinux-hp: http://stackoverflow.com/questions/6343166/android-os-networkonmainthreadexception Jun 28 17:12:21 superlinux-hp: it says you cannot do network on MainThread, you have to do in Background Jun 28 17:13:21 i need help with compiling the tutorial "myfirstapp" via ant (no ide). initial version compiles, 2nd version fails with missing symbol reports for obviously Should Be There things like View. i know i'm missing includes, but being an android newbie, i don't know what. any help appreciated. Jun 28 17:14:17 edwinkcw, sorry. the electricity has gone. Jun 28 17:14:27 android.os.NetworkOnMainThreadException << the exception Jun 28 17:14:37 superlinux: http://stackoverflow.com/questions/6343166/android-os-networkonmainthreadexception Jun 28 17:14:44 superlinux: it says you cannot do network on MainThread, you have to do in Background Jun 28 17:15:40 edwinkcw, so does that mean I have to call a thread and run it? Jun 28 17:15:47 superlinux: yes Jun 28 17:15:51 ouch! Jun 28 17:16:14 sorry, "missing imports". the tutorial mentions a hot-key to add them via the ide, but doesn't say how to add them manually. help? Jun 28 17:16:50 superlinux: or you can use the dirty solution in the stackoverflow Jun 28 17:16:57 or put another way: whicih import defines the View class? Jun 28 17:17:27 meb0101: time to get used to browsing the reference docs Jun 28 17:17:43 url me. i'm happy to rtfm if i knew wtf it was. Jun 28 17:18:03 d.android.com Jun 28 17:18:13 how are you here without knowing that? Jun 28 17:18:45 um, that site led me here as a community resource. Jun 28 17:18:59 yes, and now the community is telling you to rtfm Jun 28 17:18:59 which is how i found it. Jun 28 17:19:11 because telling you each individual import is going to be very boring for all of us... Jun 28 17:19:56 give me a specific url. there is no obvious link on the site for "which import is View from". Jun 28 17:20:15 um... see the search icon at the top right of the site? Jun 28 17:20:20 tried putting "View" in it? Jun 28 17:22:05 http://developer.android.com/reference/android/view/View.html is returned, which says NOTHING about the IMPORT. it defines the class. which ISN'T WHAT I ASKED. Jun 28 17:22:18 meb0101: are you new to Android? if so, I suggest you first to use eclipse as IDE Jun 28 17:22:25 meb0101: are you new to Java? Jun 28 17:22:29 import android.view.View; Jun 28 17:22:34 no thanks. the emulator bogs down my machine enough. Jun 28 17:22:42 i did java 1.0. now trying to get back in. Jun 28 17:22:55 ah... do you know how to import in Java? Jun 28 17:23:25 yeah, i'm f'n around with the java file. the tutorial writer obviously never tried their own instructions sans-ide. Jun 28 17:23:26 edwinkcw: do you know any way to let the class "hang" untill the execution of all the commands is ended? Jun 28 17:23:44 edwinkcw: always on the exec thing Jun 28 17:24:03 meb0101: seriously... you know what the class path is, you just import that Jun 28 17:24:08 basic basic basic Java Jun 28 17:24:20 umm...you mean keep running exec? Jun 28 17:24:31 elegos: not quite get your point Jun 28 17:25:05 edwinkcw: dd replies the number of bytes written and the status of the action, but the app won't wait for it Jun 28 17:25:14 the classpath is set. it "should" just work. Jun 28 17:25:22 the path of the class Jun 28 17:25:27 meb0101: are you being dumb on purpose? Jun 28 17:25:47 elegos: I remember you have a loop to get the output, right? Jun 28 17:25:56 no. thanks for the help and the insult. i'll remember both. Jun 28 17:26:13 NO U Jun 28 17:26:13 edwinkcw: yes, but it won't show anything for non-instant commands Jun 28 17:26:16 bye then Jun 28 17:27:14 elegos: you mean you want to show progress for long-time command? Jun 28 17:27:39 edwinkcw: no, I want to show what it outputs, i.e. wait untill the command is ended Jun 28 17:27:48 (i.e. the process I've called ended) Jun 28 17:27:51 * Leeds is of the elitist opinion that someone who can't work out how to run dd from Java probably shouldn't be trying to dd as root yet Jun 28 17:28:08 process.waitFor() SHOULD do the thing, but it doesn't seem to work Jun 28 17:28:14 maybe dd doesn't input in stdout Jun 28 17:28:33 because you're going to end up destroying your device, possibly other people's Jun 28 17:29:31 elegos: try getErrorStream() Jun 28 17:29:57 edwinkcw: I'd try with ( COMMAND ) > 2>&1 first :P Jun 28 17:30:47 edwinkcw: btw it returns immediately, while it takes 1 or 2 seconds Jun 28 17:32:45 elegos: not sure about this part, sorry Jun 28 17:36:18 Hello. I'm trying to get a raw file resource within a non-activity class. What is the correct IRL? I thought it was "android.resource://com.package.name/raw/file.txt," but I get an error saying it can't find "/android.resource:/com.package.name/raw/file.txt." Why did Java change the path? Jun 28 17:46:09 Installing current SDK, just installed JDK6u33, it won't find the JDK at all. Jun 28 17:46:23 The 'hit back, then next' fixes my Google Fu is finding doesn't work anymore. Jun 28 17:47:11 Hi everyone. I would like to know if it is possible to test a ROM in my Galaxy Nexus without the need to install it ( connected through USB? ). Thanks. Jun 28 17:47:34 rsilves: hi - #android-root Jun 28 17:48:04 thanks Leeds Jun 28 17:49:47 Looks like the lack of a JAVA_HOME environmental path is what is causing the error; where should I point it? (Win7, 64-bit JDK) - I'm guessing C:\Program Files\Java\jdk1.6.0_33\ ? Jun 28 17:50:59 just guys tell edwinkcw when he comes I raise the hat for him! thanks very much Jun 28 17:55:11 http://www.google.com/script/start/ Jun 28 18:08:50 where can i watch io keynotes? Jun 28 18:09:14 er, on the I/O webpage? Jun 28 18:09:33 http://www.youtube.com/watch?feature=player_embedded&v=ANiY0uQHQVg is today's keynote, but I think it's finishing Jun 28 18:09:37 they're about to give out chromebooks Jun 28 18:09:44 oh, chromeboxes instead Jun 28 18:09:52 ah i see Jun 28 18:10:03 no nexus tabs? Jun 28 18:10:18 Nexus Tabs, Galaxy Nexus and Nexus Q were given out yesterday. Jun 28 18:10:26 done Jun 28 18:10:30 https://developers.google.com/events/io/ Jun 28 18:10:33 nice Jun 28 18:10:47 Has anyone ran into the following error when running the ndk-stack tool by chance? "Unable to open symbol file ./obj/local/armeabi/. Error (123): Unknown error" Jun 28 18:10:50 and they've cut to Sergei on the roof, about to do another Glass skydrive, I think Jun 28 18:14:19 were there any interesting android talks yesterday? Jun 28 18:15:32 Hi, I have a CustomList witch extends LinearLayout. After I add all itens at run time, I call .onMeasure() and then .getMeasuredHeight(), wich returns 140. But the display is onlying showing like 10. I tried to call .invalidate() and .requestLayout() but it doesn't work. But if i set visibility to GONE and then to VISIBLE it display the 140 correctly. Anyone got an idea how can I make the Jun 28 18:15:32 display update without hiding and showing the view? Jun 28 18:16:20 it will be interesting to see how google compute engine measures up with aws Jun 28 18:16:38 xorgate: yeah, i thought marketing 101 was good Jun 28 18:16:52 g00s: incidentally, I gave in... the third time this week someone asked me to sing, I did - ended up doing karaoke briefly this evening :) Jun 28 18:16:54 cool i'll check that one out Jun 28 18:17:05 Leeds: ha ! Jun 28 18:17:11 And it only works 100% if I set visibility to GONE and then set VISIBLE with postDelayed Jun 28 18:19:43 again with the skydiving:0 Jun 28 18:19:56 How can I find smart native speakers of various language which might help me translating an app? Jun 28 18:20:31 i keep getting Error: Server Error from their i/o website though Jun 28 18:20:48 g00s IT ARE JUST TOOO many users :p Jun 28 18:20:53 What about the youtube links Leeds posted? Jun 28 18:21:07 spobat: maybe they should have used aws :) Jun 28 18:21:10 a lot of google services are down right now Jun 28 18:21:13 http://www.youtube.com/watch?v=ANiY0uQHQVg Jun 28 18:21:14 e.g. google app engine Jun 28 18:21:19 or the update servers for e.g. google chrome Jun 28 18:21:31 its fairly too hardcore. :P Jun 28 18:21:34 wow Jun 28 18:21:35 and i love it. Jun 28 18:22:54 amazon web services really stands for amazon web scale? Jun 28 18:23:33 which brings up an interesting question, can I run mongodb on aws? since they are both web scale...;p Jun 28 18:25:13 How do i set the height of an LinearLayout to it's getMeasuredHeight() ? getHeight() returns 20 and getMeasuredHeight() returns 140. 140 is the correct value. Jun 28 18:32:28 What was it originally set to / with respect to its parent? Jun 28 18:33:07 Estel, WRAP_CONTENT Jun 28 18:36:35 had anyone ever made anything for google tv? how futile is it? Jun 28 18:37:10 I don't think it's hard, but I also don't think there are many active users... Jun 28 18:37:57 but it's android, right? Jun 28 18:39:00 sure Jun 28 18:39:05 3.1 at the moment, I think Jun 28 18:39:54 Is the result an array or a arrayList: String[] lst = line.split("#"); Jun 28 18:40:44 [] is array Jun 28 18:40:53 is it over now? Jun 28 18:42:19 'it' being? Jun 28 18:42:29 google io Jun 28 18:42:32 xorgate: there's no NDK access, however, so you're limited to Java Jun 28 18:42:32 livestream :p Jun 28 18:44:31 Im actually kindda excited about that Brackets (?) ide they showed Jun 28 18:44:41 probably more than i should be, considering i dont do web dev Jun 28 18:46:17 anyone know what 'symbol file' the ndk-stack tool looks for when translating your stack trace? Jun 28 18:46:42 hello. ;p Jun 28 18:46:54 * g00s is having a hard time understand this fella talking now about tools Jun 28 18:47:03 bedtime now Jun 28 18:47:07 'night all Jun 28 18:47:07 gnight Jun 28 18:47:10 nah, those indian are the most difficult :p Jun 28 18:47:14 gnight Jun 28 18:53:13 how do i correctly define a custom intent that i want to use with "am start" from "adb shell" to start my app (which just does some work, then exits)? Jun 28 18:55:41 nice to see there are using eclipse 4.2 in the video Jun 28 18:59:50 My component is only displaying correctly after toggling it's visibility. How can i fix this? Despite working, it flashes the screen =/ Jun 28 19:03:07 ctate: pong Jun 28 19:03:37 g00s which 1 you're watching? Jun 28 19:03:48 whats new in the tools Jun 28 19:04:21 of course, its the only android taslk atm. :) Jun 28 19:04:48 /s/taslk/talk Jun 28 19:05:33 that Hugo Barra looks familiar... Jun 28 19:07:44 dafuq Jun 28 19:08:38 cool new stuff for the adt Jun 28 19:09:32 gui tools look almost ... usable. Jun 28 19:10:23 :0 i heard IDEA is also making a gui builder for android Jun 28 19:11:01 hey, does anyone know anything about trying to merge audio files on android? I'm trying to combine 2-3 m4a files. Jun 28 19:17:22 * pfn ponders installing this 4.1 img on his gn Jun 28 19:17:32 google, release an image will you... Jun 28 19:17:34 (for vzw) Jun 28 19:17:48 Hello, where can I locate "strings.xml" in my Android project ? Jun 28 19:17:53 Does webview offer a way to intercept POST requests? (and does this basically mean phishing for login/password credentials is an issue) Jun 28 19:18:27 it's your app Jun 28 19:18:36 what you loadi n your webview is your business Jun 28 19:19:02 pfn: I mean, would a malicious app with a custom webview then be able to phish passwords Jun 28 19:19:08 oh found it Jun 28 19:19:10 res/values Jun 28 19:19:10 dysoco \res\strings Jun 28 19:19:13 ah yes Jun 28 19:19:19 thanks anyways Jun 28 19:19:20 kbs, a malicious app can present whatever UI it wants Jun 28 19:19:28 beer != good for thinking Jun 28 19:19:29 kbs, doesn't matter if it's a webview Jun 28 19:19:53 dysoco: if you are on eclipse, ctrl-shift-r, then start typing Jun 28 19:19:55 pfn: understood, but just out of curiosity -- does webview offer a way to intercept post parameters? Jun 28 19:20:08 dunno, maybe, it doesn't really matter Jun 28 19:20:13 that's great zam Jun 28 19:20:15 zambo, Jun 28 19:20:17 if you're talking from a security perspective Jun 28 19:21:23 zamb Jun 28 19:21:39 is there a similar tool for accessing Widgets properties ? Jun 28 19:23:51 you mean android:* properties in layouts? Jun 28 19:23:56 you can always use ctrl-space there Jun 28 19:24:51 kbs: I'm not quite sure what you're asking. Are you asking can a developer have a webview in his own application intercept POST requests? Yes, of course. Are you asking whether malicious 3rd party apps can do the same? No, absolutely not. Jun 28 19:25:26 kbs: there's no central plugins that all developer webview implementations need to go through or anything. Jun 28 19:25:41 As a C developer... this whole thing of IDEs, Widgets, XML and so is really confusing Jun 28 19:25:42 i.e. you don't have to worry about malicious plugins in the user's main browser affecting other applications Jun 28 19:25:57 dysoco: welcome to the third millenia? Jun 28 19:26:09 turns out IDEs have been somewhat "vogue" since the 90s Jun 28 19:26:12 no damn, writing code in vim is much faster :P Jun 28 19:26:22 nah, I've used a bunch of IDEs, including eclipse Jun 28 19:26:27 lov: It was the first question. Ie, could a malicious application that purports (say) to connect me to facebook, and using its own webview, be phishing my login credentials Jun 28 19:26:31 but now I've tons of windows opened and I'm just... woah Jun 28 19:26:36 if you can keep everything in your head, yes, VIM is great. Jun 28 19:27:02 kbs: Absolutely. You could write Super Happy Funtimes app that also had a "Facebook" main entry point that could pretend to be facebook. Jun 28 19:27:04 lov: understand the answer is yes :-) just wanted to be clear how easy it was to phish directly from a webview instance Jun 28 19:27:09 This is true of basically every platform Jun 28 19:27:37 is systrace only 4.1 ? Jun 28 19:27:39 You could also have a "Share with facebook!!!" component that really saves your credentials Jun 28 19:28:19 That said, there's a Facebook SDK which IIRC has some SSO component that interacts with the actual facebook app Jun 28 19:28:40 but really this is wide open if you want to be scummy. So is apple, so is microsoft. Jun 28 19:28:49 lov: the real problem is that (as I see it) there are underhanded hand-offs using custom url schemes (in the intent) that allows phishing, even without needing webview (this is a second question, unrelated to my first) Jun 28 19:29:13 underhanded hand-offs? I'm not sure what you mean. Jun 28 19:29:44 lov: the facebook client uses an fbconnect:// redirect on android, to intercept a successfull oauth redirect (even when using the native browser) Jun 28 19:29:50 ok right Jun 28 19:29:57 yes, absolutely. Jun 28 19:30:07 you can do it yourself. Jun 28 19:30:43 it's just an intent filter, there's nothing special about it. Jun 28 19:30:57 right. the issue here is that the oauth tokens are basically publicly available, and so oauth'ing as the facebook client (using the native browser) so it's possible to auth as the normal facebook client Jun 28 19:30:58 unless there's some sort of permission requested, it's wide open. Jun 28 19:31:21 er. I just mean, can easily oauth as the normal facebook client Jun 28 19:31:23 kbs: technically yes. I imagine that this is a problem that Has Been Considered Jun 28 19:31:36 lov: apparently not, from what I can see Jun 28 19:32:14 so the attack scenario is user is in the browser, goes to a website, needs to oauth, oauth occurs via a custom uri, malicious app registers for that URI, pretends to be facebook, harvests credentials Jun 28 19:32:52 lov: yep. the tokens, at least. And if te user has already approved the app; it makes everything even easier for the user (it says "you've aproved this app before") Jun 28 19:32:52 admitted, the user would get the clue that something was wrong; if I recall, OAuth requires some backend work as well Jun 28 19:32:57 not really Jun 28 19:33:04 I don't really know oauth :P Jun 28 19:33:09 :-) Jun 28 19:33:13 well, congratulations, write your whitepaper Jun 28 19:33:23 gizmodo would be delighted to hear about another android "vulnerability" Jun 28 19:34:47 um, it wasn't about that actually;I just wanted to see if there were any 'best practices' involving webview -- the oauth was a random detour triggered by the secondary conversation :) Jun 28 19:35:09 Right. I'm not sure if there are any, sorry. That doesn't mean that they don't exist. Jun 28 19:35:22 I tend to live in the app layer instead of in the web layer Jun 28 19:35:45 what's happening is that the web layer in oauth has permeated the app layer, and i dunno what the heck these apps are really doing. :/ Jun 28 19:36:09 also, what's the correct way to resize objects ? By using grids ? Jun 28 19:44:57 hmm, i wonder when the emu will support bluetooth Jun 28 19:45:29 my Eclipse ADT Plugin installation fails: Missing requirement: Android Development Tools org.eclipse.wst.sse.core 0.0.0 Jun 28 19:45:36 googling hasn't helped so far, any ideas? Jun 28 19:47:09 Can I set the imageview to be a percentage of the screen size? Jun 28 19:54:57 I've never understood this fully...is JDK6 the minimum or is it preferred over JDK7? Jun 28 19:55:46 JDK6 is being soon deprecated IIRC Jun 28 19:56:07 by Oracle or Google? Jun 28 19:56:20 jdk6 is what android uses atm, i doubt they will move to 7 any time soon Jun 28 19:56:26 why Jun 28 19:56:32 developer.android.com says under "system requirements" JDK 6 Jun 28 19:56:50 stork so should I PREFER 6 or is it OK to use the latest? Jun 28 19:57:02 You can USE JDK7 Jun 28 19:57:10 but you have to make sure that your bytecode compiles to 6 Jun 28 19:57:23 I set everything to v6 Jun 28 19:57:25 in eclipse you can do this in project properties -> java -> build something or other Jun 28 19:57:28 OK, I don't want any extra steps, so I should get six then Jun 28 19:57:35 You will run into problems later on other wise Jun 28 19:57:50 OK, so I'll just get six Jun 28 19:58:22 java version "1.7.0_04" <--- that's mine :S Jun 28 19:58:27 I'm on ubuntu, I found this command should install it "sudo apt-get install sun-java6-jdk" Jun 28 19:58:45 dysoco yah that's what I had, but it was OpenJDK 6...I think it was fine but my AVDs were not working? Jun 28 19:58:49 GeeksOnHugs: right, except you probably have to change your repo sources to point to earlier versions that include the sun jdk Jun 28 19:58:58 I'm using that version and I can develop OK Jun 28 19:59:00 just use oracle jdk 7 Jun 28 19:59:01 at least via USB cable Jun 28 19:59:05 I was using MOTODEV Studio for Android and it's great on Windows but on Ubuntu I wasn't able to get AVDs working Jun 28 19:59:06 I'm using oracle JDK7 Jun 28 19:59:10 it's seriously not a big deal Jun 28 19:59:21 lov, repo sources? Jun 28 19:59:31 repository Jun 28 19:59:40 I see Jun 28 19:59:45 http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux Jun 28 19:59:49 OK, so it's easier to just use latest and set my compiler up Jun 28 19:59:56 sweet thx bro Jun 28 20:00:12 http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric Jun 28 20:00:15 actually Jun 28 20:00:16 so I'll do the 7 then and set up java build to compile to six Jun 28 20:00:17 https://wiki.ubuntu.com/Java Jun 28 20:00:40 kk ty Jun 28 20:01:22 lov, well I already had that, that's OpenJDK Jun 28 20:01:41 do you think it was my issue with the AVD? I'm just guessing, I deleted everything and am starting an install from scratch Jun 28 20:01:50 I just want everything to work on the other end hehe Jun 28 20:02:31 sorry I see the Oracle install instructions Jun 28 20:03:13 doh...it's 32 bit version, I want 64 :( Jun 28 20:03:54 exit Jun 28 20:04:19 hi, does anybody know any details about the new apk encryption thing? Jun 28 20:04:20 GeeksOnHugs: OpenJDK != Oracle JDK Jun 28 20:04:27 OpenJDK = Free as in neckbeard Jun 28 20:05:01 someone needs to patent those neckbeards... maybe Apple Jun 28 20:05:04 lov++ Jun 28 20:06:08 I got Oracle JDK because I read it was the only one that worked correctly with Android, is that true ? Jun 28 20:06:37 lov, I know, but it's an ATTEMPT to be as equal as possible right? Anyway I found instructions from the site you gave me...from another link for installing the 64 bit version of JDK 7 Jun 28 20:06:39 lov, oracle is deploying openjdk on all their systems now. it's the reference implementation as of 7, and oracle JDK is just a windows build of openjdk now, at least if you ask the people in ##java Jun 28 20:06:46 nx5: i know a little; what are you curious about? Jun 28 20:07:00 afaik it boils down to ASECs. Jun 28 20:07:12 dysoco well I had some problems, like I mentioned, with the AVD with Open JDK, but I don't know for sure why Jun 28 20:07:15 as they've existed since ... froyo? gb? Jun 28 20:07:23 basically, will i be able to read my own apk like I can do now? Jun 28 20:07:41 yes; that is what Resources does anyway Jun 28 20:07:55 no, not through resources Jun 28 20:08:13 I'm checking classes.dex is intact Jun 28 20:08:26 from a native library Jun 28 20:08:42 yeah that should still work fine, i'd think Jun 28 20:08:58 crap what's linux for remove directory Jun 28 20:09:03 what are asecs anyway? Jun 28 20:09:14 rmdir :P Jun 28 20:09:41 ctate: do you know how the play smart update works ? Jun 28 20:09:46 nx5: the secure containers that android has used for apps-on-sd all along Jun 28 20:09:50 g00s: that i do not know Jun 28 20:10:00 k, thx Jun 28 20:10:17 seems more complicated, and more likely to go wrong Jun 28 20:10:32 although cool in theory Jun 28 20:11:24 if it's at all like what we do for OTAs, it's pretty damn robust Jun 28 20:11:32 i.putExtra("foo", null); --> exception? Jun 28 20:11:37 Also,i have this quiz app, i wanted it to reset(make new question and reset the variables) after i click the 'next' button so I made a new class like the quiz except i kept the oncreate method out and i put all the stuff from the main quiz inside a method( void display(){}) but i get a error in main quiz that the method is non static vs static(something like that). So i was wondering would I just have to reset the variables by hand Jun 28 20:12:12 tophyr: probably Jun 28 20:12:24 hurgh Jun 28 20:12:25 kk Jun 28 20:13:00 is all the new stuff they talked about in I/O available in the lastest SDK? Jun 28 20:13:29 Yep for me Jun 28 20:13:36 at least I've the lint notifications stuff Jun 28 20:13:42 What version eclipse do you guys use? Jun 28 20:13:44 sweet looks like some great stuff Jun 28 20:13:50 Actually, I had it yesterday Jun 28 20:14:00 I was using MOTODEV, but I'm switching to regular eclipse...otherwise I'd have to wait on motorola Jun 28 20:14:39 what about jessicajames question dysoco what version? I heard they recommend eclipse classic Jun 28 20:14:49 anybody can answer me Jun 28 20:14:50 ? Jun 28 20:15:19 Rogue_ I've found the most reliable place to get an answer is stackoverflow Jun 28 20:15:43 why won't you try out? Jun 28 20:16:12 lol this is just a quick simple answer GeeksOnHugs Jun 28 20:16:17 *question Jun 28 20:16:37 GeeksOnHugs, I'd use Eclipse Classic 4.x Jun 28 20:16:46 not 3.x , 4.x was just released and it works fine for me Jun 28 20:16:49 sorry rogue :P Jun 28 20:16:51 but as I said, I'm new to Android Jun 28 20:16:52 thx dysoco Jun 28 20:17:12 well, dysoco that confirms what I understand too so probably right Jun 28 20:17:15 Rogue_: what's the problem with static vs non-static? Jun 28 20:17:33 Rogue_: You will have to post some code before anyone can help. Jun 28 20:17:35 So i was wondering would I just have to reset the variables by hand back in main quiz? Jun 28 20:17:45 by hand you mean? Jun 28 20:17:48 Also, people may not help because it sounds like they would be doing your homework for you :P Jun 28 20:17:56 this.var1 = default_value? Jun 28 20:18:15 versus create new instance of the class? Jun 28 20:18:17 no i meant... Jun 28 20:18:49 like instead of making a new class that contain the method, make the method in the original class Jun 28 20:19:00 ctate: will app encryption work on any current android version as soon as google play is updated, or will in only work on JB? Jun 28 20:19:04 What am I doing wrong here since it will not center the image? http://ideone.com/SjRzk Jun 28 20:19:15 In general, the problem you have is you may be trying to access non-static variables from a static method. Thinking that because they are in the same class, that they are accessible. Jun 28 20:19:16 nx5: that i do not know. Jun 28 20:19:29 it's possible it will work on at least some historical versions. Jun 28 20:19:46 ofcourse you can make that method to original class Jun 28 20:19:48 what's the problem? Jun 28 20:19:57 i use the eclipse platform runtime. 55m, its the smallest. add jdt + adt. Jun 28 20:20:12 xavd demoed with 4.2, so may as well use that also Jun 28 20:20:21 Knossos: you seem right Jun 28 20:20:35 do you know when google play is going to start using app encryption? Jun 28 20:20:46 i'll see how i can fix that Jun 28 20:21:03 It sounds like your method shouldn't be static Jun 28 20:21:09 remove the static keyword from function which is ment to be non-static Jun 28 20:21:10 :D Jun 28 20:21:12 Instead, make an instance of the class Jun 28 20:21:14 Has anyone used this tutorial before? http://goo.gl/HPpo4 . I'm having a hard time figuring out how to execute a simple query like "SELECT * FROM table". Would I make a new method in the DatabaseHelper class or would I just call an already-existing method from the DatabaseHelper class? Jun 28 20:21:38 i dont have the word static anywhere Jun 28 20:21:57 ok, what's the problem then? Jun 28 20:22:05 but it do have vairables in it that haven't been assigned a value in the same method Jun 28 20:22:10 I'm not sure how you would get that error if you didn't Jun 28 20:22:36 Rogue_: how familiar you are with object oriented programming? Jun 28 20:22:37 has anyone been able to get 4.1 platform on the sdk manager? Jun 28 20:22:59 a bit, but not perfect... Jun 28 20:23:20 aarcane: orly? Jun 28 20:23:42 when i was learning there were things that were harder to understand(static, and the true purpose of private) Jun 28 20:23:43 lov, yarlly Jun 28 20:23:53 after the kerfluffle with google, I'm kind of surprised. Jun 28 20:24:07 OK I went through the steps (lov or anyone else) for installing jdk and I did the test java -version and it said it didn't find java Jun 28 20:24:11 ok, but you understand difference between local variables and class variables? Jun 28 20:24:17 i followed this: http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7 Jun 28 20:24:36 exactly till java-version then it says... Jun 28 20:24:44 Rogue_: If you post some of your code in pastebin for us to giggle at you may get some better direction. Jun 28 20:24:54 java no file or directory Jun 28 20:24:58 lol...no Jun 28 20:25:17 becuase ofc you can have variables which haven't been initialized on the same function Jun 28 20:25:30 ok sure :) Jun 28 20:26:19 lov could you help me bro Jun 28 20:26:51 if i wanted to access a usb device attached to a bluetooth device, what do i need to do? do i send usb commands over a bluetooth socket or does bluetooth abstract the stuff to a degree? Jun 28 20:28:12 ctate: pong? Jun 28 20:28:27 Gumboot: nice latency! :) Jun 28 20:28:41 I ponged a while ago, but you never responded. Jun 28 20:28:44 Like, an hour or two. Jun 28 20:28:45 Gumboot: i was going to ping you re Renderscript in JB, which at this point I figure you've seen/heard about Jun 28 20:28:47 yeah i was AFK Jun 28 20:28:51 nice backoff/retry Jun 28 20:29:02 javac and javaws work at command line but not java...could it be a path issue? Jun 28 20:29:06 Well I wouldn't want to flood the channel or anything. Jun 28 20:29:11 i aint finish yet though Jun 28 20:29:13 http://pastebin.com/kZ1XU2UM Jun 28 20:29:25 help plz :'( Jun 28 20:29:44 line 96 is were i want this special reset method to go Jun 28 20:30:17 halp :'( Jun 28 20:30:47 ctate: Yeah, I'm peripherally involved in the internals at our end. Jun 28 20:31:30 okay then! Jun 28 20:32:12 Rogue_: you can't modify class members on inner class Jun 28 20:32:14 this should be a good session now with reto :) Jun 28 20:32:47 RKTest.this.A = ""; something like that? Jun 28 20:32:47 I heard someone use the full name (as opposed to J) almost a whole day before the announcement. I'm totally an insider. Jun 28 20:33:11 er Jun 28 20:33:19 Knossos: but you can't do that because A isn't final Jun 28 20:33:21 RKTest.this.cAnswer = ""; ... etc Jun 28 20:33:27 man Jun 28 20:33:29 and when it is final, you can't do that Jun 28 20:33:48 You can reach it because it is in the class, not local Jun 28 20:33:58 aah Jun 28 20:34:06 atleast I believe you can't modify class members on inner class Jun 28 20:34:22 You can, you just have to reference it like I just wrote Jun 28 20:34:34 what Knossos said Jun 28 20:34:53 ctate: Can I have a cookie? Jun 28 20:35:04 Absolutely not. Jun 28 20:35:12 How about a Jelly Bean? :> Jun 28 20:35:20 Patience, young Grasshopper. Jun 28 20:35:35 No, that was Gingerbread, silly. Jun 28 20:35:36 Would have loved one of those free devices at IO Jun 28 20:35:38 cool, I didn't know that Jun 28 20:35:42 because i planned to reset everything when the button is click with ONE method that contains all the things that needs to be reset; but i guess i have to reset every variable one by one... Jun 28 20:36:00 Though Grasshopper might be nice... I've never tried it. Jun 28 20:36:16 the apk updating method is pretty cool in 4.1 Jun 28 20:36:33 Is there a lawn ornament, yet? Jun 28 20:37:06 Knossos: yeah, thinking it a bit, you are correct. I was just thinking local variables, my bad :) Jun 28 20:37:20 as you said Jun 28 20:37:27 Fine, I'll google it. Jun 28 20:37:36 [13:36:16] the apk updating method is pretty cool in 4.1 Jun 28 20:37:37 ? Jun 28 20:37:52 canadiancow|work: Partial APK updates Jun 28 20:37:59 Instead of downloading the whole file very time Jun 28 20:38:04 thats not a 4.1 feature Jun 28 20:38:19 So there is. Jun 28 20:38:22 they said that will work back to 2.2 or 2.3 or something Jun 28 20:38:27 It comes first in Jelly Bean, but extends back to 2.3 right? Jun 28 20:38:49 i wouldnt say it "comes first" Jun 28 20:38:57 it was announced with JB, it's not part of the OS Jun 28 20:39:03 Fair enough Jun 28 20:39:06 it works back to Gingerbread, I believe Jun 28 20:39:38 evancharlton: how about encrypted apps? Jun 28 20:39:47 ctate: that's JB+ Jun 28 20:40:02 at least, if I understand it correctly Jun 28 20:40:09 okay, nx5 was wondering and i didn't knwo the scoop on that because there is more internals stuff in play Jun 28 20:40:12 thx Jun 28 20:40:35 thx ctate Jun 28 20:40:57 how will the encryption work with adb backup/restore? Jun 28 20:40:57 btw if you see the Play folks tell them partial-download updates r0xor :) Jun 28 20:41:12 canadiancow|work: same as it does today for forward-locked apps Jun 28 20:41:12 hey play folk! what he said! Jun 28 20:41:24 so... it will piss me off as a user Jun 28 20:41:24 awesome Jun 28 20:41:33 hmm? Jun 28 20:41:36 it'll back up the data, not the apk Jun 28 20:41:41 ctate: How many jellybeans are in the statue, then? Jun 28 20:41:44 but you get the apk back from Market on demand anyway, so. Jun 28 20:41:47 Gumboot: All of them. Jun 28 20:41:55 Well I'm not sure that's accurate. Jun 28 20:41:55 ... FOR NOW. Jun 28 20:42:05 well that means i cant restore until i download the apk Jun 28 20:42:13 this is true Jun 28 20:42:23 restore should be an option instead of "setup device" Jun 28 20:42:28 why do you hate the developer of the app who wanted it to be more tightly controlled? :) Jun 28 20:42:59 you *can* actually force a setup-like historical app restore if you are willing to futz with adb a bit Jun 28 20:43:36 i just want to be able to buy a new device, and transfer everything, seamlessly Jun 28 20:44:02 ctate: Do you know much about the Q? Jun 28 20:44:20 Like whether it will be able to access remote storage on LAN such as a NAS? Jun 28 20:44:40 Or whether it is ALL about the cloud? Jun 28 20:44:45 i dont really see why Q and GTV exist as separate devices Jun 28 20:44:52 one plugs into my home theatre system and runs android Jun 28 20:45:00 the other plugs into my home theatre system and runs android Jun 28 20:45:21 Knossos: it's all about the cloud Jun 28 20:45:33 ctate: Heard anything about autovectorisation in Renderscript, by the way? Jun 28 20:45:55 Knossos: it's all streaming all the time, at least at present Jun 28 20:46:07 Gumboot: nope; i am not actually much in the loop on RS Jun 28 20:46:09 That is a shame Jun 28 20:46:15 Gumboot: it's being worked on Jun 28 20:46:25 My internet connection is horrible. Jun 28 20:46:26 In or out of J? Jun 28 20:46:26 Knossos: think of YouTube as being your NAS? :) Jun 28 20:46:49 Gumboot: don't know :( Jun 28 20:47:05 Actually, that's a completely opaque term I used, right there. Jun 28 20:47:10 for many people bittorent is their NAS Jun 28 20:47:12 Should have referred to warp compilation or something. Jun 28 20:47:16 The problem is, if you own a dvd that you have copied to your NAS for play back on another device, you can't use Q for that. Jun 28 20:47:32 Autovectorisation would be an llvm matter. I could check mainline. Jun 28 20:47:41 "own a dvd".. :D Jun 28 20:47:53 but yeah, I agree with Knossos Jun 28 20:47:56 I've got my IT Crowd, Blackadder and Red dwarf box sets copied to my NAS for quick play back Jun 28 20:48:14 I don't have to mess around with the DVDs, they can just sit in the cellar. Jun 28 20:48:20 It seemed to me that a lot of these kernels would need unrolling during compilation to be able to be optimised properly. I have little or no hope that the back end could do it at startup. Jun 28 20:48:25 it is frustaring Jun 28 20:48:34 Nexus Q = fail before i is even out Jun 28 20:49:08 If Q had the ability to access local network storage, it would be a serious consideration for me. Jun 28 20:49:25 heh... 4.1 Jun 28 20:49:27 btw, interesting article: http://gizmodo.com/5921823/does-google-have-any-social-skills-at-all Jun 28 20:49:27 The answer is 160, by the way. http://news.cnet.com/2300-17938_105-10012783.html Jun 28 20:49:52 I think I'd have guessed about half that. Jun 28 20:51:37 And man, if I could play a movie using my phone as a remote control. Just like it looks in that live feed they did. Jun 28 20:51:48 The xbox is such a pain in the arse ;P Jun 28 20:51:51 i want my big cookie made of small cookies Jun 28 20:53:37 I've implemented a trial period into an app, but the problem is I can't display an alertdialog in Application. I want it to check and display on startup. Jun 28 20:54:33 AlertDialog only works in Activity, is there an alternative? Jun 28 20:55:41 The trial period is just a beta version. Jun 28 20:55:50 OMG THAT WAS AWESOME Jun 28 20:55:58 Just now in google IO...sorry gotta share this Jun 28 20:56:11 the dude was like, your all engineers so you should be aware of such and such Jun 28 20:56:20 then puts a formulla up on the board Jun 28 20:56:25 and is like "whos with me" Jun 28 20:56:30 and a few raise their hands Jun 28 20:56:35 and he's like "i just made that up" Jun 28 20:56:49 ha ha ha Jun 28 20:56:52 testing app in 2.2 getting permanent black screen after first of two splash screen made as a 2 frame animation... works in 2.3. any ideas? Jun 28 20:58:42 ! look at logcat Jun 28 21:04:20 Any ideas on displaying a Dialog type message from Application class? Jun 28 21:06:37 hello Jun 28 21:08:40 i want to write a function that shutdowns the device, is PowerManager's class documentation the right text to start ? Jun 28 21:13:56 hi everybody! Jun 28 21:14:18 testing app in 2.2 emulator getting permanent black screen after first of two splash screens made as a 2 frame animation... works in 2.3. anyone seen this? Jun 28 21:16:43 Is there a way to have a menu or an actionbar and ALSO have NoTitleBar.Fullscreen?? Jun 28 21:17:27 If I remove the NoTitleBar option, I get my menu, but then I have to have a smaller app because the Title takes up so much room. Jun 28 21:18:14 I am currently writing an Android app that uses OpenGL and would like to pre-load the textures in the Apps starting screen. Right now I load the Bitmap from the resources when I create the Mesh-Object and build an OpenGL texture from it when it is first rendered. Now I would like to create a TextureManager class that loads the texture... Jun 28 21:18:42 My question is now, what is the bottleneck? Loading the texture from the resources into the Bitmap? Or creating and binding an OpenGL texture from it? Jun 28 21:18:57 So what would be a good idea to store and load the textures? Jun 28 21:20:19 What options are there for automatic removal of code between development and release versions? Jun 28 21:20:42 i hear ppl talking about maven Jun 28 21:20:54 i made a bat script using sed :/ Jun 28 21:21:08 but that's not possible in large projects Jun 28 21:21:20 Is there anything within Eclipse? Jun 28 21:22:10 evident why not profile that? Jun 28 21:23:15 xorgate: how can I do that? Jun 28 21:24:11 evident well you can use eh ... *digs in memory*.. something in ddms (sorry) or just keeping track of the time certain operations take Jun 28 21:24:21 with System.currentMillis() Jun 28 21:24:28 traceview Jun 28 21:24:34 or the other profiling stuff, sure Jun 28 21:24:47 ok that owuld be an idea... I'll to find out what's taking the time... :) Jun 28 21:24:52 http://developer.android.com/tools/help/traceview.html Jun 28 21:24:54 Does anyone know of a theme that does not show a titlebar, but still allows a menu or an actionbar? Jun 28 21:25:07 traceview is insanely useful Jun 28 21:29:59 Is System.exit(0) safe to use? Will the onPause, onStop, onDestroy lifecycle still happen? Jun 28 21:30:12 theres no need to use that Jun 28 21:30:19 <_Syzygy> yay, it works Jun 28 21:30:40 hmm, anybody know which library that fella was referring to (http exp backoff) from google ? Jun 28 21:30:50 code1: two aspects to the answer Jun 28 21:31:15 first: yes, it's safe. none of the rest of the lifecycle will happen; your app will simply disappear instantly, just like you'd expect. Jun 28 21:31:15 xorgate: I need to use it to exit when I don't have reference to Activity Jun 28 21:31:21 second: why the hell would you need to do that? Jun 28 21:31:29 why do you need it to exit? Jun 28 21:31:31 no youre doing it wrong Jun 28 21:31:35 ==xorgate Jun 28 21:31:57 i mean, what sort of case would you even be calling this from? Jun 28 21:32:08 xorgate: probably, ctate: I'm trying to display a trail ended alertdialog from Application class Jun 28 21:32:17 but obviously I need an Activity Jun 28 21:32:32 how did your app even get launched? Jun 28 21:32:45 are you running a service or something? Jun 28 21:33:03 (no Activity == no UI, by the way) Jun 28 21:33:32 There's multiple ways for the app to be launched, Activity, Service, Receiver Jun 28 21:33:51 and at some point you want to interrupt the user and put up some UI? Jun 28 21:34:15 Yep, but there's multiple Activities. I want to keep it dry but implementing it in Application Jun 28 21:34:26 never show UI stuff unless it's your turn Jun 28 21:34:31 ==xorgate Jun 28 21:34:34 ctate: you can have a UI without an activity Jun 28 21:34:42 also i have no idea what you mean by "keep it dry" Jun 28 21:34:46 evancharlton: as a general guideline :) Jun 28 21:34:53 coding lab at i/o Jun 28 21:34:57 I could just terminate in Application onCreate but I'd like to display a dialog to explain why Jun 28 21:34:58 zzzzz Jun 28 21:35:34 you still haven't explained why you need to tear down the app process yourself instead of letting the OS do it normally Jun 28 21:35:54 anyway, i'm a big fan of dialog-themed activities over trying to use vanilla dialogs as first-class UI modes Jun 28 21:36:14 birbeck: you are at i/o ? Jun 28 21:36:22 what I mean by DRY is I want to avoid checking if the app is expired in every entry point to the app (All the Activites etc) Jun 28 21:36:39 g00s: yes Jun 28 21:37:24 birbeck: if you have any free time, can you ask about the emu getting bluetooth support? a recent blog said that it was coming … don't see it in adt 20 tho Jun 28 21:37:30 ctate: Ok Application gets created and does a check to see if it's expired, if so displays a dialog to say expired and exits. Jun 28 21:37:36 <[snake]> is there a tutorial for rooting an android samsung galaxy s2 (sgh i777) on linux? Jun 28 21:37:45 you mean avoiding an "if (sGlobals.we'reDoneNow) finish();" in your onResume() methods? Jun 28 21:38:17 g00s: sure, i planned on going to office hours soon Jun 28 21:38:51 ctate: avoiding having to do that in every onResume method (also need to display a dialog / message) Jun 28 21:39:28 g00s: link to blog? Jun 28 21:39:33 birbeck: awesome, thanks. yeah , hold on Jun 28 21:39:50 <[snake]> oh I see it in the Topic... head to #android-root Jun 28 21:39:53 <[snake]> nvm Jun 28 21:40:01 birbeck: http://android-developers.blogspot.com/2012/04/faster-emulator-with-better-hardware.html Jun 28 21:40:11 under "More Hardware Feature Emulation" Jun 28 21:41:14 code1: okay, if you've got an activity *stack* personally i think it's bad UX to tear the whole thing down Jun 28 21:41:35 unless it's really clear that the user is in control of the operation Jun 28 21:41:52 also in general you do not want to destroy your app process Jun 28 21:41:56 man, this is fun coding Jun 28 21:42:01 building a CATiledLayer equivalent for Android :) Jun 28 21:42:18 ctate: when you say tear the whole thing down - do you mean by doing System.exit rather than finish(0? Jun 28 21:43:29 g00s: they talked about hardware sensors and stuff in the adt session Jun 28 21:43:41 i dont remember any mention of bluetooth though Jun 28 21:44:48 birbeck: :( Jun 28 21:45:23 code1: exactly Jun 28 21:45:41 finish() tells the OS that your activity should be taken off screen and youe're done for now Jun 28 21:45:48 bluetooth emulation is not supported in R20 Jun 28 21:46:00 but the *process* is explicitly kept around in case the app launches it again, as an optimization Jun 28 21:46:07 (and it's a pretty significant optimization) Jun 28 21:46:12 What version kernel is Jellybean? anyone know? Jun 28 21:46:24 by calling System.exit() you're explicitly preventing that optimization Jun 28 21:47:04 hays: my Nexus 7 here says 3.1.10 Jun 28 21:47:25 how do you have a nexus 7 yet Jun 28 21:47:35 because i work on Android for Google Jun 28 21:47:37 * ctate points to the +o Jun 28 21:47:49 fair enough haha :) Jun 28 21:48:35 well 3.1.10 is different from 3.0.1 so guess so Jun 28 21:48:47 ctate: do you know why the nexus 7 runs the phone ICS interface? Jun 28 21:49:02 ctate: yeah I don't like the idea of using System.exit(). Any ideas on how I can do the expiry check on Application onCreate? Or will it have to be in every Activity? Jun 28 21:49:02 AFAIK, 7" tabs run the tablet version Jun 28 21:49:11 AlCapwn: because it looks better than the tablet UI does on a 7" screen Jun 28 21:49:17 looks & works Jun 28 21:49:17 hi Jun 28 21:49:19 hello! I've got a sub-package (com.example.app.sub) which needs to access the com.example.app resources. Is there a way in order to avoid to write all the times com.example.app.R? Jun 28 21:49:35 code1: Application is the wrong place to do the check Jun 28 21:49:41 did romainguy just tell us to rub butter on our screens? Jun 28 21:49:47 just have your Activity classes check in their onResume() methods Jun 28 21:50:11 btw what kind of device the n7 is ? large/xhdpi ? Jun 28 21:50:16 ctate:is this a n7 specific change, or will jb by default run the phone interface on 7" tabs? Jun 28 21:50:32 i imagine the OEM will do whatever they want Jun 28 21:50:50 yea i wondered about that too Jun 28 21:50:56 the pull down menu looks strange Jun 28 21:50:59 ctate: Logically it's the perfect place because it's only needed once and it refers to the whole application but pratically in the android ecosystem it seems like it won't work there. Jun 28 21:51:03 but i guess there isnt enough space in portrait to have a full system bar Jun 28 21:51:06 elegos: sadly, no, that's a java limitation Jun 28 21:51:12 in general it is a bad idea to change the "natural" orientation of a device between releases, so for example if there are ICS 7" tablets running landscape-default right now, they should continue to be landscape-default once updated to JB Jun 28 21:51:33 code1: the Application object does not really serve the function that most people think it does Jun 28 21:51:52 and frankly most people are best served by trying hard to ignore the existence of Application entirely Jun 28 21:52:00 MDWRIGHT: can you set a somewhat-define in order to replace a string with another in the code, like C? Jun 28 21:52:53 elegos: nope, there's nothing like a preprocessor in Java-land Jun 28 21:53:22 ctate: What's it's function if not to be a place for global functionality that refers to the app as a whole? Jun 28 21:53:24 MDWRIGHT: any elitist hint to abbreviate that code? :P Jun 28 21:53:45 but you don't need the Application object for that; just some random static object and off you go Jun 28 21:54:05 and in the android model there basically *is* no global functionality that covers the app as a whole Jun 28 21:54:28 ? Jun 28 21:54:35 hey all .. Jun 28 21:54:36 I'm trying to have an activity with windowIsFloating and windowActionBar Jun 28 21:54:48 does anybody here developing with flash ? Jun 28 21:54:48 elegos: from a language stand point, nope :( If you need to access that class you have to do fully qualified imports everytime Jun 28 21:54:50 keep disconnecting Jun 28 21:55:13 but windowIsFloating=true always results in this exception: Jun 28 21:55:13 MDWRIGHT: that's ok, I just didn't want to do that if there was another way :) Jun 28 21:55:14 E/AndroidRuntime( 1659): Caused by: java.lang.IllegalStateException: ActionBarImpl can only be used with a compatible window decor layout Jun 28 21:55:14 E/AndroidRuntime( 1659): at com.android.internal.app.ActionBarImpl.init(ActionBarImpl.java:159) Jun 28 21:55:37 ctate: Application just seems tidyer than a random static object ;p Jun 28 21:55:44 elegos: your best option is just making effective use of your editor (vim registers, etc.) Jun 28 21:55:47 opinions vary on that, code1 :) Jun 28 21:55:59 HELP PLEASE :S Jun 28 21:56:03 MDWRIGHT: can't I import com.exmaple.app.R? Jun 28 21:56:18 elegos: you can, I was under the assumption you already had imported an R class Jun 28 21:56:21 'cause I'll never use my own R Jun 28 21:56:22 DOES ANY1 USE FLASH TO DEVELOP ANDROID APP ? Jun 28 21:56:25 oh, yes, then do that Jun 28 21:56:32 that's wonderful :D Jun 28 21:56:36 ctate: do you have a use case for Application? Jun 28 21:56:37 stop yelling Intro Jun 28 21:56:44 sorry Jun 28 21:56:48 code1: not really :) Jun 28 21:56:50 but i am really despered Jun 28 21:57:10 perhaps you should query everyone on this channel then :| Jun 28 21:57:17 seriously, some of the long-time framework people have wished sometimes that it had not been made possible to provide your own Application class Jun 28 21:57:55 because people seem to want to try to use it for UI-level operations / state tracking / etc, and it ends in tears Jun 28 21:58:07 Intro: I doubt many people are doing flash dev for android in here. Adobe no longer supports it post-ICS Jun 28 21:58:10 it is useful for stuf that must be initialized once even if that can be done in other ways Jun 28 21:58:28 I figure this is a better place to ask than ##windows, anyone know if there's an IRC channel for #metro? Jun 28 21:58:38 ctate: really? I kinda like it. I tend to use it for common functionality that can be used by multiple parts of the app. Jun 28 21:58:47 shoerain: you're probably better off asking in ##windows :) Jun 28 21:58:49 (if only because ##windows is focused on end-user application setups) Jun 28 21:58:50 no one should be using flash for anything these days :P Jun 28 21:58:58 oh . so u guys using JAVA or what ? Jun 28 21:59:01 bankai_: but flash is cross-platform! Jun 28 21:59:03 seems to work out but I know what you mean about the UI stuff. Jun 28 21:59:09 shoerain: like java? *ducks* Jun 28 21:59:21 *sheds a tear ;) Jun 28 21:59:22 code1: it's certainly *possible* to use it that way, sure Jun 28 21:59:25 bankai_: also has hardware acceleration on a few platforms Jun 28 21:59:29 which does help, compared to java... Jun 28 21:59:40 Intro: Android's app interfaces are in Java. Jun 28 21:59:41 shoerain: oh yeah, i had to disable that coz of a bug in flash 11 hehe Jun 28 21:59:55 ctate may i pm u ? Jun 28 22:00:05 sure what the heck Jun 28 22:05:06 testing app in 2.2 emulator getting permanent black screen after first of two splash screens made as a 2 frame animation... works in 2.3. anyone seen this? Jun 28 22:05:39 NeederOfHelp: any errors/ST ? Jun 28 22:06:27 nothing jumping out at me from log, but looking thru it Jun 28 22:11:56 hi all Jun 28 22:12:05 * g00s has no idea what romain & chet are talking about :/ Jun 28 22:12:31 does anyone know, is it possible to determine whether the user has a screen lock set? Jun 28 22:15:47 karakuri: nope Jun 28 22:20:28 k, i didn't think so Jun 28 22:21:06 basically, if you want to know that, you're probably doin it rong Jun 28 22:21:25 another question: is it possible to tell whether my application is the foreground application? Jun 28 22:21:47 i know there are the lifecycle callbacks for activities, Jun 28 22:21:57 but there's nothing for the application itself Jun 28 22:22:29 according to ctate recommendation :) , can any1 recommend me about some good JAVA tutorial ? i am a totaly begginer without any previuse experience Jun 28 22:22:48 karakuri: foreground / background has no meaning for the application as a whole Jun 28 22:22:51 only for activites Jun 28 22:23:05 Intro: just fyi, it's "Java" not "JAVA" Jun 28 22:23:09 Hi, i'm installing eclipse and even though ADT is installed, i cannot see 'File > New Android Project'.. as if its not installed.. if I go HELP > Install new software and use the url, it says its already installed. Eclipse Java EE IDE for Web Developers (is this right?) - also, i installed android SDK from within eclipse, instead of pointing to an already instaled location Jun 28 22:23:42 oh thanks :) Jun 28 22:23:58 MDWRIGHT: yes, i looked at the release notes about emu & bt and did not see it mentioned so I figured so ; but i would like to know what the status is on that feature Jun 28 22:24:01 ctate: i understand, but i'm implementing an automatic sign-out feature for an application, and it needs to present the login screen again, btu only if the application is in the foreground Jun 28 22:24:19 like i said, it does not make any sense to talk about the *application* being in the foreground Jun 28 22:24:29 the only thing that can be in the foreground is an activity Jun 28 22:24:48 so how do i tell whether any of my activities is in the foreground? Jun 28 22:24:58 activitymanager.getRunningTasks(1).get(0).topActivity.getPackageName() Jun 28 22:25:02 smoething like that ^ Jun 28 22:25:02 what you probably care about is whether any of them are resumed Jun 28 22:25:24 if you don't want to keep track of all of them Jun 28 22:25:37 and when the last one is stopped, do whatever you need to Jun 28 22:25:42 will nx5's solution work? from what I've read in the ActivityManager docs, it's not recommended to use that information Jun 28 22:25:47 unless you are making a task manager app Jun 28 22:25:51 what nx5 said will let you test whether one of your activities is the frontmost activity Jun 28 22:25:58 ok Jun 28 22:26:00 but yeah, it's not how i would do it Jun 28 22:26:26 i could subclass applciation and have all my acitvities call back to it from lifecycle callbacks Jun 28 22:26:28 Does anyone know if the Android rotation vectors are assuming a certain ordering of components in the rotation? Or are they all relative to their basis vector? Jun 28 22:26:29 and keep track there Jun 28 22:26:43 no need to use Application for that; you can just declare any old static class you want Jun 28 22:26:54 true Jun 28 22:27:32 is that preferred over using ActivityManager? Jun 28 22:27:40 yes Jun 28 22:37:08 whats confusing about this talk romin is giving, is which optimizations only apply to JB and forward Jun 28 22:38:06 and techniques Jun 28 22:43:19 i liked the wasd navigation keys :P Jun 28 22:43:50 wasd >>> hjkl :) Jun 28 22:44:03 ctate: boo Jun 28 22:45:30 lol what, Rect doesn't implement hashCode? Jun 28 22:45:39 the hell is that about? Jun 28 22:46:12 * p_l|backup finds it hard to get excited over 4.1 given that he won't be able to use it outside of emulator/VMwre Jun 28 22:47:14 p_l|backup: well, its likely that i'm just intellectually limited, but one thing i struggle with is there is so much time difference between i/o talks on some things like what romain discused, and when you can start working with it, you either forget it or wonder if its stale with newer information Jun 28 22:47:36 at some later point in time Jun 28 22:48:11 i guess i should be paying attention to GB techniques now? maybe in 2 years JB ? Jun 28 22:48:58 systrace and dump gfxinfo only work on 4.1 so , if it gives me insights, are those even transferrable to prior versions of android ? Jun 28 22:49:09 seems like. The only phones I might get now will come with either 2.2 or 2.3 and won't be upgraded to 4.0 (even if bought now), so... Jun 28 22:49:30 i guess i should be re watching the i/o 2010 talks then :) Jun 28 22:49:31 g00s: they can, because you can trace things your application will do anyway Jun 28 22:50:21 g00s: most of things are transferrable back Jun 28 22:50:36 if you optimize the rendering loop, why wouldn't it work faster on older android as well? Jun 28 22:51:28 Mavrik: sure, but with the triple buffering now, i'm confused which techniques are specific to just optimizing for that new reality Jun 28 22:52:01 g00s: I think vsync is of bigger impact, but either of those is specific to deep internals Jun 28 22:52:31 but i'm very excited about the 5:15 talk :) Jun 28 22:52:47 g00s: define "techniques"? Jun 28 22:53:10 doing fast rendering has little to do with triple buffering Jun 28 22:53:22 triple buffering will use more RAM though Jun 28 22:53:29 Mavrik: to do that, i would have to rewatch romain's presentation … but this feed is live and that will have to wait Jun 28 22:53:49 but i'm obviously confused, this is not my strong area Jun 28 22:54:07 g00s: link to live feed? Jun 28 22:54:18 AlCapwn: https://developers.google.com/events/io/ Jun 28 22:54:25 channel 1 is android Jun 28 22:55:31 also romain needs to talk slower :) Jun 28 22:55:48 Which one is romain? Jun 28 22:56:06 oh, right now its just filler Jun 28 22:56:10 the session is over Jun 28 22:56:10 Neither of them look like him o.O Jun 28 23:01:38 oh! the upcoming talk is about data/bandwidth usage Jun 28 23:01:59 jeff sharkey has done a bunch of good work for providing info on that etc Jun 28 23:02:46 jeff is very good Jun 28 23:02:54 one nice thing with 4.x - Android finally looks nice Jun 28 23:03:06 those rounded buttons etc. were ugly Jun 28 23:03:19 weird tho, on https://developers.google.com/events/io/ the schedule goes from 2:45 … to 5:15 ? almost missed it Jun 28 23:03:43 (hm not just data/bandwidth, general resource consumption stuff.) Jun 28 23:04:55 Is anybody familiar with this error? i got it after updating to the new ADT yesterday. Reinstalled everything and still no difference, and even triied chaning the java compilers http://pastebin.com/K479W2E2 Jun 28 23:09:04 cool, never knew about getMemoryClass Jun 28 23:09:21 yeah neither Jun 28 23:09:33 pick a size, any size will do Jun 28 23:10:47 Depth sorting, OpenGLES and Android Jun 28 23:10:51 well that cache grew pretty quickly :p Jun 28 23:10:51 LruCache FTW too Jun 28 23:11:00 anyone knows how can I get that working? Jun 28 23:11:01 wabz: it's a picture gallery. they're like that. Jun 28 23:11:07 yeah its very useful class Jun 28 23:11:30 and procrank is god Jun 28 23:11:32 I did a LRU cache for exactly this just the other day Jun 28 23:11:50 I think there are smarter alternatives Jun 28 23:12:04 it's an excellent cheap first cut. Jun 28 23:12:07 yeah Jun 28 23:12:28 spatial predictive stuff is probably better for this sort of scrolling UI fronted data, etc. Jun 28 23:14:28 bummer, onTrimMemory is ics Jun 28 23:15:23 yeah Jun 28 23:15:33 OTOH, at least it isn't jb :) Jun 28 23:18:19 autoboxing is TEH EVAL Jun 28 23:19:03 ctate: wonder how things will work when they get rid of primitives all together Jun 28 23:19:07 (oracle) Jun 28 23:19:14 primitive types? Jun 28 23:19:21 dont' call them primitives Jun 28 23:19:31 call them Morlocks Jun 28 23:19:31 yeah, primitives are gone in java 9 i think Jun 28 23:20:09 seriously? oh god Jun 28 23:20:10 there are actually 2 good primitive collections projects Jun 28 23:20:31 autoboxing is often a signfiicant hidden performance drain Jun 28 23:23:10 yielfIfContendedSafely :) Jun 28 23:23:25 API 3! Jun 28 23:23:31 \o/ Jun 28 23:23:34 i can use it ! Jun 28 23:23:37 yeah! Jun 28 23:24:02 that is kinda cool Jun 28 23:24:07 yes indeed Jun 28 23:24:44 Hi I just sshed into my phone, is there a way to run adb from inside of it to look at the logcat logs? Jun 28 23:24:52 RenderScript! Jun 28 23:24:52 is that one of romain's cameras :) Jun 28 23:24:53 \o/ Jun 28 23:25:01 you don't need adb for logcat. just type logcat Jun 28 23:25:23 logcat Jun 28 23:25:23 Unable to open log device '/dev/log/main': Permission denied Jun 28 23:25:24 yeah, "adb logcat" just causes the adbd instance on the devic eto run the 'logcat' binary on the device Jun 28 23:25:42 ahh, your sshd isn't running as the shell user Jun 28 23:25:43 JesusFreke: I tried sudo as well Jun 28 23:25:56 just su Jun 28 23:25:59 then try Jun 28 23:26:02 (as root) Jun 28 23:26:08 my new eclipse install fails to load "Could not load SWT library" here is the log: http://pastebin.com/Qk2y43kc (ubuntu) Jun 28 23:26:23 ahh Jun 28 23:26:34 ctate, tried su, sudo su, and permission denied Jun 28 23:26:40 and got * Jun 28 23:26:42 yeah dunno Jun 28 23:26:56 the /dev/log/main point should be readable by shell, at least Jun 28 23:26:56 totic: are you running an android application that runs an ssh server? Jun 28 23:27:08 yeah, how'd you get ssh in the first place? Jun 28 23:27:32 JesusFreke: ctate sshdroid application Jun 28 23:27:35 if so, you can probably add the read logs permission to the application and it should work Jun 28 23:27:46 ah, so yeah, you can't escape that application's own uid Jun 28 23:27:55 and that app doesn't have permission to read the logs Jun 28 23:28:01 actually I am in Jun 28 23:28:03 as root Jun 28 23:28:17 root@android:/data/data/berserker.android.apps.sshdroid/home $ Jun 28 23:28:21 no. Jun 28 23:28:24 that's not root on the device Jun 28 23:28:32 err Jun 28 23:28:35 even though whoami says app_153 Jun 28 23:29:10 whoami is telling the truth here Jun 28 23:29:16 you're running as uid 10153 Jun 28 23:29:55 hahaha. I was like "wait. how does ctate now the exact uid?" Jun 28 23:30:01 (then noticed the app_153 comment) Jun 28 23:30:03 * ctate has powers Jun 28 23:30:41 so there is no way to see the logs? Jun 28 23:30:56 it doesnt have sudo nor su Jun 28 23:30:57 how can I use the DEPTH TEST In OpenGL ES 1 (NDK) Jun 28 23:30:59 not if you didnt' write the ssh app Jun 28 23:31:06 glEnable doesn't seem to do any difference Jun 28 23:31:10 only be adding the read logs permission to the app Jun 28 23:31:13 by* Jun 28 23:31:55 JesusFreke: is there anyways to add the permission to an app if I dont have the manifest file? Jun 28 23:32:43 sounds like nexus 7's are selling like hotcakes Jun 28 23:32:57 * JesusFreke wonders how well hotcakes sell Jun 28 23:33:03 I'm thinking of getting one Jun 28 23:33:16 JesusFreke: "big" is all he said :) Jun 28 23:33:39 http://www.businessinsider.com/google-nexus-7-tablet-pre-order-numbers-2012-6 Jun 28 23:33:46 totic: nope. Jun 28 23:36:46 totic: yes. You can edit package manager's database (a big fugly XML file) on the device if it's rooted Jun 28 23:37:32 just got an SIII today, I guess I will have to figure out how to root it Jun 28 23:37:33 can't guarantee nothing will break Jun 28 23:37:50 totic: flash a kernel with /xbin/su in initrd Jun 28 23:38:46 "true" Samsung Galaxy series phones have basically no locks against modding, to the point that I wonder how the hell do they get certification (FCC etc.) Jun 28 23:38:48 setComponentEnabledSetting() api 1 \o/ Jun 28 23:40:20 p_l|backup: its not a true… its a t-mobile one Jun 28 23:40:28 I wanted the wifi calling feature Jun 28 23:40:38 that was a good talk. jeff did well. Jun 28 23:41:00 totic: afaik S3 doesn't have a separate version? Jun 28 23:43:09 I have no clue, it does come preloaded with some T-mobile code on it Jun 28 23:43:14 totic: US version? Jun 28 23:43:18 special for their network Jun 28 23:43:19 yes Jun 28 23:43:38 ah. So some Quallcom Jun 28 23:43:52 g00s: yeah, jeff's great Jun 28 23:44:04 no idea whether the flashing is the same. It might have US-only bullshit Jun 28 23:47:13 "IntentService is one of my favorite utilities" Jun 28 23:47:14 truth! Jun 28 23:47:23 :) Jun 28 23:47:46 oh funny, i am getting the stream a few seconds behind ctate Jun 28 23:47:55 * ctate has powers. Jun 28 23:47:56 or ctate is prescient Jun 28 23:48:18 I must be psychotic! Jun 28 23:48:29 or possibly i am telepathetic Jun 28 23:51:24 or having the might of google's networking division behind it Jun 28 23:51:41 I'm having issues with DEPTH_TEST and the NDK Jun 28 23:51:47 Anyone knows what might be the culprit? Jun 28 23:54:51 johnnyonflame: is it covered by GLES 1.0 (without extensions?) Jun 28 23:55:27 p_l|backup, yeah, I'm using GLES 1.0 Jun 28 23:56:41 hia Jun 28 23:57:20 then no idea Jun 28 23:57:37 p_l|backup, what were you going for there? Jun 28 23:57:38 im fairly new to developing... is this going to be a steep learning curve? im using the lynda.com guides Jun 28 23:59:10 johnnyonflame: checking for possible device support issues Jun 28 23:59:40 ctate: You're just setting off my hilights deliberately, up there? Jun 28 23:59:46 p_l|backup, I see, pretty sure thats not the case tho Jun 29 00:01:52 aahaha I think I know what the problem is Jun 29 00:02:03 you can only enable the depth testing on Java Jun 29 00:12:35 hey android ppl, do you know if the "Multi-Versioning Android User Interfaces" talk will be streamed live? Jun 29 00:13:25 luyang: i think so: https://developers.google.com/events/io/ Jun 29 00:13:48 luyan:g it shows up on the live schedule. so: yes Jun 29 00:16:11 this next session will be interesting :) Jun 29 00:17:20 Yes it will. And I will be installing Jelly Bean on my Galaxy Nexus during that session :) Jun 29 00:17:21 hey guys, i have an unlocked Galaxy Nexus, Wifi only (could stick in a Bell Canada SIM card), Jun 29 00:17:31 Is it possible to get Jelly Bean on here for dev purposes Jun 29 00:17:38 or do I have to be at Google I/O? Jun 29 00:17:41 or wait til July? Jun 29 00:17:43 HorizonXP: http://www.redmondpie.com/download-and-install-android-4.1-jelly-bean-on-galaxy-nexus-gsm-how-to-tutorial/ Jun 29 00:18:12 pboos: awesome, thank you :D Jun 29 00:18:38 is there something wrong with the live feed ? Jun 29 00:19:00 g00s: wondering too. but maybe they are just running late (happens sometimes) Jun 29 00:19:19 hmm, well my gmail isn't working either Jun 29 00:20:11 jesus, this new chrome 20 is unstable as shit Jun 29 00:20:33 g00s: there it is :) Jun 29 00:22:36 g00s: they are funny. gingerbread moms? :D Jun 29 00:22:41 froyo : i waive my hand Jun 29 00:22:46 hehe Jun 29 00:22:59 g00s: you forgot to turn on your webcam ;-) Jun 29 00:24:12 Just bought a Nexus 7 8GB. Unfortunate I couldn't get the 16GB. :-( Jun 29 00:24:34 Just preordered Jun 29 00:25:09 A great talk now Multi-Versioning Android User Interfaces Jun 29 00:25:19 pboos: aw, boo, I need to root my device. :-( Jun 29 00:26:04 HorizonXP: that is not difficult with a Galaxy Nexus. Thought rooting was clear :D Jun 29 00:26:07 http://www.youtube.com/user/GoogleDevelopers Jun 29 00:26:36 pboos: LOL, I suppose. Jun 29 00:26:52 Do you feel it's worth it? I'm starting from scratch in terms of Android dev Jun 29 00:27:34 Should I start with ICS since it's stable, or go with Jelly Bean since it is going to "stable" in a month or so. Jun 29 00:29:17 HorizonXP: Probably start with 2.2 or 2.3 to be honest, ICS is only on 7% of devices Jun 29 00:29:37 dragorn: need NFC. Jun 29 00:29:57 and this is a one-off prototype app for the MintChip Challenge. Jun 29 00:30:14 Just wondering if showing off the "new hotness" will gain me points in the demos. Jun 29 00:33:00 HorizonXP: of the two, I'd suggest ICS unless you have a compelling reason to be JB-only at this point Jun 29 00:33:32 rooting is still very helpful for development Jun 29 00:35:00 ctate: yeah, that's what I was grasping at with that question; what are the compelling reasons to be JB-only at this point? Jun 29 00:35:05 really simple q here. i have just started out and have added a button, I have just put button b = (Button) findViewByID(R.id.button1). the id for button 1 is set but it doesnt seem to be picking it up in the list Jun 29 00:35:16 wongk-sf: how is rooting helpful? Jun 29 00:35:19 HorizonXP: none i can think of? :) Jun 29 00:35:38 HorizonXP: it gives you full access to internal storage Jun 29 00:35:46 wongk-home: yeah, i'm curious too. my phones run userdebug builds but i'm not honestly sure how much benefit i get out of it. Jun 29 00:35:53 cannot be resolved to a variable Jun 29 00:36:09 hm, i guess. i really ought to write the host-side unpacker for .ab files. :) Jun 29 00:36:17 at which point you won't need root to get access. Jun 29 00:36:55 ctate: yeah me neither. the notifications look like the most visible change. Jun 29 00:36:55 that'd be nice, it's really the big downfall of developing w/o root Jun 29 00:36:57 HorizonXP: like sometimes you want to see if the database is correct, what values are in preferences, ... Jun 29 00:37:29 Psukh: did you copy and paste that code or is there a typo in it? Jun 29 00:37:45 wait, did adam just implicitly support HoloEverywhere Jun 29 00:37:47 pboos: you mean system preferences? Jun 29 00:38:11 wongk-sf: internal storage so you can browse the OS? Jun 29 00:38:17 i didnt copy paste just typed it out quick Jun 29 00:38:20 its right though Jun 29 00:38:28 HorizonXP: your app's files Jun 29 00:38:33 its trying to add ids to the R file Jun 29 00:38:39 as suggested fixes Jun 29 00:38:59 button1 just isnt appearing in the list Jun 29 00:39:06 Psukh: the type for variable "b" is incorrect Jun 29 00:39:06 wongk-sf: oh, you don't normally have access to your app's own sandbox via say, SSH? Jun 29 00:39:15 HorizonXP: no Jun 29 00:39:18 HorizonXP: i mean SharedPreferences Jun 29 00:39:35 whats the solution Jun 29 00:39:42 wongk-sf: ah i see.. that could be useful. Jun 29 00:39:59 wongk-sf: i'm coming from BlackBerry PlayBook development, where we have that by default. Jun 29 00:40:14 i'd have to see the sandbox hierarchy to know what's actually exposed Jun 29 00:40:17 * HorizonXP Googles for it. Jun 29 00:40:21 HorizonXP: i'm sorry, at least that's over ;) Jun 29 00:40:33 wongk-sf: what's over? Jun 29 00:40:43 your blackberry development Jun 29 00:40:48 says who? Jun 29 00:40:52 I didn't say that. Jun 29 00:40:57 g00s: jsharkey's code from the presentation: http://code.google.com/p/iogallery/ Jun 29 00:41:08 ctate: thanks! Jun 29 00:41:10 oh, even worse Jun 29 00:41:34 oh, you're talkin about today's delay announcement? Jun 29 00:41:39 yeah, that's a big fuckup Jun 29 00:41:51 but i'll still be there Jun 29 00:41:59 just adjusting my strategy accordingly. Jun 29 00:42:08 I was always going to develop for Android too. Jun 29 00:42:16 That's just going to happen sooner than later. Jun 29 00:43:09 * ctate hears about the RIM news. Jun 29 00:43:12 .... *OW*. Jun 29 00:43:33 wongk i cant fix this... Jun 29 00:44:08 button1 cannot be resolved or is not a fied Jun 29 00:44:08 Psukh: what is the exact error? Jun 29 00:44:20 line breakpoint Jun 29 00:44:26 main - oncreatebundle Jun 29 00:44:29 can you pastebin your layout Jun 29 00:44:32 Psukh: can you paste your layout? Jun 29 00:44:44 its literally just a button Jun 29 00:44:46 a single button Jun 29 00:44:46 lol Jun 29 00:44:49 (in a pastebin, please) Jun 29 00:45:29 paste it anyway Jun 29 00:45:46 Jun 29 00:45:46 android:id="@+id/button1" Jun 29 00:45:46 android:layout_width="fill_parent" Jun 29 00:45:46 android:layout_height="fill_parent" Jun 29 00:45:47 android:orientation="vertical" > Jun 29 00:45:47