**** BEGIN LOGGING AT Sun May 15 02:59:58 2016 May 15 05:53:27 Is it possible to pass ArrayLists to Fragments without making them Parcelable? May 15 05:57:39 I shall return! May 15 06:41:41 Is anyone able to help me debug an issue - I'm posting a notification via NotificationManager, and it's reappearing after the user removes the app from recents.. May 15 07:31:56 Hi anyone here ? May 15 08:03:37 its sunday May 15 09:06:13 Ashiren: sunday is just another day May 15 09:14:02 How do chat apps realiably trigger chat notifications even after killing the app? Is it AlarmManager + a service? May 15 09:15:46 dimitrovskif: services and GCM registrations May 15 09:16:10 thepoosh: But not every app uses GCM, does it? May 15 09:16:24 every app has a GCM like service May 15 09:16:31 do you have any specific question? May 15 09:16:37 I actually work on a chat app May 15 09:17:00 No specific question, just wondering if a Service is enough to make sure it always runs in background May 15 09:17:11 no, use GCM May 15 09:17:53 Indeed it's not. May 15 09:17:54 For example, closing Messenger, force killing it and killing the service still doesn't prevent message notifications May 15 09:18:01 Pretty much all apps use GCM. May 15 09:18:19 * thepoosh agrees May 15 09:18:25 Using a service will drain battery a lot May 15 09:18:31 dimitrovskif: when the app is open there is a service probably May 15 09:18:40 And Doze will suspend it anyway. May 15 09:18:42 when it's closed, everyone uses a GCM like service May 15 09:18:53 Even when open it's just simpler to use GCM. May 15 09:19:02 Mavrik: GCM has time issues May 15 09:19:05 And even use it for sending. May 15 09:19:23 It only has time issues in cases where your service will have them as well (problematic connectivity) May 15 09:19:33 Hangouts, GMail, Inbox, etc. are all fully GCM May 15 09:19:39 In the two-way mode. May 15 09:19:42 Mavrik: not really May 15 09:19:47 but I agree with you May 15 09:19:48 Is GCM that reliable? What you want to say is that if I want to run a task daily, it would be easier if a server sends one GCM notification to all clients than simply scheduling a service? May 15 09:19:58 yes, GCM is reliable May 15 09:20:25 If you want to run a task daily, then use the proper JobScheduler API instead of GCM. May 15 09:21:00 So, realtime => use GCM ALWAYS; scheduled => JobService May 15 09:21:08 yes May 15 09:21:09 JobScheduler. May 15 09:21:37 JobScheduler creates JobServices afaik May 15 09:21:51 Nop. May 15 09:22:06 Also you might wanna use GcmNetworkManager class which is a backported version of JobScheduler May 15 09:22:21 Or this library: https://github.com/evernote/android-job May 15 09:23:17 dimitrovskif: you can always try Firebase May 15 09:24:16 dimitrovskif: https://youtu.be/Yt75ZIGdJ4Y May 15 09:32:05 Hey guys. Has anyone got any experience with getting location updates while the screen is turned off? I have my app working and a GPX file running but the locationChanged event is never called when I'm on the lock screen. May 15 09:32:44 Are you holding a wakelock? May 15 09:34:57 Mavrik, I have a partial wake lock, yes. May 15 09:35:25 Also is your service a foreground service? Is it being killed? May 15 09:36:36 I can send intents to it from the lock screen and they work fine May 15 09:37:24 That doesn't matter because intents will start a killed service. May 15 09:38:16 Mavrik, Damn, alright. How can I check if it's a foreground service? May 15 09:38:22 Well. May 15 09:38:29 Did you call startForeground() ? :P May 15 09:38:58 No I did not May 15 09:39:10 Then it's not :) May 15 09:39:10 Will do in a sec, thanks! May 15 09:39:45 Note that you probably won't be able to make sure your service keeps running 100% of time. May 15 09:39:54 And running location updates will kill the battery in few hours :) May 15 09:42:52 Alright, well I'm guessing all the Endomondo / Strava apps do the same? May 15 09:43:20 meaning that they run out of battery in a few hours if you use them to track your movement May 15 09:46:13 Psychiatrist, guess so too. May 15 09:46:27 Psychiatrist, of course May 15 09:46:36 High accuracy GPS burns a lot of power. May 15 09:46:53 You won't get more than 3-4 hours on full charge on most phones, usually less than 2 hours if screen is running at the same time. May 15 09:48:20 Yeah it makes sense May 15 09:49:56 There is a low power movement tracking system on the phone (used by Google Now for example), but it's significanly less accurate or reliable. May 15 09:59:28 Mavrik, Thank you so much, I am now getting the updates when I'm on the lock screen. May 15 10:08:11 what is the term called for when i have, for exmaple, a text input field and it says inside it "username" or something and then i click on it and its not actually the current text inside it? like a label? May 15 10:08:54 watermark? May 15 10:09:28 you see it on things like facebook. the search box says "Search Facebook" but thats not the actual text of the input box May 15 10:09:33 im having a mental blank May 15 10:09:49 hint May 15 10:10:09 Ah, thats right! May 15 10:10:13 thanks :* May 15 10:40:26 Placeholder, also May 15 10:40:31 In html at least May 15 10:51:41 hi, so how do I change a package name complete in android studio ? Refactoring seems to only want to change the last part ie com.example.mofo it only wants to rename mofo. May 15 10:51:46 I want the whole domain changed. May 15 10:51:51 howdidoda ? May 15 11:00:48 rename the folders May 15 11:38:07 Guys, is there a way I can start the same notification, that I have in my activity, again in my service? May 15 11:46:32 Psychiatrist, the same? May 15 11:46:44 if you want to override it, just send the same ID May 15 11:46:45 Yeah May 15 11:50:33 danijoo, But how do I add PendingIntents to the new notification from my service? Since the context is not my activity if I start it from a service. May 15 11:53:51 why does it matter what ctx it uses? May 15 12:09:54 Why would this be: I have the source for an application and it compiles fine with Android Studio. But as soon as I add the Admob module I get this error: Error:(29) Found unsupported XLIFF tag May 15 12:10:05 If I remove the Admob module, it compiles again. May 15 12:10:13 *frowns* May 15 12:11:18 Android studio reports that this resource is no a registered uri. May 15 12:27:15 This is a mystery May 15 12:31:35 am using facebook sdk login and I need to check if the user is already logged in. How should I go about it? May 15 12:37:53 this is what ive tried but it does not work: http://ideone.com/hks8rQ May 15 12:40:41 So my power button on my samsung phone is being an asshole. Browsing around trying to find out how to either simulate a press on the power button from within an app (want to make it myself if so), which seems from what I read so far to need to root the phone, which I'd like to avoid. Is it possible to instead of simulating the power button press, bring up the dialog that one gets from a long press on the power button from within an app? May 15 12:42:31 any advice appreciated May 15 12:43:38 OxOO: get samsung to fix your phone May 15 12:54:46 OxOO: you're welcome - I'm glad to help May 15 12:56:23 um May 15 13:12:08 Hi all May 15 13:15:58 when using the facebook sdk, do i need to do sdkInitialize in every class? May 15 13:52:34 Leeds: You know that wasn't the answer I was looking for but thanks anyway May 15 13:53:37 so is a REST api anything that acts as a handshake between app and database (for example) May 15 14:29:22 thornekey: no May 15 14:35:48 quelqun_dautre, i dont get them :C May 15 14:59:57 so can i make a REST api with PHP then? May 15 15:06:57 you can, but you probably shouldn't May 15 15:13:58 Leeds, what would you suggest? May 15 15:52:22 is it possible to change the color of parts of a vector in a vectordrawable? May 15 15:54:17 I have a vector defined in xml with a path with a `android:name` but I don't know if I can access the path from java somehow? May 15 16:03:57 memorion, why not stick an id on it as well? May 15 16:04:31 http://stackoverflow.com/questions/6831506/find-view-by-name May 15 16:05:46 does that work? but what kind of view do I get in findviewbyid then? May 15 16:07:46 Just Ologn speaking nonsense.. May 15 16:07:56 I don't think you can tint anything but the entire drawable May 15 16:08:32 Would probably need to make it multiple VectorDrawables and use a LayerDrawable May 15 16:09:23 No, I'm correct with regards to the second question May 15 16:09:38 okay, kind of useless to give stuff a name then isn't it? thanks May 15 16:10:34 The path is accessible ... whether it can be used in the manner asked in the first question I have not looked into... May 15 16:11:24 I tried to findbyview it and it returned null May 15 16:16:24 Does anyone know from where we can get the sample projects of material motions? May 15 16:16:30 https://www.google.com/design/spec/motion/material-motion.html May 15 16:31:03 Hello May 15 16:31:30 Simple question, should I create my eglWindowSurface when my Surface View is created in the callback function onSurfaceCreated ? May 15 16:31:58 I explain : I'm trying to init correctly my native opengl code, and I'm getting some problems with the surface May 15 16:32:49 When The application starts, I create the opengl context, and in the onSurfaceCreated, I create the eglSurface, but I'm getting an EGL_BAD_SURFACE in eglSwapBuffers... May 15 16:33:27 Here is my javahttp://sprunge.us/QGeK.java May 15 16:34:21 And here is my native code : http://sprunge.us/IGTP May 15 16:34:48 Sorry, the java side : http://sprunge.us/QGeK?java May 15 16:40:54 in MVVM, where does business logic go? May 15 17:21:43 Hi. I want to get all active notifications from the NotificationManager. There is `getActiveNotifications()` but it's for API 23+. I'm using 14+. Is there a way to get them? May 15 17:24:32 hey! how do i test my subscription purchases, seems that testing is not working with static responses for "subs" May 15 17:30:27 how to test subscription purchases, static responses are not working... ? May 15 17:30:59 lxknvlk, upload the app as beta/alpha, add your own mail to the testing group and do real test purchases May 15 17:31:18 well then i need a signed apk that i cant debug.. May 15 17:31:35 lxknvlk: why debug when you can add logs? May 15 17:31:38 lxknvlk, no. you can upload a signed one and the use an unsigned one for debugging May 15 17:31:43 but for inapps static responses were working also on emulator! May 15 17:31:47 it just has to match versionCode May 15 17:32:19 if you sign with the same config, this might work May 15 17:32:37 i managed to make "inapp" static responses work, but they do not work for "subs", as it seems May 15 17:32:48 minas114, your notifications or other apps notifications? May 15 17:32:59 Mavrik, Mine May 15 17:33:14 Mavrik, I guess I could store their IDs in a global list May 15 17:33:15 Then no, you'll just have to keep track of what you're showing. May 15 17:33:26 (And remember, your app may get killed.( May 15 17:34:41 Mavrik, Hmm... I guess I could store them locally in SharedPreferences. May 15 17:35:16 minas114: whats the problem? May 15 17:36:22 lxknvlk, My user can schedule notifications every day, 3 or 7 days. When the schedule changes, I want to deschedule the current pending one and schedule a new one. May 15 17:36:41 so you want to remove a notification? May 15 17:37:13 lxknvlk, Actually I want to cancel an "alarm" that was scheduled by AlarmManager. I should look into that. May 15 17:37:26 as far as i know you cant even get the info on displayed notifications May 15 17:38:07 Mavrik: you can actually register to see which notifications are showing from api 19 (i think) May 15 17:38:38 http://developer.android.com/reference/android/service/notification/NotificationListenerService.html May 15 17:38:44 api 18 May 15 17:39:47 thepoosh, that API isn't mean for tracking your own notifications. May 15 17:39:57 And it requires explicit whitelisting by the user (+ permissions) May 15 17:40:00 Actually now I think better I don't need any of this. I just need to call AlarmManager.setRepeating() with the new parameters. May 15 17:40:09 Using a DB to store notifications is usually the best way. May 15 17:40:20 minas114, why are you using AlarmManager? May 15 17:40:34 Didn't we tell you yesterday to user JobScheduler and not destroy users battery? May 15 17:40:50 Mavrik, It wasn't me :) May 15 17:40:55 Ah. May 15 17:40:56 well, use it May 15 17:40:56 Mixed up. May 15 17:40:57 Well. May 15 17:40:59 :) May 15 17:41:18 minas114, anyway, JobScheduler is significantly less annoying to use because it remembers stuff ;) May 15 17:41:34 Mavrik, Okay, I'll check it out May 15 17:41:43 If you support < Lollipop, use this: https://github.com/evernote/android-job May 15 17:42:05 Set a tag, set timings, power and network status and it'll JustWork(tm) May 15 17:42:07 Mavrik, Yes, I am using 4.0+ May 15 17:42:52 what do you use for your dev machine? May 15 17:42:59 laptop/desktop? May 15 17:43:01 os? May 15 17:43:26 RustyShackleford: is this a general question? May 15 17:43:36 yup May 15 17:43:49 I'm looking to upgrade. Thinkin about a macbook maybe May 15 17:43:57 or perhaps another cheap dell May 15 17:44:06 macbook pro 2012 with 500gb SSD and 8gb RAM May 15 17:44:10 oretty good May 15 17:44:34 i'm shooting for 16 gb ram. Downside of the macbook is that I can't install it myself lol May 15 17:44:52 laptop, Ubuntu 16.04, 8GB RAM, 5550U i7 for me May 15 17:44:52 I got a 15" rMBP May 15 17:45:10 RustyShackleford xps15 is supposed to be pretty good May 15 17:45:13 Don't buy a machine with less than 16G for Android. May 15 17:45:19 lol May 15 17:45:20 :( May 15 17:45:26 thepoosh ! May 15 17:45:34 i forget to get me my sunday mehs May 15 17:45:37 hi g00s May 15 17:45:38 they're also as expensive as macbooks :( May 15 17:45:53 the build quality is just as good from what I could tle May 15 17:45:55 *tell May 15 17:45:58 Yeah, good laptops will cost you like 1500EUR+ May 15 17:46:21 laptops should be avoided if possible May 15 17:46:23 Dell XPS 13/15 series, higherend ThinkPads, ASUS Zenbooks, Apple Macbook Pros are all good machines May 15 17:46:50 True, if you can get away with desktop machine it'll be way faster May 15 17:46:55 price range is about 150% May 15 17:46:56 thepoosh, on one hand I agree. My laptop sits on my desk most of the time May 15 17:47:03 Dell has another good one, i forgot its got a crappy name May 15 17:47:12 but I appreciate being able to unplug it and go May 15 17:47:17 Mavrik, and cheaper (if you dont need peripherals) May 15 17:47:21 having my whole dev environment with me May 15 17:47:22 Much cheaper May 15 17:47:49 Should get 16GB of RAM, a decent quad CPU and a PCIe SSD though May 15 17:47:49 I'm thinking about a ~$500 inspiron May 15 17:47:55 also dont make the mistake to go < 15" if you want to work remotely on the laptop. May 15 17:47:59 I have an SSD I can install May 15 17:48:03 PCIe SSD. May 15 17:48:07 Not some slow crap :) May 15 17:48:08 and I can throw in some more RAM May 15 17:48:21 (New MacBook Pros are faster at compiling stuff than Mac Pros due to those SSDs :P ) May 15 17:48:29 Mine is 13" and I never use it for developing because that screen is soo tiny.. May 15 17:48:58 I just plug it into external monitor everywhere :) May 15 17:49:23 RustyShackleford this one got good reviews http://www.dell.com/us/p/inspiron-15-7559-laptop/pd May 15 17:49:39 Yeah If you can do that its fine. I cant because where I work there are no monitors :p May 15 17:50:01 Ah :) May 15 17:50:06 Funny work that :) May 15 17:50:18 i5's are quad core now, huh? awesome. May 15 17:50:24 its not in the IT industry so this might be the reason :p May 15 17:50:38 i5s were always quads May 15 17:50:43 i3s are dual cores May 15 17:50:52 Ahh, except the low voltage I5s May 15 17:50:59 danijoo_, ah, makes sense yeah May 15 17:51:00 im sitting in a stinky laboratory full of ether and sulfor smell :p May 15 17:51:19 danijoo_, well, time to lobby where to spend that leftover money at the end of the year ;) May 15 17:51:20 danijoo_ wut May 15 17:51:50 forgot to put the evac hoods on ? :D May 15 17:52:25 g00s, remember im a chemist and android is my free time :) May 15 17:52:28 thepoosh i see androidweekly is indeed very meh this time around May 15 17:52:41 g00s: didn't get to it yet May 15 17:52:42 danijoo_ we're all alchemists, try to turn shit onto gold May 15 17:52:46 *into May 15 17:52:51 g00s, haha true May 15 17:53:29 danijoo_ did you hear about that cave discovery last week , i think in Romania ? May 15 17:53:46 cut off from oxygen, everything living down there was like crazy stuff May 15 17:54:27 danijoo_ http://www.bbc.com/earth/story/20150904-the-bizarre-beasts-living-in-romanias-poison-cave May 15 17:55:22 "They get the energy needed… from chemical reactions: the key ones being the oxidation of sulphide and similar sulphur ions into sulphuric acid, or the oxidation of ammonium found in the groundwaters to nitrate," May 15 17:56:44 no radioactive caesium found from chernobyl. thing was sealed off for 5+ million years May 15 17:58:32 g00s, wow. impressive stuff May 15 18:03:18 minas114 just saw this https://www.bignerdranch.com/blog/choosing-the-right-background-scheduler-in-android/ May 15 18:05:00 g00s, Thank you :) May 15 18:09:05 g00s: pure rubbish he said but still gave a link from there May 15 18:09:06 http://imgur.com/9xVdLD9 May 15 18:09:09 shame on you! May 15 18:09:31 thepoosh lol what is pure rubbish ? May 15 18:09:39 check the title of the image May 15 18:10:34 oh - AW - kinda tame May 15 18:11:06 well i'm sure they will have plenty to write about next week :D :D :D May 15 18:12:03 g00s: it will basically be an IO circlejerk May 15 18:12:17 YAYYYY RXANDROID IS IN AOSP May 15 18:12:21 i wonder if we will hear anything about project ARA May 15 18:12:29 ARA? May 15 18:12:33 oh i doubt that thepoosh May 15 18:12:40 yeah the old modular phone May 15 18:12:49 so instead JACK & JILL FOREVERS!!!! May 15 18:13:08 omg, I'm going over the top here... May 15 18:13:15 we thought you would like some more beta software :D May 15 18:13:25 so we put beta software in your beta IDE May 15 18:13:30 yo dawg May 15 18:13:50 so you can beta testing while writing beta software May 15 18:14:11 and you can use it with our experimental ^H^H^H beta gradle build plugin system May 15 18:14:34 thepoosh have you guys used the experimental gradle plugin ? May 15 18:15:01 I cannot confirm nor deny this rumour at the moment, it's all hearsay May 15 18:15:16 :D May 15 18:16:31 thepoosh i used that flexbox layout library, works well May 15 18:16:37 mentioned in AW May 15 18:17:05 the soup to refresh one? May 15 18:17:23 lol no, the flexbox layout one :P May 15 18:18:33 g00s: https://github.com/Yalantis/pull-to-make-sou May 15 18:18:35 https://github.com/Yalantis/pull-to-make-soup May 15 18:18:42 I may have seen this on reddit today May 15 18:18:57 ah yeah May 15 18:20:01 shizzle, i'm going to have to make a custom view. i hate making custom stuff. i guess i could spin this out as a library though May 15 18:20:18 guess i'll have to learn how to publish stuff on jcenter May 15 18:20:28 I will post it on reddit for you so I can karma whore instead of you May 15 18:20:35 lol May 15 18:20:37 g00s: you mean bintray May 15 18:20:41 oh yeah May 15 18:21:03 I would actually want to post some of our SDK code to local maven repos May 15 18:21:16 i have a few things i could probably put out there, but never went through with it because i don't want the headache of supporting it May 15 18:21:20 to allow caching of the builds and removing the need to compile every flippin time May 15 18:21:35 just post it with a WTF license May 15 18:21:55 i'm one of those that believe that you put something out there, you should be at least a bit committed to supporting it May 15 18:22:02 http://www.wtfpl.net/ May 15 18:22:10 well, yeah May 15 18:22:24 also, it might get you some cool gigs like andcon NY May 15 18:22:27 or SF May 15 18:22:42 free food man May 15 18:22:52 lol May 15 18:23:00 a custom tag on SO May 15 18:23:15 omg, the opportunities are endless May 15 18:23:38 heh, until SO decides to go fully corporate only - omg that will be funny May 15 18:24:07 hi May 15 18:24:16 what is Android studio HiDP? May 15 18:24:26 peyam: HiDP? May 15 18:24:46 yes May 15 18:24:49 it in my menu May 15 18:24:54 oO May 15 18:24:57 Android Studio (HiDP) May 15 18:25:10 from name i would assume its for retina-like screen May 15 18:25:12 never seen that May 15 18:25:32 env REQUIRED_JVM_ARGS="-Dhidpi=true" /opt/android-studio/bin/studio.sh May 15 18:25:53 run it and check it out May 15 18:25:59 do text/icons are tiny then May 15 18:26:18 yeah I think so. It's updating right now. cant click it but I will try soon May 15 18:26:49 or huge* May 15 18:27:11 Ashiren. How good are you on android? May 15 18:27:14 dev* May 15 18:28:07 i have current job on android for about 6 months now May 15 18:29:07 I wana ask a question that I have had in almost a year and never got any answer to. and this is my question. I have a Android Stick. and I made an app. I want to navigate my app using the remote control that followed by the usb stick when I puchased it. My navigations methods like ( slide down/slide up and so on) dont work with the remote. What navigations methods should be used when navigating with a remote control? May 15 18:30:46 peyam maybe focus order, etc - stuff for dpads May 15 18:31:05 have to admit, i never paid attention to that May 15 18:31:08 * g00s is bad developer May 15 18:31:14 huh May 15 18:31:24 I am trying to figure out what is more efficient - having the default image in an xml imageview src or using Picasso placeholder and having nothing as the src in xml May 15 18:31:31 g00s, I used d pad as well not working. I tried many methods May 15 18:31:31 peyam i think BLE should work here May 15 18:31:38 BLE? May 15 18:31:58 Bluetooth low energy May 15 18:32:03 min2, many people are confusing my question with "how to make a remote control". Are you sure you understand my problem?? May 15 18:32:21 I am asking because I will be loading a lot of images so anything that can be more efficient and reduce the memory issue that I am having would be fantastic! May 15 18:32:31 as u said your stick is android enable m i right? May 15 18:32:41 bluetooth? May 15 18:32:51 Lonesoldier728 hm, specifying src may do stuff on main thread May 15 18:32:54 * g00s is bad developer May 15 18:33:17 g00s so you are saying picasso placeholder better option? May 15 18:33:31 Lonesoldier728 anything that would decode async off UI thread May 15 18:33:37 yes. it followed with a remote control. let me show you https://www.google.se/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwj6qof129zMAhXBPZoKHcG6BGEQjRwIBw&url=http%3A%2F%2Fwww.alibaba.com%2Fproduct-detail%2F2015-new-Quad-Core-Android-best_60312555783.html&psig=AFQjCNFqWVifPOKbe0Z4r6L2oDJa1iTcPg&ust=1463423590298497 May 15 18:33:41 picasso, glide, whatever May 15 18:34:04 ok thanks May 15 18:34:08 sorry for long url May 15 18:34:13 Lonesoldier728 then again i wouldn't worry about it unless you saw a problem May 15 18:34:25 bitmaps on android are tricky, i can't give much advice May 15 18:34:36 well I have memory issues if a user scrolls to fast down May 15 18:34:44 it crashes the app May 15 18:35:04 use glide or picasso [solved] May 15 18:35:14 Picasso is great May 15 18:35:22 I have picasso already that is the thing, and I did resize as well to make it smaller May 15 18:35:23 if you have ooms then yeah, use something that treats bitmaps intelligently May 15 18:35:55 I am resizing to 320x240 half the image size May 15 18:36:03 but still errors... : / May 15 18:36:08 are you sure its bitmap May 15 18:36:27 or pastebin the code May 15 18:36:33 I am not doing anything special but doing a Picasso.load call from a url that is jpg May 15 18:37:32 ok I have code up http://stackoverflow.com/questions/37084133/out-of-memory-issue-while-using-picasso-and-recycler-view May 15 18:38:02 I checked the answer because the dimensions solved it but did not realize scrolling past the 200th item or so crashes it still May 15 18:40:08 Ashiren - do you agree that Picasso placeholder is better than setting the src of the default picture in xml (before being replaced by picasso) May 15 18:40:31 eeyup May 15 18:40:35 dear all , i want to install Remix os on VPS whuch is created under OpenVZ ? can that be don ? May 15 18:40:36 you can use picasso placeholder fine May 15 18:40:58 You need placeholder to clear the previous image May 15 18:41:15 Other than that, they do the same thing May 15 18:41:34 at least in glide, the .placeholder() just set the image resource May 15 18:41:53 beshoo: is this good channel for that kind of question? May 15 18:42:52 I dont know since Remix ment to be for dev May 15 18:42:56 SimonVT - yeah i figured they do the same thing the question was what is more efficient since I will be loading a list of views with imageviews part of them May 15 18:42:57 which is android-86 May 15 18:43:07 oO May 15 18:43:29 so i am sorry if this is not the correct place ! May 15 18:44:02 never heard of it. but i read this is some kind of android for pc eh? May 15 18:44:09 beshoo: This channel is for app dev, try and see if your question fits on #android or #android-root May 15 18:44:19 peyam can we install any apk inside this stick as this is android stick as its mentioned software Extension: Google Play & APK install May 15 18:44:42 min2, yes May 15 18:44:47 cool May 15 18:45:10 what about sensor capability of this stick did you check ? May 15 18:45:21 Oh , i am sorry so much , please accept my apology May 15 18:46:33 min2, no I havent May 15 18:47:55 cause using accelerometer and Gyroscope we can achieve that May 15 18:49:18 after that only we need to establish connection using BLE between stick and android device having app and send motions 0 right 1 for right May 15 18:53:09 then you can use any BLE chat sample app to communicate between two android devices May 15 18:53:30 Which has absolutely nothing to do with his question May 15 18:55:45 it's just for an idea that how we can send or receive something between two BLE enable devices May 15 18:56:24 He has an android stick with a remote. Navigating his app with the remote doesn't work. May 15 18:59:26 then i think I am thinking wrong May 15 18:59:28 lol May 15 18:59:36 Yep :) May 15 19:08:36 did you guys see this ... http://www.androidpolice.com/2016/05/14/play-store-v6-7-is-rolling-out-with-ability-to-joinleave-betas-developer-feedback-for-betas-and-more/ May 15 19:08:53 last wish list item i have for Play is paid upgrades May 15 19:09:02 paid updates May 15 19:28:19 hello guys May 15 19:28:48 syug olleh! May 15 19:30:10 your_mirror: I can't see myself May 15 19:32:31 LunarEclipse120: hm? May 15 19:33:12 your_mirror: Your nick :P May 15 19:33:51 LunarEclipse120: oooh, so it's your problem ;-) May 15 19:34:06 I was making a joke lol May 15 19:35:56 me too :) May 15 20:11:23 I'm running Android Studio 2.1 and need hardware buttons (rotate orientation, etc. etc.) on the AVD. No matter where i look in 'advanced settings' of the AVD manager, I can not see much options for setting this up. Help? May 15 20:11:43 Cmaj6: Try another device with hardware ones May 15 20:11:51 Cmaj6: Or use a device with them May 15 20:13:12 Just start the emulator and they appear May 15 20:20:03 you can use keyboard shortcuts to do all the functions May 15 20:29:34 Wow, my 8gb of memory is running at 90% May 15 20:29:41 Seems like a lot May 15 20:29:49 AS open, Chrome open with a bunch of tabs May 15 20:29:59 lol May 15 20:30:11 ? May 15 20:31:19 What LunarEclipse120 May 15 20:33:03 drose379: AS and Chrome loves RAM May 15 20:33:26 ah May 15 20:33:31 That explains it I guess May 15 20:36:30 What OS do you use LunarEclipse120 May 15 20:36:40 drose379: Dual boot windows 10 and Linux Mint May 15 20:36:58 Cool, why do you keep windows around? May 15 20:37:21 I like to use them both, and gaming May 15 20:37:26 Ah yeah May 15 20:48:58 Just installed Ubuntu 16.04 and I'm actually liking it LunarEclipse120 May 15 20:49:25 drose379: Well I needed Linux so I can build TWPR May 15 20:49:26 *TWRP May 15 20:49:41 drose379: I've used Ubunutu too; I like Mint better May 15 20:51:33 What do you like better about Mint? Jw May 15 20:54:34 drose379: GUI May 15 20:54:39 I don't like ubuntu's May 15 20:55:17 eh guys May 15 20:55:24 spid3rMin3: Sup May 15 20:56:17 I got an activity with a recycle view , when you click an item within the view it loads another activity with a closer view of the item May 15 20:56:37 when i click the back button on the closer view activity the recycle view refreshes and the place of scroll is gone May 15 20:57:45 I'm calling my onClick listener from an adapter ... and : intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) is needed to get to the next activity May 15 20:58:56 Hmm, what are you doing in onStop of the list activity May 15 20:59:01 Or onStart May 15 20:59:04 spid3rMin3 why new task ... May 15 21:01:05 drose379 : in the onCreate() of the fragment that contains the recycleView it creates the recycleView and assigns the layoutManeger May 15 21:01:18 and g00s, can you explain? May 15 21:01:21 What about other lifecycle methods May 15 21:01:34 I havnt specified them with the class May 15 21:01:59 I assumed that since I never called the .finish() , that the activity would not destroy May 15 21:02:16 spid3rMin3 put a log in onDestroy() May 15 21:02:22 learning time :) May 15 21:03:00 Well if youre just going to a new activity it wont get destroyed right May 15 21:15:47 ok, so if I were to save the activity as a whole, would that also save the items loaded in my recycleView with the scroll amount (items are fetched in random order each time) May 15 21:22:45 should i stay away from git submodules? May 15 21:23:50 Anyone have any ideas on how to make this work? I’ve been spinning my wheels all weekend? http://stackoverflow.com/questions/37231894/using-gson-and-retrofit-2-to-deserialize-complex-api-responses May 15 21:24:48 What a terrible API O.o May 15 21:24:59 What kind of moron puts HTTP response code in the payload. May 15 21:25:36 haha, it’s not technically the http code May 15 21:25:44 it returns 200s even on failures May 15 21:25:44 cv-ess, anyway, wrap it into an object May 15 21:25:59 Like facebook does. But I agree, this API is a disaster May 15 21:26:05 And use @SerializedName() to map names May 15 21:26:18 You'll have to follow the structure with your Java objects May 15 21:26:23 And perhaps ease your pain with getters May 15 21:26:37 Ah. May 15 21:26:44 I guess IDs change right_ May 15 21:26:45 ? May 15 21:26:58 yeah, this is a really simplified example for a really messy API May 15 21:27:08 but it illustrates the problem May 15 21:27:33 Hrmf. May 15 21:27:42 object and sub-objects are returns “flat”, per object May 15 21:27:47 Well yeah, you could create a type adapter May 15 21:28:00 I’m ready to pull what little hair I have left out May 15 21:28:02 But I've never parsed a complex structure with those. May 15 21:28:03 with the type adapter May 15 21:28:15 dealing with generics in the type adapter rather May 15 21:28:40 Hmm, do you have to deal with those? May 15 21:28:51 well, how else do I handle the wrapper? May 15 21:28:53 E.g. you could map the whole structure into a single Employee object? Or is it too complex? May 15 21:29:01 Basically say May 15 21:29:44 yeah, I see what you mean. So I could have Gson just straight map all the fields to an EmployeeResponse object May 15 21:29:52 https://gist.github.com/izacus/1b6f29c3c080bc02e2b15cc5763d6b4d May 15 21:29:54 and then map that to the Employee object I actaully want May 15 21:30:08 And then register a type adapter for Employee.class May 15 21:30:12 Which eats up the whole block and fills in the fields. May 15 21:30:25 It's probably going to be messy, but I don't think you can parse such API in a pretty way. May 15 21:31:06 yeah, that’s def an option. it’s messier also because I need to handle the singular non-list version too May 15 21:31:42 That's fine, since you can do the same May 15 21:31:55 class MyEmployee { @SerializedName("data") Employee employee } May 15 21:32:38 yeah, I think that might be the best way to do this May 15 21:33:00 I have a few of those around, haven't found a better way May 15 21:33:08 okay, thanks. let me try this. considering I’ve spent my entire weekend working on this one issue that I expected to take like 20 mins May 15 21:35:27 Hello May 15 21:36:22 Hum... With native application, where should I pass the Surface to my native code ? I have a SurfaceView which is connected to a SurfaceCallback and if I pass the surface got by the older, I have an EGL_BAD_SURFACE during my eglSwapBuffer May 15 21:58:54 If I have a question about the DOM xml parser, is this the appropriate channel or should I head over to #java? May 15 21:59:43 weeell May 15 21:59:46 You can try both. May 15 21:59:58 Use simplexml May 15 22:00:50 Well my question is... why am I getting a FileNotFoundException when calling connection.getInputStream()? May 15 22:02:17 You'll have to provide more info :) May 15 22:02:30 Since the obvious answer to this is... you're opening a file that doesn't exist? :P May 15 22:02:51 Haha one sec.. girlfriend called me lol May 15 22:02:59 no one has a hint about initialise opengl ? May 15 22:03:48 Gaulois94, I doubt there's many game developers here plus your info about what you're doing was very scarce. May 15 22:03:49 Okay done with that call.. May 15 22:04:27 Mavrik: Only trying to init my surface ^^" May 15 22:04:34 So, I'm simply opening a connection to a URL, using an HttpURLConnection, and I want the InputStream from it May 15 22:05:34 Dear lord I think I know what im doing wrong.. May 15 22:05:37 Hold up May 15 22:06:56 https://upload.wikimedia.org/wikipedia/commons/1/14/Rubber_Duck_(8374802487).jpg May 15 22:11:40 +1 rubber duck May 15 22:19:10 Nope, still doesnt work May 15 22:43:39 eh guys May 15 22:45:26 from google docs : http://pastebin.com/Q8Lzg8P0 May 15 22:45:55 using this method , adds a backbutton but once clicked it restarts the parent activity May 15 22:46:26 while the smartphone back button reverts back to the activity at the state it was navigated away from May 15 22:46:36 anyone know whats up with that ? May 15 22:48:38 Are you extending AppCompatActiivty May 15 22:49:34 in the child activity ? yes May 15 22:49:48 http://developer.android.com/training/implementing-navigation/temporal.html#back-fragments May 15 22:57:21 Hi, I'm trying to save a file using this code (https://gist.github.com/anonymous/abd7af04210e07741173429da33aa6a1). It saves the files, but I have to reboot my phone to see new files. What am I doing wrong? May 15 22:59:10 Bam_Bam: see the files how? May 15 22:59:35 mtp browser in windows explorer May 15 23:00:04 they don't show up in the directory listing until I reboot the phone May 15 23:00:45 Leeds: ^ May 15 23:00:57 meh, mtp May 15 23:01:53 noob question: I made the mistake of checking the "always use this device" checkbox in the device chooser. Now I want to uncheck that... so how the heck do I get the device chooser panel back to do that? Google is failing me on this. :-p (this on macosx, if that matters) May 15 23:03:04 broofa: I think you can simply close and re-open android studio. It prompts me each time I open it. May 15 23:07:07 based on 'What the Fragment?' session at I/O - sounds like they may have gotten some new features May 15 23:10:44 does anyone have any ideas what I need to do to make MTP show newly created files? I've not found anything that works on stackoverflow or google yet May 15 23:21:48 Bam_Bam: nope, not working for me. still no chooser. :-/ May 15 23:22:49 sorry, I've never had that problem. I think my problem can be fixed by using mediascannerconnection at least. May 15 23:36:56 in the i/o app, the bio for romain says 'works on Android graphics and UI technologies at Google' -- did he switch back into the platform team ? May 15 23:37:06 i thought he was doing robotics or something May 15 23:45:50 Anyone ever seen this: Attempt to write to field 'android.support.v4.app.FragmentManagerImpl android.support.v4.app.Fragment.mFragmentManager' on a null object reference May 15 23:46:03 yeah i see that now and then May 15 23:46:10 usually seems to be my mistake May 15 23:46:25 just a terribly confusing error message ;) May 15 23:46:33 Exactly May 15 23:46:38 What the heck does it mean? May 15 23:46:46 uh i forgot :( May 15 23:46:52 Ah alright May 15 23:46:57 Thanks anyways May 15 23:47:00 it means you messed up :D May 15 23:47:08 Basically May 15 23:48:55 hi guys im trying to get a android app started in intellij but i always come across an Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. I installed appcompat-v7 and support-v4 May 15 23:48:57 it even installs some dependencies with it, but i still get the error. I'm using API 23 and the support repository is 23 as well. I'm using 23.4.0 for the version of appcompat and support-v4 and still cant figure out what the problem seems to be May 15 23:49:17 any ideas about that? May 15 23:49:28 make sure your apps theme inherits from that May 15 23:49:44 if it doesn't, appcompat complains May 15 23:50:09