**** BEGIN LOGGING AT Fri Apr 25 02:59:58 2014 Apr 25 03:01:16 I've been searching around for the pull down to refresh function that a lot of apps like twitter and facebook have, but none of the sources ive come across are quite the same... does anyone know of any implementations that are similar to that of twitter's or facebook's? Apr 25 03:03:03 Blah that didn't work. alex_PP you still there? Apr 25 03:03:36 5 mins Apr 25 03:03:56 hot a mango Apr 25 03:07:13 ok SlashTag Apr 25 03:07:19 i'm all yours Apr 25 03:07:49 Alright Ill pastbin the relevant code. No point in throwing in working code Apr 25 03:08:28 http://pastebin.com/5Uz46CcL Apr 25 03:09:17 ah Apr 25 03:09:28 you're using the adapter wrongly Apr 25 03:10:03 so, the way adapters and kistviews and adapter work is that a smal amount of views, enough to fill the screen, is used for a larfer dataset Apr 25 03:10:24 so, you could have 1,000,000 videos, but only 5 views to show the details Apr 25 03:10:36 Well everything works but that for loop with Picasso in it Apr 25 03:10:47 and as you scroll the views are reused to show more data Apr 25 03:11:03 Anthaas: you there? I just have a general question to ask about design Apr 25 03:11:09 mantazer: Go ahead Apr 25 03:11:38 i don't think this can be acheived with simple adapter Apr 25 03:11:44 one sec, i'll knock up an example Apr 25 03:12:27 Damn I had a feeling the images were gonna be a pain in the ass. Apr 25 03:12:35 Anthaas: So I'm trying to implement a listview in a fragment, but i would also like to create a pull-down-to-refresh feature. what should i look into first? creating a fragment? listfragment? and then look into the custom listadapter that implements the pull down to refresh feature? Apr 25 03:13:05 I would do everything minus the pull down to refresh, and then add that after. Apr 25 03:13:07 im just unsure of how to go about doing this... can you provide some direction/guidance? Apr 25 03:13:11 oh Apr 25 03:13:13 ok cool Apr 25 03:13:22 Unless you can find something which might be called "PullDownToRefreshListView" or something? Apr 25 03:14:09 Did Google add their own or do you need a custom one for pull down to refresh? Apr 25 03:14:13 Anthaas: ok gotchya.so i should look into fragments and listfragments before looking into listviews? Apr 25 03:14:25 Are you sure you need a fragment? Apr 25 03:14:34 Otherwise yes. Apr 25 03:14:39 I only ask because you mentioned them earlier. Apr 25 03:14:53 Well, no. Look into them at the same time, just add the pull to refresh later. Apr 25 03:15:58 Anthaas: I think fragments would be better. So my mainactivity is a listview, but that listview will change depending on which button the user clicks. think of it as a news application where the user can click Sports, or World News, etc... Apr 25 03:16:11 Anthaas: fragments are the way to go for this right? Apr 25 03:16:12 Wow - someone mentioned Picasso earlier. Looking into it now. Square have done a lot of cool things - what do they do though? Apr 25 03:16:43 Anthaas: You ever see those square things that plug into the headphone jack that you swipe a credit card with? Apr 25 03:16:47 They make those things Apr 25 03:16:49 Anthaas: we develop Android libraries Apr 25 03:16:52 Nope Apr 25 03:17:00 JakeWharton: Ahh cool - you work for Square? Apr 25 03:17:26 I want to assume its a US based company then. Being from the UK this probably explains how I haven't heard of them. Apr 25 03:18:22 JakeWharton: Didn't you create ActionBarSherlock? Apr 25 03:18:28 mantazer: He did. Apr 25 03:18:39 Yes to both Apr 25 03:18:42 SlashTag, http://pastebin.com/Fc4QcUqN Apr 25 03:18:43 kewl! Apr 25 03:18:44 mantazer: Along with a number of other things. For example Truss™ etc. haha Apr 25 03:18:52 Anthaas: we'll be in the UK eventually Apr 25 03:19:34 JakeWharton: Cool. What reception did the product get with regards to people swiping their card through a mobile device belonging to someone else. I know people over here would be very skeptical. Apr 25 03:19:43 SlashTag, the importatnt thing to realise, is that there isn't 1 view per video Apr 25 03:19:49 just enough to fill the screen Apr 25 03:20:19 getView should create the view, if it has to, and then populate it with one of the video's details Apr 25 03:20:35 goodnight guys! Apr 25 03:20:40 In your example though you use a Video object Apr 25 03:20:48 Anthaas: we were the first to do it and have built up trust. We also have branded stands with built in readers Apr 25 03:21:25 SlashTag, whoops, missed a bit Apr 25 03:21:26 http://pastebin.com/6wYB6cyQ Apr 25 03:21:39 SlashTag, yeah, i don't know your data set enough Apr 25 03:21:47 JakeWharton: Ahh cool, so I'd imagine those stands were a large contributor to the trust that you have earnt. Apr 25 03:21:58 just replace the video.get stuff with the map operation you want Apr 25 03:22:02 or create a video object Apr 25 03:22:24 Yea im using an ArrayList of HashMaps Apr 25 03:22:40 Its clunky but Im not an expert sooo Apr 25 03:24:44 I finally suffered through learning and using gradle Apr 25 03:25:03 in the rare event it works like it should, its good, but man what a pita to setup etc Apr 25 03:25:15 and the ide tools to manipulate gradle/settings are just complete shit. Apr 25 03:25:34 despite my initial disappointment with gradle, I've now seen the light and it's awesome Apr 25 03:25:40 I dont Apr 25 03:25:45 Ive never used it nor maven. Apr 25 03:25:52 seems like java engineers solving another problem that didnt really exist in the first place Apr 25 03:25:58 Dont get what its for. Dont get why you would use it. Never needed to. Apr 25 03:26:08 gradle work so much better than maven / eclipse Apr 25 03:26:16 *works Apr 25 03:26:21 its build replacemenet for ant, and a package management system like nuget or npm for external dependencies Apr 25 03:26:26 Anthaas, it's great for dependecies Apr 25 03:26:34 or complex builds Apr 25 03:26:39 I dont know Apr 25 03:26:49 Ive never built an app that has had any dependencies (to my knowledge)... that might be why then hahaha Apr 25 03:26:56 nice Apr 25 03:27:03 so you're writing an app for an agency that has 50 brands under it, all franchises of the same concept Apr 25 03:27:13 build automation to the rescue Apr 25 03:27:15 !! Apr 25 03:27:27 I dont really get why anyone would use android studio over intellij community tho Apr 25 03:27:34 seems like they just ripped a ton of shit out of intellij Apr 25 03:27:46 Its built ON intellij Apr 25 03:27:52 Hardly ripping it haha Apr 25 03:28:10 Just adding Android bespoke stuff to it. Apr 25 03:29:33 no ripped a ton of shit OUT Apr 25 03:29:35 not off Apr 25 03:29:39 I know its built off intellij =) Apr 25 03:29:51 Oooh my bad. Apr 25 03:29:59 Yes, tons are ripped out Apr 25 03:30:36 I use intellij a lot so I am moving about in android studio and like wtf, where is this feature Apr 25 03:30:39 where is that feature Apr 25 03:30:55 having to tell gradle which sdk to use to build Apr 25 03:31:41 Dont get any of that in Eclipse. Just saying... Apr 25 03:31:58 oh god Apr 25 03:32:03 eclipse is a massive pile of shit Apr 25 03:32:08 it does a lot ok, nothing well =) Apr 25 03:32:10 just use intellij Apr 25 03:32:29 No reason to use studio Apr 25 03:32:51 I've been experimenting with a ton of diff AR libraries, and they tend to be somewhat difficult to integrate in to existing projects Apr 25 03:32:55 especially with gradle Apr 25 03:34:04 I started using Studio recently after using Eclipse for a while and my biggest complaint is the gradle build times Apr 25 03:35:51 there's a slight difference, eclipse is always compiling Apr 25 03:36:08 Intellij only compiles when you press build Apr 25 03:36:12 Why? Apr 25 03:39:25 because that's just how it's implemented Apr 25 03:39:38 Yes, but why. Is there a benefit? Apr 25 03:39:46 eclipse does its syntax and code checking as part of compiling Apr 25 03:40:02 you can run gradle in daemon mode Apr 25 03:40:06 compile will be faster Apr 25 03:40:10 Intellij does it as part of its own parser Apr 25 03:40:31 benefits: battery power savings on laptops Apr 25 03:40:47 lower average load Apr 25 03:41:13 benefits: when you have large project on eclipse, you can go make yourself coffee each morning turning eclipse on Apr 25 03:41:22 ronny_fro_, what gradle/AR issues have you been having? Apr 25 03:41:50 the augmented reality libraries typically are heavy c interop Apr 25 03:42:00 what I would like to see in intellij is jni / ndk support Apr 25 03:42:02 then some throw in funky mechanisms for licensing Apr 25 03:42:06 more jni but ugh Apr 25 03:42:12 gordon it has it Apr 25 03:42:19 I mean it doesnt go creating everythign for you Apr 25 03:42:23 but it works great for editing Apr 25 03:42:45 with c++ ? Apr 25 03:42:59 I'd rather see debugging options and stuff with c++ / java projects Apr 25 03:43:12 currently there's no good solutions for that Apr 25 03:43:18 *there are Apr 25 03:43:28 yeah I use it to maintain android dist Apr 25 03:43:40 lots of framework modding, etc Apr 25 03:43:51 I wish they had a intellij c++ ide as well Apr 25 03:43:59 eclipse can do java and c++ Apr 25 03:44:02 REASONABLY well Apr 25 03:44:38 we just need to wait Apr 25 03:44:54 because of http://blog.jetbrains.com/objc/2014/02/jetbrains-c-ide-status-update-and-video-report/ Apr 25 03:44:59 hi all Apr 25 03:45:10 I have a question Apr 25 03:45:18 So do I. Apr 25 03:45:31 What problems do people actually have with Eclipse? I've never had an issue, and when I say that I dont really ever get an answer. Apr 25 03:45:40 can you help me about sqlite3 error Apr 25 03:45:49 "register_localized_collators() failed" Apr 25 03:45:52 Just the standard "This developer is clearly copying what another developer has said" shit. You know "Oh, its awful." or "I can't believe you use that..." Apr 25 03:45:55 Anthaas: have you used intellij ? Apr 25 03:46:15 gordon_: If I have no issue with my current IDE, why would I? Apr 25 03:46:18 for java ee project Apr 25 03:46:22 this is exactly why Apr 25 03:46:23 i got a 1000 word run-on sentence of feedback , the beginning of which says "sorry i'm not high but" Apr 25 03:46:28 can anyone here help? Apr 25 03:46:30 try it, you will never come back to eclipse again Apr 25 03:46:41 Why not AS? Apr 25 03:46:49 Or why AS instead of IntelliJ? Apr 25 03:46:56 Whichever way you wish to take it... Apr 25 03:47:06 I got strange errors with AS :) Apr 25 03:47:11 oh hell yes Apr 25 03:47:13 fucking intellij Apr 25 03:47:17 like it couldnt create project good Apr 25 03:47:25 leave it to the russians to make java not be total pos Apr 25 03:47:29 can anyone here help me about "register_localized_collators() failed" error on sqlite3? Apr 25 03:47:38 they are gonna clean house with that thing Apr 25 03:47:59 ronny_fro_: well... you can contribute ;) Apr 25 03:48:51 Anthaas: also, time for eclipse to open xml file is just a joke Apr 25 03:49:03 ? it is instantaneous for me? Apr 25 03:49:05 ronny_fro_ i can see the russian devs "these american google people can't write code for crap" Apr 25 03:49:14 I wish they'd build a .net ide again Apr 25 03:49:20 nobody can make java good Apr 25 03:49:22 cept them =) Apr 25 03:49:25 java gui apps Apr 25 03:49:59 ronny_fro_: there are always qt bindings for java ~ Apr 25 03:50:07 yeah I dont know Apr 25 03:50:14 I build mono stuff as well at my day job Apr 25 03:50:15 Installing IntelliJ now Apr 25 03:50:17 I Like qt Apr 25 03:50:28 but if you've ever written c++ qt apps Apr 25 03:50:35 you realize theres a shitload of non gui stuff to qt Apr 25 03:50:44 the bindings to other langs just feel... dirty Apr 25 03:50:59 Anthaas: you must be kidding me. At my previous job I used intellij and eclipse Apr 25 03:51:10 and xml was opening like 3 seconds Apr 25 03:51:21 same for jsp pages Apr 25 03:51:22 its not bad on a modern computer Apr 25 03:51:35 actually I will say Ive seen a lot more gui apps lately that were decent Apr 25 03:51:36 ronny_fro_: what is ? Apr 25 03:51:37 written in java Apr 25 03:51:44 netbeans is pretty cool for what it is Apr 25 03:51:54 I like intellij more Apr 25 03:51:57 somehow Apr 25 03:52:01 alex_PP you still here? Apr 25 03:52:07 netbeans does html5/js well for free Apr 25 03:52:12 webstorm does it better Apr 25 03:52:14 Anyone have any experience with ASP? Apr 25 03:52:15 yo Apr 25 03:52:15 but for $$$ Apr 25 03:52:16 not saying netbeans is bad Apr 25 03:52:16 I think of QT as a kind of OS rather than a GUI framework Apr 25 03:52:28 Anthaas: you mean asp .net ? Apr 25 03:52:28 Carbonflux you arent too far off there Apr 25 03:52:38 if nothing else its very much its own programming language Apr 25 03:52:38 Answer Set Programming, not Active Server Pages, sorry. Apr 25 03:53:01 well, qt is modular so you can only take qtcore and qtgui Apr 25 03:53:15 Anthaas: dont be sorry for not using asp .net :) Apr 25 03:53:22 ya, the first thing I do when I build Qt is turn off webkit Apr 25 03:53:24 Haha. Apr 25 03:53:26 alex_PP: So I followed youre pastebin and edited it but its giving me one error "must be declared abstract or implement abstract method getItemId(int)" Apr 25 03:53:27 you should stand strong for that Apr 25 03:53:30 oh god Apr 25 03:53:33 building android os Apr 25 03:53:39 see the first TODO Apr 25 03:53:52 I wish you could just say build webkit shit once, build v8 shit once and dont rebuild unless I explicitly tell you to Apr 25 03:53:55 Alt + Insert in AS, and select them all Apr 25 03:54:00 cause it takes FOR EVER Apr 25 03:54:05 ^ Apr 25 03:54:06 its like 85% of the entire build Apr 25 03:54:29 KARBON DIE OXYD Apr 25 03:54:30 x_x Apr 25 03:54:33 no wait Apr 25 03:55:14 just make sure you implement getItem, getitemid, getview, getcount Apr 25 03:56:07 Right, I have installed IntelliJ. From the start, someone sell it to me. Apr 25 03:56:21 ronny_fro_ is the salesman Apr 25 03:56:23 Anthaas: ? Apr 25 03:56:28 Assume I am making an Android application. Apr 25 03:56:32 alex_PP: Oooops missed that. Apr 25 03:56:35 salesman? Apr 25 03:56:37 I want to be shown how it is superior to Eclipse :D Apr 25 03:56:58 community is ok Apr 25 03:57:12 but ultimate edition for java ee is like ... miracle :P Apr 25 03:57:37 Anthaas just use it for a day Apr 25 03:57:54 g00s salesman of what Apr 25 03:58:18 of life! Apr 25 03:58:27 helo...anyone available to help me here? Apr 25 03:58:33 Great start, it can't find my SDK. Apr 25 03:58:40 Id be a terrible salesman =) Apr 25 03:58:45 Can I build just adb from source for a 32-bit PowerPC architecture? Apr 25 03:58:50 or JDK as it is calling it (even though its asking for an SDK beforehand) Apr 25 03:58:51 Anthaas you have to point it at your android-sdk dir Apr 25 03:59:08 "Not a valid home for a JDK" Apr 25 03:59:13 i need help about sqlite3...please help me Apr 25 03:59:24 cycl0ps: what problem do you have ? Apr 25 03:59:35 "register_localized_collators() failed" error on sqlite3? Apr 25 03:59:47 ronny_fro_ for intellij :) Anthaas asked for someone to sell it to him Apr 25 03:59:48 Anthaas: you need to setup two things Apr 25 03:59:54 jdk and android sdk Apr 25 03:59:56 oh Apr 25 04:00:26 gordon_: I try to open launcher.db but I get register_localized_collators() failed Apr 25 04:00:41 cycl0ps: have you tried opening it on a computer? Apr 25 04:00:45 gordon_: it used to be working Apr 25 04:00:53 hmm Apr 25 04:01:03 gordon_: but last week it doesn't anymore Apr 25 04:01:15 app permissions ? Apr 25 04:01:20 phone update Apr 25 04:01:21 anything? Apr 25 04:01:29 gordon_: I've chmod to 666 Apr 25 04:01:41 No, no, no, don't do that. Apr 25 04:01:42 gordon_: rom update Apr 25 04:01:45 g00s so hows your android dev going Apr 25 04:01:59 666 is as bad as 777 Apr 25 04:02:00 hmm Apr 25 04:02:04 gordon_: after update I can't open launcher.db anymore Apr 25 04:02:07 there's your answer :) Apr 25 04:02:10 Anyone (with an account) can write to it. Apr 25 04:02:22 intellij eats up a lot of RAM when developing for android. Apr 25 04:02:24 :( Apr 25 04:02:30 gordon_: but what's wrong? Apr 25 04:02:32 alex_PP: Woot. But uh the images dont load still. I suppose I need that view holder Apr 25 04:02:41 you probably dont have permissions to read it Apr 25 04:02:47 view holder shouldn't affect that Apr 25 04:02:54 it's just a little optimisation Apr 25 04:02:59 ronny_fro_ hm, ok. in some morass of trying to tablet optimize my UI Apr 25 04:03:02 gordon_: from what I've read in the sqlite3 source code,it's about locale error Apr 25 04:03:26 You want me to pastebin it again so you can take a look? Apr 25 04:03:28 nice Apr 25 04:03:33 yeah, go for it Apr 25 04:03:33 maybe rom is broken ? Apr 25 04:03:36 still messing with ble and what not Apr 25 04:03:46 ask #android-root Apr 25 04:03:49 gordon_: I've chmod it to 666 already Apr 25 04:04:11 thx...I'll try Apr 25 04:04:15 alex_PP: http://pastebin.com/nFgBxX9D Apr 25 04:05:14 ronny_fro_ i didn't get the ble HW yet, its late. still rfcomm. Apr 25 04:05:25 ronny_fro_ what is your wish list for stuff google would announce at i/o ? Apr 25 04:05:32 I dont care anymore Apr 25 04:05:49 io seems more like a big dev conference any more than product announcements Apr 25 04:06:04 get a usable release of ART out there and on by default Apr 25 04:06:15 "We are rolling out 500 different version of Android Wear over the past 6 months" Apr 25 04:06:29 over the next 6 months* Apr 25 04:06:31 g00s I've played with glass for about 2wks now Apr 25 04:06:38 seems like they totally fucked that hardware and software Apr 25 04:06:40 great idea Apr 25 04:06:43 shit implementation Apr 25 04:06:51 and marketed totally totally wrong Apr 25 04:07:12 my big beef is with the camera, its wonky aiming, and lack of *ANY* focus Apr 25 04:07:34 lets make it so focusing is literally handling by moving device backwards and forwards Apr 25 04:07:46 and now that device is stuck to your head =) Apr 25 04:07:51 ronny_fro_ i think they are changing their marketing by going after certain verticals, like medical Apr 25 04:08:00 as for public usage, its probably dead Apr 25 04:08:04 I dont think their intention was to go for the average consumer with Glass Apr 25 04:08:17 it fits very very well into my companies future, cept certain things about it just totally neuter it Apr 25 04:08:48 subpar processor, bad camera, os missing huge peices like bluetooth pairing to anything other than a phone for internet Apr 25 04:09:02 I've worked around most of the other hurdles Apr 25 04:09:46 i never paid attention to the specs, i don't care about it. seems eventually HW & batteries will get there, and the idea has a great future in areas like surgery - but i'm more interested in the social & privacy issues Apr 25 04:09:52 * Moonlightning backs up. Apr 25 04:09:55 adb is open-source, right? Apr 25 04:10:07 thats why it doesnt seem like its going ot make it for casual wearer Apr 25 04:10:20 the usage they say they are using it in medical Apr 25 04:10:27 is for patient/room id's etc Apr 25 04:10:31 I wish good testing support... Apr 25 04:10:38 the camera is shit, and I've experimented extensively Apr 25 04:10:50 the qrcodes have to be about 12"x12" to be useful Apr 25 04:10:58 and you have to scan them just so Apr 25 04:11:15 dont know why I should buy glass :) Apr 25 04:11:24 to cheat on exams ? :D Apr 25 04:11:30 I can see the usage in the medical field. You can just pull up patient info instead of carrying around a folder Apr 25 04:11:30 you shouldnt Apr 25 04:11:42 SlashTag but there is 0 input except voice Apr 25 04:11:45 it could make some nice translations when you're in the foreign country Apr 25 04:11:46 minimal tuch support Apr 25 04:11:52 and scanning barcodes/qrcodes Apr 25 04:11:55 but it probably hasnt that much power to do so Apr 25 04:11:56 and that support sucks BADLY Apr 25 04:12:15 you cant even just install an app and then say go launch this app Apr 25 04:12:24 unless it uses one of their approved action phrases Apr 25 04:12:27 Yea I was just gonna say "How the hell would you get it to figure out the patient without yelling at it" Apr 25 04:12:32 ok glass, play a game, charades Apr 25 04:12:50 they give you like 10 phrases to put in the place of play a game you can use Apr 25 04:12:51 thats it Apr 25 04:13:03 IntelliJ seems very slow. Apr 25 04:13:06 I had to hack up a virtual launcher app for my software and keep it as a livecard =) Apr 25 04:13:12 Anthaas you must have a shit puter Apr 25 04:13:16 HAH! Apr 25 04:13:18 its no worse than android studio Apr 25 04:13:19 hahahaha Apr 25 04:13:28 Android Studio is fine for me. Apr 25 04:13:40 Moonlightning: yes Apr 25 04:13:51 Android Studio is slow for me. Its like 15 seconds for a gradle build and I have an SSD and more than enough memory Apr 25 04:14:01 SlashTag, that should work Apr 25 04:14:03 yeah, gradle slow Apr 25 04:14:03 hmm Apr 25 04:14:08 gradle IS slow Apr 25 04:14:09 are the the URLs valid? Apr 25 04:14:32 Fuck Apr 25 04:14:42 I hate the fact I have to learn a whole new set of shortcuts. For example Eclipse = Delete line carat is on. IntelliJ = Repeat the line the carat is on. Apr 25 04:14:43 Whoops I used the wrong link Apr 25 04:15:02 Okay. Apr 25 04:15:12 Anthaas just change the keymap for that Apr 25 04:15:15 Can I build it for a 32-bit PowerPC architecture? Apr 25 04:15:22 i use Ctrl-D delete all the time too :D Apr 25 04:15:29 dont change intellij shortcuts.. Apr 25 04:15:34 you'll probably end up badly Apr 25 04:15:37 Anthaas, there's an eclipse shoutcut theme Apr 25 04:15:38 Just adb...I don't need a full build of Android, I don't think. Apr 25 04:15:41 in settings somewhere Apr 25 04:15:45 BAM that worked. TY alex_PP Apr 25 04:15:52 no worries Apr 25 04:16:40 Is there an option in Studio where if you hover over a method it shows you the decleration with the input args and types, etc Apr 25 04:16:49 Like in Eclipse Apr 25 04:16:52 is there any way to copy database from phone to computer?? Apr 25 04:17:09 s/\?$// Apr 25 04:17:12 What database? Apr 25 04:17:26 slani if its not rooted, not really. your app will have to export to sdcard or something Apr 25 04:17:38 yeah Apr 25 04:17:49 sqlite support in android would be nice to be improved Apr 25 04:17:52 and by that I mean Apr 25 04:17:55 just dont mettle Apr 25 04:18:01 it was better before google fucked with it =) Apr 25 04:18:28 god I wish there was a way I could get paid to bitch about stuff =) Apr 25 04:18:28 ronny_fro_: what kind of support ? Apr 25 04:18:29 Even the text editor in IntelliJ is laggy. Apr 25 04:18:44 Anthaas: have it scanned code ? Apr 25 04:18:47 a lot of android's problems i think were because of its shitty vm; shitty GC. they could have used JDBC but there was probably way too many performance problems Apr 25 04:18:49 andorid basically says you have to open sqlite db with these methods Apr 25 04:18:52 I have this issue with no other IDE or text editor. Apr 25 04:18:57 then you can generally use it more or less the same Apr 25 04:19:08 but it'd be a lot easier to just use some generic java client Apr 25 04:19:11 because now you want me to say that eclipse is faster than intellij in text editor Apr 25 04:19:19 and internet is full of tickets eclipse being slow... Apr 25 04:19:32 g00s I wouldnt have gone with jdbc either Apr 25 04:19:32 Wait nvm I found it Apr 25 04:19:35 I dont want you to say anything Apr 25 04:19:40 What I am saying is what I am experiencing. Apr 25 04:19:42 Anthaas, if you like eclipse, stick with it, no one's forcing you Apr 25 04:19:48 the author of H2 tried to get that db working well on android; it came down to dvm sucking Apr 25 04:19:53 I think google is fixing a lot of thos ethings Apr 25 04:20:01 "no one is forcing you", yet Apr 25 04:20:02 alex_PP: I never said they were, I am just talking my current experience with it. Apr 25 04:20:08 g00s: how can my app do this? Apr 25 04:20:19 ronny_fro_ does art have generational GC ? Apr 25 04:20:35 uhh its for all intents and purposes an AOT compiler Apr 25 04:20:38 btw, the benchmarks i have seen for ART are still pretty lame Apr 25 04:20:49 it basically explores all code paths and exports for all intents and purposes native code Apr 25 04:20:57 similar to how pnacl or LLVM bytecode work Apr 25 04:20:59 g00s: it's in beta right Apr 25 04:21:29 you install, it takes the art bytecode and turns it into arm or intel or mips or whatever native code Apr 25 04:21:39 and there isn't any JIT Apr 25 04:21:40 takes longer to install uses more code to install Apr 25 04:21:43 but theres nothign to jit Apr 25 04:21:45 yea Apr 25 04:21:56 uses more storage Apr 25 04:21:59 so it has a long way to go Apr 25 04:22:04 it is faster Apr 25 04:22:11 by a decent margin Apr 25 04:22:16 anyone tried couchDB or mongoDB on android? Apr 25 04:22:23 but it could and will be optimized even further Apr 25 04:23:04 alex_PP: lol? Apr 25 04:23:53 alex_PP the couchDb dev used to hang out here a long time ago Apr 25 04:23:57 honestly I'd rather android have forced people to write int in c/c++/something else Apr 25 04:24:20 shit even xamarin core is WAY WAY more efficient than dvm Apr 25 04:24:28 and supports modern version of languages =) Apr 25 04:24:41 i think they have some erlang blob that worked on android Apr 25 04:24:43 but at least they are looking at it Apr 25 04:24:53 (it didn't look pretty) Apr 25 04:25:14 ronny_fro_: there's always scala ;) Apr 25 04:25:21 it still runs in the same vm Apr 25 04:25:31 can run on art Apr 25 04:25:41 java 8 has new permanent generation shit Apr 25 04:25:42 I think :) Apr 25 04:25:47 functional languages need a good GC Apr 25 04:25:53 that should theoretically make java apps more efficient, less bloated Apr 25 04:26:04 but since android wont see java 8 any time soon AT ALL Apr 25 04:26:10 what are you going to do Apr 25 04:26:34 ronny_fro_ i wonder if google will make kotlin an official option Apr 25 04:26:45 I dont know if I know what kotlin is Apr 25 04:26:59 wat, you're like jetbrains dude Apr 25 04:27:44 why kotlin.. Apr 25 04:27:45 they also need to figure out something with this 65k method limit shit Apr 25 04:28:11 "you'll never need more than 65k methods to show adds" Apr 25 04:28:12 android 4.4 still has that limit? Apr 25 04:28:32 art does Apr 25 04:28:43 yeah, its bytecode limitation Apr 25 04:29:28 I'm a .net guy and its an unpopular opinion Apr 25 04:29:38 so i guess we use javac to get some bytecode, then dex to change that bytecode, oat to change it again ? oh and proguard to fuck around even more Apr 25 04:29:38 but this shit would have been way way way better if it was mono from the get go =) Apr 25 04:29:49 NO Apr 25 04:30:19 only if Google had a) bought Xamarin and b) signed an agreement with MS Apr 25 04:30:28 dex2oat Apr 25 04:30:47 mono is open, based on specs that ms has released to standards boards etc Apr 25 04:30:48 I dont want to see icaza ;) Apr 25 04:30:57 so its javac -> dex -> proguard -> dex2oat ? what could possibly go wrong :) Apr 25 04:31:03 ronny_fro_: it's a trap Apr 25 04:31:04 :D Apr 25 04:31:13 I had dinner with him once, at FOSDEM... Apr 25 04:31:35 he reminds me of linus from conversations I've had with him online etc Apr 25 04:31:36 Leeds: now e-mail him and ask how his mac is Apr 25 04:31:52 kind of a egotistical guy Apr 25 04:31:53 nah, I'm sure he uses ubuntu, doesn't he? Apr 25 04:31:57 but not to say its not foudned Apr 25 04:31:58 mac Apr 25 04:32:00 Leeds: lol Apr 25 04:32:01 hes all mac now Apr 25 04:32:04 he uses mac Apr 25 04:32:11 and say how wonderfull it is Apr 25 04:32:14 with unity Apr 25 04:33:15 its unfortunate mono kinda turned into the defacto game dev language Apr 25 04:33:18 vs more Apr 25 04:33:21 more server side stuff Apr 25 04:33:28 more of a java replacement Apr 25 04:33:48 you see big enterprise shit in java and say wow, if the equivalent of this was built in .net and running in mono Apr 25 04:36:03 g00s, Dan Bornstein was working on increasing the number of methods dex files could use, but then he became separated from Google Apr 25 04:36:48 ronny_fro_: it would be the same.. Apr 25 04:37:15 yeah danfuzz is long gone Apr 25 04:38:10 well java engineers do tend to build the same shit no matter the platform Apr 25 04:38:15 typically overengineered Apr 25 04:38:51 meaning ? Apr 25 04:38:52 hey guys, anyone use or know of a color picker preference lib or tutorial? Apr 25 04:38:53 too many classes Apr 25 04:39:00 or what Apr 25 04:39:03 too many patterns ? Apr 25 04:39:08 jareddlc there is one in calendar you may be able to reuse Apr 25 04:39:40 too much code Apr 25 04:40:08 cool thx g00s going to check it Apr 25 04:40:49 ronny_fro_ so you're saying osgi on android :) Apr 25 04:41:51 I still wait for jigsaw ;P Apr 25 04:42:07 how can I pull database from my device when I was use coman run-as mypackage Apr 25 04:42:10 who what Apr 25 04:42:30 now I'm in database folder Apr 25 04:44:17 is there a way I can get the current tab if the user clicks on a button in the action bar? Apr 25 04:46:02 SlashTag: that's too general, need more info about code Apr 25 04:46:17 Yeah should have explained Apr 25 04:46:30 there's method onOptionsItemSelected Apr 25 04:46:32 I just want to know which tab the user is in if they click a button I put in the action bar Apr 25 04:46:55 if you're on fragment, you generally know which tab it is Apr 25 04:47:01 if not, ask adapter Apr 25 04:49:24 How would I use the adapter to figure out which tab it is? Apr 25 04:49:50 do you have access to adapter ? Apr 25 04:49:57 or not Apr 25 04:50:29 I have a TabsPagerAdapter Apr 25 04:51:51 ee Apr 25 04:52:14 you mean FragmentPageAdapter? Apr 25 04:52:40 if your buttons are changing their behaviour based on the current fragment, i'd say they belong in the fragment Apr 25 04:52:54 yea that Apr 25 04:53:06 https://developer.android.com/reference/android/app/Fragment.html#setHasOptionsMenu(boolean) Apr 25 04:53:12 awell it got method getCurrentElement or something Apr 25 04:54:25 Well all the actionbar button needs is the current tab since its gonna do that same thing for each tab just slgihtly differnet Apr 25 04:55:12 what's the operation? Apr 25 04:55:57 Its going to open up the youtube app and go to a channel for each tab, but each one will go to another channel depending on the tab Apr 25 04:56:38 does fragment knows about channel? Apr 25 04:56:54 The channel is irrelevant, its just a url link Apr 25 04:57:42 Essentially what I want it to do is like: "You hit the actionbar and you are on tab 0, Im going to youtube.com/Google" Apr 25 04:58:02 "You hit the actionbar and you are on tab 1, Im going to youtube.com/Android" etc etc Apr 25 04:58:31 I just need to know what tab the user is on so I can switch based upon that Apr 25 04:58:47 SlashTag, i'd add it to an abstract parent fragment Apr 25 04:58:51 you can get tab index from adapter getCurrentItem Apr 25 04:59:07 and an abstract method that gets the url Apr 25 04:59:16 that you can implement in the concrete fragment Apr 25 05:02:11 Im not seeing anything like getCurrentItem Apr 25 05:02:19 Do I have to create that in the adapter. Apr 25 05:02:43 wait Apr 25 05:03:40 true, you need to create it yourseflt Apr 25 05:03:45 *yourself Apr 25 05:03:56 bleh Apr 25 05:06:46 Now if only I knew how to do that... Apr 25 05:09:52 dont know your data but it shouldnt be hard Apr 25 05:29:55 hi Apr 25 05:30:32 Is there a way to mount data from the phone onto your linux/mac computer? And I don't mean the sdcard stuff. I mean the data that you normally only see via "adb shell" and then "run-as com.blah.app" Apr 25 05:30:41 There any way to do that? Apr 25 05:31:02 Or, alternatively, is there an easier way to pull the logs off other than individual "adb pull ..." commands? Apr 25 05:33:44 Gorroth: logcat ? Apr 25 05:34:09 No, I don't log everything to logcat. Our system that we ported pushes logs to files in /Logs Apr 25 05:43:58 if no data in database which correspond selection arguments, then contentresolver.query must return null?? Apr 25 05:46:44 ?? Apr 25 05:51:30 hey guys, getting a really bizarre bug; when I rotate my phone and switch tabs in my app, i get a null pointer exception from my fragment Apr 25 05:51:41 does onCreateView() not get called after a rotation event? Apr 25 05:53:09 rotation + lifecycle claims another victim ! Apr 25 05:56:47 i know right? :'( how do i go about fixing this lol? Apr 25 05:56:57 or where can i at least read to start? Apr 25 05:57:01 i'm new to this whole process lol Apr 25 06:00:30 g00s: if you have any idea i'd really love a teensy bit of input because i'm useless at the mo lol Apr 25 06:02:18 RedDunce not sure. you didn't post code or stacktrace, so nobody can help. Apr 25 06:03:26 and honestly, those kinds of lifecycle things are just shlepping your way through events Apr 25 06:04:04 well, theres prolly a bit too much code to sift through but the issue at hand is as follows: onPageSelected, I call fragment.repopulateAdapter() Apr 25 06:04:19 which calls that fragment's adapter.clear() Apr 25 06:04:23 that's causing a null pointer Apr 25 06:04:29 anytime i rotate and switch to the tab Apr 25 06:06:32 i need to learn more about this lifecycle stuff, i'm realizing now that my app is doo doo Apr 25 06:06:33 lo Apr 25 06:06:38 so much stuff breaks whenever you rotate Apr 25 06:06:50 there's gotta be a way to fix this without re-writing a ton of code lol Apr 25 06:18:22 hi! I'm writing an app using the Google Maps API. do I have to push Camera Relocations & GPS actions on a different thread than the UI thread? Apr 25 06:30:07 g00s: got it! Apr 25 06:30:12 a nice color picker Apr 25 06:30:37 if u wanted to know for future reference http://code.google.com/p/android-color-picker/ Apr 25 06:31:07 oh i liked the calendar one better Apr 25 06:31:14 but i just needed a few colors Apr 25 06:33:12 like https://android.googlesource.com/platform/frameworks/opt/colorpicker ? Apr 25 06:33:32 that's the calendar one :P Apr 25 06:33:36 :) Apr 25 06:33:43 oh hey and i'm the last person to commit to it Apr 25 06:34:17 :D I needed RGB for my project Apr 25 06:34:27 eventhough the calendar looks so much better Apr 25 06:35:01 jareddlc yeah, you grabbed some froyo looking thing Apr 25 06:35:13 hahhaa it doesnt look bad in 4.4 Apr 25 06:35:21 id post screenshot Apr 25 06:35:23 but dont think i can Apr 25 06:35:58 anyways Apr 25 06:36:06 good night Apr 25 06:36:09 calling it a night Apr 25 06:36:13 ending on a high note Apr 25 06:36:39 canadiancow whats the stuff in frameworks/opt … i haven't been paying attention, is it stuff getting unbundled from apps for reuse ? Apr 25 06:37:34 yeah Apr 25 06:37:52 cool :) Apr 25 06:38:21 next opt: drag'n'drop staggered listview from keep :D Apr 25 06:45:42 s5 Apr 25 06:45:54 whoops , wrong window again Apr 25 06:46:15 q9 Apr 25 06:46:18 prp tip, don't trust focus in linux mint Apr 25 06:46:23 *pro Apr 25 06:47:52 Hi is there someone familiar with using xmlreader.js for parsing XML in Parse.com cloud code? Apr 25 06:50:46 JakeWharton: why do you use rx.Subscription in u2020? or what for? Apr 25 06:53:24 kamol, it's open source, jist read it Apr 25 06:54:00 alex_PP: I read it, but stil cannot get it why :( Apr 25 06:56:02 the rx stuff is used to background network requests Apr 25 06:59:11 hey guys, is LG G Watch out yet? Apr 25 07:08:04 alex_PP: I thought okhttp is already handling thie background network requests? Apr 25 07:22:32 Hi guys. I've DialogFragment that pop-ups when a text edit value is wrong on the existing DialogFragment. When the popup appears, the keyboard which has focus on the edit text disappears. Apr 25 07:22:33 I had previously used getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); in the onCreateView method of other DialogFragment. And it worked fine, but this time that method doesn't work :-/ Apr 25 07:23:00 After the pop up dialog fragment dismiss, that method is called, but the keyboard doesn't reappear. Apr 25 07:23:42 *dimisses Apr 25 07:26:36 I tried to create a project in android studio and it says: Cause: android.compileSdkVersion is missing! Apr 25 07:27:00 But i have compilesdkversion in app/build.gradle Apr 25 07:31:59 kamol, OkHttp is just a HTTP library Apr 25 07:32:24 retrofit can do some async stuff, but rxjava is the new hotness Apr 25 07:32:31 retrofit can work with rx too Apr 25 07:37:30 Hi all, I need to test my application which contains a navigation (road), is it easy to fake a location to where I want? Apr 25 07:39:52 alex_PP: this one https://github.com/Netflix/RxJava/wiki ? Apr 25 07:40:13 yeah Apr 25 07:41:03 It's almost been 48 hours since publishing and my app is not available, should i be concerned? Apr 25 07:43:08 i have an app that involves navigation. the users movement should be tracked as long as the app is active (if he starts the navigation). when do i free all the resources? when is a definite exit-callback of the app? Apr 25 07:43:38 i can't hook it up to the activity lifecycle since it should be independent of a single activity Apr 25 07:43:42 thank you alex_PP: Apr 25 07:43:48 no problem Apr 25 07:46:54 any body here used google autocomplete API in android? Apr 25 07:47:02 can we restrict the results by area bounds? Apr 25 07:48:01 can anyone point me towards docs about adding controls to a notification? Apr 25 07:56:33 apple741 what does the status say in your dev console ? Apr 25 07:57:27 when u take a photo on some androids it gets rotated, any ideas why? tryiong to detect it and rotate it back Apr 25 07:57:30 Hey g00s, it says 'Published' Apr 25 07:57:39 hm Apr 25 07:58:12 Gaz` my condolences, working with the camera api :) Apr 25 07:58:33 I know the link is correct as I'm clicking on 'View on Google Play store' which provides a direct link. Apr 25 07:58:38 i know im so sick to death of it, what a mess Apr 25 07:58:49 buteach app i do they seem to think u need some gimmicky camera stuff Apr 25 07:59:04 https://stackoverflow.com/questions/6069122/camera-orientation-issue-in-android Apr 25 08:00:11 do you ever feel beyond helpless with android, its starting to feel like j2me to me, i test on 20 devices here all perfect then client tests on 5 and says it crashes on them all, in the end i want to just say "i simply dont believe you" Apr 25 08:00:48 thanks f2prateek this looks good Apr 25 08:02:44 Gaz` gotta tell them, if you need MediaPlayer or camera, my rates x2 Apr 25 08:03:28 Gaz`: I've seen a couple of solutions for some other devices too, so it might not be all encompassing. Apr 25 08:04:24 g00s, interesting Apr 25 08:05:05 yeh i dont know baout these solutions Apr 25 08:05:10 not sure what to do Apr 25 08:05:34 XD Apr 25 08:05:34 also got a strange layout bug that ive not seen on any device or emu but client swears is happening, of course sending me a screenshot is too much work for them Apr 25 08:06:09 i would personally avoid projects with those ^^ apis completely, but ... Apr 25 08:06:45 yeh theres always something nasty even in the small apps Apr 25 08:06:59 and then theres the 90% of clients who decide theyre nto going to pay the last installment Apr 25 08:07:18 anyone heard of Kliq? Apr 25 08:07:51 anyone used places autocomplete api? can`t find anything on the docs too Apr 25 08:08:02 how to restrict results Apr 25 08:14:31 With the Google Directions API, you can get the point for the direction for creating a Polyline. Example: "polyline": { "points": "a~l~Fjk~uOwHJy@P" } , Is there a way to convert this to something readable? Apr 25 08:15:47 Because I need to create an example route with a lot geo locations, but don't know what's the best way to create this Apr 25 08:17:02 Gaz` gmail feedback sends a screenshot and log; maybe do that Apr 25 08:17:19 also genymotion might have an image for your client's phone Apr 25 08:24:16 FrancescoV, https://developers.google.com/maps/documentation/utilities/polylinealgorithm Apr 25 08:24:27 hello everybody i have a question about gcms Apr 25 08:25:02 is it possible when the app is closed and you click on one push message. that the app opens and i get the extra data? Apr 25 08:25:27 alex_PP: thanks a lot! I'll check it out Apr 25 08:28:04 can i get any callback when my app is swiped out of the "recent apps" list? Apr 25 08:41:42 Hello. I am rather new to Android Development and it is the first time I actually am using a Fragment containing a ListView. I tried calling my Fragment in my activity using both constructor and newInstance, yet each time I run into a NullPointerException and it does not really make sense why. Apr 25 08:42:18 I called this in the getItem() method in a switch block based on the current tab selection (it's a tab view application). Apr 25 08:43:10 Any ideas or suggestions on what could be wrong? Apr 25 08:43:30 can anybody help me with my android lifecycle question? http://stackoverflow.com/questions/23288243/callback-when-app-is-killed-by-swiping Apr 25 08:43:52 fancy42, in short, I don't think there is a way Apr 25 08:44:03 fancy42, http://stackoverflow.com/questions/14823264/what-event-is-used-when-user-ends-application-with-swipe-motion-in-4-2/14823403#14823403 Apr 25 08:44:51 havchr, wo when are my background threads killed by android? Apr 25 08:45:00 or my location service binding? Apr 25 08:45:40 Boggie, need code... Apr 25 08:45:54 Code will be posted Apr 25 08:45:55 it terminates the process, so they would be automatically killed, unless you have done special care to avoid it. at least that is my understanding Apr 25 08:45:56 one second Apr 25 08:46:56 no it's a simple worker thread started with new Thread(runnable).start() and it waits to be notified on certain events. also there is a periodic timer Apr 25 08:48:17 Code is here: http://pastebin.com/T19izAZf Apr 25 08:48:43 fancy42, you could add some logging in your threads to confirm they are being shut down. Apr 25 08:50:01 if you need it to still run after swiping away, you should check out foreground service Apr 25 08:51:38 no, all i want is to make sure that it's dead :D Apr 25 08:52:00 navigation and position tracking is really battery intense Apr 25 08:53:13 Zharf, mind you the ListFragment code is generated by eclipse, I simply removed the parameters that are not used at all. In theory the fragment will be reused between a number of tabs. Apr 25 08:53:36 just the data will change but that is not the question now Apr 25 08:55:06 i have found this: http://pastebin.com/8eiNAUFZ so i can define what opens after i click on the message, but when i have different message types how to define different actions after clicking Apr 25 08:55:09 havchr, thanks btw. :) Apr 25 08:58:00 fancy42, no problem had some problems with it myself for an alarm clock app I am making :) Apr 25 09:17:02 I got a listview in header, can i access actionbar option menu from header? Apr 25 09:19:11 sometimes logcat doesn't show anything why ? Apr 25 09:19:29 usually adb connection died Apr 25 09:21:01 g00s: and what should i do? Apr 25 09:21:07 Hi fellows, is it possible to show the Intent to pick contact and to filter the contacts that have no email adress ? Apr 25 09:21:25 mintux you could try restarting adb Apr 25 09:21:34 adb kill-server Apr 25 09:23:07 g00s: i did and also $ adb start-server but nothing i should reopen AVD ? Apr 25 09:26:53 hmm. if using usb, try reconnecting the cable. if using wifi, do another 'adb connect a.b.c.d:xxx' Apr 25 09:27:07 wow, this cardslib looks pretty nice Apr 25 09:28:41 g00s: im using emulator Apr 25 09:36:47 hello folks, i have got a strange behaviour using a linux chroot (build with a buildroot) into an android device. I mount a tmpfs, and create an unix socket inside. My android apps are able to connect on . After some time (no idea how much ), i loss only my sock, not the pid that are into the same directory. Is there someting into android that clean unused sock or something like that ? Apr 25 09:55:23 it seems i have this bug on 4.4 but not in 4.2 :'( Apr 25 09:56:29 correction i have this bug on 4.2.2 but not int 2.3.4 Apr 25 10:15:06 How do i use android.R.id.home with support v7 when my minimum api is 10? android.R.id.home is from api 11 Apr 25 10:30:43 capella http://www.zdnet.com/microsoft-surface-mini-to-debut-in-mid-may-7000028744/ Apr 25 10:31:22 Yah I saw that in our #windev channel ... looks kinda cool Apr 25 10:32:20 * capella wonders what that thing will weight Apr 25 10:35:49 hmm, "Facebook Acquires Fitness And Activity Tracking App Moves" Apr 25 10:36:07 seems like the next little battleground, with the iOS healthbook app Apr 25 10:52:43 hello guys Apr 25 10:52:54 Ive got a simple game im making, Ive made a class which extends view and not surfaceview and ive made another class which extends Thread and im runnign my game loop in there... Now all the tutorials im finding use a surface view but my team mate im working with wants me to specifically use a View Apr 25 10:53:04 I was wondering if anyone had examples of a view being passed through to a game loop instead of a surface view Apr 25 10:53:21 i see the main difference so far is the surfaceview callback Apr 25 10:53:45 but maybe its as easy as just implementing a callback to the view? Apr 25 10:57:14 what can i implement in place of a SurfaceHolder.Callback if im extending view... or atleast some documentation that will help me understand this better Apr 25 11:06:19 Mavrik there by any chance? for some reason i got the impression you knew a little about typography on android. quick Q: i have a textview (64dp) above another textview. The gap is very large, i'm guessing because of the descenders. if i'm just using numbers, is there any way to shrink that gap ? Apr 25 11:07:58 hmm, i'll try removeFontPadding Apr 25 11:08:28 meh, no help Apr 25 11:12:52 * eyaltgray say hi Apr 25 11:13:20 anyone here has any hard core experiance with working with the gradle builds for android projects ? Apr 25 11:13:26 while using eclipse that is ;-) Apr 25 11:18:25 hi! I'm looking for an analytics provider that lets me mix-and-match queries to find out very specific stuff. Like "did the users who played the tutorial first spend more money in the game than those who didn't". Basically like SQL queries or something. Does something like this exist? Apr 25 11:21:57 the reql question i think is does google let you "download" your analytics data from google analytics instead of just presenting nice graphs, if ther answer is yes you can pretty much analyze whatever you want. Apr 25 11:22:00 real* Apr 25 11:22:47 thank god its friday Apr 25 11:22:50 :D Apr 25 11:23:41 eyaltgray: true, but I wonder if any provider lets you do this by default, maybe through a GUI using charts and whatever. It seems like an important aspect to me. Apr 25 11:25:14 probably not just for ya, but this info woth quite a lot of money to the vendors as you might have gussed, so i persume getting this infrmation, even though ti's "yours" will cost money Apr 25 11:25:49 shit, seems like extra space is built into the roboto font Apr 25 11:25:53 dafuq Apr 25 11:26:12 if any service is giving it for free, not like in chars and pies but in real numbers and tables , it will be what u look for, but i'm in serious doubt if u'll find one. Apr 25 11:27:55 is it okay to implement surfaceholder.callback to a class that extends view in android? Apr 25 11:44:24 is there a way to change the app name, but only under the icon on the launcher? Apr 25 11:45:31 app name is determined by the AndroidManifest.xml , it's the Application tag "label" attribute. Apr 25 11:45:41 ok, thank you Apr 25 11:45:53 what else is changed in the app that is problematic 4 u ? Apr 25 11:46:25 me? Apr 25 11:47:36 yeah :-) Apr 25 11:48:17 nothing at all, it’s done! Apr 25 11:48:30 my first completed android app, a port from my iOS app :D Apr 25 11:49:03 cool :-) good luck ;-) Apr 25 11:49:20 thanks, i’ll need it Apr 25 11:49:26 now my most hated task, rebuild my website Apr 25 12:03:02 hi Apr 25 12:03:15 I have an Android Application with native C Code Apr 25 12:03:28 it has the permission to read and write to external storage Apr 25 12:03:45 I am able to create a file with fopen in C Apr 25 12:04:02 but I am not able to change it's permissions with chmod() Apr 25 12:04:23 what do I need to do, to be able to use chmod() in native Code Apr 25 12:04:23 doh Apr 25 12:04:26 ? Apr 25 12:04:27 nothing. Apr 25 12:04:33 because external storage is FAT32 Apr 25 12:04:44 oha Apr 25 12:04:50 which doesn't have security related attributed Apr 25 12:05:00 xD Apr 25 12:05:03 even if you have internal flash formatted as something else it won't support security on external storage Apr 25 12:05:13 doh indeed Apr 25 12:05:45 thanks^^ Apr 25 12:06:37 anyone who knows why my standard android emulator doesn't start up? It stays on a black screen (running mac os x) Apr 25 12:06:50 hello. i have a project that's using the jni. i have some local modules which compile well. when i want to add an external library. the build fails. i use the following main makefile: http://bpaste.net/show/NEMIVEjNSmXIVuXYrMMw/ Apr 25 12:06:50 my submodule "imageprocessing" has the following makefile: http://bpaste.net/show/Q402xauYpExpcSIX2Wje/ Apr 25 12:06:50 how do i have to call that code in a cpp file now? i tried this: http://bpaste.net/show/qWqGp2LBJueEGuSCEiJr/ Apr 25 12:07:45 duese, you need to Apr 25 12:08:01 1.) Define proper JNI interface (check if it conforms to what you have in java) Apr 25 12:08:28 2.) Devine static native method in java with the same signature Apr 25 12:08:56 3.) Call System.loadLibrary("imageprocessing") before invoking the native call Apr 25 12:09:05 Mavrik: to 1.) the call from java would work without the newly added code. foobar() can be called Apr 25 12:09:25 Mavrik: 2.) foobar() can be called from java Apr 25 12:09:36 the java side is not the problem Apr 25 12:09:48 i can't build the code Apr 25 12:11:08 the last snippet shows the cpp code. i don't know how i can import "SYSSimpleDataTypes.h" which defines "SYS_DWORD" Apr 25 12:16:27 duese, the one that conforms to where your .h file is Apr 25 12:16:37 there's a difference between <> includes and "" in C Apr 25 12:16:42 which has little to do with NDK :) Apr 25 12:16:53 duese, if the file is in same directory use "" Apr 25 12:20:31 the file is in a completely different directory. i put it under "C:\Users\duese\proj\ndk\projsystems" so i set $(call import-add-path,C:/Users/duese/proj/ndk) in the top makefile Apr 25 12:21:07 do i need to publish that path to the linker somehow? Apr 25 12:22:20 i'm using eclipse. under "project settings > c/c++ general > paths and symbols > includes" i added the path. Apr 25 12:22:58 so now i could include the file via "#import " or am i wrong? Apr 25 12:23:27 typo: so now i could include the file via "#import " or am i wrong? Apr 25 12:24:52 no Apr 25 12:24:59 because those settings don't affect NDK builds. Apr 25 12:25:10 add include and library path to Android.mk Apr 25 12:26:33 thats what i thought i did.. Apr 25 12:30:01 use -I for compiler and -L for linker. Apr 25 12:30:55 i thought that the macros "$(call import-add-path,C:/Users/duese/proj/ndk) " do that stuff... Apr 25 12:43:33 when i put "#include "C:/Users/duese/proj/ndk/projsystems/SYSSimpleDataTypes.h" into "MinimalSystemsTest.cpp2" it works... Apr 25 12:43:58 -2 Apr 25 12:58:02 duese, is there a reason you refuse to use -I to specify include directories for compiler? Apr 25 13:16:36 how much textures I can load into 1GB tablet game? Apr 25 13:18:31 as much as you need Apr 25 13:30:18 hi guys, im learning about the android xml animations and i would like to know how i can animate a button (Green color circle) to be clicked and dragged to either right or left side of the layout. The sample layout is http://i.imgur.com/XpaUZ8M.png Apr 25 13:33:44 :ubuntufreak did you look at Android Animation? Apr 25 13:34:21 should be fadein and fadeout animation class Apr 25 13:34:40 which will use your anim resource file Apr 25 13:35:13 kamol: yes i checked the adding animation samples in the developer docs, but not sure how i could implement it Apr 25 13:36:53 wait, you want to drag thet circle? Apr 25 13:37:13 kamol: i need to touch and drag the green button in the image either to left and right, based on the side will initiate a new activity Apr 25 13:37:30 I'm getting a javax.net.ssl.SSLPeerUnverifiedException, but it seems like the server I am trying to connect to has a valid certificate. Apr 25 13:38:34 kamol: yes you are correct, i need to drag that circle to either side Apr 25 13:39:45 :ubuntufreak you don’t want to use Seek Bar? Apr 25 13:41:41 kamol: i thought about it but is it possible to drag it from the the middle either to right or left ? i thought only dragging from left to right or the reverse is possible Apr 25 13:44:22 :ubuntufreak yes it is possible Apr 25 13:45:11 kamol: any supporting tutorials or text that i can refer to ? Apr 25 13:47:17 :ubuntufreak http://www.techrepublic.com/blog/software-engineer/androids-seekbar-your-way/ did you look at it? Apr 25 13:48:18 kamol: thanks will check it now Apr 25 13:48:30 :ubuntufreak you can style as you wish like this one http://i.imgur.com/XpaUZ8M.png Apr 25 13:49:35 kamol: guess i can create a transparent seekbar to match my custom view Apr 25 13:49:50 :ubuntufreak yep Apr 25 13:50:08 kamol: thanks much will try it and let you know Apr 25 13:50:38 np Apr 25 13:53:42 hi, i made an activity which is displayed as dialog and i set the size of the dialog with this line: getWindow().setLayout(width, height); Is it possible to animate the resize of an acivity displayed as dialog? When i resize the dialog while it's already displaying, the resize stutters (not instand and no fluid animation). I think this could be because the layout of the views do some strange things. Has anyone ever did this? Apr 25 13:54:46 rayo, resize it, and at onPreDraw or onGlobalLayout trigger a scale animation that will resize it from original size to new size Apr 25 13:56:03 onPreDraw or onGlobalLayout doesn't matter? Apr 25 13:56:29 probably onPreDraw (after changing the layout) makes more sense Apr 25 13:58:42 it is regarding dagger (u2020) Apr 25 13:58:45 is there a onPreDraw on an activity or should i use the most outer layout? Apr 25 13:58:49 I am injecting GalleryService from https://github.com/JakeWharton/u2020/blob/master/src/main/java/com/jakewharton/u2020/data/api/ApiModule.java#L42 in my activity: @Inject GalleryService galleryService; However, galleryService is null. Apr 25 14:00:18 rayo, why not attach on the view you're resizing? Apr 25 14:00:57 i'm not resizing a view, i'm resizing an activity (shown as dialog with the dialog theme) Apr 25 14:01:41 there's no such thing as "resizing the activity" Apr 25 14:01:46 if you see it on the screen it's a view. Apr 25 14:02:05 so figure out which view you're resizing and attach it there, you'll need it for animation anyway ;) Apr 25 14:02:15 Hint: Hiearchy Viewer :) Apr 25 14:16:36 Mavrik, in the hierarchy viewer the layout im resizing is a PhoneWindow$DecorView, how can i get that? Apr 25 14:19:35 ok found it, getWindow().getDecorView(), i'll test if i can animate it with your input, thanks for the help Apr 25 14:20:08 but not today, it's time for the weekend Apr 25 14:25:10 Anyone published an app recently? Its been 48hrs for me and its still not available? Apr 25 14:44:14 anyone knows how to find the message ID from a received message in broadcast event? Apr 25 14:45:26 apple741 i saw one other person have that problem in the past few days Apr 25 14:46:01 Anyone https://stackoverflow.com/questions/23295549/get-messageid-from-pdus-object ? Apr 25 14:46:54 Thanks g00s , I suspect it is an issue on Googles system but I'm also a little concerned it may have been something I did as its usually only takes a few hours apparently. Apr 25 14:48:42 apple741: I haven't published anything new, lately. Sometimes it takes an annoying amount of time. Apr 25 14:49:29 this poor other guy spent money on some marketing campaign, and the link didn't work at the prescribed time Apr 25 14:49:57 g00s: yeah that's a bad plan Apr 25 14:50:05 heh, indeed Apr 25 14:50:13 but that almost happened to IFTTT also Apr 25 14:50:42 their url was dead when the announcement was made also Apr 25 14:50:58 somehow, they must have known somebody at Play because it went live a few hours later Apr 25 14:51:06 Thats a shame I haven't done any marketing for this so its not that bad for me but at the same time I didn't think it was going to take so 'long'. Apr 25 14:51:31 48 hours is … hm Apr 25 14:51:48 i remember it used to be 1 hr, then maybe 3 hours after the malware checks Apr 25 14:52:02 but 48 hours now ? thats getting to be crap Apr 25 14:52:34 I want to run Retrofit request asynchronously. I still must use Callback as last param in the request? Apr 25 14:53:06 Yeah its a pain but I don't think there much I can do at this point, if I gets really long I could try contacting Google Apr 25 14:53:17 kamol jake is probably still sleeping; try in a few hours Apr 25 14:53:38 Never sleeping Apr 25 14:53:49 hahaha Apr 25 14:54:07 look in a mirror and say his name three times and jake will appear to make your android dev simpler Apr 25 14:54:15 also to kill your family. but your app will run AWESOME. Apr 25 14:54:52 JakeWharton: is it true? It is written like that in the retrofit doc Apr 25 14:55:02 kamol: yes Apr 25 14:57:53 Any way to report a review from the French Google Play Store? I can't see it on my device (only the console) as I am based int he UK? Apr 25 15:01:06 hi Apr 25 15:01:36 I am trying to merge 2 3gps files, any suggestions Apr 25 15:02:46 is there any android api available for it, or I have to extract the amr from 3gp and add them and then write them again with new 3gp header Apr 25 15:04:39 How would I change my onClick Switch statement to repeate while you are holding the button down Apr 25 15:05:13 JakeWharton: thank you :) what time in your place? Apr 25 15:05:36 code time :D Apr 25 15:05:37 Can I pass session cookies from a webpage display in a webview after I hit POST and move to another page? Apr 25 15:05:42 *displayed Apr 25 15:06:10 8am Apr 25 15:07:53 8am ... US Apr 25 15:08:09 8am'R'Us Apr 25 15:08:15 if you use gradle, how long does it take your project to build when you are deploying after a change? Apr 25 15:09:38 Is there any way to change the min API version once you start a project? Apr 25 15:09:45 I am in singapore 23:00 Apr 25 15:09:51 it is 25th Apr Apr 25 15:10:14 ahhhh.. i mis orchard road shopping centers :) Apr 25 15:10:22 DexS24 of course, either your manifest file or build.gradle file, depending on how you are building Apr 25 15:10:27 bluOxigen: is it?!! Apr 25 15:10:29 hahaha Apr 25 15:10:42 the world is so small Apr 25 15:10:58 mattbland - I've changed the manifest to "android:minSdkVersion="15"" and it didnt fix it Apr 25 15:10:59 haha ya, specially the mc'donalds that has the open roof sitting area Apr 25 15:11:13 mattblang ^ Apr 25 15:11:36 DexS24 what IDE are you using Apr 25 15:11:41 ADK Apr 25 15:11:59 bluOxigen: hahaha, let’s meet up some day Apr 25 15:12:01 anyone , any light on my question plz ? Apr 25 15:12:09 DexS24 what is that Apr 25 15:12:17 kamol, :) Apr 25 15:12:30 mattblang - just the normal Android Dev Kit that is run through eclipse Apr 25 15:12:54 DexS24 oh, you meant ADT (Android development Tool) Apr 25 15:13:03 :D mybad Apr 25 15:13:34 DexS24 after changing your manifest, try cleaning the project Apr 25 15:14:03 mattblang - wohooo! <3 Thank you :D Apr 25 15:14:20 any one worked with 3gp files ? Apr 25 15:14:29 mattblang- - nvm :( still f*cked lol Apr 25 15:15:02 DexS24 is it complaining about a class or function you are using? Apr 25 15:15:25 Im trying to use "while(button1.isActivated())" in a switch statement in my onClick method Apr 25 15:15:42 Hey guys Apr 25 15:15:44 It says it needs a min of API 11 and is currently 8 Apr 25 15:16:03 just got a new DROID MAXX Dev edition Apr 25 15:16:19 I'm trying to change the brightness of the screen. I wrote a simple proof of concept method to do this but when I run it the screen brightness does not change. What am I doing wrong? http://pastebin.com/CtgZTdwL Apr 25 15:18:10 deadmund: It may have to do with the fact that you're comparing floats? Apr 25 15:18:17 but I could be wrong Apr 25 15:18:39 mattbland - [10:15] - 2 msgs Apr 25 15:18:46 mattblang^ Apr 25 15:18:54 Cant spell today Apr 25 15:19:13 does anyone here know if root is still worth it with 4.4? Apr 25 15:19:28 agargiulo: I"ll try with a boolean flag. Is there some permission I need? Apr 25 15:19:45 deadmund: I don't know. I haven't tried to play with that before Apr 25 15:19:59 :( Apr 25 15:20:07 agargiulo: mmm, thanks Apr 25 15:20:09 the floats shouldn't actually be the issue though, but I know that comparing floats usually isn't great Apr 25 15:20:33 cause what you say is 0.1 may be 0.100000000001 Apr 25 15:20:39 or something equally stupid Apr 25 15:20:40 DexS24 link your manifest Apr 25 15:21:16 mattblang - http://pastebin.com/8VVjsR5n Apr 25 15:21:47 bankai_au http://blog.jetbrains.com/objc/2014/04/appcode-3-0-eap-opens-with-an-integrated-ui-designer-and-improved-project-settings/ Apr 25 15:22:41 DexS24 and what does the error you are getting say Apr 25 15:23:27 mattblang - "Call requires API level 11 (current min is 8): android.widget.Button#isActivated" Apr 25 15:23:49 It makes zero sense... Apr 25 15:24:55 DexS24 right click the project, go to properties maybe, and see if there is a place to specify it there Apr 25 15:27:30 mattblang - I think I figured it out, Thanks! Apr 25 15:27:43 DexS24 sweet, what fixed it Apr 25 15:28:08 Didnt have that API downloaded, so I couldnt set the min to that Apr 25 15:28:27 DexS24 ahhh, cool Apr 25 15:38:30 Has anyone else had trouble where you register for Eventbus events in a fragment and the onEvent handler never gets called? I can see the NoSubscriberEvent triggering. Apr 25 15:42:08 colintheshots: you must be unregistering somewhere Apr 25 15:43:06 jaynewstrom: yes, I tried both register onAttach, unregister onDetach and register onCreate, unregister onDestroy Apr 25 15:44:21 maybe I should try onResume/onPause? Apr 25 15:45:36 log when you unregister. make sure you aren't unregistering before you expect the event to be called Apr 25 15:45:40 Hi everyone, is it possible to programmatically change the selected virtual keyboard and to request the currently selected keyboard? Apr 25 15:47:48 Gamoder_: Wait, what are you doing? Apr 25 15:48:18 No, that's not related :-) Apr 25 15:48:34 Mavrik: earlier you said, chmod() on external Storage does not work, because it's Fat32. But on my PC chmod() on a Fat32 file system does not return an error. It just does not do anything. Apr 25 15:48:58 Mavrik: but on Android it returns an error and says "Operation not permitted" Apr 25 15:49:24 Mavrik: do you know why? Apr 25 15:53:01 anyone got some good tutorials on animating a view class, not surface view Apr 25 15:56:21 How do I get eclipse to rebuild my R file? It's not recognizing the raw subdirectory I just created in my res folder. I tried cleaning the project and that didn't work. Apr 25 16:02:13 jasonj8, what about re importing it? I use android studio and that seems to sort it out for me Apr 25 16:02:31 hello Apr 25 16:02:55 jaynewstrom: Eep, I was instrumenting the wrong fragment with Eventbus. Forgot I was using a different fragment in that case. Apr 25 16:03:21 colintheshots: :p Apr 25 16:03:43 has anyone ver tried implementing LayoutInflater.Factory? Apr 25 16:05:40 gotama: ah nevermind I found the problem. I added the file to the raw directory using eclipse, but it wasn't actually there, it was just a link. Apr 25 16:06:32 has anyone had any luck implementing a Calendar or CalendarEvent into their apps? Apr 25 16:06:42 i woudl love to give the user an opportunity to schedule events from my app Apr 25 16:06:49 but i'm struggling to find any good documentation Apr 25 16:08:00 is there a way to talk with someone who is developing android sdk? Apr 25 16:13:27 I've tried both of these methods of changing the screen brightness and neither one seems to do anything. The print-outs are correct, but the screen does not appear to change brightness. Apr 25 16:16:31 is there a prebuilt clang for arm? Apr 25 16:22:07 anyone have any idea about the calendar? Apr 25 16:22:22 Any thoughts on how best to handle splash screens? Apr 25 16:22:30 by not using them Apr 25 16:22:44 RedDunce: I looked into it for an app but never used it. I had this page bookmarked: http://developer.android.com/guide/topics/providers/calendar-provider.html Apr 25 16:22:59 much appreciated jasonj8 , I'll take a look Apr 25 16:23:03 My main activity uses an AsyncTaskLoader Apr 25 16:23:30 If I implemented a separate activity would I then need to have it implemented on that instead? Apr 25 16:23:34 Feels a bit counter intuitive Apr 25 16:23:46 why not just load the main activity? Apr 25 16:37:23 Via DDMS, is there a way to see items in /data/data/com.blah.app_name? Normally, the only way I've been able to see the data is via "adb shell" and then "run-as com.blah.app_name" Apr 25 16:38:42 Gorroth: I believe you need to be root to see it when the app is not running, so "su" in your adb shell and then try Apr 25 16:39:08 jasonj8: okay, thanks. "su" in the shell, adn then DDMS should be able to see it? Apr 25 16:39:17 (If you're testing on your own device, I suppose it will need to be rooted) Apr 25 16:39:36 Ah, yes, "su" doesn't exist in adb shell. Apr 25 16:39:38 Oh. I'm not sure, I usually use the shell. Apr 25 16:39:41 Yeah, maybe I'll have to root the device. Apr 25 16:39:54 Yeah, but pulling/pushing files out of the app cache is not easy atm. Apr 25 16:40:43 I use the Genymotion emulator for testing. I highly recommend it. Apr 25 16:42:16 I'll check it out. Apr 25 16:42:23 However, we're pretty far along and are on the device now. Apr 25 16:43:16 Well you just start the emulator and run the app from eclipse like normal. It's not a massive undertaking. Apr 25 16:44:42 I am trying to change the brightness of my phone programmaticaly. My app will only effect the brightness if I first open the brightness settings dialog in android. What is going on here? Can someone shed some light on this bug?? Apr 25 16:48:56 whats best practice for wrapping an http api for an android app? Should I just make a class or is there a better way? Apr 25 16:51:39 deadmund: how are you changing the brightness? Apr 25 16:53:36 Didn't say it's massive, but I'd rather be on-device atm. Apr 25 16:55:43 don't ask about "best practice" RMacy Apr 25 16:55:49 be more specific to get specific answers Apr 25 16:56:13 OK, I have an API, i want to wrap it, what's the typical android developer approach to this? Apr 25 16:56:45 should it just be a class that I can interact with, a service, or a contentprovider? Apr 25 16:56:52 or something else entirely Apr 25 16:57:02 service and content provider have nothing to do with making a facing API Apr 25 16:57:22 you are probably better off just making it a class that you can call its static methods from elsewhere Apr 25 16:57:30 jasonj8: Like this: http://pastebin.com/3d4JNvGb Apr 25 16:57:33 more of a Java "best practices" question I would say Apr 25 16:57:43 Great, thanks for the response. Apr 25 16:58:03 jasonj8: I've tried a couple different methods though. IT seems that the Settings.System method works if the brightness settings dialog is opened. The layoutParams method does not ever seem to work. Apr 25 16:58:10 jasonj8: Please help! :) Apr 25 17:02:24 omg, the stack traces from android in a SIGABRT are terrible Apr 25 17:04:12 ugh, nothing works! Apr 25 17:04:49 deadmund, did you change anything in the manifest? I would assume you need some permissions to change screen brightness like that. Apr 25 17:05:03 Apr 25 17:05:19 jasonj8: The app doesn't crash (which would normally happen with an exception from not having a permission) Apr 25 17:13:07 deadmund, I actually have no idea how to do it, sorry :P Apr 25 17:13:14 jasonj8: it's ok :( Apr 25 17:15:22 deadmund: Oh I did find something where someone has to start a dummy activity to get the screen to refresh and change the brightness. Apr 25 17:16:05 jasonj8: Yeah, I saw similar things all over. That's because those implementations are trying to change the brightness from within a service. I am trying to change the brightness in an activity. So I shouldn't need another activity. Apr 25 17:16:23 deadmund, (the last line of the first answer) http://stackoverflow.com/questions/7646865/changing-screen-brightness-programmatically-as-with-the-power-widget Apr 25 17:16:55 jasonj8: reading... Apr 25 17:17:37 can anybody explain to me the logic behind OpenGLES on Android simply not freeing any of its memory when you call glDeleteTextures, until eventually all system memory is consumed and the device just dies? As far as optimizations go, I don't think this is a very good one. Apr 25 17:18:32 deadmund, you basically write an activity that just calls finish() in onCreate and run it to get the screen to refresh. It's hacky but perhaps it works :P Apr 25 17:18:43 Once you've got a SIGABRT into the __verbose_terminate_handler from what looks like a dynamic_cast problem (with references) somewhere in the code, is there any way to get a useful stack trace? It just tells me something about a __do_dyncast problem in the stack trace but doesn't actually tell me the line where the problem happened Apr 25 17:19:59 deadmund if you are just doing it for that activity - in other words, once you close the activity brightness can return to whatever - there are easier ways than writing settings Apr 25 17:20:29 Chainfire: Such as? Have you looked at my example? I may have already implemented what you're talking about. Apr 25 17:20:31 Maybe addr2line can help. Guess I'm going to find out. Apr 25 17:25:29 If a JPEG image is compressed to 100% quality, is there a standard number of bytes per pixel? Apr 25 17:25:56 jasonj8: I tried the activity hack, it doesn't seem to work :( Apr 25 17:26:15 Hey all, I am developing kitkat for my Sam Galaxy note 2 using Dirty Unicorns as the base. I am trying to swap bluedroid for Bluez 5.18. I believe I have successfully backported the kernel to 3.14 but I can not seem to get bluetooth up. Does anyone have anyidea what it takes to start a bcm4334 chip up? Ive tried using bcrm_patchram_plus but that does not do anything. I am unsure what to use to debug, I Apr 25 17:26:18 looked at dmesg and logcat but did not find anything that seemed to point me in the right direction. Apr 25 17:30:01 askhader: I don't think so. It varies a lot depending on how compressable the image is. Apr 25 17:30:55 jasonj8: Makes sense. Thanks Apr 25 17:43:31 Has anyone here ever had setJpegQuality(int) be ignored by the camera API? Apr 25 17:53:48 nvm realized im in the wrong channel 0.0 Apr 25 18:50:50 anyone know if LocalBroadcastManager pays attention to IntentFilter priorities? looking through the code it doesn't appear to Apr 25 18:58:30 Hey Ive got code im looking at which uses the onKeyDown event and listens for a dpad input... but im new to android and i cant seem to figure out how to use the dpad... Im working from a note2 samsung Apr 25 18:58:33 any help please? Apr 25 19:00:26 any opinions about genymotion vs x86 image + HAXM? Apr 25 19:03:34 mattblang, genymotion far superior in my opinion Apr 25 19:10:14 anyone know what lib or maybe some source i can look at, that would replicate a screen touch. preety much the vnc code for clicking the screen. I am just trying to generate that via usb Apr 25 19:12:15 oh i think i may have found something, but if there is some lib or android call that can simulate clicks would be sweet Apr 25 19:46:52 * Gorroth figured out how to use a custom ndk-gdb command and get eclipse to recognize all the symbols... FINALLY!!! Apr 25 19:47:20 I have to figure out specifically what ndk-gdb is doing, but the normal "runas native app" from eclipse would not get full stack traces all the time. Apr 25 20:20:29 OK i have figured it out how to trim the "amr" file and extract ot from 3gp file Apr 25 20:22:11 what is the lowest time you have gotten your Gradle build down to, on a non trivial project? Apr 25 20:34:54 Does anyone know if there's a way to get a Context from a Fragment? My issue is that on rotation, I get a NullPointerException because I try calling adapter.clear() so I figure the best way to do it is if the adapter is null, reinitialize it Apr 25 20:34:59 but I can't initialize that arrayadapter without a context Apr 25 20:35:03 so I'm kind of confused how to go about doing so Apr 25 20:35:06 getActivity() Apr 25 20:35:29 (Context is a superclass of Activity) Apr 25 20:35:56 I think I tried that but lemme try again real quick Apr 25 20:36:37 Yup, nullpointerexception when I try that after a rotation Apr 25 20:37:01 your problem is probably somewhere else Apr 25 20:37:10 can you paste your code somewhere? Apr 25 20:37:13 sure Apr 25 20:38:36 http://pastebin.com/549Vz9uG Apr 25 20:38:47 So the issue is as follows: if I'm in MainActivity Apr 25 20:38:48 and I rotate Apr 25 20:39:00 ** Apr 25 20:39:06 if I'm in my Fragment1 and I rotate Apr 25 20:39:11 mattblang: about tr Apr 25 20:39:16 and try to swipe to HistoryFragment Apr 25 20:39:22 It gives me an NPE Apr 25 20:39:25 if I rotate Apr 25 20:39:31 ansgarm say again? Apr 25 20:39:40 Probably because the Fragment isn't attached to an Activity anymore, maybe? Apr 25 20:39:41 *about three minutes but it's quite big and uses android annotations Apr 25 20:40:00 ansgarm three minutes is the lowest? Apr 25 20:40:05 That's not very nice Apr 25 20:40:12 On a clean rebuild Apr 25 20:40:55 About half a minute if deploying an apk from AS Apr 25 20:40:55 ansgarm what about on a non clean rebuild. like maybe you just change one thing in a fragment Apr 25 20:41:14 How about you? Apr 25 20:41:37 RedDunce, the line that gives you the NullPointerException is which? Apr 25 20:42:09 22 Apr 25 20:42:19 because the fragment is no longer attached to the activity methinks Apr 25 20:43:23 mattblang: The project uses several libraries from maven and about 7 libs which are under libraries in the project dir and gradle library projects themselves Apr 25 20:43:41 But I think that's still quite slow Apr 25 20:44:19 I need a way to reattach the fragment to the activity, I think Apr 25 20:44:20 Most of the time gets consumed by predexing irc Apr 25 20:44:33 ansgarm the lowest im getting is about 20 seconds if I do a non-clean build with a project that uses about 10 dependencies, maven and jar. Apr 25 20:45:01 ansgarm it sucks. my ios coworker can make a change and see it in his simulator instantly. very jealous Apr 25 20:45:37 mattblang Yeah, same envy here :) Do you use parallel builds? Apr 25 20:46:00 ansgarm im experimenting with that, it didn't seem to make a change. i put it in my project's gradle.properties Apr 25 20:46:41 mattblang I had some issues with that as it let the build fail sometimes Apr 25 20:46:44 RedDunce, throw in a print statement/debug and make sure getActivity() is returning null? I sort of doubt that's it, but I don't know. Apr 25 20:48:04 it might be because I'm using a detached fragment instead of a tabhost Apr 25 20:48:08 i should look into that documentation Apr 25 20:48:10 but gimme a sec jasonj8 Apr 25 20:48:56 ansgarm have you messed with org.gradle.configureondemand any? Apr 25 20:49:37 mattblang no, i haven't Apr 25 20:49:52 RedDunce, you should also make sure it's getActivity() that's returning null and not something else, but I'm not sure how much help I can be Apr 25 20:49:52 hi Apr 25 20:50:06 can someone help me with adb stuff please Apr 25 20:50:29 i have the latest sdk and google usb drivers installed Apr 25 20:50:46 but when i try adb devices it keeps saying device offline Apr 25 20:50:54 RedDunce, like if the MainActivity.hAdapter.getHisForDisplay() is returning a null that would be a problem Apr 25 20:50:54 any ideas what i can do ? Apr 25 20:51:26 it's not, I promise. Apr 25 20:51:31 it's definitely getActivity() Apr 25 20:51:31 droidN00B what OS are you using? Apr 25 20:51:41 you promise, or you've checked? :P Apr 25 20:51:54 i just tried doing Context c = getActivity() and then calling next thing with c instead of getActivity() Apr 25 20:51:55 same issue Apr 25 20:51:56 :( Apr 25 20:52:06 looked at the breakpoint, and c was indeed null Apr 25 20:52:12 ah ok Apr 25 20:52:22 yeah I don't really know anything about detaching fragments Apr 25 20:52:56 Maybe it's because I'm doing frags[Currfrag] Apr 25 20:53:02 instead of a tabhost Apr 25 20:53:05 but i don't know how to use a tabhost :/ Apr 25 20:54:13 Hi :) Apr 25 20:54:29 Any idea how to speed up of making picture by my camera ?:) Apr 25 20:54:59 ansgarm when it rebuilds the project does it have to rebuild all of the libraries too? Apr 25 20:55:16 hetii: Do you have any code to show us so we can see how you're presently taking pictures? Apr 25 20:55:27 sure Apr 25 20:55:30 just a second Apr 25 20:57:16 So. My app does not have any wake locks or anything, but it uses GPS. I've noticed that it seems to consume loads of battery when screen sleep. I was told that a service would automatically sleep when screen sleep, but how do I make sure that it also disables the GPS listener when sleeping, so that the GPS doesn't keep the device alive and pulling battery? Apr 25 20:58:22 mattblang irc most of the time gets spend by merging all the classes together. I'm not at the computer right now, but I think he wouldn't rebuild all the libraries Apr 25 20:58:32 *iirc Apr 25 20:58:50 ansgarm i noticed this on the gradle command line docs, --no-rebuild http://www.gradle.org/docs/current/userguide/gradle_command_line.html Apr 25 20:59:04 Is there any way to access the mmsms.db file via adb shell on newer versions of Android without getting root access? Apr 25 21:00:05 mattblang looks cool. definitely going to try that next week Apr 25 21:00:10 Thanks Apr 25 21:02:14 ansgarm so using that option via the command line, with daemon, configureondemand, and parallel set to true, it said I built in 6 seconds Apr 25 21:02:42 mattblang wow Apr 25 21:03:45 jasonj8: I'm thoroughly confused right now lol shit's all outta whack Apr 25 21:06:08 this lifecycle stuff is hella confusing lol Apr 25 21:06:17 but basically i've figured out my issue: Apr 25 21:06:31 after rotating, i don't call oncreateview() again so my adapter is never populated, and my activity is detached Apr 25 21:06:34 i don't know how to fix this Apr 25 21:08:30 askhader: Here is more or less what i have: http://pastebin.com/f8971Cv1 Apr 25 21:09:33 mattblang I just had to start up my work computer and try it: I'm at 9.8 seconds now. Looks great Apr 25 21:10:08 So, does anyone here know of a good testing plan template? Apr 25 21:11:55 First i`m not sure if there is some propagation delay when I use BroadcastReceiver, and second I store the file just in phone before i send them to my server so maybe a better way will be if i save them in RAM space instead internal storage, and just save them in storage when network fail. Apr 25 21:14:23 Also i don`t need to have a preview so maybe if its possible to drop it then whole proccessing will be faster? Apr 25 21:18:26 jasonj8: WOW. I can't believe that answer was buried so deep on stackoverflow Apr 25 21:18:52 All I had to do was override onAttach and call setRetainInstance(true) on my fragments, and then getActivity() stopped returning null! Apr 25 21:20:39 Lockscreen trivia. Apr 25 21:20:46 The pattern lock. Apr 25 21:20:51 Go middle-right-left Apr 25 21:20:57 this is an allowable pattern Apr 25 21:21:03 Did it used to be? Apr 25 21:22:40 I couldn't tell you, I hate the pattern lock Apr 25 21:22:53 Telling friends how to unlock your phone becomes such a pain in the ass lol Apr 25 21:26:25 Wait - friends? Apr 25 21:26:27 :) Apr 25 21:44:36 :P Apr 25 21:56:05 Anyone else have this issue and hwo to solve it? I just upgraded AS from 0.4.3 to 0.5.7 and now I am getting "No Android SDK found. Please configure an Android SDK." I select the location and click "apply" and try again to Gradle sync, but it fails again and still displays the same errors. When I go back to look in the SDK file location, it is blank again. Apr 25 21:57:56 Oh I see..the "External Libraries" is pointing to another location...but it seems I cannot update it Apr 25 22:02:32 found it...in local.properties Apr 25 22:15:55 KNERD: Glad we could help Apr 25 22:15:56 :) Apr 25 22:16:18 hah Apr 26 00:16:03 Quiet in here tonight... Apr 26 00:16:43 folks are busy at work is all Apr 26 00:23:37 any recommendations for irc clients for the mobile? Apr 26 00:24:02 been mostly on the laptop but for mobile would love a solid client Apr 26 00:27:36 irc cloud is popular Apr 26 00:27:41 I like qicr Apr 26 00:27:57 the few times I do it, I'm on irssi over SSH Apr 26 00:30:28 irssi ? never heard of that one any good review or docs i could read Apr 26 00:30:41 I just use ConnectBot to ssh into my linux box and screen -x into my irc session. Apr 26 00:31:17 it's a terminal irc client, quite well known on the net, so google will quickly show you good information Apr 26 00:31:23 but it will require a shell account somewhere Apr 26 00:31:32 (running it from the phone would be... annoying at least) Apr 26 00:31:54 otoh, keeping it running on some always-on VPS is quite a good way to keep a presence on IRC, IMO Apr 26 00:32:39 or just keep it running on your 24/7 always-connected always-on home computer. Apr 26 00:33:13 do people still turn off their computers? Apr 26 00:33:44 planning to run my own CentOS VPS after setting this clients up this weekend for that sort of thing Pragma Apr 26 00:33:53 today's power-saving energy efficient computers? do people today still have internet that goes out? Apr 26 00:33:56 I am not Pragma. Apr 26 00:35:10 sorry pragma- auto completed with tab Apr 26 00:35:21 thanks for info ntl Apr 26 00:38:59 p_l, rather use a bnc for presence Apr 26 00:39:37 pfn: individual preferences ;) Apr 26 00:39:58 I rather not have a social life and just sit my computer waiting for somebody, anybody to say something in here. Apr 26 00:40:01 ;-) Apr 26 00:40:55 Does anyone know what exactly triggers a SQLiteOpener onCreate method to be called? In my app it seems to wait until the database is queried to create it. Apr 26 00:41:14 SQliteOpenHelper that is Apr 26 00:47:31 p_l, well, with a bnc you can use a variety of clients Apr 26 00:47:44 eg ctcp version me Apr 26 00:47:59 pfn: and with single client I can copy my config around and keep it in sync Apr 26 00:49:14 I don't imagine I want the same config for irssi, hexchat and qicr Apr 26 00:49:33 note p_l and p_l|backup, which give me continuity in case one of the hosts went down Apr 26 00:50:26 Genuine question, as I am new to IRC, whats so important about being on here all the time? Apr 26 00:51:10 nothing Apr 26 00:52:04 Anthaas: I care only because: a) sometimes you get answer three days later after the channel was quiet all the time b) I can see what was talked about when I was not on Apr 26 00:56:31 the cardslib demos were very nicely done Apr 26 00:56:59 i think i have a better idea now what cards are supposed to do, but i'm still somewhat meh Apr 26 00:57:23 as usual, if this becomes part of the regular design language google should have put the widgets in the support lib Apr 26 00:58:50 yesterday i try some source code, but didn't work until now maybe anyone can solve my problem like that http://pastebin.com/An4yyzk0 Apr 26 00:59:00 that is error log http://pastebin.com/An4yyzk0 Apr 26 01:19:54 I'm targeting 4.1+, can I be sure that "sans-serif" is going to look the same on all devices? Apr 26 01:21:05 if dpi is set should Apr 26 01:21:40 alright thanks Apr 26 01:22:16 Does anyone know why a (command line, ndk-compiled) program would segfault whenever gdb is attached to it? Apr 26 01:36:37 hi, im trying to make a QR code that will trigger an app action (via a URI) if the app is installed or go to the play store page for the app if its not Apr 26 01:36:51 currently i have it set up to open up a URL on my server Apr 26 01:37:04 the server detects if app is installed or not and then redirects accordingly Apr 26 01:37:22 i was just wondering if there was a better way to do it that doesnt involve opening up the browser Apr 26 01:37:38 cause if the app is installed for someone it doesnt go straight to the app Apr 26 01:37:47 opens browser which then opens the app Apr 26 01:37:51 a little more clunky than i like Apr 26 01:38:08 but if i present a URI directly then people who dont have the app installed cant do anything with it Apr 26 01:38:24 so i guess my question is: is there a better way? Apr 26 01:50:34 Does logcat limit the number of lines of output it presents in a single log message? Apr 26 01:54:28 Gorroth yeah, i forgot though Apr 26 01:54:38 might be like 512 chars Apr 26 02:45:24 Hi all. Could some help me with Layouts? I'm having a problem getting it to display the way I'd like. I have two relativelayouts in a linearlayout. View 1 has a fixed height, and View2 is aligned to the bottom of the screen. The idea is that when relativeView 1 isn't being used by any fragments, relativeView 2 is full screen. Once View 1 is getting used, it has a fixed height, and view 2 Apr 26 02:45:25 should adjust it's height to accomodate accordingly. Apr 26 02:46:19 View2 shows fullscreen when the activity starts. But, whenever I add the fragment, view 2 seems to get pushed to the right, i can see a tiny little sliver of it, even though I set all views width to match the parents Apr 26 02:46:27 this is in portrait orientation btw Apr 26 02:47:04 all Layouts are being created Dynamicly: http://pastebin.com/XcRpusgW Apr 26 02:47:09 anyone any idea on what I'm doing wrong? Apr 26 02:47:17 how does onclick priority work? Apr 26 02:47:34 let's say I have a textview in a linearlayout Apr 26 02:47:38 and both have onclicklisteners Apr 26 02:47:48 does the child have higher priority? Apr 26 02:49:38 no idea frank, but easy enough to test :) Apr 26 02:50:09 what's simplest way to write a dumb android app that doesn't have to look slick, preferably in python? sl4a hasn't been updated in years so i'm assuming it's dead and i hope there is a replacement by now. Apr 26 02:52:17 ThomQ, yesss about to do so once I get this dumb thing working :P Apr 26 02:52:31 hmmm, my context is an Activity, why do I have to do NEW_TASK? Apr 26 02:53:10 oh dummy Apr 26 02:53:16 imma dummy Apr 26 02:53:26 I should really stop using getApplicationContext() Apr 26 02:54:57 Does Eclipse have a built in terminal like AS? Apr 26 02:55:54 ugh Apr 26 02:56:06 nope, the linearlayout onclick overrides everything Apr 26 02:56:11 solrize i saw a book or two showing Kivy on android i think Apr 26 02:56:43 looking thanks Apr 26 02:58:46 hmm looks promising **** ENDING LOGGING AT Sat Apr 26 02:59:58 2014