**** BEGIN LOGGING AT Thu Apr 28 02:59:58 2016 Apr 28 03:01:51 _xor, all standard http stacks use it Apr 28 03:02:14 only stacks that implement http from a socket level might not Apr 28 03:02:19 including ndk Apr 28 03:02:45 <_xor> Yup, makes sense. Apr 28 03:08:20 hi Apr 28 03:08:46 Is Open-jdk works in linux-ubuntu fine with android studio? Apr 28 04:11:07 How do I reset Android Device Monitor on Mac? Apr 28 04:17:04 I can’t even see a process list with this thing. Apr 28 04:55:24 what version of java is the latest android studio letting you write android code in? Apr 28 05:02:19 dpyro check out the video Apr 28 05:02:36 (its complicated) Apr 28 05:15:51 um...how do I communicate between activites in the same app? Apr 28 05:16:18 i need my Application to notify an activity that data has been updated Apr 28 05:16:21 *subclass Apr 28 05:18:23 dpyro, http://developer.android.com/training/basics/intents/index.html Apr 28 05:19:04 am i really supposed to use intents for in-process communications? i would rather avoid serializing data... Apr 28 05:19:57 not necessarily Apr 28 05:20:23 but you did not provide much info about your problem, also you should assume one activity runs at a time (except in recent cases) Apr 28 05:20:56 maybe you just need a service or architecture your app model differently Apr 28 05:21:36 or you could replace your activities by fragments, etc.. Apr 28 05:21:46 ok, to be more specific, it's between my application subclass and the current activity Apr 28 05:22:20 morning Apr 28 05:22:26 i am using retrofit in the application subclass to load data in the background Apr 28 05:23:23 guys, when i try to share a project on github through android studio only .java files are uploaded not the full project ? why is that and how could i upload full project ? Apr 28 05:40:31 In my main activity i am listening for location updates and showing a marker in the map. In another part of the code in a class where I do calculations i need location updates again to calculate the distance. Should i request for location updates again and implement LocationListener in this class? What would be the best way? Apr 28 05:50:46 ragsagar: in locationlistener you can set time,distance that how you setup automactic update location Apr 28 05:53:43 PC2K: It is not about that. I get location updates in my activity. I have a seperate class where I need the device location again. So should i again implement LocationListener and request for updates or Should i let the activity know about the location update in some way? Apr 28 05:54:47 Sorry "Should i let the other class know about the location update from activity in some way" ? Apr 28 05:56:37 if I,I will let the other class know,not update by itself Apr 28 05:57:27 what're you guys talking about Apr 28 05:57:46 hi Odaym Apr 28 05:58:03 talking about android studio shit software Apr 28 05:58:11 lol Apr 28 05:58:15 PC2K: thanks. Apr 28 05:58:16 quit the app while it does build Apr 28 05:58:21 it won't quit Apr 28 05:58:25 build doesn't stop Apr 28 05:58:43 yep Apr 28 05:58:53 shit software? Apr 28 05:59:01 that time you will know important of task manager Apr 28 05:59:04 you are a lost cause my friend Apr 28 05:59:30 yw Apr 28 06:06:21 I saw yesterday what you guys meant about larger heap for grade Apr 28 06:08:51 I'm gonna do it, I got 16 Gb for this desktop at work Apr 28 06:12:36 with AS 2.1 Apr 28 06:12:56 When I am scanning for bluetooth le device in Nexus 9 tab, it is failing with the following error SCAN_FAILED_OUT_OF_HARDWARE_RESOURCES ( error code 5). What could be the reason? Apr 28 06:13:57 Scanning failes immediately. Apr 28 06:14:03 fails* Apr 28 06:20:45 scanning from a program to find your nexus tab 9? Apr 28 06:23:39 After looking into the Scanner code, i think my ScannerSetting CALLBACK_TYPE_FIRST_MATCH is the reason. Apr 28 06:27:47 just scan for available devices there's a callback for it Apr 28 06:28:01 I have some code here that works perfectly for it if you get stuck Apr 28 06:28:28 plus the scanning process has improved a lot and there's now a very good library that abstracts all the shit for you Apr 28 06:30:06 check it out https://corgi-test.polidea.com/blog/RxAndroidBLE_the_most_Simple_way_to_code_Bluetooth_Low_Energy_devices/ Apr 28 06:34:23 eh Apr 28 06:34:26 interesting Apr 28 08:20:10 Is Android Studio on topic here? In that case: Can I make all Tool windows gather in one window, but one external from my editor window? As it is now, they are all one tool per window, cluttering up my desktop. Apr 28 08:20:55 Hello fellow devs, short question if I have a device with ~264 ppi, which resource package will it check first for the drawables: is it hdpi (240dpi) or xhdpi (320dpi) ? Apr 28 08:23:36 Yotta92: it depends on device how it 'seed' itself Apr 28 08:23:54 i.e. samsung s2 is 213dpi but goes to hdpi Apr 28 08:24:07 'sees'* Apr 28 08:25:02 hmmm, I have Samsung Galaxy Tab S2 9.7 Apr 28 08:27:28 dunno Apr 28 08:27:48 http://developer.android.com/guide/practices/screens_support.html 2048x1536 actually goes under xhdpi Apr 28 08:27:49 according to this http://forum.xda-developers.com/tab-s2/help/change-dpi-t3208698 its xhdpi Apr 28 08:28:47 Ashiren, thank you. Apr 28 08:30:06 hey guys Apr 28 08:30:15 can I get some tips on how to implement an onDismissListener for this? https://github.com/roomorama/AndroidCountryPicker Apr 28 08:31:36 I see that it implements DialogInterface.OnDismissListener Apr 28 08:33:13 ah nvm i got it Apr 28 08:43:59 ez Apr 28 09:18:44 Great. Is there any way to exempt an app from doze for a user? Apr 28 09:18:49 Maybe an adb command? Apr 28 09:18:53 Or only via root? Apr 28 09:19:06 It’s getting annoying that WhatsApp Web closes every time the screen goes off. Apr 28 09:25:01 Having to shake my phone constantly to be able to use WhatsApp Web kinda defeats the purpose Apr 28 09:25:58 whats good about whatsapp? Apr 28 09:26:30 freekevin: Network Effect: Everyone has it. Apr 28 09:30:50 what's good about your question freekevin Apr 28 09:30:56 lol Apr 28 09:31:54 i have 2 flavors, and for each flavor i want a seperate class to handle certain things. Is this a dependency injection candidate? (i'm a neophyte regarding dependency injection) Apr 28 09:50:22 xorgate, that'd be one way to do it Apr 28 09:51:13 by that I mean, you could use DI to do that, but it's not its only use Apr 28 09:51:41 ugh, i hate adapters Apr 28 09:51:55 ReScO, why? Apr 28 09:52:04 Because i don't get how they work :P Apr 28 09:52:45 Say, for instance, i've got a JSON File with a URL, Title and a little description, how can i count all items in that json file, and add them to say, a CardView? Apr 28 09:52:54 or better, spawn multiple cards Apr 28 09:53:05 alex_PP: ok, my focus is not necessarily DI though. What would be another way to achieve what i want? Maybe just place different classes with the same signature in different flavor folders? that seems a bit flakey Apr 28 09:53:17 xorgate: that'd also work Apr 28 09:53:23 Oh, and each card should have it's image reloaded every 2 seconds... Apr 28 09:53:25 can be a pain in the arse though] Apr 28 09:53:47 ReScO: you could use a lib like gson to convert that json string to a list of objects Apr 28 09:54:05 yeah, don't work with raw JSON, we're not animals Apr 28 09:54:35 look at using picasso or simmilar for image chaching too Apr 28 09:54:48 ++ alex Apr 28 09:55:18 alex_PlusPlus Apr 28 09:55:28 what i'm trying to do is avoid having 1 flavor require a library for compilation that it does not use. so i thought i should place all that functionality inside a class that it would never know about Apr 28 09:55:36 I have only 1 friend in whats up Apr 28 09:55:43 the guy who recommended to use it Apr 28 09:55:53 he said it is great app which I must use Apr 28 09:56:16 so we downloaded, installed it and he is now the only contact in there Apr 28 09:56:18 )) Apr 28 09:56:28 I have the same deal squ Apr 28 09:56:32 yea Apr 28 09:57:09 freekevin: you are not alone questioning about whats good about whastup Apr 28 09:57:12 http://ijmondbereikbaar.nl/camerabeelden/ i'm trying to stuff all those cam feeds into a single app Apr 28 09:57:40 xorgate, that's what I'd do Apr 28 10:00:30 ReScO, I'd start by learning how to write a nice adapter, worry about the refreshes later Apr 28 10:00:52 I always extend BaseAdapter to start Apr 28 10:01:33 alex_PP, https://gitlab.brainblendr.com/iSDP/IJmondBereikbaar/blob/development/app/src/main/java/com/brainblendr/foss/ijmondbereikbaarcams/CameraImageAdapter.java Apr 28 10:01:41 in getView, choose an entry from your JSON and add the details to a view Apr 28 10:02:20 what environment do you use? Apr 28 10:02:52 Atomic_zpw0p, Android Studio Apr 28 10:03:19 ReScO: not using RecyclerView ? Apr 28 10:03:32 alex_PP, that's only for the GridView images, i'm looking to extend to Cards, but i'm not sure if that's up to spec with a list of camera images Apr 28 10:03:32 does it have an emulator? Apr 28 10:03:41 Atomic_zpw0p, i use my phone as emu Apr 28 10:04:27 ReScO: looking at your code, it appears you lack some basic knowledge about adapters etc. did you look at https://www.youtube.com/watch?v=wDBM6wVEO70 Apr 28 10:05:02 verplichte kost, ook wel :) Apr 28 10:06:40 resco which phone? Apr 28 10:06:57 xorgate, ugh, zo weinig info in zo veel video Apr 28 10:07:07 omelette du fromage? Apr 28 10:07:11 i like text more for this reason :( Apr 28 10:07:30 Atomic_zpw0p, SGS6 Apr 28 10:08:09 it's a good video imho Apr 28 10:08:50 ReScO, that video's the best description of adapters really Apr 28 10:10:25 and how to do them fast Apr 28 10:10:53 I'd wouldn't start the async task from your adapter either Apr 28 10:11:28 I'd most likely write a custom view that you could set the url on and have that use picasso to update itself Apr 28 10:12:22 or try and be clever with scheduling in the activity/fragment and pass the results down to the adapter Apr 28 10:14:45 alex_PP, trying to watch one hour of talk about one feature is way too much for my brain o.o" Apr 28 10:14:54 too much info to process, and it takes waaaaaaay too long Apr 28 10:15:20 what're you trying to drop Apr 28 10:15:27 doop* Apr 28 10:16:27 Odaym, trying to understand Adapters, and fetching info from the internet for that Adapter Apr 28 10:16:52 adapter is a design pattern Apr 28 10:17:02 try checking out how recyclerview adapter works, it's really easy Apr 28 10:17:15 Using Cards will probably be a better idea, looking at what i'm working with (cam stream, title, subtitle and some info) Apr 28 10:17:34 Also, RecyclerView is probably better than a GridView :P Apr 28 10:20:50 xorgate, so much info! :( Apr 28 10:22:38 web Atomic_zpw0p Apr 28 10:22:40 wb * Apr 28 10:23:11 thank's Apr 28 10:23:45 I want to rub gibberbot Apr 28 10:24:20 run Apr 28 10:24:43 this tapscreen isn't for me Apr 28 10:31:57 * man_in_shack waves Apr 28 10:32:36 i'm trying to get HelloJNI code sample working but it's complaining i don't have build-tools 23.0.2 Apr 28 10:32:41 how do i tell it to use 23.0.3? Apr 28 10:33:02 in gradle Apr 28 10:33:52 more specifically? Apr 28 10:34:10 http://dpaste.com/1ZF89MX << that's the included build.gradle Apr 28 10:34:34 app module, gradle properties, buildToolsVersion Apr 28 10:35:05 ah, i was only looking under "gradle scripts" Apr 28 10:35:06 thanks Apr 28 10:35:06 module's gradle, not project Apr 28 10:35:48 yeah Apr 28 10:42:11 does anyone know what the updated list is for all updates etc? Apr 28 10:43:00 i'm trying to set up a docker image, and the one i was using is outdated Apr 28 10:43:21 man_in_shack what are you working on? Apr 28 10:47:23 man_in_shack what are you working on? Apr 28 10:49:42 man_in_shack quit responding Apr 28 10:55:27 man_in_shock Apr 28 10:56:00 hmm Apr 28 10:56:05 right now, eating dinner :P Apr 28 10:56:53 want to do a couple of apps for audio/music work Apr 28 10:58:15 frequency analysis/manipulation, fun stuff like that Apr 28 11:00:16 I cant download anything. Apr 28 11:00:30 define "anything" Apr 28 11:00:31 Everything is maulled. Apr 28 11:00:45 define everything Apr 28 11:01:10 Abyvsmall source package by the time I copy it ti the desktop it is unrecognized. Apr 28 11:01:49 This phone service needs to be shut down. Apr 28 11:02:19 It is not unusual for these things to be a waste of money. Apr 28 11:03:25 Paying for an internet service and it doesnt work to any benifitial use Apr 28 11:05:12 you can still use irc Apr 28 11:06:45 Is it benificial Apr 28 11:07:03 The bots are cleverly coded tovask for info Apr 28 11:07:14 they keep askung then argue Apr 28 11:07:38 same thing over and over Apr 28 11:07:58 sometimes a useful link is dropped Apr 28 11:08:51 such as the link to the android source code Apr 28 11:09:17 however I cant download the files using this connection Apr 28 11:10:29 I am thinking about buying a 2 way radio set Apr 28 11:10:49 Any knowledge of 2way radios? Apr 28 11:11:32 That is my goal in coding the android to open direct live sockets to talk similar to a telephone Apr 28 11:12:02 albeit a codec data stream instead of voice Apr 28 11:16:27 do androids have realtime audio processing? Apr 28 11:17:01 is talking about android developmebt not welcomed? Apr 28 11:17:23 why do yoy not respond? Apr 28 11:21:37 Atomic_zpw0p2: bed time Apr 28 11:21:56 define "realtime audio processing" Apr 28 11:23:15 man_in_shack: autotune app :) Apr 28 11:23:32 Atomic_zpw0p2 wants to be a country singer Apr 28 11:24:03 does anyone know what the updated list is for all updates etc, or how to retrieve such a list? Apr 28 11:24:27 what? Apr 28 11:25:44 android update sdk --all --force --no-ui --filter platform-tools,tools,build-tools-21,build-tools-21.0.1,build-tools-21.0.2,build-tools-21.1,build-tools-21.1 Apr 28 11:25:44 .1,build-tools-21.1.2,build-tools-22,build-tools-22.0.1,build-tools-23.0.2,android-21,android-22,android-23,addon-google_apis_x86-google-21,extra-android-support,extra-android-m2repository,extra-google-m2 Apr 28 11:25:44 repository,extra-google-google_play_services,sys-img-armeabi-v7a-android-21 Apr 28 11:26:04 the trying to update that command to download everything Apr 28 11:31:57 I havebt tried all of that. Apr 28 11:31:59 say, the full SDK Apr 28 11:32:40 I attempted to use the commandline sdk and it wants to be plugged into an update repo. Apr 28 11:32:57 No internet lune to run updates from Apr 28 11:50:15 I installed nethunter on my device and the HID attacks does not work Apr 28 11:52:32 in the new AS i can start my app on a device, and then when i run it another time, it defaults to that device. How can i get it to select another device? Apr 28 11:55:10 xorgate: Run -> Edit configurations Apr 28 11:55:18 there shoulb be checkbox for using the same device Apr 28 11:56:50 yeah that was not checked.. i think the problem is it defaults to instant run, ignoring other devices. if i kill the process, i get the popup again. thanks Apr 28 12:24:07 xorgate: stop the app Apr 28 12:24:12 xorgate: and relaunch Apr 28 12:41:37 you just unplug replug your device Apr 28 12:41:54 or Run > Edit Configurations > Prompt for device Apr 28 12:41:58 EZ bro Apr 28 12:49:36 I'm trying to write a gradle function that parses an xmlfile with containing something like this = "rc123". I want to read out "rc123" by looking up the "rc" attribute. I've been trying with this, but no luck =( println new XmlSlurper().parse(file).find{ it.$name == "rc"} Apr 28 12:49:55 Anyone know how to do it right? Apr 28 12:52:25 hm, does anyone know what one has to do to get a more modern search interface Apr 28 12:52:32 ie, something like googles apps Apr 28 12:52:52 both the system search dialog and the search widget look a bit dated Apr 28 12:53:08 do I just have to throw in the searchview in a custom layout Apr 28 12:53:09 unplug device yeh.. no Apr 28 12:53:44 Maurits-: last time I checked, google themselves don't use their own widgets for that... Apr 28 12:53:54 that's what I thought Apr 28 12:57:47 can't find the source of that now, though Apr 28 12:58:17 but you don't like this one? Apr 28 12:58:17 http://www.materialdoc.com/search-filter/ Apr 28 12:58:57 there are some on android arsenal and github, but I don't know which one is best(tm) :/ Apr 28 13:00:16 Eplebit: I'll have a look at that one, thanks! Apr 28 13:00:47 can I inject a value into a file with gradle? like the current git revision? Apr 28 13:04:33 stephan48, yes, you can add fields to BuildConfig Apr 28 13:05:27 stephan48, http://stackoverflow.com/a/31048401 Apr 28 13:12:40 stephan48: def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim() and then later: buildConfigField "String", "GIT_SHA", "\"${gitSha}\"" Apr 28 13:14:09 Mavrik, xorgate: thank you! Apr 28 13:15:19 xorgate, I prefer GrGit tho :P Apr 28 13:17:26 hi Apr 28 13:17:38 We've got an application working offline and online, using data from an api of our own. When the appli goes online we (well, I) have to synchronize the data with the api. I've never done such a thing, I don't even know what to llok for on google. Our API is in PHP using PostgreSQL and our App use SQLite Apr 28 13:19:21 Hi, if I root my Nexus 5X will I still be able to receive updates ? Apr 28 13:21:26 OneSploit, no. Apr 28 13:22:10 DevAntoine, you probably want to create a service that will do the synchronization and run it using JobScheduler / GcmNetworkManager APIs Apr 28 13:23:59 Mavrik: the part causing me headaches is "how to synchronize data", not how to send it. At the end should the app send a bunch of queries to execute api side, should it send a diff db, etc.? Apr 28 13:24:37 DevAntoine, is data per-user or global? Apr 28 13:24:59 How much data are we talking about? How many entries in sqlite? Apr 28 13:25:01 Mavrik: global Apr 28 13:25:21 Mavrik: it depends how long the app will stay offline Apr 28 13:25:44 Mavrik: my coworkers doing the app want to use the flatbuffers to send me data, because it can be quite huge Apr 28 13:26:22 If it's global, send a timestamp of last update. Apr 28 13:26:34 E.g. "I have a version of database from , send me updates" Apr 28 13:26:53 and server should then return "Deleted: , NewAndUpdated: []" Apr 28 13:28:34 can someone tell me how to check tabs on a TabLayout with Espresso? onView(withText("tab")).check(matches(isDisplayed())); does not work Apr 28 13:30:53 Mavrik: that's our current approach Apr 28 13:31:07 but I'm wondering if there isn't a better way of doing this than send queries Apr 28 13:31:25 because if with have constraints in the db we need to execute the queries in a given order Apr 28 13:31:41 Hello devs Apr 28 13:31:42 and basically we're just synchronizing dbs, and there's already tools for doing it Apr 28 13:32:19 File structure....how to keep binds on reboot Apr 28 13:33:50 If I bind/link folder to an external source the apps crash and become unusable until I delete cache and data Apr 28 13:34:02 This happens when I reboot Apr 28 13:34:16 How can I make permanent changes ? Apr 28 13:39:26 where's the question Apr 28 13:41:01 How you doin Odaym Apr 28 13:41:12 well I just got paid Apr 28 13:41:15 IM DOIN WELL Apr 28 13:42:50 Paid from Snippet stuff? Apr 28 13:43:01 no, job Apr 28 13:43:04 jobe Apr 28 13:43:10 Oh nice, what do you do? Apr 28 13:43:26 well android of course Apr 28 13:43:38 joke's on them! :D Apr 28 13:43:45 Why is the joke on them Apr 28 13:43:59 it's just fun to make fun of yourself Apr 28 13:44:10 meaning they're the fools who think im good enough to get paid to do it Apr 28 13:49:04 You dont think you are? Apr 28 13:49:17 You seem pretty knowledgable Odaym ? Apr 28 13:49:59 pro googler Apr 28 13:50:53 you done with college yet? Apr 28 13:52:06 No Im a freshman haha Apr 28 13:52:10 Few more years Apr 28 13:52:14 ohh Apr 28 13:52:29 well bro, catch you later Apr 28 13:52:33 You leaving? Apr 28 13:52:33 gotta go Apr 28 13:52:36 yea Apr 28 13:52:38 Ok, good to see you Apr 28 13:52:41 same Apr 28 14:21:36 Is there a technical term for a memory leak that is caused by an object that takes really long holding a reference that you want recycled such as an Activity? Apr 28 14:24:43 I thought it was just a memory leak Apr 28 14:26:08 ^ Apr 28 14:28:11 has the google maps library been fixed so we can bring a marker to the front, yet? Apr 28 14:34:11 drose379: Yeah idk, assuming the long task finishes it will definitely get gc'ed eventually Apr 28 14:34:31 drose379: Thought I heard some unofficial term for it that I liked once, but forgot Apr 28 14:34:32 :( Apr 28 14:34:46 Whats the situation yiati Apr 28 14:35:31 My question for 12 minutes ago about term for a long task "memory leak" Apr 28 14:35:35 s/for/from/ Apr 28 14:36:00 not super important, just wondering if anyone had a term they use or have seen that is concise in describing it Apr 28 14:36:14 I've seen one before but forgot Apr 28 14:36:22 A long running task should really not be connected to a View (Actiivty) Apr 28 14:36:37 definitely Apr 28 14:36:48 Unless the Activity is able to disconnect itself from the task when destroyed Apr 28 14:36:48 A temporary memory leak. Apr 28 14:37:15 barq: Hmm that might be it Apr 28 14:38:09 Speaking of this: Apr 28 14:38:14 I have a View, Presenter and Model Apr 28 14:38:27 The presenter is connected to the Model, which may be involved in a background task Apr 28 14:38:46 And the View is connected to the Prestner (Presenter holds ref to View) Apr 28 14:38:58 If, when the View is destroyed, it disconnects from the Presenter, there will be no leak, right? Apr 28 14:39:30 How are you connecting the background task to the model? Apr 28 14:40:25 I have a runnable inner class Apr 28 14:40:30 Then in the model Apr 28 14:40:35 new Thread( runnable ) Apr 28 14:41:24 Check if LeakCanary. Apr 28 14:41:29 s/if/with Apr 28 14:41:41 Not sure how to use that Apr 28 14:41:46 Ill look into it Apr 28 14:41:55 But from what I described, do you think there could be any leaks? Apr 28 14:42:06 I mean, the view is disconnected whenever it is stopped, so I dont see where it would leak Apr 28 14:42:51 In your Application's onCreate add LeakCanary.install(this); and then add the dependency to your gradle. That's it. Apr 28 14:43:15 Oh, sweet Apr 28 14:43:20 And itll tell me when tehre are leaks? Apr 28 14:44:02 No way haha, thats awesome! Apr 28 14:44:05 How do they detect leaks? Apr 28 14:46:02 drose379: they monitor activity lifecycle and then register reference queues with GC Apr 28 14:46:12 Should be very useful Apr 28 14:46:21 So something just pops up when there is a leak Apr 28 14:46:23 ? Apr 28 14:46:26 Yes Apr 28 14:47:01 Does anyone have experience in using class compliant audio devices with android? I can playback or record using AudioRecorder or AudioTrack, but I am not able to e.g. configure the mixer (monitoring causes loopback) or using internal android audio when teh usb device is connected. Apr 28 14:47:01 Cool Apr 28 14:47:03 Thanks guys Apr 28 14:47:44 They dumbed down the readme, it no longer explains how LeakCanary works. Apr 28 14:48:15 Ah, they moved it to the wiki: https://github.com/square/leakcanary/wiki/FAQ#how-does-it-work Apr 28 14:50:17 Nice find Apr 28 14:51:01 bbl, thanks for help Apr 28 14:54:55 is there a gradle plugin or something to generate appropriate dpi versions of a huge source bitmap? Apr 28 14:59:55 xorgate: there's builtin converting of vectors to pngs Apr 28 15:00:03 ooh right yes Apr 28 15:00:06 thanks Apr 28 15:03:40 Is there any big benefit to setting a toolbar inside the activity instead of just managing it entirely in fragments/views Apr 28 15:04:11 depends on what your fragments have in them Apr 28 15:04:34 if your fragments all have a similar looking toolbar then maybe it should be in the activity Apr 28 15:04:49 if your fragments all have different toolbar needs, then maybe it should be in the fragments Apr 28 15:05:10 Right now my fragments are just recycler views, but now I want a collapsable toolbar so I don't think I can have them contained in a fragment Apr 28 15:05:29 I'd have to double check, but I'm pretty sure the recyclerview needs to be a direct child of the coordinator layout Apr 28 15:07:43 Is there a way to avoid batter saving mode to kill your foreground service? Apr 28 15:30:24 hi Apr 28 15:31:05 Hey Apr 28 15:31:25 I currently using android api 18 in my project, but after gradle building it keeps asking for stuff from values-21 Apr 28 15:31:35 if i'm using RecyclerView, do i still need to use fragments? Apr 28 15:31:36 anyone knows why ? Apr 28 15:31:46 ReScO, unrelated Apr 28 15:32:01 fBirD, appcompat-v7 21 Apr 28 15:32:05 and how do i work with a recyclerview and fragments? Apr 28 15:32:14 fBirD, major version must match compile sdk Apr 28 15:32:17 ReScO, unrelated Apr 28 15:32:18 pfn, yes it keeps asking for that Apr 28 15:32:29 fBirD, see above Apr 28 15:33:09 pfn, so i use the code to work with the RecyclerView in the Fragments Apr 28 15:33:11 ? Apr 28 15:33:20 my min version is 15 and my compile version is 18 Apr 28 15:33:29 they have nothing g to do with each other Apr 28 15:33:50 fBirD, 18! = 21 Apr 28 15:33:59 pfn, then where do i put the code below the xml on this page? http://developer.android.com/training/material/lists-cards.html Apr 28 15:34:40 ReScO, the same as any other view Apr 28 15:34:41 pfn, yes but i don't need to use version 21 only 18 Apr 28 15:34:53 fBirD, then don't use appcompat 21 Apr 28 15:35:05 use appcompat 18 Apr 28 15:35:20 and if there's no such thing, no appcompat for you Apr 28 15:35:28 ReScO: put the activity code in the onCreateView method of your fragment instead Apr 28 15:35:38 pfn, but i don't have any reference for 21 Apr 28 15:35:48 Well, "activity code", the code that's found in onCreate() for that activity Apr 28 15:35:51 fBirD, you do, appcompat-v7 Apr 28 15:36:27 how many times do I. Jace to Apr 28 15:36:31 konk3r, thought as much, wondered when working with multiple fragments, where would i put the recyclerview code if all fragments have recyclerview? Apr 28 15:36:35 have to keep saying the same thing Apr 28 15:37:00 s/recyclerview?/recyclerview/ Apr 28 15:37:21 having a phone call at the same time as IRC'ing is hell Apr 28 15:37:32 Think of it like this: Each fragment is a UI piece that lives on its own and doesn't care about anything else Apr 28 15:37:41 pfn, i already removed appcompat-v7 from gradle depedencies and the message still occour Apr 28 15:37:54 fBirD, clean Apr 28 15:38:04 fBirD, always clean after changing dependencies Apr 28 15:38:16 pfn, i already do that to Apr 28 15:38:20 no result Apr 28 15:38:29 So if your fragments each have their own recyclerview, they all handle them on their own regardless of what the others are doing Apr 28 15:38:41 okidokie :D Apr 28 15:38:43 fBirD, then you require v21 Apr 28 15:38:52 and it wasnt because of appcompat Apr 28 15:39:12 that actually makes sense, that Google I/O - The world of ListView video is waaay too chaotic Apr 28 15:39:59 pfn, thanks for the help Apr 28 15:40:20 If you're just getting started with android dev/fragments, this is the easiest way to manage it Apr 28 15:40:41 Once you wrap your head around it you can decide what architecture you think best fits your situation Apr 28 15:41:04 On to implementing the RecyclerView and CardViews... Apr 28 15:41:16 In my last app my main view is one single recyclerView, I just swap out the adapters for it when the content changes Apr 28 15:58:21 s73v3r you in the building Apr 28 15:58:23 konk3r, reading the Material spec, apparently in cards, only use 1:1 or 16:9 aspect ratios, but the images i need to use are 4:3 >_< Apr 28 15:59:09 They're just guidelines, don't worry about it too much Apr 28 15:59:45 Adhere to them when you can, but no app is going to follow them 100% (Google's own apps even stray from them) Apr 28 16:02:44 s73v3r: You remember that json schema I showed you yesterday Apr 28 16:02:47 guidelines are made to be broken Apr 28 16:02:59 how could I forget Apr 28 16:03:23 Hell, I remember that json schema and you weren't even showing it to me Apr 28 16:03:54 So someone recommended I use a HashMap and it works: http://prntscr.com/axy8yy Apr 28 16:04:01 though, im not sure why it works Apr 28 16:04:14 cause it’s just doing key-value stuff Apr 28 16:04:45 So what is retrofit doing here? Apr 28 16:04:49 which makes it ok for deserializing from json, but makes it crap for doing any kind of model object stuff with Apr 28 16:10:03 s73v3r: "model object stuff" <- what do you mean Apr 28 16:10:15 i mean actually using the model object to do things Apr 28 16:10:34 Well In that example the data is being thrown into my DjInfoResponse model Apr 28 16:10:42 which is everything i need Apr 28 16:10:59 which appears to be a hashmap Apr 28 16:11:38 No its the type of the values in the hashmap Apr 28 16:11:47 ahh Apr 28 16:11:57 and theres only 1, which is the number from that retarted schema Apr 28 16:12:14 orbyt_, what's your schema? Apr 28 16:15:06 alex_PP: 1 sec Apr 28 16:16:24 prnt.sc/axltcd Apr 28 16:16:47 erm http://prnt.sc/axltcd Apr 28 16:16:52 wow Apr 28 16:16:57 mhm Apr 28 16:17:04 it's like they didn't know arrays exists? Apr 28 16:17:04 so that top number Apr 28 16:17:09 changes Apr 28 16:17:15 depending on the query in the url Apr 28 16:17:46 yeah, I think Map<> was the right choice for you Apr 28 16:17:51 lol theres 1 where its a giant string of numbers with commas inbetween Apr 28 16:17:58 like 1000+ values Apr 28 16:18:03 anyway Apr 28 16:18:18 I'm trying to figure out why it works though Apr 28 16:18:42 it maps my model object to that top level number as the key in my hashmap Apr 28 16:18:43 because that outer object is basically a map with one entry and a key of 69 Apr 28 16:19:09 you could define the whole thing as Map> Apr 28 16:19:13 JSON objects are maps Apr 28 16:19:17 oh really? Apr 28 16:19:41 turning them into typed objects just makes them nicer to work with Apr 28 16:20:14 alright, thanks. Apr 28 16:20:19 I definitely get how that works, having to wrap it in a HashMap seems like a mild annoyance but a lot better than writing custom deserializers Apr 28 16:20:33 mhm Apr 28 16:20:39 really, all objects are maps, just with type information. name->value pairs Apr 28 16:20:57 the downside is that Maps aren’t nice to work with in the rest of the code, compared to actual objects Apr 28 16:21:15 better than the alternatives imo Apr 28 16:21:17 you’ve got to keep track of keys, and if those change, you have more changes Apr 28 16:21:43 yeah, sounds like terrible candidates for model classes Apr 28 16:21:56 you could take that map, and put it into a factory which would spit out an actual object Apr 28 16:22:15 i'd write a custom TypeAdapter Apr 28 16:22:16 or you could go and beat up the guys who thought that schema was a good idea Apr 28 16:22:19 https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/TypeAdapter.html Apr 28 16:22:59 unwrap as the first step and then pass off to the GSON defaults Apr 28 16:23:17 ^^ I'm going to side with the beat them up option Apr 28 16:23:29 meh 4th day here, dont feel like getting fired just yet Apr 28 16:25:00 i dunno. if i saw something like that, and people thought that was a good idea, I’d wonder if staying would be the worse option Apr 28 16:25:49 map.values() will give you a collection of the objects in your map Apr 28 16:25:59 you can ignore the keys as they're in the object too Apr 28 16:27:32 bed time for me Apr 28 16:27:37 bye Apr 28 16:59:48 g00s, is your name http://www.naturephoto-cz.com/fullsize/mraz/greyland-goose-17x_15a878.jpg or http://www.welcometocompany.com/sites/default/files/campfire/roxy1_0.jpg ? Apr 28 16:59:52 just curious ^^ Apr 28 17:00:20 truckcrash no ;) Apr 28 17:00:24 neither?! Apr 28 17:01:44 * mrandroid is glad to be at work Apr 28 17:03:03 Can you programatically add an action view to a toolbar without a menu icon? Say you want to open a search from a FAB instead of from a menu icon Apr 28 17:12:02 Hahaha, okay, I started on a new project using fragments and have been thinking, "I overreacted, fragments really aren't that bad" Apr 28 17:12:13 A few weeks in and I remember why I've been using custom views instead of fragments Apr 28 17:12:51 So, when I update my SDK from the command line I notice some SDK's are repeatedly downloaded even though they are not actually udpated. Has anyone else seen this? Apr 28 17:12:58 Here's the command I'm using: $android update sdk --all --no-ui --filter extra-android-m2repository,extra-android-support,platform-tools,android-23,tool Apr 28 17:16:09 in other words ... downloading and updating is happening even when there's nothing new/no change in the SDK components I'm interested in. Apr 28 17:16:11 mrandroid, can you pastebin the output of the command? Apr 28 17:16:22 probably because the package.xml is corrupted Apr 28 17:19:07 pfn: http://pastebin.com/Xw6z0cCn Apr 28 17:23:01 If Google would completely disconnect Toolbars from Activities, I would be sooooo happy Apr 28 17:24:42 Uh, what? Apr 28 17:25:01 They've halfway done it Apr 28 17:25:26 What are they missing? Apr 28 17:25:45 OnCreateOptionsMenu takes place inside the activity lifecycle Apr 28 17:26:05 That's just you connecting Toolbar to the Activity again Apr 28 17:26:10 After Google completely disconnected it Apr 28 17:26:21 Toolbar#inflateMenu Apr 28 17:26:26 Toolbar#getMenu Apr 28 17:27:06 Oh wow, appologizes google Apr 28 17:28:58 don’t worry too much about it. if you look up the guides for menus, I believe it still says to use the Activity methods Apr 28 17:30:37 I mean, my bigger complaint here is with fragments. I've had to move my toolbar from inside the activity view to inside the fragment view because the fragments contain the recyclerview, and I want to connect them to a collapsing toolbar view. AFAIK the recyclerview needs to be a direct decendant of the coordinator layout for this to work Apr 28 17:31:52 That's just making everything here messy. Apr 28 17:35:45 pfn: I'm not finding a file called package.xml in the Android SDK directory ... perhaps that's the problem? It's not clear in the docs where it's supposed to be. Apr 28 17:42:08 Is there a way I can give my android virtual device a lock screen? For testing purposes Apr 28 17:44:07 Demon_Jester, it would have a lock screen by default Apr 28 17:44:34 truckcrash, my custom android emulator doesn't.. Apr 28 17:45:28 Ah, in that case, I'd have no clue how to configure your custom emulator. Apr 28 18:00:26 mrandroid, they're in the individual package directories Apr 28 18:03:22 Is there a way I can change my toolbar back button to white in styles.xml Apr 28 18:04:04 any ideas on how to tint the cursor of an EditText at runtime? Apr 28 18:04:18 Failure [INSTALL_FAILED_UID_CHANGED] Apr 28 18:04:18 Apr 28 18:04:23 post jack experiment Apr 28 18:04:49 Application doesn't want to install under any circumstances with same applicationId and I don't have root Apr 28 18:04:56 knapper_tech, adb uninstall Apr 28 18:04:59 is there a better way to clear out the old applicationId? Apr 28 18:05:24 pfn: i searched the entire SDK directory and found none as well. I would at least expect something like /Users/jorgev/Library/Android/sdk/add-ons/addon-google_apis-google-16/package.xml Apr 28 18:05:38 mrandroid, yeah, if you don't have those, android update sdk will download them Apr 28 18:05:41 pfn: i searched the entire SDK directory and found none as well. I would at least expect something like Android/sdk/add-ons/addon-google_apis-google-16/package.xml Apr 28 18:06:09 android-sdk-windows] $ find . -name package.xml | wc -l Apr 28 18:06:09 49 Apr 28 18:06:28 pfn, failure. used application id. nothing Apr 28 18:07:15 adb shell runas your-application-id rm -rf /data/data/your-application-id and other places where it might be Apr 28 18:07:25 knapper_tech, oh, and make sure you don't have android:user set anywhere Apr 28 18:07:26 android-sdk-linux$ find . -name package.xml | wc -l Apr 28 18:07:30 changing that causes this Apr 28 18:07:33 0 Apr 28 18:08:22 I built an experimental build with jack + 24rc3 and it suddenly had the issue Apr 28 18:08:33 mrandroid, indeed, that is the reason why Apr 28 18:09:12 pfn, I don't have runas -- non-rooted phone Apr 28 18:09:19 agreed. And I'm thinking I may have no package.xml files because initially I only downloaded specific categories. Apr 28 18:11:35 so I'll just eat the disk space and download everything ... see what happens. Apr 28 18:16:31 Hi, I'd like to implement a spinner. While the spinner spins (lol), the user should not be able to do anything (like an overlay, where button presses are blocked). What would be the best way to do that ? Apr 28 18:17:06 pfn drwxr-x--x u0_a494 u0_a494 2016-04-27 23:16 com.package.dawg Apr 28 18:17:19 494 is my uid? Apr 28 18:17:30 a dialog which is not cancelable with an outside click should do it. Apr 28 18:17:42 trying to tell pm to remove the user Apr 28 18:17:47 knapper_tech, runas is on all phones Apr 28 18:17:59 duboisj: ok I'll try that one Apr 28 18:18:32 you can probably do it with a ProgressDialog which will place your spinner for you. Set it to ‘indeterminate’ Apr 28 18:18:44 system/bin/sh: runas: not found Apr 28 18:19:30 I always have to use run-as Apr 28 18:19:35 (with a dash) Apr 28 18:20:37 shell@g2:/data $ rm -rf /data/data/com.example.dawg Apr 28 18:20:50 Permission denied. Foudn run-as Apr 28 18:21:11 ran as package. ...something really screwed up with permissions I feel like. Apr 28 18:21:26 uid, I mean obviously Apr 28 18:23:02 package doesn't list in pm Apr 28 18:23:06 knapper_tech: have you tried just uninstalling from the android gui? Apr 28 18:23:24 duboisj, the package is no longer installed in the phone Apr 28 18:23:34 but Android complains INSTALL_FAILED_UID_CHANGED Apr 28 18:23:51 I feel like I’ve had that kind of failure before. Reboot? Apr 28 18:26:05 reboot, no good Apr 28 18:26:20 package that caused this problem is no longer listed in pm list packages Apr 28 18:26:48 and it doesn’t appear anywhere in the GUI (in the launcher screen nor the app list) where you can uninstall it? Apr 28 18:27:04 no Apr 28 18:27:11 it's gone, but not completely Apr 28 18:27:26 I recently was playing with build tools 24rc3 + jack and created the situation Apr 28 18:27:39 apk could never install after being built with jack Apr 28 18:27:49 and cannot apparently be totally uninstalled :-( Apr 28 18:29:01 no idea about jack - don’t even know what it is. The symptom sounds familiar to me on some old 4.x device I had. I think I may have eventually factory reset (although maybe some other fussing eventually worked … a few reboots, I don’t know). I remember it being a pain. Apr 28 18:29:09 Can't run-as now :-( Apr 28 18:29:36 yeah, that happened as well. run-as was unreliable I think (although maybe for you it’s that run-as doesn’t think the package exists anymore) Apr 28 18:30:52 Are there guidelines for using a cardview vs a plain listview/recyclerview? Apr 28 18:31:43 dpyro: 2 completely diff things mate Apr 28 18:32:10 orbyt_: i'm not talking on a "how to do it" basis, i'm asking when-UI wise Apr 28 18:32:38 dpyro: I know, and as I said, there 2 diff things Apr 28 18:33:15 can't clear package, can no longer run-as.. pm dump still shows decent pile of information Apr 28 18:33:17 well, then I may be lost because they both look likes lists to me! Apr 28 18:33:23 dyp Apr 28 18:33:39 dpyro: A RecyclerView or ListView is for making scrollable lists Apr 28 18:33:47 a cardview is a custom framelayout Apr 28 18:33:56 * com.angazadesign.agent / u0a493: Apr 28 18:34:14 orbyt_: oh...i belive i'm thinking of a list of cardviews vs a plain list Apr 28 18:34:28 pfn, can I specify a preferred uid? Apr 28 18:34:52 dpyro: you can put just about any view in your list. as far as guidelines go, the material spec has cardview guidelines Apr 28 18:35:10 https://www.google.com/design/spec/components/cards.html#cards-usage Apr 28 18:36:09 thanks orbyt_ Apr 28 18:39:20 wtf. Apr 28 18:39:27 wtf? Apr 28 18:39:50 working on cleaning up some package state to be able to install debug builds again Apr 28 18:40:03 Hi Apr 28 18:40:12 ohai Apr 28 18:41:23 Package com.dawg shared user changed from to com.dawg.uid; replacing with new Apr 28 18:41:30 this looks promising Apr 28 18:44:08 whats the circling thing called when something is loading? is it called spinner? (which is also a drop down list) Apr 28 18:44:37 progressbar Apr 28 18:45:39 orbyt_: thy Apr 28 18:47:47 From my build.gradle I'd like to read a strings resource from res/values/config.xml. The file has the standard format like rc123. How do I read the value of from gradle? Apr 28 18:48:27 Hey, question: Apr 28 18:48:28 My SO fu is not strong with this one. Apr 28 18:48:36 Any simple way to deal with dependent types in Gson? Apr 28 18:49:16 pfn: any thoughts on why package.xml wouldn't be present? Apr 28 18:49:16 Like, I have a json with a field "type", and depending on the content of that – if it’s "text" or "list" – I want to deserialize it into a different type Apr 28 18:49:36 (either ListNote or TextNote or ReminderNote) Apr 28 18:49:46 mrandroid, because you're using an old version of 'android' that doesn't generate the package.xml Apr 28 18:49:59 once you update the 'android' tool, any package you install should create package.xml Apr 28 18:50:01 Zta: Consider doing it the other way around. Keep "rc123" in a property file and generate the resource with resValue Apr 28 18:50:12 Otherwise you'll have to parse xml in your build.gradle Apr 28 18:50:21 justJanne: I think you have to write a custom deserializer Apr 28 18:50:44 SimonVT: I'm fine with parsing XML. I just haven't found a way to do it properly. Apr 28 18:50:50 s73v3r: yeah, I’ve done that before – I just hoped Gson supported that in a better way Apr 28 18:51:13 not that I’ve seen Apr 28 18:51:29 I could use a NoteContainer, Apr 28 18:51:34 which would contain the type, Apr 28 18:51:35 pfn : I installed android-sdk_r24.3.4-linux.tgz. It must be that I need to update the android tool itself then. Apr 28 18:51:41 and then deserialize the other stuff. Apr 28 18:51:59 dynamic type stuff is annoying >_> Apr 28 18:52:06 mrandroid, yes Apr 28 18:52:20 mrandroid, before 25.0.0, it will always download packages yous pecify Apr 28 18:52:38 cool beans pfn. thx. that's not obvious in the docs. is there one I can update and submit a patch for? Apr 28 18:52:40 SimonVT: I see your point. We have all sorts of config in this file, so moving it to a property file is no an option. At least not at this point. Apr 28 18:52:40 i think it’s that JSON wasn' Apr 28 18:52:49 JSON wasn’t really made to do what you’re trying to do Apr 28 18:52:53 mrandroid, what? patch for what Apr 28 18:53:07 patch for the docs to explain what I just discovered. Apr 28 18:53:13 Zta: I bet it's less work than manually parsing it :p Apr 28 18:53:50 s73v3r: I want to build a small note-taking app, synced via web, having the ability to store text notes, or list notes Apr 28 18:54:09 don’t use a “type” parameter, then Apr 28 18:54:10 perhaps there's a release note that I missed or didn't get included. Known side effects of not updating the android tools would be helpful to note. Apr 28 18:54:13 SimonVT: Well, it's something along the lines of this http://stackoverflow.com/questions/6726592/how-to-find-all-xml-elements-by-tag-name-in-groovy except I cannot make it fit my needs. Apr 28 18:54:15 Google Keep recently refuses to allow me to use it without giving it 100% access to everything Apr 28 18:54:28 s73v3r: well, if you have a better idea? ;P Apr 28 18:55:18 well, what does your JSON model and the models for Note and List look like? Apr 28 18:57:16 pfn : now that I'm looking I don't see any reference on how to update the 'android' command itself from the command line (--no-ui). Apr 28 18:57:20 s73v3r: nothing yet, I started drawing diagrams in Visual Paradigm and on my block a minute ago Apr 28 18:57:36 mrandroid, it's the 'tools' package Apr 28 18:57:53 looking ... Apr 28 18:58:09 justJanne: I don’t think I’ve really seen something be nice to use that has to specify type in a string field like that Apr 28 18:58:36 cause you’re invariably going to want to add other “types” of notes (Audio, image, checklist) Apr 28 18:59:05 s73v3r: this is "text" vs. "checklist" ;) Apr 28 18:59:17 but you just gave me an awesome idea Apr 28 18:59:22 right, but as I said, you’re eventually going to want to add other types Apr 28 18:59:30 Note contains a list of multiple pieces of content Apr 28 18:59:38 and having “type” in the thing that switches is just a pain Apr 28 18:59:40 each piece of content can be of type list, image, audio, etc Apr 28 18:59:52 but even that won’t be ideal :/ Apr 28 19:08:42 Is it possible to only have the spinning circle in a ProgressDialog, without any text and title? Apr 28 19:09:16 I believe you can put text on there Apr 28 19:09:39 if not, just put a ProgressBar in a view with textlabels Apr 28 19:09:40 sponge-tmp: Dont use a dialog to disable user interaction. thats dumb Apr 28 19:10:23 ProgressDialog extends AlertDialog, so presumably you should be able to set a title Apr 28 19:10:25 sponge-tmp: don’t disable user interaction, at all, in fact Apr 28 19:10:26 orbyt_: what would be best practice? Apr 28 19:10:39 pfn : I'm updating two things to see if it helps: 1. GPU Debugging tools, revision 1.0.3, and 2. all tools with '$android update sdk --all --no-ui --filter tool' Apr 28 19:10:54 if you want to display a loading screen with just the progress bar in the middle, inflate a viewstub when needed Apr 28 19:11:02 I want the user to wait until something is done, then he should be able to press on button, e.g. Apr 28 19:11:35 when whatever it is is done, hide the loading screen again. Apr 28 19:11:37 of course it would be more helpful if the 'android' command line showed a version number. Apr 28 19:12:01 btw Plaid does exactly this, take a look at its code Apr 28 19:12:12 SimonVT: Just to conclude: def rc = new XmlSlurper().parse(xmlfile).'**'.find { node -> node.name() == 'string' && node.@name == 'rc' }.text() Apr 28 19:15:55 pfn : also updating using '$android update sdk --all --no-ui --filter platform-tools' Apr 28 19:16:19 Plaid actually has a number of good things in it Apr 28 19:16:27 but it's not clear which of those actually updates the 'android' command line. Apr 28 19:19:08 I have a ListView that is propagated using a customer ArrayAdapter. I'm wondering if there's any way, in the array adapter, to decide programatically whether to display an item or not on some criteria Apr 28 19:19:32 I've tried doing v.setVisibility(View.GONE); before returning v, but that just leaves me with a bunch of empty list items Apr 28 19:22:29 I would suggest finding another way. even if you got it working it sounds like opening a can of worms Apr 28 19:22:59 jasus: filter the array outside of the adapter, then give the adapter the things you want to display Apr 28 19:23:32 s73v3r: I was hoping to do this without creating an array for each filter. Apr 28 19:23:43 you don’t have to create an array for each filter Apr 28 19:23:48 just filter the thing on the fly Apr 28 19:23:57 mrandroid, only tools Apr 28 19:24:28 s73v3r: How could I do that without modifying the 'master' arraylist (that contains all unfiltered items) Apr 28 19:24:51 you have a second array. Apr 28 19:24:59 I can't figure out why my assets in the drawable folder can't be referenced in my layout files: http://i.imgur.com/RyESOj5.png Apr 28 19:25:01 it’s not creating an array for each filter, though Apr 28 19:25:11 So just have a 'filtered array' and reuse it? Apr 28 19:25:13 clear and reuse it? Apr 28 19:25:18 pretty much Apr 28 19:25:40 Won't all of the adapters be referencing the same arraylist? Apr 28 19:25:44 in memory? Apr 28 19:26:02 oh weird, why is it nested Apr 28 19:26:12 you’ve got multiple adapters/ Apr 28 19:26:13 ? Apr 28 19:26:38 anyways, you can tell the adapter that the contents of the array have changed Apr 28 19:27:03 Well I want to have multiple list views on the same page, that all display different filters of the same 'master' arraylist Apr 28 19:27:18 that sounds not good Apr 28 19:27:25 from a usability standpoints Apr 28 19:27:30 Oh, i see. Apr 28 19:27:31 Hm. Apr 28 19:31:45 s73v3r: I'm basically trying to create something that resembles this: http://imgur.com/t6Pc6cq Apr 28 19:36:20 pfn : https://code.google.com/p/android/issues/detail?id=208455 Apr 28 19:37:06 Hello all. Apr 28 19:37:19 I have a question about KeyStore.getEntry. Apr 28 19:37:48 What's to prevent an application to get another application's key by knowing the alias? Apr 28 19:38:07 Is the object returned by KeyStore.getInstance app-specific? Apr 28 19:45:51 anyone have any thoughts on separating models vs json model templates? should there be a layer of conversion between the two? Apr 28 20:01:02 Regarding using Gradle to build, does the task "compileDebugJavaWithJavac" build only whats in generated, or even written source? I am trying to suppress warnings for only generated code Apr 28 20:12:34 hey, is it possible somehow to run a method in a *.dex file from my application? Apr 28 20:13:02 (without decompiling/disassembling it) Apr 28 20:13:51 what do you mean.. all your methods are in the dex file if you run them.. Apr 28 20:14:53 yea its a bit complicated.. i want to run a method defined in a different *.dex file from my source Apr 28 20:15:02 in runtime Apr 28 20:15:05 so its not a dex file of your app Apr 28 20:15:11 you want to load it after app install Apr 28 20:15:50 check this blog: i think htats what you want http://android-developers.blogspot.de/2011/07/custom-class-loading-in-dalvik.html Apr 28 20:17:56 yea thanks will check, could be it :) Apr 28 20:33:10 pfn, same package shows two user id matches Apr 28 20:33:13 grrr... Apr 28 20:33:20 so much space between each card Apr 28 20:33:37 like, one card's off screen when the other is on it Apr 28 20:39:44 ah, one is test APK Apr 28 20:40:10 Some say I've hit a KitKat platform bug and cannot repair package manager withour root or factory reset Apr 28 20:40:30 ouch Apr 28 20:45:25 some issue after I installed an apk built using build-tools 24rc3 Apr 28 20:45:42 Failure [INSTALL_FAILED_UID_CHANGED] Apr 28 20:46:35 knapper_tech older samsung device ? Apr 28 20:46:43 4.2 / 4.3 ? Apr 28 20:53:46 g00s, 4.4 LG Apr 28 20:54:02 g00s, did some crazy action with the 24rc3 + jack & jill Apr 28 20:54:18 install probably failed halfway through Apr 28 20:54:31 and now it won't accept any apk's on that application id Apr 28 20:55:10 I've changed application id to see if package id was a cause, but nope, application id Apr 28 20:55:20 maybe factory reset :( Apr 28 20:55:40 i've heard about this problem, but its been a while .. Apr 28 20:55:51 not specifically with jack or anything Apr 28 20:56:03 can't remember which tool I ran, but there is a record of a shared user getting created calld com.my.crap.uid Apr 28 20:56:33 yeah, I doubt it's jack, but I'm not in a hurry to re-create it Apr 28 20:57:03 g00s, what's a dirty way to get all my data off the phone for backup's sake? Apr 28 20:57:17 have a feeling i'll be migrating phones very soon Apr 28 20:57:45 oh, dunno - backup in kitkat kinda sucked, devs had to opt in Apr 28 20:58:25 ouch Apr 28 20:58:40 basically just my photos are the only useful data Apr 28 20:58:52 tons of photos and videos from travels Apr 28 20:59:07 Do I need to use SharedPreferencesCompat/ Apr 28 20:59:08 ? Apr 28 20:59:09 Jack & Jill didn't seem ready for production by a longshot Apr 28 20:59:18 knapper_tech maybe something like titanium backup Apr 28 21:02:07 knapper_tech there is also helium Apr 28 21:02:18 i've have not used either Apr 28 21:09:52 Guys is there any safe method of using external storage as internal? Apr 28 21:10:14 I've tried directory bind but that resets back to normal after reboot Apr 28 21:10:42 Don't reboot? Apr 28 21:10:43 :P Apr 28 21:10:46 I'm talking about earlier Android versions Apr 28 21:11:01 vktec, you may joke, but I actually thought about that too Apr 28 21:11:10 :) Apr 28 21:11:32 It's ridiculous how there's no real SD card support in Android Apr 28 21:11:50 6.0 is here, yes. But not all devices can update Apr 28 21:13:21 vktec, is that the only solution then? Apr 28 21:13:46 I don't know Apr 28 21:14:10 I don't know much about it Apr 28 21:14:41 I know what needs to be done, but don't know how to do it :P Apr 28 21:15:13 android using AS2.1 and ADB Idea plugin? Apr 28 21:20:46 Caused by: java.io.FileNotFoundException: /Users/evanleis/src/android/vlc-android/gradle-2.10/lib/plugins/gradle-diagnostics-2.10.jar (No such file or directory) Apr 28 21:21:06 AS isn't building, and that path isn't even the path of my project ^ Apr 28 21:21:41 Gradle isn't building* - that project isn't even open right now, it's a different project called 'learner' Apr 28 21:27:23 Found it, I need gradle 2.12 in my gradle-wrapper.properties' Apr 28 21:29:25 explodes 2.13 is newest Apr 28 21:34:48 instant run actually worked a few times for me :D Apr 28 21:34:48 knapper_tech: I’ve not used it, but Code42 is a company here in my town that has a consumer backup product. I think they have a free trial … supposed to be somehow magical and comprehensive, etc. Apr 28 21:35:01 but like I say … never used it. Apr 28 21:35:04 in AS 2.1, you can actually cancel the gradle build o.O Apr 28 21:35:27 Lies, I'll believe that when I see it explodes Apr 28 21:35:37 Try it! Apr 28 21:36:20 I can't believe that took until 2.1, it seemed like pretty low hanging fruit. "When the user clicks on the X icon, call gradlew --stop" Apr 28 21:37:32 i find it weird that, when you hit “Run” in AS, and it brings up the device list, if you hit cancel, it still continues to build Apr 28 21:37:53 yeah there is still a lot of wonkiness there Apr 28 21:38:08 and when i quiet AS the app quits on my device (even if instant run is off) Apr 28 21:43:55 s73v3r: Especially when you can really easily cancel the build from a terminal Apr 28 21:50:08 When you decalre a drawable in, say, drawable-hdpi, does that cascade up and get used for that and all larger densities? Or is it always specific to just the density specified? Apr 28 21:53:12 Seems like activities do not get GCd instantly Apr 28 21:57:37 how can i make a button look proper on a CardView? Apr 28 21:57:39 ndk bundle is 500mb??? holy shit Apr 28 21:57:39 Does anyone know how to programmatically display a SearchView in a toolbar? Apparently it bypasses onOptionItemSelected so manually calling that with the search menu item doesn't work Apr 28 21:57:56 Can't get it aligned right Apr 28 21:57:56 er, way more than that Apr 28 21:58:21 jesus christ Apr 28 22:00:27 ndk uncompressed is huge too Apr 28 22:00:32 obviously :) Apr 28 22:02:50 googling yields no results :( Apr 28 22:04:28 So im using leakCanary and its not telling me about any leaks Apr 28 22:04:32 Does this mean im in the clear? Apr 28 22:06:37 Its also not saying anything when I intentionally try to cause a leak though.. Apr 28 22:06:46 drose379: try adding a leak Apr 28 22:06:52 Haha, okay, you're one step ahead of me Apr 28 22:07:07 Yeah its not saying anything Apr 28 22:07:31 Hmmm Apr 28 22:08:07 How did you add a leak? Apr 28 22:08:17 Well I have a MVP design Apr 28 22:08:18 And have you double checked that you're starting leak canary properly? Apr 28 22:08:32 I just do LeakCanary.install( this ) in my Application class Apr 28 22:08:45 Oh, probably best to throw it out and do MVC instead anyway ;) Apr 28 22:08:58 Nah I like MVP Apr 28 22:09:04 Anyways Apr 28 22:09:24 Haha yeah, I prefer MVP too. Odd, you shouldn't have to do anything extra... Apr 28 22:09:27 I just start a network request which goes to the Presenter -> Model, and then I exit the view before its called mack Apr 28 22:09:40 And I comment out the Presenter.disconnect line in the View Apr 28 22:09:42 So it SHOULD leak Apr 28 22:11:33 how exactly do I use LocalBroadcastManager (I'm using it in a similar way to NSNotificationCenter)? Apr 28 22:11:56 Pretty muchj dpyro Apr 28 22:12:18 i'm not too familiar with intents, but it seems like the intent is not getting picked up on the recieving side Apr 28 22:12:52 would new IntentFilter("refreshData"); pick up a new Intent("refreshData"); ? Apr 28 22:12:58 I thought so Apr 28 22:21:18 Weird, after I hit the back button and close out of my activity, it is not null instantly Apr 28 22:21:57 In its presenter, it still has referenece to it, even after it is closed via back button Apr 28 22:22:24 Where is the presenter held? Apr 28 22:22:41 Same package Apr 28 22:22:45 If thats what you mean? Apr 28 22:22:55 Sorry, I mean what is holding onto a reference to the presenter? Apr 28 22:23:00 The activity Apr 28 22:23:09 Then you may not have a leak Apr 28 22:23:14 And the presenter has refreence to the activity Apr 28 22:23:21 If the activity closes, it will release the presenter Apr 28 22:23:26 Right Apr 28 22:23:32 But the presetner still has reference to the activity Apr 28 22:23:44 Right, but if they're only referencing each other the garbage collector will still remove them Apr 28 22:24:16 But how come if I start a background task, close the activity, then try to access the activity (View) in the prestner, the View is NOT null Apr 28 22:24:19 Even after its closed Apr 28 22:24:45 How are you accessing the presenter after the activity closes? Apr 28 22:24:53 The interactor is accessing it Apr 28 22:25:07 Okay, so the interactor is holding onto the presenter Apr 28 22:25:11 Rigth Apr 28 22:25:12 Right Apr 28 22:25:23 Gotcha, that's what I was trying to figure out. Apr 28 22:25:39 Does it explain why the View is not null Apr 28 22:28:03 ugh can i disable hotswapping? Apr 28 22:30:10 Yeah, that should explain it Apr 28 22:30:17 How does that explain it konk3r Apr 28 22:30:25 I have a HostPC with an Android Device plugged in, and a Hyper-V VM inside... How can I make the Hyper-V VM see the Android device plugged in into the host computer (To debug apps there)? Wifi won't work because of the way my company's wifi is set up to block all connections of that type.... Apr 28 22:30:50 Your presenter is holding onto a reference of it, so long as an active object has a reference to it then it won't be garbage collected Apr 28 22:31:02 Which is a leak though isnt it Apr 28 22:31:04 Yeah Apr 28 22:31:07 Definitely a leak Apr 28 22:31:20 So why isnt leak canary saying something about it Apr 28 22:31:39 holy shit, ndk is 2.6G??? Apr 28 22:31:48 sdk] $ du -hs ndk-bundle/ Apr 28 22:31:48 2.6G ndk-bundle/ Apr 28 22:31:49 wtf google Apr 28 22:34:52 pfn you ever used leakcanary? Apr 28 22:37:51 no Apr 28 22:39:34 Hm ok Apr 28 22:40:00 So if my presenter still holds onto my View after the view is closed, that view will not be null Apr 28 22:40:02 resulting in a leak Apr 28 22:43:01 Are you compiling a debug build? Apr 28 22:43:16 I'm not interested in temporary leaks Apr 28 22:43:28 Yes konk3r and what do you mean pfn Apr 28 22:45:34 Hi i have a noob question. If i have 2 devices connected via p2p what is tge good way to communicate metween them besides broadcast recievers? Apr 28 22:46:10 exactly what I said Apr 28 22:46:26 Why arent you interested pfn Apr 28 22:48:09 I have a server part and a client part and i want directly control client part from servèr Apr 28 22:48:33 because it's a solved problem Apr 28 23:11:48 Whats the solution? Rx Apr 28 23:14:33 I'm in the market for a phone, any advice on selecting one? Apr 28 23:15:04 i'm guessing renderscript doesn't have an api from ndk? Apr 28 23:24:10 so if I wanted to do a retrofit query which needs to be a pipe seperated list of ids, how would I do that Apr 28 23:24:33 eg getstuff?id=55|66 Apr 28 23:24:46 Join your IDs with a pipe and then set it Apr 28 23:24:58 as a string? Apr 28 23:25:08 Yes Apr 28 23:25:14 cool thanks. Apr 28 23:27:52 Holla foos Apr 29 00:29:37 How do you guys go about adding gtaphics to a project Apr 29 00:39:30 [warn] An error occurred during installation: C:\Users\pfnguyen\AppData\Local\Temp\BasicInstaller06\bin\cmake.exe (Operation did not complete successfully because the file contains a virus or potentially unwanted software). Apr 29 00:39:31 lol Apr 29 00:42:29 firebase is really cool Apr 29 00:42:33 it feels like cheating almost Apr 29 00:43:10 i'm just playing around with the free tier, so it doesn't matter Apr 29 00:43:29 I wonder if it's cost effective if I were to make my own startup Apr 29 00:47:34 well thats the rub isn't it ... economics, viable business plans, etc ;) Apr 29 00:54:11 RustyShackleford read through parts of this http://www.amazon.com/How-Build-Billion-Dollar-App/dp/0349401373 Apr 29 00:54:52 is the content good? Apr 29 00:55:01 because the title sounds like a scam to me lol Apr 29 00:57:02 yeah , and when you look at the suggested picks underneath - you see there are a lot of shitty books written around that time of 'mobile bubble' Apr 29 00:57:29 RustyShackleford this is another good one http://www.amazon.com/Platform-Revolution-Networked-Transforming-Economy--/dp/0393249131 Apr 29 00:58:04 i'm most interested in distributed apps (dapp) and blockchain, that will be my next project Apr 29 00:58:12 which won't be mobile Apr 29 00:59:15 RustyShackleford ever hear of this? https://www.ethereum.org Apr 29 00:59:34 its either that or AR, mobile is becoming commodity skill Apr 29 00:59:45 or drones maybe Apr 29 01:00:47 I have no idea what etherum does Apr 29 01:00:56 after reading their front page Apr 29 01:02:31 hey all, I have a drawer activity. i dynamically load a fragment into the white space behind the drawer, but i'd like to mix lists and text. the only way I know how to do lists right now is with ListFragment. But then how do I do my textbox, since I'm in a listfragment? Apr 29 01:02:48 i feel like I don't need nested fragments to get the experience i'm looking for Apr 29 01:04:58 meh, if i connect to my device via adb + wifi, and then shut down AS, i can't reconnect to it over wifi Apr 29 01:07:02 Why do you think mobile is becoming a commodity g00s Apr 29 01:07:48 drose379 same reason why web development is commodity skill ... Apr 29 01:07:54 are there any good patterns for navigation between different activities and fragments? Apr 29 01:08:08 Well what do you mean by it g00s Apr 29 01:08:14 That its not valuble to know anymore? Apr 29 01:08:18 Or that everyone knows it Apr 29 01:08:29 in the beginning there were many unknowns; those of us starting then took on many risks in getting into it. now there are no risks, no barriers to entry, and much competition Apr 29 01:08:53 as you add more pages to the app, it can get messy. Maybe you can delegate this to another class Apr 29 01:09:01 Well there are still barriers to entry Apr 29 01:09:04 Learning the lang Apr 29 01:09:29 java is a commodity language Apr 29 01:09:37 has been for over 10 years Apr 29 01:09:49 What isnt a comodity language Apr 29 01:10:06 thats why corps love it, so substitute one dev for another one easily Apr 29 01:10:16 since so many people know java Apr 29 01:10:33 I guess yeah Apr 29 01:10:43 I feel like thats how it has to be though Apr 29 01:14:09 So are you saying mobile dev is no longer a valuble skill g00s ? Apr 29 01:14:10 java is pretty much the only language used at this company Apr 29 01:14:26 besides hiring, you can switch people around between projects Apr 29 01:14:47 and they're already familiar with the language and framework Apr 29 01:16:27 Where you workin RustyShackleford ? Apr 29 01:16:37 a large bank Apr 29 01:16:47 Software at a bank? Apr 29 01:16:49 How is? Apr 29 01:17:41 sure, financial firms need a website, mobile apps, not to mention all your money is just a number in a database Apr 29 01:18:20 Right, sounds fun Apr 29 01:18:53 sometimes its cool Apr 29 01:19:39 You do android there? Apr 29 01:20:25 yup Apr 29 01:20:29 COol Apr 29 01:20:31 Cool* Apr 29 01:20:34 still learning as i'm going. first job out of college Apr 29 01:20:52 I knew some android before that Apr 29 01:26:30 Oh no way, CS major? Apr 29 01:29:08 man i should find myself a proper job Apr 29 01:34:23 What you doin now dpyro Apr 29 01:34:36 at parents home making ios and android apps Apr 29 01:34:48 so far i've thought myself ios pretty decently, made a bluetooth app Apr 29 01:35:01 *taught Apr 29 01:35:26 basically bought a macbook pro and read documentation and stackoverflow until i learned it Apr 29 01:48:44 How old are you dpyro Apr 29 01:48:56 27 Apr 29 01:51:45 Hows your bluetooth app doing on the store? Apr 29 02:04:41 haven't released that one yet, it needs polishing. getting something to work is only half the battle, then you have to make it *good enough* Apr 29 02:04:54 so i put that on a backburner and am working on a much smaller project that's more tractable Apr 29 02:05:16 dpyro and then you have to convince people its "good enough" to spend money on :D Apr 29 02:05:30 yup! and i would have to test various hardware too Apr 29 02:06:09 the best apps don't do anything innovative, they just do it well Apr 29 02:06:25 slick UIs, intuitive interface, subtle animations Apr 29 02:09:26 Interesting take on it dpyro Apr 29 02:09:29 What you working on now? Apr 29 02:10:05 something far simpler. its gives you the daily achievements for guild wars 2 using their json api Apr 29 02:10:31 but it looks pretty decent and is pretty well-integrated. i also hired a UI designer for $10 on fiverr to make it slicker :P Apr 29 02:10:50 i figure its definitely worth $.99, so that's how i'll dip my toes in. see how far i go Apr 29 02:11:26 lol, UI designer for $10 Apr 29 02:11:43 I like the idea dpyro Apr 29 02:11:49 Yeah, any screenshots of their work? Apr 29 02:12:24 yeah, i liked his the most, it seemed to stick with the native ios theming the best. at the very least its better than i can do Apr 29 02:12:50 Any screenshots? Apr 29 02:12:59 of mine or his? Apr 29 02:13:25 Either Apr 29 02:14:22 his: https://www.fiverr.com/kolaikata/design-unique-ui-for-your-ios-android-app Apr 29 02:15:03 Looks nice, wonder if its his work Apr 29 02:15:06 Or a stock photo Apr 29 02:16:07 mine: http://imgur.com/a/BB2WY Apr 29 02:16:38 i'll find out soon enough. for $10, *anything* that makes my app look better is worthwhile Apr 29 02:16:57 Are you in the USA? Apr 29 02:17:16 yes Apr 29 02:17:36 Cool Apr 29 02:17:43 Hey g00s you there? Apr 29 02:19:10 Also good luck dpyro Apr 29 02:19:22 thanks drose379, i appreciate it! Apr 29 02:19:43 goal is to release something on the apple and google app store and then look for a job Apr 29 02:20:23 Sounds like a plan, how well do you know either of the langs? Apr 29 02:21:24 um i only knew java before i started this journey Apr 29 02:21:38 now i know swift and objective-c well enough to make stuf with them Apr 29 02:21:53 Oh cool Apr 29 02:22:04 android java feels so ancient Apr 29 02:22:14 Might wanna pick one and become proficient at that first? Apr 29 02:22:18 Why ancienct? Apr 29 02:23:26 ya they update it daily Apr 29 02:23:28 you have to know objective c to know swift since its compatible and most libraries are still in objective-c Apr 29 02:23:51 i just hate typing get* set*, having 1000 parenthesis, and needing a class file for everything under the sun Apr 29 02:24:18 The IDE should do the getters and setters for you I thought Apr 29 02:24:25 Although I dont use that feature Apr 29 02:24:37 how so? if its in android studio i must know of it! Apr 29 02:24:53 i just laze out and make the member vars accessible Apr 29 02:25:07 public? Apr 29 02:25:15 yes Apr 29 02:25:27 Yeah, I dont think thats such a big deal for POJOs Apr 29 02:25:39 Unless its stuff you really dont want to be changed by accident somewhere Apr 29 02:26:00 i only bother if its not just one-shot code Apr 29 02:28:35 I see Apr 29 02:40:20 How many 3rd party libs is it OK to have? Apr 29 02:40:22 Is there a number Apr 29 02:43:46 maintainable Apr 29 02:44:33 You ever used retrolambda Apr 29 02:45:36 no, but i would if i was working on a larger project Apr 29 02:46:20 Ok, I had a question but just solved... I think Apr 29 02:47:44 Does Jack replace retrolambda anyone know? Apr 29 02:49:43 drose379 eventually, i guess - still experimental Apr 29 02:50:02 So not to be used for production? Apr 29 02:50:21 i wouldn't Apr 29 02:50:29 Any way you could kinda tell me how it works? Apr 29 02:50:35 Compiles twice? Apr 29 02:53:08 Oh, it explains on the docs **** ENDING LOGGING AT Fri Apr 29 02:59:58 2016