**** BEGIN LOGGING AT Wed Jul 09 02:59:58 2014 Jul 09 03:00:04 g00s_: ok but how long it took you to learn it? Jul 09 03:00:24 too long, maybe 6 mos. i'm not very bright. and i still suck at it. Jul 09 03:01:12 i think now, things might be a little more complicated - when i started out, there were no Fragments, tablets, etc Jul 09 03:01:16 but there are better books Jul 09 03:01:35 but they will all be out of date for L Jul 09 03:01:56 OTOH, since L is preview, those authors can revise their books, so when L is ready I bet books will be around then too Jul 09 03:03:00 uhm so thanks for the advice, the project compiled. ! You guys are awesome. Jul 09 03:06:29 g00s_: I see. I'm not the one who will handle the android I'll do the iOS. My friend a java programmer(he's just getting his degree) is the one who will handle that Jul 09 03:07:42 do it all in java - one project, one code base, much easier ;) Jul 09 03:09:44 ok... so If I get we can develop a java app and make it work on android ? Jul 09 03:10:27 chriys: Yes Jul 09 03:10:56 and publish it in google play Jul 09 03:11:16 not any java app Jul 09 03:11:33 Oh I was about to celebrate Jul 09 03:11:46 what's the catch ? Jul 09 03:12:14 and there's some debate over it being called "java", but let's ignore that for now ;) Jul 09 03:12:48 you write the apps in java Jul 09 03:12:59 not just any arbitrary java app Jul 09 03:13:23 It's not like you can write a swing ui and then run that on Android Jul 09 03:13:40 (thank goodness! :p) Jul 09 03:14:38 you can use javafx though ;) Jul 09 03:14:51 cannot Jul 09 03:15:05 but you can use any jvm language as well Jul 09 03:15:44 what kind of app i write in java. Or what do I need to do in order to develop it in java and have it running on android. It doesn't matter if we have to do a whole part in swift for iOS Jul 09 03:15:59 i can write* Jul 09 03:16:50 chriys, anything that interacts with hardware is going to be almost nothing like java Jul 09 03:17:04 so ui code is android specific Jul 09 03:17:05 You pretty much have to write the app for android. With Activities, android's views, etc. Jul 09 03:17:30 Unless you're doing something like a game, where you draw everything yourself with opengl Jul 09 03:17:56 but then you still need some Android-specific "glue" Jul 09 03:18:43 ok so at the end of the day i'll need to know android-specific language Jul 09 03:18:56 chriys but your friend is working on it :| Jul 09 03:19:05 do the iOS parts and be happy :) Jul 09 03:19:06 not language Jul 09 03:19:10 api Jul 09 03:19:18 the language itself is java, the hardware specific apis are android specific Jul 09 03:19:22 the language is 100% java Jul 09 03:19:25 g00s_: pfft ... robovm :P Jul 09 03:19:33 you get things like java math library, java file io Jul 09 03:20:07 you get the entire java library minus java want awt Jul 09 03:20:13 ok he will need to learn the specific apis. So I think he's halfway through Jul 09 03:20:15 you just ditch the bits of java that make no sense on a phone and/or were poorly suited to mobile devices Jul 09 03:20:19 and jdbc, I suppose Jul 09 03:21:03 chriys: If you’re interested in sharing code between iOS and Android you can write the shared code in C or C++ and then integrate with Java on Android. Jul 09 03:21:23 It’s a little bit tricky to set up at first but in the long run it may be worthwhile. Jul 09 03:22:04 jfpoole: lol seems interesting but i think we gonna start by the beginning. learn those languages lol Jul 09 03:25:37 java itself isn't bad to learn Jul 09 03:26:00 unfortunately i would say with you saying you are a php & jquery dev you likely need to unlearn some bad habbits and learn some good ones Jul 09 03:26:14 is it possible to get the content of https://developer.android.com/guide/components/fundamentals.html offline? Jul 09 03:26:22 unlearn some bad habits to learn some more bad habits :) Jul 09 03:26:49 zmanji, wget -M? Jul 09 03:27:21 chriys, i'd think your weak point wont be learning the languages but learning good design patterns that are applicable to your application goals Jul 09 03:27:34 LiENUS: I can `wget` it but I was hoping for an offical solution. Thanks for your help Jul 09 03:28:01 LiENUS: oh interesting subject. How can I start right? Jul 09 03:28:02 some good design patterns strictly enforced will cover up any bad habbits remarkably well Jul 09 03:28:50 chriys, developer.android.com has a lot of tutorials that will cover good habbits Jul 09 03:29:38 i believe they had a couple of design patterns up there that if followed strictly would help with the transition Jul 09 03:29:54 mostly ui related stuff Jul 09 03:30:20 ok ok I noted it. Jul 09 03:48:38 I'm porting some code from objective-c (https://gist.github.com/sprite2005/312cb3644f0753bd29c7). Basically I need to fire off a bunch of async request, but don't hit the callback until they all complete. In objective-c I use dispatch groups. Is there anything similar in java or the android sdk, or what's the best way to accomplish this? Jul 09 03:52:07 sprite-- you can use rxjava Jul 09 03:52:16 heheh ;) Jul 09 03:52:21 if you were using a real java 7, you could use fork / join Jul 09 03:52:30 sprite--: when i did some server network code i had multiple threads Jul 09 03:52:32 nvm Jul 09 03:52:36 g00s_ said it first Jul 09 03:53:02 bankai_au \o/ Jul 09 03:53:08 I only have one function that needs this. I've been using Ion for most of the network stuff. Jul 09 03:53:25 sprite-- cool, how do you like ion ? Jul 09 03:54:19 just have something that starts all the async task and waits until each callback notifys Jul 09 03:54:36 g00s_: I like it. I was originally using loopj android async http but I had an issue where sometimes neither the onComplete or onFailure callback would get hit, so I moved my stuff over to ion and it works great. Jul 09 03:55:15 not familiar with that one. for http OkHttp is held in high regards, but i think its blocking not async networking Jul 09 03:55:39 async network i/o Jul 09 03:56:11 desmin88: I suppose I could just make a counter and increment it for each request I start, then on each complete check decrement and check for 0 and notify if it is. Jul 09 03:56:21 i keep getting Ion confused with something else Jul 09 03:56:39 AH, did it again. i was thinking of AndroidAsync Jul 09 03:56:51 ahh haven't tried that Jul 09 03:57:51 also from koush https://github.com/koush/AndroidAsync Jul 09 04:02:23 sprite-- you may also be able to use CountdownLatch Jul 09 04:04:18 CyclicBarrier could work if you need to reuse it. Jul 09 04:04:24 android doesn't have Phaser Jul 09 04:04:43 OkHttp is both sync and asynx Jul 09 04:05:06 Except it doesn't waste NIO like that one Jul 09 04:05:23 JakeWharton is it doing async non blocking network I/O at a low level (or have an option for that) ? Jul 09 04:06:13 or is it Async from the programmer's perspective Jul 09 04:07:08 Depends on the transport Jul 09 04:07:21 It's all blocking at some level, though Jul 09 04:09:32 Thanks everyone for the different ideas. Jul 09 04:24:43 sprite-- the rxjava operator that gives same result as fork/join is CombineLatest Jul 09 04:41:13 i have a listview which is causing lots of anrs on people's devices, because it takes so long to inflate. i've reviewed it carefully, and i can't find any optimizations in the layout structure. what else could i do to speed things up? for example, would not needing to resize drawables speed things up? Jul 09 04:43:56 whomp: asynchronous loading of images Jul 09 04:44:16 okay now it is time to try to find a way to use this activity to draw an image on the screen (yay?) Jul 09 04:50:18 JesusFreke, i'll check it out, thx Jul 09 04:50:52 JesusFreke, could i somehow get android to not resize an image and just use it? if so, would there be significant gains? Jul 09 04:55:25 your anr stack shows it hanging in inflate? Jul 09 05:12:25 pfn, https://gist.github.com/michaeleiselsc/9195e495a59b037e0d8a Jul 09 05:14:21 that's one ugly paste Jul 09 05:14:37 yay good news!!! Jul 09 05:14:44 I got the accelerometer demo working. Jul 09 05:15:02 is it just me or does the accelerometer on phones change in huge decimal amounts when you're ont even doing anything? Jul 09 05:15:12 you're not** Jul 09 05:16:20 ironhalik, hi Jul 09 05:16:30 Hope you are online Jul 09 05:16:49 Just wanted to mention that yesterdays back navigation worked with Jul 09 05:16:52 RedEyedGirl you typically need a low pass filter Jul 09 05:16:58 ActionBar actionBar = getActionBar(); Jul 09 05:16:59 actionBar.setDisplayHomeAsUpEnabled(false); Jul 09 05:17:30 but … if its changing when its sitting on the table, yeah dunno about that … maybe your device is quirky :) Jul 09 05:18:45 hmmm Jul 09 05:19:03 I'm really liking this book that boredev reccomended to me. Jul 09 05:19:06 It is really really helping me alot. Jul 09 05:19:17 the compass is another funny one, some devices it seems stable, others it goes kinda crazy Jul 09 05:19:50 maybe they are picking up on the fact that the north pole is switching to some place over siberia Jul 09 05:20:39 AssetManager assetManager = context.getAssets(); Jul 09 05:20:51 I understand this. But I don't understand what's with all these context keywords Why context? Jul 09 05:20:58 is context a superclass of the assetmanager Jul 09 05:23:23 No. Jul 09 05:24:03 A context is just global application data/info/state. Jul 09 05:24:58 Oh I see. Jul 09 05:25:53 now so I can understand this better. This book teachers the programmer how to set up their own basic framework for handling certain tasks.. Am I mostly required to specify the functions of the super class and refer back to it in any of my interfaces that I create that I'm meant to use the functionality to use or is wrapping the functionality on android this way just one way it can be done? Jul 09 05:26:39 I'm not really sure what you're asking there. Jul 09 05:35:30 uhm okay Jul 09 05:36:17 This is from the book I'm using: http://pastebin.com/DUYmcgQC Jul 09 05:37:09 now I would use the @override keyword to over ride those defined functions in that interface Jul 09 05:37:16 In a class or activity that uses that interface Jul 09 05:37:21 I'm not sure if that's the "only" way to do it. Jul 09 05:37:24 uhm or if it's the usual way Jul 09 05:42:34 Nilium working on anything cool ? Jul 09 05:42:57 Just my engine and common library and VM. Jul 09 05:46:19 sounds exciting, educational, and ambitious :) Jul 09 05:46:25 And mostly useless. Jul 09 05:47:22 Hello friends :P Jul 09 05:47:51 what is the best practice to find the default directory in which I can write information onto the android device Jul 09 05:48:34 BigBawb: http://developer.android.com/guide/topics/data/data-storage.html Jul 09 05:48:36 BigBawb your private data area, or external storage ? Jul 09 05:50:57 goodness I suppose Is hould know the difference, I believe my private data area Jul 09 05:51:15 from what I understand there is a default location in which I can write without specific permissions Jul 09 05:51:50 are you talking about smallish private data, or largeish media-type stuff? Jul 09 05:52:40 basic single text file Jul 09 05:53:07 then internal storage should be fine Jul 09 05:54:16 Will these files last when updating the application, as I don't want players to lose their data if they update. Jul 09 05:54:37 yes, they will last over an update... they'll be removed if the user uninstalls Jul 09 06:19:31 Looking for someone really experienced in using Google Maps API v2 Jul 09 06:58:53 i wonder why amazon hasn't created a dating service yet Jul 09 06:59:35 if i was going to take a stab at that problem, i'd match up people who enjoyed the same kinds of books :D Jul 09 07:14:23 "These men also enjoyed Effective Java" Jul 09 07:14:57 But that's being mean. Jul 09 07:16:27 kakazza lol Jul 09 07:16:49 fortunately, most of my reading is not CS Jul 09 07:17:51 amazon actually knows quite a bit about reader of kindle books Jul 09 07:18:01 what they actually read, what they highlight, etc Jul 09 07:18:13 kinda spooky :| Jul 09 07:24:18 kakazza: so good Jul 09 07:30:45 We can be book buddies! Jul 09 07:33:30 'looking for lady who read Piketty's 'Capital' and gave it 4+ stars Jul 09 07:33:51 maybe she can explain it to me :D Jul 09 07:35:08 i'm reading "Seventeen Contradictions and the End of Capitalism" thats a tough read too Jul 09 07:41:20 good morning peoples Jul 09 07:41:28 hey lemonxah Jul 09 07:41:47 so .. i have an issue with users that has TONS of images on their phones Jul 09 07:41:50 what happens is Jul 09 07:43:02 so i start the get image intent then they go to the gallery and the TONS of images is kind of a memory hog‽ so the OS kills my app then after they pick an image Jul 09 07:43:29 it restarts my app but the activity for result doesn't get fired? Jul 09 07:43:33 hey g00s_ Jul 09 07:44:01 lemonxah thats weird, should work. starting from a fragment ? Jul 09 07:44:23 yes Jul 09 07:44:36 the fragment is the one that has the activity for result Jul 09 07:44:40 now this works normally Jul 09 07:45:04 but as soon as the OS runs out of memory and has to re create my app from scratch stuff doesn't work for some reason Jul 09 07:45:18 super anoying Jul 09 07:45:19 and you are using Fragment.html#startActivityForResult Jul 09 07:45:41 using the right context, and giving it a valid requestCode, etc Jul 09 07:45:46 yeah Jul 09 07:45:47 thats strange Jul 09 07:46:06 as i say if there isn't 2000 pictures on the phone everything works as it should Jul 09 07:46:17 and thats when i say; the amount of state, is too damn high ! Jul 09 07:46:22 but as soon as my app gets axed by the OS things go pearshaped Jul 09 08:09:35 I was thinking of switching to android studio, I just wanted to make sure its mature enough to ship apps with, I assume it is but I was wondering if anyone has used it to ship a release version? Jul 09 08:09:58 or produce might be a better word I guess Jul 09 08:10:33 yes Jul 09 08:10:35 use AS Jul 09 08:10:36 I havn't released anything but I think other people have Jul 09 08:10:54 thank you, thats all I need to know :) Jul 09 08:11:08 I switched to AS recently.... cant imagine going back to anything else now for android dev Jul 09 08:11:48 I have been hearing nothing but good things about it. Jul 09 08:12:06 in linux njcomsec? Jul 09 08:12:11 windows Jul 09 08:12:20 win7? Jul 09 08:12:28 8 Jul 09 08:12:32 ah ok Jul 09 08:12:33 this is 2014 man Jul 09 08:12:38 heh Jul 09 08:12:50 I am all linux and win7 here :) Jul 09 08:13:34 I like AS's autocomplet too because it doesnt get in th way Jul 09 08:14:07 not like eclipse's autocomplet which inserts random crap every 5 seconds when you dont want it to Jul 09 08:14:47 I never thought I would like autocomplete in an IDE but AS does it well Jul 09 08:15:11 That sounds good, there are a lot of annoying UI issues with Eclipse in linux, the info hover thing does not go away also. Jul 09 08:16:29 Heh, I have to admit I do like the AC in latter versions of VS Jul 09 08:16:37 tho one is not suppose to admit that Jul 09 08:16:47 never tried vs Jul 09 08:17:04 I have used it for many years professionally. Jul 09 08:17:22 i used emacs before but I spent more time customizing it than getting work done so it wasnt very productive Jul 09 08:17:32 one gets used to it, its that bad actually if you stay inside the MS world. Jul 09 08:17:38 heh Jul 09 08:17:45 ya, emacs is god Jul 09 08:18:01 I have seen versions that are bootable "OSs" Jul 09 08:18:09 yeh Jul 09 08:19:11 thanks for the information njcomsec, it helps :) Jul 09 08:19:49 nyet problemeroz Jul 09 08:34:37 does the appwidgetproviders onUpdate method run in uithread or something else? **** BEGIN LOGGING AT Wed Jul 09 08:42:18 2014 Jul 09 09:00:44 hello Jul 09 09:00:48 can i pm any1 ? Jul 09 09:00:58 and ask all basic. Jul 09 09:02:38 how to download whole zip or directory from github.com ? Jul 09 09:03:07 look on the right side of the page, should have a link to download a zip of it. that or use the git clone command. Jul 09 09:04:11 https://github.com/android/platform_development/tree/gingerbread-release/samples/SearchableDictionary Jul 09 09:04:12 where ? Jul 09 09:05:25 ’ Sign up Sign in ExploreFeaturesEnterpriseBlog This repository Show command bar help * Star You must be signed in to star a repository 269 ork You must be signed in to fork a repository 320 public $ android/platform_development mirrored from tps://android.googlesource.com/platform/development.git _ Code Pull Requests… PulseC Graphs Network branch: gingerbread-re Jul 09 09:05:25 Jul 09 09:05:25 a Quickly jump between files ~ Jul 09 09:05:39 where 'download' ? Jul 09 09:05:51 you con only download the whole repo as a zip. not possible for search folders Jul 09 09:05:53 https://github.com/android/platform_development/archive/gingerbread-release.zip Jul 09 09:05:53 https://github.com/android/platform_development/tree/gingerbread-release/samples/SearchableDictionary Jul 09 09:06:01 https://github.com/android/platform_development/tree/gingerbread-release —> on the right side Jul 09 09:08:30 i saw no dwnload Jul 09 09:08:37 http://s24.postimg.org/d6jprpq6d/trashub.jpg Jul 09 09:08:40 how u got that Jul 09 09:08:42 whatever Jul 09 09:08:51 downlaoding 28.7 MB Jul 09 09:08:56 well, you have to go up in the repository Jul 09 09:09:06 remove samples/SearchableDictionary from the url Jul 09 09:09:28 https://github.com/android/platform_development/archive/gingerbread-release.zip >_> Jul 09 09:09:50 dont know what is repository Jul 09 09:10:06 dowloading https://github.com/android/platform_development/archive/gingerbread-release.zip Jul 09 09:10:48 50kbps Jul 09 09:11:03 huge notepad source files Jul 09 09:11:12 android is worst program language Jul 09 09:11:28 okay, easily explained just click on the top folder with ".." until you can't go higher anymore. than you are at the top of the branch in the repository. repository = android / platform_development, or just platform_development.. or better: git@github.com:android/platform_development.git is the git repository.. ;-) Jul 09 09:11:48 Then go away to another language's channel. Jul 09 09:11:53 and rename git to zip ? Jul 09 09:12:09 maybe you should read about git a little bit ;-) Jul 09 09:12:34 and android ;-) Jul 09 09:12:38 first i run simple sample projects Jul 09 09:13:32 if nothing runs and 1000 err0rs in useless dos era eclipse and android studio , wont even read definition of android Jul 09 09:13:55 Hi All Jul 09 09:13:59 doing sample trash and update update gradle adt eclipse sdk manager 10 days Jul 09 09:14:06 I'm trying to create a geofence app Jul 09 09:14:10 update update redownload Jul 09 09:14:17 seems that I'm able to add the geofence Jul 09 09:14:22 but I get this log: Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method Jul 09 09:14:28 not sure if it is a problem Jul 09 09:14:53 patrick91: is google play services included correctly? Jul 09 09:15:09 Estel: yes, I'm using google maps too, which works Jul 09 09:16:10 pboos Estel it downloaded whole server ? Jul 09 09:16:26 yes Jul 09 09:16:50 Estel: do I need to show the map while creating the geofence? Jul 09 09:16:59 patrick91: not sure, sorry :) Jul 09 09:17:08 ./samples/SearchableDictionary is only 0.1% of whole 28.7MB Jul 09 09:17:13 0.001 Jul 09 09:17:39 but got so many free samples Jul 09 09:18:25 you downloaded the whole repository. samples and the SearchableDictionary sample is just a part of that repository. Jul 09 09:18:39 github does not offer functionality to download a folder as a zip. just the whole repository Jul 09 09:18:54 and git does not allow cloning just a folder either: http://stackoverflow.com/questions/600079/is-there-any-way-to-clone-a-git-repositorys-sub-directory-only Jul 09 09:19:03 hope that is answer enough… stop whining ;-) Jul 09 09:19:25 be happy that you got so much more FREE stuff ;-)\ Jul 09 09:23:40 working searchable dictionary Jul 09 09:26:40 matcher.addURI(AUTHORITY, "dictionary", SEARCH_WORDS); Jul 09 09:26:40 matcher.addURI(AUTHORITY, "dictionary/#", GET_WORD); Jul 09 09:26:50 that is using SQLite ? Jul 09 09:27:34 and no MainActivity.java needed there Jul 09 09:44:27 can i ask Jul 09 09:44:37 ask Jul 09 09:48:32 Does proguard remove unwanted resource files? Jul 09 09:48:58 what is that Jul 09 09:49:12 firewall antivirus ? Jul 09 09:49:59 <_3mpty> question I heard opinions that unit testing under android is shitty, someone know why? Jul 09 09:50:03 emotionull: no Jul 09 09:50:27 _3mpty: because you have to test nearly everything on a device/emulator Jul 09 09:50:37 _3mpty: well, it is harder than on some other platforms. but it is getting better. Jul 09 09:51:02 _3mpty: robolectric is one thing that makes it easier to test locally without any emulator/device. Jul 09 09:51:40 _3mpty: and google are aware that currently their solutions is not as good as robolectric and they will make it better.. question is when.. Jul 09 09:52:14 pboos: the best they could go with would be a simple integration of robolectric into gradle Jul 09 09:52:38 <_3mpty> Thanks, I will dive in to robolectric Jul 09 09:52:45 is testing layouts on different devices part of unit testing in android? Jul 09 09:53:43 danijoo_: yes that would be really nice. probably easiest and fastest. but maybe they will do something similar to it. but i think they do want to have it work kind of like that. so that you can easily have unit tests run locally without going on a device. Jul 09 09:54:07 <_3mpty> It's time to start using unit tests for everyday coding ;) Jul 09 09:54:13 unit test without device is the way to do Jul 09 09:54:20 yeah i also guess they will kinda adopt the robolectric scheme Jul 09 09:54:24 way to go* Jul 09 09:54:41 basically its just a library "filling" those empty api calls in the SDK Jul 09 09:54:42 _3mpty: fest-android is pretty nice too ;-) but currently you might run into a verifyerror when running tests. if you do, check out the pull existing requests (one of them has a workaround for it) Jul 09 09:55:58 danijoo_: any tool to remove the unused resources? Jul 09 09:56:22 emotionull: you can run lint. it will tell you what is unused Jul 09 09:56:33 danijoo_: does android studio has lint? Jul 09 09:56:37 yes Jul 09 09:56:48 hello Jul 09 09:56:51 <_3mpty> pboos: any adventages of using fest instead of robolectric? Jul 09 09:57:03 Analyze->check code should it be at android studio Jul 09 09:57:14 danijoo_: ok..thnks..will check it out Jul 09 09:57:15 not sure though cause im not using it Jul 09 09:57:25 i can run dictionary project and search from text file in resource Jul 09 09:57:30 how to Jul 09 09:57:46 how to search from sqlite database Jul 09 09:57:55 i have huge dictionary Jul 09 09:58:04 has 2 columns word and meaning 7MB Jul 09 09:58:34 what to replace in text dictionary to read from DB file Jul 09 09:58:48 and rename definitions.txt with words.db Jul 09 09:58:48 GZ^Zff: u need to use Dictionary data structure Jul 09 09:59:01 replace Jul 09 10:00:04 i mean i have that working dictionary https://www.sendspace.com/file/cl892m Jul 09 10:00:12 180KB rar Jul 09 10:00:33 GZ^Zff: the simplest thing you can do is...hv 26 tables...each containing words starting from respective alphabet Jul 09 10:00:54 now depending on the word being searched...look into respective table.. Jul 09 10:01:09 i know or dont know Jul 09 10:01:21 but just want to replace 2-10 lines in that https://www.sendspace.com/file/cl892m Jul 09 10:01:24 no ? Jul 09 10:01:36 need to make and think and write everything u saying ? Jul 09 10:01:49 and https://www.sendspace.com/file/cl892m is useless ? Jul 09 10:02:14 my DB file is SQLite format 3   @ |    -â! Jul 09 10:02:30 and its not plain text inside Jul 09 10:02:34 unicode in notepad Jul 09 10:02:56 u sent me your whole app source code! Jul 09 10:03:04 who ? Jul 09 10:03:27 pboos and Estel sent it Jul 09 10:03:29 what is https://www.sendspace.com/file/cl892m Jul 09 10:03:55 that is tiny sample dictionary project. ,. Jul 09 10:04:03 aaand anotherone got trapped. Well played GZ^Zff Jul 09 10:04:10 and even full big ones are free in playstore.. Jul 09 10:04:26 help ops Jul 09 10:04:27 kroot ? Jul 09 10:04:48 kik ban danijoo_ Jul 09 10:05:00 can i pm emotionull ? Jul 09 10:05:03 huh? Jul 09 10:05:31 _3mpty: fest android is just for in the code to have some nicer checks :) Jul 09 10:07:13 * GZ^Zff slaps danijoo_ around a bit with a large trout Jul 09 10:07:26 hello GZ^Zff Jul 09 10:07:37 hello kroot, danijoo_ scared emotionull away Jul 09 10:07:44 " sorry..i m finding you suspicious " Jul 09 10:07:53 due to danijoo_ Jul 09 10:07:55 oh my… some kindergarden children are using the computer of the teacher... Jul 09 10:08:14 maybe its because i saw you 3 times spamming that channel with capslocked nonsense.. :) Jul 09 10:10:43 Am I allowed to do blocking operations in widgetproviders? like an url query? Jul 09 10:11:24 u dont know ? Jul 09 10:14:41 pboos and how to get all in zip from there http://docs.huihoo.com/android/3.0/resources/samples/SearchableDictionary/res/index.html Jul 09 10:14:55 huihoo, Jul 09 10:15:00 that one is sqlite sample Jul 09 10:16:41 * pboos is out for lunch Jul 09 10:17:07 guys, my service keeps calling onCreate, even after its created Jul 09 10:17:14 its a sticky one Jul 09 10:17:46 this is no tthe expected behaviour, it should be called once Jul 09 10:20:06 so? anyone? Jul 09 10:20:08 Actually I have a list view Jul 09 10:20:23 And I am adding the content into the list through the activity Jul 09 10:20:44 to redirect each selected item to its respective pages what should I do Jul 09 10:21:01 I am at present using onItemClick(AdapterView parent, final View view, Jul 09 10:21:02 int position, long id) Jul 09 10:21:20 which irrespective of what I select goes to same page Jul 09 10:21:23 * Nick-S_ needs some help on a service issue thats not so basic Jul 09 10:21:40 I have to write switch case? Jul 09 10:21:51 if so what should be the id using which I have to scan Jul 09 10:24:23 downlaoding all separately. , Jul 09 10:24:39 and renaming folders , creating text files renaming all files Jul 09 10:29:24 nice punishment , copy all create new text rename all download all Jul 09 10:29:28 10 hours Jul 09 10:29:48 evrybody uploading to github huihoo scam sites DIE Jul 09 10:30:00 wat Jul 09 10:31:46 ART question: why did Android devs choose for an on-device compilation of the dex files? or why doesn't the Play store offer a cross-compiled version of the application to be downloaded immediately onto the device so that no compilation isn't needed anymore? Jul 09 10:32:54 what about: Implicit intents with start Service are not safe? Jul 09 10:33:05 maybe thats what causing my problem? Jul 09 10:36:49 I made this view move around the corners of the application view based on device rotation... but when I rotate it clockwise, the item disappears at the last corner and reappears again when I've made full circle... it doesn't happen if I rotate counter-clockwise a couple of times and then clockwise again Jul 09 10:36:56 and err0r Jul 09 10:37:01 and this doesn't happen at all on samsung devices (well that's a first, right?) Jul 09 10:37:07 I'm going crazy Jul 09 10:37:41 idi0t fones dont hav hard rotation button Jul 09 10:38:24 rotation lock good Jul 09 10:38:51 wut Jul 09 10:41:34 u wont know Jul 09 10:41:36 whatevr Jul 09 10:42:34 u rotate ur head if fone randomly rotates anywhere ? Jul 09 10:42:47 and stay happy Jul 09 10:42:51 ? Jul 09 10:43:40 help how to run this Jul 09 10:44:38 ce3c, ART compilation for single apps doesn't take a lot Jul 09 10:49:39 danijoo_ how to run this ????? https://www.sendspace.com/file/g2ijok Jul 09 10:49:39 ? Jul 09 10:51:27 helicopter88, sure, but I imagine doing it serverside before sending it to the client cuts down a bit in waiting time before the person can use the app Jul 09 10:51:58 sure i open your links <°)))o>< Jul 09 10:52:14 ce3c, that would also increase download size Jul 09 10:52:24 RUN IT Jul 09 10:52:30 u chased away emotionull Jul 09 10:52:40 now U do Jul 09 10:52:46 ur fault Jul 09 10:52:48 of course Jul 09 10:53:05 ce3c, because the store isn't the only source of apps Jul 09 10:53:14 u made him quit he was correting the errors Jul 09 10:53:25 ce3c, and because that would introduce the terrible stupidity of iOS fat binaries where you have to recompile everything when new device comes Jul 09 10:53:26 helicopter88, Mavrik, good points Jul 09 10:53:39 ce3c, basically, there's no reason to change a system that works well Jul 09 10:54:01 someone fix 19 errors there ? https://www.sendspace.com/file/g2ijok Jul 09 10:54:05 on-device compilation even allows you to do stuff like optimize for that device (e.g. Moto X has a patched Dalvik( Jul 09 10:54:11 hello there friendly friends, is the default internal storage directory always /data/data/com.mypackage/files ? Jul 09 10:54:29 BigBawb, mostly, but not always. NEVER HARDCODE THOSE PATHS Jul 09 10:54:39 BigBawb: nerver rely on it Jul 09 10:54:42 yeah :( thats what I was afraid of Jul 09 10:54:46 theres a reason why there is a method to get it Jul 09 10:54:48 BigBawb, Environment.getDataDirectory() Jul 09 10:54:48 I was tryna be lazy Jul 09 10:54:51 getFilesDir() Jul 09 10:54:54 don't be Jul 09 10:55:18 because otherwise you get that retarded bullshit when bunch of apps died as SD-card location moved Jul 09 11:02:14 if I write a file to the external storage will it automatically overwrite assuming it has the same name and path Jul 09 11:03:52 android os wont ask yes/no ? Jul 09 11:03:59 overwrite without asking ? Jul 09 11:05:16 BigBawb: Depends on how you do it Jul 09 11:06:46 someone create textfield which displays matching column from DB file , to text area Jul 09 11:06:48 ? Jul 09 11:07:10 i got DB file column1 'Word' , column2 'meaning' Jul 09 11:08:08 also have sample project reading from plain text file Jul 09 11:08:10 working Jul 09 11:20:11 hi guys, quick question - any idea where I can get this error sorted out? I tried google with no luck. Thanks! (Gradle console output) http://www.pasteall.org/52715 Jul 09 11:24:59 How to go with it Jul 09 11:25:07 I have a list of items in alistview Jul 09 11:25:29 and each item selected should go to different forms Jul 09 11:25:44 At present any item selected points to same page Jul 09 11:25:53 I am not finding the logic Jul 09 11:27:10 onListItemClick(ListView l, View v, int position, long id) Jul 09 11:27:20 Intent intent = new Intent(App_list_Activity.this, GPS_activity.class); Jul 09 11:27:20 startActivity(intent); Jul 09 11:27:28 How can i modify that Jul 09 11:27:59 niru the method gives you a position and an item id Jul 09 11:28:16 you can use that to determine which position on the list is clicked Jul 09 11:28:21 and fire the corresponding intent Jul 09 11:28:51 ok... Jul 09 11:29:27 make my dictionar Jul 09 11:29:34 make my DB dictionary Jul 09 11:30:19 conert my text dictionary to SQLite DB dictionary Jul 09 11:30:24 ? Jul 09 11:30:26 pfn, hi you around? Jul 09 11:32:04 anyone have any ideas how I can get the right instrumentation packages installed on the emulator? Jul 09 11:33:31 I get a bizarre error when using gradle builds Jul 09 11:33:35 y helloworld taking 4.4MB in phone ? Jul 09 11:33:52 i got x86 emu Jul 09 11:35:10 Goeland86: what kind of errors do you get? Jul 09 11:36:16 pboos, http://www.pasteall.org/52715 Jul 09 11:36:25 that one specifically is driving me crazy Jul 09 11:36:51 anyone using sbt to build their android app? using scala? Jul 09 11:36:52 was just fighting with that one the last few days :) Jul 09 11:37:04 pboos, but when I run from within IntelliJ it works, so I'm confused. Jul 09 11:37:05 lemonxah: yes i did. but not with sbt. used maven. Jul 09 11:37:22 Goeland86: problem is probably that it did not install the test package Jul 09 11:37:32 pboos, ok, I'm all ears Jul 09 11:37:39 Goeland86: when you run the test out of AndroidStudio check if it installs APP and TEST Jul 09 11:37:52 Goeland86: mine just installed the app... Jul 09 11:38:06 after running it from command line once, it installed both… kind of weird Jul 09 11:38:28 pboos, arrrg, I don't know why, but right now it's telling me "uploading file local path doesn't exist" Jul 09 11:38:28 ./gradlew clean connectedAndroidTest Jul 09 11:38:40 try a rebuild project Jul 09 11:39:20 pboos, I can build it just fine, the problem is that I'm migrating the eclipse projects to IntelliJ (not android-studio), and doing the gradle files by hand Jul 09 11:40:07 hello Jul 09 11:40:25 someone conert my text dictionary to SQLite DB dictionary ? Jul 09 11:40:41 someone conert my github text dictionary to SQLite DB dictionary ? Jul 09 11:40:42 pboos, rebuild project works, running tests won't Jul 09 11:40:43 another thing i tried and maybe that helped in my case was: edit configurations (run configs) -> at the bottom of the test run config it has before launch. Add gradle aware make, then in task set :app:assembleTest (or something with assemble and test). it has autocomplete, so search for the correct one :) Jul 09 11:40:52 someone conert my github text dictionary to SQLite DB dictionary. Jul 09 11:42:35 pboos, the gradle aware make is already there (at least make, it doesn't see my project as gradle-aware :( ) Jul 09 11:43:11 ohh.. that is harder than. probably because you use normal intellij and not android studio.. but not sure Jul 09 11:43:33 pboos, probably specifically because I imported an eclipse project, and not created one from scratch Jul 09 11:43:40 android studio is useless never works Jul 09 11:43:54 and gradle download is virus Jul 09 11:44:22 eclipse is slow useless but half useless Jul 09 11:44:24 GZ, please just leave… Jul 09 11:44:41 i leave if u make me this search thing Jul 09 11:44:44 ? Jul 09 11:44:50 i make your search thing if you pay me Jul 09 11:45:01 money ? Jul 09 11:45:08 no, rocks…. Jul 09 11:45:08 duh Jul 09 11:45:27 but the yellow shiny kind of rock, right? Jul 09 11:45:38 have poker chips Jul 09 11:45:43 Goeland86: exactly :D Jul 09 11:45:49 but then its 90% working Jul 09 11:46:10 only need to replace text dictionary with database file Jul 09 11:46:25 pboos, so... this is weird and annoying - the thing works when I plug in my phone, but not on the emulator Jul 09 11:46:26 "only" then it is not a big thing. you can just do it yourself ;-) Jul 09 11:46:27 how much for that in paypal $ ? Jul 09 11:46:49 I trying to include a module via a relative path with gradle, but apperently the path is wrong, so now I'm trying to convert it to and print the absolute path to see where it actually points to. any idea how i could do that? Jul 09 11:47:12 GZ: try odesk or something. there you find people to do things like that for cheap. i am pretty sure i am too expensive Jul 09 11:47:51 Goeland86: that really is strange. what does the log show in intellij? does it install both apks? Jul 09 11:48:20 pboos, nope. whatever I do, intelliJ won't load the unit tests onto the phone or emulator, only works from gradle Jul 09 11:48:39 Syzygy__: how does your module include look like? should be something like: compile project(':library') Jul 09 11:48:41 Goeland86 ur BiLL $3982 Jul 09 11:49:23 yeah it is, it worked earlier, but now I'm trying to include the module in a module Jul 09 11:49:31 also, seems like i finally managed to print it. Jul 09 11:49:49 GZ^Zff, in USD or Rwanda dollars? and seriously, learn to deal with DBs yourself, it'll be worthwhile in the long run. Pulling data in or out of a SQLite is one of the easiest db interfaces I've worked with Jul 09 11:50:06 hi all, in my app i have many textView that not enter all in windows of phone.. how i can do for put this Textview under? i want move to them with scroll bar.. is possible? Jul 09 11:50:34 newbie|2, yes, but you need to generate a scrollable layout in which you have your textViews inserted Jul 09 11:50:42 ah Jul 09 11:50:43 ok Jul 09 11:50:45 thanks Jul 09 11:50:47 err, what's the component name again... I forget Jul 09 11:50:58 Goeland86: what? Jul 09 11:51:03 for the layout Jul 09 11:51:13 well, something came up, guess I'll have to ask again later Jul 09 11:51:15 ListView? Jul 09 11:51:16 but that's what google's for Jul 09 11:51:33 pboos, that's one of them, there're several Jul 09 11:51:48 thereisnt scrollbar layout Jul 09 11:51:52 GridView, ScrollView, ContainerView Jul 09 11:51:56 i have linearLayout Jul 09 11:52:05 or wait ContainerView is new.. not there yet really :) Jul 09 11:52:21 and i probably got the name wrong Jul 09 11:52:38 put your linearlayout into a scrollview :) Jul 09 11:52:43 i dont undstand :( Jul 09 11:54:07 how i put my Linear Layout in a new scrollView ? Jul 09 11:54:27 Jul 09 11:54:34 ups.. first / is wrong Jul 09 11:54:35 newbie|2, create a scrollView, then do a scrollView.addComponent(linearLayout) or something like that in the code Jul 09 11:54:39 should give you the idea Jul 09 11:54:54 who playing world of tanks ? Jul 09 11:54:59 Goeland86: in .xml? Jul 09 11:55:02 depends whether you're making the UI programmatically or through the xml Jul 09 11:55:04 this is boring useless android Jul 09 11:55:07 GZ^Zff, get out Jul 09 11:55:21 so, going back to work now... Jul 09 11:55:22 if you're going to be annoying and switch off topic, go in #wot or whatever Jul 09 11:55:26 Goeland86: i want edit the layout.xml Jul 09 11:55:30 you can suggest me how? Jul 09 11:55:38 newbie|2, then follow what pboos said earlier Jul 09 11:55:45 pboos, thanks for the help, even if I still have the issue Jul 09 11:55:51 ok Jul 09 11:55:59 thanks i try Jul 09 11:56:04 Goeland86 pay ur $5500 BiLL to pboos Jul 09 11:56:10 bye Jul 09 11:56:15 * GZ^Zff sleep Jul 09 11:57:12 GZ: thing is, we help here. but we don't do the work you should be doing. giving advice and helping with problems is one thing. doing the whole code for someone is something we don't do... Jul 09 11:58:01 i'm running asynctask to copy and load my database and afterwards i want to populate my listview with it. How can i do this in order? Coz atm everything works fine but i'm getting an empty list. Jul 09 11:58:10 i have 0.04 bitcoin Jul 09 11:58:36 GZ^Zff, it's a help channel, not a dev for hire channel Jul 09 11:58:37 I tried to notifyDataSetChanged on postExecute but the adapter is not yet created then. Jul 09 11:59:11 Goeland86: what width and height i must insert? Jul 09 11:59:14 not help channel Jul 09 11:59:27 pboos: what width and height i must insert? Jul 09 11:59:33 for scrollView Jul 09 11:59:40 newbie|2: match_parent for both Jul 09 11:59:44 nobody know how to evn update eclipse and gradle trash in stutio Jul 09 11:59:45 (most likely) Jul 09 11:59:53 who knows ? Jul 09 11:59:58 bit i dont want to know Jul 09 12:00:06 using old version and offline Jul 09 12:00:23 hi everybody... I am currently working on a Cordova/Phonegap Plugin for Android which should start a service that runs in the background... this background service implements a LocationListener that fetches location data. On every new geoposition I would like to call a method in the class instance that started the service. Can anybody tell me what would be a good way to do this? Jul 09 12:01:02 pboos: but if i want insert 100 text view each under other i must insert the TextView in scrollbar and potioning it out of window of Graphical Layout on eclipse? Jul 09 12:01:26 well, don't use the graphical editor.. and specially do not use eclipse ;-) Jul 09 12:01:46 but i think there is a way to make your screen expand to show everything Jul 09 12:02:18 at least i thought in AndroidStudio that exists Jul 09 12:02:22 pboos: ok Jul 09 12:02:30 evident, that sounds like it'll murder phone battery in matter of minutes Jul 09 12:02:37 evident, what are you trying to achieve? Jul 09 12:02:47 perhaps use Play Services geofencing functionality? Jul 09 12:02:57 and how i can view the text of the textView in more lines and not in 1 line? Jul 09 12:03:13 i know Jul 09 12:03:15 i got sample too Jul 09 12:03:16 there is a wraptext? Jul 09 12:03:25 newbie|2, I think that's a propery to set on the textView itself Jul 09 12:03:26 .setwraptext(true) Jul 09 12:03:32 called? Jul 09 12:03:33 something like multiline Jul 09 12:03:38 don't remember for sure Jul 09 12:03:45 am working mostly on android lib dev these days Jul 09 12:04:12 Environment.getExternalStoragePublicDirectory() give me /storage/emulated/0 but this path doesn't seem to exist. Anyone knows what's going on? Jul 09 12:04:20 there is maxlines Jul 09 12:04:22 lines Jul 09 12:04:27 minlines Jul 09 12:04:44 phyzloc, something is broken Jul 09 12:04:45 phyzloc, which android API are you working with, and which API is your device at? Jul 09 12:05:02 private TextView mTextView; Jul 09 12:05:03 private ListView mListView; Jul 09 12:05:05 newbie|2, try setting it with lines and see what goes on Jul 09 12:05:10 ? Jul 09 12:05:19 mTextView = (TextView) findViewById(R.id.text); Jul 09 12:05:19 mListView = (ListView) findViewById(R.id.list); Jul 09 12:05:24 ah ok Jul 09 12:05:31 is automatically wrapped! :D Jul 09 12:05:42 I think so Jul 09 12:05:52 Mavrik: yeah the battery life is one problem... I am planning to improve/change the way location data is fetched... e.g. through play services... nevertheless, I need a background service that runs even if the application is not in the foreground... But on certain events, I need to call JavaScript code from my app... Therefore I need the service to communicate with the plugin class that created it and tehre call a method to send back a callback Jul 09 12:06:01 int count = cursor.getCount(); Jul 09 12:06:01 String countString = getResources().getQuantityString(R.plurals.search_results, Jul 09 12:06:01 count, new Object[] {count, query}); Jul 09 12:06:01 mTextView.setText(countString); Jul 09 12:06:25 evident, again, why aren't you using geofencing API instead? Jul 09 12:06:32 Goeland86: I have minSdkVersion=8.. the phone is 17 Jul 09 12:07:42 Mavrik: you are right :) and as I said, I might change this. geofencing looks great... nevertheless, I need to get the communication working first ;-) Jul 09 12:07:46 Goeland86: Isn't the idea of the method to give me what's appropriate on the device? Jul 09 12:07:56 phyzloc, that's weird - Mavrik is right, something's broken Jul 09 12:08:36 Goeland86: hehe yeah I figured that :-) Jul 09 12:08:53 note that it's possible you're just not seeing the folder in shell because it's a like Jul 09 12:08:55 *link Jul 09 12:09:13 what diffrnce HelloWorld program for 1.5 2.3 and 4.4 ? Jul 09 12:09:24 Mavrik: I see a /legacy/ directory instead of /0/ Jul 09 12:09:50 Mavrik, normally you should still see the link appear as a normal directory... Jul 09 12:09:53 HelloWorld in 4.4 can use 8 cores , 2.3 uses 2 cores only ? Jul 09 12:10:02 Mavrik: So it probably has to do with android versions Jul 09 12:10:38 phyzloc, /0 is there since user profiles were introduced Jul 09 12:10:43 and legacy is there for old crap apps Jul 09 12:10:53 apparently surfaceview somehow breaks android drawing and my animated component, that's on top of the surface view, disappears in some cases Jul 09 12:11:06 yeah, SurfaceViews messes up bunch of stuff Jul 09 12:11:17 Mavrik: In that case I should have the /0/ dir Jul 09 12:11:21 phyzloc, check to see if you can find /sdcard or /mnt/sdcard instead? that should be a link pointing to /legacy/ Jul 09 12:11:23 Zharf, I found that using TextureView is way better when you ahve to composit results Jul 09 12:11:44 Mavrik, can I use textureview with camera? Jul 09 12:11:49 yep. Jul 09 12:11:55 ok I'll try that then Jul 09 12:11:58 Goeland86: /mnt/sdcard -> /storage/emulated/legacy Jul 09 12:12:14 phyzloc, ok, so you do see symbolic links Jul 09 12:12:26 hmm, can I access the Home button (exactly the left pointing arrow) as a normal view? Jul 09 12:12:27 so why don't you see the /storage/0/ folder I wonder... Jul 09 12:12:47 phyzloc, are there more than one user profile set on the phone? Jul 09 12:13:00 Goeland86: no Jul 09 12:13:22 phyzloc, huh, weird. worst case scenario you set one up then delete it afterwards Jul 09 12:16:17 Goeland86: Something is really strange. I get the path from getExternalStoragePublicDirectory() which I send to MediaStore.ACTION_IMAGE_CAPTURE and the image gets saved into /storage/emulated/legacy. So somehow the camera app knows what it's doing Jul 09 12:16:55 strange useless outdated 19th century trash Jul 09 12:17:12 phyzloc, the thing is that it shouldn't be sending it to legacy in the first place Jul 09 12:17:45 Goeland86: So when I give the path to save to, it work. When I read from same file I get no such file (because the path isn't there) Jul 09 12:17:50 Goeland86: Hmm.. Jul 09 12:18:01 English<->French Dictionary - Sell Android Apps and ... Jul 09 12:18:02 www.selltheapps.com/source/detail/2060.php Jul 09 12:18:03 Android > App ... It is #2 app on google play on term "English French dictionary". ... Easy to use with simple interface. ... Source Code Only Price USD: $2000.00. Jul 09 12:18:03 phyzloc, yes, something is bizarre Jul 09 12:18:11 $2000 digital dictionary ?? Jul 09 12:24:14 HELP Jul 09 12:24:21 <_3mpty> I have a lot of async volley requests and all of them depend from token request, token have timeout etc. so from time to time it need to be refreshed. Current version of code, tries to refresh those when server response for other request with bad token. It's ok but problem occures when multiple request want to refresh it at once: race condition. Currently I have an idea with locking start new request if one is pending and set broadcast receiver that Jul 09 12:25:45 Hi Jul 09 12:27:07 Does anyone know how to implement listview with 'images' in each item with "very smooth scrolling" like in Google Plus App? Jul 09 12:29:12 mygreymatter, basically... don't ever make main thread pause :) Jul 09 12:31:34 Hello guys, I have a design question. My app downloads certain items from a webserver and than displays it in a list. Is it a good idea nowadays to make your work app offline? So a user can check downloaded items even if there's no internet connection? Or should we assume that every Android user is connected to the internet? Jul 09 12:32:32 not caching the items sounds like a huge waste ob bandwidth Jul 09 12:33:29 Mavrik, yep, textureview solves my problems -.-' Jul 09 12:33:59 BtbN, I agree, although huge is a big word. The only waste is the downloaded pictures, the rest is a small amount of text. Jul 09 12:34:03 not yet sure if it gives me new problems Jul 09 12:35:16 So pictures can be cached for a period of time, which reduces the download bandwith. What do you think? Jul 09 12:35:43 Number5, if you want your app to work in europe, I recommend local caching and as minimal network connection as is needed the rest of the time Jul 09 12:35:56 lots of us take the train/subway/whatever where there is no network connections Jul 09 12:36:25 pboos, found the error! it turns out I need the emulator to use the Google API, not straight up Android Jul 09 12:36:26 Goeland86, good point. Jul 09 12:36:39 Mavrik, I tried using AsyncTask implemented in the getview of custom adapter. The problem is the creation of the asynctask object even for the slightest move and also memory consumption because of object creation. Jul 09 12:36:50 Still the list stuttters when scrolling Jul 09 12:36:52 Goeland86, but how bad is it, in these cases also Whatsapp won't work. Jul 09 12:36:58 Goeland86: interesting. Ah i forgot some people are still using the emulators :D. I use genymotion ;-) a lot faster Jul 09 12:37:11 pboos, yeah, sure, but emulator's easier to setup headless Jul 09 12:37:29 Goeland86: true :) Jul 09 12:37:45 Number5, whatsapp automatically caches the inbound requests or outbound data, and deals with it when connection is restored Jul 09 12:37:51 if you do something similar you're fine Jul 09 12:39:00 Goeland86, I understand. My app is more kind of a magazine. Is caching still recommended? Jul 09 12:39:20 is there any information about the new "dynamic security providers" in Google Play services, e.g., how they are used/created etc.? Jul 09 12:39:44 Number5, even more so - some tunnels can have you without connection for up to 10 minutes Jul 09 12:39:50 that's more than enough to browse a few pages ;) Jul 09 12:40:08 Goeland86, ok, thank you for your advise :) Jul 09 12:40:23 you're welcome! Jul 09 12:41:18 pboos, I kept forgetting to check for the Google APIs, thinking that with the Nexus 5 I had a straight up Android install - heh. silly me. Jul 09 12:51:57 Is it bad to have multiple AsyncTask classes in my project? I mean sometimes i need to fetch data from my database and I do that with an AsyncTask, but the queries maybe vary so i need multiple AsyncTask classes? Jul 09 12:55:10 skulltower, no and no Jul 09 12:57:49 skulltower, are you talking about hitting an sqlite database on the device? Jul 09 12:58:02 jonc, Yes Jul 09 12:58:11 so which mobile ad network is best if i want to advertise on business apps (forbes, businessweek, etc...), sports apps, and maybe some adult apps too? We will be advertising for commercial loans, so financial services... Jul 09 12:58:34 depending on the queries, you may have an issue with locking of tables. I may be wrong but I am fairly certain a query on a table in sqlite locks the entire table Jul 09 12:58:36 i doubt this is the best place to ask, but i figure since you guys are the ones who pick which network to integrate with... Jul 09 12:59:00 would it just b AdMob> Jul 09 12:59:01 ? Jul 09 12:59:27 am very familiar with adsense & adwords, sooo that would b nice... Jul 09 12:59:37 jonc, Yes it may be true. I'm not sure if the tasks would run at the same time though. Is there a better way? Jul 09 12:59:45 http://www.sqlite.org/lockingv3.html tells how it locks Jul 09 13:00:05 select seems to get a shared lock (can read multiple) but insert, update and delete need an exclusive lock Jul 09 13:02:06 skulltower, it depends on what you are doing, if you are only selecting from the database you will be fine Jul 09 13:02:43 if you plan on selecting, updating, deleting and inserting (or select + any of the other 3) you will need to implement some form of locking on your own so that you can handle it Jul 09 13:03:04 Hello everyone :D Jul 09 13:03:16 jonc, yea i'm mostly selecting. But i still don't understand how I can change the doInBackground of the synctask for different queries Jul 09 13:03:24 Should i send the query as an argument? Jul 09 13:04:20 I wrote a wrapper around the database stuff, so for instance if I store a user's information in a database I may make a wrapper that has a getUser() and saveUser(User user) method Jul 09 13:04:31 and the wrapper handles all of the locking Jul 09 13:04:47 helllo Jul 09 13:05:08 some1 explain all things ? Jul 09 13:05:13 42 Jul 09 13:05:27 I have a quick question for you guys, I'm having the good old "R cannot be resolved to a variable" and I'm wondering, is there any way I can get access to the build log and see what failed on the R,java generation? (using eclipse) Jul 09 13:05:35 droid transformer universe ? Jul 09 13:06:11 LOGCAT gives all log and floods pc with 1000MB text per second Jul 09 13:06:24 closing it only closes display Jul 09 13:06:25 logcat only gives you data back for what's on the phone Jul 09 13:06:29 oh god how I have support libraries Jul 09 13:06:35 jonc, well thanks for your input i guess i'll try to figure out hte rest by myself Jul 09 13:06:49 no Jul 09 13:06:50 wadge, normally the console output should show you the log Jul 09 13:07:06 phone is doing nothing and CPU 0% use, battery same evn after 10 hrs of sleep Jul 09 13:07:12 but logcat keeps flooding Jul 09 13:07:43 GZ^Zff, logcat is only for events on the phone, it does NOT show compiler info. Jul 09 13:07:54 Goeland86: Hmm console only has Android an DDMS Jul 09 13:08:08 just because it's sending data back and nothing's "apparently" happening doesn't mean nothing happening. Jul 09 13:08:44 wadge, err... no you should have a console view itself, DDMS and Android views are separate. is this the adt bundle or a clean eclipse + plugin install? Jul 09 13:09:13 adt bundle Goeland86 Jul 09 13:09:37 wadge, ah, ok. the proper console might not be displayed if it's not part of the default layout Jul 09 13:09:41 I thought it was, but I could be wrong Jul 09 13:10:27 Well I have "Problems", Declaration, search, progress console and logcat tabs Jul 09 13:10:44 below my editor panel Jul 09 13:11:04 right, so the console tab should be it Jul 09 13:11:17 How to make listview scrolling very smooth? Jul 09 13:12:10 yea, but when I build the project I get no log Jul 09 13:13:14 wadge, the eclipse compiler is horrible about giving you error messages Jul 09 13:13:18 so that's not surprising Jul 09 13:13:53 I know, but I'm pretty positive that there must be a way to see what is failing on the R generation no? Jul 09 13:15:06 There is a lot of code and files involved and I've actually have gone through it all but still I can't find the error Jul 09 13:15:24 wadge, try clean/rebuilding all projects Jul 09 13:15:37 wadge, there is no clear way of determining why eclipse decides to mess up Jul 09 13:15:51 wadge, the whole dev team here just cleans and restarts eclipse until it works Jul 09 13:16:58 I'm doing that for about 3 days now lol Jul 09 13:17:15 Is there a good Bluetooth logger for rooted devices? I want to log the BLE/GATT connection. Jul 09 13:17:46 wadge, sometimes we'd have to delete/reimport the project... (just make sure not to delete the files on disk if you don't have a VCS setup) Jul 09 13:19:18 xreal, what about logcat with a GATT filter? Jul 09 13:21:32 Goeland86: oh okay, can logcat log *anything*? Jul 09 13:21:45 pretty much anything going on on the phone afaik yes Jul 09 13:21:56 Goeland86: nice, thanks. I'll try that soon. Jul 09 13:22:21 Goeland86: I've seen some kind of modded iBeacon today... I want to analyze it without reversing the code. Jul 09 13:22:36 xreal, gotcha. which brand? Jul 09 13:23:00 Goeland86: Noname, it stands at hour university. I think, some students invented it. Jul 09 13:23:04 our* Jul 09 13:23:30 There is an app, it detects how far you stand away from the monitor and you can interact with the app. Jul 09 13:23:36 I think, it works via GATT. Jul 09 13:23:48 xreal, ah, ok. 'cuz we've been working with Tod beacons, and tested a few others, too, so yeah Jul 09 13:24:21 Goeland86: I bet, the data is crypted, since GATT is neither crypted, nor paired, isn't it? Jul 09 13:24:33 If I go to file->export I am asked to create a key store? is that only for in-app-purchases? Jul 09 13:25:42 xreal, ah, on the ones we tried? depends on the beacon. if it's a standard iBeacon factor, no, it's not encrypted. if it's a proprietary API it might be Jul 09 13:25:58 Darkchaos, no, it's the equivalent of a digital signature on your app Jul 09 13:26:15 Darkchaos, think of it as a "certificate" for your app, proving it does indeed come from you Jul 09 13:26:38 so just uploading the "bin/*.apk" File used for debugging wont work? Jul 09 13:27:49 it would, but it's not recommended. the signed apk can be certified as not having been modified (i.e. someone decompiles it, adds whatever evil code bits they want) and re-uploads it elsewhere Jul 09 13:27:59 Goeland86: do you think I should upgrade to android studio then? Jul 09 13:28:24 wadge, not yet. it's not quite ready - plus the import eclipse projects in android-studio is broken atm Jul 09 13:28:47 okay. I did sign it, now zipalign failed Jul 09 13:29:02 so I need to run it manually Jul 09 13:29:15 :/ can't help you there, we use a team-wide keystore, and someone else is in charge of it Jul 09 13:29:45 zipalign is something different (broken sdk-tools, it says) Jul 09 13:29:59 I just need to know if i should align 64 or 32bits Jul 09 13:30:00 guess 32bit Jul 09 13:30:17 mmmprobably Jul 09 13:30:28 Hey, can we SET a properties in android ? I arrive to READ a property but not to SET them Jul 09 13:30:44 Did we need a specific permission on manifest ? Jul 09 13:33:49 and how about that thing I saw in the manifest? Some Protection against decompiling? does that make sence for a stupid "ATARI Pong" clone? Jul 09 13:34:11 cyber37, depends, if they're system properties, then no, you can only read them. if they're android VM properties, you can modify those with the right permission in the manifest Jul 09 13:34:21 Darkchaos, up to you to evaluate that Jul 09 13:34:33 my instinct says no, but depends on how much cash you get flowing in Jul 09 13:35:28 I guess nothing. it neither has in-app-ads nor in-app purchase Jul 09 13:35:38 however, we'll see, hopefully the people like it. I do Jul 09 13:39:47 oh shit. Cant update because I need the key I used on the old computer.. Jul 09 13:40:21 woops. that's where setting up a shared keystore helps ;) Jul 09 13:45:14 I'm trying to move a module from my master module to a (sub)core module, but I'm getting the error: Project with path ':SlidingMenu' could not be found in project ':AndroidCore'. Jul 09 13:45:34 http://pastebin.com/Lth13FsH here are the relevant parts of my code Jul 09 13:46:27 Did someone have an exemple about how to use properties with android ? Jul 09 13:46:38 I arrive to read, not to save. Jul 09 13:47:33 use properties? Jul 09 13:48:01 using gradle btw Jul 09 13:53:01 Or what is the best way to save information with an android app ? like a ini file .. Jul 09 13:53:54 cyber37, depends on the type of information Jul 09 13:54:16 sharedPreferences, sqlite comes to mind Jul 09 13:56:21 I have my main activity with the launchMode singleTask. It starts my sqlitedatabase. If this activity would get destroyed other activities would not function. Is it possible that while not using my main activity it would be destroyed? Jul 09 13:56:47 I mean i begin with main and then go to other activities can it be destroyed while im browsing the other ones Jul 09 14:01:25 I am watching for work with ini files actualy Jul 09 14:01:36 i just need to save "edittext" values. Jul 09 14:01:54 Actualy my problem is to know "where can i save this file" Jul 09 14:02:37 open failled EROFS read only filessystem Jul 09 14:19:38 hate not having my bnc running Jul 09 14:20:57 nothing works Jul 09 14:21:49 2014 , all the useless GUI layout can show is helloworld Jul 09 14:22:08 all 19th century google oracle eclipse all scammers Jul 09 14:23:43 good for you, go away please Jul 09 14:26:27 experimenting with the Beta-testing feature in Play. it says a production APK is not required, but it won't accept my debug signed APK. what does it mean by production APK not required Jul 09 14:27:13 ahh, of course, that used a different certificate Jul 09 14:35:32 if anyone uses the beta-testing in Play, do you just build a new release, or do you create a new buildType? Jul 09 14:37:11 Beta Play Store ? Jul 09 14:39:16 <_3mpty> mattblang: it depends Jul 09 14:39:49 <_3mpty> to what you would like use buildType Jul 09 14:39:51 yeah, Play store has a Beta testing feature. just found out earlier myself this week Jul 09 14:40:15 _3mpty well, should I change anything to differentiate it from a normal release? Jul 09 14:41:46 i got tools razorsql exportize etc none can read my sqlite 3 db file Jul 09 14:41:52 how to convert it to text ? Jul 09 14:41:53 <_3mpty> mattblang: again, it depends what you would like differentiate - server that app is pointing to, then anwser is yes Jul 09 14:42:09 i have slite browser but it cant convert to text Jul 09 14:42:15 q Jul 09 14:43:01 _3mpty-3mpty got ya, there is nothing I want to change. was just curious if I should change anything so that it doesn't appear to be a production APK Jul 09 14:43:39 _3mpty for example, is there a "not production" flag you could set or something Jul 09 14:43:52 <_3mpty> no because is beta tests will not raise any major bugs you can 'promote it' to production Jul 09 14:44:01 <_3mpty> if* Jul 09 14:44:02 _3mpty got ya, thanks man Jul 09 14:55:10 I'm new to android and having trouble modifying the "hello-jni" example on ndk-r9d / eclipse-4.3.2. When I push the unmodified example to my device (4.4.2) it runs fine. When I modify the "hello world" string in the C source file, then push to my device, the old 'hello world' string is still displayed. I tried cleaning my project and rebuilding it but I cannot get the modified 'hello world' string to be shown. Any suggestions? Jul 09 14:55:34 p.s. the hello-jni sample is here: https://developer.android.com/tools/sdk/ndk/index.html#Samples Jul 09 14:59:12 run ndk-build again Jul 09 14:59:14 clean the project Jul 09 14:59:16 and rebuild it Jul 09 14:59:20 the apk includes the old .so Jul 09 14:59:32 I'm trying to move a module from my master module to a (sub)core module, but I'm getting the error: Project with path ':SlidingMenu' could not be found in project ':AndroidCore'. Jul 09 14:59:42 Syzygy__, then make it foundi n AndroidCore Jul 09 14:59:45 that's so obvious.... Jul 09 14:59:45 http://pastebin.com/Lth13FsH here are the relevant parts of my gradle code Jul 09 15:00:04 pfn, how? I'm including the correct path Jul 09 15:00:12 Syzygy__, and use the aar Jul 09 15:00:43 hmm, guess slidingmenu doesn't have one Jul 09 15:00:48 in that case, use DrawerLayout Jul 09 15:02:20 not particularly helpfull with my current issue. Jul 09 15:02:25 pfn, that worked. ty. Is what you described the normal build process or can we automate the rerunning of ndk-build and cleaning? Jul 09 15:02:43 With padding on an ImageView I can get the src drawable smaller, but setting padding on top, left, right, bottom doesn't make it centered, it just becomes smaller into one direction Jul 09 15:02:58 how can I make it smaller, while keeping it centered without changing the width/height dimensions Jul 09 15:03:37 dk0r_ ?? Jul 09 15:03:39 dk0r_, sure, you can, adjust your build scripts appropriately Jul 09 15:03:41 how u new ? Jul 09 15:03:51 what hello-jni wat ndk-r9D ?? Jul 09 15:04:28 wat diffrenc NDK ADK ?? Jul 09 15:04:31 JDK ? Jul 09 15:04:36 watever Jul 09 15:04:40 GZ^Zff, use google, go fuck off Jul 09 15:04:41 kthxbye Jul 09 15:04:56 dont need all trash names Jul 09 15:05:04 im converting sqlite3 d to txt Jul 09 15:05:11 DB Jul 09 15:07:12 Swearing underlines every valid argument : D Jul 09 15:07:53 woot, git reflog saved my lost changes, yay Jul 09 15:08:26 github huihoo scam Jul 09 15:08:49 git is independent of github... Jul 09 15:12:21 y his photo got no fragment xml http://examples.javacodegeeks.com/android/core/database/sqlite/sqlitedatabase/android-sqlite-example/ Jul 09 15:13:20 whatever Jul 09 15:14:13 drawable n values is clearly space waste n duplicates Jul 09 15:14:23 highest res should be auto resized by android os Jul 09 15:14:29 cant somebody remove him? :/ Jul 09 15:15:04 Yeah, it's been going on for long enough. Jul 09 15:15:16 since a week to be exact :S Jul 09 15:16:15 Obviously everyone here is, uhhh, too nice Jul 09 15:17:21 pfn, DrawerLayout moves itself on top of the underlying fragment. Is there a way for me to push the fragment aside? Jul 09 15:24:45 houdy Jul 09 15:25:18 is there a chance Fragment.onActivityCreated is not called on the way back in to a fragment? Jul 09 15:26:00 .commands Jul 09 15:26:03 .help Jul 09 15:26:06 Syzygy__: you can use SlidingMenu Jul 09 15:26:11 GZ^Zff: no bots here Jul 09 15:26:16 what do you need? Jul 09 15:26:30 n0thign Jul 09 15:26:40 thepoosh, he has been just spamming and flaming the channel for a while now. Jul 09 15:26:45 no Jul 09 15:26:46 hmmmm Jul 09 15:26:49 like... even days ago Jul 09 15:26:52 i needed definition Jul 09 15:26:56 fragment Jul 09 15:26:57 not now Jul 09 15:26:58 bye Jul 09 15:27:09 Syzygy__: I don't remember seeing him over the past few days Jul 09 15:27:21 at least last week. Jul 09 15:27:40 Syzygy__: anywho, drawer is meant to be on top of the main layout and not next to it Jul 09 15:27:59 and I'm trying to use SlidingMenu, but I have a problem including it as a module of one of my modules. Jul 09 15:28:01 with gradle. Jul 09 15:28:23 before pfn was so ultra helpfull to recommend me "don't use that" Jul 09 15:28:24 why module?! it's an android native layout Jul 09 15:28:34 lol Jul 09 15:28:42 he was always strait forward Jul 09 15:28:43 can you link me that? Jul 09 15:29:31 because I'm talking about this: https://github.com/jfeinstein10/SlidingMenu not at all native Jul 09 15:30:58 2 YeAr aGo ? Jul 09 15:36:06 can someone help me with what they mean when they say primitive datatypes can't be 'extended'? Jul 09 15:36:09 Syzygy__: although I dont know why you dont use the native drawerlayout, cant u just include the maven of this repo into your gradle> Jul 09 15:36:46 oh nvm Jul 09 15:36:52 there is no gradle :D Jul 09 15:37:22 in this case you have to download the code, add as a module to your project Jul 09 15:37:37 and in gradle under dependencies you have to include it Jul 09 15:38:29 dependencies{ compile project(:MySlidingMenuModule) } Jul 09 15:38:46 with quotes (i forgot them) Jul 09 15:40:12 guys, how to send some message/data to device, without use GCM? Without Google Play. (For Corporate usage only) Jul 09 15:40:56 woozly: you could use an alternative service like parse.com Jul 09 15:40:57 danijoo_, not using drawerlayout because it moves on top of my content, I want it to push the content aside. my original question was how to include the module as a submodule of another submodule of my main module. Jul 09 15:41:08 I see only one solution: App ping server with interval. Jul 09 15:41:35 danijoo_: oh.. they have some kind of server-client messaging? Jul 09 15:41:43 Tolgon: Where primitive datatypes = boolean | byte | short | char | int | long | float | double? Jul 09 15:41:46 yeah. its basically the same as gcm Jul 09 15:41:50 but from somebody else :) Jul 09 15:42:02 yes flan3002 Jul 09 15:42:13 danijoo_: Nice. How it named? Jul 09 15:42:21 there are 2 or 3 big guys in that business and parse.com is one of them Jul 09 15:42:39 danijoo_: because I use Parse for experiment Jul 09 15:42:54 danijoo_: okay. Thank you. Will read about it Jul 09 15:42:57 yw Jul 09 15:43:08 Tolgon: What don't you understand about it? They represent the only value-types in Java (alongside Objectreferences) and can't be extended because they aren't objects... Jul 09 15:43:17 Syzygy__: dont know about submodules of submodules.. Jul 09 15:44:03 Tolgon: primitive datatypes arent real objects, which is why they cant be extendes Jul 09 15:44:15 yes I understand now Jul 09 15:46:42 danijoo_, well, rather projects i guess. not to be confused with git submodules (even though they are in my case). Jul 09 15:46:48 Greetings, folks! Couldn't anyone please help me? I'm preparing a lot of builds of my app, so I've stopped at this moment: you know there are 3 of 360DP screens in different densities: 540x960, 720x1280, and 1080x920. While qHD and HD screens has their own properties known as android:largeScreens and android:xlargeScreens relatively, I can't find there a property for a FullHD screen which is XX Large, so I'm wondering: should Jul 09 15:46:49 just include all graphics for xhdpi and xxhdpi while android:xlargeScreens is set to true OR should I increase build target number for those APKs, so this android:xxlargeScreens (?) will appear? Jul 09 15:47:39 danijoo_, http://pastebin.com/Lth13FsH basically, instead of including SlidingMenu in my main project, I want to include it in the core project Jul 09 15:48:05 by now I'm aware that I can't use two settings.gradle files. Jul 09 15:48:20 and that the one in the androidcore project gets ignored Jul 09 15:48:25 oh wow Jul 09 15:48:36 thats beyond what i can do with gradle sorry :D Jul 09 15:49:11 hi danijoo_: Jul 09 15:49:29 hello Jul 09 15:50:41 Hows it going Alfreda! Jul 09 15:50:54 EdGeorge: well thanks Jul 09 15:50:56 and you Jul 09 15:51:28 All good. How can I help :-P Jul 09 15:51:59 posplaw: I'm not sure what your problem is, there's no such thing as xxlargescreens? Jul 09 15:52:23 Estel: there is no such thing, you're right Jul 09 15:53:47 So I'm not sure why you're trying to do what you're doing? Jul 09 15:54:52 Estel: I'm doing "Multiple APK", so both HD and FullHD users could download app with less size, proper for each density, while otherwise they could download the same APK which contains both graphics and have greater size Jul 09 15:57:22 posplaw: What's the size difference? Jul 09 15:57:31 You should probably filter on the android:screenDensity rather than supports-screen attribute, imo. Jul 09 15:57:48 what the hell is the difference between HD and FullHD Jul 09 15:58:07 It usually refers to 720p / 1080p Jul 09 15:58:13 oh okay Jul 09 15:58:17 But it doesn't really apply to Android... Jul 09 15:59:52 flan3002: 1080p graphics add ~47.5mb to the 720p users, while 720p graphics add 24mb to the 1080p users Jul 09 16:00:16 Okay, it's worth it, posplaw. :) Jul 09 16:00:55 is it normal for FragmentPagerAdapter.getCount to be called about 5 times a second? Jul 09 16:01:10 sqrrl: doubt it Jul 09 16:01:14 sqrrl: guess so Jul 09 16:01:18 One of those Jul 09 16:01:27 :/ Jul 09 16:02:00 Well, as I got from tutorials, I should use for multiple APKs, but now with I'm only confused where should I go to separate my build for 540p, 720p and 1080p as for example Jul 09 16:02:34 it's getting called even while i don't do anything at all Jul 09 16:02:49 posplaw: you should stop categorising your devices with 540p/720p/1080p, because I'm really not sure whether you're referring to physical screen size or not. Jul 09 16:03:15 was wondering, what would you consider to be the easiest way to communicate information between two android applications? Is there such thing as bidirectional communication between intents Jul 09 16:03:28 posplaw: have you already read that? http://developer.android.com/guide/practices/screens-distribution.html Jul 09 16:04:04 bacon1989: broadcasts Jul 09 16:04:43 Presumably if your assets are being duplicated between mdpi/hdpi/xhdpi/xxhdpi buckets, you'll want to split your builds between devices that are accepting those assets? Jul 09 16:04:56 ah, so i'd broadcast, and then broadcast results back? Jul 09 16:05:02 danijoo_: well, yes. So there is my next question: what if I use with smallest and at the same time maximum available DP as 360 and then with xhdpi, so this APK will be targeted against 1080x1920 screens? Jul 09 16:05:27 danijoo_: sorries, I meant XXhdpi Jul 09 16:06:38 posplaw: densities are buckets, so it would catch various small handsets up to 1440px across Jul 09 16:07:28 Estel: I have all graphics for all dimensions and screens prepared, so it's like 20 of builds are going to be made by me, so I'm just wondering how to separate all graphics between them properly Jul 09 16:07:53 I need a system that allows me to retrieve the result from the broadcast, is this possible? It doens't seem like it is Jul 09 16:11:14 So what if I want to make an APK for 240xYYY screns? I know it's a 320dp and LDPI. What settings should I put into the manifest, so this APK would be targeted only against phones with screens with width of 240 real pixels. Jul 09 16:11:34 why make so many different apk Jul 09 16:11:40 just make one apk with all your assets Jul 09 16:11:46 unless it's gonna be like 2gb Jul 09 16:12:04 pfn: full assets = 673mb Jul 09 16:12:14 pfn: would you install such an app on an old phone? Jul 09 16:12:24 Hey there. I started developing my app using a galaxy S3. Now I need to adapt some button margins to S4 and S5 screens. I've tried to create a new dimens file in the values-xxhdpi folder, but when I run the app on the S3 the layout is using the xxhdpi folder instead of the normal values folder. Jul 09 16:12:25 I would throw away an old phone Jul 09 16:12:32 I barely install any apps on an old phone at all Jul 09 16:16:11 pfn: okay, there is an example of 768dp: imagine, you got a tablet with a resolution of 768x1024, you wanna download my app, which would have a size = 80MB if I separate builds, but if I don't, well, my app for 768x1024 users will be 220MB now, will you install it? Jul 09 16:16:47 posplaw: If it looks good and I got Wifi (which I don't), why not? :P Jul 09 16:17:02 flan3002: the problem is not a connection, the problem is a storage Jul 09 16:17:03 As long as I don't know why it's that big... Jul 09 16:17:41 Yeah... 220MB is still acceptable. If the app is good of course. Is it a game? Jul 09 16:17:48 what does the + stand for in android:id"@+id/this_id" ? Jul 09 16:18:20 Tolgon: I read it creates a new Id. Just always use it, it works then. :P Jul 09 16:29:12 <_Auron_> yay, R is perma-broken in my project. FML Jul 09 16:29:32 usually a problem with one of the xml files Jul 09 16:30:08 <_Auron_> only way the xml files changed is if dropbox broke them Jul 09 16:30:27 <_Auron_> but yeah R.java isn't being generated. ugh Jul 09 16:43:02 hey guys , so I made an app with android studio , and in the build.gradle I set the minSdkVersion 1-0 , and the targetSdkVersion 'L' , but apparently on anything but the L release preview it fails to install due to older sdk "INSTALL_FAILED_OLDER_SDK" - any ideas? Jul 09 16:44:10 Hi, having some problems using the support-v4 library for DrawerLayout. My project is using minSdkVersion 15, however apparently this is smaller than version L declared in library support v4. How can I use the DrawerLayout in lower versions? Jul 09 16:44:26 Guys, what's the best approach to have a predefined sqlite db in a app? Let' say that the DB has ~2mb, what's the best way to handle it? Wish SQL Inserts? Having a full sqlite in the assets... what's the best approach?! Jul 09 16:44:57 SidFerreira : you just package it in the apk and then copy it to the data folder when the app is first ran Jul 09 16:45:35 overburn: is there a way to, after copying, remove it?! Jul 09 16:45:46 compress it is a good idea? Jul 09 16:45:57 SidFerreira: well inside the apk it is compressed already Jul 09 16:46:20 SidFerreira: I guess you could remove it afterwards, but I don't know wether the android system allows it as I've never tried it. Jul 09 16:46:48 overburn: I had the same error. couldnt find another fix then reverting to targetSDKVersion 20 Jul 09 16:46:50 plus, it's a bad idea. if the user deletes the app data, and the db needs to be redeployed, by removing it from the apk, you will create a problem Jul 09 16:47:06 danijoo_: hmm , I don't want that heh Jul 09 16:47:10 i guess L will only work on devices with this SDK version as its a preview Jul 09 16:47:33 danijoo_: not sure, I could always add it manually in the manifest, but then , why am I using gradle? Jul 09 16:47:38 aaronds: use version 20.0.0, not 21.0.0-rc1 Jul 09 16:47:57 overburn: you can set it in gradle to lower SDK version Jul 09 16:48:06 JakeWharton: i'm using 20.0.0 build tools version Jul 09 16:48:16 danijoo_: : yeah, it's set at minSdkVersion 10 heh Jul 09 16:48:25 for the support-v4 dependency, not build tools Jul 09 16:48:30 minSdkVersion should be 15 Jul 09 16:48:41 JakeWharton: oh, sorry , didn't see who you were talking to Jul 09 16:49:05 well ignore andoridL until it is out i guess Jul 09 16:49:05 the latter was to you, death to Gingerbread Jul 09 16:49:05 JakeWharton: how do I change the version of an individual dependency in android studio? Jul 09 16:49:20 its kinda stupid that gradle is auto-set to android L though Jul 09 16:49:35 aaronds: just open up the build.gradle and find the line that's like: compile 'com.android.support:support-v4:21.0.0-rc1' and change the number to 20.0.0 Jul 09 16:50:34 JakeWharton: well, seeing as gingerbread is currently 13% and ICS is at 11%, i'd say it isn't dead yet Jul 09 16:50:45 um Jul 09 16:50:51 ICS+ is at like 85% Jul 09 16:51:11 wicked thanks JakeWharton Jul 09 16:51:39 overburn: although not dead yet, it will die slowely and once you start supporting it it gets more and more a pain to add new features to your app Jul 09 16:52:02 because you always have to think "will this also work on the old devices?" Jul 09 16:52:05 danijoo_: well, it's my first playstore app, so I want to support this heh Jul 09 16:52:13 hello. Has anyone used the MediaCodec to encode h264? I'm having trouble with some devices and their color formats Jul 09 16:52:55 I'm looking at this https://groups.google.com/d/msg/android-platform/awaNwgb6EbY/a-YiIOwaL0QJ and I wanna ask if anyone had the same issue and found a solution for it Jul 09 16:52:59 overburn: if this is your first then you should explicitly not be supporting them Jul 09 16:53:16 i cannot emphasize how much of a waste of time it is Jul 09 16:53:16 specifically I'm referring to some Qualcomm devices needing a padding for the chroma plane Jul 09 16:53:21 Voicu, basically only real way to get it done is to use api level 18+ Jul 09 16:53:33 Zharf, yeah, that's what I figured Jul 09 16:53:41 to be honest if people don't bother with upgrading their phone Jul 09 16:53:45 Zharf, I assume you mean using the createInputSurface() method? Jul 09 16:53:46 they won't bother installing your app Jul 09 16:53:51 Voicu, yeah Jul 09 16:53:58 JakeWharton: well, sure , but the problem is it isn't working on anything else than L heh Jul 09 16:53:59 Zharf, ok, thank you very much Jul 09 16:54:01 just because they won't use their phone that much Jul 09 16:54:06 which is what, 100 devices? heh Jul 09 16:54:36 0 if you are distributing on the Play Store Jul 09 16:54:41 a few thousand otherwise Jul 09 16:54:52 Zharf, the irony is that I'm only having problems with devices with API < 18 :D. Jul 09 16:55:02 JakeWharton: hmm why 0? Jul 09 16:55:29 Voicu, we did manage to use mediacodec properly on 16 and 17 using google's software codec but it requires some hacks to make it give you valid h264 and it doesn't support higher resolution than 352x288 Jul 09 16:56:01 The Play Store rejects apps that only support L Jul 09 16:56:10 of course if you crash on anything but L that's a different story... Jul 09 16:56:57 Zharf, that's quite a feat but usable for me. I need to make it work with higher resolutions and have good framerate i.e. we need hardware acceleration. It does work on devices with API 16, 17 but it has problems with some resolutions Jul 09 16:57:09 Zharf, *but not usable Jul 09 16:57:37 Zharf, so I guess some resolutions working is better than none Jul 09 16:57:43 yeah, we're going to add support for higher resolutions for newer platform versions soon Jul 09 16:57:46 JakeWharton: ah , i see , updating the Android Studio, maybe that would solve the issue heh Jul 09 16:57:52 overburn just change all references from android L to api version 19 and it will install Jul 09 16:58:09 i've read that heh, but I want to avoid that Jul 09 16:58:11 it must not be at target or compileWith in AS Jul 09 16:58:13 Zharf, using MediaCodec? Jul 09 16:58:33 Voicu, yes, but it has the minimum api level 18 thing Jul 09 16:58:37 in fact. for learning and your first app, you should AVOID beta stuff like android L Jul 09 16:58:44 Zharf, I see Jul 09 16:59:14 danijoo_: eh, i'd rather roll with the newest first Jul 09 16:59:24 yeah but it isnt the newest Jul 09 16:59:27 its newest + 1 Jul 09 17:00:01 you can change it with one click when its out. but for now gradle and android studio still to weired things when you try to build for it Jul 09 17:00:11 so wait until the problems are fixed Jul 09 17:00:45 the API level 20 is only for testing by now, not publishing Jul 09 17:00:46 i wonder if in the apk the manifest actually has the minSdkVersion I specified Jul 09 17:00:55 if its in gradle, it has Jul 09 17:01:03 if you dont trust, you could decompile :p Jul 09 17:01:15 yeah Jul 09 17:01:16 so I was wondering, is there a way to do bi-directional communication between two android applications? Should I just use a TCP connection, or something? Jul 09 17:03:30 overburn: see this:https://code.google.com/p/android-developer-preview/issues/detail?id=103&q=Type%3DDefect&colspec=ID%20Type%20Status%20Owner%20Summary Jul 09 17:04:01 danijoo_: gah, annoying Jul 09 17:04:03 tl;dr: Android L is for testing on android L devices. If you specify compileSDKVersion with andorid L, it will ONLY work on android L and nothing below Jul 09 17:04:48 for production and real development, use compileSdkVersion 19, when L is actually out, you can increment that to 20 and upload a new apk to play store -> profit Jul 09 17:07:02 seems like 20 is working good for todays developmet Jul 09 17:07:21 Isn't 20 4.4W? Jul 09 17:07:32 no Jul 09 17:07:33 Foxandxss: yes but you cant test your 20-built apk on other phones Jul 09 17:07:34 that is another one Jul 09 17:07:42 ok but the problem is - if i set it to 20 or less, i get an error at android:Theme.Material.Light ... Jul 09 17:07:44 danijoo_: I can Jul 09 17:07:48 20 != L Jul 09 17:07:51 which is in the values-v21 Jul 09 17:07:53 (in the manifest / gradle ) Jul 09 17:07:58 oh yes Jul 09 17:08:01 i meant that :) Jul 09 17:08:03 sorry Jul 09 17:08:14 so 'L' is for the preview Jul 09 17:08:16 and 20 works everywhere Jul 09 17:08:21 yeah. you are right Jul 09 17:08:25 except not with the L theme... Jul 09 17:08:33 but 20 does not have the fancy L stuff overburn is looking for Jul 09 17:09:10 overburn: what do you not understand? At the moment, if you want to access features from 'L', you have to run it on 'L' Jul 09 17:09:10 overburn: it's a restriction on the preview version of L that you have to set a minimum of L. You can't really workaround it. Jul 09 17:09:30 its not possible to get it on below-'L; devices as its a previe for testing Jul 09 17:09:59 yeah but it's in a freaking values-v21 folder, which means it should just use the values style Jul 09 17:10:02 gah , stupid decisions Jul 09 17:10:20 eh well Jul 09 17:10:21 its not a real decision as you dont have an option :p Jul 09 17:10:49 build it below-L or dont get it to run on anything else then your emulator or a nexus 5 Jul 09 17:10:58 overburn: it is like a beta Jul 09 17:11:00 just a preview Jul 09 17:11:05 not meant to real world app Jul 09 17:11:08 just to test it Jul 09 17:11:23 i guess they want to be able to change the api before launch heh Jul 09 17:11:35 Is it possible to set an element in a layout dependent to another element in terms of visibility? Jul 09 17:11:41 Turn one invisible, both go invisible Jul 09 17:11:46 platzhirsch: in code, sure Jul 09 17:11:47 probably need to create my own element Jul 09 17:11:52 :) Jul 09 17:12:29 platzhirsch: you can warp them both in a relative layout and set the visiblity on that one Jul 09 17:12:55 danijoo_: ah right... sometimes I am not sure how much nesting I should exploit in terms of layout efficiency Jul 09 17:13:02 but I can still check that with the profiler Jul 09 17:14:01 platzhirsch: dont think like that until you get performance problems Jul 09 17:14:10 <_Auron_> omfg why won't R.java come back. you'd think after 5-6 years they'd have *some* indicator as to why Jul 09 17:14:17 dont fix problems before they arise :) Jul 09 17:14:18 premature optimization that would be : ) Jul 09 17:14:27 god dammit, can't get my psu fan to start no matter what i do .... Jul 09 17:17:39 0.8.2 released Jul 09 17:17:46 ah, so it seems what I need is a bound servcei Jul 09 17:18:29 useless Jul 09 17:18:43 trash wont update above 1.12 Jul 09 17:18:54 <|)))o>< Jul 09 17:19:46 force put 2.0 in temp n .gradle n program but Building Gradle Project trash 1.12 online infinite negative loop forever Jul 09 17:20:59 GZ^Zff: always wondering if you are using a really bad translator or just have a great fantasy Jul 09 17:21:31 infinite negative loop. Jul 09 17:22:17 it goes backward n not percent% Jul 09 17:22:24 u can see Jul 09 17:22:29 get android studio 0.8.1 Jul 09 17:22:52 no % done Jul 09 17:23:10 dont know how all use studio trash Jul 09 17:23:18 GZ^Zff: you're the most annoying guy I ever met on IRC Jul 09 17:23:21 can evn do helloworld Jul 09 17:23:24 after 10 years Jul 09 17:23:26 cant Jul 09 17:23:32 GZ^Zff: maybe its you, not AS ;) Jul 09 17:23:49 me and googl Jul 09 17:23:59 they became a little bit lazy with the release notes though :P Jul 09 17:24:28 yep Jul 09 17:24:32 http://stackoverflow.com/questions/16580873/android-studio-stuck-at-gradle-download-on-create-new-project Jul 09 17:24:40 https://www.timroes.de/2013/09/12/speed-up-gradle/ Jul 09 17:24:47 wont work Jul 09 17:25:02 maybe your coffee machine can't run it Jul 09 17:25:10 self install and speed up . Make New project and do all waiting again Jul 09 17:25:23 its online gta5 to stop piracy Jul 09 17:25:41 i guess its the build in troll protection. Its new in android studio.. Jul 09 17:25:49 live online builder thing needs 100gbps Jul 09 17:26:47 and then no update Jul 09 17:26:53 always doing 1.12 waiting Jul 09 17:26:59 never said 2.0 Jul 09 17:28:10 Do I call super.onPause() at the bottom or the end of the function? how about super.onResume() and the others? Jul 09 17:28:21 I mean the top or the bottom of the function Jul 09 17:28:24 the start or the end Jul 09 17:28:27 before or after my code Jul 09 17:28:47 smallfoot-: in most cases it does not matter Jul 09 17:28:51 I see Jul 09 17:29:08 start pause stop destroy srat stop is cycle no top no bottom Jul 09 17:29:11 but as a thumb rule i would say if you want to free resources in your method, call it before onPause Jul 09 17:29:20 and resume Jul 09 17:29:38 okay Jul 09 17:29:54 free resource in 2.2 256MB ram fone, no need in 4.4 3GB ram fone Jul 09 17:30:23 u make big games ? Jul 09 17:30:37 <_Auron_> can anyone help me figure out if there's an issue with my xml files? : http://pastebin.com/dRAcNHRw Jul 09 17:30:53 <_Auron_> because R.java will not generate and eclipse is useless is helping me figure out why Jul 09 17:31:17 <_Auron_> I've deleted the project, re-added it, closed it, re-opened, ran project->clean multiple times, and never modified the xml files this week Jul 09 17:31:19 how to use whole 16GB built in storage as internal storage ? Jul 09 17:31:39 <_Auron_> I have NFI why it won't generate R.java and this is making me want to never work with android again after all these years Jul 09 17:32:04 u studied whole java and xml books ? Jul 09 17:32:12 and android Jul 09 17:32:40 oh no, that 'bot again? Jul 09 17:33:03 byebye Jul 09 17:33:05 I don't mind Jul 09 17:33:06 u can paste in ##pastebin too Jul 09 17:33:13 capella: an old IA or something Jul 09 17:33:22 g00s: kick that thing ! Jul 09 17:33:33 but please with a ban this time.. Jul 09 17:34:16 _Auron_, learn to use a commandline build to see errors Jul 09 17:34:24 #1 to diagnose any problem ever Jul 09 17:34:29 capella kick what ? Jul 09 17:34:43 the 'bot that talks random nonsense ---^ Jul 09 17:34:52 g00s: read the last view pages from GZ^Zff Jul 09 17:34:56 we get lots of those these days Jul 09 17:35:02 but he came eeeveryday Jul 09 17:35:14 hm, kroot around ? Jul 09 17:35:15 or it, whatever Jul 09 17:35:19 :P actually, not sure who can kick in this channel Jul 09 17:35:27 or SimonVT Jul 09 17:35:35 or canvs2321 Jul 09 17:35:40 also canadiancow which is not here atm Jul 09 17:35:50 yeah, autocomplete ftl Jul 09 17:35:57 yup Jul 09 17:36:01 * _Auron_ sighs Jul 09 17:36:01 I thought you had the power Jul 09 17:36:29 no i don't Jul 09 17:36:40 meh - installed cm11 yesterday .. runs great, eats battery like a pig Jul 09 17:38:55 AS 0.8,2 is out Jul 09 17:39:19 now, i have my update channel stuck at beta - so i'm guessing these are just bug fixes Jul 09 17:39:33 OTOH, tor at IO demoed that merged file view in 0.8.2 Jul 09 17:39:51 one way to find out! Jul 09 17:41:48 nopes Jul 09 17:42:37 So I can see how I can use a boundService to communicate with another application, but how the heck do I get results from what i've sent to the service? Jul 09 17:43:10 the examples use a messenger to bind to the service, which only allows one-way communication, how does it expect to return a result? Jul 09 17:43:59 If you're calling application B's service from application A, application B can create a local broadcast that is received by application A Jul 09 17:46:22 bankai_au rxjava 0.19.6 :O Jul 09 17:46:32 Estel: so i'd need to define a broadcast receiver in App A, to get the results of what I sent to App B from App A Jul 09 17:46:52 it can't be a localbroadcastreceiver, since they're different apps Jul 09 17:48:10 Anyone experienced problems calling your own JavaScript functions with webView.evaluateJavascript() after activity onResume() ? Jul 09 17:48:28 bacon1989: what exactly are you trying to accomplish? Jul 09 17:48:50 Estel: I have a set of shared-preferences that I need to look at in another application Jul 09 17:49:04 along with other details Jul 09 17:49:20 heya Jul 09 17:49:21 anyone in? Jul 09 17:49:53 so you just want to read some data from one application in another? Would a ContentProvider work? Jul 09 17:50:16 how complex is gps? just interested in have google maps open + hit a button and it can record your location Jul 09 17:50:24 if i recall, you can define callbacks in AIDL Jul 09 17:50:33 just realized, i never used AIDL phew Jul 09 17:50:50 bacon1989 in ApiDemos, look at IRemoteServiceCallback.aidl Jul 09 17:50:57 Hi all; I'm having dificulties retrieving MapFragment (getFragmentManager) so I could use it on Dialog. The method is returning NullPointerException. Java code: http://pastebin.com/9N8PW7iN and XML layout: http://pastebin.com/5PBAqRCe --- Java code works perfect, but as soon is i uncomment line 12, I'm getting NullPointer. Jul 09 17:51:39 Meaning, without definining GoogleMap variable, dialog shows with map without any errors. Jul 09 17:52:09 bacon1989 and RemoteService.java in apidemos / app Jul 09 17:52:21 don't ask me any questions about it though :D Jul 09 17:52:28 but it seems clear Jul 09 17:52:33 g00s: where are these files? Jul 09 17:52:44 ApiDemos ? Jul 09 17:53:19 yeah, i don't have these demos Jul 09 17:53:23 https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis Jul 09 17:53:23 ? Jul 09 17:53:26 well, if you install 'sdk samples' from the sdk manager, they will be in $sdk_dir/samples/xxx/legacyApiDemos Jul 09 17:53:34 ah Jul 09 17:53:47 heh Jul 09 17:53:58 ugh wish i could get an answer to this gps isuse Jul 09 17:53:59 er issue lol Jul 09 17:54:08 how complex is gps? just interested in have google maps open + hit a button and it can record your location - transmission can be via email Jul 09 17:54:54 g00s: i don't understand, the file has an interface in it Jul 09 17:54:57 that's about Jul 09 17:54:58 it Jul 09 17:55:56 bacon1989 did you look at RemoteService.java ? Jul 09 17:56:02 its all there! Jul 09 17:56:30 ah I see Jul 09 17:56:33 final RemoteCallbackList mCallbacks = new RemoteCallbackList(); Jul 09 17:56:50 justdl please stick to the main channel Jul 09 17:56:59 heh Jul 09 17:57:14 no prob Jul 09 17:57:19 see, I was hoping I could write afunction like string getThisValue(), bind to the service, perform a call, get the result, return it, unbind Jul 09 17:57:20 i haven't used gps in a while; in early days it was kinda pain but still relatively simple. now many use google play services, i haven't used that Jul 09 17:58:02 g00s - how difficult it be just having google maps w/ your actual location - hit a button it records your position and emails it Jul 09 17:58:07 bacon1989 oh, well the bind makes that async so the whole thing becomes async, i see Jul 09 17:58:20 i wonder if you can write an rx wrapper around something like that Jul 09 17:58:38 yes you can. i kinda did it with shared preferences. Jul 09 17:58:43 justdl: it's pretty easy, relatively? Jul 09 17:58:48 But it's all relative to your experience. Jul 09 17:58:51 I looked at IBinder, and it has a transact command that kind of resembles what I want Jul 09 17:58:59 you pass in a parcel, and it returns a parcel Jul 09 17:59:00 hello Jul 09 17:59:11 but the example on the android site does nothing like that Jul 09 17:59:17 it uses a one-way messenger as an example Jul 09 17:59:45 damn, the Activity Life Cycle is hard to understand Jul 09 17:59:53 estel - any estimation on how many hours it would take? Jul 09 17:59:58 justdl: for whom? Jul 09 18:00:23 And as what, a tech demo or a reliable product that could be shipped to the public? Jul 09 18:00:32 how can I make an intent that will resume activity (if it exists) instead of creating new one on top of the stack? Jul 09 18:01:05 I think I might just run a TCP connection between the two Jul 09 18:01:05 just a demo Jul 09 18:01:09 that simplifies everything Jul 09 18:01:23 rejoice! The Android wear app is not obfuscated! Jul 09 18:01:41 bound to the service, open a tcp connection, send the messages, walla Jul 09 18:02:00 ironhalik: look at the launchMode: attribute for the activity Jul 09 18:02:43 My MainActivity opens up a LoggingActivity, this LoggingActivity redraws the whole screen constantly (Show Screen Updates) Is there a way to find which views are causing this? Jul 09 18:02:49 Estel: oh god thank you Jul 09 18:03:26 yeaaah http://digg.com/video/tiny-birthday-for-a-tiny-hedgehog Jul 09 18:03:28 ironhalik: there are also flags you can pass to your intent that does that same thing Jul 09 18:04:13 explodes: yeah, I tried that but generally, during debugging, the stack seems to be very erratic Jul 09 18:04:13 heh Jul 09 18:04:17 any recommendations where to get a good dev? Jul 09 18:04:25 elance any good? Jul 09 18:04:39 justdl: depends on your needs Jul 09 18:04:57 woop woop, AS 0.8.2! Jul 09 18:05:09 Afzal, ya, but no idea whats new in it Jul 09 18:05:18 there seems to be no release notes Jul 09 18:05:37 yeah, the only feature I know should be in 0.8.2 is not there :/ Jul 09 18:05:43 (the grouped resources) Jul 09 18:05:59 :( Jul 09 18:06:18 oh well, 0.8 is a beta , i guess all the x.x.1 things really are fixes so i'm ok with that Jul 09 18:06:49 yeah. I don't care, I just like to update :p Jul 09 18:06:58 support library 20 still has no release notes, which is making me mad Jul 09 18:07:23 Also, can't wait for an update to the play services library, it seems that the Wear app uses a newer version with ConnectionConfiguration stuff Jul 09 18:07:29 The 5.0 L emulator doesn't work, its just black screen for me. Jul 09 18:07:36 right now, getDisplayName returns the nodeID of the device :( Jul 09 18:07:49 smallfoot-, works fine for me, are you using host GPU or snapshot? Jul 09 18:08:52 Afzal, I don't remember, I think neither Jul 09 18:09:11 Afzal, if I use Host GPU then logcat spams me with GL error messages Jul 09 18:09:27 try GPU Jul 09 18:10:07 azeam: got one change in 0.8.2 - SharedPreferences apply() is no longer highlighted by lint as if it was commit() Jul 09 18:10:10 :> Jul 09 18:12:39 i need to study the source code for .apply() to see how it gets around the 'activity terminates, app terminates, you lose your write' scenario Jul 09 18:13:10 since they say its immune to that Jul 09 18:13:49 I guess it gets into some system level queue Jul 09 18:14:11 or activity dies, but the process is kept alive Jul 09 18:25:02 .apply() is faster because its asyncronous, but its on higher API level than .commit() Jul 09 18:25:11 if you target old devices, use .commit() Jul 09 18:25:22 if you target not so old devices, use .apply() its faster and async Jul 09 18:25:35 also .apply() returns void Jul 09 18:25:42 while .commit() returns a boolean Jul 09 18:25:53 but you rarerly care about its output, so if you dont, go for .apply Jul 09 18:26:25 smallfoot- i think thats obvious from the docs :) Jul 09 18:30:48 yes Jul 09 18:38:38 hi guys i have a problem with Eclipse... i can't see the logcat.. http://ctrlv.in/355641 Jul 09 18:38:47 debug usb in real-device is not checked Jul 09 18:38:53 Evening all. I was wondering if a Core 2 Duo CPU is going to be a bit too slow to run the Android emulator? I remember when I used it last time (2011 or so) it was painfully slow Jul 09 18:38:55 but in emulator is checked..why? Jul 09 18:40:08 Was wondering if things had improved over the past few years? Obviously testing on a device is a must but it would be very handy to test on different resolutions in a virtual machine Jul 09 18:41:39 <_3mpty> bithush: I think that performance was their last priority :P Jul 09 18:42:16 <_3mpty> Still shitty. You can use stronger dev machine, or try geny motion - but it also have drawbacks Jul 09 18:42:48 <_3mpty> for example shitty license price and only few devices Jul 09 18:42:57 you could try the experimental intel atom emulator, which uses cpu hardware acceleration Jul 09 18:43:09 your emulator just has to be an atom device Jul 09 18:43:32 i found it to be so-so, but your best bet would be to just get a tablet Jul 09 18:44:40 HAXM Jul 09 18:45:40 bithush i have a core 2 from 2009, yeah its slow. i use genymotion Jul 09 18:47:28 damn :( Jul 09 18:48:02 Also what is the "recommended" versions for the sdk/eclipse/jdk etc? Jul 09 18:48:31 Does it still *have* to be the 32bit JDK? I remember from before the ADK installer never discovered the 64bit JDK! Jul 09 18:49:07 bithush, with HAXM, it's as good as GenyMotion Jul 09 18:49:37 i don't think haxm approaches geny Jul 09 18:49:43 at least not on my shitty machine Jul 09 18:49:56 maybe the difference goes away with better hw, but its obvious to me Jul 09 18:50:17 Yeah I saw about HAXM but it didn't look like it would do a whole lot on this crappy old laptop :( Jul 09 18:50:33 bithush do you have at least 4G ram ? Jul 09 18:50:36 yeah Jul 09 18:50:50 ok. we have similar specs. its not great but doable Jul 09 18:50:54 2.53Ghz C2D, 4GB RAM Jul 09 18:51:10 <_3mpty> what version of c2d? Jul 09 18:51:11 i have 2.53 also Jul 09 18:51:21 T9400 Jul 09 18:51:39 <_3mpty> at least you have hardware virtualization Jul 09 18:51:54 http://ark.intel.com/products/35562/Intel-Core2-Duo-Processor-T9400-6M-Cache-2_53-GHz-1066-MHz-FSB Jul 09 18:52:09 Yeah as CPUs go it isn't god awful Jul 09 18:52:26 runs Windows 8.1 and Visual Studio 2013 just fine, still chokes with anything Java related ;) Jul 09 18:52:52 <_3mpty> Upgrade ram if you can, i had similar laptop and with bigger project Android studio was extremely slow Jul 09 18:53:16 <_3mpty> if I added chrome instance to it ubuntu couldn't make it Jul 09 18:53:31 <_3mpty> I don't remember how it was on Win8 Jul 09 18:53:49 Isn't worth the price really, I would be better off just buying a new machine, which I need to do anyway I am just poor/cheap lol Jul 09 18:53:59 _3mpty if you are running AS + gradle + any emu, yeah it will be tight Jul 09 18:54:16 not to mention a browser for docs, etc Jul 09 18:54:33 and IRC client for help :D Jul 09 18:54:52 <_3mpty> :D Jul 09 18:55:00 when AS was really iffy back in 0.2.0 days I was using vim + gradle Jul 09 18:55:07 i miss that speeeed! Jul 09 18:55:20 but i wasn't very productive either :( Jul 09 18:55:24 I was waiting to pick up a Broadwell at the end of the year but landlord told me two weeks ago he is selling the place so I have to move, there goes my money for a new computer! :( Jul 09 18:56:02 <_3mpty> bithush: got same situation last year, always something else instead of new dev machine, last time it was broken car :< Jul 09 18:56:18 Yeah sucks :( Jul 09 18:56:23 i think it would be nice if you could use a barebones thing like beagleboard for emu Jul 09 18:56:32 without a panel (use mouse on your machine) Jul 09 18:56:51 Would be nice if Android could just run on the same machine I can run Ubuntu on in VMware just fine! Jul 09 18:57:10 genymotion is kinda like that Jul 09 18:57:14 bithush genymotion? Jul 09 18:57:25 i use 4.1.1 devices, and only give it 512mb ram Jul 09 18:57:26 bithush uses virtualbox, but works pretty well for me Jul 09 18:57:30 I can understand the whole problem with ARM emulation but the x86 build should be much much faster than it is Jul 09 18:57:54 if you are using the regular emu, maybe haxml didn't load, or you don't have GPU acceleration on Jul 09 18:58:09 but still, geny is much faster on modest hw Jul 09 18:58:27 i will check it out, thanks Jul 09 18:58:29 its been 5 years and we still talk about this crap Jul 09 18:58:38 google should have fixed this a long time ago Jul 09 18:58:42 is there a profiler for battery life? Jul 09 18:58:52 jonc the volta thingy in L ? Jul 09 18:59:15 no Jul 09 18:59:23 much faster than it is? Jul 09 18:59:28 the x86 emulator is as fast as a real device Jul 09 18:59:28 my app currently kills an S4's battery in 6-8 hours Jul 09 18:59:35 Yeah I am kinda surprised it is still so awful Jul 09 18:59:39 <_3mpty> g00s: I don't think that they will, their (and not only their) approach is: "User need to use more powerful machine" Jul 09 18:59:41 bithush, install haxm Jul 09 18:59:41 duh Jul 09 18:59:52 and it would be nice to know what parts of the app are the most active Jul 09 18:59:58 especially with Android being so popular in developing countries I would have thought it would be a little more friendly to older computers Jul 09 19:00:02 jonc, easy, go into battery stats Jul 09 19:00:05 look at what's getting used Jul 09 19:00:10 bithush, HAXM Jul 09 19:00:12 my nexus 5 dies if the screen is on for a few hours anyway Jul 09 19:00:15 if you haven't bother, gtfo Jul 09 19:00:17 no matter what apps are running Jul 09 19:00:23 but then I do use max brightness Jul 09 19:00:28 my moto x gets like 6 hours of screen on-time Jul 09 19:00:29 njcomsec, this is with the screen off Jul 09 19:00:34 lol Jul 09 19:00:36 more than 6 hours if I'm not doing lots of network/wifi stuff Jul 09 19:00:37 screen off? Jul 09 19:00:41 hmmm Jul 09 19:00:50 pfn: Yeah have seen HAXM but still slow Jul 09 19:00:54 bithush, it's not slow Jul 09 19:01:04 it's connected to a ble device that sends data at about 10hz, and then has to do some FFT to add a band pass filter to clean it Jul 09 19:01:05 Is on my old machine :P Jul 09 19:01:06 if it's slow, you haven't installed haxm Jul 09 19:01:15 bithush, then your old machine is garbage and has nothing to do with the emulator sucking Jul 09 19:01:28 and then send that around to a classifier to determine if a user is stressed Jul 09 19:01:50 jonc, constant data transfer will use up battery... Jul 09 19:01:56 10hz is pretty often... Jul 09 19:01:56 pfn, nice screen time Jul 09 19:01:56 It's a shot in the dark to ask this, but does anyone know if the shared-prefs file stored in /data/data/[package]/shared_prefs is using os-level write locks, or application-level locks? Jul 09 19:01:59 yeah, it's constantly doing that Jul 09 19:02:05 jonc, then stop it Jul 09 19:02:07 pfn: my machine certainly does suck but it can run many other virtualised OS fine Jul 09 19:02:08 i'm planning on modifying the file from the commandline Jul 09 19:02:15 bithush, then you didn't install haxm Jul 09 19:02:25 it does the ble stuff, and then probably sends on average 2 network calls of ~300kb each per minute Jul 09 19:02:42 the ble I can't get around Jul 09 19:02:51 and the network is going to be difficult to get round Jul 09 19:02:54 then don't do 2 network calls every minute Jul 09 19:02:59 do it when the device is woken Jul 09 19:03:09 the 10hz ble is already killing you Jul 09 19:03:10 since I am getting ~7500 data points per minute from the ble device Jul 09 19:03:25 bithush: they're running virtualized OSs, they're not emulating a processor to run the virutalized OS Jul 09 19:03:29 jonc sounds like a cool project Jul 09 19:03:41 ok I am gonna try with a clean system from scratch. What version JDK, etc is generally seen as the best to work with? Jul 09 19:03:48 bithush, HAVE YOU INSTALLED HAXM Jul 09 19:03:51 bacon1989: Even the x86 image? Jul 09 19:03:51 did you run the installer Jul 09 19:04:02 the x86 image is not slow if you have intel-vt on your cpu at all Jul 09 19:04:04 g00s, yeah, it's been quite a bit of fun. I have learned quite a bit here Jul 09 19:04:11 bithush: the x86 image is using an intel atom processor, which attempts to be virutalized using HAXM Jul 09 19:04:22 which this pfn guy has told you several times now Jul 09 19:04:29 it's experimental, so it doesn't always work Jul 09 19:04:31 Along with all the network stuff, I am storing those 7500 datapoints in a local sqlite db so that I can cache it to send Jul 09 19:04:36 haxm always works Jul 09 19:04:44 It says "HAX is working and emulator runs in fast virt mode" Jul 09 19:04:52 and if your pc is garbage, use a real device Jul 09 19:04:55 bithush: yeah, mine says that too, it doesn't work Jul 09 19:05:05 Ha well that is crap then :) Jul 09 19:05:06 which is why I started using an actual android device Jul 09 19:05:13 which makes the most sense Jul 09 19:05:18 huh, it "doesn't work" Jul 09 19:05:21 if it says that, then it /does/ work Jul 09 19:05:28 presuming you have intel-vt Jul 09 19:05:28 pfn: false positive Jul 09 19:05:33 Yeah I have been using a Moto G which works fine Jul 09 19:05:40 I just wanted it for different resolution testing is all Jul 09 19:05:44 bacon1989 don't listen to pfn. he has a new machine with 16G of ram at least. if your machine is modest, like the 2.54 C2D/4G there will be a world of difference between geny and emu + haxm Jul 09 19:05:59 yeah, i'm not complaining Jul 09 19:06:01 pfn solution to all of this is always buy a new machine Jul 09 19:06:07 stupid Jul 09 19:06:20 g00s: calm down, buy a new machine Jul 09 19:06:25 woops Jul 09 19:06:29 bacon1989 lol Jul 09 19:06:30 If anyone wants to contribute to the "buy bithush a new android dev machine" fund feel free to PM me ;) Jul 09 19:06:31 it's contagious! Jul 09 19:06:51 I've used Android-x86 with virtual box Jul 09 19:06:55 or we could buy you a knockoff chinese android device Jul 09 19:06:57 that was pretty quick Jul 09 19:06:58 for 100 bucks Jul 09 19:07:02 Yeah I will have to look into virtualbox Jul 09 19:07:14 Used it in the past for vagrant, worked well Jul 09 19:08:04 Sorry to keep asking the same question but didn't see an answer; what JDK version do you guys use? 6?7?8? 32 or 64bit? Jul 09 19:10:48 i'm a bit confused about cloud messaging registration, the examples suggest registering, then storing the key, however having done that, it seems that my key is no longer registered, could it have unregistered itself somehow? if so, how would i know to reregister? Jul 09 19:11:45 it does seem it should remain registered forever, how odd Jul 09 19:13:02 catphish: I have client keys that are still the same 3 months down the line Jul 09 19:13:52 <_3mpty> catphish: are talking about registration id (device id)? Jul 09 19:13:59 _3mpty: yes Jul 09 19:14:51 <_3mpty> if I remember correctly your key should be registered again when you are updating your app Jul 09 19:14:56 ive already ignored the /build folder for version control. should I also ignore the .idea folder, and / or the .iml file? Jul 09 19:15:03 <_3mpty> only Jul 09 19:15:10 it looks like this: APA91bGp3ITlzP6w9CLXZJJzM-uormv3Rv8jGUT7TE30vlBbtKIU66SM3g_eU2d30l9XxAwvXXlKX1H3UbNq1YbdNbc38IcVk8xEsG3rfplnB0ldeRcxQiZ6OcqjGXhs2gt_N84ran43jcgfQEcVZ9kqmk8oqDBGPg Jul 09 19:15:41 hi, noob here, was wondering if anyone could help me get a xml vector image to work in a android layout in eclipse , I can't seem to get the image to display. seems eclipse is trying to unzip the .xml file. "Archive for required library: 'res/drawable/up_arrow.xml' in project 'AROV' cannot be read or is not a valid ZIP file" Jul 09 19:15:50 <_3mpty> catphish: yeah, and you need to send it to backend Jul 09 19:15:57 <_3mpty> (your) Jul 09 19:16:26 _3mpty: thanks, i just cleared the cached key from my preferences cache, registered a new one and it works now Jul 09 19:17:22 <_3mpty> catphish: in google sample client implementation you have method that checks your version number and if currentOne > previous it re-registers Jul 09 19:17:22 maybe some development builds have the same version number but invalidate the key Jul 09 19:18:19 anyway, thanks, it's working now after rergistering, i'll check that i verify version numbers properly Jul 09 19:20:18 i suppose my server will know if the registration has expired and can always tell the client to reregister Jul 09 19:21:39 <_3mpty> I'm not sure about that someone told me that if our backend will try to trigger cloud message it will be send to current id and old one and user will receive two messages, after that backend will be notified about old token Jul 09 19:22:26 <_3mpty> not sure if FUD or confirmed info Jul 09 19:23:06 Also I forgot that the app also can get the location of the user once per minute Jul 09 19:23:37 so 2 network calls, 10hz ble data, threads processing data, and gps Jul 09 19:23:39 Is there a general listener interface? Jul 09 19:27:46 <_3mpty> jonc: for start you need to re-think if app rly need those updates, maybe you can do less calls and calculate approximate values Jul 09 19:27:57 <_3mpty> spoik: WAT? Jul 09 19:31:47 I'm wondering. What are the guidelines on when to put a switch in the action bar? Jul 09 19:45:32 jonc, gps location is always expensive Jul 09 19:45:42 Not a specific question but just wondering if anybody here learned Java and Android Development at the same time? Jul 09 19:45:57 As opposed to having Java experience and then getting into Android. Jul 09 19:46:07 Or learning Java first, then Android Dev. Jul 09 19:49:11 AKK9 only takes a basic knowledge of java to start with android Jul 09 19:49:29 only 'advanced' things you may see in examples, are anonymous inner classes Jul 09 19:49:38 BUT, you will need to understand concurrency Jul 09 19:49:56 how do I get the view in a fragment? Jul 09 19:50:23 getView() ? Jul 09 19:50:30 Fragment.getView() Jul 09 19:51:16 or for a child view, store a ref to it from findViewById within onCreateView, just like you would typically do in Activity oncreate Jul 09 19:55:17 g00s, thanks. Yeah concurrency is the thing I'm finding slightly awkward. I've learned how to create background tasks so I don't make the phone hang but I have lots to learn. Jul 09 19:55:45 Was just asking because so many people have told me to stop and just go learn Java but I feel like I'm doing well so far. Jul 09 19:56:08 Guess I'll keep on it until I hit a serious wall. Jul 09 20:02:16 I can have a notification open up the app to a specific activity correct? Jul 09 20:02:34 yup Jul 09 20:03:44 <_3mpty> just saw volley fork: https://github.com/mcxiaoke/android-volley Jul 09 20:03:49 <_3mpty> what are differences Jul 09 20:03:56 <_3mpty> between jar and aar format? Jul 09 20:04:12 <_3mpty> I don't know what version I should use Jul 09 20:04:24 Now can I detect when a user removes a notification? Jul 09 20:09:16 jonc: DeleteIntent Jul 09 20:10:36 _3mpty: hmm, btw, volley vs retrofit? Jul 09 20:10:45 ironhalik, thank you Jul 09 20:11:02 never used volley, but I've used retrofit and it is very nice Jul 09 20:11:38 the use of annotations seem silly to me Jul 09 20:13:35 I don't mind it, because you only declare and interface. It actually builds a class that matches the interface and returns it to you Jul 09 20:13:44 only declare an interface* Jul 09 20:17:27 hey does anyone know if the new external storage restrictions in kitkat effects your apps own external cache dir? it appears that it does for me Jul 09 20:19:40 ironhalik: why? Jul 09 20:21:02 <_3mpty> ironhalik: I've never tried retro Jul 09 20:24:10 <_3mpty> volley is nice but sometimes need small adjustments in sources Jul 09 20:25:11 jonc, that's interesting, but reflection can be somewhat slow... Jul 09 20:26:45 AKK9 maybe the other part you should know about, wrt java, is being cognizant of the amount of garbage you are creating Jul 09 20:27:26 AKK9 this can get you started http://wip.org/blog/android-memory-reduce-reuse-recycle/ Jul 09 20:29:22 how persistent is onSaveInstanceState? Jul 09 20:30:29 12 Jul 09 20:32:30 The AsyncTask onPostExecute method is not called from the main thread right? Jul 09 20:33:00 spoik, yes it is Jul 09 20:34:55 how can it be? AsyncTask is some sort of non main thread... Jul 09 20:37:22 actually, AsyncTask sHandler looper is used to deliver the result; i guess whatever class causes the classloader to initialize that member will be used to deliver all AsyncTask onPostExecutes from that point on Jul 09 20:37:34 err, whatever thread Jul 09 20:37:51 assuming it has a looper, like HandlerThread or something Jul 09 20:37:53 what about the onprogrssupdate method? same then? Jul 09 20:38:06 do i have to create the looper or it is there by default? Jul 09 20:38:30 spoik 99% of the time, you don't worry about it Jul 09 20:38:55 if you create the class on the main thread, all delivery & updates will happen on the main thread Jul 09 20:39:08 from what i'm reading. i don't think i have ever used AsyncTask ever Jul 09 20:39:12 :) Jul 09 20:39:44 then how is not the same problem as doing I/O on the main thread? Jul 09 20:40:08 spoik when the classloader sees you want that class, it initializes some static members of AsyncTask Jul 09 20:40:41 OnProgressUpdate and OnPostExecute both run on the UI thread. onBackround runs on another thread Jul 09 20:40:46 if you do whats normal, on the main thread, it delivers results to the main thread looper Jul 09 20:41:00 otherwise, it runs on an Executor you can customize Jul 09 20:41:09 some "other' thread, you don't worry about it Jul 09 20:41:34 you can customize the executor, pool size, etc but most people don't Jul 09 20:41:40 from what i see anyhow Jul 09 20:42:19 the problem is, the executor also is a static variable of AsyncTask, so once you set this policy, its essentially "app-wide" Jul 09 20:43:37 private static volatile Executor sDefaultExecutor = SERIAL_EXECUTOR; Jul 09 20:43:47 AsyncTask sucks ass Jul 09 20:50:31 it sucks? a lot of android devs laud it and use it Jul 09 20:52:10 who praises it? Jul 09 20:55:41 g00s, thanks for the link, will read up on it. Jul 09 20:57:50 g00s: you can use AsyncTask.executeOnExecutor to run on a custom executor, without making it the global default executor Jul 09 20:58:08 AKK9, what link? Jul 09 20:59:14 smallfoot-, they provided a link earlier about garbage collection and memory optimisation Jul 09 20:59:41 JesusFreke thanks for the correction, i missed that Jul 09 21:03:35 this is pretty interesting " it turns out that Samsung actually will ship devices under the same brand (such as "Galaxy S5") that use entirely unrelated SoCs depending on the radios the device is intending to support: some devices use Qualcomm's Snapdragon, and some use Samsung's own Exynos" Jul 09 21:04:31 thats one reason why a bug may show up on an S5 used on Sprint, but not AT&T. never thought about it Jul 09 21:04:45 g00s: how would you do if you needed to parse a few 100kb of json then? Jul 09 21:05:07 spoik oh you are still working on that ... Jul 09 21:05:18 hm, well it depends Jul 09 21:05:23 g00s: they usually have different model names though, like the international S3 is the i9300, but other versions have different numbers Jul 09 21:05:49 the GSM/LTE version is i9305, and then i don't remember what the CDMA and whatnot is called Jul 09 21:05:54 LjL-Laplet interesting thanks Jul 09 21:06:21 does anyone else do that (HTC, etc) or just Samsung (different SoCs for different carriers) ? Jul 09 21:06:49 spoik can you describe what you were doing with the data again ? Jul 09 21:06:52 i'm not sure, but i think by and large, everyone must do it Jul 09 21:06:57 :O Jul 09 21:07:07 unless they have a SoC that does both CDMA and GSM/UMTS (and LTE) Jul 09 21:07:14 samsung so crafty Jul 09 21:07:31 i think there are SoCs like that, but they're not the norm Jul 09 21:08:08 then again, other brands just call the CDMA ("US") model differently from the GSM ("international") model Jul 09 21:08:28 but there is GSM in the US, too, with some carriers, so that *also* gets confusing Jul 09 21:09:46 quick question, I have a rooted device, apk keeps returning 'external storage state is mounted', busybox mount didn't fix this. Anyone know how to chagne this via adb. can only read state via API Jul 09 21:10:26 LjL-Laplet but do most OEMs use SoCs with integrated mobile connectivity ? Jul 09 21:11:08 #android-root Jul 09 21:11:37 alrdy asked there Jul 09 21:12:02 i think qualcomm has discrete units available, but the latest iterations get put on certain snapdragons Jul 09 21:12:20 oh well, kinda rabbit hole. Jul 09 21:12:46 spoik still alive ? :D Jul 09 21:12:55 then stay there Jul 09 21:13:09 Is there a way to prevent the default style showing on the actionbar before my activity has fully loaded? Jul 09 21:13:30 g00s: i think so Jul 09 21:13:55 g00s: in fact, i believe with most chipsets, the modem interacts pretty deeply with the CPU and/or RAM (which is somewhat unsettling) Jul 09 21:14:28 yeah now i'm remembering intel had some issues with this on their mobile atoms Jul 09 21:15:05 heh, i'm typing from a mobile atom Jul 09 21:15:10 but it has no modem Jul 09 21:15:26 (allegedly!) Jul 09 21:16:22 LjL-Laplet RAZR i ? Jul 09 21:16:24 it has a hidden one, with built in unlimited data plan Jul 09 21:16:40 g00s: nah, not a phone, Asus T100 Jul 09 21:16:45 :) Jul 09 21:16:48 kindly funded by NSA Jul 09 21:16:49 ironhalik: unlimited for whom, is the question Jul 09 21:16:54 ^ :> Jul 09 21:17:21 it does have a wifi card with the hardware ability to be turned on remotely at any time, no power-on LED, and a non-replaceable battery Jul 09 21:17:37 so maybe they don't need a modem, and can do with the odd wireless AP here and there Jul 09 21:18:42 actually, the Microsoft requirements for this class of computer to be Windows-certified *requires* not having a wireless LED. to save power, they say. save a LED's power. Jul 09 21:19:31 Ping! Booting... Login. Hey! Mike! There are some new nudes of that chick you liked so much. Jul 09 21:19:47 because LEDs take up so much power -_- Jul 09 21:20:05 indeed! Jul 09 21:20:16 ironhalik: kinda, actually Jul 09 21:20:56 you can always wrap it in tinfoil when doing super secret spy stuff Jul 09 21:21:16 ironhalik: the Windows term is "connected standby". the computer takes really little power (really little! is less than full standby on a typical laptop), but the wifi card can wake it up if it receives packets with certain bit patterns in it, so that Microsoft can send push notifications Jul 09 21:21:48 yeah, kinda like WakeOnLan Jul 09 21:22:12 we already have phones and tablets connected 24/7 Jul 09 21:22:22 why not notebooks ;> Jul 09 21:22:47 well we do now! Jul 09 21:22:52 i do, anyway Jul 09 21:23:02 okay admittedly it's a bit of a tablet Jul 09 21:23:13 but it has a keyboard dock so it counts as a notebook Jul 09 21:23:28 Laplet ;> Jul 09 21:23:35 Tabtop? Jul 09 21:23:59 definitely laplet Jul 09 21:24:17 <- and yeah :P Jul 09 21:24:28 would be nice, if not for the windows part ;> Jul 09 21:24:38 I prefer Tabtop Jul 09 21:24:41 well Linux works Jul 09 21:24:45 only... kinda Jul 09 21:24:48 because you can shorten it to Tabby without confusion Jul 09 21:24:58 i'm waiting to see if 3.16 will solve the remaining issues Jul 09 21:25:36 huh, looks like Im falling behind the curve here Jul 09 21:25:46 so far, you can get it to boot, with some trouble because of the stupid UEFI implementation, most things work alright, the GPU is actually driven fine by the open source Intel drivers... but a big nuisance is that the wireless card is almost unusable Jul 09 21:25:50 I was wondering what you meant by 3.16 Jul 09 21:25:58 the kernel Jul 09 21:26:02 and it seems 3.16 kernel is in the works Jul 09 21:26:06 yeah I figured Jul 09 21:26:08 The Lunix Jul 09 21:26:33 just the last time was checking up on it, it was 3.11 Jul 09 21:26:37 g00s: I have a quiz game. 4 fragmens, setup, names, game, result. when game frag starts I parse the questions from a json file to a Question array. This I have been told should not be done on the UI thread since it is I/O and quite a lot of parsing (it works fine on all phones I have tested though which made on the other hand not be the weakest ones). Some people have recommended AsyncTask. Jul 09 21:27:34 i like "laplet" because the "l" makes it easier to say and liquider to me :P also "tabtop" can be shortened to "tabby" but some people could think that's just a further diminutive of "tablet" Jul 09 21:28:17 We must find a diminutive for Laplet, though! Jul 09 21:28:29 Laply? Flappy? Jul 09 21:28:50 delete the middle part Jul 09 21:28:50 spoik ok, so i dont like AsyncTask but , its pros are that it comes with the platform and if you don't expect errors, its OK for one-off things that aren't network related. so yeah you can do that … put the asynctask in your game fragment and implement it the way hackbod says http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something Jul 09 21:28:51 lat Jul 09 21:29:05 Floppy? Jul 09 21:29:06 latitude? Jul 09 21:29:21 you cant have lats in your lap!? Jul 09 21:29:37 unless its someone elses? Jul 09 21:29:38 you *could* do Lapl, after all there is Lidl Jul 09 21:29:52 spoik technically you could also use the Loader framework, but i only use the canned stuff (CursorLoader) and always got confused implementing my own AsyncTaskLoader crap because of all the template methods Jul 09 21:30:08 probably not worth it if the data isn't changing and this is one off Jul 09 21:30:10 Hello. What do you guys think, would it be annoying if an app would show a ProgressDialog everytime a list is loading? On my device it takes around 300-600millis and it's pretty sudden, maybe unnecessary? Jul 09 21:30:19 if it's smaller and cuter than lidl, is it widl? Jul 09 21:30:28 spoik if you are planning from getting this data eventually from the network, i would use IntentService Jul 09 21:30:36 like if the data ever gets updated, etc Jul 09 21:30:42 skulltower: better than an empty screen IMO Jul 09 21:30:56 capella: maybe widw, but when suffering from a loss, widow Jul 09 21:31:18 skulltower i think they discourage ProgressDialog now. just put a spinner in your emptyView or whatever Jul 09 21:31:35 progress dialog for less than half a second? no thanks! Jul 09 21:31:42 oh , i guess the new hot is the unicorn orgasm animation Jul 09 21:32:03 g00s, spinner? Isn't that the dropdown menu? Jul 09 21:32:03 UNICORN ORGASM ANIMATION?! Jul 09 21:32:16 yeah that band of color changes Jul 09 21:32:19 skulltower: he probably means the spinning circle… can't remember the name Jul 09 21:32:22 usually under the actionbar Jul 09 21:32:27 When should I use a ListView vs a ScrollView? Jul 09 21:32:33 GermainZ, oh got it ^^ Jul 09 21:32:37 "dual-booted android kitkat and Ubuntu touch devel on an N5" ... o-mi-gwad! Jul 09 21:32:48 hi, has someone ever use CouchDB into your android app? Jul 09 21:32:51 AKK9 when you have a lot of data, or a variable amount of data Jul 09 21:32:54 Didn't thunk it could be done Jul 09 21:33:52 g00s, I'm displaying a list of up to 18 things. So ScrollView is ideal? Jul 09 21:34:13 AKK9 it used to be a recommended limit of 100 views alive at once, i'm sure its gone up (but I don't know the exact #). Jul 09 21:34:36 18 things - hm, i'd say ListView probably Jul 09 21:35:04 especially if those items have complex 'row' views, rely on LV's recycler Jul 09 21:35:20 g00s, cool thanks. Time to learn ListView :) Jul 09 21:35:29 if its always the same 18 things, and its i view per row - i guess you could get away with ScollView Jul 09 21:36:59 Always different things. There is a search box and the results will depend on the search query but there will be no more than 18 results. Jul 09 21:37:25 oh yeah, i'd say LV then Jul 09 21:37:39 I guess I could raise that limit of 18 if LV is going to handle the recylcing part for me? Jul 09 21:37:57 sure, LV only has N + 2 or so child views Jul 09 21:38:14 N fitting on screen , plus top + bottom about to be shown Jul 09 21:38:30 something like that , well actually (N + 2) * viewTypes Jul 09 21:40:20 you could have 1000s of items in your adapter (not recommended, but doable) ;) Jul 09 21:41:46 Noice Jul 09 21:41:48 Great thanks Jul 09 21:42:19 spoik the problem with asynctask there as described is rotation changes will probably (if implemented niavely) always result in a new parse Jul 09 21:42:29 so maybe make that fragment setRetainInstance true Jul 09 21:43:46 that way it doesn't get recreated on rotation changes, and you don't need to recreate your data. Jul 09 21:49:43 Does anyone know why my showAsAction is being ignored? Jul 09 21:49:44 http://pastebin.com/xf49dY2w Jul 09 21:52:15 anybody have any luck with using Android Studio + includeFlat for multi-module gradle projects? Jul 09 21:55:15 jjbrunton: its not 'us:' its 'android:' Jul 09 21:55:23 jjbrunton: android:showAsAction Jul 09 21:55:37 android:showAsAction doesn't exist in the support library Jul 09 21:55:49 https://developer.android.com/guide/topics/resources/menu-resource.html Jul 09 21:55:49 ? Jul 09 21:56:08 does anybody know what this means: bta_gattc_init_bk_conn failed Jul 09 21:56:25 i'm getting that in my logs when i attempt to connect to a bluetooth low energy device Jul 09 21:56:45 Sloth514 are you friends with Chunk ? Jul 09 21:57:02 ... nope Jul 09 21:57:03 lol Jul 09 21:57:22 maybe thats Sloth513 XD Jul 09 21:57:29 i know a chunk though, not THE Chunk Jul 09 21:57:35 lol Jul 09 21:58:59 Another stupid design question: Would you guys prefer switching through activities which contain listviews with or without an animation? Jul 09 22:00:08 depends what the animations are :P Jul 09 22:00:21 The default one Jul 09 22:12:24 As long as there are explosions I would stick with the animation Jul 09 22:34:43 If my app does not use any communication or sensors or other hardware, it is just some simple i/o and some fragments. There are no background threads either, everything is on the main thread. Could there be anything that drains a lot of battery then? Jul 09 22:39:37 somebody may an idea why my android studio has no font? https://i.imgur.com/iFwh6JD.png Jul 09 22:40:24 gtk libs probably Jul 09 22:41:43 i tried using a different gtk theme, and installed the studio from the repos. but i'll check the depencies Jul 09 22:59:03 Hi, I am looking for somebody who owns multiple Android gamepads to test the latest build of Retaliate. Any takers? Jul 09 23:00:48 it works with oracles java. Jul 09 23:01:24 If my app does not use any communication or sensors or other hardware, it is just some simple i/o and some fragments. There are no background threads either, everything is on the main thread. Could there be anything that drains a lot of battery then? Jul 09 23:06:56 mouse, there is also #androidforums not sure if active, I dont know the answer to your question sorry Jul 09 23:33:09 bankai_au: umm, Android Studio doesn't touch gtk Jul 10 00:15:07 hmm Jul 10 00:15:26 how can I get a TextView from fragments onCreateOptionsMenu? Jul 10 00:20:49 ironhalik: that’s bad programming. the right place to capture and manipulate UI widgets is in onCreate Jul 10 00:21:55 so, how can I get a TextView in fragments onCreate? :> Jul 10 00:22:08 and onCreateView Jul 10 00:22:09 onCreateOptionsMenu is meant for dealing with ActionBar items, etc. Jul 10 00:22:31 well, I am dealing with actionbar item Jul 10 00:23:12 I want to set it up before it gets shown Jul 10 00:31:58 You should do that in onPrepareOptionsMenu Jul 10 00:32:49 You can get inflated MenuItems from the menu object you receive and modify them Jul 10 00:37:22 hi, where can I buy/apply ADT-1 developer kit for android tv? Jul 10 00:39:09 ffs Jul 10 00:39:10 menu.findItem(R.id.menu_wireless_switch).getActionView().findViewById(R.id.ab_wireless_switch); Jul 10 00:39:29 it worked, after project rebuild Jul 10 00:41:44 hey all Jul 10 00:42:16 who hear has tryed the google cardbord sample app Jul 10 00:42:32 I tried it Jul 10 00:42:54 it crashes for me Jul 10 00:43:16 https://gist.github.com/edwardthefma/c175881acf78d7d6e7bf Jul 10 00:43:17 mine on L-preview Nexus 5 has not crashed Jul 10 00:43:32 samsung note 2 Jul 10 00:44:00 but the google cardboard app from the market works fine for me Jul 10 00:44:16 that is my log cat Jul 10 00:45:57 java.lang.RuntimeException: onReadyToDraw: glError 1280 Jul 10 01:00:27 HI Jul 10 01:01:04 I open a project in a new installed android studio I install my sdk version but still android studio gives me error on codes that are correct Jul 10 01:01:15 I tried to clean and rebuild the project. no luck Jul 10 01:01:43 what errors? Jul 10 01:02:52 Any idea what an “AndroidManifest.xml file missing!” error means in ADK? Jul 10 01:03:08 (AndroidManifest.xml is clearly present.) Jul 10 01:04:37 bankai_au, red line under all my methods Jul 10 01:04:56 try to sync your gradle build file Jul 10 01:05:11 how do I do it? I didnt have any gradle in eclipse Jul 10 01:11:56 Otto is complaining with use of Dagger during InstrumentationTesting: java.lang.IllegalStateException: Event bus [Bus "WelbeEventBus"] accessed from non-main thread Looper (Instr: com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner, tid 15285) {427adcb0} Jul 10 01:12:35 I'm using this wrapper to try to force events to passed on the main message queue: http://stackoverflow.com/a/15433353/981337 Jul 10 01:13:08 Annotate your test with @UiThreadTest Jul 10 01:14:09 can u help me fix this Package name 'com.google.vrtoolkit.cardboard.samples.treasurehunt' does not correspond to the file path 'main.java.com.google.vrtoolkit.cardboard.samples.treasurehunt' less... (Ctrl+F1) Jul 10 01:14:10 Detects package statements that do not correspond to the project directory structure. Jul 10 01:14:10 What if I created my Bus with ThreadEnforcer.ANY ? Jul 10 01:16:03 JakeWharton: since Bus is used pretty much everywhere, would I then annotate all of my tests? What if instead I used ThreadEnforcer.ANY in combination with the MainThreadBus wrapper? Jul 10 01:16:23 @Provides @Singleton Bus providesEventBus() { return new MainThreadBus(new Bus(ThreadEnforcer.ANY, "WelbeEventBus")); } Jul 10 01:17:16 If you use the wrapper you shouldn't need ANY Jul 10 01:18:30 Without ANY, every test barfs. With it, it works as expected. Jul 10 01:29:40 This testing set up feels like so much garbage thrown together Jul 10 01:29:47 I'm surprised it "works" as much as it does; Jul 10 01:31:21 If there was an easy way to combine Instrumentation with Dagger and Espresso, sometimes PowerMock, then it would be complete IMO Jul 10 01:31:51 I'm a week-deep in trying to get this far, I could refactor this stuff with what I've learned and maybe be closer. Jul 10 01:39:19 #THANKS Jul 10 01:47:12 using travis ci requires a test project right? i can't just use it to confirm the project builds without error? Jul 10 02:15:26 hello? **** ENDING LOGGING AT Thu Jul 10 02:59:58 2014