**** BEGIN LOGGING AT Wed Nov 18 02:59:59 2015 Nov 18 03:52:52 am i right in saying the android youtube player api does not expose stop or endtime Nov 18 03:53:05 any ideas/help on how i should implement these in my app Nov 18 04:26:02 http://techcrunch.com/2015/11/17/google-and-asus-launch-the-85-chromebit-a-chrome-os-desktop-on-an-hdmi-stick/ Nov 18 04:26:54 "Because it’s a full Chrome OS machine, you can pretty much run any web app on it. " Nov 18 04:27:00 notice, not android Nov 18 04:29:47 yeah, they announced that many months ago Nov 18 04:30:07 Leeds what is the use case? unusual piece of gear Nov 18 04:30:23 the use case is to turn any TV into a ChromeOS screen Nov 18 04:31:08 we have 2 PCs at home - one is mine, for work/play/etc - the other is for my gf, it's plugged into the TV, and she uses it for browsing and local/streaming media, nothing else Nov 18 04:31:25 I would actually really like to get her off the PC and onto ChromeOS Nov 18 04:48:42 Does anyone have a working espresso build running and passing on travis-ci? Nov 18 04:49:12 I find it interesting that they say "you can run. any Web app on it" bah... nothing special Nov 18 04:49:38 my espresso tests timeout and I have no idea why it's not finishing Nov 18 04:52:10 Current .travis.yml -> https://gist.github.com/shekibobo/267597f3775c98ba3ebd Nov 18 05:27:21 material icons 2.1 Nov 18 06:19:36 HI Nov 18 06:19:39 anyone online ? Nov 18 06:21:35 I have set a PeriodicTask with 60 seconds in GCMNetworkManager and flex of 30 seconds. So incase in if mytask is run 30 seconds early would next task be run after 90 seconds ? Nov 18 06:44:27 suhas_sm: I am slightly alive Nov 18 06:44:49 but each day that passes gets closer to my death Nov 18 06:48:59 heh Nov 18 06:54:26 in google Keep, instead of the FAB, there is some kind of button bar, does that thing have a name ? Nov 18 07:02:00 Hello. When using AndroidStudio and you type "this." you will get a list of possible methods to use. But how can I dinamically see the desclription/function of the method ? Nov 18 07:03:12 NeoFrontier: CTRL+SPACE or CTRL+F1 Nov 18 07:03:25 or ctrl+click the link Nov 18 07:05:13 super wyoung Nov 18 07:11:57 How would you pass a List from one activity to another via intent? Nov 18 07:16:52 actually to add to that, does anyone have a source for the current size limit on Intents? Nov 18 07:17:13 I'm finding sources from a few years ago that say 1mb, hopefully thats been updated... Nov 18 07:17:35 orbyt_ bad form anyhow to pass large data in intents Nov 18 07:17:44 better to point references / urls Nov 18 07:18:00 app:layout_scrollFlags="scroll|enterAlways" scrolls even if the recyclerView takes only 20% of the screen. Any idea how to make it scroll only if necessary? Nov 18 07:18:19 Thought it was the only solution tbh, im passing a List which are all gifs @ g00s Nov 18 07:18:32 so its probably 5mb+ Nov 18 07:19:12 orbyt_ thats terrible Nov 18 07:19:19 dont do that ;) Nov 18 07:20:31 Well some context....I was loading gifs with Glide via urls...this was a tad to slow for a recyclerview, so I thought I would add a sort of loading activity to be launched beforehand to grab all the data and then pass it into the activity with the recyclerview so the gifs load locally Nov 18 07:21:36 wth Nov 18 07:22:07 Im guessing you have a better idea? Nov 18 07:22:15 yoavst dave smith has a good CoordinatorLayout video Nov 18 07:22:25 seems to cover things pretty thoroughly Nov 18 07:26:27 could I serialize the list and pass that? Wonder if that would work. Nov 18 07:39:10 g00s: Maybe it will be simple: is there a way to determinate if recyclerView can scroll? If it can't I can disable the flag Nov 18 07:57:02 Ok, found a solution - http://pastebin.com/DjtJPAS2 Nov 18 08:13:51 g00s: Nov 18 08:14:12 what's news? Nov 18 08:38:28 it's my output of keystore D0:72:98:D9:ED:68:D9:30:C1:92:67:62:CF:26:92:21:E3:A7:53:85 and put keystore in config make auth api key but i don't know it doesn't open map and say Authentication failed on the server. also it shows: Android Application (;): 13:D1:2A:1D:CD:25:20:FA:90:41:49:7A:2F:5F:10:FC:E7:DE:7A:12;googlemap.mrg.ericom.com.mygoogle Nov 18 08:38:54 it shows different hash from my keystore when i run map app Nov 18 08:43:38 add the one shown in error message in your developer console Nov 18 08:47:32 suhas_sm: http://codepad.org/ajXze1nk and its my google console: http://storage5.static.itmages.com/i/15/1118/h_1447836459_4378268_18ed9e8d48.jpeg Nov 18 08:49:21 any idea ? Nov 18 08:50:24 add this finger print as well Nov 18 08:52:57 suhas_sm: add from where ? Nov 18 08:53:50 there is a button on develop console Nov 18 08:54:01 see in jpeg Nov 18 08:54:36 you said add this with new hash key ? Nov 18 08:55:25 13:D1:2A:1D:CD:25:20:FA:90:41:49:7A:2F:5F:10:FC:E7:DE:7A:12;googlemap.mrg.ericom.com.mygoogle Nov 18 08:55:41 this is probably your debug key Nov 18 08:56:22 ah so it doesn't load from my keystore Nov 18 08:57:37 where this key produced ? 13:D1:2A:1D:CD:25:20:FA:90:41:49:7A:2F:5F:10:FC:E7:DE:7A:12 Nov 18 08:58:53 i have this key http://storage6.static.itmages.com/i/15/1118/h_1447837125_3713246_1b05e14821.jpeg but 13:D1:2A:1D:CD:25:20:FA:90:41:49:7A:2F:5F:10:FC:E7:DE:7A:12 i don't know where it come from Nov 18 09:03:56 found out Nov 18 09:05:03 Random question, but does anyone have a copy of TrustDefenderMobile from ThreatMetrix that they can send me? Nov 18 09:25:31 is there a way to wait for boradcastreceiver to receive da ta? Nov 18 09:25:33 data* Nov 18 09:26:27 vompatti: Yeah, can send parcelable data through the intent Nov 18 09:27:01 or through the intent's bundle Nov 18 09:27:47 hamsterr: can I do that with DownloadManager? Nov 18 09:32:46 hwrdprkns: can I do that with DownloadManager? Nov 18 09:37:19 Hello, Masters. I want to build a custom video recording app. Where should I start? Nov 18 09:39:59 you should start by limiting yourself to api 18+ Nov 18 09:41:27 why 18+ lol Nov 18 09:43:28 http://developer.android.com/reference/android/media/MediaCodec.html#createInputSurface() because this didn't exist before, and without this the API is near useless Nov 18 09:44:55 ah mmk Nov 18 09:45:19 they didn't specify a color format for the manufacturers to use and so they used their own Nov 18 09:45:48 which led to MediaCodec being pretty much useless unless you knew exactly how to convert some manufacturer specific color format to one of the supported ones Nov 18 09:46:15 with createInputSurface you can draw directly from camera to it Nov 18 09:49:21 Wow okay I'm skimming the createInputSurface(). Thanks! :D Nov 18 09:55:43 https://groups.google.com/d/msg/android-platform/p_MoSk0JPNM/f5tmQ5PbeewJ has some discussion on the problem that was made slightly better with createInputSurface Nov 18 09:59:45 Anyone taken a look at the fingerprint api ? Nov 18 10:14:33 Hello guys, I have a fragment with a listview in it. When a user select an item to see the details and than turn back to the list, the listview position is gone or reset to the beginning of the list. What's the best method to go back to last position of the listview? Nov 18 10:20:35 FusedLocationProviderApi sometimes doesn’t provide location updates unless wifi is on :’( Nov 18 10:20:45 any idea why ? Nov 18 10:20:50 Is this a bug ? Nov 18 11:07:59 Ok, found my answer, solution is saving Listview's state with the method onSavedInstanceState() Nov 18 11:11:00 Or, use myListView.smoothScrollToPosition(position). Nov 18 11:30:54 is it a bad idea to have a tablayout+viewpager inside a fragment? Nov 18 11:34:08 is there anyway to disable horizontal scrolling in android studio editor ? it is killing me Nov 18 11:50:02 bigger screen? Nov 18 11:50:08 what's causing the scrolling? Nov 18 11:56:46 osxorgate: Yeah bigger screen sadly is not an option for me :D _money_, but text fits well into the screen Nov 18 11:57:09 osxorgate: it seems its ide configuration which have right space for code. Nov 18 11:57:19 osxorgate: BTW sorry for delay Nov 18 11:58:47 'right space' ? Nov 18 11:58:52 can you post a screenshot maybe Nov 18 11:59:28 osxorgate: yeah , of course , what Nov 18 11:59:31 wait Nov 18 12:00:00 hi, I'm looking for an android webserver which support php and has the php curl modul installed. I have tried with ksweb but the code working on an apache2 doesn't work with ksweb. So I'm looking for an other webserver with which it may work. Nov 18 12:02:11 osxorgate: https://imgur.com/49O2bc7 that is my longest line , but you can notice there is still so much space to scroll to right Nov 18 12:02:37 hehe Nov 18 12:02:42 you must have 1 very long line Nov 18 12:02:46 maybe whitespace? Nov 18 12:04:59 hey, i try to animate a bottom toolbar. the toolbar is a fragment, which i animate by fragment transaction. When the fragment is replaced, it render first a grey background and then animate the toolbar. Nov 18 12:05:41 how can i fix that? Nov 18 12:05:51 osxorgate: no ! such wired problem Nov 18 12:06:40 weox what's with line 665 wrapping? Nov 18 12:06:47 i'd disable that first time i see it Nov 18 12:11:02 doesn't work , I remove that line. drop it , I don't think it is going to fix . It should have hard wrapping setting Nov 18 12:13:34 maybe restart AS :) Nov 18 12:16:48 I think you are right , it seems that only project problem Nov 18 12:16:57 I opened other files in that project Nov 18 12:17:00 it was okay Nov 18 12:17:08 maybe some wired white space Nov 18 12:22:23 Hello everyone. I'm trying to implement login on my project, but I'm quite confused. Nov 18 12:22:33 This guide (https://developers.google.com/identity/sign-in/android/start-integrating) says I must declare the Play Services Identity API dependency (com.google.android.gms:play-services-identity:8.3.0), but inside Android Studio's Module Settings, when I check the box to activate Google Sign In, it declares another dependency (com.google.android.gms:play-services-auth:8.3.0). Nov 18 12:22:38 Do I have to declare both? What's the difference? Nov 18 12:23:18 why elevation is not working on textview Nov 18 12:49:46 In android studio my annotate option is grayed out when right clicking (or I guess 2 finger clicking since I'm on mac) on the line number bar. Additionally when right clicking in the editor, there woudl be some git options (history, log, annotate,...). These are missing as well. Nov 18 12:50:27 git is included correctly according to android studio and when i create new files it asks me to add them to version control which also works... So I have no idea why that isn't working. Nov 18 12:50:38 Does anyone know what could be wrong? Nov 18 12:53:01 Hi, I'm trying to access resource-strings from a class in a different package. Both, importing R or calling .R.string. throw an android.content.res.Resources$NotFoundException. Is there another mechanism required? Nov 18 12:57:04 which android emulator for pc has the latest android os? Nov 18 12:57:41 freiform: the other package needs to be imported into your project somehow Nov 18 12:57:48 is it in your buildpath? Nov 18 12:57:57 KeithWeisshar: try genymotion Nov 18 12:58:30 genymotion is paywalled Nov 18 12:58:36 it requires an account Nov 18 12:58:55 KeithWeisshar: only for commercial use. For private use it's free afaik Nov 18 12:59:23 why does andy still come with android 4.2.2 Nov 18 12:59:39 genymotion can't be downloaded without registering Nov 18 12:59:45 Hello guys, in Fragments I initialise views in the onStart() method. I wonder if it's the preferred way or should I put my views initialisation somewhere else? Nov 18 12:59:50 thepoosh: I use teh default strings.xml and have a package in the root of my app from which a class wants to access it. The calss runs fine if I harcode the string (e.g. field names for bundles).. Nov 18 13:00:19 Number5: maybe in onCreateView Nov 18 13:00:25 Number5: onCreateView Nov 18 13:00:26 KeithWeisshar: personal use is free Nov 18 13:00:43 KeithWeisshar: that's not a paywall then. Nov 18 13:00:46 freiform: if you added it to your buildpath you should be able to link to it Nov 18 13:01:05 and if you got ResourceNotFoundException, you're referencing something that is not there Nov 18 13:01:46 freiform: if it's a limited number of strings simply passing them over might make sense Nov 18 13:01:59 thepoosh: i see. strange. Nov 18 13:02:24 freiform, Ashiren I remember initialising views in onCreateView results in views with values null after calling findViewById(...). That's why I put it in onStart(). Nov 18 13:02:41 Syzygy: this is an app-wide settings.bundle, I thought it be convenient in case something changes. Nov 18 13:03:09 it says to download genymotion i need to have a genymotion account and they want my email Nov 18 13:03:19 Or I mistakenly used wrong view id's but I doubt that. Nov 18 13:03:23 its free for personal use Nov 18 13:03:38 if youre afraid just give them your spam mail Nov 18 13:04:24 Number5: findViewById in fragment? fragment doest have that Nov 18 13:04:27 how is andy Nov 18 13:04:49 Number5: I create my views, includiing findByView() inside onCreateView, no problems so far. Nov 18 13:05:16 andy doesn't require any registration Nov 18 13:05:17 Ashiren, come on. If you have the root view, you can do something like root.findViewById(...) to get your buttons, textviews and so on... Nov 18 13:05:47 freiform, I guess I'll try it again to make sure. Nov 18 13:06:19 stupid question, what is a Scrim? Nov 18 13:06:20 Number5: well maybe you havent initialized the root yet Nov 18 13:06:43 Number5: I inflate the view in onViewCreate: View view = inflater.inflate(R.layout., container, false);, then use view.findByView().. Nov 18 13:06:52 Troffel: http://www.urbandictionary.com/define.php?term=scrim Nov 18 13:06:56 but maybe you mean scrum Nov 18 13:07:09 I get the root by inflater.inflate(....). in onCreateView(). Nov 18 13:07:18 then it should work Nov 18 13:07:27 freiform, yes exactly Nov 18 13:08:11 freiform, wait, you use findByView()? Nov 18 13:08:30 or you meant findViewById() Nov 18 13:08:43 Ashiren, was thinking more in relation to http://developer.android.com/reference/android/support/design/widget/CollapsingToolbarLayout.html#setContentScrim(android.graphics.drawable.Drawable) Nov 18 13:09:31 maybe https://en.wikipedia.org/wiki/Scrim_(material) Nov 18 13:09:39 woo material design Nov 18 13:11:36 Number5: I meant findById Nov 18 13:11:56 freiform, yeah thnx, I thought so :) Nov 18 13:18:32 If you can’t use the fingerprint api without having a lockscreen set what is the point of being able to use it for authentication in apps? Nov 18 13:27:49 Des, I haven't programmed Android for some time and I actually totally missed Material Design. Is it necessary to almost always use CoordinatorLayout for future apps based on Material Design? Nov 18 13:28:33 This question is to all the developers :) Nov 18 13:31:22 No just if you want to coordinate multiple layout events. Nov 18 13:34:14 Hi guys - is there any inkling as to when Android Pay might be coming to the UK? Nov 18 13:35:49 morning Nov 18 13:37:26 people, i have recyclerview and framelayout in it. Framlayout contains textureview and imageview. Imageview is last so it shown by default. I use imageviwe to show video preview. Nov 18 13:38:32 but when i want to show video, i set imageview visibitity to gone and textureview.bringToFront() Nov 18 13:39:13 imageview is hiding but no textureview appears and no video and no profit... Nov 18 13:39:17 :( Nov 18 14:02:40 What's the way to structure projects now? A MainActivity (FragmentActivity) and replace the fragment(s) there? Nov 18 14:16:00 using rxjava/retrofit i have a network call to fetch a list of X, and for every X i want to do a network call and store the results in a HashMap with all X'es as keys, and all other responses as values.. how? Nov 18 14:16:14 i'm thinking .toMap() somewhere Nov 18 14:27:50 Is there any documentation available on how Espresso works internally? Nov 18 14:28:09 Would be really interesting to know. Nov 18 14:30:16 Generally, you have some finely ground beans where water at ~94 degrees celcius is introduced in ~15bar pressure. Nov 18 14:30:23 What? :D Nov 18 14:30:29 I am talking about the testing framework. Nov 18 14:30:29 :D Nov 18 14:30:37 #ImAFunnyBastard Nov 18 14:30:40 not. Nov 18 14:31:21 Anthaas: this is serious stuff man Nov 18 14:31:44 One does not simply mess with Espresso. Nov 18 14:31:49 it's the fuel that keeps us from killing other people out of sheer frustration Nov 18 14:31:49 how often do you guys find yourselves making custom views? Nov 18 14:32:18 Looney: I can imagine. Nov 18 14:32:19 :D Nov 18 14:32:35 i'm not a Java dev professionally, but i'm comfortable enough using it, was wondering what kind of hurt i'm in for with custom views Nov 18 14:32:43 But thinking about brutally murdering someone is more fun than actually doing it because you can do it multiple times. Nov 18 14:32:51 when the person's already dead, it's no fun anymore. Nov 18 14:32:56 hrm, *cough* sorry. Nov 18 14:33:29 anyway, brb Nov 18 14:34:56 arussellsaw, custom views usually fix the hurt, not cause more ;) Nov 18 14:35:22 I usually build them as soon as the layouting code gets unwieldly or It would require too many views just to do something simple. Nov 18 14:36:06 Hello! I'm developing a system service (in /system/app) which must use the android.permission.DUMP permission. I've added it, but the permission is denied. Is there any special flag I need to set to let this app be a system one? Nov 18 14:36:32 You people talking about views while I am trying to write them in my DRF :-D Nov 18 14:36:43 Coincidence, I don't think so Nov 18 14:36:59 jim87, it's probably a signature type permission, so your app has to be signed with same key as the platform itself Nov 18 14:37:18 Mavrik: ah, ok I understand... so the other way's root Nov 18 14:39:37 Mavrik: btw if I compile the OS, it's possible to execute the dump, right? Nov 18 14:39:46 (I mean with the same keystore) Nov 18 14:40:59 if it's a system app then it should be yes (aren't those in /syatem/app-priv now?) Nov 18 14:41:55 Mavrik: I'm developing for an Android 4.4.2 tablet ATM, not sure if they had /system/app-priv Nov 18 14:42:53 I assume styles don't support multiple inheritance? T_T Nov 18 14:43:10 they don't Nov 18 14:43:55 maybe /system/priv-app? privileged... I'd give a try Nov 18 14:50:16 is there some way to get backgroundTint to work on API level 16? Nov 18 15:25:08 Hi all. I am new to android programming and was looking for advice. I am making an application that stores collections of data and was wondering what the best way of going about it was. Basically a user can create different backpacks, each backpack has specific categories with items in them. Each item has properties a lot of properties/values of it's own. Would it be best to use a database for this data or an xml file or somethin Nov 18 15:26:08 Akayllin: i like to use libaries like realm: https://realm.io/ Nov 18 15:40:17 What's the way to structure projects now? A MainActivity (FragmentActivity) and replace the fragment(s) there? Nov 18 15:40:27 Or do you have more than one activity? Nov 18 15:47:01 there's is no one way to go about things Nov 18 15:47:11 personally i use both Nov 18 15:47:15 where it makes sense Nov 18 15:49:05 ForgottenLinkz: where does what make sense? :p Nov 18 15:49:33 so for instance i have a registration flow, which is similiar in action. in this case i swap out fragments Nov 18 15:49:55 i have a main activity with separate content fragments Nov 18 15:50:03 but i have detail screens in their own activity Nov 18 15:51:11 why “force close” button is not getting disabled when the process dies? Nov 18 15:51:34 what does this button actually do? Nov 18 15:52:36 ForgottenLinkz: so you'd make the login/registration process a different activity than the app's content itself? Nov 18 15:52:43 yeah Nov 18 15:53:50 it's called an 'activity' for a reason :P Nov 18 16:01:15 is this the right place to talk about android game development (openGL) ? Nov 18 16:06:21 Question guys, I'm looking at a SO answer on Intents and I'm wondering where I would be able to find this answer for myself, would it be in the docs? Nov 18 16:06:27 Here is the link, check out the answer: Nov 18 16:06:32 http://stackoverflow.com/questions/3375561/return-to-activity-after-action-completed-in-android Nov 18 16:07:22 Huh, brand new project in IDEA, and I get "Error:Android Gradle Build Target: org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle installation 'C:\Users\Adrian\.gradle\wrapper\dists\gradle-2.2.1-all\c64ydeuardnfqctvr1gm30w53\gradle-2.2.1'." Nov 18 16:08:15 morning Nov 18 16:09:54 Anyone see the SO link I posted? Nov 18 16:10:35 another big fuckup from google https://commonsware.com/blog/2015/11/18/another-doze-edge-case-foreground.html Nov 18 16:10:45 drose379: nothing you can do about it really. it's the responsibility of the SMS app to close itself after sending a message Nov 18 16:11:03 ForgottenLinkz, I am wondering where that answer came from Nov 18 16:11:25 In other words, where would I be able to find that "exit_on_sent" closes the intent after the message is sent Nov 18 16:11:36 I did not see it in the docs, how does that answerer know about it? Nov 18 16:11:37 so whats the best layout to use to create a dialog form? Nov 18 16:12:06 depends on what you want the form to look like Nov 18 16:12:15 drose379: i have no idea where it comes from. that extra data send over needs to be supplied by the owner of the app. Nov 18 16:12:17 like a dialog form Nov 18 16:12:19 gridlayout is probably good Nov 18 16:12:31 ok Nov 18 16:12:47 I understand that, just wondering where I could find the "exit_on_sent" extra Nov 18 16:12:59 IOW, why was it not in the docs? Nov 18 16:13:29 it's not in the docs because it's not part of the framework Nov 18 16:13:56 So why does it work? Nov 18 16:14:32 because that's how that app is build. someone probably just decompiled the source of the app and found there was such functionality Nov 18 16:15:12 So you are saying "exit_on_sent" is not included in the SDK Nov 18 16:15:24 yes, that's what i'm saying Nov 18 16:16:38 Impossible Nov 18 16:16:56 I just put added it to my application and it works perfectly, it must be part of the SDK Nov 18 16:17:09 pfn so Dianne H says that they split their long running services into separate processes for all their apps Nov 18 16:17:33 g00s_, it really depends Nov 18 16:17:41 g00s_, for certain things it makes sense Nov 18 16:17:55 e.g. decoupling a service from UI decreases memory foot print Nov 18 16:17:58 Have any of you guys heard of "exit_on_sent" ^ Nov 18 16:18:01 drose379, no Nov 18 16:18:08 pfn seems only way around this doze bug, i guess thats why they never saw it Nov 18 16:18:19 How the heck does this guy know about it then pfn Nov 18 16:18:38 I'm just wondering so I can find this stuff for myself in the future, instead of using SO Nov 18 16:18:51 drose379, reverse engineering Nov 18 16:18:58 g00s_, what doze bug Nov 18 16:19:05 What do you mean pfn Nov 18 16:19:11 drose379, google it Nov 18 16:19:12 pfn http://commonsware.com/blog/2015/11/18/another-doze-edge-case-foreground.html Nov 18 16:19:36 you have to read a lot of google+ thread back and forth between dianne and the other guy though Nov 18 16:19:49 Ok pfn I see what reverse engeneering is, how does it apply to finding these hidden Intent extras? Nov 18 16:19:57 drose379, by reverse engineering Nov 18 16:20:27 Ok, so if I wanted to do this, and couldnt find a SO answer about it, how would you reccomend "reverse engeneering" Nov 18 16:20:44 if you don't understand it, you shouldn't do it Nov 18 16:21:24 Reverse engeneering is taking something apart and seeing how it works, in order to make it better, or duplicate it Nov 18 16:21:37 google reverse engineer android apps Nov 18 16:21:39 or learning / understanding Nov 18 16:22:37 Ok, what if I did not see an app doing this already Nov 18 16:22:43 I would have nothing to reverse engineer Nov 18 16:22:54 you would reverse engineer the apps you're trying to integrate with Nov 18 16:22:57 i.e. messaging Nov 18 16:23:17 And it would be in there somewhere Nov 18 16:23:52 o hyeah today is a big MS day Nov 18 16:24:17 Interesting pfn, thanks for the guidance Nov 18 16:27:52 So I could reverse engeneer the Messaging app to change its color or something? Nov 18 16:28:10 Or anything Nov 18 16:28:23 maybe Nov 18 16:28:46 Have you ever done it Nov 18 16:29:39 To any app Nov 18 16:30:37 all the time Nov 18 16:30:54 You can just see the code of any app Nov 18 16:30:58 Sounds crazy// Nov 18 16:31:00 ..* Nov 18 16:37:19 nice .net core rc1 Nov 18 16:38:19 so i'm reading the flutter.io FAQ http://flutter.io/faq/ Nov 18 16:38:38 "Why did Flutter choose to use Dart?" ... this is very interesting Nov 18 16:39:02 i think the likelihood we'll be using this keeps going up and up Nov 18 16:46:18 my god android layout is so dumb Nov 18 16:46:33 android layout is one of the best parts of android :P Nov 18 16:46:47 yeah exactly Nov 18 16:46:54 that says a lot Nov 18 16:47:56 Can anyone please help? I get "Error:Android Gradle Build Target: org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle installation 'C:\Users\Adrian\.gradle\wrapper\dists\gradle-2.2.1-all\c64ydeuardnfqctvr1gm30w53\gradle-2.2.1'." with a brand new project on IDEA Nov 18 16:48:17 wow gradle 2.2.1 eh, update your stuff to 2.8 or 2.9 Nov 18 16:48:54 Uh, it's what IDEA defaulted to Nov 18 16:49:22 autrilla look at updating the gradle wrapper, or what it points to Nov 18 16:49:50 I guess I'll use my own gradle Nov 18 16:50:00 Don't. Nov 18 16:50:21 okay? Nov 18 16:52:43 Mavrik: elaborate Nov 18 16:52:59 Use the gradle wrapper, not a separate gradle installation. Nov 18 16:53:05 Just change the version in properties file. Nov 18 16:56:42 Mavrik: what properties file? gradle-wrapper.properties? Nov 18 16:58:29 can I use a drawable as a mask? (e.g. everything that's overlayed by the drawable becomes transparent? for the view that has this as a background drawable only) Nov 18 16:58:50 in xml/style only Nov 18 16:59:02 uhm... I'm installing an app via am install /path/to/my.apk (via runtime run) and then I execute in my "main" app a startActivity with as intent an intent with action "my.action", as defined in the AndroidManifest of the installed app... it is as if it was still using the old app previously installed? Nov 18 17:04:38 g00s_: mkay, so I told the wrapper to use 2.9, but now I get Error:Android Gradle Build Target: org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.9-all.zip'. Nov 18 17:04:48 where in android 6 is the setting for users to remove an app from Doze governance? Nov 18 17:06:05 hm settings , battery optimizations, all apps Nov 18 17:07:12 autrilla not sure , haven't used the wrapper, but it should be pretty basic Nov 18 17:07:31 probably update the wrapper itself if its from 2.2 , i think it had some bug Nov 18 17:07:42 this is all very googleable Nov 18 17:09:22 autrilla, does the build from console work? Nov 18 17:09:41 Mavrik: I don't know, I have no idea where the bundled gradle is Nov 18 17:10:09 You don't have to know that, just run the wrapper with assemble call. Nov 18 17:11:53 Mavrik: is gradlew the wrapper? Or should I run the jar myself? Nov 18 17:12:09 gradlew is the script that invokes the wrapper Nov 18 17:12:12 use that :) Nov 18 17:12:24 You never call gradle directly, always via the wrapper. Nov 18 17:15:50 Mavrik: yeah, assembling myself works Nov 18 17:16:02 hi how can i easily rewrite an URI scheme ? (from xxx: to yyyy:) Nov 18 17:16:05 Ok, that means that the gradle build works. Nov 18 17:16:23 autrilla, now just clean up the IDEA files (.idea, project.iml) and reimport the project with "use default gradle wrapper" Nov 18 17:16:48 Mavrik: what do you mean by clean up, remove? Nov 18 17:18:50 Trying to import with the default gradle wrapper outputs "Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.9/userguide/gradle_daemon.html Please read the following process Nov 18 17:18:50 output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit." Nov 18 17:19:15 And I do have enough RAM Nov 18 17:19:31 I should use the 64bit jvm i guess Nov 18 17:21:30 That looks wierd. Nov 18 17:21:41 It's like you have IDEA configured to run wrong gradle or wrong JVM. Nov 18 17:23:17 I'll remove every trace of 32 bit java Nov 18 17:27:54 anyone use SuperSLiM? Nov 18 17:30:48 (Hopefully) dumb question about Show CPU usage. I know it's Unix load average, basically max at 1.0 per core. But I'm getting over 9 for Nexus 5x (6 cores), and over 13 for LG G2 (4 cores), both with basically nothing running... Not sure what these numbers means... Nov 18 17:31:46 Mavrik: working now. Now I'm having trouble with Windows being obtuse and thinking the MTP driver is the driver I want, and it doesn't let me pick the ADB driver from the list (it doesn't even show up) Nov 18 17:33:12 oh I figured out my NPE with sticky-headers-recyclerview Nov 18 17:33:25 I should not let View.inflate attach my header layout to the parent viewgroup Nov 18 17:34:01 otherwise recyclerview will get confused about child views in it that have null viewholders Nov 18 17:35:14 "Failure [INSTALL_FAILED_INVALID_APK]" <-- what does it mean? I load it in a tmp folder and run "pm install /path/to/my.apk". I can read it (I can "cat" it)... if I install it via Android Studio, it installs Nov 18 17:35:41 maybe it's the directory it is in jim87 Nov 18 17:35:45 Ghopper21, how are you measuring that? Nov 18 17:36:18 missingno: it's in the app's tmp folder... /data/data/my.app/cache/myfile45645646.apk Nov 18 17:36:53 Ghopper21, also what are you trying to measure really? :) Nov 18 17:38:27 Mavrik do you have any experience splitting the app's Service into another process? I remember there were some gotchas but can't find them on d.android.com in Service javadoc Nov 18 17:38:48 dianne H is recommending this practice now to avoid some doze mode bug Nov 18 17:39:09 well, seems like she always recommended it (and chet haase does too) but now it becomes more important Nov 18 17:40:30 Mavrik: I go to Settings > Developer options > Show CPU usage Nov 18 17:40:52 Mavrik: Three numbers show up on the screen, akin to Unix load averages, with other information Nov 18 17:41:20 Mavrik: I'm trying to see how much CPU my app is using. My app is causing overheating, want to see if CPU usage is the cause. Nov 18 17:42:24 Ghopper21, load average really isn't the right metric for that Nov 18 17:42:31 Ghopper21, use Android Studio CPU measurment graph Nov 18 17:43:03 Since you're not interested in number of processes waiting for a time slot, but you want to see CPU utilization of a single process. Nov 18 17:43:09 How come I'm extending Theme.AppCompat.Light but I don't get an action bar displayed? Nov 18 17:43:23 Ghopper21, systrace is also useful with it's CPU measurment metrics. Nov 18 17:44:19 Mavrik: gotcha, thanks. This is for an Android app created by Unity 3D, not via Android Studio, can I still use the Android Studio CPU measurement graph? Or should I just use systrace? Nov 18 17:45:15 Doesn't unity have it's own profiler? Nov 18 17:45:30 You can still use the graph anyway. Nov 18 17:46:03 Mavrik: Another performance meansurement question while I am it :-) The GPU overdraw option doesn't work for games that take over the entire screen, which is a pity. Any way to get that working for games? Nov 18 17:46:41 Nope, since it counts Android view layers. Nov 18 17:46:56 It has no way of measuring GPU overdraw, you need to use a GPU profiler for that. Nov 18 17:47:07 Afaik nVidia has one that works for Android devices with Tegras Nov 18 17:47:08 Mavrik: Yes, but Unity's profiler doesn't show overall CPU % utilization Nov 18 17:47:12 And Qualcomm should have one too. Nov 18 17:47:15 Hey, got a thorny problem here if anyone can lend me some brainpower Nov 18 17:47:41 Mavrik: Gotcha re: overdraw using view layers, thanks Nov 18 17:48:07 Ghopper21, there's also an OpenGL profiler in Android Monitor that should also give you a lot of GPU info Nov 18 17:48:10 If it works. :P Nov 18 17:48:12 I have an AutoCompleteTextView, which I'm using for the filter functionality and dropdown menu, however I don't want the dropdown dismissed when OnItemClicked is fired Nov 18 17:48:19 Any advice? Nov 18 17:54:12 Mavrik: will check out OpenGL profiling, many thanks for all the tips!!! Nov 18 17:57:16 What do you recommend to unit test Android? Unit test, not integration test. Nov 18 17:59:24 g00s_, well, DH says it will be fixed Nov 18 17:59:35 g00s_, I wouldn't recommend splitting services off Nov 18 17:59:43 well, google's stance on optimization is weird Nov 18 17:59:51 basically, do nothing abstract Nov 18 18:00:00 heh yeah Nov 18 18:00:12 and for stuff like services, it, according to google's stance, should *always* be in a separate process Nov 18 18:00:20 as many components should be in independent processes as possible Nov 18 18:00:35 that would reduce memory footprint when only an individual component needs to be loaded Nov 18 18:00:39 e.g. long running service vs. ui Nov 18 18:00:45 in practicality, meh Nov 18 18:00:45 no Nov 18 18:00:53 Dianne HackbornNov 16, 2015+1 Nov 18 18:00:53 2 Nov 18 18:00:53 1 Nov 18 18:00:53 1 Nov 18 18:00:53 Reply Nov 18 18:00:55 Nov 18 18:00:58 +Petr Nalevka Sorry yes this does seem like a bug in the platform. I will look into getting it fixed when possible. Nov 18 18:01:01 eek Nov 18 18:03:51 What I would suggest is listening for doze mode to start, and just putting your activity to the back in that case. You can do that by listening for the broadcast http://developer.android.com/reference/android/os/PowerManager.html#ACTION_DEVICE_IDLE_MODE_CHANGED Nov 18 18:14:03 Okay, here I am again, so once again: Does anyone know whether there's some documentation available on how Espresso (the testing toolkit) works internally? Nov 18 18:21:40 Hi Nov 18 18:22:18 What do I need to do if I want to use some external API in my app? Nov 18 18:22:29 use it? Nov 18 18:23:27 Tobbi, you could try to search here: https://google.github.io/android-testing-support-library/ Although not sure if there is something "internal" Nov 18 18:23:42 Hmm, I will try. Nov 18 18:23:48 s73v3r: So I don't need to do something different? Just include it at the start of my activity class abd use? Nov 18 18:24:07 it really, really, really depends on the API/library Nov 18 18:24:27 but they all should have documentation on how they are used Nov 18 18:25:10 Why is the text in my EditText inside an android.support.design.widget.TextInputLayout not my theme's android:textColor? Nov 18 18:25:13 s73v3r: Yep...I thought there may be some different procedure to include them in my app as app is something to be distributed. Nov 18 18:25:39 you have to include the library Nov 18 18:26:20 s73v3r: By the way, do you know about some reliable maths expression solver in Java? I googled it but could not find anything inbuilt in Java. What do developers use for programming calculators? Nov 18 18:26:30 i do not Nov 18 18:26:39 i imagine they just program most of the stuff themselves Nov 18 18:27:12 But that would involve writing parsers and all. There should be something in Java, no? Nov 18 18:27:19 not a clue Nov 18 18:27:27 Google might know Nov 18 18:27:30 Ok...Maybe I should check in #Java? Nov 18 18:27:34 sure Nov 18 18:27:46 Ok...thanks a lot s73v3r :) Nov 18 18:38:55 The only bitmap.config with rbb and alpha is the ARGB? Nov 18 18:46:08 hi in an activity lifecycle when can i be sure that the setadapter callback of an inner listfragment is called Nov 18 18:48:14 Hey guys! What are your thoughts on data binding with XML layouts in Android? Do you use it? Hate it? It seems like it could save a lot of time (but I have no experience with it yet) Nov 18 19:39:04 not a fan, making stuff fail at runtime for convenience is not a plus Nov 18 19:49:10 is sugar orm the best database framework? Nov 18 19:51:31 DrSheep sqlite is the best db framework Nov 18 19:51:37 lol duh Nov 18 19:51:48 what a shitty answer Nov 18 19:51:59 it was a shitty question :) Nov 18 19:52:07 no it wasnt Nov 18 19:52:18 if you dont know, then ignore it Nov 18 19:52:49 my code all uses sqlite directly, its certainly not ideal, Id like to convert it to a real model layer, what do you suggest? Nov 18 19:52:53 its ok to say "i dont know" Nov 18 19:53:37 g+ ui changed.. feel more like android (including the mistake in design lolol) Nov 18 19:53:38 http://i.imgur.com/4eO951a.png Nov 18 19:53:52 adq you can opt out (for now lol) Nov 18 19:54:15 yeah i saw the bottom left link, but i will not Nov 18 19:54:51 Does anyone know how to reset the list of system images for virtual devices in Android Studio? Some mysterious thing is happening where I download an image but it's not selectable, it just disappears from the list entirely. I've downloaded like, 10 images from the UI and only three are available. No idea what's happening. Nov 18 19:55:47 adq "Padding, padding, everywhere, And all the boards did shrink; Padding, padding, everywhere, Nor any information to drink" Nov 18 19:56:04 padding all-the-things Nov 18 20:04:42 asdas Nov 18 20:04:44 https://github.com/Quintasan/KulturalnaMapaWroclawia/blob/master/app/src/main/java/me/michalzajac/kulturalnamapawrocawia/fragments/EventFragment.java Nov 18 20:05:47 This fragment doesn't show the list view when bound to a FrameLayout, any ideas why? AFAIK the ArrayAdaper is not empty since getCount() yields 22, the exact number of elements in database. Nov 18 20:06:10 POIFragment works flawlessly. Nov 18 20:11:53 Quintasan, does it show the emptyview? Nov 18 20:12:00 or no layout at all Nov 18 20:12:06 danijoo_: No layout at all. Nov 18 20:12:43 show fragment_event.xml Nov 18 20:13:11 I have fragment_event_grid or _list Nov 18 20:13:42 https://github.com/Quintasan/KulturalnaMapaWroclawia/tree/master/app/src/main/res/layout Nov 18 20:13:43 you are inflating fragment_event.xml Nov 18 20:14:45 danijoo_: Yes, it's supposed to pick either _list or _grid based on device size. Nov 18 20:14:46 the layout you reference does not exist. Nov 18 20:14:54 POIFragment does the exactly same thing and it works. Nov 18 20:15:07 is this something new to Android? Nov 18 20:15:15 because how should it know that if its in the same folder Nov 18 20:15:41 values/refs.xml Nov 18 20:16:25 ah :) never used that Nov 18 20:21:29 Does anyone know where the props from 'adb shell getprop' are stored? Looking to modify one of them Nov 18 20:21:38 Yes, my phone is rooted. Nov 18 20:21:56 settings db maybe? Nov 18 20:23:24 hmm Nov 18 20:23:41 I have determined that the query doesn't get executed. Nov 18 20:23:43 I wonder why. Nov 18 20:24:42 Quintasan, did you log failure? maybe you have an error.. Nov 18 20:26:34 oh nice Nov 18 20:26:41 JsonSyntaxException Nov 18 20:26:46 I wonder what went wrong. Nov 18 20:30:06 your json is not valid Nov 18 20:30:15 java.text.ParseException: Unparseable date: "2015-11-06T20:39:59.000Z" (at offset 19) Nov 18 20:30:27 The JSON itself is definitely valid Nov 18 20:30:36 hmm Nov 18 20:30:55 ah yes. you need to tell retrofit how to deserialize your date Nov 18 20:31:12 I do Nov 18 20:31:14 At least I think Nov 18 20:31:41 https://github.com/Quintasan/KulturalnaMapaWroclawia/blob/master/app/src/main/java/me/michalzajac/kulturalnamapawrocawia/api/API.java#L41 Nov 18 20:33:14 Man, this TrustDefenderMobile.jar is really hard to find Nov 18 20:33:34 danijoo_: Maybe I'm getting it wrong but should my POJO model have public Date starts or public String starts? Nov 18 20:33:51 Quintasan, if you want a Date, it should have Date Nov 18 20:34:23 but retrofit cant know how to convert the string "2015-11-06T20:39:59.000Z" into a valid date if you dont tell him the correct format Nov 18 20:34:30 Well, I definitely want a Date in the object itself, Json sends a String so I have to tell Gson the format Nov 18 20:34:37 Which I do as seen in https://github.com/Quintasan/KulturalnaMapaWroclawia/blob/master/app/src/main/java/me/michalzajac/kulturalnamapawrocawia/api/API.java#L41 Nov 18 20:34:39 exactly Nov 18 20:35:42 this is wrong i think Nov 18 20:37:17 StDrets Nov 18 20:37:39 AH Nov 18 20:37:41 bloody hell Nov 18 20:37:45 there is a dot there Nov 18 20:37:48 not a semicolon Nov 18 20:37:52 colon* Nov 18 20:41:03 I feel like a retard now. Nov 18 20:42:02 everyone hates SimpleDateFormat Nov 18 20:44:53 is8601 ftw Nov 18 20:45:07 unixtime ftw Nov 18 20:45:33 binary data interchange formats that have rich types ftw Nov 18 20:50:16 Is it fine that I use sleep to show images if I dont care about that whole UI thread will not be resposive while it's sleeping? I just want to show images after one second and don't need do to anything else on UI thread while that's happening Nov 18 20:50:53 hey can anyone figure out how to compile this app? Nov 18 20:50:59 the source is on github, haven't been able to figure it out Nov 18 20:51:17 it's possible tho, it's been done before Nov 18 20:56:26 mentazoom, no, it's not fine. Nov 18 20:57:00 It'll block and break several important application functinality and Android will kill your app with ANR if your main thread is unresponsive. Nov 18 20:57:59 mentazoom: Don’t ever block the UI thread. There will never, ever be an instance where you don’t care that the whole UI thread will not be responsive Nov 18 20:59:28 Thanks for answers, that makes sense, my problem is that I have to make imageview final while i'm looping through them in Handler, but I guess I have to think of a way getting that to work Nov 18 21:00:22 mentazoom, make a handler and do a postedelayed Nov 18 21:02:58 you can prep the image in a thread and then post to the ui thread to update, too Nov 18 21:11:05 mentazoom, what are you trying to do? Nov 18 21:11:18 maybe we can give you an advice how to design this in a better way Nov 18 21:14:26 danijoo_: Show image when a button is pressed, i tried now putting Handler around the the for loop which goes through imageviews but it's not working like I want that way. I want to show next image in next imageview. Nov 18 21:15:19 you could use picasso that handles all this for you Nov 18 21:15:42 it's school project, i can't use external libraries Nov 18 21:23:29 beh, school Nov 18 21:23:37 not interested in getting shit done Nov 18 21:24:38 for school i would just do setImageDrawable :p Nov 18 21:25:24 i'm using setImageDrawable, but it gets really buggy if I try to use handler, but I know I'm obviously not using it correctly Nov 18 21:30:08 how many images do you set at once? Nov 18 21:35:13 the problem is that I have to set the imageview as final in Handler and then it won't update obviously Nov 18 21:36:58 i dont see why this is the case Nov 18 21:43:54 danijoo_: Want to look at the code? Nov 18 21:46:28 you can post it and someone might look at it ;) Nov 18 21:53:31 much happy that I got a gigabyte r9 280x with cosair h55 as the cooler (used) tested on the spot with my rig for 160cad Nov 18 21:56:56 how can I test that an intent is received from a broadcastreceiver using robolectric? Nov 18 21:57:17 no idea Nov 18 22:00:12 there are still people using robolectric? Nov 18 22:00:55 is there something wrong with it? Nov 18 22:01:33 no Nov 18 22:02:28 but if you dont know yet, you can now use mocked android stuff in jvm tests Nov 18 22:02:36 since gradle plugin 1.3 i think Nov 18 22:04:01 danijoo_: you mean I don't need robolectric and I can run unit tests in the jvm without it? Nov 18 22:04:13 mostly yes Nov 18 22:06:46 danijoo_: like i see MockContext, but I can't use it from robolectric... is that part of what you're talking about? Nov 18 22:07:24 There are likely multiple routes, but what would be the best (subjective) way be to go about development on Windows? Nov 18 22:07:39 I only do integration tests so I cant tell you much more, sry Nov 18 22:07:59 dang Nov 18 22:08:00 lol Nov 18 22:08:07 LazyUser69: what are you asking exactly? Nov 18 22:08:28 What is the best way to set up a development environment for android on Windows? Nov 18 22:08:31 I'm not sure it qualifies as subjective. Regardless of tastes, there are certain facts here: Android Studio is a better bet than Eclipse, for example. Nov 18 22:08:40 kek Nov 18 22:09:05 wow player detected Nov 18 22:09:06 Just install Android Studio and SDK Nov 18 22:09:17 it's the same steps for any platform Nov 18 22:10:24 LazyUser69: Did you do any research at all before asking this? Like go to the Android Developer site? Nov 18 22:11:21 Negative Nov 18 22:11:37 * LazyUser69 is lazy Nov 18 22:11:47 good luck in here with that attitude Nov 18 22:11:58 Not that lazy Nov 18 22:27:21 what lib should I use for json parsing Nov 18 22:27:29 so far jackson-databing appears to be 4x larger than gson Nov 18 22:27:29 jackson or gson Nov 18 22:27:37 *jackson-databinding Nov 18 22:27:47 If you use only jackson-core, it's very fast and light. Nov 18 22:28:00 But a lot more work on your end. Nov 18 22:28:10 yeah that last part is the turn off Nov 18 22:29:39 try using the square library, moshi? Nov 18 22:31:37 oh neat that one is small Nov 18 22:35:27 when i kill the app by sweeping it out of recent app list, does that cancel the alarms, too? Nov 18 22:37:54 ecofriendly: back Nov 18 22:38:05 hi Nov 18 22:38:34 honestly I have no idea how to do it ecofriendly Nov 18 22:38:44 shmooooz might know Nov 18 22:38:45 that makes two of us Nov 18 22:38:59 assuming he is not high on weed Nov 18 22:43:26 well Nov 18 22:43:41 thanks for s73v3r we now know that it has to do with the NDKJ Nov 18 22:43:43 NDK* Nov 18 22:43:46 and it's in C++ Nov 18 22:43:54 so if anyone knows those two pleaseeeee pm me Nov 18 22:43:56 it said that right on the front page Nov 18 22:47:24 ok cool Nov 18 22:57:53 does moshi need public fields? Nov 18 22:59:57 boss seriously needs to know his place and stop walking in on me Nov 18 23:00:14 workers don't work for bosses. Bosses work for workers Nov 18 23:00:15 :P Nov 18 23:00:23 * horny-sama communist mode activates Nov 18 23:11:26 ...sweeping an app out of recent apps doesn't cancel the alarms if you were interested Nov 18 23:11:34 a new process is launched Nov 18 23:11:54 fun Nov 18 23:12:30 Anyone familiar with JUCE and or DSP processing on Android? Have no idea how routing a digital signal to a digital effects processor is possible could work in it. Nov 18 23:23:26 Argh, any ideas on how to implement Master/Detail into Navigation Drawer? http://stackoverflow.com/questions/21036841/how-to-implement-navigation-drawer-with-fragments-master-detail/26597742#26597742 Involves a lot of copypasta and the Fragments differ (ie. when you use Navigation Drawer it expects Fragments whereas Master/Detail uses ListFragment) Nov 18 23:28:15 Is there an android studio bundle torrent anywhere? Damn download keeps interrupting Nov 18 23:29:48 LazyUser69: that sucks Nov 18 23:38:15 50 minutes left, thanks Comcast. Nov 18 23:39:45 even your internet is lazy ! Nov 18 23:41:05 Central Pennsylvania even gives the internet depression Nov 18 23:41:54 maybe the fracking chemicals dissolved the iterweb cables Nov 18 23:42:53 Fracking things! Nov 18 23:53:23 TacticalJoke: Do you know how to use the NDK? Nov 18 23:53:27 and/or C++? Nov 18 23:53:39 He didn't make it Nov 18 23:54:36 Holy shit Batman, how do I handle ListView item clicks when the ListView is in a goddamn Fragment? Nov 18 23:54:53 public void onItemClick(AdapterView parent, View view, int position, long id) is definitely NOT invoked. Nov 18 23:55:07 And I'm not using ListFragment, should I be using that? Nov 18 23:55:45 Quintasan: It should be being invoked, and you don't need to use ListFragment. Nov 18 23:57:24 hm Nov 18 23:57:52 ListFragment just uses ListView. It doesn't really do much. Nov 18 23:58:02 TacticalJoke: https://gist.github.com/Quintasan/4c0be497c9492309caba Nov 18 23:58:11 Not even the first Log.d shows up Nov 18 23:58:45 It's not really possible to say without seeing more stuff (such as `listView.setOnItemClickListener(foo);` and so on). Nov 18 23:58:47 Generally what I want to do is to show a DetailActivity when an item is selected from the list. Nov 19 00:02:53 TacticalJoke: Now I'm getting NPE -> https://gist.github.com/Quintasan/9007a39e5094b67935cd I'm confused as to what onItemClick in Fragment class is doing. Nov 19 00:04:33 Log.d(TAG, "Selected item: " + parent.getItemAtPosition(position)); Nov 19 00:04:35 now it works Nov 19 00:05:06 TacticalJoke: I can just start an Detail activity from there but is it a good idea? Nov 19 00:07:18 Would you rather that the enclosing activity start the new activity? Nov 19 00:07:33 If so, you could raise an event that the enclosing activity subscribes to. Nov 19 00:08:29 TacticalJoke: The question is what's the better way. I'd rather do it the right way instead of Just Works approach. I tried incorporating the Master/Detail flow but I got stuck at the Callback magic. Nov 19 00:10:54 Quintasan: Why are you using Fragments here at all? Nov 19 00:11:08 (If you're just starting a new activity for the details.) Nov 19 00:11:35 Hm. Nov 19 00:11:35 http://developer.android.com/training/implementing-navigation/nav-drawer.html Nov 19 00:12:30 Basically I want to have a navigation drawer to show three different listviews (I embedded those listviews in Fragments), when one picks an element from any of those listviews I want to show details view. Nov 19 00:13:50 At first I thought about combining Navigation Drawer with Master/Detail flow but of course the generated code uses Fragments in the first and ListFragment in the latter and I don't exactly get how to combine them. Nov 19 00:26:19 Hi Guys .. I need your help ... I added a android.support.v4 library to my project in android studio and now gradle takes a long time and it gives an error saying outof memory exception Nov 19 00:26:37 seems wierd that it throws this out of memory exception Nov 19 00:32:29 d0d0: My bet is that you are running low on memory and oom killer kills gradle Nov 19 00:34:20 it is a small libgdx project ... I just added this library and gradle is giving me this error ... I looked in the compiler options, and there is 700MB of java heap space ... shuldnt this be sufficient Nov 19 00:34:29 or am I looking at the wrong setting Nov 19 00:36:12 also this after excluding this support library from the dependency : exclude group: 'com.android.support', module:'support-v4' Nov 19 00:36:41 if not for the exclude option, gradle seems to eb stuck for ever Nov 19 00:38:26 i increased the heap size to 1024 and excluded the android.support.ve library from the compile process ... and restarted the build ... lets see ... Nov 19 00:41:33 AS 1.5.0 final out Nov 19 00:43:12 the gradle build is going on for the past 11 mins.... Nov 19 00:43:58 i have handler in for loop so it will wait 1 second before posting next imageviews. I have several imageviews, but the handler waits 1 second then shows all the imageviews once. Nov 19 00:51:02 TacticalJoke: could you point me to something explaining how to return getViewItemType such that it ignores recycling it? Nov 19 00:52:12 http://developer.android.com/reference/android/widget/Adapter.html#IGNORE_ITEM_VIEW_TYPE Nov 19 01:04:55 TacticalJoke: Do you see why this code doesn't go past line 2 untill the araylist is looped through and then goes to line 5 and does it all together? I wanted it to do line 5 while i = 0 and then run all of it again when i = 1 etc...? Nov 19 01:04:59 http://pastebin.com/CAaCkuGt Nov 19 01:06:33 The way it's working now there is no delay for when the code is executed Nov 19 01:08:06 if I have an interface such as RunnableCallback { void onRunnableFinished(T result); void onRunnableExcepted(E exception); } Nov 19 01:08:09 how do I declare this as a class member? Nov 19 01:08:17 RunnableCallback don't work Nov 19 01:13:29 lol g00s_, they even fail the links now? http://tools.android.com/download/studio/builds/1-5 Nov 19 01:14:05 did you see https://plus.google.com/+TaylorLing/posts/Ks86vAgjf8d ? also i saw the new G+ desktop version, omg what a fail Nov 19 01:14:39 ^ http://i.imgur.com/4eO951a.png Nov 19 01:17:18 oh my bad for the links, it seems they use a different versioning Nov 19 01:21:28 adq they're trying to get everyone off google+ :D Nov 19 01:21:58 oh, and the nav drawer just bugged on chrome, it seems to open but is not visible oO Nov 19 01:22:17 ecofriendly, don't pm me please this is rude, ask the whole channel if you need assistance Nov 19 01:22:25 Does anyone see waht i'm missing about my problem? Nov 19 01:22:35 mentazoom, you're doing it wrong Nov 19 01:22:48 what? Nov 19 01:22:51 pming is rude? Nov 19 01:22:52 hmm Nov 19 01:22:59 adq: How should I do it? Nov 19 01:23:06 mentazoom, stuff is queued with your handler, and the delay is not always guaranteed Nov 19 01:23:28 anyways, if anyone knows how to use the NDK or C++ and is willing to help me make an app work in Eclipse or AS i'd gladly need your assistance Nov 19 01:23:38 i have the source on github Nov 19 01:24:56 mentazoom, also you break performances with the "new" inside your for loop Nov 19 01:25:43 (if your arraylist is big), idk what you are trying to do inside "//do something", maybe give us more details Nov 19 01:27:18 adq: Line 2 always runs arraylist.size() times first and then rest of the code runs and the "//do something" runs, I don't get why everything isn't running line by line at start Nov 19 01:28:39 arraylist.size() will be called at each iteration (to check the condition of the loop) Nov 19 01:29:25 idk what you mean by "line by line", but see your handler block as one line Nov 19 01:29:33 asfdd: I mean that if arralist.size is 3 then line 2 runs 3 times first and then the rest of the code Nov 19 01:30:16 and the stuff inside run will be executed after the delay specified, plus/minus what is happening in the queue, you're filling a queue very fast of many handler message saying all of them to run after 500ms Nov 19 01:30:46 yes, i think this is normal mentazoom despite you're doing it wrong Nov 19 01:31:14 adq: You mean i should have line 2 outside the for loop? Nov 19 01:31:20 simply imagine it runs your handler.post thing very fast many times, putting what should be run in a queue Nov 19 01:31:25 Does anyone here use ThreatMetrix? Nov 19 01:31:44 Thinking about some fraud solutions Nov 19 01:32:00 That makes sense Nov 19 01:32:02 mentazoom, i have no idea what you are trying to do inside your run(), so it depends Nov 19 01:32:20 adq: I am showing images in imageview Nov 19 01:32:32 I want to show them one by one with delay Nov 19 01:32:48 then you should use something better, like picasso library or another one Nov 19 01:33:10 does snackbar handle showing itself multiple times or do they stack natively? Nov 19 01:33:24 ie i only ever want one snackbar showing, i have to handle this myself right? Nov 19 01:33:26 adq: I can't use external libraries for this project Nov 19 01:33:43 it's for school Nov 19 01:33:47 ok Nov 19 01:34:05 lol WTH, the new Google+ has a bottom navigation bar like iOS ? Nov 19 01:34:07 LOLOLOL Nov 19 01:34:26 haha wow Nov 19 01:34:39 mentazoom, at least understand the issue, you send very fast (with your for loop) in a queue message saying "do something in 500ms" Nov 19 01:35:11 adq: Even if I try 5 seconds or whatever they show up together Nov 19 01:35:19 so you have message0, message1, message2, ... messagen, all together very near in time, ready to launch something in 500ms Nov 19 01:35:35 so they will all execute mroe or less near the same time Nov 19 01:35:56 g00s_: where...? Nov 19 01:36:18 (and of course, you don't want that) Nov 19 01:36:43 orbyt_ https://plus.google.com/+LukeWroblewski/posts/QC3VCMTysFB Nov 19 01:36:47 adq: I have same behaviour with 5 seconds etc Nov 19 01:37:04 yes, this is expected Nov 19 01:37:15 i think you need to understand your issue prior to moving on to the solution Nov 19 01:37:17 g00s_: oh its not out yet then Nov 19 01:37:27 sorry if i failed at highlighting it Nov 19 01:37:36 maybe someone else will tell you better Nov 19 01:37:40 orbyt_ version6.8 Nov 19 01:38:06 adq: Yea, been trying this for several hours today, didn't think that it could be the behaviour you are telling about Nov 19 01:38:12 it is Nov 19 01:38:29 imagine you send one letter, which will arrive in one day to someone Nov 19 01:38:36 now you're sending a bunch of letter almost at same time Nov 19 01:38:42 which will arrive in one day too Nov 19 01:38:50 So this is very complicated stuff and you have to be thread expert or use external libraries? Nov 19 01:39:04 no Nov 19 01:39:37 but you could use a simple thread with a counter each 500ms to send the next item Nov 19 01:39:45 adq: If I send with 5 seconds delay then a picture should show up in 5 seconds, second one in 10, third in 15, I don't see how the quee couldn't handle that Nov 19 01:39:46 or executor, or some scheduled thing, or chaining message Nov 19 01:39:49 so many possibilities Nov 19 01:39:55 no mentazoom Nov 19 01:40:15 you prove you still not understand the issue, and it proves i'm not able to explain it despite all my effort Nov 19 01:40:24 so i'm going to late dinner now :p good luck Nov 19 01:40:45 lol alright, thanks I will read again what you wrote Nov 19 01:41:02 orbyt_ https://www.reddit.com/r/Android/comments/3tc3fc/google_68_new_ui/ Nov 19 01:42:43 adq: Now i think I get it it runs like you said line 2 several times first and puts everying in queue then it runs everything Nov 19 01:43:01 g00s_: ty gonna update and take a look Nov 19 01:44:01 google proves again that apple is best at design Nov 19 01:50:30 anyone have a sample source code to upload multiple image to server? Nov 19 02:16:41 hello :) Nov 19 02:34:16 Maybe I'm getting old or something, but stuff like this just seems unprofessional to me: https://www.reddit.com/r/androiddev/comments/3tbmor/someone_had_fun_writing_this_method/ Nov 19 02:37:59 TacticalJoke wondering when AS starts shipping with the kotlin plugin :P Nov 19 02:38:46 It'll be cool if that ends up happening. Even if unintended, it'd look like Google was officially supporting Kotlin on Android. :D Nov 19 02:38:55 well they have Log.wtf() Nov 19 02:39:44 g00s_: I agree about that hackbod thing. How are the framework engineers not interested in figuring that stuff out themselves. ;o Nov 19 02:41:01 TacticalJoke yeah especially since there was a wontfix bug already filed Nov 19 02:41:16 the commenter got my point wrong - i think doze is good - but it has to work :D Nov 19 02:43:46 Yeah. Nov 19 02:46:43 To be honest, I support a lot of stuff that hurt developers as long as it helps users and works well. I realise that sometimes developers have to endure pain for the platform to improve. Nov 19 02:47:03 TacticalJoke maybe they are busy with the dart side of things :D Nov 19 02:48:18 I hope they don't, because as far as I can see their "optional typing" is ultimately dynamic typing. Nov 19 02:48:45 Dynamic typing is pain I wouldn't wish on anyone. **** ENDING LOGGING AT Thu Nov 19 02:59:58 2015