**** BEGIN LOGGING AT Fri Nov 15 02:59:59 2013 Nov 15 03:08:25 bankai_, I've done that before, and one one occasion used the fingerprint of the release key to choose URLs etc. Nov 15 03:25:56 regreddit, that's false Nov 15 03:26:13 regreddit, you create a dev branch, and you commit your changes there, then you rebase it everytime there's an update from upstream Nov 15 04:07:56 is it bad practice to have a service launch an IntentService? I have an app where a service is started from the main activity. This service uses the fused location api so it then creates an intent service. This seems like bad practice but it also seems like the easiest/only way to start the service on device launch Nov 15 04:08:53 pfn, but if i rebase, I'm going to get the file that should stay different on the branch, no? Nov 15 04:09:02 no Nov 15 04:09:16 rebasing means you update the underlying code, then re-apply your commits on top of it Nov 15 04:09:43 basically, you branch, then you have a delta off of an original trunk, when you rebase your branch, you take that delta and re-apply it at a later point in time on that trunk Nov 15 04:10:56 why would it seem like a bad practice? Nov 15 04:11:07 hmm, that sound like a weird workflow to manage from the IDE, which is my goal - i'm pretty sure buildFlavors/variants is meant exactly for what I'm trying to do, but the docs for gradle buildFlavors is *sparse* Nov 15 04:12:30 * pfn shrugs Nov 15 04:12:31 works fine Nov 15 04:12:38 but if you want to use gradle, you can Nov 15 04:12:49 just create a single dev variant, and each dev has to keep their variant config local Nov 15 04:12:56 and gitignore it, or whatever you use Nov 15 04:20:16 that's one beef with AS: Seems the stuff that SHOUld be checked in from .idea and stuff that shoudl NOT be checked in from there are intermingled Nov 15 04:20:44 so I want my service to know when the phone is unlocked. I registered for ACTION_USER_PRESENT and it works. but is there a way for me to check whether the phone is locked when the service starts? Nov 15 04:20:52 making large team developmen tricky - unless theres a cut and dried way to isolate the IDE setting from the project settings, fom the source Nov 15 04:23:31 durka42: what starts the service ? Nov 15 04:23:58 bankai_: well, right now, it's just a button in my clunky test activity. but it will be started on boot when I figure out how to do that Nov 15 04:25:51 you could try inKeyguardRestrictedmode Nov 15 04:26:15 or inkeyguardrestrictedinputmode or osmething like that Nov 15 04:27:41 oh, maybe isKeyguardLocked Nov 15 04:27:58 then maybe I don't even need the intent filter Nov 15 04:28:02 I can just check that boolean Nov 15 04:28:12 what's the difference between isKeyguardLocked and isKeyguardSecure? Nov 15 04:29:25 http://developer.android.com/reference/android/app/KeyguardManager.html#isKeyguardLocked() explains it Nov 15 04:30:18 that is the opposite of an explanation :) Nov 15 04:30:42 ohh I see Nov 15 04:30:50 isKeyguardSecure is a question about the user's settings Nov 15 04:30:56 isKeyguardLocked is a question about the state of the phone Nov 15 04:30:57 yes? Nov 15 04:45:14 what do the docs say Nov 15 04:45:22 always accept that information over what someone says Nov 15 05:09:15 adb experts, quick question. im selling my phone with a broken screen and i'm trying to wipe as much data off of it as i can before shipping it. will adb --wipe-data still keep the ro Nov 15 05:09:27 rom*? i want to make sure i dont end up wiping the entire rom off of the device Nov 15 05:21:04 it just wipes /data Nov 15 05:21:07 and maybe /cache Nov 15 05:23:14 Chainfire, https://dl.google.com/dl/android/aosp/nakasi-krt16o-factory-db4a1a8a.tgz ? Nov 15 05:23:19 works for me Nov 15 05:33:58 anyone here have experience with toggling secure settings, like network mode? Nov 15 05:35:38 pfn: please excuse my noobiness, only wiping /data will not affect the rom? it will start up asking for a google account etc like the first time it boots? Nov 15 05:37:49 right... internal storage is probably gone though Nov 15 05:38:20 it will have to recreate the file structure upon boot. Nov 15 05:38:42 great. i just want to make sure they guy doesnt have to flash a new rom when he gets it Nov 15 05:55:10 Hey does anyone know how to load in custom css to webview? Nov 15 06:20:07 well, screen is busted Nov 15 06:20:09 how's he gonna use it Nov 15 06:28:08 is there lots of changes between AS and intelliJ 13? Nov 15 06:28:42 thinking of ditching AS and just using intelliJ 13 so that i can have other projects aswell not just android gradle ones Nov 15 06:33:40 what are the big differences anyway? Nov 15 06:33:51 i installed both of them but didnt notice anything too substantial Nov 15 06:34:07 the gradle integration? is that only in AS? Nov 15 06:34:21 like in AS you cant open the project structure at all Nov 15 06:34:28 everything is driven from the gradle file Nov 15 06:35:30 who broke their screen ? :( Nov 15 06:39:16 huh, there is an AS 0.3.6 update Nov 15 06:39:34 do they release stuff so late O.o Nov 15 06:52:23 is qicr the best android irc app? Nov 15 06:55:13 it looks like it is Nov 15 06:59:49 shmooz you may want to ask pfn :P Nov 15 07:01:08 I certainly think it is Nov 15 07:02:31 I already tried it on my phone , now I'm typing this from qicr from my n7 Nov 15 07:03:20 why is it still beta? Nov 15 07:04:04 it should be gamma Nov 15 07:04:45 speaking of, looks like the expanded notifications don't work in kitkat :( Nov 15 07:05:06 I wonder what's going on there Nov 15 07:05:33 pfn do anything clever, or just basic usage of the notification api ? Nov 15 07:05:51 hmm, and now it's showing again Nov 15 07:06:41 shmooz, it's beta because it's lacking in refinement and polish Nov 15 07:06:59 g00s_, just regular notifications Nov 15 07:07:02 I like how Apple tries to make it seem like they made their own A7 processors in the new ipad air clip when it's Samsung's Nov 15 07:07:19 blognewb: they do the design, Samsung does the fabrication Nov 15 07:07:24 I like the slide from right edge transparent colored userlist Nov 15 07:07:27 what p_lsaid Nov 15 07:07:36 blognewb: however, A4 was essentially older version of the chip in SGS Nov 15 07:07:46 i wouldn't be surprised if Intel starts doing the fab Nov 15 07:07:46 p_l, function > form Nov 15 07:08:00 shmooz, you can do channel nav from the left if you enable it in settings Nov 15 07:08:22 g00s_: not sure if Intel is selling fabbing capacity at all Nov 15 07:08:39 pfn ok Nov 15 07:09:39 i think atm its 14nm for Altera Nov 15 07:09:46 https://github.com/pfn/qicr <- source, for those interested Nov 15 07:10:10 nice options Nov 15 07:12:41 channel selector mode .. drawer. nice Nov 15 07:25:05 i'm trying to build from source an app from aosp on os x.. i'm getting the case insensitive filesystem error Nov 15 07:26:24 i used the 'hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg' command Nov 15 07:26:40 is there some way to catch a webview url redirect? Nov 15 07:26:41 to create my filesystem. but its still giving me the error Nov 15 07:29:24 hi guys, how do you get a image uri after you pass an intent to take a photo? Nov 15 07:47:23 greets, is it possible to intercept http-post for an app targeting 2.1 upwards Nov 15 07:47:41 (in a webview, if it another site which you don't have control over) Nov 15 07:49:14 laphlaw, aosp only builds on Linux iirc Nov 15 07:49:47 pfn: nah, on the official documentation, it says mac is supported. you just need to have the right filesystem Nov 15 08:27:39 canadiancow yeah it does now ... it didn't when I posted it :) Nov 15 08:30:42 how can I automatically start my app when device is unlocked and after start device Nov 15 08:58:05 <^cheeky> i hate my app so much !!!! Nov 15 08:58:51 ^cheeky: why?! Nov 15 09:00:03 <^cheeky> so much to do and i suck @ it .. i mean leave alone the part that i am new to android dev and what not, but this stupid app has so much to be done .. i mean a lot .. of work. Nov 15 09:00:09 <^cheeky> and i will never finish i time !!! Nov 15 09:00:13 <^cheeky> well i mean for me that is Nov 15 09:00:24 <^cheeky> for you guys probably super easy peasy Nov 15 09:00:27 ^cheeky: and? Nov 15 09:00:37 how can I keep my broadcast receiver working even when app is destroyed? Nov 15 09:01:51 <^cheeky> impedancee: i am just ugggh annoyed man ... like i will never get it out .. ugh i should have just stuck to simple shit .. but daaam you learn alot .. and thats not the problem i just have a time constraint which sucks .. and no its not for some client or i am selling this app.. its... just for me Nov 15 09:01:53 FrancescoV: as far as I know, broadcast receivers 'listen' even if app is destroyed. Nov 15 09:02:33 ^cheeky: then you have all the time in the world to learn everything you need to make your app work. Nov 15 09:02:52 <^cheeky> well .. kinda i dunno Nov 15 09:03:31 <^cheeky> i a supposed to be moved by now to a different location by now .. but i am not giving up this app ..and honestly its not even cool lol Nov 15 09:03:34 <^cheeky> what ever Nov 15 09:03:45 <^cheeky> i learnt stuff . i think lol Nov 15 09:05:51 FrancescoV, that depends on 'destroyed' Nov 15 09:05:51 There is no failure except in no longer trying Nov 15 09:05:53 <^cheeky> so much to learn !!!! Nov 15 09:06:09 regular shutdown -> broadcastreceivers still work Nov 15 09:06:17 (except dynamically registered ones) Nov 15 09:06:22 crash -> depends Nov 15 09:06:32 force quit -> not after android 4.0 Nov 15 09:22:10 <^cheeky> impedancee: hey .. umm thank you :) Nov 15 09:24:45 ^cheeky: no worries Nov 15 09:25:15 brrt: thanks for clearing that up for me too. Nov 15 09:25:32 np :-) Nov 15 09:26:13 also, obvious lesson here Nov 15 09:26:19 don't ever crash your app Nov 15 09:26:27 don't ever have the user force quit it Nov 15 09:38:12 I am trying to implement a touch listener to simulate the onClickListener provided by the api. Does anyone know what constitutes a click event on the inside of the android api? Nov 15 09:39:58 Heya folks, quick question regarding animations in gingerbread Nov 15 09:40:24 I got a TranslateAnimation, an animation listener on it and I call it via myView.startAnimation(myAnim); Nov 15 09:40:35 However, initially, nothing happens on gingerbread Nov 15 09:41:02 it's only after I interact with some other element, some other button, that all the animations I queued by pressing the animate button repeatedly, actually get played. Nov 15 09:41:33 Obviously, I don't want that to happen Nov 15 10:00:46 Is there a way to prevent Fragments from being recreated when used inside a ViewPager. setRetainInstance seems to have no effect. Nov 15 10:09:18 "the app did not install" is a message I can get when I try to install an apk file, is that a well known behavior in here? Nov 15 10:09:20 rhcake, no, not really Nov 15 10:09:37 brrt ;( Nov 15 10:09:58 rhcake: you can use setOffsreenPageLimit i think Nov 15 10:10:53 https://developer.android.com/reference/android/support/v4/view/ViewPager.html#setOffscreenPageLimit%28int%29 Nov 15 10:11:45 my fragments call the activity for data and after a rotation the fragments are outdated but they still use the callbacks Nov 15 10:13:08 rhcake, can;t you use onPause() or something like that Nov 15 10:27:28 I have a listview which contains 3 items, is it possible to center the listview vertically? Nov 15 10:30:01 ….. FrancescoV, I'm not sure, I think ListView always try to fill its' parent Nov 15 10:30:25 you could try putting it in a LinearLayout or somesuch hack Nov 15 10:40:45 http://stackoverflow.com/questions/12341936/how-to-center-a-listview-in-a-linerlayout-in-android Nov 15 10:41:01 or if you know you have 3 items (they are static) you could just lay them out yourself Nov 15 10:42:01 solution is simple: android:gravity="center_vertical" on parent of listview --> listview is center vertical. I need a listview because in the future the list will contain more items ;) Nov 15 10:42:27 oh, so listviews are only as high as their items? Nov 15 10:42:52 yes, height is default wrap_content Nov 15 10:42:58 oh ok cool Nov 15 10:43:02 then yeah, that should work Nov 15 10:51:57 <^cheeky> ummm ok doki .. Nov 15 10:52:15 <^cheeky> the icon pack does not have xxhdpi Nov 15 10:54:03 <^cheeky> hmmm strange i keep downloading the new .. Nov 15 10:54:30 <^cheeky> DUN DUN i have been compromised .. Huston we have a problem Nov 15 10:55:01 ur one ^cheeky cunt m8, I'm gonna wreck u, i swear by my mom Nov 15 10:55:02 <^cheeky> !^cheeky Roger that , please Nov 15 10:55:12 j/k ;p Nov 15 10:55:17 <^cheeky> sheeesh Nov 15 10:55:18 <^cheeky> daaam Nov 15 10:55:19 <^cheeky> ddue Nov 15 10:55:20 But I have something for you! Nov 15 10:55:21 <^cheeky> dude Nov 15 10:55:23 <^cheeky> no no Nov 15 10:55:30 <^cheeky> not now .. Nov 15 10:55:33 <^cheeky> i don't want to di Nov 15 10:55:34 <^cheeky> die Nov 15 10:56:15 <^cheeky> kakazza: err wait this is trap eh .. so what is it Nov 15 10:56:27 * ^cheeky starts jumping on his chair Nov 15 10:57:00 There! http://www.roard.com/Presentations/Devoxx2013-EfficientImageProcessing.pdf Nov 15 10:57:39 I know you only display images currently, but thought it might interest you. Nov 15 10:59:16 <^cheeky> omg your mean Nov 15 10:59:44 <^cheeky> you want me to do JNI implementations with render script knowing that i am handicapped with C++ Nov 15 10:59:51 <^cheeky> wow Nov 15 10:59:55 <^cheeky> this is .. Nov 15 11:00:00 <^cheeky> freaking awesome Nov 15 11:00:00 Yes, that was exactly my intention. You got me. Nov 15 11:00:22 <^cheeky> i am still going through Nov 15 11:00:26 interesting thing is Nov 15 11:00:46 my tests have shown that C code is usually faster than RenderScript if not done continiusly Nov 15 11:00:54 especially if you do any fakery Nov 15 11:01:09 not to mention RenderScript is bitch to package right now Nov 15 11:02:01 <^cheeky> whao Nov 15 11:02:06 <^cheeky> oh .. wait Nov 15 11:02:32 <^cheeky> now i can use in bitmap without being tied down since i get different images Nov 15 11:02:40 <^cheeky> huh i should use it Nov 15 11:02:46 * ^cheeky weeps Nov 15 11:02:50 <^cheeky> so much to do .. Nov 15 11:03:43 <^cheeky> right now i wanted to use part of a bloody service, yeah .. so was all happy got the nag drawer and all working and the parsing taken care of and fragment creation and what not .. when parsing .. i bloody need to authenticate myself and now .. learning to do authentication so i can do what i initially started Nov 15 11:03:50 <^cheeky> shoot me please kakazza Nov 15 11:03:59 how can you create a txt asset? if a create a xml file in assets folder and refactore it to "abc.txt", it's impossible Nov 15 11:04:01 Denied! Nov 15 11:04:24 FrancescoV, asset can be anything Nov 15 11:04:30 you open it as a stream anyway Nov 15 11:04:31 <^cheeky> see thats worse than being shot .. !!!! getting rejected !!! Nov 15 11:04:48 mavrik, idd, it must be a File and not xml file Nov 15 11:05:17 <^cheeky> what ever Oath rubbish with this FlikR-j thingy hope it works .. coz i haven't upgraded my android studio version ever since gradle slapped me so hard that one day Nov 15 11:06:08 FrancescoV, your distinction eludes me. Nov 15 11:06:45 Mavrik: ? Nov 15 11:07:21 <^cheeky> errm side tangent .. was it here that some one mentioned about attack on titan or sword art online Nov 15 11:24:13 is the google icon with the g in the blue square somewhere in the android.R by chance? Nov 15 11:24:52 lasserix: no Nov 15 11:24:59 hehe thanks Nov 15 11:28:50 JakeWharton: Will all Devoxx talks be available online or just a selected few? Nov 15 11:29:10 All Nov 15 11:29:28 Btw, tell the guys behind Flow and Mortar my regards. Looks very interesting. Not sure if I'll switch right away, but look promising. Nov 15 11:30:01 They're alright. Nov 15 11:30:12 I wrote Flow and then abandoned it Nov 15 11:30:26 I'd love to see an example on how to handle different layouts, e.g. portrait vs landscape (more displayed in landscape) or tablet vs phone. Nov 15 11:30:44 Is Flow what you currently use at Square or is that something different alltogether. Nov 15 11:31:08 It doesn't do that well, hence why I abandoned it! Nov 15 11:31:15 heh Nov 15 11:31:36 So a different handcrafter library now or back to fragments? ;) Nov 15 11:31:58 Fragments are unusable. Nov 15 11:32:10 I wrote something else that's 100x better Nov 15 11:32:23 That goes along with Mortar? Nov 15 11:32:28 100x better than Flow Nov 15 11:32:41 :o Nov 15 11:32:45 I don't use Mortar either but it seems to work Nov 15 11:33:13 So is there a conflict of interests between the Android teams? As in, does only yours use your solution (if at all)? Nov 15 11:34:20 It's not a conflict of interest really. Register is a big lumbering beast of an application that requires different things than smaller, nimbler apps like Wallet and Cash. Nov 15 11:34:35 And you're working on Register? Nov 15 11:34:45 Nope Nov 15 11:35:01 But on...? Nov 15 11:35:06 hi Nov 15 11:35:22 A new app. But I used to be on Wallet and helping with Cash Nov 15 11:35:38 I see. Nov 15 11:35:44 can someone help me implement : http://vitiy.info/stackblur-algorithm-multi-threaded-blur-for-cpp/ Nov 15 11:35:46 on ndk? Nov 15 11:35:53 what are the steps to use that functions? Nov 15 11:35:55 Thanks for sharing Flow and Mortar anyway, always happy to read some new code. Nov 15 11:37:20 I'm only beginning to use RxJava, but I wondered, do you use it for anything else than I/O (disk or network)? I saw an ongoing Issue on Github where people also want to use it as a replacement for OnClickListeners etc. (IIRC) Nov 15 11:37:59 That doesn't seem particular useful to me, because, well, there's OnClickListeners and there's otto, if needed. Nov 15 11:38:00 We just use it for network stuff. Using it for other things sounds... bad. Nov 15 11:38:29 I thought so too, just wondered what your opinion on that was. Just waiting until Square releases RxSquare ;p Nov 15 11:40:32 Last one (also, isn't it like 4am where you live?), any chance of seeing whatever you use instead of Flow as FOSS? Nov 15 11:42:36 I'm in Belgium for Devoxx. No clue what time it is at home Nov 15 11:42:50 Oh, right, Devoxx. Completely forgot. Nov 15 11:42:56 How come you didn't come to droid con? :( Nov 15 11:42:59 And my Flow successor will of course be open source eventually Nov 15 11:43:16 JakeWharton: <3 Nov 15 11:43:22 CallumTaylor: Because it was 4 weeks ago Nov 15 11:43:37 jeeze time goes by fast Nov 15 11:44:10 Not making the flight over twice that close together. Nov 15 11:44:20 fair enough Nov 15 11:45:03 I had hoped they would be closer so I could have done both. Maybe next year. Nov 15 11:45:35 was the first time I had gone to droid con, apart from being in severe pain with my leg, it was pretty good, some good talks Nov 15 11:45:44 i may do a bar camp next year Nov 15 11:51:11 can someone help me integrate stackblur.cpp in ndk ? Nov 15 11:51:41 what changes do I have to do in order to be able to pass the bitmap from java? Nov 15 11:51:51 how to return the new bitmap? Nov 15 12:13:02 I am using astro file manager to move a file that I have downloaded to my sd card so I can install it even when having it connected in debug mode, now where can I put it? Nov 15 12:13:06 Is there a tmp directory? Nov 15 12:13:14 Every directory seems to be empty Nov 15 12:13:32 Also, it seems that I have no access to the sdcard when the phone is connected Nov 15 12:13:37 (via cable) Nov 15 12:34:25 hello how can i create apk from android studio for poduction ? Nov 15 12:34:38 You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play Nov 15 12:36:24 I haven't uploaded yet but I know there is a 'generate Signed APK ' under Build menu Nov 15 12:36:31 Build - Generate Signed APK Nov 15 12:36:41 about turning off debugable I dont know Nov 15 12:36:54 maybe manifest Nov 15 12:39:39 yes Build - Generate Signed APK produces this Nov 15 12:40:40 remove debuggable attribute from your manifest Nov 15 12:40:44 it shouldn't be there in the first place Nov 15 12:43:04 hello , where can i find Google Search 3.1.8 source code ?? i look at git rep but there is just 2.2 (android 2.2 ) version are there , https://android.googlesource.com/platform/packages/apps/GoogleSearch/ Nov 15 12:43:42 weox: I think they closed-sourced it Nov 15 12:44:14 ok thanks ill try Nov 15 12:45:13 google has been cloning their previously open source products as closed source and abandoning the old ones Nov 15 12:47:25 Ge0rG: thanks ,even Stock default launcher ?? what about hangout ?? they all are closed source ?? Nov 15 12:48:18 Zharf: thanks , what about hangout and others ?? Nov 15 12:50:39 weox: launcher should be open; hangouts is closed Nov 15 12:51:56 Ge0rG: seems you are busy , and i ditrubing you , seems google is going to use their own android version , not AOSP , is this right ?? Nov 15 12:52:58 weox, http://arstechnica.com/gadgets/2013/10/googles-iron-grip-on-android-controlling-open-source-by-any-means-necessary/ Nov 15 12:55:46 frankly I'm drifting away from android because of all these things google has been doing recently Nov 15 12:56:14 Zharf: drifting where to? Nov 15 12:56:25 nowhere really Nov 15 12:56:41 I'll just not use them anymore Nov 15 12:56:52 there isn't replacements but it's crap that I don't really want to use anymore Nov 15 12:57:20 is there already a demo app for the new 4.4 NFC HCE api? Nov 15 12:57:39 Zharf: yay. lets go back into the times of dumbphones. Nov 15 12:57:59 what would i edit to make /mnt/sdcard and /mnt/sdcard2 have the same permissions? Nov 15 12:58:05 Zharf: though with their new "inform google about any incoming/outgoing call" feature they crossed the line for me as well Nov 15 12:58:15 Ge0rG, unless they make new phones with hardware keyboards, that's what I will do Nov 15 12:58:45 Zharf: i agree with you , i thinking about firefox os Nov 15 13:00:03 Zharf: my vision is no fun any more with CM10 Nov 15 13:00:09 HTC Vision, that is Nov 15 13:00:14 i cannout find launcher repo , this one seems dosnt update for 4years https://android.googlesource.com/platform/packages/apps/Launcher.git Nov 15 13:00:22 the only thing I use my android for is listening to music and irc on the bus Nov 15 13:02:19 meh. the gnexus kitkat build sucks. I will wait some more weeks Nov 15 13:04:31 hi Nov 15 13:05:40 greets, has anyone done google app indexing. this stuff: ? I'm getting the url not the href I setup Nov 15 13:06:14 I do a for with i=0 ... Nov 15 13:06:16 tvTeam1.setText(sss.next()); Nov 15 13:06:16 but I need something like this: Nov 15 13:06:16 tvTeam+i.setText(sss.next()); Nov 15 13:06:24 is it possible? how? Nov 15 13:06:36 "No content provider found for permission revoke" when I try to manually install an apk file, why? Nov 15 13:06:43 I dont even ask for such a permission Nov 15 13:07:01 maybe typo in permission Nov 15 13:07:21 Would be great if I got a message like "the permission fooxbarz" is not known Nov 15 13:07:25 dot8: do you know what arrays are? Nov 15 13:07:51 anli, SO says some guys forgot to define main activity. is that setup correctly? Nov 15 13:08:10 yeah, I can run this via ecllipse Nov 15 13:08:47 anli can you try uninstall first and then intalling manually? Nov 15 13:08:48 Thorbear: i hope so, I use a simple string splitter to get my array split Nov 15 13:08:57 Of course, I have uninstalled first Nov 15 13:09:08 Or well, I did Nov 15 13:09:52 dot8: In 99.99% of the cases where you want tvTeam+1.setText(), you actually should be using an array, or arraylist Nov 15 13:12:39 Thorbear: how can fix it? Nov 15 13:12:48 hi Nov 15 13:12:58 I'm unable to remake nexus 5 images Nov 15 13:13:17 I'm trying with Nov 15 13:13:17 mkbootimg --base 0x26fff00 --cmdline 'console=ttyHSL0,115200,n8 androidboot.hardware=hammerhead user_debug=31 maxcpus=2 msm_watchdog_v2.enable=1' --kernel zImage --ramdisk ramdisk-root.gz -o ../boot-root.img Nov 15 13:13:33 or fastboot -b 0x26fff00 -c 'console=ttyHSL0,115200,n8 androidboot.hardware=hammerhead user_debug=31 maxcpus=2 msm_watchdog_v2.enable=1' boot zImage ramdisk.gz Nov 15 13:13:41 what's wrong with it? Nov 15 13:14:20 matteo, wrong channel Nov 15 13:14:31 lemonxah: what's the correct one? Nov 15 13:14:40 Hi, hope again someone can help me.Its about compiling souce code with android ndk standalone toolchain Nov 15 13:14:42 But it dont work. Nov 15 13:14:56 try #android-root Nov 15 13:14:58 Headers are missing Nov 15 13:15:04 fatal error: limits.h: No such file or directory Nov 15 13:15:06 Any idea? Nov 15 13:15:21 dot8: the specifics depend on your existing code, but you can just store all the tvTeam objects in an ArrayList, and use either get(i) or for(TvTeam tvTeam : teams) to loop though them Nov 15 13:16:41 still no1 around who's done google search -> app indexing? Nov 15 13:17:08 Thorbear: here is my code http://pastebin.com/w6xfMFAW Nov 15 13:17:21 getting the actual url, but not the uri setup in the dot8: my answer remains mostly the same, although I'm starting to think you should be using one of the existing ListView-implementations rather than filling the screen with a random number of textviews, if you're making a list anyway. Nov 15 13:22:45 what would i edit to make /mnt/sdcard and /mnt/sdcard2 have the same permissions? Nov 15 13:24:51 ebcdic, check http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Nov 15 13:25:04 especially: External storage can become unavailable if the user mounts the external storage on a computer or removes the media, and there's no security enforced upon files you save to the external storage. All applications can read and write files placed on the external storage and the user can remove them. Nov 15 13:25:20 oh wait Nov 15 13:25:30 where is the apk that is responsable for tethering ? Nov 15 13:25:33 pasted the worng paragraph Nov 15 13:25:43 "It's possible that a device using a partition of the internal storage for the external storage may also offer an SD card slot. In this case, the SD card is not part of the external storage and your app cannot access it (the extra storage is intended only for user-provided media that the system scans)." Nov 15 13:27:10 Thorbear: ok, thx. I will try it Nov 15 13:29:02 where is android:debuggable Nov 15 13:33:05 Baluse: androidmanifest Nov 15 13:38:37 how to runOnUIThread without a reference to an activity? Nov 15 13:38:54 (i have a Context though) Nov 15 13:52:06 I've two text fields, how i can get values from those two fields and with click on button to do some count with them? Nov 15 13:56:39 jovanj that is pretty basic stuff and a simple google search will return loads of tutorials you will be able to follow Nov 15 14:10:45 lemonxah thanks i am new in this :) Nov 15 14:13:08 Why does »ndk-stack -sym obj/local/armeabi-v7a« crash when feeding it a backtrace, if using NDK_TOOLCHAIN_VERSION=4.8 instead of 4.7? Nov 15 14:13:11 ndk-stack: elff/elf_file.h:300: char const* ElfFile::get_debug_str(Elf_Xword) const: Assertion `debug_str_.is_mapped() && index < debug_str_.size()' failed. Nov 15 14:21:38 Guys I am going through youtube upload example and it seems this part of code to be really cumberstone http://pastie.org/8482653. Nov 15 14:22:51 hi there, i'm using another build system and would like to call ant to build my apks and make sure it picks up the jars that maven downloaded to my ~/.m2 dir -- how can i do this in the buildfile.xml? alternatively; can i execute all steps for the "debug" and "release" tasks *except* the compile bit; because my existing build system is already doing that Nov 15 14:23:26 right now the first suggestion is a hack but satisfactory because compile takes very little time (so compiling twice doesn't immediately bother me) Nov 15 14:24:39 arghhh I'm going mad here Nov 15 14:25:01 has anybody managed to get google play services working in IDEA? Nov 15 14:25:01 or shall i just filter the existing sdk buildfile without the compile step? Nov 15 14:35:33 hi. Nov 15 14:36:31 I am running a camera preview in my app. It starts of fine with the preview and all. Once a picture is taken and I try startPreview() again, it hangs and closes. Nov 15 14:36:49 Basically, it's getting hung at startPreview() Nov 15 14:37:25 The weird thing is it gets hung on my lg p500 (android 2.3) but not on my lg p765( android 4.1) Nov 15 14:37:48 It works like a breeze on my lg p765. Nov 15 14:39:07 Any help? Nov 15 14:44:35 pkp, camera drivers are buggy, fully reset camera after capture Nov 15 14:44:43 or... read logcat to see what's going on. Nov 15 14:45:30 Mavrik, logcat shows startPreview() faiiled.. Nov 15 14:46:04 Mavrik, I wanted to start the camera right after a pic is taken.. thats not possible, then? Nov 15 14:46:08 and also driver output about why it failed. Nov 15 14:46:15 pkp, it is possible Nov 15 14:46:39 it doesn't mean all the drivers will do that without crashing tho, especially on 2.x devices. Nov 15 14:47:47 anyone done google's app indexing Nov 15 14:47:49 ? Nov 15 14:51:39 sweet jesus the instructions for getting google drive to work Nov 15 14:56:23 D/AbsListView(14074): unregisterIRListener() is called, i can't find what unregisterIRListener is related too, but on my tablet i get alot of those on some portions of my app. Sure i'm doing something wrong but dunno where to start Nov 15 14:58:11 Hi, does anyone have experience with the ActivityRecognitionClient? I'm having issues. If you call the intent's putExtra method it returns then ActivityRecognitionResult.hasResult(intent) returns false Nov 15 15:06:57 Hello! I want to measure the length of the path traveled by car using GPS. Maybe someone can suggest libraries, measurement technology or best practices? Nov 15 15:08:44 Yauhen90: I'm new and don't know about any libraries but you could use the FUSED location provider at an interval of your choice. Then measure the haversine distance between points Nov 15 15:09:28 I am not new, but i ask for best practice :) Nov 15 15:10:03 I know about new location api introduced in google play services v2 jar Nov 15 15:11:23 ah, I don't know, sorry. My guess is that would give good results but you'd have to implement it all yourself. I'm not sure about any libraries Nov 15 15:13:30 Anyone knows how I can solve this when I try to obfuscate ActionBarSherlock library? [proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-v4.jar:META-INF/MANIFEST.MF]) Nov 15 15:14:15 i think about problem of measuring speed of movement and changing update interval depending on speed, about stability, power drain and other cases Nov 15 15:15:08 Here's my proguard inside ActionBarSherlock http://pastebin.com/mTWRWtL7 Nov 15 15:15:42 for some reason the android-support-v4.jar is processed twice Nov 15 15:15:44 or so I think Nov 15 15:15:56 I've googled around a bit with no success on the solutions there Nov 15 15:16:01 Yauhen90: Yeah, that's true. Let me know if you find something. I'm working with a similar problem Nov 15 15:16:19 Yauhen90: Do you have any experience with the activity recognition api? Nov 15 15:16:54 no, but as i know new google play service lib provides api Nov 15 15:18:14 Yea, it seems easy to use and I've gotten it working, but when I add anything to the intent the ActivityRecognitionResult.hasResult(intent) returns false. I could just load the data from a shared preference since that's all I'm passing to it but idk if that's bad practice. Nov 15 15:18:16 cff: do you have one android-support-v4.jar in libs/ and another one in ABS/libs? Nov 15 15:18:43 Ge0rG: no Nov 15 15:19:10 Ge0rG: the libs of the action bar library is the only directory that contains android-support-v4.jar in my entire project Nov 15 15:20:58 I'm using ant release to build the project Nov 15 15:20:58 which first build the actionbar library then my project Nov 15 15:20:58 s/build/builds Nov 15 15:23:18 cff: usually the top level gradle includes a link to the support lib Nov 15 15:23:29 Ge0rG: here's the list of input jar's ProGuard reads http://pastebin.com/CQBkZUnJ Nov 15 15:23:56 I don't use gradle Nov 15 15:23:59 I use Ant Nov 15 15:24:13 cff: what's in library/bin/proguard/original.jar? Nov 15 15:24:43 cff: ah yes Nov 15 15:24:46 cff: no clue ;P Nov 15 15:31:00 wait Nov 15 15:32:51 Ge0rG: dragorn http://imgur.com/zfCyC74 Nov 15 15:33:47 What should I put in my proguard-project-sherlock.cfg ? Nov 15 16:07:04 Alrighty, so my Google Maps V2 API key is correct, and my certificate fingerprint matches up, and I've copied the 500 permissions and other manifest changes needed, but I still get authorization failure trying to connect to Google services. Anyone have any hints about what else I can try? Nov 15 16:14:57 Hello ! Nov 15 16:15:28 WTF with eclipse. I want to add an activity to my project. i use "add" on Manifest>Application, i add new activity. But when i want to set the name (X for example) he tells me class X does not exist (OFC i am here to create this) Nov 15 16:16:03 halp plz Nov 15 16:17:55 create the activity first Nov 15 16:17:59 use the activity create wizard Nov 15 16:18:52 thats where i am Nov 15 16:19:05 manifest>application add is not the wizard Nov 15 16:19:13 that's just adding an tag into the xml Nov 15 16:19:38 oh Nov 15 16:22:25 This is wierd, everytime I call getWriteableDatabase() I get an error message: http://pastebin.com/gsyahpnL Nov 15 16:23:41 Ankhwatcher: pastebin the bits of your source that are relevant Nov 15 16:23:52 one of your arguments is probably null Nov 15 16:25:37 http://pastebin.com/kbMtu81p Nov 15 16:27:17 hmm maybe it's because I didn't set context on my ContentProvider Nov 15 16:28:59 with the maven android skd deployer, y'all having issues with intellij not importing them properly? Nov 15 16:29:11 You don't, android does when it creates it Nov 15 16:29:20 seems having both apklib and jar packaging is throwing it off Nov 15 16:30:19 seeing a java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the element: which would indicate missing apklib Nov 15 16:31:39 looks like it tells you exactly what to do, funkbox Nov 15 16:32:27 <_abc_> Hello. What type of bt profile do most gadgets which rely on app download & bt connection to control little toys like cars, helicopters and the like, rely on? Nov 15 16:32:33 <_abc_> hid? spp? Nov 15 16:32:46 <_abc_> is spp supported out of the box at all by any droid sdk? Nov 15 16:33:39 evanc: ah i'm an idiot for going the complicated route. thanks Nov 15 16:35:11 _abc_ yes and no Nov 15 16:35:27 <_abc_> hid yes spp no? Nov 15 16:35:44 _abc_: one data point, the sparkfun i-racer seems to use SPP Nov 15 16:35:55 <_abc_> interesting Nov 15 16:35:55 https://bitbucket.org/hardbyte/iracer/src/fb5c92a47bccdd016a4634056273637b430b7f10/js/main.js?at=default Nov 15 16:35:57 Hello there! Is there any media player library that supports m3u playlist streaming files and integrates with the lock screen notifications etc? Nov 15 16:36:02 _abc_ fragmentation hurt spp quite a bit. Samsung devices are completely befuttled by the profile. Nov 15 16:36:10 <_abc_> ah Nov 15 16:36:15 _abc_ but it works. Nov 15 16:36:20 <_abc_> okay Nov 15 16:36:43 <_abc_> I did some spp in midp/j2me it should be easy to port (famous last words) Nov 15 16:37:16 _abc_ look up the examples in the API demos in your sdk folder. Nov 15 16:37:28 funkbox: :) Nov 15 16:37:29 <_abc_> I don't have the sdk down yet ;) Nov 15 16:37:38 <_abc_> No room on disks must clean up after last projects first Nov 15 16:37:53 <_abc_> the bitbucket link is very slow here Nov 15 16:38:07 Anyone got experience with the DrawerLayout? I'm trying to achieve smooth drawer close animation WHILE loading and replacing the new fragment. The YouTube app seems to make this work. Nov 15 16:38:49 Hey guys, I wanna to contribute to android for open source, from where should I start Nov 15 16:39:06 My current solution is to load new Fragment in onDrawerClosed(..) - but it feels too slow. Nov 15 16:39:35 actually I am newbie to android, all I know from little background of android is fragment, layout, etc Nov 15 16:40:03 snowpong: add a drawer listener and do it on drawer close Nov 15 16:40:28 funkbox: already doing that, but as I say "it feels to slow" Nov 15 16:40:51 snowpong: you're doing it on draewr closed ? Nov 15 16:40:58 funkbox: yes Nov 15 16:41:18 snowpong: do you store the selected item onclick, then close the drawer then open it on drawer closed? Nov 15 16:41:19 snowpong: Youtube doesn't do it smooth, except when it displays nothing but a progress bar Nov 15 16:41:36 i do it that way and is super smooth Nov 15 16:42:18 funkbox: i store new item, close the drawer, then load fragment in onDrawerClosed(..) and as I say, it's smooth - but I want it faster. I want to load while closing without stutter Nov 15 16:42:48 snowpong: load your fragment then without causing gc. Nov 15 16:43:09 i'm trying to build the aosp Browser app.. i'm getting the following error: "make: *** No rule to make target `out/host/darwin-x86/bin/aapt', needed by `out/target/common/obj/APPS/Browser_intermediates/src/R.stamp'. Stop." Nov 15 16:43:12 any idea? Nov 15 16:44:47 GC isn't the issue, just gotta make sure drawing the ui takes less than 16ms so it doesn't skip frames Nov 15 16:45:19 I wanna to contribute to android for open source, from where should I start, can anyone help please Nov 15 16:45:28 I was thinking maybe I could do parts of the creation in another thread, but Android is very picky about View stuff running in the main/UI thread Nov 15 16:45:41 If it skips frames it will stutter (just like youtube does) Nov 15 16:46:13 SimonVT: I really don't see stutter in youtube when swapping fragments Nov 15 16:46:25 I do, it's very visible Nov 15 16:47:04 Especially the history fragment Nov 15 16:48:37 Anyway, if you want smooth animations you have to draw less(/faster) Nov 15 16:48:40 So start profiling Nov 15 16:48:56 <_abc_> double buffering cannot be controlled directly? Nov 15 16:49:39 SimonVT: it's a very simple fragment, so I don't think there is much I can do. I'm trying to get this stuff smooth before transforming the rest of the app into this new UI concept - so this is just the about screen. Nov 15 16:49:57 smooth & fast that is Nov 15 16:50:13 if I can speed up the close animation, then it'll feel faster Nov 15 16:50:14 getContext() returns null when the ContentProvider is being used by an IntentService Nov 15 16:50:27 kroot: I wanna to contribute to android for open source, from where should I start Nov 15 16:50:32 am I only supposed to be using my ContentProvider from the UI thread or something? Nov 15 16:50:58 kroot: I am newbie to android, all I know from little background of android is fragment, layout, etc Nov 15 16:51:07 Something like "/0/file:///data/data/..." isn't possibly a correct file URI, is it? Nov 15 16:51:16 rocko: http://source.android.com/source/contributing.html Nov 15 16:52:55 Something like "/0/file:///data/data/..." isn't possibly a correct file URI, is it? Asking because the latest version of Google+ logs tons of errors with paths like that to LogCat. Nov 15 16:53:09 <_abc_> should be like file:/// etc Nov 15 16:53:26 <_abc_> don't think there is a valid uri variant with leading /0/ Nov 15 16:53:58 <_abc_> maybe someone made a little js mistake... Nov 15 16:55:17 ^ was that for me? Nov 15 16:55:19 I have a static arraylist of hashmaps that i use to hold irc channel info (channel name and user count). I update this variable from a service when the channel /list info is received from the server. Then i send a broadcast recieved by my activity that updates a ListView via .notifyDatasetChanged() of a custom baseadapter. The problem is that its usually over 3000+ channels and I believe Nov 15 16:55:19 the broadcast are sent at too fast a speed. Anyway, I get a crash and logcat saying to not update my listview adapter's content from a background process. So, to solve that i moved the updating of the variable to the activity, but now it takes like 5 mins for the channels list to display. ui blocking for the duration. Anyone have any ideas of how I can resolve this? Nov 15 16:55:25 (sorry, spotty network) Nov 15 16:55:57 <_abc_> aviraldg: it was for you Nov 15 16:56:12 Ah, thanks. Nov 15 16:56:31 Any chance telling Romain about it could fast-track a bugfix? Nov 15 16:57:09 Ankhwatcher: How are you using the ContentProvider? Nov 15 17:01:46 ok, i got some more debug on my failed build of the aosp Browser.. can anyone help? Nov 15 17:01:48 http://pastebin.com/qG3ZyZQF Nov 15 17:03:45 laphlaw: You should try one of the mailing lists, noone really does platform dev here Nov 15 17:10:40 hello. what does one get for $25 given to google play Nov 15 17:27:42 in the most recent version of android studio, how do i change the target API library from api 19 to the google api? Nov 15 17:28:14 in eclipse, its very easy. i have been at this for close to an hour now Nov 15 17:28:16 o.o Nov 15 17:29:47 in eclipse, go to project properties > Android and change the project build target. Nov 15 17:29:56 in android studio... Nov 15 17:30:15 i have been to every damn setting (i think) Nov 15 17:30:34 SimonVT: here is how I'm using my ContentProvider in my IntentService: http://pastebin.com/EaeEVYQH Nov 15 17:31:44 vedu: Access to the Google Play developer console? Nov 15 17:34:51 Ankhwatcher: That's.. not how you use contentproviders Nov 15 17:35:27 https://developer.android.com/guide/topics/providers/content-providers.html Nov 15 17:38:36 SimonVT: I'm not seeing the difference, could you be a little more specific Nov 15 17:38:56 I've got it working by the way, but I have to pass in context when it's being run by the IntentService Nov 15 17:41:47 You should read that link.. It shows you how to query contentproviders and how to create your own Nov 15 17:42:37 how do I update he Android Gradle plug-in? Nov 15 17:43:49 Change the version number in your build.gradle Nov 15 17:44:14 LordLobo: if you mean the error from android studio, it wants you to edit gradle/gradle-wrapper.properties and update the version there, and perhaps to edit build.gradle and update that versions Nov 15 17:44:18 i've seen both errors Nov 15 17:45:13 which build.gradle? the one in the eclipse project i'm trying to import or somewhere else? Nov 15 17:56:51 ok Nov 15 17:56:53 found it Nov 15 17:56:55 http://stackoverflow.com/questions/16748273/android-gradle-how-to-build-for-android-google-apis-4-2-2-not-for-android-4-2-2 Nov 15 17:57:07 can google please make this more difficult. :) Nov 15 18:01:31 Is there any point in using google api's anymore? Nov 15 18:03:23 SimonVT: for an old project using google maps? Nov 15 18:03:27 do i need to? Nov 15 18:03:40 i was reading about google play and maps Nov 15 18:04:12 So no :p Nov 15 18:04:32 wait, i dont understand your answer. no what? :) Nov 15 18:04:53 As an answer to my own question Nov 15 18:05:45 SimonVT: do you still need to for older project? Nov 15 18:06:19 Sure Nov 15 18:06:51 it certainly did fix my problem Nov 15 18:07:14 import com.google.android.maps.MapActivity; Nov 15 18:07:17 like for that Nov 15 18:17:24 is it possible to get a list of all resource ids at runtime? Nov 15 18:33:10 is there a chooser for drive like there is one for dropbox? Nov 15 19:09:24 How can I specify that a project needs to build with the Google SDK not the standard Android SDK in AS Nov 15 19:10:28 jk found it Nov 15 19:28:11 romainguy: You did a presentation where you showed how to have multiple bitmaps with transparency, but not bleed through each other. Do you remember this video? Because I'm trying to do the exact thing you did, but with paint and canvas instead of bitmaps. Nov 15 19:38:18 Hey there. I want to create a rectangular selection box on an image. What's the best solution for this? I'm currently looking into onTouchEvent. Nov 15 19:39:03 The idea is that you swipe over the image, which creates a rectangular bounding box around the point where you started and where you stopped the gesture, with immediate updates in between. Nov 15 19:40:22 So far I have only used views by defining them via XML. I guess I'll just create a view in ACTION_DOWN, resize it in ACTION_MOVE and persist it in ACTION_UP? Hm... Nov 15 19:41:38 hmm Nov 15 19:41:43 <|0xD34D|> you could extend ImageView and handle it all in that view and override draw(Canvas canvas) to draw the rectangle Nov 15 19:41:46 using a custom view would probably be way better for performance Nov 15 19:41:51 even though that could work as well Nov 15 19:42:49 After the rectangle was created using the gesture, it should sit on the image. When the user taps it he gets a menu for editing and the rectangle should get a dot at each edge for resizing, similiar to how you resize a launcher widget. Nov 15 19:44:01 So I guess a custom view might work best... do I implement my own movement logic, or is there something like "this view can be moved by drag and drop, but only vertically"? Nov 15 19:44:46 sadly no Nov 15 19:44:58 as |0xD34D| said, extend an ImageView and use onDraw to draw the rect on it Nov 15 19:45:07 use GestureDetector or whatsit to process touch events Nov 15 19:46:44 well, there will be multiple selections on the image, each one should be clickable... so I thought it might be easier if I put those selections on the image view as separate views when the activity starts, so they have individual onClick listeners, instead of having to sort that out in the imageView itself. Nov 15 19:47:14 So drag and drop gets implemented by having a view listen to onTouch and move itself around to the coordinates of the event? Nov 15 19:47:53 <|0xD34D|> you could also keep a list of Rect, defining those areas and check if a touch happens within a given Rect Nov 15 19:48:40 Sure, but that would be re-implementing Android's GUI framework... what would be the benefit? Nov 15 19:49:39 You're not saving any work by using views Nov 15 19:49:48 Except the click listener, but really.. That's not much Nov 15 19:50:11 Faster to just use drawables as well Nov 15 19:52:02 Can I take a screen shot of my physical device via adb or something Nov 15 19:52:06 Well, when I load the image and all the selections from the db and just place the selections as views, I don't have to dispatch where the user clicks. If I implement it all by myself I have to check if the user started on a resizing point or the body of the currently selected selection (to move it around) or a different selection or the image itself. Nov 15 19:52:14 Oh, it's about performance? That's a good point. Nov 15 19:52:44 You think that resizing views directly based on touch gestures isn't fast? Nov 15 19:53:05 explodes, yeah, there's a button in IDEA, AS and DDMS Nov 15 19:53:28 cool Nov 15 19:53:40 Hello. Sorry to bother you upstanding gentlemen with a non-dev question about google play store, but I don't know who else knows: can you tell me about the limitations/licenses of the physical devices sold on google play? or where I can find information? Nov 15 19:54:07 google play sells mobile phones, not SIM locked, much cheaper than in my country, and I can get one shipping from .de or .UK Nov 15 19:54:14 There's a lot more logic to laying out a bunch of views (that, eventually, just draws a drawable) compared to just drawing a drawable Nov 15 19:55:43 Hi everybody... after changin an App from ActionBarSherlock to AppCompat, I am having issues when I try to open a new activity on older devices (2.3): http://pastebin.com/1yKv6Miu ... what does this InvalidArgumentException: invalid payload item type mean? Nov 15 19:56:50 So when a user taps a region where I know a selection sits I redraw everything and redraw the selection in the selection look, adding resizing dots at the edges, which I then match on tapping... and I do multiple gestures by... hm... how would I even identify the fingers? This sounds like it might get tricky. Nov 15 19:57:17 evident, that looks like a serialization issue... maybe you imported wrong MenuItem or something like that Nov 15 19:57:44 I mean, if the resizing dots on the edges are views and I want to resize the selection with two fingers in two directions simultaneously, each view might see each finger as an individual one finger gesture... hm... Nov 15 19:58:20 I wouldn't get that if I listen on the whole image, parsing the gestures and redrawing... Nov 15 19:59:06 how do I replace the contents of a dialog box with a loading spinner? Nov 15 19:59:26 Mavrik: so you suppose the error is somewhere in the menu's xml file? What's weird is that two of four menu items work and it doesn't crash, but on the two where I want to start a new activity, it crashes Nov 15 20:00:08 evident, usually I got those errors when I had stuff like onOptionsItemSelected(MenuItem item) and MenuItem from Android instead of AppCompat was imported Nov 15 20:00:15 in activity class Nov 15 20:00:16 it is a custom dialog box as well Nov 15 20:01:18 Ok, want to see my app? http://i.imgur.com/pVhRX5P.png%20http://i.imgur.com/yxbqmNT.png The first pic is the studio area. The second pic is when the overlay option is selected. At the bottom of the right-hand drawer is an option to switch between GRID and LIST view mode. That switch is setting one view gone and the other to visible. This switch CLOSES the whole drawer, why?!! This works when the view is on the left-hand side like so: http:// Nov 15 20:01:43 ugh: ss1: http://i.imgur.com/pVhRX5P.png Nov 15 20:01:48 ss2: http://i.imgur.com/yxbqmNT.png Nov 15 20:02:47 here is the list view: http://i.imgur.com/GKknKJZ.png Nov 15 20:03:26 http://2.bp.blogspot.com/_87BZ9HuDNdU/SXRkMHDrT2I/AAAAAAAACpc/UDjzHCCJ4AY/s400/nemo.jpg Nov 15 20:04:37 is there a way to record a screencast from an android device o.O Nov 15 20:05:04 explodes maybe the other view as a width of 0, so when you show that one and hide the other, the drawer shrinks to match the 0 content? Nov 15 20:05:30 have you ever seen the list view? Nov 15 20:05:38 explodes, with 4.4 yes Nov 15 20:05:57 <|0xD34D|> with 4.4 and as root or system user ;P Nov 15 20:07:19 With 4.4 and adb Nov 15 20:11:21 Mavrik: Found it... I had some hack I had to perform on ActionBarSherlock where I set some SpannableString properties to those two menu items that didn't work anymore... now it's all fine... Nov 15 20:13:36 RedNifre: yea, the list view works when the drawer is on the left-hand side Nov 15 20:16:04 Hello developers! Nov 15 20:17:44 *tumbleweed* Nov 15 20:17:55 Anybody there? Nov 15 20:18:09 *wind noises* Nov 15 20:18:32 Hey, there is someone! Hi, RedNifre Nov 15 20:18:59 Hi! Sorry, we all switched to iOS. No Android developers here. Nov 15 20:19:59 Gosh darnit, maybe I should do the same! I always wanted a fingerprint scanner so the NSA could track me everywhere I went... Nov 15 20:21:22 Don't they have all the fingerprints anyway? They still take all the fingerprints at the airports, right? Nov 15 20:22:09 Yeah they do, but apparently just knowing which country you're in isn't enough, they want to know where you are to within half a metre accuracy Nov 15 20:22:21 RedNifre: They both have non-zero widths :/ Nov 15 20:22:45 Does the fact that the drawer is animated in have anything to do with this? Nov 15 20:23:19 when its visible, its in a post-animated state (the left and right properties of the view are adjusted to slide it into view) Nov 15 20:23:34 when it slides back out, it is in its "natural" state Nov 15 20:23:36 Did you do all of this by yourself? Do you animate the drawer in the wrong direction? ;) Nov 15 20:23:48 the drawer animates in Nov 15 20:23:52 correctly Nov 15 20:24:13 there is no animation with the switch between list and grid Nov 15 20:24:33 i would only suppose that the fact that it is animated in at all has something to do with it. Nov 15 20:24:38 i'll experiment with that idea Nov 15 20:24:39 I make sure I position my chest of drawers far enough away from the wall so I can access them by pushing or pulling. Nov 15 20:27:37 I have an ImageView and a ListFragment. I need the ImageView above the ListFragment and still be able to scroll them together. What layouts can I use to achieve this (beginning with putting a ListFragment into an xml layout file)? Nov 15 20:27:46 explodes I think this is a problem that only exists in your code. I can't really speculate what is going on there. Nov 15 20:28:08 or do you use some right drawer library? Nov 15 20:28:14 I need app ideas :( Nov 15 20:28:29 What? Zynga comes here to get ideas? Nov 15 20:28:45 And a new name Nov 15 20:28:56 I've tried Nov 15 20:29:03 Why do people always tell me stuff about my awful name? Nov 15 20:29:22 Well, I want a game with depth. I'm very disappointed by how simplistic phone games are. Nov 15 20:29:35 Depth? Nov 15 20:29:44 Also, apps, not games. I only know Java :( Nov 15 20:31:38 Okay... then I order an app that is compatible with YNAB (the db file in the dropbox), but defaults every transaction to "checked" and matches categories to locations, so that I only type in the amount of money I spent, where everything else is filled out automatically. Nov 15 20:32:42 Also, I'd like a ssh client that offers both a full screen mode AND doesn't close the window when the server hangs up so I can read the reason WHY the server hung up. Nov 15 20:34:57 I've got a fragment and a singleton class. The fragment calls that uses getInstance() to populate its arraylist from a webservice. I need to find a way to stop the return from executing before the data gets back. I'm told interface is the way to go, but since this is a Fragment class and I don't want to override the ctor, can I initialise my singleton in onCreate()? Nov 15 20:35:27 Hey zyngawow, can you write me an app that allows me to write tiny basic programs, but instead of typing in code I type in keywords with a special keyword keyboard, similiar to how you program on a spectrum or a graphical calculator? Nov 15 20:35:34 Bonus points if you combine this with Ruboto :) Nov 15 20:36:26 RedNifre, sound fairly interesting. Could you elaborate more? Nov 15 20:37:14 Well, my TI-83 had this BASIC editor where it shows you a list of keywords that are valid at the current point in the code, numbered, and you simply press the number on your keypad to enter that keyword Nov 15 20:37:17 And I like roboto! Nov 15 20:37:31 Ruboto the ruby runtime, not roboto the font :) Nov 15 20:37:37 Oh :( Nov 15 20:37:48 So, if you want to combine it with ruby, it might look like this... Nov 15 20:38:11 at the top level you might want to require something, or define a method or a class or whatever... Nov 15 20:38:49 so you press the "def" button on the programming keyboard, it puts "def " (note the space) and then it switches to your regular android keyboard since you now have to type a method name Nov 15 20:39:09 Seems nice, could be used for a lot of languages Nov 15 20:39:15 yupp. Nov 15 20:39:26 but ruby is a language that already works on android. Nov 15 20:39:55 the only problem is that in order to get this working your app needs to be able to parse the whole code, which is a lot of work for powerful languages like ruby. Nov 15 20:40:13 OTOH Ruboto already exists and runs on JRuby so maybe it's not that hard? Hm... Nov 15 20:40:42 It's definitely easier with primitive languages like BASIC, where you don't have that much going on. Nov 15 20:41:47 Also, I need an open source bitcoin app that keeps the block chain on a server I own myself. Anyone? Nov 15 20:43:12 I've got a fragment and a singleton class. The fragment wants the singleton's arraylist, which the singleton populates from a webservice inside getInstance(). I need to find a way to stop the return from executing before the data gets back. I'm told interface is the way to go, but since this is a Fragment class and I don't want to override the ctor, can I initialise my singleton in onCreate()? Nov 15 20:43:31 what the hell, no! Nov 15 20:43:40 That sounds like network on main thread. Nov 15 20:43:46 Nope Nov 15 20:44:08 the singleton has a subclass extending AsyncTask that does that job Nov 15 20:44:20 there is no "stop the return from executing", that is just a hidden network on main thread. Nov 15 20:44:24 you are cheating! :P Nov 15 20:44:55 What should the Fragment do? I guess it can show up without the array list and simply change how it looks once the array list is there? Nov 15 20:44:57 I also have to do a decent stock exchange app, but I can't find a good free source of data Nov 15 20:45:14 Then what can I implement as a trigger so my fragment knows that there is data in the singleton arraylist? Nov 15 20:45:34 In that case, the fragment should pass a runnable to the singleton, which the singleton executes once the array was loaded, e.g. showing the content of the array list. Nov 15 20:45:40 Yeah the fragment is displaying a list of names and thumbnail images. Nov 15 20:46:18 Then the runnable could simply call an update method on the fragment with the array as parameters. Nov 15 20:46:39 Don't ever try to delay a return that is supposed to go to some GUI thingy, your app will crash. Nov 15 20:47:07 I didn't have in mind to have a loop that checked it and told the thread to sleep. I get that much. Nov 15 20:47:47 Ok so I'll go away and have a look at runnables. Thanks for that. Nov 15 20:47:52 So the fragment shows "loading", it puts updateList into a runnable, passes that to the getList method of the singleton, the singleton loads the list in an async task and in postExecute it executes the runnable on the UI thread, updating the fragment. Nov 15 20:48:50 You could also add a failure runnable in case the network breaks done. In that case, the failure runnable could show a dialog, or a "no connection" text in the fragment. Nov 15 20:49:37 Thanks so much, RedNifre. This is exactly what I needed. Of course, being a noob I have to go away and disect what you've said and be back in like 24 hours, or something. Nov 15 20:51:12 Depending on what you are doing exactly, you could also look into Handler or into the observer pattern. Nov 15 20:51:24 No worries :) Nov 15 21:17:59 any idea how to add to git all files from android studio Nov 15 21:17:59 ? Nov 15 21:25:33 Baluse: #git Nov 15 21:28:17 why are changes to view.getLayoutParams().width not visible instantly? Nov 15 21:28:53 Because you're not calling requestLayout after changing the width? Nov 15 21:28:58 Baluse: There are easy ways to do that, but good reasons not to. You want _source files_ only, not the generated files and/or local project settings. Nov 15 21:29:35 on the view i changed or on the containing layout? Nov 15 21:30:13 thanks, it works. Nov 15 21:30:20 You should call setLayoutParams, that ensures it's done properly Nov 15 21:31:31 SimonVT: any idea if this is a bug you have fixed ? http://pastebin.com/FLYTyFsj Nov 15 21:31:55 it's on the top of my crash list for some reason Nov 15 21:32:41 I'm currently doing it like this, how should i setLayoutParams?: newView.getLayoutParams().height = (int) (Math.abs(startY - y)); Nov 15 21:33:23 Should I do newView.setLayoutParams(newView.getLayoutParams())? That looks weird... Nov 15 21:33:26 no Nov 15 21:33:45 LP lp = myView.getLayoutParams(); lp.height = foo; myView.setLayoutParams(lp); Nov 15 21:34:00 StingRay_: Uh, no :o I only add two levels to the view hierarchy, so shouldn't cause an issue Nov 15 21:34:22 SimonVT: loooking at occurances, all on 2.3.x Nov 15 21:34:41 I may just drop 2.3.x support, that will fix it :) Nov 15 21:35:13 Totally do that Nov 15 21:35:22 Does anyone know of a good source of stock exchange data? Nov 15 21:35:24 Probably some crap device that can't handle your view hierarchy Nov 15 21:35:31 Does anyone has some idea why when i start android app on virtual device, my virtual device is blank? Nov 15 21:35:43 I only add 2 levels to the container Nov 15 21:35:55 thought there was like a 32 limit in 2.3 Nov 15 21:36:00 or some such Nov 15 21:37:26 That's not a very deep view hierarchy, shouldn't cause issues Nov 15 21:38:04 StingRay_ i think i mentioned you should drop 2.3, was i right :) :P Nov 15 21:38:21 Even a fragment with a linearlayout and a textview adds 3 levels (since it's wrapped in a framelayout) Nov 15 21:38:24 makes no sense for new app Nov 15 21:38:26 no you were not, but now I probably am! Nov 15 21:38:33 So yeah, some crap device Nov 15 21:39:06 StingRay_ now you 're going to have a bunch of 2.3 users bitch since they are using betas Nov 15 21:39:09 Mark it as WontFix Nov 15 21:39:24 SimonVT you are right, resizing a view via touch gesture has a horrible performance. Nov 15 21:40:34 g00s: 24% users on 2.3.x :( Nov 15 21:40:43 not smart Nov 15 21:40:50 and the app isn't even out yet Nov 15 21:40:56 StingRay_, those users probbaly just use WhatsApp, Twitter, Instagram and Facebook Nov 15 21:40:58 you just shot yourself in the head Nov 15 21:41:02 Most of them at least Nov 15 21:41:12 balls to it Nov 15 21:41:15 dropping it Nov 15 21:41:17 it's closer to 10% in rich countries though. Nov 15 21:41:59 the 2.x devices are usually only relevant if you need developing countries/continents like india or africa. Nov 15 21:42:06 what gives me property animation ? 4.x ? Nov 15 21:42:37 hello. Where is the global "interface language" setting stored on android 4.x ? Is it some text file or a db or something else? Nov 15 21:42:44 and now those pissed off 2.3 users can leave real disgruntled reviews even though its a beta Nov 15 21:43:15 RedNifre, uh... that's not really trye. Nov 15 21:43:15 StingRay_: ViewPropertyAnimator? Nov 15 21:43:18 *true Nov 15 21:43:20 Seriously, just look at your friend's and family's phones. What do they run? Nov 15 21:43:29 WP and iOS Nov 15 21:43:32 SimonVT: yeah Nov 15 21:43:32 heh Nov 15 21:43:49 everyone runs jellybean or ics or iOS7. And there's one blackberry user. Nov 15 21:44:11 i know one BB user Nov 15 21:44:16 Added in HC, some extras in 14, kind of pointless additions in 16 Nov 15 21:44:19 RedNifre maybe its the same person Nov 15 21:44:25 and I know of somebody who uses symbian. Honestly, I haven't seen Android 2.x in a while. Nov 15 21:44:41 then you haven't really been lookin. Nov 15 21:44:55 for games, stats are <10% mostly Nov 15 21:44:56 Unless you want to animate adapterviews, then you probably want 16 Nov 15 21:45:08 for more widely used utility apps, 2.3 is still around 20-25% Nov 15 21:45:27 nice that genymotion just added a 2.3 image Nov 15 21:45:34 SimonVT: thanks, 14 it is then :) Nov 15 21:45:42 may as wellmake it 15 Nov 15 21:45:43 Go 15 while you're at it Nov 15 21:45:49 may I ask which country you are in, where they use Android 2.x? Nov 15 21:45:50 what do i get ? Nov 15 21:45:56 RedNifre, we cover US and EU Nov 15 21:45:57 noteable ? Nov 15 21:45:57 and if its going to take 2-3 more months, fuck go w16 Nov 15 21:46:12 There are <0.1% users on 14 Nov 15 21:46:46 SimonVT: so almost half a million potential users you want me to axe ? Nov 15 21:46:50 here I have a US-centric app which has 40% of users on 2.3 Nov 15 21:46:51 So yeah, who knows if you need anything that was added in 15.. But pointless to set it to 14 Nov 15 21:46:55 this time of year in the US anyhow, there is a lot of churn / nonlinearity around the holidays, people getting new phones, etc Nov 15 21:47:08 SimonVT, 15 has some calendar sync APIs Nov 15 21:47:16 setting it to 15 when you can do 14 is... silly :P Nov 15 21:47:27 15 it is .. ugh… goobye gb, love ya :( Nov 15 21:47:31 14 was a buggy pile Nov 15 21:47:51 not even on the dashboard, i'd just put 15 Nov 15 21:48:02 hmm, none of our apps (that support 7+) are under 24% for 2.3 Nov 15 21:48:16 Interesting. Nov 15 21:48:29 oh jeeeez http://www.menuetos.net/ Nov 15 21:48:30 How much time does it takes for Virtual device to open? Nov 15 21:48:33 My app that works on 8+ has only 10% on 2.x Nov 15 21:48:33 pure asm OS Nov 15 21:49:00 well, it makes more sense than that open windows os thingy (ReactOS) Nov 15 21:49:20 heh, 38% for a transport assistance app Nov 15 21:49:23 How would you scrape the price from here https://www.google.com/finance?q=GOOG ? Nov 15 21:49:27 yeah I stull suspect parts of reactos was from that old microsoft hack that downloaded some of NT source Nov 15 21:49:27 it really depends on what the app is Nov 15 21:49:32 yeah, i have 20% on GB/froyo Nov 15 21:49:38 Huh, I guess that's right. Nov 15 21:50:16 A public transportation app might be used by poorer people than a library app... hm... Nov 15 21:50:40 nah, it's logical, there's a demographic difference Nov 15 21:50:41 Did the MenuetOS people tell anyone why they do this? Nov 15 21:50:50 My favorite weird os is Haiku :) Nov 15 21:50:52 people who don't give alot of damn about their phones don't replace them every year or two Nov 15 21:51:10 those people mostly don't play games or play with their phones either... but they do use apps that help them in daily lives Nov 15 21:51:30 are you sure of this? Nov 15 21:51:34 red site dont say so dunnp Nov 15 21:51:50 but result probably is tiny and pretty damn fast Nov 15 21:52:10 It could also be that only rich educated people see the value of utility apps that simplify their life. Those are also more willing to pay ;) Nov 15 21:52:21 I really wish Google would release more information on this. Nov 15 21:52:34 meh Nov 15 21:52:47 if I'd wanted to fleece people of their money with mobile apps I'd develop iOS stuff Nov 15 21:52:50 At the last IO somebody explicitely asks for more details on which app makes how much money but it's all very confidential. Nov 15 21:53:27 Ah. So you want to do something good for the world by making your free utility apps run on 2.2+? Nov 15 21:53:58 I do alot of stuff :) Nov 15 21:54:02 But then, how do you make a living? Nov 15 21:55:17 by developing app which monetisement strategy isn't dependant on user micropayments :) Nov 15 21:56:16 government funded public library apps? ;) Nov 15 21:57:13 I'm not a fan of micro payments, what I meant is that I'm not convinced that developing for Android 2 is worth it (unless your app is very popular, like WhatsApp) Nov 15 21:57:43 it's not worth it if your revenue stream is based on people buying the app Nov 15 21:57:52 it is worth it if you're making an app that exposes a service Nov 15 21:58:44 still alot of people which (understandably) don't want to throw away 400€ for a new phone when the current one works just fine :) Nov 15 21:59:49 I don't understand the difference. If you don't support 2, the amount you lose in a revenue system should be the same that you lose in a service based system? Nov 15 22:00:24 I don't understand how losing Android 2 users in a service based system is worse. Could you explain? Nov 15 22:01:28 it's different user expectations Nov 15 22:02:03 when you want users to pay for an app, you need to provide good experience (which is hard when supporting 2) and also people who are prepared to pay for apps usually upgrade phones rather fast Nov 15 22:02:12 but how is that relevant? Or do you mean cross device services where I want to interact with somebody who uses Android 2? Nov 15 22:02:13 since they're more invested in mobile stuff and actually care about updating Nov 15 22:03:08 but when you do an app to expose some service (should that be your online banking, access to enterprise system or just a simple train tracker) you probably want to maximise access to that service since people fund it from other sources Nov 15 22:03:43 Ah, so you are talking about services where the revenue comes from elsewhere. Sure. Nov 15 22:03:53 excluding people from seeing train delays and schedules for a national rail because you want some shiny animations Nov 15 22:03:57 yeah Nov 15 22:04:20 Sure, if everyone pays for all apps by buying train tickets, it makes sense to offer the app to everyone for free. Nov 15 22:04:29 that's what I mean by different user expectations: users on 2.x probably won't even notice there's a missing paid app Nov 15 22:04:48 but if you're a company that provides a service with mobile app, users will expect to use it on their phones :) Nov 15 22:05:33 mhm... things like Facebook, Twitter, Netflix, etc. fall into that category Nov 15 22:07:18 Well, those are slightly different. Nov 15 22:07:54 should the android ndk be spitting out different binaries on different machines? Nov 15 22:07:57 With Netflix, you pay for a service. And with Facebook/Twitter/Whatsapp you want you friends to be able to use the app as well, so that's slightly different. Nov 15 22:09:52 You missed the similarity between them though, they're all just providing an already existing service on the android platform Nov 15 22:09:58 lagann, hmm... it might depending on NDK compiler versions Nov 15 22:10:43 What's the easiest way to convert pixels into any form of meter, e.g. dp? Nov 15 22:11:24 Like, convert 5mm to pixels. Nov 15 22:11:28 How do I add a Jar, Javadoc and source on android studio? Nov 15 22:12:07 are there metric units somewhere, or do I have to use these awful dp? Nov 15 22:12:33 This flippin' thing. Nov 15 22:12:42 Use DP assume they're pixels. Its easy. Nov 15 22:12:56 erm. Nov 15 22:12:59 lol Nov 15 22:13:09 use pixels, and assume they are pixel Nov 15 22:13:12 :) Nov 15 22:13:16 yes Nov 15 22:13:29 if you need something to be exactly 5mm wide, you're doing something non-android like Nov 15 22:13:35 well, no. It's about resizing something to a human friendly size. Nov 15 22:13:42 dp can be 300% range, so 1-3 pixels Nov 15 22:14:03 then dp is pretty standard to use Nov 15 22:14:56 Yeah, I just find it very odd that 1dp is 0.15875mm... that's a very imperial unit ;) Nov 15 22:15:16 1dp is not always 0.15875 mm Nov 15 22:15:23 Mavrik: same ndk version Nov 15 22:15:26 I mean, even that 1dp is 0.00625 inch is very weird... Nov 15 22:15:27 but i'm getting two different versions Nov 15 22:15:31 it's not? When not? Nov 15 22:15:31 well, sha1sums Nov 15 22:15:41 and the weird thing is, one of them crashes but the other one runs fine Nov 15 22:15:46 RedNifre: on screens with different dpi Nov 15 22:16:01 well, no. I think you might be thinking about pixels? Nov 15 22:16:24 oh maybe Nov 15 22:16:24 explodes: dp should be more-or-less equal; that's the whole point of dp Nov 15 22:16:32 yea that makes sense Nov 15 22:16:44 i just assume everything is volatile, but i guess i dont need to Nov 15 22:16:48 How I am suposed to add a JAR with the new Android Studio? Nov 15 22:16:49 No, he's thinking about dp Nov 15 22:17:16 Though I wish they would just allow micrometers or something. dp is neither metric nor imperial. Nov 15 22:17:28 its androidian Nov 15 22:17:30 dp is converted into pixels based on the density bucket Nov 15 22:18:12 So 1 dp is always 1px on a mdpi devices.. But pixels aren't as large on a 180dpi device as on a 140dpi devices Nov 15 22:19:27 Oh cool, I was right Nov 15 22:19:29 +1 Nov 15 22:19:45 lol FATAL ERROR Nov 15 22:20:17 SimonVT is there a way to record my android's screen to a video? Nov 15 22:20:39 SimonVT: but they should always be more-or-less equal, within a given density bucket. Going out 5 sigfigs on the measurement is silly, but they'll be close Nov 15 22:20:46 explodes: on kitkat, yes Nov 15 22:21:02 ugh really i have been waiting 3 days for the update to hit my device Nov 15 22:21:12 "Your system is up to date" is a big fat lie Nov 15 22:21:37 explodes: what's your device? Nov 15 22:21:39 evanc: Sure. More or less equal, but not exactly equal (which was what the misunderstanding was about) Nov 15 22:21:47 nexus 7 2013 Nov 15 22:21:49 SimonVT: right. Nov 15 22:21:58 explodes: wifi or w/ LTE? Nov 15 22:22:01 wifi Nov 15 22:22:06 https://developers.google.com/android/nexus/images#razorkrt16o Nov 15 22:22:14 yeaaa but that wipes your data Nov 15 22:22:29 I just got this last week, I don't wont to have to reset everything so soon Nov 15 22:22:32 do an adb backup before and just adb restore it afterward Nov 15 22:22:34 but okay Nov 15 22:22:37 seriously? Nov 15 22:22:38 Has anyone tried using a 7inch device as their phone? Nov 15 22:22:48 does that backup settings and apps and everything? Nov 15 22:22:58 If you're already oem unlocked you don't have to wipe Nov 15 22:23:19 The install script passes a parameter that tells it to wipe.. Just don't pass that Nov 15 22:23:24 what is OEM unlocked? Nov 15 22:23:43 rooted, you mean? Nov 15 22:23:47 * LuisLeite good evening Nov 15 22:23:55 have you ever run `fastboot oem unlock`? Nov 15 22:23:59 no Nov 15 22:24:25 I was wondering which devices I should have and the problem with a separate tablet is that at home, I have the "real" computer available and on the go I have my Nexus 4, so a tablet doesn't fit at the moment. Even when I had a 10 inch one, I didn't use it that often, because I have everything set up on the phone... so I was wondering if a very large phone might be the solution here. Nov 15 22:24:32 Which device types do you use? Nov 15 22:24:36 well if you want to try the backup/restore route, type `adb backup` and read. Don't blame me if it doesn't work. Nov 15 22:24:59 k Nov 15 22:25:18 explodes i have a 2013 n7; no update either. maybe next week Nov 15 22:25:37 just to share your experience; i 'm not worried about it tho Nov 15 22:26:12 heh Nov 15 22:26:22 evanc: what does "fastboot oem unlock" mean Nov 15 22:26:30 er, what does that do to my device Nov 15 22:26:50 but really, if apple can push updates to everyone at the same time, i don't know why google can't Nov 15 22:27:04 Where can I find documentation about using AccountManager* apis directly to (say) get an OAuth token? Or is this a fool's errand. Nov 15 22:27:06 explodes: wipes it Nov 15 22:27:18 evanc oh Nov 15 22:27:23 er, specifically for Google Nov 15 22:27:29 among other things, but that's the only important bit for you Nov 15 22:27:46 kbs: yes, you can get oauth tokens using accountmanager Nov 15 22:28:13 kbs: https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android Nov 15 22:29:24 evanc: great - thanks. Nov 15 22:34:07 simonvt: if i do the update without erasing my data (fastboot -w) can you be certain it won't cause a problem with my data/settings/apps whatever? Nov 15 22:36:29 How I am suposed to add a JAR with the new Android Studio? Nov 15 22:37:16 add it to your LIBS directory Nov 15 22:37:57 Just that? Nov 15 22:41:46 or google the questions as its very simple Nov 15 22:43:27 How much does it takes for AVD to load? Nov 15 22:43:44 58.543a Nov 15 22:43:45 Much what does it take? Nov 15 22:44:02 Android Virtual Device Nov 15 22:44:09 Bitcoins? Nov 15 22:44:09 It takes all the bitcoins. Nov 15 22:44:18 .. That is totally not the question I asked. Nov 15 22:44:25 58.543 Nov 15 22:44:31 see I'm correct :) Nov 15 22:45:14 Nobody cares about your 58.*a, it's all about the bitcoins Nov 15 22:45:21 Insert free market obsession here. Nov 15 22:45:47 bitcoins a big thing in the states then ? Nov 15 22:45:53 I don't know. Nov 15 22:46:14 I think it's only big with psychotic internet libertarians and people who want to buy illegal stuff. Nov 15 22:46:53 Also anyone looking for a get-rich-quick scheme. Nov 15 22:47:34 explodes, but I read Android Studio 3+ improved that in some way Nov 15 22:47:35 Bitcoins are inherently worthless Nov 15 22:47:42 Ologn, sure. Nov 15 22:47:45 The whole thing is going to come crashing down sooner or later Nov 15 22:47:56 Sure. Nov 15 22:48:00 Reminds me, IntelliJ 13 should be out soon Nov 15 22:48:04 Ologn: same thing can be said of local currency Nov 15 22:48:08 with the same end too Nov 15 22:48:10 :) Nov 15 22:48:22 The only currency that is uncontrolled, and it will crash. Sure. Nov 15 22:48:26 StingRay_, in a sense yes, in a sense no Nov 15 22:48:34 I'd bet the dollar will crash before the bitcoin Nov 15 22:49:35 both are given value through belief, as both are not really backed by anything useful … well thats the situation here in the UK Nov 15 22:49:41 Can someone tell me how much time do i need to wait for Android Virtual device to open? Nov 15 22:49:45 StingRay_, I can take my dollar bills, walk to the 24 hour US post office in Manhattan and buy dozens of boxes. So I can always get some worth for dollars. Nov 15 22:49:45 with the pound Nov 15 22:50:29 JovanJ, sometimes it takes a few minutes, depending Nov 15 22:50:45 0logn mine loads more then 10+... Nov 15 22:51:36 JovanJ, a tablet-sized AVD with an ARM chipset on a slow processor loading for the first time might take 10+ minutes Nov 15 22:52:18 It's an Galaxy Nexus.. and I've i5 processor. Nov 15 22:52:30 Not sure what is wrong -.- Nov 15 22:52:58 And by the way, when i try to use Android 4.3 for virtual device, i get an error target not selected Nov 15 22:53:00 what is it? Nov 15 22:53:28 0logn ^ Nov 15 22:55:20 JovanJ, the target is the system image Nov 15 22:56:40 I need to install it? Nov 15 22:56:44 Different versions have different APIs Nov 15 22:57:00 Yes, you have to install the APIs you want Nov 15 22:57:20 If you want a 4.4/19 device you have to install the SDK platform for it Nov 15 22:57:53 If you want a 2.3.3/10 device you have to install the SDK platform for it etc. Then their system images can be used as targets. Nov 15 22:58:03 You can install multiple APIs. Nov 15 22:58:49 For 4.3 is it installed good: http://i.imgur.com/3UrBxni.png Nov 15 23:01:29 Not sure, try closing and restarting the program Nov 15 23:02:05 Try doing it from the command line: http://developer.android.com/tools/devices/managing-avds-cmdline.html Nov 15 23:02:50 See if your targets are listed properly on the command line. If do, then create a simple AVD for that version on the command line and launch it. Nov 15 23:03:36 I'll try, thank you. Is it good idea to try an app on real device? Nov 15 23:04:15 wow, staples has a $50 off any tablets over $150 coupon Nov 15 23:05:24 JovanJ: yes Nov 15 23:07:47 <^cheeky> so freaking tempting !!! Nov 15 23:11:03 im trying to create a horizontally scrolling listview behavior view Nov 15 23:11:13 can i use viewpager such that each view doesnt fill the screen Nov 15 23:11:19 or width rather Nov 15 23:11:32 or is there some recommended way of creating a horizontally scrolling listview Nov 15 23:11:40 i wanna be able to recycle views and all that Nov 15 23:11:47 could someone try something in AS for me? right click on your src folder in Project Explorer and choose New Module and see if AS locks up Nov 15 23:12:12 it has locked up on me three times, every time forcing me to kill it. Nov 15 23:12:30 regreddit i dont wont to lock up; but i will say: just edit the gradle file :D Nov 15 23:13:14 as far as i'm concerned, all that should be manipulated through the gradle DSL - there should be no UI for it Nov 15 23:13:19 the DSL is the UI Nov 15 23:14:12 but gradle will not build the folder structure for me, and doo all the nice housekeeping that the IDE will Nov 15 23:14:20 they just made things more complicated , because now instead of one way gradle model -> AS; there has to be round tripping between the stuff in the DSL and what you can edit in the UI Nov 15 23:14:45 you dont define application modules in gradle Nov 15 23:14:49 regreddit mkdir -p src/main/java/com/foo/done :D Nov 15 23:15:08 i define everything in gradle Nov 15 23:15:36 so, not sure what you mean by that Nov 15 23:16:02 my project must build and be 1st class citizen in AS and vim ;) Nov 15 23:16:14 and commend line Nov 15 23:16:42 im moving in that direction, since i have developers still on eclipse that are pretty tied to the 'eclipse way' Nov 15 23:17:00 i have to be careful Nov 15 23:17:51 shigeru, ActionBar -> that might be exactly what you're describing... Nov 15 23:18:09 ActionBar? Nov 15 23:18:20 not sure im following Nov 15 23:18:33 Do you guys all use eclipse for development? Nov 15 23:18:35 how is an action bar like a horizontally scrolling listview Nov 15 23:18:40 it provides the "horizontal scrolling" with recycling views Nov 15 23:18:47 each can contain listview Nov 15 23:18:52 JovanJ, I use Android Studio Nov 15 23:18:58 o_O Nov 15 23:19:03 Is it good? Nov 15 23:19:04 hmm Nov 15 23:19:06 And free? Nov 15 23:19:08 do you have an example Nov 15 23:19:11 I love it Nov 15 23:19:44 the integration with git, github and otehr issue trackers, etc is pretty sweet Nov 15 23:19:59 shigeru, example would be gmail application Nov 15 23:20:09 JovanJ, its free from Google Nov 15 23:20:15 i use git from the command line in any ide I use Nov 15 23:20:21 its the in-house IDE for Android Now Nov 15 23:20:32 i dont see any horizontally scrolling listviews in gmail Nov 15 23:20:36 the actionbar looks pretty standard there Nov 15 23:20:37 git integration in AS is killer Nov 15 23:20:50 Thank you :) I'll try it now :) Nov 15 23:21:36 JovanJ, it's still a developer preview, but works well for me Nov 15 23:21:52 <^cheeky> AS is freaking awesome.. tho gave me memories i will never forget Nov 15 23:22:03 I need it for simple app, since I am still newbie in this :) Nov 15 23:22:16 well I dont know how you imagine it, but there are listviews next to eachother there Nov 15 23:23:30 I actually just created ##android-studio on Freenode just for IDE related discussion Nov 15 23:23:48 <^cheeky> question guys, if anyone could point me in the right direction , so i authenticated the user and got the access token and a lot of posts on stack over flow seem to point to storing it in the preference manager, this just a thought, if the phone is rooted and my app is being used by the user, wouldn't SU have access to the preference manager and obtain the token and use it for what ever mayhem it wants ? Nov 15 23:24:11 I just joined it, and it's empty :) Nov 15 23:24:41 <^cheeky> so is there a good tutorial or article i could follow on how to save the access tokens and stuff ? Nov 15 23:24:50 JovanJ, I know, I literally just created it today - the first mention of it existing was 30 seconds ago :) Nov 15 23:25:01 Haha :D Nov 15 23:25:11 I mean also you're not there... :P Nov 15 23:25:29 node the double ## Nov 15 23:25:35 Im there Nov 15 23:26:06 ## is 'proper etiquette' for an unofficial channel Nov 15 23:27:02 <^cheeky> could anyone link me to an article on saving access tokens and how to use them for authentication and logging in Nov 15 23:27:09 and since I dont work for the Joogle, I made it ## Nov 15 23:27:22 Got it :) I joined... Nov 15 23:27:25 ^cheeky, logging in to what? Nov 15 23:27:46 <^cheeky> like for Flikr authentication Nov 15 23:28:01 are you using oAuth? Nov 15 23:28:41 <^cheeky> so far i did the whole web view and call back mechanism to obtain the access token and it works, so i am think i would save it in my preference manager, and then check that to see if i have to obtain it again Nov 15 23:28:46 theres 101 authentication schemes aout there Nov 15 23:28:47 <^cheeky> yes sit Nov 15 23:28:49 <^cheeky> *sir Nov 15 23:28:51 <^cheeky> 0Auth Nov 15 23:29:49 <^cheeky> i have it working .. i am just asking if i should be storing the access token in preference manager Nov 15 23:31:23 ^cheeky: yes to your question about rooted phones - it's insecure if the phone is stolen. That said, Google's answer is in fact to put it somewhere in the app-private area (and preferences is one of them.) Nov 15 23:31:29 I think auth tokens are pretty ephemeral Nov 15 23:31:50 they're not typically stored for long periods of time Nov 15 23:31:56 <^cheeky> yup fro what i read 24 hrs Nov 15 23:32:08 unless its an actual 'API Key' that represents you forever Nov 15 23:32:33 typically, there's a refresh-token involved which (in combination with the app-secret, which is often recoverable from the apk file) makes for effectively a permanant token until the user explictly revokes it Nov 15 23:32:50 <^cheeky> kbs: ill feel bad , if people have my app it caused them worries, Nov 15 23:34:17 ^cheeky: there isn't really an ideal solution for rooted phones; but in theory, if you believe android is secure, non-rooted phones are safe Nov 15 23:34:46 <^cheeky> hey got to leave some fun for the pros eh Nov 15 23:34:52 <^cheeky> kbs: thank you Nov 15 23:35:46 I'm not sure having root access to a phone makes your app inherently less secure Nov 15 23:36:02 I'm not sure what angle you are coming from Nov 15 23:36:18 <^cheeky> oh it was just a thought when i was reading about this Nov 15 23:37:37 data stored in app-private are no longer private on a rooted phone; is the essense of the problem... Nov 15 23:38:12 http://2.bp.blogspot.com/_87BZ9HuDNdU/SXRkMHDrT2I/AAAAAAAACpc/UDjzHCCJ4AY/s400/nemo.jpg Nov 15 23:39:02 https://www.facebook.com/AlwaysBePikachu/posts/415137375210594 Nov 15 23:40:13 there's an underhanded trick to force your user to set a pin/passwod on their phone; and then use some undocumented keystore features to store stuff encrypted, but all that is very low-level and hacky. http://nelenkov.blogspot.com/2012/05/storing-application-secrets-in-androids.html and https://gist.github.com/kbsriram/5503519 for details... Nov 15 23:40:57 <^cheeky> :)) Nov 15 23:41:06 <^cheeky> thank you Nov 15 23:41:12 <^cheeky> book marked def !!! Nov 15 23:41:47 <^cheeky> oh man Nov 15 23:41:48 <^cheeky> nice Nov 15 23:43:19 <^cheeky> kbs: thank you thank you Nov 15 23:43:50 wow, some mazing charts in here http://www.businessinsider.com/apple-prices-too-high-2013-11 Nov 15 23:44:46 ^cheeky: oh, have fun playing with it :) but I did speak with some security guys at the last i/o, and as far as I know, their theory was simply to say that rooted phones are the problem of the phone - owner; and security on unrooted phones are something they track very carefully Nov 15 23:45:12 ergo - use preferences, and forget about it. [my translation of their advice, fwiw.] Nov 15 23:46:23 <^cheeky> yeah thats what aim going to do, i mean i am just starting out Nov 15 23:46:26 <^cheeky> yeah so much to learn Nov 15 23:46:44 <^cheeky> makes me happy .. i hope i errmmm .. achieve it lol Nov 15 23:47:14 <^cheeky> been up from 2 am its 6 46 pm.. don't wanna sleep yet but i am useless Nov 15 23:47:29 <^cheeky> i guess ill watch something Nov 15 23:47:32 <^cheeky> or what ever Nov 15 23:47:54 g00s: whats more interesting is who the fk colored those charts, horrid Nov 15 23:47:59 looks like they scribble Nov 15 23:48:00 <^cheeky> hoi polloi gadget maker Nov 15 23:48:07 <^cheeky> g00s: lol Nov 15 23:48:10 android should be green :D Nov 15 23:48:29 g00s: actually looking at it, it's macroblock artefacts Nov 15 23:48:40 so rather, who the fk compressed that! Nov 15 23:49:16 <^cheeky> lol Nov 15 23:49:21 i have read a few times about this one http://static2.businessinsider.com/image/528641aa69beddab7d68a826-960/slide068-5.jpg Nov 15 23:50:35 <^cheeky> well i mean http://appleinsider.com/articles/13/09/20/samsung-confirmed-to-be-manufacturer-of-apples-new-a7-chip-in-iphone-5s Nov 15 23:51:42 <^cheeky> samsing even makes the iPhone chips .. so hoi polloi gadget maker ... is weird fit i would say Nov 15 23:51:55 <^cheeky> but i like all gadgets, Nov 15 23:53:34 * g00s had to google hoi polloi Nov 15 23:53:46 <^cheeky> it was from the article your posted Nov 15 23:53:51 yeah Nov 15 23:53:53 <^cheeky> lol Nov 15 23:53:55 well i put ios7 on iphone 4s yesterday to have a look, the finishing of so platform features that are the sum of many small things make it way better than android on average Nov 15 23:53:55 *plebs Nov 15 23:54:22 it works ok on the 4s? Nov 15 23:54:35 yeah Nov 15 23:54:38 seemed to Nov 15 23:54:48 that parallax background stuff works fine too Nov 15 23:55:07 although after about 5 min, the novelty is gone :) Nov 15 23:55:36 did it make you sick ? Nov 15 23:55:38 :) Nov 15 23:55:39 will wait for jailbreak and get the ipad on ios7 too Nov 15 23:55:58 but not doing without xbmc, ios7 Vs ios5 + xbmc Nov 15 23:56:05 no contest :) Nov 15 23:58:20 the gradle examples haven't been updated in a long time … Nov 15 23:58:51 publishing an aar to a local repo is still hacky Nov 15 23:59:22 the gradle guy said don't put in in your gradle or maven cache, to make a 3rd :| Nov 15 23:59:58 <^cheeky> i am so afraid of GRadle Nov 16 00:00:16 <^cheeky> it not gradle fault its mine Nov 16 00:00:22 ^cheeky: your not alone Nov 16 00:00:30 thats why I still dont use it in AS Nov 16 00:00:44 cause I'm scared of most build systems Nov 16 00:00:52 <^cheeky> you at least have more experience my project i am working on is still like 0.28 something haven't upgraded coz my app has come so far Nov 16 00:01:02 <^cheeky> ill cry so badly if it happened again lol Nov 16 00:01:10 <^cheeky> so you use eclipse eh Nov 16 00:01:19 no I use latest AS Nov 16 00:01:25 just not gradle :) Nov 16 00:01:41 <^cheeky> oh ... ummm Nov 16 00:02:03 bbl… food Nov 16 00:03:26 <^cheeky> hmm food sounds good Nov 16 00:03:33 <^cheeky> i need to stay up longer Nov 16 00:03:39 <^cheeky> perhaps a beer Nov 16 00:03:39 I just ate a tonm of adderall so food sounds like a word Nov 16 00:03:49 <^cheeky> i can't code shot shiznitt Nov 16 00:03:55 <^cheeky> wow nvm then Nov 16 00:04:05 What is the paste limit? Nov 16 00:06:32 Meh Nov 16 00:06:34 Document doc = Jsoup.connect("https://www.google.com/finance?q=AAPL").get(); Nov 16 00:06:34 for(Element e : doc.getElementsByClass("pr")) Nov 16 00:06:34 Logger.getLogger("com.darkraven.stockexchange", "Element: " + e.text()); Nov 16 00:06:43 Why could I be getting an error on the third line? Nov 16 00:06:56 Caused by: java.util.MissingResourceException: Failed to load the specified resource bundle "Element: 524.99" Nov 16 00:19:23 so whats the 'android' way of re-using aars across projects and /not/ have to upload to a public maven repo or use something like artifactory :| Nov 16 00:19:39 i remember this was an issue back in july; is it still unresolved ? Nov 16 00:28:00 Is there a way to launch an intent to open into the play store app with search results to the attached keyword(s)? Nov 16 00:34:54 playing dumb here, what's an aar? Nov 16 00:35:33 lasserix: read the sdk > http://developer.android.com/distribute/googleplay/promote/linking.html#PerformingSearch Nov 16 00:36:56 Napalm thanks Nov 16 00:37:54 hi guys Nov 16 00:39:24 i would like to write an app that tells me via text to speech when i connect to a wlan network. i guess i use a broadcast receiver that triggers a service that does the speech output. does that make sense or should i use a different approach? Nov 16 00:41:24 makes sense to me.. Nov 16 00:41:30 but i dont know anythin Nov 16 00:41:34 lol Nov 16 00:41:49 thanks you made me laugh :-) Nov 16 00:43:15 you know i am not a professional developer, so i would really like to know, how to approach that problem Nov 16 00:43:55 for people who did things like that a thousand times it is trivial i know Nov 16 00:45:09 ultrixx: I'm as far from a professional developer as they get, but what you describe could be the domain of a single server Nov 16 00:45:17 ooops service Nov 16 00:45:48 StingRay_: thanks for your input Nov 16 00:46:12 <^cheeky> ^ far from being a novice programmer that ray Nov 16 00:46:15 <^cheeky> :P Nov 16 00:46:48 <^cheeky> sorry Nov 16 00:46:55 <^cheeky> this beer is niiice Nov 16 00:47:15 StingRay_: so how should i set that up? write an app with an empty activity, a broadcast receiver and a service? Nov 16 00:47:28 well no Nov 16 00:47:43 write a "settings activity" and write a service Nov 16 00:47:51 ok Nov 16 00:48:17 service = broadcast receiver (dynamically created) and the intended results of actions/events processed Nov 16 00:48:17 and the broadcast receiver? Nov 16 00:48:41 StingRay_: thank you very much you helped me a lot Nov 16 00:48:46 you create and register in the service, based of settings from prefs that are set in the settings activity Nov 16 00:48:51 just a thought though Nov 16 00:49:24 very much appreciated Nov 16 00:49:29 you could do it lots of ways I think, though I have never triggered text-to-speech so not sure what the restrictions or requirements are Nov 16 00:49:41 although always wanted to look, never got round to it :) Nov 16 00:51:24 <^cheeky> shit Nov 16 00:51:30 <^cheeky> oh man Nov 16 00:51:38 <^cheeky> i need a bloody setting thingy now Nov 16 00:51:39 <^cheeky> uggh Nov 16 00:51:46 * ^cheeky sighs Nov 16 00:51:50 <^cheeky> never will be done Nov 16 00:52:27 <^cheeky> i should have planned all of this , before , kinda hard .. if you don't know the system or how it even works in the first place Nov 16 00:54:03 <^cheeky> anyone know of a cheap hear beat monitor less than 40 bucks ? Nov 16 00:58:52 <^cheeky> guess i need to find out how to fuse android into my body Nov 16 01:00:20 <^cheeky> anyone could link to good android video Nov 16 01:03:41 silly question I know Nov 16 01:03:51 is there a way to create an AVD with a full battery? Nov 16 01:04:03 all the battery warnings are kinda annoying Nov 16 01:04:47 spikebike: are you serious ? Nov 16 01:04:57 heh, ya Nov 16 01:05:11 errr http://bit.ly/18BRGYZ Nov 16 01:05:23 the border flashes red, exclamation point in the battery symbol, etc. Nov 16 01:05:28 I count may valid examples of it Nov 16 01:05:36 in those results Nov 16 01:05:47 ah, heh, thanks. Nov 16 01:06:11 answer hidden away in the 1st search results of google, the lesser known way to find things ;) Nov 16 01:06:52 heh, I've had such poor luck googling other eclipse/adt plugin/ubuntu issues I didn't google for this one Nov 16 01:09:53 anyone compared emulated atom vs emulated arm performance? Nov 16 01:10:07 googling "arm avd atom performance android" isn't particularly useful Nov 16 01:10:22 intel = no emulation Nov 16 01:10:28 and even on a nice x86 arm emulation is rather slow Nov 16 01:10:33 so maybe 5x to 50x Nov 16 01:10:34 StingRay_: right, so it's much faster? Nov 16 01:10:39 sweet Nov 16 01:10:49 depends on the variables Nov 16 01:10:56 but yes, very much quicker Nov 16 01:14:47 heh, just got a google chrome update, and chrome got a zero day today or yesterday at the hack competition Nov 16 01:17:41 can anyone redirect me for help with google api calendar? #Google is useless Nov 16 01:20:05 https://developers.google.com/google-apps/calendar/ ? Nov 16 01:20:27 I'm trying to see if there is a way to somehow ask a user to share free/busy times when they connect to my app Nov 16 01:20:38 web-app Nov 16 01:20:53 or http://developer.android.com/guide/topics/providers/calendar-provider.html Nov 16 01:22:34 I want to know if theres a way I can edit the share settings for a calendar. Nov 16 01:22:59 it doesn't say in any of the info in those resources ? Nov 16 01:26:39 not htat I can find Nov 16 01:40:08 so Nov 16 01:40:22 intent-filter's for URL's kinda suck :P Nov 16 01:40:56 android:pathPrefix andandroid:pathPattern just kinda don't work Nov 16 01:41:04 not even trying to do anything very complex Nov 16 01:41:29 andandroid:pathPattern=".*/forum/.*" never hits a match Nov 16 02:13:56 http://stackoverflow.com/questions/14608833/android-enable-wi-fi-tethering-without-sim-card-or-internet-connection i have the same problem can any one help i googled alot not use Nov 16 02:14:16 no* Nov 16 02:15:23 #android-root might help. It's not exactly doable with non-modified stock os Nov 16 02:15:58 or rather not exactly doable without root Nov 16 02:17:02 p_l: ok i'll try there Nov 16 02:19:47 p_l: foxfi gets it wirking without sim card but the trick is to be connected first time to the internet using wifi then when you enable it the wifi gets disconected and the hotspot works so i guess its doable ? Nov 16 02:23:11 random hacks like that are not a solution Nov 16 02:28:15 yay, I just doubled my internet bandwidth Nov 16 02:28:58 although still puzzled as to how a router could in a steady way, degrade taking the throughput down slowly over time Nov 16 02:29:10 memleaks? Nov 16 02:29:20 well, resource leak in general Nov 16 02:29:30 indeed, but a rest would yeild a fix Nov 16 02:29:33 or a factory reset Nov 16 02:29:40 maybe temp fix but would work Nov 16 02:29:44 and it didn't Nov 16 02:29:48 hmmm Nov 16 02:30:05 rest…lol reset Nov 16 02:30:09 I need a new router.. Mine randomly reboots Nov 16 02:30:20 SimonVT: save you having to do it Nov 16 02:30:25 sounds like a feature Nov 16 02:31:24 Yeeah, I'd rather want other features Nov 16 02:31:32 Like working internet Nov 16 02:32:25 well mine must have dropped from 65mbit to 30 over a few months, then only noticed when it got to 6mbit Nov 16 02:32:39 old cheap router, back up at 65mbit Nov 16 02:40:40 I got an email from comcast yesterday telling me they'd increased my speed, to half of what it actually is :) Nov 16 02:40:45 I guess I shouldn't complain Nov 16 02:43:37 Does simulating the GPS in the emulator work? I have tried from eclipse and using "gcm fix lat lon" and it doesnt seem to work **** ENDING LOGGING AT Sat Nov 16 02:59:59 2013