**** BEGIN LOGGING AT Mon Jul 18 02:59:58 2016 Jul 18 03:36:21 hey , in my .xml file , marginTop do spacing between top of the screen and the element and not between the element itself and the one above it Jul 18 03:39:42 then put marginTop on the right element Jul 18 03:48:46 but should not it consider the element above it and not the top bar Jul 18 03:56:02 you're putting it in the wrong place, so of course it appears wrong Jul 18 05:09:43 Jack compiler is ready enough? Jul 18 05:14:45 anuj its still RC afaik so "no", not until its stable, i guess when nugget is stable ? Jul 18 05:15:33 then again, maybe its not tied to nugget, maybe stable afterwards Jul 18 05:16:08 ok. So i should be away from it for production purpose :) Jul 18 05:16:25 probably :) Jul 18 06:37:35 hi guys Jul 18 06:38:19 guys, I wonder if you have ever used when developing ndk in C. Jul 18 06:39:42 when I try to use atomic_compare_exchange_strong(), I get unresolved external symbol. Jul 18 06:39:59 can I use these for developing ndk at all? Jul 18 06:44:58 Hi, I'm using on my androidTest manifest but it doesn't work. Any solutions? Jul 18 06:53:33 Nevermind, put it on wrong module's manifest :/ Jul 18 07:09:43 Hello Jul 18 07:09:52 I need a quick help with a widget I'm working on Jul 18 07:10:09 I'm trying to use the Widget Preview app I have installed in my phone to take a screenshot of my widget. Jul 18 07:10:21 the thing is that when I use the Widget Preview app and display my widget Jul 18 07:10:27 the height of the widget is too low Jul 18 07:10:29 I mean Jul 18 07:10:34 hi?What is the name of the activity started by RecognizerIntent.ACTION_RECOGNIZE_SPEECH? Jul 18 07:10:35 it's hiding some content in that widget. Jul 18 07:11:13 is it related to the minHeight that I set up in the xml file? Jul 18 07:11:32 good morning Jul 18 07:14:15 Hello snooky, are you familiar with widgets? Jul 18 07:15:14 no. i'm new @ android Jul 18 07:25:02 join #android Jul 18 07:25:09 ;O Jul 18 07:32:14 Ashiren: do you have a moment to talk about our lord and saviour #android-dev? Jul 18 07:52:46 having a problem where a ListPreference is running several times onSharePreferenceChanged Jul 18 08:04:35 kostodo: that is probably because there is more than one place in which you're changing the value in SharedPreferences Jul 18 08:07:56 Ashiren: have you seen this? Jul 18 08:07:57 https://applidium.com/en/news/unbundling_pokemon_go/ Jul 18 08:08:03 I've rewritten a CursorLoader/CursorAdapter/GridView setup into a CursorLoader/RecyclerView setup, following https://github.com/androidessence/RecyclerViewCursorAdapter but I'm now struggling implementing onClick events (on each grid item) Jul 18 08:08:48 I've seen that onClick has been changed/dropped since RecyclerView, but still there are ways to achieve it. But what's the simplest approach? Jul 18 08:09:12 I mean, setOnItemClickListener has been dropped Jul 18 08:09:33 joakimk: interfaces Jul 18 08:11:56 thepoosh: would you please elaborate? :) Jul 18 08:12:56 joakimk: http://stackoverflow.com/a/24933117/1056359 Jul 18 08:13:38 thanks, I just read that. Was just unsure whether that was the best way to go about it. I'll have at it then :) Jul 18 08:14:35 if it has over 600 upvotes, it's probably not bad Jul 18 08:21:02 thepoosh: sure, just trying to understand. However, what made me unsure about that post was that it (to me) doesn't seem to cover having "dynamic" content, from a cursor...? It does attach onclick listeners, but only to static, predefined UI-fields? Jul 18 08:21:18 Now, disclaimer: I have most likely not understood the SO post ;) Jul 18 08:23:46 sounds like it Jul 18 08:24:09 the data that is represented in the recycler view should probably be passed on upon a click event Jul 18 08:24:16 to allow the outer classes to react Jul 18 08:26:54 Where's the best position for a ProgressBar on the screen? Jul 18 08:27:23 גקשג בקמאקר Jul 18 08:27:26 dead center Jul 18 08:27:36 center_in_parent Jul 18 08:30:55 Hmm Jul 18 08:31:10 I'm thinking it might be a good idea to hide all the components in the layout and just show the loading button Jul 18 08:31:24 or just switch to a new layout which has only the loading icon Jul 18 08:31:48 from experience this is a bad idea Jul 18 08:32:43 What would be the best way to go about it? I'm not sure how to place the loading icon in the middle overlapping all the existing components Jul 18 08:33:01 yes, using a ProgressDialog Jul 18 08:33:06 which is over the view Jul 18 08:33:08 probably Jul 18 08:35:38 How do you set the ProgressDialog to be over the view? Jul 18 08:39:32 Think I found something Jul 18 08:47:54 I now wish I didn't use LinearLayout Jul 18 08:54:06 markyosullivan: if you use ProgressDialog you won't have any issues with the LinearLayout Jul 18 08:54:39 Ew, ProgressDialog Jul 18 08:55:09 SimonVT: haters will hate Jul 18 08:55:36 I don't think any modern app uses that anymore Jul 18 08:56:14 SimonVT: What you recommend instead? Jul 18 08:56:29 Just a ProgressBar in the layout Jul 18 08:56:35 SimonVT: facebook does that all the time Jul 18 08:56:50 Yeah I'm just using a ProgressBar Jul 18 08:57:24 Though I've converted my view so the layout which contains the ProgressBar will look like it's overlapping, darkening the background and showing the ProgressBar Jul 18 08:57:31 Really? Jul 18 08:57:44 thepoosh: Yeah but the Facebook app is shit Jul 18 08:58:04 is that why they have the (probably) largest DAU and MAU in the world? Jul 18 08:58:33 Is it when creating new posts? Jul 18 08:58:34 App quality doesn't reflect on the DAU Jul 18 08:58:43 Snapchat is shit Jul 18 08:58:48 still has lots of users Jul 18 08:59:17 Facebook is the biggest social network, so you're going to get people using regardless of how much of a battery drain their app is Jul 18 09:00:00 battery drainage has nothing to do with ease of use Jul 18 09:00:01 Snapchat is the same thing, biggest user base, want to use a competitor, sure go do it and send snaps to yourself because all your friends are on snapchat Jul 18 09:01:10 thepoosh: Yeah it's pretty easy to use Jul 18 09:01:30 think that is what causes a design to be good Jul 18 09:02:04 Anyway, for most things you don't want to use ProgressDialog.. Stuff like loading content, simple actions Jul 18 09:03:38 what I like the most is a ProgressBar in the Toolbar Jul 18 09:04:35 * raoul11 pokes thepoosh Jul 18 09:04:39 sup Jul 18 09:04:48 SimonVT: you see? he poked! Jul 18 09:04:51 headache, work, rinse, repeat Jul 18 09:04:54 I was poked Jul 18 09:05:02 u liek it /: Jul 18 09:05:14 raoul11: I thought you were busy being sick Jul 18 09:05:17 Pokes belong on facebook Jul 18 09:05:23 lol Jul 18 09:05:31 apparently my chickenless chicken soup fixed me Jul 18 09:05:47 i havnt been on facebook since 08 Jul 18 09:05:49 YAY!!! Jul 18 09:05:55 come back Jul 18 09:05:57 we miss you Jul 18 09:06:17 irc4lyfe yo Jul 18 09:06:33 irc is essential :p Jul 18 09:06:53 where else would me meet such wonderful helpful spiteful people like thepoosh if not on irc? Jul 18 09:07:23 on the android dev facebook group Jul 18 09:07:30 @_@ Jul 18 09:07:57 whatcha doing nowdays thepoosh ? Jul 18 09:08:08 raoul11: working @glide Jul 18 09:08:14 yeah Jul 18 09:08:17 sitting in a meeting with Apptimize Jul 18 09:08:18 on what. Jul 18 09:08:25 kk Jul 18 09:08:30 it's ok Jul 18 09:08:36 they are talking about conversions Jul 18 09:08:41 don't care about that Jul 18 09:09:00 dem conversions, so hard Jul 18 09:09:10 whats you guise business model again? Jul 18 09:10:44 go back in time and win lottery Jul 18 09:10:47 it cant fail Jul 18 09:10:54 Probably get lots of users, get VC money, sell to (facebook|microsoft|google) Jul 18 09:11:05 https://i0.wp.com/cdn.crowdfundinsider.com/wp-content/uploads/2014/09/Southpark.png Jul 18 09:11:10 raoul11: ^ Jul 18 09:12:02 right Jul 18 09:12:29 i still got like 2-3 weeks of work b4 deployment thepoosh Jul 18 09:12:34 feels like eternity Jul 18 09:12:55 raoul11: need some freelance code review? Jul 18 09:13:07 YOU SUCK AND YOUR CODE CRASHES!!! Jul 18 09:13:15 i do all Jul 18 09:13:27 debug, design, code, deploy, cry, cry some moar Jul 18 09:13:30 if you need some free tweaks i can help Jul 18 09:13:49 ill let ya have a look when its on alpha on the play store Jul 18 09:13:54 yay Jul 18 09:14:00 and you can tell me how shit it is Jul 18 09:14:16 then offer me a job in your QA automation dpt Jul 18 09:14:32 :D Jul 18 09:25:44 Whats a good way of sending a new url to my webview in mainactivity my settingsactivity onsharedpreferencechanged? Jul 18 09:29:21 I think the app I'm working on atm is due to be released at the end of the week Jul 18 09:31:47 Well I've been told to try and get it out by the end of the week Jul 18 09:46:19 hi, i have an intellij question. i have a project at https://github.com/watabou/pixel-dungeon, how would I add https://github.com/watabou/PD-classes as a dependency in intellij? It doesn't seem to be gradle project. I added it as a module, but it still isn't detecting the PD-classes repo modules Jul 18 09:54:24 Hi all. Is it possible to 'tint' a selector. I have a selector which uses blue icons. Can you change the color in code? I know that I can make another selector but I'm wondering if you can do this in code Jul 18 09:57:51 Hello Jul 18 09:58:52 How can I show a message at X hour in Y day? For example: Show "Hello World!" at 20:00 from Monday to Friday Jul 18 10:00:40 learnhelp, this should help you. https://developer.android.com/guide/topics/ui/notifiers/notifications.html Jul 18 10:02:06 lignux Thank you :) . I am going to take a look Jul 18 10:09:57 lignux It shows How can I create a message. But the first I do not know How can I say to my SmartPhone "Ehhh every FRIDAY you have to show a notification AT 20:00" Jul 18 10:11:28 learnhelp, im sorry but i have trouble understanding what you are saying right now.. Jul 18 10:13:46 he wants to have some kind of cron, where the action is a notification, like a repeated alarm Jul 18 10:13:57 how can I refresh my webview after a setting has been changed in preferences? Jul 18 10:14:50 shambat, well everything he needs is in the link then. Jul 18 10:20:51 lignux: yeah, he should probably read the article :) Jul 18 10:24:27 onSharedPreferenceChanged, value changed, load new url into webview in mainactivity. Anyone? Jul 18 10:26:23 Check whether the value changed when the Activity is resumed Jul 18 10:26:42 Or use startActivityForResult and check when it returns Jul 18 10:27:16 SimonVT, my main activity says it doesnt have onResule Jul 18 10:27:31 lignux That page show: A build of message in Android, that is ok. But before that, I have to CHECK the sistem hour and if it is 20:00 for example then it builds the message. Jul 18 10:27:47 onResume obviously Jul 18 10:28:02 All activities does Jul 18 10:28:24 SimonVT, so super.onResume? Jul 18 10:28:29 thats what its suggesting Jul 18 10:28:43 Uh, no idea what you're talking about Jul 18 10:28:46 Override onResume, check Jul 18 10:28:55 Or startActivityForResult, check in the callback Jul 18 10:29:42 SimonVT, ok will override onresume Jul 18 10:29:50 learnhelp, then check the system and build the message ;) Jul 18 10:29:54 but how do I know preference value was changed? Jul 18 10:30:05 i mean i can query the settings, but how to know its a new value? Jul 18 10:30:30 how can I edittext when a text insert disappears when you click on? Jul 18 10:31:01 what i must write in the xmt at the edittext? Jul 18 10:31:14 xmt? Jul 18 10:31:35 xml Jul 18 10:31:36 in the field should be looking for. and if you want aufwählt the field looking for the disappearance Jul 18 10:31:49 in the field should be looking for. and if one is to select the field looking for the disappearance Jul 18 10:32:02 sry for google translate Jul 18 10:34:39 you know what i mean? Jul 18 10:36:16 lignux I was thinking about it. Can I take advantage of Alarm in Android to build my own app? Jul 18 10:37:15 learnhelp, if your app needs it then sure i guess Jul 18 10:37:20 I think Alarm satisfy all my needs Jul 18 10:37:57 glad to hear it :) Jul 18 10:39:02 Is there an Alarm class or something like that, to use it in my own app? Jul 18 10:39:35 lignux Jul 18 10:40:30 learnhelp, by what i understood about what you need i think this might help you https://developer.android.com/training/scheduling/alarms.html Jul 18 10:43:48 lignux Ok, thank you :) Jul 18 10:47:13 lignux Other question. Do you know if I can use Java in Android? I know that Android is built with Java, but Could I use for example: String[] arraystr; arraystr=new String[3]; Jul 18 10:47:55 Sorry for the question but I have not install Android IDE on my laptop Jul 18 10:49:52 android:hint="search" Jul 18 10:49:57 that i have searched Jul 18 10:51:53 snooky: I know xml Jul 18 10:52:19 It's a super set of html ? Jul 18 10:52:31 or xhtml even Jul 18 10:53:38 learnhelp, yes you can use Java in Android :D. How about you install Android Studio and try to follow some tutorials or books just to get a hang of it? Jul 18 10:57:13 lignux Ok, perfect, thank you Jul 18 10:58:51 is there an online website i could use to compile an android app ? Jul 18 10:59:05 if one would like to forego setting up the ndk + sdk Jul 18 10:59:29 or perhaps a linux virtualbox image that has all these preset tools available? Jul 18 11:25:05 https://www.youtube.com/watch?v=Oym7B7YidKs Jul 18 12:03:35 I need to make that run a specific androidTest test, and make the androidTest regular task to ignore it. How can I do it? Jul 18 12:05:54 Hey, Is there a mapping somewhere between a buildtools version and the respective version of it's dependencies like appcompat-v7 ? Jul 18 12:27:34 how can i have the android emulator update its Play Games app? It's outdated and asking it to update does nothing Jul 18 12:33:27 I need to make that run a specific androidTest test, and make the androidTest regular task to ignore it. How can I do it? Jul 18 13:58:02 Hey, im doing several times replace() with add to backstack, and then I perform an add() on another fragment, i this case I have 2 fragments on the screen on top of each other. I'd like to remove the top fragment (that was added)... if I pop the backstack, the bottom fragment gets reloaded ... any idea why? Jul 18 13:58:26 I'm using the add() transaction, so I could keep the state of the bottom fragment.... Jul 18 14:01:26 to clearify, I have to fragments bottom one is in the backstack, I add a fragment on top of it...., when I pop it... the bottom one gets recreated, is that normal? Jul 18 15:29:49 Supporting back to API 16, how do I get all the available data directories? ContextCompat.getExternalFilesDirs(...) returns only a single entry for API < 19 Jul 18 15:34:19 you can't, pretty much Jul 18 15:34:30 Up to you to implement Jul 18 15:36:22 you could try going up the directory tree from getExternalFilesDir() until you reach another filesystem and then iterate all the available mount points from there, maybe Jul 18 15:38:11 I'm thinking if build a set of directories, getFilesDir() + getExternalFilesDirs(...), that should suffice? Jul 18 15:38:35 What's it for? Jul 18 15:39:43 Picking a folder to download files to Jul 18 15:39:48 read/write Jul 18 15:40:15 Ultimately, we're just trying to save files to the SD card Jul 18 15:40:49 Probably shouldn't download to internal storage Jul 18 15:40:53 http://eclipser.xmms2.org/git/xmms2-android.git/tree/src/org/xmms2/util/StorageUtil.java I did this to find all the music directories that there might be Jul 18 15:41:03 might use something similar for download directories Jul 18 15:41:06 Unless it doesn't matter that it disappears on uninstall Jul 18 15:56:09 Cool. Thank you Zharf Jul 18 16:10:32 is there a similar listener for edit text components like setOnQueryTextListener for the search view component Jul 18 16:14:50 You can add a TextWatcher Jul 18 16:16:53 Ah, yes, Ive added that and implemented the methods, Theyre a bit different to SearchViews.. obviously. Mind taking a look? http://ideone.com/W4t3Bf Jul 18 16:19:29 Is it the submit thing you want? Jul 18 16:19:58 correct, I think have it though.. does Editable have to be converted toString Jul 18 16:20:00 cos i did that Jul 18 16:20:02 You can do that by setting an OnKeyListener, and listening for KeyEvent.KEYCODE_ENTER Jul 18 16:20:19 Oh i see Jul 18 16:21:59 And remember to only do it on ACTION_UP https://developer.android.com/reference/android/view/KeyEvent.html#ACTION_UP Jul 18 16:22:02 Otherwise it happens twice Jul 18 16:22:41 Oh, thanks for the tip Jul 18 16:37:21 SimonVT, i wrote this: http://ideone.com/FvrZvJ but it isnt working :/ just making a new line on the text edit Jul 18 16:38:57 Ah yeah, you need https://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions Jul 18 16:39:14 SearchView uses actionSearch, which gives you a search button Jul 18 16:39:39 oh, its not actually a SearchView component. Thats just the variable name. Jul 18 16:40:07 Was just an example :) Jul 18 16:40:07 Its a edit text Jul 18 16:40:10 oh i see Jul 18 16:49:11 Hello Jul 18 16:49:26 So I'm a guy that's trying to make an open-source library for AR rendering Jul 18 16:49:35 And I have a question Jul 18 16:49:52 Is it worth making the engine in C++? Or Java is fine? Jul 18 16:49:59 I mean I want it to be super fat Jul 18 16:50:01 fast * Jul 18 17:00:14 AR? Jul 18 17:03:23 Ashiren, Augmented Reality i think Jul 18 17:04:49 making new engine is a big deal Jul 18 17:09:46 final N preview out Jul 18 17:16:46 how do i make the keyboard go away once i am done writing in my edit text, am already using KeyEvent.KEYCODE_ENTER Jul 18 17:20:02 Hello Jul 18 17:25:30 I want to show a message "Hello World" at 20:00 from Monday to Friday Jul 18 17:25:41 I am using AlarmManager class and there is a method: "setExact" which I do not know if it could help me to set an hour (in this case: 20:00) Jul 18 17:26:09 Any ideas? Jul 18 17:27:25 apparently setExact drains battery Jul 18 17:27:46 not necessarily, but it does mean the system can’t delay it in order to save battery Jul 18 17:27:47 hello, I'm struggling to fix an issue on my asynctask for my fragment. on post execute string result is null when I run in debug mode Jul 18 17:27:48 http://pastebin.com/jPE35nG0 Jul 18 17:27:58 statute logs and so as statuss Jul 18 17:28:00 ah i see, s73v3r Jul 18 17:28:08 not sure how i can fix this Jul 18 17:28:44 learnhelp: see if you can get away with using set, which will allow the system to delay execution by a little bit in order to align that alarm wakeup with other wakeups Jul 18 17:29:53 DarkChaoz: It’s because you’re returning null Jul 18 17:30:08 on doinbackground? Jul 18 17:30:14 yes Jul 18 17:30:14 so what do i replace return null with? Jul 18 17:30:22 whatever your result is Jul 18 17:30:29 read the docs on async task Jul 18 17:31:09 https://developer.android.com/reference/android/os/AsyncTask.html Jul 18 17:31:09 string result isnt needed because the result is stored on statusListTextOnly from the for loop Jul 18 17:31:36 but when i run it, the listview isnt populated because string result is null Jul 18 17:31:42 should i replace it with void? Jul 18 17:31:49 no, you should return your result Jul 18 17:32:10 although I’m not seeing where you acually use result Jul 18 17:32:13 s73v3r Ok, so with set my alarm at 20:00 could sound at 20:05 (for example) and with setExact my alarm could sound at 20:00 (more exactly). Am I right? Jul 18 17:32:33 yes, although in practice I don’t know if it would be that for apart Jul 18 17:33:42 can I return statusListTextOnly as a result because that array contains all the tweets Jul 18 17:34:08 s73v3r Ok, perfect Jul 18 17:34:12 you’ll have to change the generic types of your AsyncTask, cause right now it’s expecting a result of String Jul 18 17:34:35 ok, let me change it around and see what happens, Jul 18 17:34:45 also need to intialize it as null first Jul 18 17:35:03 but when you say that it’s not populating the list cause the result is null, where are you seeing that? Jul 18 17:36:18 when I debug the emulator, I see it on the postexecute line Jul 18 17:36:36 what is null? Jul 18 17:37:06 there is a reddit AMA tomorrow Jul 18 17:37:10 I do not understand: triggerAtMillis parameter (of set method), the documentation says: "long: time in milliseconds that the alarm should go off, using the appropriate clock (depending on the alarm type)." Jul 18 17:37:11 i have a few questions :D Jul 18 17:37:12 let me check debug again Jul 18 17:37:45 g00s: as in asking Reddit anything, or is it something Android related? Jul 18 17:38:01 android related Jul 18 17:38:25 seems like the engineering team Jul 18 17:39:03 debug log says result = null Jul 18 17:39:36 the result parameter? Of course that’s null, cause that’s what you returned from doInBackground Jul 18 17:39:43 but you’re not using it, so what does that matter? Jul 18 17:40:05 g00s: “Please note that we want to keep the conversation focused strictly on the engineering of the platform." Jul 18 17:40:16 because after the async task is completed the listview isnt populated despite the array is filled with the tweets Jul 18 17:40:47 “Why the fuck did you decide to make shit as complicated as you did, even though you did it after systems that were much simpler.” Jul 18 17:41:03 let me show you the ss Jul 18 17:41:04 DarkChaoz: what does your array variable have? Jul 18 17:41:15 "time in milliseconds that the alarm should go off", I do not understand if I type one minute, then the alarm turn off in one minute (no matter if I check that alarm) Jul 18 17:42:00 its a string arraylist which contains text tweets Jul 18 17:42:51 no, i mean when you debug Jul 18 17:43:01 http://imgur.com/mj7Z6Ed Jul 18 17:43:21 the screenshot doesn’t matter Jul 18 17:44:36 hold on Jul 18 17:45:28 debug says statustextonly = arrraylist size = 20 Jul 18 17:45:49 and contains the text tweets for all 20 items Jul 18 17:45:50 in on post execute Jul 18 17:45:56 ? Jul 18 17:46:16 whoops no, thats doinbackground my bad Jul 18 17:46:20 hold on Jul 18 17:47:29 do i log statustextonly in postexecute and run it as normal to check? Jul 18 17:48:51 not sure how to check that from postexecute Jul 18 17:50:17 or set a breakpoint like you did for result Jul 18 17:51:03 on what the setlistadapter? Jul 18 17:51:09 *setadapter Jul 18 17:51:19 sure. Jul 18 17:55:34 yeah on postexecute status has a size of 20 items Jul 18 17:56:19 and did you look through them to make sure they were the right thing? Jul 18 17:56:51 yeah the items listed is correct Jul 18 17:57:39 why do you pass a listview into your asynctask if you don’t use it? Jul 18 17:58:33 i'm trying to populate the listview from the arraylist but not sure if I done it right Jul 18 17:58:55 thats what im trying to do, is populate the listiview with the statustextlistonly arraylist Jul 18 17:59:27 i know that, but I’m not seeing why you pass the listview into the asynctask if you’re not using it Jul 18 18:00:17 I added listview oncreate view and created a bindlistview function Jul 18 18:00:27 i know that Jul 18 18:00:30 i thought that would do it. Jul 18 18:00:42 so why are you passing the listview into the asynctask? Jul 18 18:01:37 because im not sure how to return the array so i can use setadapter on create Jul 18 18:02:11 on your layout, what size is the listview? Jul 18 18:03:20 matches parent Jul 18 18:04:26 http://pastebin.com/mHyt8Fjr Jul 18 18:04:27 what happens if, in onCreate, you were to skip the bindListView thing, create an array of Strings, create an adapter, and then set it to the list view? Jul 18 18:05:04 that’s your fragment’s layout? what about the activity>? Jul 18 18:05:49 is there any issue with the tab layout xml for where the fragment is loaded to? http://pastebin.com/jLq3NaBs Jul 18 18:06:26 i see two appbarlayouts Jul 18 18:06:35 and I see a viewpager Jul 18 18:06:42 s73v3r these days i'm more excited when i can increment my minSdk , than when i can increment my targetSdk ;) Jul 18 18:06:50 what’s your code for adding the fragment to the screen Jul 18 18:07:06 http://pastebin.com/TVnGV941 Jul 18 18:08:17 if I'm using a setResult() can I finish() the activity or should I use startIntentForResult()? Jul 18 18:08:34 I know I've done this before but I can't seem to dig up any examples Jul 18 18:09:38 DarkChaoz: Is getItem in your fragmentPagerAdapter ever called? Jul 18 18:10:05 grekkos: Yes, in the started Activity you just setResult and then finish Jul 18 18:10:58 not at the moment no Jul 18 18:11:06 that’s your problem Jul 18 18:11:13 it’s never being added to the screen Jul 18 18:11:20 http://stackoverflow.com/questions/16149778/how-do-i-use-fragmentpageradapter-to-have-tabs-with-different-content Jul 18 18:11:56 SimonVT: alright thanks, trying to figure out why the onActivityResult() of the parent activity isn't being called Jul 18 18:12:18 oh, but on the emulator the async progress dialog appear so I assume its been loaded Jul 18 18:12:26 nope Jul 18 18:13:34 oh so do i just copy that switch case and slightly edit it and it will work? Jul 18 18:13:56 i don’t know if it’ll be that simple Jul 18 18:14:04 but you’re going to need to get your viewpageradapter working Jul 18 18:14:18 i see. Jul 18 18:14:35 so my twitter fragment is fine though? Jul 18 18:14:42 i think so Jul 18 18:14:54 I see, I'll look into the activity part then Jul 18 18:15:00 thanks Jul 18 18:25:24 if a service is killed by android, How can I make it to start again if the user doesn't open my app Jul 18 18:27:31 I don't think that's possible Jul 18 18:27:48 unless you could make another service to make sure your service is running Jul 18 18:28:02 but then what if that service was killed? Jul 18 18:28:06 grekkos: how can I make another service, if the user doesn't open y app? Jul 18 18:28:09 s73v3r: exactly Jul 18 18:28:10 haha Jul 18 18:28:22 crised: they would have to open your app Jul 18 18:28:28 that's what I would expect anyway Jul 18 18:28:39 Return START_STICKY from onStartCommand, Android will restart it later Jul 18 18:28:46 ah there you go Jul 18 18:29:01 SimonVT: Android will restart it? Jul 18 18:29:07 Yes Jul 18 18:29:07 even if the app doesn't start? Jul 18 18:29:16 Yep Jul 18 18:29:20 SimonVT: cool Jul 18 18:29:37 SimonVT i thought commons guy said start_sticky isn't working any more ... Jul 18 18:29:43 on 6+ anyhow Jul 18 18:30:15 android team keeps fucking / neutering services Jul 18 18:30:19 I don't follow him Jul 18 18:30:32 But it's not deprecated at least Jul 18 18:30:46 not deprecated - just 'silent change in behavior' ;) Jul 18 18:31:10 How does it work now then? Jul 18 18:31:23 SimonVT: Can I start an activity if the app is not running from a service? Jul 18 18:31:29 WIll android allow this? Jul 18 18:31:43 You want Activities to randomly pop up on a users device? Jul 18 18:31:51 That sounds annoying Jul 18 18:32:17 SimonVT: yes, right, that behaviour probably is not allowed by Android Jul 18 18:32:38 As a user, I wouldn't allow that Jul 18 18:33:16 SimonVT: I guess, that's what notifications are used for Jul 18 18:33:23 Pretty much, yeah Jul 18 18:33:52 how do chat head programs work, then? Jul 18 18:34:19 I think it’s possible to do, but yeah, it would be annoying as fuck if abused Jul 18 18:34:51 Chat heads aren't activities Jul 18 18:35:02 there’s not an activity backing it? Jul 18 18:35:11 Service and WindowManager Jul 18 18:35:15 Just a View Jul 18 18:35:40 ok. I guess alarms would be what they mean, then Jul 18 18:35:51 although I don’t think that’s started from a service Jul 18 18:35:55 Is there some way I can give a value back to the Parent intent when a child intent ontop of the parent is being closed ? Jul 18 18:36:47 I don't know how alarms are implemented, or if android even disallows starting activities from services Jul 18 18:37:02 But you very rarely want to do that Jul 18 18:58:07 is there a way in Android Studio to have an interactive output of a connected device? Jul 18 18:58:55 SimonVT: an alarm app, should have a running service, and start an activity when the right times comes Jul 18 19:09:06 Looks more like a notification on the 5X Jul 18 19:13:05 well I figured out why my onActivityResult wasn't being called... Was looking at the wrong code... for an over an hour Jul 18 19:16:47 SimonVT: Am I right? Jul 18 19:21:28 About? Jul 18 19:22:00 SimonVT: (14:58:55) crised: SimonVT: an alarm app, should have a running service, and start an activity when the right times comes Jul 18 19:22:51 No. Jul 18 19:23:08 :D Jul 18 19:23:27 crised that would be a 1-* app Jul 18 19:23:59 g00s: oh.. you would use an Android alarm that initiates the activity when the times comes? Jul 18 19:24:48 crised: SimonVT> Looks more like a notification on the 5X Jul 18 19:24:53 Was my response :) Jul 18 19:25:03 SimonVT: what is 5X? Jul 18 19:25:06 honestly not sure what the latest technique would be, AlarmManager, JobScheduler, etc .. but yeah something like that. maybe decompile Google Clock Jul 18 19:25:18 g00s: I see Jul 18 19:25:26 Nexus 5X Jul 18 19:26:33 g00s, for alarm you use alarms. Jul 18 19:26:39 C'mon, it's not hard -_- Jul 18 19:26:52 :D Jul 18 19:26:58 i haven't done it in a while Jul 18 19:27:56 Still, what you wrote makes no sense. Jul 18 19:28:06 Why would you use a JOB SCHEDULER to scheduler an ALARM? O.o Jul 18 19:28:19 oh my bad Jul 18 19:28:24 i get the 2 confused sometimes Jul 18 19:29:50 i thought AlarmManager was deprecated though Jul 18 19:30:43 or is AlarmManager just deprecated for the use case JobScheduler can do Jul 18 19:31:22 homerj, what do you mean interactive output? Jul 18 19:31:58 touch events Jul 18 19:32:05 explain Jul 18 19:32:05 almost like a remote desktop Jul 18 19:32:14 so, like vysor does it? Jul 18 19:33:04 yeah, well, here's my situation, dropped the phone, screen is black Jul 18 19:33:42 never had a need for a display on my pc before, if I wrote something, I could just use it on the device itself Jul 18 19:33:44 not the case now Jul 18 19:33:59 g00s, it's not deprecated, they're just different level apis Jul 18 19:34:08 like fused-location vs. locationproivders Jul 18 19:34:54 homerj, if the device has usb debugging on vysor should be able to help you Jul 18 19:36:49 Zharf, yes Jul 18 19:36:53 exactly what I needed Jul 18 19:41:27 guys... a good way to add tasker integration in an app? Jul 18 19:41:34 or a good guide Jul 18 19:43:02 I wasn't aware Jul 18 19:43:09 of Vysor Jul 18 19:51:44 Zharf, thanks a lot Jul 18 19:52:10 this will be useful when I get a new device and I write a new app Jul 18 20:01:47 Can I swipe between activities? Jul 18 20:02:36 I just joined the channel, but sounds like you need to use a ViewPager Jul 18 20:04:18 Cus normally when I start another activity it pops out from screen and stretches over another Jul 18 20:15:14 you can't swipe between activities Jul 18 20:15:23 not like a viewpager at least Jul 18 20:23:30 i can install OpenWrt with sysupgrade.bin? Jul 18 20:25:30 instead of factory.bin? Jul 18 20:30:46 i've just seen this https://applidium.com/en/news/unbundling_pokemon_go/ Jul 18 20:33:46 i can install OpenWrt with sysupgrade.bin instead of factroy.bin? Jul 18 20:42:05 Hello Jul 18 20:42:40 I'm trying to send an Object[] with Object[0] being a byte[] using "am broadcast". Any idea how I can do this? Jul 18 20:46:00 you’re likely going to not want a generic Object array. You probably want an actual object, with one of the members being a byte[] Jul 18 21:01:07 My onRequestPermissionsResult() always returns 0 in the "grantResult" variable even though it is Denied in the Settings->App->MyApp Jul 18 21:01:10 Hmm Jul 18 21:10:19 Anybody ? Jul 18 21:14:03 Check again? Android doesn't return granted for permissions that aren't granted Jul 18 21:16:40 SimonVT: Might it be becuse the target SDK is lower then 23 ? Jul 18 21:17:06 Yes Jul 18 21:17:07 So theoretically its always granted since its installed in the first place? Jul 18 21:17:09 requesting permissions doesn't work target < 23 Jul 18 21:17:28 why are you even bothering with requesting if you aren't targeting at least 23 Jul 18 21:17:39 Ahhh .... ok but how will it work if a device with SDK > 23 tried and use the app? Jul 18 21:17:45 ignored Jul 18 21:17:52 Ohh ok Jul 18 21:18:03 that's what you're testing, right??? Jul 18 21:18:11 Yes I am Jul 18 21:18:20 so yes, it's ignored Jul 18 21:18:24 and always returns as granted Jul 18 21:18:30 Thanks man appreciated ! Jul 18 21:26:13 According to Java the type of the extras is ([Ljava.lang.Object;) so I'm not sure what you mean Jul 18 21:32:50 Does anyone here have any experience with the MediaPlayer? I seem to be having problems with it and streaming from an internet URI; errors are here: http://pastebin.com/uLPhpwJU code is here: http://pastebin.com/kEa1ywEJ any help is appreciated! Jul 18 21:46:04 how does one properly handle a task manager killing your app in the middle of database disk I/O? Jul 18 21:46:13 is it enough to make everything transactional? Jul 18 21:59:29 Hello everyone! I have got a problem with dependency injection with Dagger 2 (specifically with sub-components). I believe I'm missing something obvious since this is my first experience with Dagger 2 (have been using Dagger 1). I have asked the question on Stackoverflow, but haven't got any answer yet. Here is the question: https://stackoverflow.com/questions/38443188/dagger-2-sub-component-injection-error Jul 18 22:00:11 I really appreciate your help Jul 18 22:22:21 wooo travis is missing api 24 right now Jul 18 22:22:22 https://travis-ci.org/square/picasso/builds/145677513 Jul 18 22:22:29 I'm also seeing it in my build Jul 18 22:28:12 yiati: https://code.google.com/p/android/issues/detail?id=216390 Jul 18 22:28:28 What is TODO comment? like // TODO Jul 18 22:28:38 I mean it changes color to blue Jul 18 22:28:46 SimonVT: Cool thanks for the link Jul 18 22:29:42 I want to add my custom tag like TODO Jul 18 22:29:54 for comment Jul 18 22:31:07 Search for TODO in settings, you can add more tags Jul 18 22:38:18 SimonVT: I want a "note" tag Jul 18 22:38:46 should it really go in TODO? Jul 18 22:40:02 There's specific support for TODO tags, there's even a tab for it at the bottom.. if you want your tags to be highlighted and show up there, add it in settings.. otherwise it's just regular comments Jul 18 22:41:10 if i understand correctly android uses multiple sources to determine the device location. what happens if they are inconclusive? e.g. wlan router mac location says "A" and GPS says "B"? Jul 18 22:41:48 I did but "note" tag in TODO makes sense? Jul 18 22:44:09 oh my laptop's battery is dying Jul 18 22:44:16 later Jul 18 22:44:27 Does "note" comments make sense? That's pretty much what all comments are Jul 18 22:45:03 SimonVT: but in "TODO" section.. Jul 18 22:45:22 unless its todo note Jul 18 22:45:31 IMO no Jul 18 22:46:01 ok thx later Jul 18 22:53:06 so support 24.1.0 just bugfixes ? Jul 18 22:53:42 looks more like a 0.0.1 release Jul 18 22:56:31 "Calling Fragment.setUserVisbileHint() will no longer cause a fragment to become started if the hint has been added to a FragmentTransaction that is not yet committed" ... man the corner cases these guys bring upon themselves ... Jul 18 22:57:21 with these kinds of problems, i think its good indication time to start over Jul 18 22:57:33 (with Fragments anyhow ...) Jul 18 23:19:27 hi all Jul 18 23:19:38 everyone can helped me with an listview? Jul 18 23:21:12 just ask. if someone can help, they will Jul 18 23:22:35 i have an listview => http://nopaste.linux-dev.org/?1119496 <= and i will update the listview on line 93. what must i do? Jul 18 23:25:56 so everyone can helped me? Jul 18 23:32:50 a pity Jul 18 23:33:34 what is your guys' opinion on this? Currently I do a web call and process some json into an object. I have a custom cache written that then stores that object. Do you guys think it's better if the object holds on to a reference of the original web call and stores that to the cache or is what I'm doing okay? Jul 18 23:33:43 I'm not really sure if I explained that exactly right Jul 18 23:34:34 so actually it's more of when you do web calls and process those responses into json or something, do you hold on to the original json and parse in the accessors or you process the JSON and then create the object and pass that object around? Jul 18 23:34:50 s/into/from Jul 18 23:36:05 pass the object around Jul 18 23:36:17 JSON is not type safe. An object, once you’ve created it, can be Jul 18 23:38:27 Hi guys! When I call setBackgronudColor() in the code on my View it losts riple effect which it has before setBackgroundColor invocation. How do I save both ripple effect and custom background color for my element? Jul 18 23:41:23 create a ripple drawable Jul 18 23:42:37 thanks all for not help Jul 18 23:45:46 snooky yw :) Jul 18 23:47:18 what? Jul 18 23:50:53 s73v3r: yeah I know that, that's partly the advantage to that. I wouldn't pass around the json itself necessarily but hold a reference to that json in the object. the object would then have to parse out the json every time it was accessed Jul 18 23:51:14 in the object you pass around? Jul 18 23:51:22 does the JSON change that much? Jul 18 23:51:28 well Jul 18 23:51:34 the advantage is if there's some bug in the processing Jul 18 23:51:47 how is that an advantage? Jul 18 23:51:57 If there’s a bug, you’re screwed either way Jul 18 23:52:00 with data caching the bugged parsed code is cached Jul 18 23:52:16 the other way i still have the original "pristine" copy of the json Jul 18 23:52:29 so when I update the code the bug is fixed Jul 18 23:52:29 but how is the object that gets passed around going to use that? Jul 18 23:52:46 the object being passed around knows how to pull out the right data Jul 18 23:52:48 https://code.google.com/p/android/issues/detail?id=183525 Jul 18 23:52:50 it's kind of replacing fields with methods Jul 18 23:52:52 wtf windows/android Jul 18 23:53:22 you’re talking about storing the JSON in your cache, not in the object Jul 18 23:53:23 our iOS guys do it, and I know iOS is slightly different (because it's not type safe so it's easier for them to do that) Jul 18 23:53:44 I gave them a lot of crap about doing it that way but I'm starting to see some benefit to it Jul 18 23:54:03 mostly just wanted some other people's opinions on it Jul 18 23:54:58 that's interesting, pfn Jul 18 23:55:29 saving the JSON in your database is ok, but I wouldn’t bother putting it in the object Jul 18 23:58:23 ah Jul 18 23:58:27 that's not a bad idea Jul 18 23:58:42 I guess I could save the json when I get it in the cache Jul 19 00:10:10 grekkos there is also this port of sqlite to android with json1 extension https://github.com/requery/sqlite-android Jul 19 00:10:16 i haven't used that though Jul 19 00:10:51 https://www.sqlite.org/json1.html Jul 19 00:12:35 s73v3r osx 10.11.6 :) Jul 19 00:14:51 i think i saw that Jul 19 00:15:00 question is , will Cleveland make it though the week ... Jul 19 00:16:13 they made it through Lebron brining the title back Jul 19 00:17:44 * OverCoder bootstraps pfn Jul 19 00:17:53 what Jul 19 00:18:03 Nothing, I'm just dead bored Jul 19 00:18:16 Anybody interested into hiring me for a freelance job for cheap? :/ Jul 19 00:18:59 OverCoder i'll hire you if you pay to work for me ;) Jul 19 00:19:13 lolwat Jul 19 00:19:17 haha Jul 19 00:19:30 I had to read that twice :P Jul 19 00:20:51 how cheap? maybe I’ll secretly outsource my job to you and take the week off :D Jul 19 00:22:39 haha Colbert looks like Caesar Flickerman Jul 19 00:24:31 s73v3r, as cheap as you like :P Jul 19 00:24:41 s73v3r, $5 per hour Jul 19 00:24:41 I’ve got $5 Jul 19 00:24:41 :P Jul 19 00:24:45 lol Jul 19 00:24:50 s73v3r will you be able to do the needful while gone though ? Jul 19 00:29:24 i’m so used to Swift enums that I’m forgetting how Java enums work Jul 19 00:30:12 I just want to go someVar = MyEnum(“char”); and have that spit back the appropriate enum value Jul 19 00:56:49 Is it possible (smart?) to use Picasso to save images to storage? We have ~200MB of images that would probably be annoying to download every cold-start. Picasso looks real nice, but not sure if it can do this Jul 19 00:59:42 Guys, does anybody have issues with Google Play Developer Console statistics? I see last day in the record is 15th of July. Jul 19 01:00:00 It seems that it simply stopped to record my app's statistics at all Jul 19 01:01:13 ResidentBiscuit: there's no way to save to a file without going through decoding to memory and then re-encoding. what's wrong with just downloading using an HTTP client? Jul 19 01:07:09 JakeWharton: You mean, just do the downloading myself? No problem really, Picasso just looks helpful. But if the shoe doesn't fit, I will look at alternatives Jul 19 01:09:53 yes, Picasso is not for this Jul 19 01:58:58 for tomorrow's android AMA, is asking about GMS version on emulators on topic ? i always wonder who's more responsible for that, i guess GMS guys ? Jul 19 01:59:46 emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3 Jul 19 01:59:46 Hardware-accelerated emulation may not work properly! Jul 19 02:00:02 Can someone help me with this error? Jul 19 02:00:30 ax562: your local CPU vendor, maybe? Jul 19 02:01:16 ax562: do you have a truly ancient CPU in your dev machine? Jul 19 02:02:10 yup pretty old Jul 19 02:05:06 ax562 which one, out of curiosity ... i have a Core 2 but haven't tried the emu lately Jul 19 02:05:19 mostly just because, the emu always had out of date GMS lol Jul 19 02:05:33 it's amd duo core Jul 19 02:05:54 my system was stolen I'm trying to work with what I got, an older amd machine Jul 19 02:06:07 to be honest I don't even know the exact processor Jul 19 02:06:10 let me check Jul 19 02:06:24 no thats cool, was wondering if we had the same uP Jul 19 02:06:56 from what i gather the newest haxm doesn't work with Intel Core 2 either Jul 19 02:06:58 might be the new emulator Jul 19 02:08:01 and the hardware lol Jul 19 02:08:08 well I finally got it to load Jul 19 02:08:18 but it's pretty much useless :( to slow Jul 19 02:16:39 Hello all! Jul 19 02:17:20 anybody here could help me understand a snipet of code? THXS Jul 19 02:39:54 man, support lib 24.1.0 is a freaking trainwreck (at least on my 6.0 device)! Jul 19 02:40:58 wtf, my PreferenceFragment entries now have different margins from each other ... Jul 19 02:42:09 Going for an interview tomorrow. SHould have java core and java threading questions. ANyone have a good list of java centric interview questions? Jul 19 02:43:42 and my NavigationDrawer - selected item fg & bg is the same color **** ENDING LOGGING AT Tue Jul 19 02:59:58 2016