**** BEGIN LOGGING AT Tue Nov 19 03:00:00 2013 Nov 19 03:00:46 this may or may not help http://developer.android.com/training/notepad/notepad-ex1.html Nov 19 03:02:45 Im stuck on thinking its the bundle repeating itseelf Nov 19 03:03:14 debug it and set some breakpoints Nov 19 03:03:34 or setup some unit tests Nov 19 03:05:27 me and the debugger dont get along for some reason Nov 19 03:05:50 going to have to learn sooner or later Nov 19 03:09:05 I wish the android dev site had video tutorials Nov 19 03:09:28 there's heaps on the youtubes Nov 19 03:10:10 Yeah. Something about it coming from google is more comforting Nov 19 03:11:40 yea i know Nov 19 03:11:43 me too Nov 19 03:12:21 its hrader to figure this thing out because I dont have any errors Nov 19 03:12:41 I don't think it will give you errors like you want it to Nov 19 03:12:48 do what bankai said about break points Nov 19 03:14:12 also check out their sample apps, load them into android studio and find one that does what you're attempting Nov 19 03:14:30 if your learning by trial and error that would be a good place to start Nov 19 03:17:13 thanks looks like im the most green Nov 19 03:20:15 you can message me if you like, can't promise anything but I might be able to point you in the right direction Nov 19 03:20:23 green is good - means all my tests completed successfully Nov 19 03:20:29 hahahaha Nov 19 03:28:17 ok Nov 19 03:28:42 -_- Nov 19 03:28:46 lol Nov 19 03:32:26 You won't get any love at SO or here until you read/understand the android dev site Nov 19 03:36:40 best advice I ever got on IRC was rtfm or gtfo Nov 19 03:37:05 http://imgur.com/jacoj Nov 19 03:37:17 hahah Nov 19 03:45:43 must there b so many complicated ways to write code Nov 19 03:48:42 helo Nov 19 03:49:32 yes Nov 19 03:50:29 we have it easy Nov 19 03:50:42 meh, my test cases are hanging now, I hate concurrency bugs Nov 19 03:50:43 ? ;) Nov 19 03:53:20 I'm so grateful to be programming post google/stackexchange Nov 19 04:01:59 pfn whatcha working on; qicr ? Nov 19 04:05:14 is there a way to access the new > other templates in android studio like in eclipse? Nov 19 04:06:00 specifically content provider Nov 19 04:06:49 * g00s never knew there were any templates Nov 19 04:07:12 haha Nov 19 04:08:24 ./home/E/android-studio/sdk/extras/templates/ Nov 19 04:09:08 Also remember them in Android studio before, but they disappeared Nov 19 04:09:26 iirc Nov 19 04:11:06 i don't like templates :| Nov 19 04:11:17 unless they are c++ templates :D Nov 19 04:13:48 nope, no personal projects lately Nov 19 04:14:16 other than maintaining my sbt plug in so I can use it regularly Nov 19 04:15:49 ;) Nov 19 04:17:37 hi2u Nov 19 04:17:47 Progress Information : The user operation is waiting for background work to complete. Launching (Cancel Requested) Nov 19 04:38:34 how come this check fails http://pastebin.com/BvvQUMB9 ? Nov 19 04:48:35 I think Android handles file:/// URIs differently, Dragonya Nov 19 04:48:57 i see Nov 19 04:49:03 that is, it's a URL, not a file path Nov 19 04:49:20 ah Nov 19 04:49:24 Android handles file:// URIs with it's anus. Nov 19 04:49:30 how then should i link to a file in assets folder? Nov 19 04:49:51 for a webview? that's correct, Dragonya Nov 19 04:50:13 otherwise use assetmanager or whatever it's called Nov 19 04:50:22 ah thanks a bunch Nov 19 04:54:55 g00s: ping Nov 19 04:55:18 or rather anyone on osx ping Nov 19 04:55:43 and is Android Studio ever locking your mac via an ADB crash ? Nov 19 04:56:10 how would i go about opening an xml file from assets? Can the DOM parser read inputstreams or do i have to remake the file, then read it? Nov 19 04:56:41 StingRay_ i have plenty of adb crash logs; but i think only haxm actually hung the mac requiring a hard reboot Nov 19 04:56:58 na, getting adb forcing me hard reset Nov 19 04:57:03 dont often use emulator Nov 19 04:57:11 hm Nov 19 04:57:12 oh well, just me I guess Nov 19 04:57:21 i'm using 10.7 still Nov 19 04:57:34 well my main ws is 10.8.5 still Nov 19 04:57:46 not silly mavericks Nov 19 05:00:08 some dick just gave me a 4 star review (while I'm still in beta) for not supporting dual sim Nov 19 05:00:12 retard!!! Nov 19 05:00:43 oh, the fun is just beginning with reviews :) Nov 19 05:00:48 I wish google play supports clicking star rating to get all same star rate feedbacks. Nov 19 05:00:53 like ebay or bl Nov 19 05:01:00 thats like a mensa quality review compared to what you'll see Nov 19 05:01:38 StingRay_ i'm sure your abandoned GB users will show you some love :) Nov 19 05:02:02 I saw netflix got update woot Nov 19 05:02:03 fk u, you made me abandon them Nov 19 05:02:17 and I will reply with a link to your profile… you git Nov 19 05:02:18 but it don';t remember captions setting :( Nov 19 05:02:43 I got a 2 out of 5 from some guy mad 'cause he already had the functionality on his device and my stuff got in his way Nov 19 05:02:44 derp ... why'd you put it on then? Nov 19 05:03:11 StingRay_ wat? i told you not to support GB early on, but your derped out Nov 19 05:03:34 yeah but saying it dont have dual sim support is like saying why does my toaster not butter the bread also Nov 19 05:03:42 hey capella i notice when i go to FF for android plugins, yours is right at the top :) Nov 19 05:03:43 dual sim is not and will not be a part of android Nov 19 05:04:14 86k active users :) I'm top 11 Nov 19 05:04:17 could it be his phone has it ? Nov 19 05:04:37 Yah, older phones FF will still present the QuitMenu item Nov 19 05:04:51 well yes, but there is no dial sim api, it;s implemented at a hardware and OS variant level by manuf. Nov 19 05:04:57 no need for the addon designed to help people on ICS or later Nov 19 05:05:21 StingRay_ better put that in the app description, just to nip that in the bud Nov 19 05:05:59 capella i hope 4.4 kitkat speeds up FF & Chrome in some way (screen drawing) they both still seem laggy as hell Nov 19 05:06:31 i thought IE on my friends PoS lumia 521 was snoother Nov 19 05:06:37 *smoother Nov 19 05:06:44 Hey guys, is there a faster way to analyze the erorr logs than always saving them to a file and reading the text file? Nov 19 05:06:53 O.o Nov 19 05:07:10 mmm -- well we're already playing with KK of course ... I haven't gotten involved Nov 19 05:07:21 capella i meant more at the os level Nov 19 05:07:55 Ah oh, mmm ... what more can 4.4 wring out of it? Nov 19 05:08:04 someone know which crossdev arch i need to compile basic tools for nexus7 2013? (snapdragon s4 pro cpu), could i just pick armv7 and it will work? does it support hardfloat? Nov 19 05:08:14 at some point you hit hardware limits Nov 19 05:08:27 capella i dont think we have hw limit :) Nov 19 05:08:48 oh, well I mean buy a newer one kinda thing Nov 19 05:09:41 but yah, it sees technically there is no hardware problem Nov 19 05:09:42 Like I used to not have a drinking problem .... when there was beer in the fridge? no problem! Nov 19 05:10:30 capella: how did your app get so popular ? Nov 19 05:10:39 I mean what did you do… oh and what is it btw ? Nov 19 05:10:41 :) Nov 19 05:11:02 Just filled a strategic need .... using advance information ;) Nov 19 05:11:36 ok, but I mean you must have done something ? Nov 19 05:11:40 to promote Nov 19 05:11:41 heh - I'm a Firefox contributor, we removed some functionality that I thought people would want as an option, I rolled it out with the change Nov 19 05:11:51 Unable to instantiate activity ComponentInfo (component): java.lang.NullPointerException: null reference. How do I know where does that error occur?? Nov 19 05:11:57 I think mozilla promoted it to some degree Nov 19 05:12:03 ah Nov 19 05:12:10 wilornel: look at the line number ? Nov 19 05:12:12 :) Nov 19 05:12:13 Or at least pointed it out to people who didnt like the change Nov 19 05:12:18 it doesn't show it Nov 19 05:12:39 StringRay_: I'm reading the LogCat Nov 19 05:13:22 and does it suggest anythign there ? Nov 19 05:13:25 anything* Nov 19 05:13:44 another question, do i have to mess with java for gui applications? or is there a way to write them in c/c++? Nov 19 05:13:54 Nowhere does it suggest anything Nov 19 05:14:05 It says some causes or dictates the RuntimeException Nov 19 05:14:07 wilornel: pastebin your stacktrace Nov 19 05:14:13 benny-: you're asking for a world of hurt, just use java ... Nov 19 05:14:33 just use java, is like to say: just go by feet instead driving 1000miles by car ;) Nov 19 05:14:55 that makes no sense Nov 19 05:14:58 so its not possible? Nov 19 05:15:22 don't want to mess about java/c now, just want to know if its possible to use c Nov 19 05:16:23 StingRay_: http://pastebin.com/nWeNRitR Nov 19 05:17:10 looks like your build cant find google libs Nov 19 05:18:28 where do you see that? Nov 19 05:18:32 the UI pretty much has to be Java, benny- Nov 19 05:18:38 StingRay_: Nov 19 05:18:39 caused by/s Nov 19 05:18:41 unless you use something like the new Qt stuff Nov 19 05:19:20 leslie, thanks. read about some wrappers to access android classes, but its all old stuff :/ Nov 19 05:19:29 StingRay_: They're only "Caused by nullpointer" Nov 19 05:19:43 yes thats the exception Nov 19 05:19:49 and where and what causes it ? Nov 19 05:19:52 next line Nov 19 05:20:19 but for services, without gui, i can use c/c++? Nov 19 05:20:30 wilornel: there are a few Caused by: java.lang.NullPointerException: null reference Nov 19 05:20:33 complaining about having to use Java is like moving to France and moaning that everyone speaks French there. Nov 19 05:20:38 benny-: why not fly instead and use Assembler Nov 19 05:20:52 the official API, aside from a small subset in the NDK, is java Nov 19 05:21:55 shmoooz, cause all my software which i want to port is written in c/c++ not in assembler, not in java, not in qbasic... Nov 19 05:22:21 what are you porting ? Nov 19 05:22:28 so i will go for c-services with websocket interface and use html + websockets as gui :> Nov 19 05:22:53 car diagnostic stuff Nov 19 05:23:14 uses usb interface to talk to car electronic Nov 19 05:24:01 and there are things, where i'm sure that java can't to them. like handshakes at unusual baudrates, etc. Nov 19 05:24:25 Hey Sling_Ray_ Nov 19 05:24:48 StingRay_: Nov 19 05:25:10 lol Nov 19 05:25:16 then use JNI for those parts, benny- Nov 19 05:25:26 My browser crashed.... so what was I saying?... all of the causes are "caused by nullpoint error" no mention of google maps services Nov 19 05:25:41 yes thats the exception Nov 19 05:25:41 and where and what causes it ? Nov 19 05:25:42 next line Nov 19 05:25:53 wilornel: there are a few Caused by: java.lang.NullPointerException: null reference Nov 19 05:26:06 yeah is it not looking for some google stuff that it cannot instan… ? Nov 19 05:26:33 but how did you analyze the error to come up to such a conclusion? Nov 19 05:26:45 cause of where it is happening Nov 19 05:26:47 I think that yes, that's the issue, since I'm trying to implement a google thing but it doesn't work.. Nov 19 05:27:00 ok so you just look around the "caused by" and see then Nov 19 05:27:10 well you know what a stacktrace is ? Nov 19 05:27:13 leslie, thanks fot the hint, but i think c-service and websocket gui is the way i'm going Nov 19 05:27:24 don't have time to learn much new stuf Nov 19 05:27:25 +f Nov 19 05:27:57 Yeah its just the chain of methods attempted before the final error Nov 19 05:28:00 something along those lines Nov 19 05:28:06 in reverse yes Nov 19 05:28:29 Ok sooooo... better get started on that google thing. I have no idea how to solve it... will figure it out Nov 19 05:29:03 I think (I'm not really a programmer though) that if your ide is not warning you, it just cant find the libs are build time Nov 19 05:30:49 who are you if you're not a programmer? Nov 19 05:30:56 lol Nov 19 05:31:17 erm, I'm mee Nov 19 05:31:54 the guy that's helping you don't bite the hand that feeds Nov 19 05:33:03 has anyone played with activities in different processes? I have to do this for reasons I wont go into but it takes a while to start up the new processes. Is there anything I can do to hide the 2 seconds of blank screen while this happens? Nov 19 05:34:05 yay I removed some google-maps lines and it works again. It sucks that it doesn't say the exact error though..... Nov 19 05:34:21 wilornel_: well it kinda did Nov 19 05:34:23 :) Nov 19 05:34:25 lol Nov 19 05:34:30 It said something about google-maps Nov 19 05:34:35 but no exact lines Nov 19 05:34:39 mine although uneducated was not a random guess Nov 19 05:35:11 yeah, it's good, but it doesn't help debugging the solution Nov 19 05:35:23 whats to debug ? Nov 19 05:35:39 at build time it cannot find what you're asking it to use Nov 19 05:35:44 as is my guess Nov 19 05:35:49 no that's not it Nov 19 05:35:50 StingRay_ you have to stop saying you're not a programmer; you might not be a /good/ programmer, but you're programming so you're a programmer :D Nov 19 05:36:03 so he's a programmer? Nov 19 05:36:03 whew Nov 19 05:36:09 I was worried for him Nov 19 05:36:17 just like i do my icons but i dont always go around sayng "but i'm not a designer" Nov 19 05:36:33 well, i designed thos, didn't i - but i'm not a /good/ or /pro/ designer Nov 19 05:36:36 well when some1 asks what you do… do you not say [insert primary skill here] Nov 19 05:36:39 i'm not a programmer either i just hack together solutions Nov 19 05:36:58 I'm a programmer and a designer Nov 19 05:37:14 StingRay_ well, its like saying "i'm just a goofball at X, but this is what I think you should do on X' Nov 19 05:37:18 not professional at all, though Nov 19 05:37:40 g00s: thats exactly what I mean !!! Nov 19 05:37:53 well, why would anyone listen to a goofball :D Nov 19 05:38:00 just my way is a shorted way of saying it Nov 19 05:38:12 I randomly maybe able to help Nov 19 05:38:14 :) Nov 19 05:38:39 its best to just answer from a position of certainty rather then qualify your credentials (or lack thereof) Nov 19 05:38:50 I disagree Nov 19 05:38:51 it gets tiring ;) Nov 19 05:39:08 fuck man, i'm not a programmer either then. i'm a circuit designer Nov 19 05:39:13 lol Nov 19 05:39:15 VLSI Nov 19 05:39:25 it's rather important that people know my helpfulness exceeds my authority in this area !!! Nov 19 05:39:37 i'm going to say, with everything, "heh, I'm not a programmer - i do physical cmos layout" but this is what i think you should do :) Nov 19 05:39:38 :) Nov 19 05:40:09 can helpfulness exceed knowledge / wisdom ? Nov 19 05:40:27 "need/willingness to" yes…yes it can :) Nov 19 05:40:27 that's what I keep saying in job interviews Nov 19 05:41:45 if you're programming, you're a programmer :) Nov 19 05:41:54 if you are thinking about life, you're a philosopher Nov 19 05:41:58 I'm a programmer, I program your minds Nov 19 05:42:00 even if your philosophy sucks ;) Nov 19 05:42:28 shmoooz you can do better, program societies Nov 19 05:42:49 people either program or are programmed ;) Nov 19 05:43:47 Deep Thoughts Nov 19 05:43:51 by g00s Nov 19 05:43:53 :D Nov 19 05:44:02 lol I guess I do, I run a conspiracy theorist website Nov 19 05:44:08 oh god lol Nov 19 05:44:11 I rather thing you can't do either, and both is always true Nov 19 05:44:13 nice Nov 19 05:44:21 911 was an inside job! Nov 19 05:44:36 i watched Alax Jones a few weeks ago and don't know how the guy gets through the day Nov 19 05:44:47 i don't know how he has fans Nov 19 05:44:47 java on android is a inside job... -,- Nov 19 05:44:52 he was just a hyperactive child Nov 19 05:44:54 s/android/linux Nov 19 05:44:55 i mean, talk about a fractal of tangential thoughts Nov 19 05:45:26 i mean i love a good conspiracy as much as the next guy, but who actively tunes into that dude Nov 19 05:45:37 i swear its because of the menacing sounds of his voice Nov 19 05:45:47 i mean, when Alex gets up in the morning and the sky is grey, he's probably thinking there is some geoengineering experiment going on by aliens Nov 19 05:46:16 that they don't want us to know about, so that's why we have nice blue days Nov 19 05:46:18 the cons trails , they are coming for me ! Nov 19 05:46:33 my god, its full of cons trails ! Nov 19 05:46:56 its like the Truman show, if you go up there its just spot lights and covering painted with clouds Nov 19 05:47:16 *contrails, err Nov 19 05:47:41 anyone notice the permission error in content pendingIntent for notifications in kitkat ? Nov 19 05:47:43 so you're not an authority on the subject? Nov 19 05:48:01 shmoooz but there is one experiment going on that will determine if we're living in a simulation, i bet the conspiracy guys will go nuts over that one Nov 19 05:48:02 had me going Nov 19 05:48:20 yep we're stuck in the matrix alright Nov 19 05:48:26 goos how would they find out that we do? Nov 19 05:48:33 no way, i already took the red pill Nov 19 05:48:38 impossible in a good simulation Nov 19 05:48:48 expect it's wanted Nov 19 05:48:51 benny-: its easy, just take the red pill Nov 19 05:49:03 i take the green often enough ;) Nov 19 05:49:05 the only real Nov 19 05:49:22 so it's missing in the movie Nov 19 05:50:14 lol Nov 19 05:51:50 "The physical world as a virtual reality" by Brian Whitworth is worth a read ;) Nov 19 05:51:58 if someone likes the VR theoroy Nov 19 05:52:00 -o Nov 19 05:52:26 it's very appealing Nov 19 05:53:53 and we are going the same way, imho Nov 19 05:54:00 agreed Nov 19 05:54:08 building computers which should think "like" humans Nov 19 05:54:14 virtual worlds Nov 19 05:54:37 one day, we would run in the scenario where we build such a world Nov 19 05:54:39 and then the computers are gonna wonder if they are in a simulation, and the computers they build and so on ... Nov 19 05:54:45 why should we be the first ones? Nov 19 05:54:47 HAHAHAHAHA Nov 19 05:54:55 its a never ending cycle Nov 19 05:55:03 so are we the computers then Nov 19 05:55:12 if we aren't now ;) Nov 19 05:55:26 yep we are just one in many generations that have been trapped in a matrix by their masters Nov 19 05:55:47 a simulation within a simulation within a simulation Nov 19 05:55:53 ^^ Nov 19 05:56:06 all running on dvm Nov 19 05:56:29 i'm sure it's java if i look around, how it messes with ressources :p Nov 19 05:57:31 lol glad to see people actually chat in this channel. me and this got shushed last night Nov 19 05:58:00 guy* Nov 19 05:58:32 shushed? sry my english isn't the best ;) Nov 19 05:58:45 shhhhh Nov 19 05:58:52 ahhhhh :) Nov 19 05:59:07 he said go to #android if you want to chat Nov 19 05:59:12 lol Nov 19 05:59:18 ya this conversation would have never happened in #android Nov 19 05:59:44 maybe he is in sleep cycle now :> while(outVol < 10 && this.energy < 50) sleep(10000); Nov 19 05:59:45 ;) Nov 19 06:00:08 lol Nov 19 06:00:33 benny you'r biggest problem with not using java will be different hardware needs different native code Nov 19 06:00:54 shmoooz i can live with one fixed plattform for my project Nov 19 06:01:13 just choosed android cause hardware is mostly open, works with linux, and hardware is cheap Nov 19 06:01:33 maybe i will go for full custom rom and remove the android stuff and just keep the kernel Nov 19 06:02:20 have done that for armv5 a while ago, but afaik armV5 isn't compatible to armv7 Nov 19 06:02:30 may as well just go ubuntu phone then Nov 19 06:02:41 even firefoxOS Nov 19 06:02:58 no need of phone or great gui Nov 19 06:03:04 rpi Nov 19 06:03:12 BBB Nov 19 06:03:13 running xserver and crossdev-toolchain would be enough Nov 19 06:03:58 as android doesn't use xserver i couldn't just port all tools Nov 19 06:04:04 to basic andr Nov 19 06:04:06 +o Nov 19 06:04:32 ubuntu phone exists? Nov 19 06:04:37 yes Nov 19 06:04:48 ubuntu port exists, does it support phone? Nov 19 06:04:49 well, i think its ubuntu touch Nov 19 06:04:50 thought they didnt meet their crowd funding thing Nov 19 06:05:29 and scraped it completely, which is a pretty stupid assumption now that I think about it Nov 19 06:05:51 +p Nov 19 06:06:04 i trust shuttleworth more than larry page ;) Nov 19 06:07:04 when all ends, you won't be worthy to go on his shuttle Nov 19 06:07:12 lol Nov 19 06:08:00 ISS is just a project, to keep some humans alive, while the world gets doomed :p Nov 19 06:08:07 put it on the conspirancy website Nov 19 06:08:07 xD Nov 19 06:10:20 hmm, does Google music have an api Nov 19 06:10:40 I want to remote control the music app from another device Nov 19 06:12:25 pfn: there's an unofficial one Nov 19 06:12:38 http://unofficial-google-music-api.readthedocs.org/en/latest/ Nov 19 06:15:31 that's an api to the the Web service Nov 19 06:15:38 not to the Android app Nov 19 06:16:22 one of my devices is just gonna play Google music to my sound system, now I need a remote for it Nov 19 06:17:37 I need a new bluetooth a2dp dongle Nov 19 06:17:52 my jabra knockoff sucks Nov 19 06:18:47 pfn: is this the same thing ? http://dpogue.ca/gmusic.html Nov 19 06:19:10 it says beta api used by the Google Music client for Android Nov 19 06:20:57 yeah, not what I'm looking for Nov 19 06:21:15 I want to control app on device, not remote service Nov 19 06:25:04 are google play ratings country specific or global? Nov 19 06:25:51 global Nov 19 06:26:14 any way to do like "public void name(int i or String name)" in java? Nov 19 06:27:34 overload Nov 19 06:28:56 ah so just recieve Object and do if instanceof? Nov 19 06:29:44 so using google translate on a data centric app is a recipe for failure? got it Nov 19 06:32:45 no Nov 19 06:32:54 overload Nov 19 06:33:55 you'd write two methods with the same name but that take different parameters to overload Nov 19 07:13:17 anyone available to chat about a problem I'm having? Nov 19 07:14:13 fight fire with fire ! Nov 19 07:14:40 the short version: I have a sun5i A13 tablet, tried to load CWM on it. Now it only boots into CWM. I can ADB shell, but do not have access to /dev/block/nand* devices. Nov 19 07:15:36 I managed to sideload the original recovery's ramdisk, chroot into it, and run init, which gives me the original recovery UI on the screen, but I still cannot access any block devices to reflash the recovery Nov 19 07:15:48 any suggestions? Nov 19 07:16:03 dont ask in an app development channel ? Nov 19 07:16:16 maybe go to #android-root Nov 19 07:16:40 thanks. I'll try there Nov 19 07:18:23 #android-root - "i've rooted my device, how do i fix it " hehe Nov 19 07:19:31 :D Nov 19 07:21:46 lol Nov 19 07:29:43 how come this isnt valid http://pastebin.com/NwH85M2c ? It gives me an exception and points to the dbuilder not being able to parse xml Nov 19 07:32:26 http://pastebin.com/aDvf2Bz2 thats the stacktrace i get Nov 19 07:34:18 hi, im trying to build a c++ application with the ndk. Now the compiler tells me that the bits/local_lim.h is missing and the compiler is correct, it is not in the android-toolchain/include folder. Shouldn't it be there? Nov 19 07:37:58 play books seems to butcher tables in epubs Nov 19 08:10:09 Does anyone a bit more clever than me see why "for" loop is only running once? It's supposed to run twice http://pastebin.com/wAMwvhNN Nov 19 08:11:03 Dragonya btw, you can use java 7 multi-catch now ;) Nov 19 08:11:08 perhaps there is only one item in the list? Nov 19 08:11:36 g00s im sorry im a bit new, whats a multi-catch? Nov 19 08:12:08 http://pastebin.com/JiGvQHwW thats the xml file im reading Nov 19 08:12:36 http://www.baptiste-wicht.com/2010/05/better-exception-handling-in-java-7-multicatch-and-final-rethrow/ Nov 19 08:13:37 aah, multi-catch xD Nov 19 08:14:17 Dragonya: don't you loop over Arrangementer tags in line 14? There's only one of these in the xml Nov 19 08:15:11 rayo ah thanks Nov 19 08:15:55 so what is the best way to show the drawerlayout on first open Nov 19 08:17:36 lemonxah so how did the mqtt stuff go ? Nov 19 08:17:57 g00s, that is for a personal project :) and its going awesome i love it Nov 19 08:18:06 scala + mqtt + android = win Nov 19 08:18:07 :D Nov 19 08:18:54 lemonxah so did you stay with paho or fusesource ? Nov 19 08:19:11 rayo yupp it works perfect now, thank you so much :D Nov 19 08:20:44 paho Nov 19 08:23:50 g00s, multicatch on android? Nov 19 08:24:01 Zharf yeah O.o Nov 19 08:24:13 you need built-tools 19 Nov 19 08:24:20 cool Nov 19 08:24:25 maybe we'll get lambdas soon Nov 19 08:24:27 ;) Nov 19 08:24:40 dream on, eh Nov 19 08:25:08 well …thats a weird one, because oracle is making a lot of changes to the runtime libraries for lambdas Nov 19 08:25:21 as well as the concurrency stuff jsr166 Nov 19 08:25:35 masically, this is going to be - very interesting what happens here with android Nov 19 08:25:44 *basically Nov 19 08:25:48 magically Nov 19 08:25:50 ;) Nov 19 08:26:07 so, in build-tools 19 , we see some java 7 language features, but nothing like java 7 libs NIO.2 Nov 19 08:26:42 i think a trainwreck is coming Nov 19 08:28:35 or you can do what lemonxah is doing and use scala :) Nov 19 08:29:18 i dont see how google is going to provide / maintain java 7+ level /runtime libraries/ ala harmony Nov 19 08:31:52 scala is the way to go man :) Nov 19 08:32:11 i'd like to see kotlin / ceylon Nov 19 08:33:31 wow i'm feeling stupid. It is possible to pull files off of the emulator using adb right? Nov 19 08:33:40 yeah Nov 19 08:33:56 maybe i just am stupid Nov 19 08:34:07 keep getting remote object does not exist Nov 19 08:36:59 ls Nov 19 08:37:02 I'm trying to do In App Purchase server side verification Nov 19 08:37:11 oh, sry, wrong command line :D Nov 19 08:37:13 but it fails because of incorrect padding of the base64 signature Google Play is sending Nov 19 08:37:22 I'm sending String dataSignature = data.getStringExtra("INAPP_DATA_SIGNATURE"); to the server where I verify it in Python using my apps public key according with https://developer.android.com/google/play/billing/billing_integrate.html#billing-security Nov 19 08:37:53 On the server I get binascii.Error: Incorrect padding when I do base64.b64decode(b'wh9sGTrtA2l8cBUnNR7NIw270FE0nLd9KalsPDD81lPReqpMuglOoCXsP0C0yZB5FMFex3B8K4tcGjuCp228el6jtPyzjKuuUF8ca45EtlLZqza5SNvT4qfThOUNnrHcelbxaqqlI3w6Rs0Rju1j8okYs1HGXpRSaYdT2EdckLoEuaG46iVe7d5fOWAIFEmTXAz3eD8SP3P9alkKtxiOpYrTR/+KZ+d4bnCBttK2Gjp0+JIx2IKN+3VSN3K9tY1teY16WPQYDyyO4PTl3r5GFq/ILCCwI26S5Z0DrxXmlVqb5rS8JLyPKzhsV50ktOCC5bu2BKc3lT0hj5iLJRzduA') Nov 19 08:38:03 But only for some purchases Nov 19 08:38:24 Sometimes Google adds base64 padding https://en.wikipedia.org/wiki/Base64#Padding to the signature i.e. == at the end of it Nov 19 08:38:37 and then the verification with the public key succeds Nov 19 08:38:52 i.e. verifier = PKCS1_v1_5.new(publicKey) validSignature = verifier.verify(_hash, _signature) Nov 19 08:39:14 when I try to manually add the padding i.e. = or == to the signature the signature verification fails Nov 19 08:39:19 validSignature is False Nov 19 08:40:15 when I don't add the padding manually I get error "Incorrect padding Non-base64-alphabet characters in the signature: Nov 19 08:40:15 b'wh9sGTrtA2l8cBUnNR7NIw270FE0nLd9KalsPDD81lPReqpMuglOoCXsP0C0yZB5FMFex3B8K4tcGjuCp228el6jtPyzjKuuUF8ca45EtlLZqza5SNvT4qfThOUNnrHcelbxaqqlI3w6Rs0Rju1j8okYs1HGXpRSaYdT2EdckLoEuaG46iVe7d5fOWAIFEmTXAz3eD8SP3P9alkKtxiOpYrTR/+KZ+d4bnCBttK2Gjp0+JIx2IKN+3VSN3K9tY1teY16WPQYDyyO4PTl3r5GFq/ILCCwI26S5Z0DrxXmlVqb5rS8JLyPKzhsV50ktOCC5bu2BKc3lT0hj5iLJRzduA' Nov 19 08:40:25 What can I do ? Nov 19 08:40:28 I don't think the ' is a valid base64 character Nov 19 08:40:37 pduin: that's not part of the string Nov 19 08:40:53 pduin: that's how you define a binary string in Python Nov 19 08:41:05 you can either do it b"my binary string here" or b'my binary string here' Nov 19 08:41:24 I don't know python Nov 19 08:41:33 now you do :-) Nov 19 08:41:41 ha! just a little bit Nov 19 08:42:18 does freenode have a python channel? Nov 19 08:43:00 lol, its one of the most popular channels on freenode Nov 19 08:43:02 #python Nov 19 08:43:03 http://ideone.com/0RxA3K Nov 19 08:43:09 This is not a Python problem Nov 19 08:43:15 This is a Google Play store problem Nov 19 08:43:21 ranks #5 on my list haha Nov 19 08:43:23 Google sends me incorrect data Nov 19 08:47:50 And my clients are being billed even though the purchase verification fails on the server!! Nov 19 08:48:14 oh man Nov 19 08:48:34 cff i would take it up with play store support Nov 19 08:48:45 never tried them personally Nov 19 08:48:56 i've heard a few horror stories about IAP Nov 19 08:50:17 guys, If I don't need a < Android 4.0 support, will I need to use support library for using Fragments? Nov 19 08:50:35 not really necessary Nov 19 08:50:41 if you set minsdk to 14 Nov 19 08:51:08 seitensei: Okay! Thank you Nov 19 08:55:45 is there a way to make adjustPan not move my action bar out of view? Nov 19 09:02:15 i built a standalone toolchain with make-standalone-toolchain.sh for platform 19, host x86, toolchain 4.7, but the header bits/local_lim.h is missing (maybe others too but this one is used in my app). Anyone know what could be wrong? Nov 19 09:07:13 I've modified the build.gradle file in android studio to include the libs folder using the 'native-libs.jar' code Nov 19 09:07:47 the project builds , but there is no apk under build/classes/debug so i am unable to debug the project Nov 19 09:08:09 there is only an apk under build/apk folder Nov 19 09:08:19 adjustPan hiding actionbar .. anyway around that? Nov 19 09:08:40 hi all, will the s4 cable work on an s3? Nov 19 09:09:01 xp_prg, wrong channel this is for development but sure it should Nov 19 09:10:23 the apk under build/apk has the ndk .so files packaged in the right place .. for some reason studio is unable to create the debug apk Nov 19 09:12:16 lemonxah I am trying to get adb to connect to it, it is not working, I enabled usb debugging :( Nov 19 09:12:21 I am on osx 10.8 Nov 19 09:13:04 i am on linux and it just works for me i am unsure why osx wont work Nov 19 09:13:20 only think i can think of is osx doesn't recognize the device Nov 19 09:13:30 but i dont know mac at all Nov 19 09:14:29 xp_prg, the cables are just regular microusb, no? Nov 19 09:16:26 I guess :> Nov 19 09:18:56 Hello, im newbie developing in android i want to start develop games for android... I read about libgdx and Unity i whant to know what is the best way for create games for android... Nov 19 09:20:25 well, you coudl start by reading a tutorial Nov 19 09:20:30 Some suggestions? Nov 19 09:20:57 Otiose i read a lot of tutorials Nov 19 09:21:15 well then you're off to a great start :D Nov 19 09:21:17 anybody here, who works on aosp? i seek for advice how to dive into code and analyse it efficiently Nov 19 09:22:28 Otiose and i dont undestand the differences between unity and libgdx.. I think libgdx is just a librarie and unity is an ide.. Its true? Or im confused? Nov 19 09:22:57 codekK: sounds like you need to read descriptions some more Nov 19 09:23:47 codekK: it sounds like you haven't done too many tutorials... Nov 19 09:24:07 Maybe, but i see a lof of videos and tutorials and i see some ppl works with unity with UI but i like write code Nov 19 09:24:19 why do the newbies always want to make games Nov 19 09:24:20 Om if u think it.. Nov 19 09:24:23 for such a shitty gaming platform too Nov 19 09:24:58 i dont know, but i can download GTA Vice City to my phone Nov 19 09:25:00 thats kinda neat Nov 19 09:25:16 hi Nov 19 09:25:22 I habe experience with java, c, c++, php... But never i do a graphic game and i think start for android is a good way... Nov 19 09:25:45 im not talking about programming tutorials Nov 19 09:25:50 im talking about unity/libgdx tutorials Nov 19 09:25:55 Yes Nov 19 09:26:05 Yesterday i do my first game with libgdx Nov 19 09:26:14 well then make another one with unity Nov 19 09:26:18 and you'll know the difference Nov 19 09:26:23 Okey Nov 19 09:26:25 a game which is ussing InMobiAdView, is sending evil SMS to premium services Nov 19 09:26:32 Maybe is the solution to my problem Nov 19 09:26:38 sorry if you think im being rude, but the answer is that i dont know Nov 19 09:26:52 for example kungfu taxi Nov 19 09:27:03 if you click an ad, you are fucked Nov 19 09:27:47 No problem, maybe my question so ambiguos but idk if with unity ican write code only with UI Nov 19 09:27:53 ring3: report it to google Nov 19 09:28:10 When i arrive to home i ll download unity and taste it Nov 19 09:28:21 maybe you want to try SDL2 - as a newbie i think its the wrong way to use an existing engine Nov 19 09:29:00 lol taste it Nov 19 09:29:01 StingRay_: how? Nov 19 09:29:16 is there any email? Nov 19 09:29:35 play store support im guessing Nov 19 09:29:40 oks Nov 19 09:29:41 DreyFax m sdl is grpshilibrarie for c++ n? Nov 19 09:29:41 thnx Nov 19 09:29:51 http://www.libsdl.org/index.php Nov 19 09:30:04 Grsphics librarie* Nov 19 09:30:16 Sry im writing in phone Nov 19 09:30:23 lol Nov 19 09:30:29 ring3: on the play store website or in the playStore app Nov 19 09:30:42 market listing, bottom, flag as inappropriate Nov 19 09:30:48 enter reason Nov 19 09:30:50 submit Nov 19 09:31:14 next thing is, its complete free - you dont have to pay any license fees for commercial use Nov 19 09:31:22 ok StingRay_ Nov 19 09:32:14 tbh any user that doesn't read the permissions of an app and or thinkgs that sms is needed for a game is in trouble in the marketplace :) Nov 19 09:32:22 thinks* Nov 19 09:32:27 Hi all, I need to develop ann app for a smartglass. There is a hardware select key. I gues that this isn't the same like the home button, right? Nov 19 09:33:21 the select is maybe the same like a select key on a gameconsole? Nov 19 09:41:06 the standards are so laid back about permissions users are used to seeing huge list Nov 19 09:41:55 gradle is making my life a living hell Nov 19 09:42:03 there should be an automatic permissions check that flags to the user, permissions that really are not common for this app catagory Nov 19 09:42:43 hi guys. I made a custom camera application, that take pictures and save them on a specific folder. then I have an intent to pick a picture from the gallery Nov 19 09:43:18 but problem : the gallery isnt refreshed when im taking new pics with my app, and i cant see them with the pick picture intent Nov 19 09:43:42 i have to connect my device to the computer and disconnect to make it work Nov 19 09:43:52 then gallery is resfreshed Nov 19 09:44:10 an idea to make it work without that ? Nov 19 09:46:25 macTAR: there maybe many ways to solve it Nov 19 09:46:42 but not sure what the use case and user flow are for what you're talking about Nov 19 09:54:58 macTAR, you'll need to tell android to run the mediascanner after you save the image Nov 19 09:55:04 so it'll insert it into media store Nov 19 09:55:51 macTAR, http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context, java.lang.String[], java.lang.String[], android.media.MediaScannerConnection.OnScanCompletedListener) Nov 19 09:56:11 or this: http://stackoverflow.com/questions/13270789/how-to-run-media-scanner-in-android Nov 19 09:56:56 ok thx ill check that Nov 19 10:06:31 anyone around who has any knowledge on roboelectric and actionbarsherlock? Nov 19 10:07:31 having the following issue: http://pastebin.com/fHuBwjcR Nov 19 10:11:12 does somebody know a good sdk/library for text recognition with camera? Nov 19 10:11:53 I think tesseract-ocr is your best bet. But it's slow. Nov 19 10:12:13 um, and relatively huge. Full language support is > 300 MB Nov 19 10:12:33 Well that's interesting. When using adjustPan, after hiding the soft keyboard, the top of the screen is black. Nov 19 10:13:29 alankila tnx Nov 19 10:14:09 Some images does not show up when I run my app on nexus, is that because of their size? Nov 19 10:15:30 anli, or you have different layout for different screen sizes? Nov 19 10:15:30 Its 2998x120 Nov 19 10:15:36 nope Nov 19 10:16:20 android:layout_width="fill_parent" and android:layout_height="20dp" Nov 19 10:16:34 Maybe I should downsize it Nov 19 10:17:15 Hello can anyone explain why you would add the synchronized modifer to a text watcher on an edit text? Nov 19 10:17:59 no idea :) Nov 19 10:18:22 sorry i meant on the method like onTextChanged or AfterTextChanged Nov 19 10:18:28 (of the textwatcher instance) Nov 19 10:18:46 yeah... no idea :) It should be called on UI thread always./ Nov 19 10:20:11 scanner works well Mavrik thats great Nov 19 10:23:18 how can I fix this: I would like to use the webcam of my pc with an android emulator but when i select webcam0 and Edit the adv, then click edit, the cam is back to emulated... Nov 19 10:25:02 Hey guys, how can i improve the write speed of this function: http://pastie.org/private/f8ut16ipgidc5rvm3kqq# motto is: write 0 bytes to internal memory until it's full. currently it takes a rather long time to write 2gb (~3mins). Nov 19 10:26:57 Hi Nov 19 10:27:14 Does someone know the intel droidboot? Nov 19 10:27:16 Nimooli, try using nio if you can Nov 19 10:27:29 Nimooli, but honestly... phone flash IS slow. Nov 19 10:28:04 Mavrik: but 10mb/s slow?! :( Nov 19 10:28:30 Nimooli, 10 MB/s is really fast Nov 19 10:28:31 Mavrik: I'll take a look at nio packages, thanks Nov 19 10:28:42 you really should expect more than 2-5MB/s from SD cards in most devices Nov 19 10:28:47 *shouldn't Nov 19 10:30:54 Mavrik: That's unfortunate Nov 19 10:36:16 hallelujah i solved my roboelectric and apklibs problem Nov 19 10:54:34 Hi! I want to create a Gingerbread ARM AVD, but I can only download a x86 Atom image in the SDK Manager Nov 19 10:58:59 Nimooli: sd cards are usually slow, but there are faster cards: http://en.wikipedia.org/wiki/Secure_Digital#Speeds Nov 19 10:59:22 I want to upload a new version of my android app, if I change screenshots in the app I currently have, will those changes be visible immediately? I dont want that Nov 19 10:59:24 also, the internat flash memory on some devices can me much faster Nov 19 10:59:53 Peetz0r: Yes, thanks mate.. just finished reading that page. Nov 19 11:00:02 :) Nov 19 11:00:34 ImageView dont handle EXIF orientation flags ? Nov 19 11:11:05 keep getting Artifact 'com.android.support:support-v4:19.0.0@jar' not found. when starting a new project in android studio Nov 19 11:11:34 end up having to reinstall or do something drastic every time it starts happening again Nov 19 11:13:34 I have a module that includes a resource and a library in libs/ I added this as a module dependency and added the library as library dependency as well.. this worked once, but now however I get an error that multiple dex files define com/video/adsdk/BuildConfig... the package names of the library and the main project are the same but this still works with another project that includes the library as sources.. whats wrong here? Nov 19 11:20:32 hm nvm, I did an error, creating that jar file Nov 19 11:25:50 ok guys i hate android :) Nov 19 11:26:05 addHeaderView on listview is in since api 1 Nov 19 11:26:28 and it can only be called before setting the adapter Nov 19 11:27:11 but calling it before the adapter then setting adapter works fine untill you removed the last header view then you cant add a new one cause the adapter was allready set? Nov 19 11:29:37 might be worth adding multiple view types in the list and doing it that way rather than header views Nov 19 11:37:20 CallumTaylor, that is a bad way of doing things :/ i am actually coming from that approach but it gets too messy after 7 or 8 viewtypes that is not in the cursor that is returned but that should go into the listview aswell Nov 19 11:37:40 that is why there is headerviews and footerviews Nov 19 11:37:49 @Eeeeeee , make sure you have the support repositories installed in the SDK manager Nov 19 11:38:07 should be in the extras section Nov 19 11:38:10 how many headers are you adding?? Nov 19 11:38:22 lemonxah: if you wanted that much complexity and control, you can use 2 adapters, one deffered adapter Nov 19 11:38:44 I like to take this approach with lots of different view types: http://antoine-merle.com/blog/2013/06/11/making-a-multiple-view-type-adapter-with-annotations/ Nov 19 11:38:50 (minus the annotation bit) Nov 19 11:39:59 StingRay_, that is what the addHeader and addFooter gives you it creates a deffered adapter Nov 19 11:40:19 really ? Nov 19 11:40:25 yes Nov 19 11:40:26 I just thought it was, adding a view Nov 19 11:40:33 not actually another dataset Nov 19 11:40:50 CallumTaylor, that approach works great if all types you want to display is typed in the db and comes with the cursor data Nov 19 11:41:16 hmmm Nov 19 11:41:20 extend Object? :) Nov 19 11:41:23 i have views that has got nothing todo with my cursoradapter that i need to display and hacking them into that adapter is ugly Nov 19 11:41:51 lemonxah: so how do you deterim where and what these views are ? Nov 19 11:41:53 CallumTaylor, no see each item i have to add i have to override the getCount on the adapter Nov 19 11:42:14 StingRay_, they are always on top and they are added / removed as needed like for example Nov 19 11:42:18 its a contact list Nov 19 11:42:31 but you might have invites that doesn't display in the contact list Nov 19 11:42:41 what top of the list ? Nov 19 11:42:43 but you want to tell the user that there are invites Nov 19 11:42:46 yes Nov 19 11:42:52 headerviews and footerviews Nov 19 11:42:58 are actually items in the listview Nov 19 11:43:03 so they scroll with all other items Nov 19 11:43:04 why would you not just use, a view ? Nov 19 11:43:27 cause then it doesn't scroll with the content of the listview Nov 19 11:43:29 as in nothing to do with adapter/listView Nov 19 11:43:32 and its always visible Nov 19 11:43:42 its not the behaviour i want Nov 19 11:43:49 oh ok you always want it to scroll Nov 19 11:43:57 yeah just use 2 adapters Nov 19 11:44:12 the behaviour is working perfectly on ICS+ its on 2.3 its not working .. only case its not working Nov 19 11:44:18 well, not sure about footer though Nov 19 11:44:51 StingRay_, do you know what the HeaderViewListAdapter is? Nov 19 11:45:00 Hey guys, how do you tell adapter to redraw it's views if you want to mark clicked item as selected. notifyDataSetChanged is not working and as I understood not specifyed for this issue. Thanks in advance) I handle onItemClick in an Activity, so I cannot manipulate the view directly.. and getView is not being called on notfyDataSetChanged Nov 19 11:45:01 its a deffered adapter that wraps your adapter Nov 19 11:45:24 ok so same as creating a nested adapter, just a little less control Nov 19 11:45:34 so yeah, kinda get what it is, not that I have used it Nov 19 11:50:17 mmm, never mind, issue solved Nov 19 11:51:20 hey Nov 19 11:51:21 defuera: notifyDataSetChanged tells the adapter the whole dataset is invalid, sometimes better to do a manual update rather than that Nov 19 11:51:32 i'm trying to create a searchView using this: http://developer.android.com/training/search/setup.html#create-sc Nov 19 11:51:58 and i'm stuck because of the method "getActionView()" it's support only API11+ and i support API8 Nov 19 11:52:07 any idea how to bypass it? Nov 19 11:53:09 ok how can I do a ListView that contains items that expand and collapse to display categories ? Like I want to have Audio section that expands all the mp3's on your device, so it would have a + when minimized and - when maximized Nov 19 11:53:29 dammit the Python base64 implementation is broken! It fails to decode strings with no padding! Nov 19 11:54:05 I guess there's nothing already built into the api to do that ? Nov 19 11:54:07 If anyone heres does in app purchase verification on the sever with Python, beware! Nov 19 11:54:09 How to implement this kind of layout? http://imgbin.org/images/15714.png Nov 19 11:54:14 *server Nov 19 11:54:41 base64.b64decode will bite you! Nov 19 11:55:47 cant you just add the padding? Nov 19 11:55:56 No Nov 19 11:56:02 The signature verification fails if I do so Nov 19 11:56:16 I need to verify the signature Google Play store sends with my public key! Nov 19 11:56:24 If I modify the signature it fails! Nov 19 11:56:33 even though the base64 decoding succeded Nov 19 11:57:15 The base64 implementation in Python is unable to decode base64 strings which have no padding Nov 19 11:57:22 maven__: you want 3 scroll views ? Nov 19 11:57:24 http://ideone.com/y3fcO1 vs http://ideone.com/0RxA3K Nov 19 11:57:27 How does adding padding change the result of the decode? Nov 19 11:57:30 cause thats what it looks like Nov 19 11:57:44 pduin: https://en.wikipedia.org/wiki/Base64#Padding Nov 19 11:58:14 StingRay_, No, I want the three view can scroll Nov 19 11:58:15 plz? Nov 19 11:58:24 at the end of the first link on ideone you will see that using the base64 implementation provided by Google it works Nov 19 11:58:24 can i get help with SearchView? Nov 19 11:58:37 Where using the Python implementation of base64 it fails Nov 19 12:00:05 maven__: as one ? Nov 19 12:00:11 Yes Nov 19 12:00:25 then that middle view is not a listView Nov 19 12:00:39 it's either a linearLayout or adapterView Nov 19 12:00:41 add button as a header and footer of a list Nov 19 12:00:57 plzzzzzzz Nov 19 12:00:58 StingRay_, It is a listivew. Nov 19 12:01:10 then your using it wrong Nov 19 12:01:26 CallumTaylor, I have other views excluding the buttons, so add them as the foot or head is difficuly Nov 19 12:01:40 listView kinda need to have fixed dimensions always, and are contained in their own scroll Nov 19 12:01:59 so fix height and they scroll, either of those not true, they you should probably use something else Nov 19 12:02:38 anyone? Nov 19 12:02:59 elichai2: shuttup, if some1 wants to answer they will Nov 19 12:03:08 shouting/repeating wont help Nov 19 12:03:11 ok :( Nov 19 12:04:11 elichai2: http://stackoverflow.com/questions/17873648/android-support-library-actionbar-not-working-in-2-3-device Nov 19 12:04:35 in short: use the support library Nov 19 12:08:04 menuitemcompact is in v4 or v7? Nov 19 12:08:12 elichai2: http://developer.android.com/reference/android/support/v7/widget/SearchView.html v7 Nov 19 12:09:52 general development question: which documentation tools do you use? I dont mean javadoc but end-user documentation.. right now we are writing in a docx and compile it to pdf afterwards with the typical docx-issues. can anyone recommend anything better? Nov 19 12:10:16 doxygen Nov 19 12:10:58 thanks Nov 19 12:11:04 markdown and some maven plugin Nov 19 12:12:02 CallumTaylor: i dont want to generate doc from sourcecode (for this i'd just use javadoc). i want to create a pdf (maybe with pictures) for clients Nov 19 12:12:18 doxygen Nov 19 12:12:41 it does other stuff Nov 19 12:12:44 html, latex etc Nov 19 12:14:41 http://www.stack.nl/~dimitri/doxygen/manual/output.html Nov 19 12:16:03 CallumTaylor: doxygen is as I understand it a tool to generate documentation from source code, which would be used by a developer... I dont need that... Nov 19 12:16:18 markdown + maven plugin sounds more suiteable... Nov 19 12:16:30 deebo: do you have a working setup with it? Nov 19 12:18:54 hi, I have a listview that I use as a chat message display, and I call notifyDataSetChanged on the adapter, but it does not refresh the view. The data is there, and as soon as I touch the list on the phone, it jumps exactly where it should have been after calling notifyDataSetChanged, but does not refresh on its own Nov 19 12:19:34 How do I compile my NDK library for x86? I have changed TARGET_ARCH_ABI from armeabi-v7a to x86 or even all but it only compiles for arm Nov 19 12:19:41 the jump signifies to me that the call to notifyDataSetChanged worked, but is not translated to the GUI display, not until a touch event prompts the listview to redraw Nov 19 12:23:33 hi Nov 19 12:25:14 I'm completely new. my phone is using 4.2. I installed Eclipse and ADT plugin, but I am getting only 4.4 when I go to New > Project on Eclipse Nov 19 12:26:43 you have to install the SDK for your desired target version Nov 19 12:26:53 start SDK manager Nov 19 12:28:22 defnordic: where is that? in Eclipse? Nov 19 12:29:35 I think there is a button for it somewhere, but you can just start it from the install dir of the SDK bundle Nov 19 12:32:12 got it Nov 19 12:32:32 install the whole 4.2 branch Nov 19 12:32:45 restart eclipse and you should be able to select it as a target Nov 19 12:33:42 there is no "whole 4.2", there is 4.2.1 Nov 19 12:34:00 sorry 4.2.2 Nov 19 12:34:09 yes, isntall that then ;) Nov 19 12:34:14 my phone is running 4.2.1 Nov 19 12:34:30 I installed 4.1.2 as well Nov 19 12:34:56 x.x.x updates are pretty much just bugfixes, you shouldn't have a problem with developing for 4.2.2 and running on 4.2.1, unless it happens to be a bug that was fixed in x.x.2 ;) Nov 19 12:35:16 okay Nov 19 12:35:53 it is still the same "API level" Nov 19 12:35:58 in your case, API 17 Nov 19 12:36:47 okay Nov 19 12:38:55 got an error in aosp in eclipse: Archive for required library: 'libcore/luni/src/test/resources/tests/api/java/net/InvalidJar.jar' in project 'kitkat' cannot be read or is not a valid ZIP file. File is existing...any ideas? Nov 19 12:39:10 Hi, I want to ask a question that, Is it possible to make an appwidget a drop target? Like Can I have a frame widget which would accept an image view If I drag and drop it on frame widget ? Nov 19 12:47:16 smustafa: there is an example of drag drop in sdk examples Nov 19 12:47:20 iir Nov 19 12:47:29 ught if i remember correct Nov 19 12:53:00 Sometimes my phone takes a long time to boot. I heard I can add a boot script such as "adb logcat" to output to the console, but I'm guessing that'd only work after mount. So other than that, I Nov 19 12:53:11 I'd need to recompile the kernel with framebuffer console support, right? Nov 19 12:53:29 you can use adb shell ad logcat very early during boot. try it ;) Nov 19 12:56:11 Peetz0r: Yes, but this is only useful if I have something to connect it to. Like earlier this morning, I wasn't sure if the phone was stuck during boot, or if it was just taking forever to boot (turned out to be latter, most likely stuck in or past starting servers). Nov 19 12:58:54 StingRay_: There are couple of drag drop examples in sdk, but none of them is an app widget. Actually I am not sure that is it possible to make a widget a drop target. Nov 19 13:04:40 how well is maven working with android these days? last 2 times I checked it wasnt working that great. has the situation improved? Nov 19 13:05:01 * cagedwisdom wishes eclipse would just automatically clean and refresh my android app every 2 minutes to save me from doing it Nov 19 13:05:31 You're using Eclipse, there's your problem with maven. Nov 19 13:05:38 It works like a charm in IntelliJ. Nov 19 13:11:44 anyone have any idea about my problem with the listview? this thread from SO describes almost exactly my problem, but nothing seems to fix it: http://stackoverflow.com/questions/7121010/android-updating-arrayadapter-listview-from-within-packetlistener-worker-thre Nov 19 13:17:51 hey how do you make your lose focus when the phone rings? Nov 19 13:18:11 Dragonya: you mean how to make your app lose focus? Nov 19 13:18:20 yupp Nov 19 13:18:21 that should be dealt with by Android Nov 19 13:18:28 or does it do that by default? Nov 19 13:18:44 unless you want to PREVENT your app to lose focus, which would be a bad thing to do Nov 19 13:18:57 ah so it does it by default then? :D Nov 19 13:19:37 yeah Nov 19 13:19:47 sweet, thanks defnordic :D Nov 19 13:22:17 would be a poor telephone OS if every app dev had to take care of basic priorities like that ;) Nov 19 13:25:52 ok, where else does android studio look for minimum api level besides manifest ? Nov 19 13:26:07 cause I'm getting warnings about api levels that I should not get! Nov 19 13:26:21 build.gradle file Nov 19 13:26:25 ant Nov 19 13:27:42 not using gradle Nov 19 13:27:52 and build props and all that seem fine Nov 19 13:28:23 has to be some ide setting somewhere, rather than build related … although not sure :) Nov 19 13:29:58 kakazza, that makes sense. Nov 19 13:30:21 damn my habitual ways Nov 19 13:32:29 ha..me being slack, found it… was an old lib that was referenced Nov 19 13:47:52 erm, could be cause I been up all night, but how do I know inside the adapter, where an incomming view is on screen, either if it is top or bottom ? Nov 19 13:48:01 of a listView Nov 19 13:48:34 inside getView of the adapter, suppose I should be using the listView… ugh Nov 19 13:49:29 now I'm typing to myself…great, only hallucinations left and that will make me call it a days Nov 19 13:53:20 StingRay_, you can get a position :) Nov 19 13:53:37 relative to the listView ? Nov 19 13:53:44 in an adapter ? how where ? Nov 19 13:54:19 weird, I am using the genymotion emulator to test my app, because it is way faster than the usual emulator. But when I try to run my app (which uses the Maps API v2), I get a security exception: http://paste2.org/5CzVN406 Nov 19 13:54:36 by the way, the same app works on my real device Nov 19 13:55:08 and it doesnt work on the regular emulator, because there's no google play services there Nov 19 13:56:04 Mavrik: ? Nov 19 14:13:54 googd day guys Nov 19 14:14:05 setProgressBarIndeterminateVisibility(false); does not get called in the onPause Nov 19 14:14:25 and whenever I move to my next activity, the progress bar still shows. Nov 19 14:19:39 hi Nov 19 14:19:48 i jhave text.setPadding(10,10,10,10) Nov 19 14:20:44 and works fine,when i put this in dimens.xml 10dp and try text.setPadding(R.dimen.activity_intro_margin,R.dimen.activity_intro_margin,R.dimen.activity_intro_margin,R.dimen.activity_intro_margin) Nov 19 14:20:45 is not work Nov 19 14:20:47 can help me? Nov 19 14:21:09 R.* is a reference to a value Nov 19 14:21:12 not the value Nov 19 14:21:22 getInt? Nov 19 14:21:48 getResources().getDimension(R.dimen.*); Nov 19 14:22:10 you can also specify a metric using unitType for get dimension Nov 19 14:23:27 thanks Nov 19 14:23:35 how? Nov 19 14:23:35 StingRay_ can u help me with my problem ? Nov 19 14:23:53 t0th_-: how what ? Nov 19 14:24:07 specify a metric Nov 19 14:25:00 http://developer.android.com/reference/android/content/res/Resources.html Nov 19 14:25:10 you dont need to in your use case I dont think Nov 19 14:25:20 i have on activity, start a preference activity, should i expect the first activitys onsharedpreferencechanged.. listener thing to work while the other activity is in front Nov 19 14:25:24 you would just call getDimension on your reference Nov 19 14:25:39 wmealing_: no Nov 19 14:25:50 the previous activity is in a pause state Nov 19 14:26:12 so i'd hook into 'onresume' and check all the preferences changed there Nov 19 14:26:13 unless you are doing something funcky with a window/dialog thing it will always be in a pause state Nov 19 14:26:25 nothing funky, whole new activity Nov 19 14:26:32 thanks StingRay. Nov 19 14:26:41 if you needed to yes, or you can startActivityForResult and pass back changes that way Nov 19 14:26:43 up to you Nov 19 14:26:50 meh, i can just inspect it Nov 19 14:26:52 more a design flow / data preference Nov 19 14:26:55 :) Nov 19 14:26:55 * wmealing_ nods Nov 19 14:27:44 http://gitignore.io/ Nov 19 14:27:47 useful Nov 19 14:28:24 CallumTaylor sup mate !! Nov 19 14:28:41 sup Nov 19 14:28:46 nm u Nov 19 14:28:51 working hard Nov 19 14:28:59 thats the spirit Nov 19 14:29:23 DarkSlay3r in da house ! Nov 19 14:30:13 is tonyMontana9099 a bot. ? Nov 19 14:30:14 CallumTaylor have you ever worked with progress bars inside action bar ? Nov 19 14:30:17 oh, nope Nov 19 14:30:20 sorry tony ;) Nov 19 14:30:28 wmealing_, nah dude lol Nov 19 14:30:38 wmealing_ no worries. Nov 19 14:30:44 tonyMontana9099: only progress bars i've injected into the action bar container Nov 19 14:30:51 i have feelings ow ow Nov 19 14:30:54 for swipe to refresh stuff Nov 19 14:30:54 CallumTaylor perfect. Nov 19 14:31:01 tonyMontana9099: I have not either, and I dont use AB too so totally no good to you ;) Nov 19 14:31:15 I am implementing a simple interface Nov 19 14:31:43 i am calling requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); inside oncreate before setcontent Nov 19 14:31:43 Nov 19 14:31:52 then this.setProgressBarIndeterminateVisibility(false); Nov 19 14:32:00 however, the pb still shows Nov 19 14:32:06 oh i've had this before Nov 19 14:32:14 um try putting it in onpostcreate as well Nov 19 14:32:19 or onstart Nov 19 14:32:35 tonyMontana9099: good to see you Nov 19 14:32:37 thanks Nov 19 14:32:56 CallumTaylor where ? onpostcreate or onstart ? Nov 19 14:33:08 2 secs i'll find the project i did it in Nov 19 14:33:37 aiight Nov 19 14:33:49 in works fine in my first activity, but not in second. weird. Nov 19 14:34:21 this was an issue i only saw on 2.3 http://pastebin.com/DrpbqMKC Nov 19 14:34:33 Guys for all of you with SO's Nov 19 14:34:35 https://play.google.com/store/apps/details?id=com.wolfden.android.heartswallpaper Nov 19 14:34:57 Share and get lucky Nov 19 14:35:13 lol Nov 19 14:35:17 is there anything I can call to totally destroy, annihilate and bombard with thermonuclear missiles, the current validation of the activity I am displaying? Nov 19 14:35:41 DarkSlay3r hahahah Nov 19 14:35:46 I need to redraw my listview and nothing seems to help except touching the darn thing when its running Nov 19 14:35:49 defnordic: I don't think so, calling finish will tell the OS to clean up any resources Nov 19 14:36:05 CallumTaylor: I don't want to exit, I need to refresh the view ;) Nov 19 14:36:11 you could override finish and set your vars to null if you really want Nov 19 14:36:17 you could restart the activity Nov 19 14:36:30 http://stackoverflow.com/questions/1397361/how-do-i-restart-an-android-activity Nov 19 14:36:33 my problem persists from the moment I start the app, so that's of no help, sadly :/ Nov 19 14:36:53 what are you wanting to clear ? Nov 19 14:36:57 be more specific in the problem then more people may be able to help Nov 19 14:36:57 Why would you want to restart the activity? Nov 19 14:37:30 CallumTaylor: I wrote something around 13:18 if you have the log. the listview receives data, but it only shows new messages after I trigger a touch event to scroll the listview Nov 19 14:37:43 oh yes i saw that Nov 19 14:37:50 are you calling notifydatasetchanged on the ui thread Nov 19 14:37:53 yep Nov 19 14:38:02 are you blocking the layout for the list view for any reason Nov 19 14:38:26 I don't think so. my only calls to the listview are when adding messages Nov 19 14:38:34 CallumTaylor, the pastbin trick works like a charm, thanks :)))) Nov 19 14:38:35 not the listview, I add them to the adapter Nov 19 14:38:38 are you using standard ListView or a subclass of it Nov 19 14:38:44 std listview Nov 19 14:38:49 for that reason, i gift you the app DarkSlay3r just pasted owow Nov 19 14:38:52 what type of adapter are you using? Nov 19 14:39:31 default ArrayAdapter Nov 19 14:39:53 AFAIK calling add on an array adapter automatically calls notifyDataSetChanged Nov 19 14:40:00 how are you populating it (paste it in pastebin) Nov 19 14:41:14 the only by this: Chat.this.adapter.add(fromName + ": " + message.getBody()); Nov 19 14:41:28 in the packet listener Nov 19 14:41:52 right after I call my handler on U_I thread to run notifydataset Nov 19 14:41:58 tonyMontana9099: Thanks Nov 19 14:43:30 how are you calling the ui thread Nov 19 14:43:37 using runOnUiThread? Nov 19 14:44:16 no, Handler mHandler in Activity, posting a runnable to it from packetlistener Nov 19 14:44:28 I tried with ronOnUIThread before, same effect Nov 19 14:44:39 try making sure you are on the uI thread by outputting Looper.myLooper Nov 19 14:47:28 tried with this: http://stackoverflow.com/questions/2848575/how-to-detect-ui-thread-on-android and it outputs that its on UI thread Nov 19 14:49:02 Looper{4189f8f0} to be exact if that's any help ^^ Nov 19 14:49:42 I meant more doing this http://stackoverflow.com/a/7897562/1604213 Nov 19 14:50:29 it might be worth doing broadcast intents then and having a receiver in your activity Nov 19 14:51:05 yes with this too it says I am on UI thread Nov 19 14:51:12 hmm Nov 19 14:52:01 well the default behaviour is to refresh, there's obviously something else stopping it from invalidating Nov 19 14:52:19 are you adding to the adapter on the UI thread also? Nov 19 14:52:24 or only calling notifydatasetchanged Nov 19 14:52:36 because all operations on the adapter should be on done the UI thread Nov 19 14:52:46 done on* Nov 19 14:53:08 also note: http://stackoverflow.com/a/13275489/1604213 Nov 19 14:53:21 I add to the adapter in the packetlistener, outside the post to the handler, the handler runs just the notifyDataSetChanged Nov 19 14:53:24 when encountering a SIGSEGV in NDK code -- is the logcat of the process flushed? Nov 19 14:53:34 I think I'm losing out on the precious few last logs before the segfault :( Nov 19 14:54:50 Peaker: I'm also trying to debug a SIGSEGV in a NDK library Nov 19 14:55:02 but in my case all the logs are there Nov 19 14:55:44 Peetz0r: thanks Nov 19 15:12:58 CallumTaylor: solved it now by creating my own runnable, and passing adapter and message to it, and within it I am adding the message to the adapter. Works like a charm now Nov 19 15:13:08 thx :) Nov 19 15:13:45 cool Nov 19 15:15:25 Hi all, can you write to the eclipse console or only to the logcat? Nov 19 15:20:24 the way that i see it Nov 19 15:21:01 the internal eclipse stuff goes to 'Console' Nov 19 15:21:23 only to logcat use 'Log' .. thats how i manage that Nov 19 15:23:38 wmealing: tnx Nov 19 15:24:10 Afternoon, any idea who moderates the Android Developers group at https://groups.google.com/forum/#!forum/android-developers ? Nov 19 15:42:04 U guys know if there is a converter to convert my android application into iphone app ? Nov 19 15:42:23 hire someone **** BEGIN LOGGING AT Tue Nov 19 15:44:21 2013 Nov 19 15:44:45 CocoStorm, i think it was not present in the early versions of android. Nov 19 15:45:03 I see, so it would only work if the button is in the current activity Nov 19 15:45:06 It was Nov 19 15:45:13 its a later addition. but its been around since a while. Nov 19 15:45:30 CocoStorm, or, any other activity that uses the xml. Nov 19 15:45:34 It was not a later addition Nov 19 15:45:44 SimonVT it was there since first day ? Nov 19 15:45:51 Yes Nov 19 15:46:02 Where is the official repo for bionic? Nov 19 15:46:12 SimonVT, because in one of the videos for romain guy, he talks about implementic that etc.. Nov 19 15:46:17 Ah I see Nov 19 15:46:21 so i assumed it might be lator added. Nov 19 15:46:29 CocoStorm , never used it mate, im a switch guy. Nov 19 15:46:44 implementing*, later* Nov 19 15:46:46 I see yeah, I guess I'll stick with what I've been doing if I'm going to be using fragments Nov 19 15:46:54 Romain Guy was with android for a long time Nov 19 15:47:14 SimonVT true. so possible. Nov 19 15:47:23 getting java.lang.RuntimeException: Unable to start activity ComponentInfo{com.oddlever.flashcards.debug/com.oddlever.flashcards.ui.DeckListActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class fragment and not sure why. It happens on setContentView of my hosting activity. Nov 19 15:47:26 CocoStorm, i dont know if it is used a lot. Nov 19 15:47:56 using the programmatic way gives you more control I assume. Nov 19 15:48:17 you might need to use variables inside onclick etc... unlikely, but possible. Nov 19 15:48:37 yeah Nov 19 15:57:41 anyone got an idea how i fix it? Nov 19 15:58:19 I'd been given a task but they were not impressed with my code. I know it's not the best I've done but given the time I had to do it, it's what came to me naturally. I'd like to learn how I could have done it better but I'm not sure exactly what they disliked about it. If anyone could help spot anything that's immediately obvious that would be grand - https://gist.github.com/anonymous/bbb460a8c Nov 19 15:58:19 523ac07f743 Nov 19 15:59:13 back Nov 19 15:59:24 *back Nov 19 16:02:47 i hate runtime xml errors so much Nov 19 16:03:05 "ERROR INFLATING VIEW LOL" Nov 19 16:03:06 I hate errors so much Nov 19 16:03:08 so annoying Nov 19 16:03:26 anyone? Nov 19 16:06:56 heh CallumTaylor yeah. no other info :D i know the file it talks about. There's a single fragment xml in there Nov 19 16:07:11 this USED to work when I had abs in it. Now that I have taken abs out, it breaks. :( Nov 19 16:10:08 You're probably using support fragment in a normal activity Nov 19 16:10:15 either nobody is prepared to scrutinize my code or there's actually nothing wrong with it =] Nov 19 16:10:29 I think the latter Nov 19 16:10:39 CocoStorm, erm... 404. Nov 19 16:10:43 oh :S Nov 19 16:10:43 kinda hard to do. :P Nov 19 16:13:04 i have one main activity and according to the screen size i start the appropriate activity. Nov 19 16:13:06 https://gist.github.com/anonymous/184d6afa0287aa763e74 Nov 19 16:13:12 Mavrik, ^^ Nov 19 16:13:35 oh. Nov 19 16:13:37 ick. Nov 19 16:13:50 :( Nov 19 16:13:52 lol Nov 19 16:13:52 In case of phones smaller than 5" i start the activityNormal in portrait mode and in other case i stat the activityTablet in Landscape mode Nov 19 16:14:13 CocoStorm, basically... too much code in one place :) Nov 19 16:14:20 my question is which is the best way on doing this? Nov 19 16:14:33 Mavrik, really? as in one activity? Nov 19 16:14:58 CocoStorm, one class, one method, etc. Nov 19 16:15:09 i mean 1)manifest screenOrientation for each activity or setRequestionOrientation ? Nov 19 16:15:27 CocoStorm, you have a 60 line method that has alot of logic in it and it's not really easy to read (onClick) Nov 19 16:15:41 Mavrik, one method in particular you're looking at? Nov 19 16:15:47 onClick :P Nov 19 16:16:24 CocoStorm, basically it does too many things... not only it handles the click... it also checks stock, checks if there are enough coins, buys item, changes water stock.... etc Nov 19 16:16:30 Mavrik, yeah, I've no idea how one would be able to go around that Nov 19 16:16:54 CocoStorm, split code that checks which button was pressed and code that actually DOES anything in different methods Nov 19 16:17:06 http://cc2e.com/ <--- programmer's bible about writing clean code :) Nov 19 16:17:38 CocoStorm, basically good rule of thumb is: what method does should be described with handful of words. What class does with one sentence :) Nov 19 16:18:14 hey guys hows everyone doing Nov 19 16:18:20 eh Nov 19 16:18:40 end of long working days which means I like Symbian better than Android atm :P Nov 19 16:18:44 Mavrik, I see Nov 19 16:19:03 Mavrik, so keep the switch case but have them call different methods? Nov 19 16:19:07 thanks for the link btw Nov 19 16:19:07 yeah Nov 19 16:19:41 I'm having a bit of a problem, I'm trying to make a scratch card game and I'm using a library someone made and it all works fine but it doesn't have functionality to check how much of the top layer has been scratched off. Nov 19 16:20:01 Mavrik, I've sort of tried to do that but yes there's some logic in some of them Nov 19 16:20:18 Mavrik, is that the only issue though? Nov 19 16:20:58 I'm trying to get the code to check how many transparent pixels there are on the top layer but it keeps returnin null Nov 19 16:21:07 CocoStorm, yeah, that's pretty much the main issue: it's hard to read so it's hard to see what exactly code does Nov 19 16:21:13 I lost a job opporunity because of that part, I'd hate to repeat the same mistake :) Nov 19 16:21:30 this is the code https://github.com/winsontan520/Android-WScratchView/blob/master/WScratchViewLibrary/proguard-project.txt Nov 19 16:21:42 ok well onactivitycreated fixed the problem vs oncreate Nov 19 16:21:45 in my fragment Nov 19 16:21:47 jim5423, proguard file isn't code :) Nov 19 16:21:59 ah sorry silly me Nov 19 16:22:14 https://github.com/winsontan520/Android-WScratchView/blob/master/WScratchViewLibrary/src/com/winsontan520/WScratchView.java Nov 19 16:22:27 Mavrik, it's basically an app that simulates a vending machine, so you have a wallet with x amount to spend for the vending machine which gives you change etc. Basically it's an app full of buttons lol Nov 19 16:22:41 and the code im trying to fix is in the issues here https://github.com/winsontan520/Android-WScratchView/issues/2 Nov 19 16:23:20 Coco seems pretty interesting tbh better than the stuff they have me doing Nov 19 16:23:21 I got an error for starting my app on an emulator: Emulator without GPU emulation detected. But I can't set gpu emulation to true (actually I can but when i edit my adv again, it's back to "no"), how can I fix this? Nov 19 16:24:24 Hey folks, trying to get at remote debugging for chrome, however the Settings > Advanced > Developer tools section is missing. Any ideas? Nov 19 16:25:16 jim5423, yeah it was just an assignment they made me that is part of the application process Nov 19 16:25:46 On KitKat it seems that transparent navigation buttons (WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION) only works in portrait. Anyone knows if it is intended or a bug ? The doc doesn't mention anything about it working only in portrait.... Nov 19 16:25:53 Mavrik, well thanks for your advice! Nov 19 16:26:27 Anybody know why all the boxes for properties in eclipse are greyed out for the xml graphical layout for an android project? Nov 19 16:26:33 hmm, how do I get my own application context in an instrumentation test case, I have to make my own test runner? suck ass Nov 19 16:27:13 Azelphur, try this http://superuser.com/questions/439353/google-chrome-developer-tools-not-displaying Nov 19 16:28:29 jim5423: cool thanks Nov 19 16:29:11 Hello, In the past few days im experiencing what seems to be a campaign of 1 star ratings, i got 3 in the past day which is more than I got in 3 months, no version change or nothing.... Do I have any options here? Nov 19 16:29:46 No comments with the ratings Nov 19 16:30:02 see ya guys Nov 19 16:30:52 socket, that's bad i'll look it up Nov 19 16:32:23 Hello. After month of testing several push-servers i havent find any which is really "working" flawless. It "can be" a one-way-push-service which is server->client and running on my own server. I tried mqtt using eclipse paho or ibm with mosquitto, xmpp with asmack and openfire, http REST, .. most of them are working but not well. Nov 19 16:32:49 socket, hey mate i found this the top comment seems the best thing you can do http://stackoverflow.com/questions/11331656/protect-from-fake-reviews-on-google-play Nov 19 16:33:22 thanks jim5423, reading Nov 19 16:34:12 Anybody experiencing issues with eclipse and adt with the latest update? Nov 19 16:34:19 damn that sucks :/ Nov 19 16:34:28 my app is paid so i thankfully don't have that issue Nov 19 16:34:51 Hey guys I'm trying to make a scratch card type game and I'm using a library. The library didn't add functionality in to check how much of the screen has been scratched off and I'm trying to get a method that calculates how many transparent pixels there are working. Nov 19 16:35:17 code is here https://github.com/winsontan520/Android-WScratchView/blob/master/WScratchViewLibrary/src/com/winsontan520/WScratchView.java Nov 19 16:35:28 it's a single class Nov 19 16:36:06 The method currently keeps returning 100% no matter what Nov 19 16:39:18 On KitKat it seems that transparent navigation buttons (WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION) only works in portrait. Anyone knows if it is intended or a bug ? The doc doesn't mention anything about it working only in portrait Nov 19 16:49:29 * pfn wants kitkat on his moto x Nov 19 16:49:46 I wish I'd known and signed up for the soak test sooner Nov 19 16:50:17 hi to all i need to create app server and app client that need to comunicate, how i can do it? Nov 19 16:50:54 your question is too broad Nov 19 16:50:57 app client invoke a intent, server receive with broadcast receiver, but how can responde? Nov 19 16:51:51 i need to create some tools like startactivityforresult and onactivity result between 2 app Nov 19 16:52:55 anyone can help me? Nov 19 16:53:54 anyone know where I can find documentation that advises what is in a SKUDetails objects JSON, doesn't look like the IABHelper code has anything in there to determine subscription expiry Nov 19 16:57:42 someting like that ? http://stackoverflow.com/questions/9556206/using-startactivityforresult-across-android-applications Nov 19 16:58:57 xan_IT, android basics, come back with a specific question Nov 19 17:00:00 i have a specific queston: how i can create tool like startactivityForResult and onActivityResult between applications? Nov 19 17:00:31 that already works between applications Nov 19 17:00:36 that isn't a specific question Nov 19 17:00:39 when querying in app billing to check for a subscription's expiry (on a Purchase/SKUDetails object) anyone know what the json key is for the subscription expiry? Nov 19 17:02:29 pfn how can do this? Nov 19 17:02:48 just put intent filter in manifest? i need other ? Nov 19 17:02:48 startActivityForResult and onActivityForResult, you're done Nov 19 17:02:57 no manifest? Nov 19 17:05:00 pfn i doesent need to do anything on manifest like intent filter ? Nov 19 17:08:38 android basics Nov 19 17:08:46 you need an activity to do this Nov 19 17:09:57 hate CTRL-Q Nov 19 17:14:06 hey guys, is there a collective document for things like `netd` or other core services? Nov 19 17:18:05 no Nov 19 17:21:17 thz pfn Nov 19 17:25:03 Which XferMode or blend can I use to make an inverted alpha mask? I have say an apple outline vector drawing that gets rasterized, I then want to effectively punch out that thing from the new image Nov 19 17:26:33 Boom. Got it: Nov 19 17:27:37 For those interested: http://pastie.org/8493158 Nov 19 17:31:44 Hello, I'm trying to figure out how GLSurfaceViews fit in with the Android lifecycle. Specifically, in https://code.google.com/p/android-breakout/source/browse/src/com/faddensoft/breakout/GameSurfaceRenderer.java , a minimal GameState is saved during onViewPause (called from GLSurfaceView.onPause) and restored during onSurfaceCreated. It's clear onViewPause will be called on (and only on) every pause, but does onSurfaceCreated Nov 19 17:32:13 sry for wall-of-text Nov 19 17:32:18 Actually, even more interesting might be the code to rasterize the SVG, its all very basic: http://pastie.org/8493168 Nov 19 17:32:53 is there an onViewResume? Nov 19 17:33:03 no, just onViewPause Nov 19 17:33:07 onSurfaceCreated sounds like its when the view is just initialized Nov 19 17:33:09 that's kinda what tripped me out Nov 19 17:33:17 hmm Nov 19 17:33:55 seems to boil down to: when does onSurfaceCreated get called? Nov 19 17:34:16 Handles initialization when the surface is created.  This generally happens when the Nov 19 17:34:16      * activity is started or resumed.  In particular, this is called whenever the device Nov 19 17:34:16      * is rotated. Nov 19 17:34:33 > All OpenGL state, including programs, must be (re-)generated here. Nov 19 17:34:51 I read that, seems to imply it gets called *twice* (onStart, onResume), but that doesn't seem right Nov 19 17:35:21 ...and whenever rotation happens (which I'm guessing always pauses) Nov 19 17:35:45 well onResume doesnt get called after onCreate in activities. I can only assume that the lifecycle is similar in that regard. Nov 19 17:36:07 wait, really? Nov 19 17:36:24 let me double double check that Nov 19 17:36:43 I thought onResume happens every time after creation (and then obviously after resume) Nov 19 17:36:55 err, sorry and then obviously after pause* Nov 19 17:37:21 whoops Nov 19 17:37:22 you're right Nov 19 17:37:41 If you put in some logging, does onSurfaceCreated get called twice? Nov 19 17:37:49 so going back to that "activity is started or resumed", surely they don't mean it gets called twice Nov 19 17:37:58 I see. Nov 19 17:38:08 I would put in some logging and see what happens.. Nov 19 17:38:45 I dunno, I guess I should go check that, but even then I still have the question of whether onSurfaceCreated gets called guaranteed after pause/resume Nov 19 17:40:03 anyway, I'll put in some logging, figure out whether onSurfaceCreated is called twice on initial startup, but if anyone else wants to chime in about if it's guaranteed called after pausing/resuming, I would appreciate it Nov 19 17:40:08 thanks for the help so far, explodes Nov 19 17:40:19 no worries mang Nov 19 18:01:54 So, documentation for things like `netd` or other core services? Nov 19 18:07:16 Hi! Nov 19 18:07:33 Is there a way to make the text of the menu not to take so much space? Nov 19 18:07:37 http://dose.se/~madman/pics/apparent/apparent1.png Nov 19 18:08:22 To the right of "Setup..." and "About...", there's so much unused space. Can I make the popup menu become narrower? Nov 19 18:13:04 oh, boy looking through actionbar sherlock sample code Nov 19 18:13:18 do I really know android no :'( Nov 19 18:14:27 Hey can anyone tell me where I'm going wrong with my Fragment Transitions: java - http://pastebin.com/QEErhLwX xml - http://pastebin.com/iFuDdWjq Nov 19 18:15:25 The fragment just gets replaced exactly like it did before I added the setCustomAnimations() Nov 19 18:15:54 thinking to go with android's own ActionBar Nov 19 18:16:24 any difference between ActionBarSherlock and Android's ActionBar ? ? Nov 19 18:22:33 Looney: I think ActionBarSherlock is compatible with earlier versions of Android. Nov 19 18:22:54 you mean that one code to rule them all ? ? Nov 19 18:23:11 actionbarsherlock was made to enable use of actionbar on 2.x devices. Nov 19 18:23:13 yes, I also think so Nov 19 18:23:37 Except that I now see ActionBar has been added to the Support Library. So...yeah, not sure of any reason not to just use that. Nov 19 18:23:42 http://developer.android.com/guide/topics/ui/actionbar.html Nov 19 18:24:48 xalbo, the API is still missing some stuff in AppCompat when I tested it Nov 19 18:25:21 import android.app.ActionBar for API 11 onwards and import android.support.v7.app.ActionBar for weaklings Nov 19 18:26:02 * Looney goes to Google to know about AppCompat Nov 19 18:27:00 Looney, android.support.v7.app.Actionbar is part of a library Google calls "AppCompat support library" Nov 19 18:27:29 ok Nov 19 18:28:28 so, if I want to give my app a modernish look, then I need to stick with ActionBarSherlock ? ? Nov 19 18:28:35 depends :) Nov 19 18:28:38 no Nov 19 18:28:43 do you want to support 2.x? :) Nov 19 18:28:51 the answer to that should be no too Nov 19 18:29:55 well my own phone is on CM-7.2 Nov 19 18:30:11 API 10 to be precise :-P Nov 19 18:30:12 JakeWharton, well some of us are good Samaritans :P Nov 19 18:31:06 well, for me, I am broke Nov 19 18:31:23 cm 7.2? Nov 19 18:31:27 wtf so far behind? Nov 19 18:31:32 and I really like the minSdkVersion 14 idea Nov 19 18:31:36 All of this reminds me, what is the closest to ViewPager that doesn't use the support library? It really annoys me that I'm targeting 4.0+, but using the support library for that one thing. Nov 19 18:31:38 but my phone Nov 19 18:31:39 api10, isn't that 2.3? I thought that's like cm9 Nov 19 18:31:52 cm9 is 4.0 Nov 19 18:32:00 I thought that's cm10 Nov 19 18:32:05 * pfn shrugs Nov 19 18:32:26 nop, 10, 10.1 and 10.2 are jelliez Nov 19 18:32:32 for some testing I unflashed my CM 9.x unofficial rom which I use Nov 19 18:37:25 if I stick with official 7.2 is all i have to live with Nov 19 18:37:56 supporting 2.2 does not make you a good samaritan Nov 19 18:38:03 xalbo: copy ViewPager and PagerAdapter out yourself Nov 19 18:38:15 Supporting 2.2 makes you a masochist. Nov 19 18:39:34 It's time to stop worrying and love the support libraries Nov 19 18:39:49 JakeWharton: That's probably the way to go. Just seems crazy that something so basic (separate tabable fragments the user can scroll among) isn't built in. Or rather, is built in, but only in the support libraries. Nov 19 18:40:15 if it was built in it couldn't evolve Nov 19 18:40:38 and people would be complaining that you can't set page margins on API 14 but you can on API 15 or something Nov 19 18:40:57 plus the support library is only like 300K pre-dex. not that big. Nov 19 18:41:30 and proguard blah blah vomit vomit etc... Nov 19 18:42:03 cff does this look like what you were seeing ? i just noticed they were talking about padding https://blog.thijsalkema.de/blog/2013/11/19/is-google-signing-your-chat-messages/ Nov 19 18:44:33 Anyone got any ideas about my fragment animation question? Nov 19 18:49:24 awesome article, interesting stuff Nov 19 18:53:16 why's logcat in my AS broken Nov 19 18:53:22 it won't filter by process after I upgraded Nov 19 18:53:49 0.3.6? Nov 19 18:54:32 works for me Nov 19 18:56:16 make sure you didn't hide the window to right of filter drop down Nov 19 18:56:42 it won't have an icon Nov 19 18:57:48 nm that's adb without icon Nov 19 18:59:14 oh there's a "Only show logcat from selected process" button Nov 19 19:00:00 Hi, when using SearchManager, and most particularly SUGGEST_COLUMN_ICON_1, do I have any way to access the actual view (ImageView or something in my case) to load an image from an url Nov 19 19:00:20 I dont have my image file locally, but it is an url to an icon that i get from an API Nov 19 19:17:24 hiho mr Chainfire here? Nov 19 19:17:35 Morning!! Nov 19 19:26:23 hi all Nov 19 19:26:59 chars6: hey Android buddy Nov 19 19:35:51 in Android Studio, is there anyway to exclude certain directories from the Project view, like bin & build? Nov 19 19:36:18 Yeah Nov 19 19:36:28 I forget exactly how, let me fire it up... Nov 19 19:37:26 one thing i've been trying to figure out is if it has anything like eclipse 'go into folder' Nov 19 19:37:41 so i can have the tree only show one module, for example Nov 19 19:37:46 without all the other crap on the project Nov 19 19:38:46 hhmmm Nov 19 19:38:59 well, there is package view that helps some Nov 19 19:39:54 ya Nov 19 19:40:11 the find symbol function also searches my built class files which is anoying Nov 19 19:40:52 I found it Nov 19 19:40:57 nice! Nov 19 19:40:59 where is it Nov 19 19:41:25 click on the "project" drop down thingy and go to scope Nov 19 19:41:35 click project files or whatever Nov 19 19:41:56 then right click on the file you want to exclude and click..well, exclude Nov 19 19:44:23 did that work? Nov 19 19:44:35 I dont see Scope as an option in that dropdown Nov 19 19:45:09 Project, Packages, Project Files, Problems, Production, Tests Nov 19 19:45:15 ah Nov 19 19:45:17 its the hedaer Nov 19 19:45:18 nvm :P Nov 19 19:45:30 oh, oops :\ Nov 19 19:45:56 still dont see exclude though in the right click menu Nov 19 19:46:21 "mark directory as" Nov 19 19:46:22 SubConcussive, and u are excluding a whole dir? Nov 19 19:46:30 Ya i don't have that option it seems Nov 19 19:46:32 then ->exclude Nov 19 19:46:55 meh, i like eclipse's inclusive way Nov 19 19:47:04 yeah...an entire directory Nov 19 19:47:11 maybe i should file a feature request Nov 19 19:47:38 * g00s gets distracted easily with too much clutter Nov 19 19:48:15 then exclude it... Nov 19 19:48:47 SubConcussive, http://www.dropmocks.com/mCMh6T Nov 19 19:48:49 too tedious; i go in and out of modules all the time Nov 19 19:48:59 just want to drill down into one module, see only that stuff Nov 19 19:50:24 no "Mark As" in my menu :/ Nov 19 19:50:47 http://imgur.com/N2XNfx6 Nov 19 19:51:09 its probably there, i just can't find it. i should play around with 'Favorites' etc Nov 19 19:51:29 SubConcussive, are you running Android Studio 0.3.6? Nov 19 19:51:40 no Nov 19 19:51:48 0.3.2 :\ Nov 19 19:52:11 thats old :) Nov 19 19:52:15 https://groups.google.com/forum/#!topic/adt-dev/v0AluPBcoy0 Nov 19 19:52:16 a whole week old ! Nov 19 19:52:31 "In this release we removed UI for features that aren't supported by Gradle" Nov 19 19:52:33 :( Nov 19 19:53:54 Oh, well, that sucks Nov 19 19:54:14 ah I think "Scopes" are the replacement Nov 19 20:00:39 hey SubConcussive http://www.dropmocks.com/mCNLZq Nov 19 20:00:41 ;) Nov 19 20:01:12 Oh man, I am working with an iphone app, making it an android app. Nov 19 20:01:40 They have a function to turn their CGAffineTransform (a Matrix) into a string in the form of: {a, b, c, d, tx, ty} Nov 19 20:02:08 I am unfamiliar with matrixes, how do I get those vars out of the float[] from a Matrix? Nov 19 20:03:04 explodes: look up affine transforms Nov 19 20:03:06 it's just geometry Nov 19 20:03:13 Is there any way to access keyboard size and state from the ndk ? Nov 19 20:04:14 by calling into java Nov 19 20:04:14 mm Nov 19 20:05:36 can you give me an example ? I need to check if it is shown and it is its size Nov 19 20:05:43 but I'm not good at java Nov 19 20:05:53 I know I can evaluate java code from the ndk Nov 19 20:15:34 it's jni Nov 19 20:15:40 so it's not android specific Nov 19 20:16:44 anyone using SurfaceTexture and the canvas API? As far as I can tell it's fundamentally broken and unusable, despite indicates it's supposed to work Nov 19 20:17:19 sorry, textureview Nov 19 20:17:44 because even if you use the canvas locking on it, it will happily destroy it out from under your drawing thread, and then segv libskia when your drawing routines complete Nov 19 20:19:17 Maps in play services uses it, so it must be possible somehow Nov 19 20:20:10 do they, or do they use ogl? Nov 19 20:20:17 I suspect it's very different using ogl Nov 19 20:20:49 but I'm not super keen on porting all my stuff to ogl. I might just make a custom view entirely and composite into its ondraw Nov 19 20:21:20 that's usually a better idea yea Nov 19 20:21:27 https://code.google.com/p/gmaps-api-issues/issues/detail?id=4659#c35 Nov 19 20:21:38 Dunno how they draw tho Nov 19 20:21:45 But it uses textureview at least Nov 19 20:22:01 you can render OGL to textureview as well Nov 19 20:22:02 SimonVT: yeah not definitive. I bet it's an ogl render. The camera preview api uses a textureview as well Nov 19 20:22:11 Mavrik: yes, but I don't really want to :P Nov 19 20:22:13 and Maps API requires you to demand OpenGL ES 2.0 compatibility :) Nov 19 20:22:48 also it seems like tv requires hw accel, but then doesn't pass hw access on to the canvas Nov 19 20:22:50 sooooo.... k. Nov 19 20:22:53 haven't heard about problems when using textureview for drawing tho... I guess most people just use ogl :/ Nov 19 20:23:28 Mavrik: I've narrowed it down to a tv being destroyed (by the window closing and destroying the parent fragment) while the drawing thread is processing Nov 19 20:23:42 mhm Nov 19 20:23:45 i have a listfragment with custom list adapter with a custom listitem. Each item has a button. I want list items to be unselectable, and the buttons to open a new fragment. How can I do this? Nov 19 20:23:46 on a locked canvas? Nov 19 20:23:48 Mavrik: it looks like something in the native backend nukes the bitmap allocation Nov 19 20:23:49 that's probably a bug. Nov 19 20:23:50 Mavrik: yup Nov 19 20:24:01 Mavrik: Been around for several revs unfortunately, just tested it on 4.4, too Nov 19 20:24:34 probably something deallocates the surface without checking if it's locked -_- Nov 19 20:24:39 Mavrik: Since my most time consuming draw operation is scaling and copying an offscreen bitmap, it consistently nukes itself with a segv in native libskia during the fillrect/copy op Nov 19 20:25:42 the rest is just some vector and text drawing on top of the complex bitmap. I tried putting the bitmap gen into its own thread, but that doesn't really solve the copy-scale op being a blocking, long-term op. I can put a lot of tests in to try to prevent it, but thread sync/bad luck means that I can never PROMISE it wont' crash when exiting the activity. ;/ Nov 19 20:27:08 dragorn, ahem, did you check the texture listener? Nov 19 20:27:19 you get a callback and you need to tell android to not release your surface Nov 19 20:27:21 see docsČ Nov 19 20:27:28 Invoked when the specified SurfaceTexture is about to be destroyed. If returns true, no rendering should happen inside the surface texture after this method is invoked. If returns false, the client needs to call release(). Most applications should return true. Nov 19 20:27:38 Mavrik: yup Nov 19 20:27:47 Mavrik: that's nice, but if I locked the surface and started the drawing Nov 19 20:27:54 that callback doesnt' do me any good Nov 19 20:28:01 and I do catch and handle that callback Nov 19 20:28:05 why? Nov 19 20:28:16 if I'm in the middle of copying to the view canvas Nov 19 20:28:19 and I get that async callback Nov 19 20:28:20 I mean... you stop the release of texture until you're done rendering Nov 19 20:28:22 I can't abort the copy Nov 19 20:28:28 and then do the release Nov 19 20:28:31 I do Nov 19 20:28:32 it doesn't matter. Nov 19 20:29:01 hmm, HardwareLayer does get nuked tho no matter what you return Nov 19 20:29:14 hm let me check the true/false release actually Nov 19 20:29:23 it's possible I bollocksed up that whole aspect Nov 19 20:29:32 in which case you just solved my multi-week head-v-wall session Nov 19 20:30:34 why are you drawing into a TextureView with a Canvas? Nov 19 20:31:15 romainguy: because SurfaceView didn't do what I needed in terms of stacking Nov 19 20:31:31 and it seemed like textureview was the preferred newer method Nov 19 20:31:54 My point is why are you drawing in software in a TextureView instead of doing hardware rendering in a View directly? Nov 19 20:32:25 romainguy: This is the question I've come to ask myself. Unfortunately, unless I'm wrong, there's no way to do threaded complex draw routines and retain hw accel, is there? Nov 19 20:32:34 Because unless the canvas is directly linked to a view you lose accell Nov 19 20:32:47 that's correct, but do you need to use a separate thread for your drawing? Nov 19 20:32:52 yeah Nov 19 20:33:03 what are you doing that requires a thread? Nov 19 20:33:05 I'm doing some complex drawing - basically radio spectrograph/signal history Nov 19 20:33:10 which is very time consuming Nov 19 20:33:21 i'm deferring it to ~2fps and then compositing it below vector real-time Nov 19 20:33:45 why not draw those things to an offscreen bitmap instead and then let the view draw that bitmaps when it's ready? Nov 19 20:34:09 that's more or less the conclusion i was coming to, but having already written it for textureview I wanted to try to solve it :P Nov 19 20:34:33 anyway, TextureView will release its resources when it's detached from the window, and there's nothing you can do about it Nov 19 20:34:35 sorry Nov 19 20:35:01 romainguy: makes me wonder why it has canvas access to it at all then :P Nov 19 20:35:08 *grumble Nov 19 20:35:22 I'd kill for an ability to take screenshot of a screen area Nov 19 20:35:34 and yes, I'm coming to realize that I probably should be doing it in a view Nov 19 20:35:42 fortunately most of the code is already abstracted in that direction Nov 19 20:35:52 dragorn: because it's a bug Nov 19 20:35:59 I was actually perfectly happy with surfaceviews until I tried to do a tutorial overlay :) Nov 19 20:36:00 hey guys. How do I test the onupgrade for sqllite databasees? Nov 19 20:36:04 TextureView should just prevent destruction until the canvas is unlocked Nov 19 20:36:38 my app keeps saying i'm at version 10 but I changed it to version 11 in my manifest Nov 19 20:37:00 Database version isn't set in manyfest Nov 19 20:37:19 Database version also has nothing to do with app version Nov 19 20:38:19 romainguy: Fair enough. Well, I feel a lot better that it's not ME that's broken, per se. I'll just change it to a view and see if I can recover some acceleration doing the scaling/etc in the view Nov 19 20:38:42 SQLiteOpenHelper takes a database version in its constructor.. So whatever version you pass is the version the database is Nov 19 20:38:56 dragorn: scaling will be free in the view Nov 19 20:39:42 romainguy are you still doing anything android related, even if personal projects ? Nov 19 20:39:51 holy snot, my moto x is receiving the 4.4 update now Nov 19 20:39:54 hot! Nov 19 20:40:13 g00s: nope Nov 19 20:40:20 SimonVT: I didn't know that. Thanks Nov 19 20:41:05 :( Nov 19 20:41:19 * pfn pulls himself an espresso shot while waiting for the update to download Nov 19 20:41:28 pfn good to see your moto x is getting an update before my 2013 n7 :P Nov 19 20:42:01 I got my n7 updated already... Nov 19 20:42:13 just sideload it, 2 commands Nov 19 20:42:14 g00s: you can pull factory? Nov 19 20:42:39 adb reboot recovery; adb sideload image.zip Nov 19 20:42:39 dragorn no worries, i might have to if it never happens :P i'll just wait Nov 19 20:43:15 romainguy working on any special photography projects ? Nov 19 20:43:21 nope Nov 19 20:43:39 something doesn't seem right :| Nov 19 20:43:58 romainguy, is what you're working on design/ui related? Nov 19 20:44:09 * pfn plays along with 20 questions Nov 19 20:44:16 we're going to get it out of him one way or another :P Nov 19 20:44:20 heh Nov 19 20:44:25 nope, no design/ui Nov 19 20:44:26 What he's working on is starting a farm. Nov 19 20:44:39 what kind of farm :) Nov 19 20:44:46 bacon ? Nov 19 20:44:57 Bananas. Nov 19 20:45:03 A farm that produces bananas with all buildings made of banana mash. Nov 19 20:45:24 actually, i learned the other day that the Container Store has a bacon container which perfectly fits my n7 Nov 19 20:45:38 O_o Nov 19 20:46:01 A bacon container? Nov 19 20:46:04 never knew there was such a thing as a bacon holder / container heh :) Nov 19 20:46:09 hi all is there a good mobile phone channel for samsung ? i can't find it any more use to be #samsung-epic Nov 19 20:47:53 Nilium http://www.containerstore.com/shop/?productId=10011128 Nov 19 20:48:25 i'd contact the container store to update web page "*Designed to contain N7" Nov 19 20:49:14 I've never had trouble storing opened bacon packages. Nov 19 20:49:35 why would you store an open bacon pacjage anyhow? it all needs to be eaten at once Nov 19 20:49:44 This sounds like someone went "let's make a container and then try to convince people they need it" Nov 19 20:50:49 Well, that and just cook it all, then throw the leftovers in the fridge. Nov 19 20:51:01 As everyone knows, leftover cold bacon is its best form. Nov 19 20:51:09 in all seriosness though, i did find a small project case which fit my n7 perfectly so i can throw it in my pack. sure beat getting an otter defender for $60; which doesn't exist anyhow for the n7. it snot waterproof, but heh, will protect enough Nov 19 20:51:24 cost $3 Nov 19 20:51:52 I just wrap stuff in foam padding. Nov 19 20:52:47 could wrap it in bacon Nov 19 20:52:56 * g00s shrugs Nov 19 20:53:16 ok, back to coding ;) enough silliness for now Nov 19 20:53:23 wow, ABS started to make sense to me Nov 19 20:53:29 looks like I gotta sleep now Nov 19 20:56:03 Hey, I got my fragment animations working. Nov 19 20:56:14 the code was fine I just needed to add a duration Nov 19 20:56:40 This is interesting. I have a Galaxy Ace (older, really small 2.3.3 device) and a Nexus 4. On the Nexus 4 my ListView is really choppy on scroll, even after implementing a Loader and using the second, non deprecated constructor for SimpleCursorAdapter. It is completely smooth on the Galaxy Ace though. Nov 19 20:56:42 now I have an exciting new question: How can I export my source code from Android Studio? Nov 19 20:58:03 what do you mean "export"? Nov 19 20:58:14 I'm trying to play a video in a TextureView and I get sound, but no video. I'd like to know if I'm doing anything wrong or if it might be hardware related. I'm trying to test the capabilities of an Android device we're thinking of using to deploy our company app. Thanks. http://pastebin.ca/2477342 (79 lines total) Nov 19 20:58:22 your source code exists as normal .java files on your filesystem Nov 19 20:58:31 it's not like it's in some proprietary AS format Nov 19 20:58:59 theblang maybe android:hardwareAccelerated has something to do with it, depending on your min/target Sdk Nov 19 20:59:10 not sure, i'm just guessing Nov 19 20:59:37 g00s I would think if anything though it would be worse on the older, Galaxy Ace? Nov 19 20:59:54 depending on your target, accel might be off on the n4 Nov 19 21:00:02 so maybe its worse, i dunno Nov 19 21:00:20 JesusFreke: yeah but it's mixed in with a mess of other crap created by gradle. Nov 19 21:00:46 I've just copied out the src files and deleted the build folder and .gitignore Nov 19 21:00:52 that'll do fine Nov 19 21:01:25 Ankhwatcher um, i guess shut down AS; do gradle clean; whats left is your project :) Nov 19 21:01:39 .idea, .gradle, and *.iml files don't need to be checked in Nov 19 21:01:46 well, some people check in iml files Nov 19 21:02:12 i dont use gradle wrapper , but you probably don't need that either Nov 19 21:02:27 maybe as creates that stuff automatically on a new project Nov 19 21:03:46 so, i guess gradle 1.9 was released Nov 19 21:03:59 nice Nov 19 21:04:10 theres some good stuff in there for dealing w\ the NDK Nov 19 21:04:24 wait, isn't that gradle-plugin 0.7 ? Nov 19 21:04:26 g00s, the gradle wrapper is great Nov 19 21:04:31 I opted to just take the BookDetails folder and take out build and .gitignore, I'm not sure if they'll need the .iml file though http://picpaste.com/ep0ILUad.png Nov 19 21:04:57 g00s, well gradle's feature are not NDK specific, but they deal w\ building for different arcitecture flavors, which the NDK stuff can leverage Nov 19 21:05:10 Ankhwatcher no, you are missing stuff Nov 19 21:05:14 you need settings.gradle Nov 19 21:05:17 ya should .iml files be checked into source control? Nov 19 21:05:24 i have them checked in, wasnt sure Nov 19 21:05:37 as for local.properties; thats specific to your setup, but i check in a local.properties.sample Nov 19 21:05:43 (and gitignore local.properties) Nov 19 21:05:47 You can check in some of them. Others are user-specific and you can ignore 'em. Nov 19 21:05:59 you also have 2 build.gradle files :| Nov 19 21:06:09 so … yeah, dunno how you set up that project Nov 19 21:06:35 I never created a project in AS that hasn't had two build.gradle files Nov 19 21:06:56 ya, mine has two Nov 19 21:07:04 a project gradle, and a module gradle Nov 19 21:07:05 the outer one is usually blank, the first project I created in AS needed some extra instruction in there Nov 19 21:07:06 also, don't check in a dependency like 0.6.+ Nov 19 21:07:09 and eveyr module has its own gradle Nov 19 21:07:14 you may never get that shit to compiler again :) Nov 19 21:07:19 hah Nov 19 21:07:25 what! dude don't listen to g00s :P Nov 19 21:07:28 yeah we ran into that at DevFest Nov 19 21:07:36 gradle wrapper is awesome, and 0.6.+ is awesome Nov 19 21:07:57 I'm not checking in though, I'm emailing a zip file Nov 19 21:08:03 well, yeah 0.6.+ is awesome for developing, but when you want to check in and have a repeatable build, lock it down Nov 19 21:08:42 g00s hardwareAcceleration is definitely off. just checked with View.isHardwareAccelerated. I see it wasn't added until API Level 11, but my min level is 10. The manifest didn't throw an error, but I guess since the target is 10 it disables it. And then I am guessing that the Ace is okay because the resolution is so tiny? Nov 19 21:08:55 tbh it seems like anytime that f-ing setting isn't 0.+ it screws something up on import Nov 19 21:09:14 theblang perhaps, yeah resolution has a lot to do with things :) Nov 19 21:09:39 g00s so, is there any way to allow it on API Level 11 + devices, and disable on API Level 10? Nov 19 21:09:48 theblang so you need to up your build target Nov 19 21:10:01 theblang i guess you could try setting it to true, on 10 its probably ignored Nov 19 21:10:12 hardware acceleration will just be ignored by lower API's Nov 19 21:10:23 g00s I did that in the manifest, it still doesn't set it to true Nov 19 21:10:27 but if your build target is a lower API it won't compile Nov 19 21:10:41 Ankhwatcher well, I can't lower build target since we have to support 2.3.x devices Nov 19 21:11:10 Ankhwatcher is there anyway to conditionally turn it on at runtime depending on the device Nov 19 21:11:23 Set your target to >=14 and it'll be enabled by default Nov 19 21:11:51 targetSdk Nov 19 21:12:37 theblang: you're not getting me, the build target tells eclipse/android studio which SDK to build with Nov 19 21:13:03 Ankhwatcher right, the targetSDK is set to 18. only the min is 10 Nov 19 21:13:29 Ankhwatcher sorry, was confusing min and target level there Nov 19 21:14:13 in eclipse you change it by right-clicking on the project and selecting properties=>Android Nov 19 21:14:43 Ankhwatcher yeah, it is set to the Google API Level 18 Nov 19 21:14:51 targetsdk != build target Nov 19 21:14:59 in Android Studio you change it in build.gradle Nov 19 21:15:13 SimonVT yeah, I see that now. They are both set to API Level 18 Nov 19 21:15:39 Manifest definitely has hardwareAccelerated="true". Using the runtime check though, it is off. Nov 19 21:16:04 while we're on this, what's build tools (version) actually for? Nov 19 21:16:27 Selecting what version of the build tools to build with Nov 19 21:16:33 like, we should always be using the latest, right? there's no compatibility issues? Nov 19 21:16:45 There might be compatibility issues Nov 19 21:17:02 they seem to be keeping multiple versions up in the air now Nov 19 21:17:13 are there any know? Nov 19 21:17:21 Historically they've been very good at breaking builds Nov 19 21:17:36 Does anyone know this weird output of Log.d() http://ideone.com/0woOz2 Nov 19 21:17:38 Which was the reason behind letting you choose Nov 19 21:17:43 "We are currently using internal API*, so we make the plugin compatible with only known versions. Right now this only includes 1.8. Once 1.9 is out we'll release an update that will enable 1.9 support (we have already tested it)." Nov 19 21:17:54 ok :) Nov 19 21:17:59 And does anyone see the Difference between the two "Eminem" Strings: http://grab.by/sazA ? Nov 19 21:18:02 this business: http://picpaste.com/WLxrnc18.png - do not like Nov 19 21:18:36 SubConcussive good question, there is also two versions of each level, the Android and the Google API. Wonder why that is? Nov 19 21:20:01 Because google have their own set of api's on top of android Nov 19 21:22:45 Any way to get adb to see an emulator started by eclipse on OSX? "adb devices" shows nothing, but I've got the emulator running and responding to UI inputs. Nov 19 21:24:05 adb -e? Nov 19 21:24:27 sr105 sometimes you have to 'adb kill-server' Nov 19 21:24:48 adb devices will restart it, and hopefully get its shit straight Nov 19 21:25:21 yeah, I'd do adb kill-server then adb-usb Nov 19 21:25:22 g00s: Thanks, kill-server did it. Nov 19 21:25:45 As soon as I did that, eclipse picked up the emulator. Nov 19 21:26:02 I think the old server perhaps hung when I disconnected the actual device. Nov 19 21:26:17 I'm trying to see if my app will run in the emulator to validate the code. Nov 19 21:27:02 ah Nov 19 21:27:10 I've never liked using emulators Nov 19 21:27:21 (for android dev) Nov 19 21:27:38 nope, it throws a null pointer exception after trying to get the surface Nov 19 21:28:10 I'm trying to render to mp4 files with some overlap and transparency to test if that's possible Nov 19 21:28:31 I'm now using my N7[2013] flo for tablet and higher specs development, and an og droid for legacy stuff Nov 19 21:29:16 :\ that's beyond me, how are you rendering it? Nov 19 21:29:16 I've got a Hisense tablet and a Freescale Wandboard (the one I'm testing) Nov 19 21:29:29 It's in the paste bin above. Nov 19 21:29:39 very short example Nov 19 21:29:57 media player into the surface texture of a texture view. Nov 19 21:30:24 ah, which wandboard? Nov 19 21:30:56 dual, but I have all 3 here Nov 19 21:31:16 We bought one of each to see which was the minimum needed. Nov 19 21:31:21 SubConcussive thats exactly the HW i have :) Nov 19 21:31:30 so, one of the big things about kitkat is memory usage and being memory efficient Nov 19 21:31:41 as part of this, the arraymap class was introduced Nov 19 21:31:51 The OG Droid? Nov 19 21:32:01 droid-1 a-855 ? Nov 19 21:32:06 my question is, how useful is that, especially when you have objects like the bitmaps eating up so much memory? Nov 19 21:33:07 it seems like even if you use an arraymap instead of a hashmap, the memory it saves is nothing compared to the bigger objects Nov 19 21:33:32 Does anyone know if fr3evo.zip is available anymore? The link in the xda forums doesn't work. I've got a copy on a ext3 raid partition that I've got floating around - but I'd have to get the disks back into a working machine. Kind of a pain a the moment. Nov 19 21:33:46 I can't believe that I forgot about my tablet. I just tried the app on the Hisense and it works fine. Nov 19 21:34:02 So, it's a wandboard/freescale issue Nov 19 21:34:19 yup, I'm running Cyanogen w/ simply stunning (I don't remember what version numbers) w/ gingerbread Nov 19 21:34:41 SubConcussive oh, i have factory froyo :) Nov 19 21:34:47 running the cpu @ 1.1 Ghz Nov 19 21:35:24 I flashed another rom on it b/c the bluetooth and wifi stopped working and I hoped flashing CM and a new baseband would fix it Nov 19 21:35:27 it didn't Nov 19 21:35:30 :( Nov 19 21:35:32 We have an app that has been historically on arm ubuntu under X using gstreamer, but all of the boards now come with Android pre-installed and it seems it's going to be easier to re-write our app for android than fight with Emb Linux on each vendor. Nov 19 21:36:48 lagann haven't really looked at ArrayMap. i used trove4j though, which is nice if you have collections of primitives. you could try all kinds of tricks like allocating NIO byte buffers directly, off heap, and then storing pointers in there ;) Nov 19 21:38:12 i did something like this http://java-performance.info/use-case-optimizing-memory-footprint-of-read-only-csv-file-trove-unsafe-bytebuffer-data-compression/ Nov 19 21:39:07 apache mina takes that approach and implements its own memory manager into that buffer Nov 19 21:44:39 Ooh, transparent home screen, heh Nov 19 21:46:11 g00s so, according to ActivityInfo.FLAG_HARDWARE_ACCELERATED, the activity has hardware acceleration turned on. But, according to listView.isHardwareAccelerated, the listView does not have hardware acceleration. Nov 19 21:46:29 theblang hm, i'm not sure Nov 19 21:47:29 I am at a bit of a dead end lol, tried setting hardware acceleration in manifest, on the listview with layerType, and programatically as per the android doc. Nov 19 21:47:42 that is of course, assuming that hardware acceleration might make the listView less choppy Nov 19 21:48:43 I do find it so interesting that works so super smoothly on the Galaxy Ace. Nov 19 21:54:57 Chances are it's hardware accelerated, you're just calling isHardwareAccelerated too early Nov 19 22:04:56 Can I generate keyevents with adb shell broadcast ? Nov 19 22:05:13 SimonVT hmm, I'm just not sure what else to try then to fix the chopyness. I am using out of the box stuff, SimpleCursorAdapter with the second non deprecated constructor, using Loaders. It has to be a drawing issue if it works on the Ace no problem. Nov 19 22:24:21 theblang that's life on android. you can try using ART Nov 19 22:24:33 I've noticed the latest google+ app is much smoother Nov 19 22:24:59 theblang also what's your getView method look like in your adapter? Nov 19 22:26:33 Has HAXM been fixed on 8.1? Nov 19 22:28:10 It was bsod'ing before for me Nov 19 22:28:36 dcow using SimpleCursorAdapter, with the second non-depcrecated constructor Nov 19 22:29:16 you're just mapping strings to TextViews? Nov 19 22:29:34 and it's choppy? Nov 19 22:29:51 I'm not surprised but still, it's shouldn't be very noticeably choppy Nov 19 22:29:53 dcow yeah, just two Nov 19 22:30:23 dcow just tested on our nexus 7 too. we have a Galaxy Ace, which has a really low resolution. The ListView is smooth as can be on it. Nov 19 22:30:35 dcow the nexus 7 is even worse than the nexus 4 Nov 19 22:30:50 something doesn't sound right Nov 19 22:31:16 how many items in the list? Nov 19 22:31:24 dcow yeah, definitely. 50 Nov 19 22:31:29 and are you deep in a view hierarchy? Nov 19 22:32:15 also are you doing anything in other threads that may be generating a lot of garbage Nov 19 22:32:16 just a parent LinearLayout, which has an edittext, button, and this listview Nov 19 22:32:34 did you paste your code before i joined? Nov 19 22:33:07 desmin88: intel released a hotfix Nov 19 22:33:07 desmin88: Think they released a patch on their site/forums. Nov 19 22:33:18 sweeet. Nov 19 22:33:24 I didn't. Not really much to post for the listview. It is using a simplcursoradapter with loaders. I am refreshing the loader after a network call that gets JSON and populates a database using ORMLite. Nov 19 22:34:06 dcow I am definitely doing some work on another thread, since I am doing a network call and populating the database with ORMLite objects. But it is only 50 at a time. and THe old Galaxy Ace handles it just fine. Nov 19 22:34:07 and are you noticing the choppiness at all times or just when the background work is happening? Nov 19 22:34:19 Yeah, good point, it is all times. Nov 19 22:34:55 Man, the Nexus 7 is so bad it is almost unusable. I definitely have to figure this out, lol Nov 19 22:35:17 theblang: you can get noticeable stuttering when scrolling if you have long gc pauses Nov 19 22:35:30 theblang are you debugging? Nov 19 22:35:36 theblang: have you already posted code? Nov 19 22:35:41 rather, is the debugger attached to your process? Nov 19 22:35:48 that will fuck you over hard Nov 19 22:35:49 theblang: are you acquaintained with the glorious tools called profiler and tracer? Nov 19 22:36:42 canvs2321 I haven't, not really much to post. I am using SimpleCursorAdapter with just a couple mapped TextViews. Using Loaders to refresh the data, but it is choppy all the time, not just when AsyncTask is running. Also, it is smooth as can be on an older Galaxy Ace phone we have. Nov 19 22:36:59 p_l|backup I have fiddled with them a bit, let me fire them up and see what I can figure out Nov 19 22:37:00 just post it anyway Nov 19 22:37:40 dcow yeah I know! the debugger definitely isn't attached Nov 19 22:37:58 theblang: just checking. Nov 19 22:38:28 theblang: not really much to post, then you describe a decent amount of code being written, seems like code would be appropriate Nov 19 22:39:09 hmm, does the moto skip work with device admin policies that require a PIN/password? Nov 19 22:41:51 question: is it possible to pass an intent via an intent? something like intent.setIntentExtra(otherIntent); Nov 19 22:42:32 why smit? Nov 19 22:43:23 sure, why not Nov 19 22:43:32 just trying to get context Nov 19 22:43:56 if intent 1 is activity, why not pass it a bundle to start intent 2 Nov 19 22:43:59 canvas: google drive API send me an intent in the UserRecoverableAuthIOException that is used to ask the user to authorize google drive for their google account... I need to launch this where I can receive ActivityForResults which is not where I am making this call and getting the exception... so I was thinking about passing the intent via a broadcast to an activity that could handle starting an activitywithresults Nov 19 22:44:53 Hey all, im looking at various Shake Listener implementations and a lot of the classes being used are deprecated (i.e. SensorListener) does anyone have an up-to-date example of an implementation of a Shake Listener/Detector? Nov 19 22:46:46 do I just send it as a parcelable extra? Nov 19 22:49:55 smit, that would work just fine Nov 19 22:49:58 and yes, Intents are parcelable Nov 19 22:50:05 smit: i've been sitting here trying to think what to type, then I keep re-reading that google drive API sent you an intent in the UserRecoverableAuthIOException, on doing that I think if you are getting any info from a method that has IOException in it, that can't be the path you wanna follow? Nov 19 22:50:17 canvs2321, no Nov 19 22:50:20 pfn, thanks. Nov 19 22:50:40 canvs2321: https://developers.google.com/drive/quickstart-android Nov 19 22:50:48 check exceptions of sample code Nov 19 22:50:54 smit, I don't know why, but I get that exception immediately after requesting authz, very annoying Nov 19 22:51:01 it never even pops up the authz prompt dialog Nov 19 22:51:05 have to request authz a second time Nov 19 22:51:08 * pfn needs to figure that out Nov 19 22:51:17 makes keepshare throw an annoying not authorized: null toast Nov 19 22:51:32 pfn: i'm getting 404's sometimes, too, that succeed on retry Nov 19 22:51:33 ahh ic :) i'm not well versed in that haha Nov 19 22:52:03 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/KeyManager.scala Nov 19 22:52:56 and I don't like the fact that i have to make an actual drive call to force the exception Nov 19 22:53:07 And, I'm not sure how to do all this so that it will work on kindle. Nov 19 22:53:25 kindle has google play services? Nov 19 22:53:29 it does not Nov 19 22:53:31 that's the problem Nov 19 22:53:33 then it won't work Nov 19 22:53:44 so you have to build it as if it's just a java app Nov 19 22:53:55 but I think the authentication is the only play services part Nov 19 22:54:00 so you can auth using a webview Nov 19 22:54:19 and then continue on as normal... that is my asumption but have not gotten to that part yet. Nov 19 22:54:25 the docs are not very good in my opinion Nov 19 22:54:40 they're plenty good Nov 19 22:54:50 and why do you care about kindle, is this a work requirement? Nov 19 22:54:56 yeah Nov 19 22:55:09 kindle meh Nov 19 22:55:14 nook is lot more flexiable once rooted Nov 19 22:55:15 bummer Nov 19 22:55:20 fire hdx is kinda cool Nov 19 22:55:41 although they have bouncy scrollviews which is an apple patent Nov 19 22:55:45 hope they don't get sued Nov 19 22:56:03 One thing that BLOWS right now: I'm unisin AS 100% now, but I have a sub/freelancer that's still using Eclipse - Nov 19 22:56:09 getting to be a big pain Nov 19 22:56:25 the docs are fair, I suspect... they could be layed out better because some of the docs are JSON/weburl based and some are client API based. Nov 19 22:56:35 me gradle + productFlavors, him: ant Nov 19 22:56:38 regreddit: make him get with the times Nov 19 22:56:42 Ive tried Nov 19 22:56:48 let him go then Nov 19 22:56:53 still on eclipse here.... is AS ready for prod work? Nov 19 22:56:56 he's 'slow and steady' Nov 19 22:56:57 if he's harming your productivity Nov 19 22:57:16 if he's not harming you then don't complain d= Nov 19 22:57:17 smit, I've used it for the past three releases and it is working pretty well. Nov 19 22:57:31 smit: we are using it in production Nov 19 22:57:36 full on Nov 19 22:58:03 thanks for the feedback Nov 19 22:58:04 smit: you also don't need to be updating every week Nov 19 22:58:10 the git/github integration tasks/issues is more than worth any shortfall it has, which are few Nov 19 22:58:16 just don't subscribe to the canary channel of updates Nov 19 22:58:42 dcow, BUT the past few canary builds have brought some pretty big fixes Nov 19 22:59:01 all in all I'm very very pleased Nov 19 22:59:17 regreddit: yeah I'm on canary builds Nov 19 22:59:24 meh, AS, not impressed, I want intellij 13 already Nov 19 22:59:25 since I also do node development in Webstorm, it's nice Nov 19 22:59:32 but if you're "slow and steady" then you might avoid it Nov 19 22:59:45 pfn AS is intellij. they will both come together Nov 19 22:59:59 false, AS is stripped down intellij Nov 19 22:59:59 as in as soon as 13 is out AS will be bumped Nov 19 23:00:05 just like webstorm and pycharm are stripped down intellij Nov 19 23:00:10 yeah, my dv is great, he's just supporting several other clients, so I'm not holding it against him Nov 19 23:00:12 and no, AS will never be bumped Nov 19 23:00:16 s/dv/dev/ Nov 19 23:00:19 AS is an android-focused derivative of intellij Nov 19 23:00:26 just like pycharm for python and webstorm for js Nov 19 23:00:28 You're talking Ultimate? Nov 19 23:00:41 pfn: yeah but it follows the open source part of intellij Nov 19 23:00:49 which is constantly up to date Nov 19 23:00:52 dcow, that doesn't make it /intellij/ Nov 19 23:01:12 so you're referring to the actual product form jetbrains? the one you pay for? Nov 19 23:01:15 I have not tried that Nov 19 23:01:16 no Nov 19 23:01:22 intellij CE is distinctly different from AS Nov 19 23:01:25 i started ##android-studio if anybody wanted to move some IDE talk out of here Nov 19 23:01:30 but as far as I understand the free intellij is pretty similar to AS Nov 19 23:01:47 regreddit: look at you and your double # Nov 19 23:01:51 pretty similar if all you do is java Nov 19 23:02:00 and android Nov 19 23:02:01 pfn but AS is still developed by jetbrains Nov 19 23:02:13 regreddit, right, but that doesn't make it the same as intellij Nov 19 23:02:19 it's just intellij with most features stripped out Nov 19 23:02:23 dcow, I'm an irc purist /s Nov 19 23:02:30 true Nov 19 23:02:39 regreddit: that's cool Nov 19 23:02:46 but they left the superb git/github integration - Nov 19 23:02:59 regreddit: i'd be surprised if half the people in here knew what ## rooms were Nov 19 23:03:12 it blew my mind when it hooked right up to my issue list, created a branch for me, and created a change-set Nov 19 23:03:31 probably not Nov 19 23:03:32 pfn I'm not trying to argue, I'm just curious what intellij does for java that AS doesn't Nov 19 23:03:50 dcow, more language support Nov 19 23:03:53 dcow, EE support Nov 19 23:04:17 the open source version fo intellij is missing jetsbrains java library that is required for a LOT of plugins - thats one of the main ones Nov 19 23:04:33 but I dont really miss it in AS Nov 19 23:05:06 pfn sorry, how is developing android in intellij better than AS? Nov 19 23:05:18 that's what I originally was getting at. Nov 19 23:05:20 dcow, who said I'm developing only android? Nov 19 23:05:31 and for that matter, scala is my language of choice for android Nov 19 23:05:39 I didn't. I just assumed we were talking in the context of android dev Nov 19 23:05:53 I refuse to use android studio on the basis that it's only for android Nov 19 23:06:29 i don't disagree that intellij has tons of other features for non-android development. I though you were saying IntelliJ is better than AS for android development though Nov 19 23:06:40 dcow, it's equal to Nov 19 23:06:47 that's what I thought Nov 19 23:06:49 a little behind AS, until intellij 13, but equal to Nov 19 23:07:14 no argument, I was just confused Nov 19 23:07:15 Afaik AS has a few features 13 won't have. In-App Billing stuff or what was it? Nov 19 23:07:35 AS will continue to use gradle as its build tool of choice, intellij might not have it as well integrated Nov 19 23:07:40 what about all the layout editing stuff. is that possible in intellij? Nov 19 23:08:09 (I'd like to use pure intellij but I haven't explored yet) Nov 19 23:08:26 of course Nov 19 23:09:20 kakazza, what does IAB have to do with anything, it's just a library Nov 19 23:10:54 "The EAP of IntelliJ IDEA 13, which includes all of the Android Studio features except for the redesigned new project wizard and the App Engine cloud endpoints integration, is available now." Nov 19 23:11:13 From the official JetBrains blog, from May, though. Nov 19 23:11:23 (I was wrong about IAB, not sure where I got that from) Nov 19 23:12:13 I did read somewhere that the android plugin is always available in a paid version of Idea Nov 19 23:12:37 so you can use the paid version and still get android goodness Nov 19 23:12:44 it used to only be in the paid version. it's been in the free version for a while now though Nov 19 23:22:42 Guys can you tell me why the second listener (commented) disables the first one: http://ideone.com/50veNI ? Nov 19 23:39:29 What does the android matrix look like? Nov 19 23:39:35 Let me elaborate with a paste.. Nov 19 23:41:00 http://pastie.org/8494043 Nov 19 23:41:09 Is it vertically or horizontal o.O Nov 19 23:48:56 Yatekii: you can't have multiple listeners. Nov 19 23:49:09 so it overrides the first one when you set the second one Nov 19 23:58:16 canvs2321 Here is the code. Sorry it took me so long, was trying to rip out all the unnecessary stuff so it was more readable. Does anything stand out to you that would cause a REALLY choppy ListView? http://pastebin.com/bvtwDWZJ Nov 19 23:58:48 desmin88 Got the code pasted. See above Nov 19 23:59:33 dcow Man, yeah, I wish it had been the debugger attached. Also tested on my Galaxy S4 and it does the same thing. So all the 4.x devices are super choppy, but that 2.3.3 Galaxy Ace is perfectly fine. Nov 20 00:02:00 Where can I ask questions like how can I get my screen as clean as possible after like a year of using it without a protector, so I can add a nice (non-wet) screen protector? Just use some random LCD isopropyl wipes, wait for dry, and then wipe it with a microfiber cloth? Nov 20 00:04:36 Thrae: google. alternatively, you can listen to me. I used 91% rubbing alcohol, microfiber cloth to cover the screen while i prepare the screen protector, then apply. Nov 20 00:06:57 i .. dont think i would use rubbing alcohol on your LCD Nov 20 00:07:12 probably fuck up the oleo-phobic coating Nov 20 00:07:40 probably why the screen cleaners that cost over $1 go out of theit way to say "doesn't contain alcohol" Nov 20 00:07:53 and apple recommends not using it either ;) Nov 20 00:07:55 I think desmin88 means rubbing alcohol made from isopropyl, not ethanol Nov 20 00:08:59 is this a good room to discuss AndroidStudio? I am trying to apply the 'idea' gradle plugin in AndroidStudio and it is failing as if the plugin does not exist Nov 20 00:12:17 why? androidstudio already has a gradle plugin Nov 20 00:12:23 you shouldn't be using jetgradle Nov 20 00:12:56 speaking of screen, I wonder what a nice case/screen cover for moto x is Nov 20 00:15:02 pfn: Otter Box Defender for cases Nov 20 00:15:12 pfn, well I am trying to apply this change described here: http://www.gradle.org/docs/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html Nov 20 00:15:25 pfn, which essentially adds Maven's "provided" keyword to gradle Nov 20 00:15:42 gradle doesn't support dependency scopes? Nov 20 00:15:42 wtf Nov 20 00:15:58 no, I had to add it Nov 20 00:16:05 it's pretty easy and it works great Nov 20 00:16:15 the problem is that it Fs up intellij Nov 20 00:16:30 I get a bunch of red squiggles saying that the symbols are unresolved Nov 20 00:16:40 however it builds fine Nov 20 00:16:52 This is my first day w/ android development. I am trying to show a list of items to the user in ListView. I would like to give the user the ability to add or items to this list. What should I use for persistence? Internal storage (file) or a database (sqllite)? Nov 20 00:17:34 add more items* Nov 20 00:19:01 i never knew there was an idea gradle plugin ; and hope i never have to use it Nov 20 00:19:07 :) Nov 20 00:19:17 it's jetgradle Nov 20 00:19:22 oh, in gradle itself? Nov 20 00:19:23 yuck Nov 20 00:19:30 that's what I use for the baksmali project Nov 20 00:19:45 I just generate the idea project from gradle Nov 20 00:19:46 yeah, but you're a Freke Nov 20 00:19:49 :) Nov 20 00:20:04 are there any decent dev screencast series? Nov 20 00:20:52 i dunno, kinda philosophically opposed to my build system even knowing about an ide Nov 20 00:21:26 it makes sense to me Nov 20 00:21:43 maven made eclipse projects with the eclipse plugin Nov 20 00:25:55 g00s: so the IDE can know about the build system, but not the other way around? :) Nov 20 00:26:21 i don't like circular dependencies :) Nov 20 00:26:52 my workflow doesn't have any. my build system knows about the ide, not the other way around Nov 20 00:27:05 I don't use the gradle stuff in IDEA Nov 20 00:27:48 JesusFreke were you using jetgradle then? i remember you had that little ragel task Nov 20 00:28:02 no. I just use the gradle command line Nov 20 00:28:48 the ide project generation thingy is really just a shortcut to prevent me from having to manually create the project myself :) Nov 20 00:29:15 It's actually rather conveniente Nov 20 00:29:19 convenient* Nov 20 00:29:29 maven did have that thingy that created project templates Nov 20 00:29:34 (empty) Nov 20 00:29:40 no idea if gradle has that too Nov 20 00:31:06 why would you want an empty project? Nov 20 00:31:30 yeah, it should finish it for me :) Nov 20 00:32:23 JesusFreke so you are using plain intellij then Nov 20 00:32:42 yea Nov 20 00:33:24 from what I've heard, the gradle "integration" in AS can be... painful. Nov 20 00:33:29 or at least troublesome Nov 20 00:33:41 especially around dependencies Nov 20 00:34:13 but that's just second-hand hearsay :) Nov 20 00:36:13 getting Java 1.7 support in AS is a bit of trial and error, involves a lot or restarting :P Nov 20 00:37:16 Wavesonics on mac the ide will run under 1.6 because its bundled that way; i wasn't about to go about messing with that Nov 20 00:37:37 but you can still have it compile the code with 1.7; i didn't have to do anything for that Nov 20 00:38:03 google should just give us docker containers with all the things ! Nov 20 00:38:16 g00s: ... not as good idea as you think Nov 20 00:38:27 well, it would only be a linux solb Nov 20 00:38:29 *soln Nov 20 00:38:36 yeah, i was mostly joking Nov 20 00:38:51 g00s: you'd be better off providing VM boxes Nov 20 00:38:55 but i do wish they would consolidate all the shit in the SDK Manager under Extras Nov 20 00:40:25 g00s ya but i wanted dat multi-catch! Nov 20 00:42:16 so how are we gents on this fine day? Nov 20 00:44:36 I'm trying to decide how I want to determine if something is already sorted. Nov 20 00:46:28 java 1.7 works in api19 now Nov 20 00:46:28 yay Nov 20 00:46:36 pfn, ya! Nov 20 00:46:45 well, builtools 19 Nov 20 00:46:53 although, try w\ resource is API 19 only Nov 20 00:46:57 correct Nov 20 00:48:44 so, why hasn't google released the version of wallet that does nfc hce now? Nov 20 00:48:48 (in play) Nov 20 00:48:51 So, not much use right about now Nov 20 00:48:58 ? Nov 20 00:49:40 you can use all the language features of java 1.7 on any version of android down to 2.3, except for try-with-resources Nov 20 00:49:43 which is pretty nice Nov 20 00:54:40 ya Nov 20 00:55:29 pfn, your phone could basically record all ur CCs and u choose which to play back, don't even need that new "coin" card! Nov 20 00:57:18 Hm, could use sliding and forall to check for sorted-ness, but that seems like it'd allocate a bunch of slices of the original array. Nov 20 00:59:24 why not ensure they get inserted already sorted :P Nov 20 01:00:03 I do. This is for fun. Nov 20 01:03:21 Hey guys, I am trying to implement the google play services. I have this meta-data in my manifest and its value seems not correct. Type error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version'). AndroidManifest.xml. I want to know, if the value were to be correct, where could I find it? I have this google-play-services_lib folder in my workspace. Where in that f Nov 20 01:06:29 you need to add that as a library project Nov 20 01:06:53 Oh, well this is simple → (x.view zip x.view.tail) forall { case (x, y) => x <= y } Nov 20 01:07:05 so right click my project > properties > android > Library > Add... right? Nov 20 01:07:19 evanc Nov 20 01:10:33 anyone? Nov 20 01:13:44 google-play-services_lib is a library project Nov 20 01:15:42 it appears in my workspace Nov 20 01:16:20 One time I ate a big marshmallow and it made me feel sick. Nov 20 01:16:57 I recommend eating big marshmallows more often, to better acclimate your body to them. Nov 20 01:18:33 It's rough, man, eating marshmallows. Nov 20 01:18:38 Never know if you'll come back from it. Nov 20 01:19:02 Every bite's a risk. Nov 20 01:20:57 i just liked throwing them at my brother Nov 20 01:22:38 they're way too soft for that Nov 20 01:23:02 also the campfire is a key ingredient Nov 20 01:23:27 ah, good point. I could get behind the idea of throwing burning marshmellows at my brother. Nov 20 01:23:48 no, what I meant was… oh whatever Nov 20 01:23:50 :p Nov 20 01:26:40 anyone knows why would the androidADT not find the google_play_services_version? Nov 20 01:29:46 I just cleaned my project... now R cannot be resolved to a variable. great. Nov 20 01:30:44 I take it there's no x86 image of 4.4 out for the SDK yet? Nov 20 01:30:48 I can't find it in the manager. Nov 20 01:33:07 did anyone ever experience problems with google_play_services_version? Nov 20 01:33:18 stop asking already Nov 20 01:33:40 If anyone has an answer, they'll see it. :) Nov 20 01:35:30 so nobody undertand the situation? Nov 20 01:35:36 understands* Nov 20 01:35:38 nobody cares Nov 20 01:35:48 that's what I thought Nov 20 01:35:59 Auv, there you go Nov 20 01:36:05 Wavesonics, well, nfc payments aren't accepted everywhere, vs. card swipes Nov 20 01:36:06 sounds like you haven't included the lib properly, NFI how you do that with eclipse Nov 20 01:36:20 in eclipse, there's a google play services thinger Nov 20 01:36:31 they document it pretty clearly in the various google apis pages Nov 20 01:36:44 yeah I'm following them Nov 20 01:37:03 I have google-play-servies_lib appearing in my workspace, which is the copying step Nov 20 01:37:33 then, I include the google-play-servces_lib into my project by right clicking it > properties> android > library > Add... Nov 20 01:38:54 what's the best way to pass a potentially large array of objects into an Activity from another Activity? Nov 20 01:39:07 intent extra Nov 20 01:39:11 or use a singleton if necessary Nov 20 01:39:13 seand, Extras. Nov 20 01:39:19 lol "nobody cares" Nov 20 01:39:23 more than 1mb and it won't go Nov 20 01:39:28 or whatever the transaction limit is Nov 20 01:39:45 Then use a Singleton. Nov 20 01:39:53 ryanbates needs to do android screencasts Nov 20 01:40:33 actually, over 4K and things get weird Nov 20 01:41:48 two activities in the same app, seand ? Nov 20 01:41:49 damn it. had to update the library... Nov 20 01:41:58 yeah, leslie Nov 20 01:44:38 pfn or Auv, how would you implement that? just a public static variable on ActivityA accessed by ActivityB? Nov 20 01:46:01 seand http://developer.android.com/guide/faq/framework.html#3 Nov 20 01:46:21 ah thanks Nov 20 01:52:08 when is the right time to call ActionMode.finish () ? Nov 20 01:52:31 for example, if somebody performs some action on a bunch of things, should i finish then … or leave the selection so they can do more ? Nov 20 01:52:33 hm Nov 20 01:55:10 gmail seems to keep the selection when you choose "mark as unread" at least Nov 20 01:57:16 but the design guide seems to indicate that the selection should be cleared after an action - "The CAB then automatically dismisses itself." Nov 20 01:57:45 leslie where did you see that ? Nov 20 01:58:02 http://developer.android.com/design/patterns/selection.html Nov 20 01:58:24 that's what you were referring to, right? Nov 20 01:58:31 ya, thanks :) Nov 20 01:58:45 i just read this yesterday and already forgot Nov 20 01:59:01 ahh Nov 20 02:00:55 So, given that I vaguely know the owner of the company who's app this is, am I allowed to have a go for not following design? https://play.google.com/store/apps/details?id=com.sports.sportzstats Nov 20 02:02:06 "have a go"? Nov 20 02:02:17 tell him off Nov 20 02:02:31 yes, tell him to go back to iphone Nov 20 02:02:53 man, that looks like some shitty webapp Nov 20 02:03:05 like appcelerator or something Nov 20 02:03:19 "put gloss, on all the things" Nov 20 02:03:22 yeah, I wonder if it is... I should install it and pull it apart Nov 20 02:03:53 holy crap, that thing is 24M ? Nov 20 02:04:05 I think he paid a non-trivial amount for the development Nov 20 02:04:22 argh, I hadn't even noticed that! Nov 20 02:10:04 What's the correct way to create an Activity within another activity, that has onStart/onStop/etc called at the same time as the parent? (basically pauses/resumes in sync) Nov 20 02:10:58 yo dawg, don't do that Nov 20 02:11:05 ActivityGroup is deprecated Nov 20 02:11:11 so use fragments Nov 20 02:15:01 g00s: dope, thanks Nov 20 02:20:32 g00s: Does the fragment by default sync up with the pauses/resumes? At initial glance it looks like it may persist Nov 20 02:21:26 its good to put log statements in the callbacks and experiment. first put the frag in your activity layout xml, you should notice they mirror each other Nov 20 02:21:50 g00s: Thanks, will do. **** ENDING LOGGING AT Wed Nov 20 02:59:58 2013