**** BEGIN LOGGING AT Mon Jul 11 02:59:58 2016 Jul 11 03:17:42 With eclipse, if you hit the wrong key, it would mess things up, in a way that was undoable Jul 11 03:17:52 AS is better in that regard Jul 11 03:20:12 well as seems to be unusable for me Jul 11 03:20:16 just have 2 gb ram Jul 11 03:20:38 seems like its disk swapping and my hard drive is super slow Jul 11 03:20:42 welp Jul 11 03:20:47 back to eclipse Jul 11 03:28:19 a while back, i thought some community was going to continue the development of ADT - is that still happening? Jul 11 03:29:02 Ologn that talk was pretty good Jul 11 03:29:35 but even in slides, i found no references / links to that data structure or 'psycharts' Jul 11 03:30:16 Was it? I'd like to do some OpenGL -> OpenGLES stuff but other things are prioritized Jul 11 03:30:26 It would be cool to port neverball to Android Jul 11 03:30:55 Someone already kind of did it on Gingerbread Jul 11 03:31:55 well there was reference to u rochester research paper on that lockless queue Jul 11 03:32:03 I went to UR for a year Jul 11 03:38:23 Ologn one thing i liked about the talk , is he talked about architecture - @ 11:25 he begins, i think this is where a lot of people on /r/androiddev keep getting things wrong Jul 11 03:38:44 so often the discussion is what libraries to throw at it Jul 11 03:39:07 but this is real architecture, we have a non-functional constraint and need to make this work, how ? Jul 11 03:41:41 I'll watch it if I have some time Jul 11 03:42:08 anyone know whats up with my rom Jul 11 03:42:11 i wiped Jul 11 03:42:18 but not full formatted Jul 11 03:42:25 I was thinking of doing a photo app - collage/effects/whatever as my next app. But that would probably take too long, be too complex for what I want to do. Jul 11 03:42:27 and each time i install the rom it addes 3 gigs Jul 11 03:42:41 Maybe I'll punt on it...I started writing one two years ago and punted back then Jul 11 03:42:45 even though im doing a factory wipe Jul 11 03:43:19 oh and im not just installing the rom Jul 11 03:43:21 I install the rom Jul 11 03:43:25 then dirty flash my old rom over it Jul 11 03:44:02 its the only way to get all my stuff back Jul 11 03:44:22 tibu doesnt put them all back in their folders Jul 11 03:44:23 freekevin read topic Jul 11 03:44:25 which is annoying af Jul 11 03:44:37 ? nougat preview? Jul 11 03:44:53 all of the topic ;) Jul 11 03:44:54 frykevin - #android-root Jul 11 03:45:15 can someone tell me why im getting this error? Jul 11 03:45:18 Error:Execution failed for task ':app:mergeDebugResources'. > [drawable/logo] D:\andriodProjects\Geochatter\app\src\main\res\drawable\logo.png [drawable/logo] D:\andriodProjects\Geochatter\app\src\main\res\drawable\logo.xml: Error: Duplicate resources Jul 11 03:45:29 g00s Jul 11 03:45:35 im using android studio Jul 11 03:45:38 get to work dev'ing a proper restore app then , lazy bastard Jul 11 03:45:43 kingargon thats common, google it :) Jul 11 03:45:57 k Jul 11 03:46:12 kingargon you will add exclude directives to your build.gradle Jul 11 03:46:24 I used to have a t-shirt that said Fry Kevin Jul 11 03:47:05 It was medium size or something, so too small for me Jul 11 03:47:08 kingargon something like https://github.com/google/iosched/blob/master/android/build.gradle#L116 Jul 11 03:47:18 Ologn lol as opposed to free him? Jul 11 03:47:21 was it yellow? Jul 11 03:47:29 what is the 'd' directory Jul 11 03:47:32 I think it was dark brown Jul 11 03:47:36 its full of 0 byte files Jul 11 03:47:45 /d Jul 11 03:48:16 We were going to go counter-protest free kevin people but the guy with the shirts took the train in from out of town and arrived too late Jul 11 03:56:38 Ologn who is kevin, why does he have to be freed ? Jul 11 03:57:22 @g00s that worked! thankyou! Jul 11 03:57:38 CedricBeust tensorflow book https://manning.com/books/machine-learning-with-tensorflow Jul 11 03:58:25 g00s, he hacked into DEC a long time ago, if anyone remembers DEC... Jul 11 03:58:34 * g00s used to work for dec Jul 11 03:58:39 wow Jul 11 03:58:56 but i dont remember anything about that :D Jul 11 03:59:06 My friend used to have a PDP in his basement...he still does, as far as I know Jul 11 03:59:35 I have two tricked out Sparcstation 20s in my closet Jul 11 04:00:59 :D Jul 11 04:01:24 the team i was on was EDA tools Jul 11 04:03:02 I remember in the early 1990s they had some CAD stuff at Rochester and everyone thought it was awesome...people were blown away by that generation of CAD software Jul 11 04:04:38 i remember using mentor graphics then on some apollo workstations Jul 11 04:04:47 at least i think it was mentor Jul 11 04:05:12 oh thats always nice Jul 11 04:05:26 I just stubbed the toe I fractured 5 months ago really hard Jul 11 04:06:51 RustyShackleford just cut it off, gets in the way ! Jul 11 04:07:30 RustyShackleford i hope you got it looked at, 5 mos ago :) Jul 11 04:07:53 yeah man. I saw the x ray Jul 11 04:08:07 of course I waited like 5 days to see the doc Jul 11 04:11:14 What I learned was that your pinky toe is important for walking lol Jul 11 04:11:16 CedricBeust: Sorry for bothering you. But are you an OP in #android-root? Jul 11 04:14:55 RustyShackleford hm, not as important as big toe :D Jul 11 04:16:11 well it sucked pretty good man Jul 11 04:16:28 I guess it could have been worse haha Jul 11 04:16:41 guessing thats the one you hurt Jul 11 04:16:47 yeah Jul 11 04:17:34 is it possible to build an shell script into an app: not in the resources but just built in the code? Jul 11 04:17:41 and execute Jul 11 04:21:35 Tims_Tech, I don't know what that means Jul 11 04:21:52 I want to built an shell script into the app's code Jul 11 04:21:52 just built into the code? Jul 11 04:21:55 yes Jul 11 04:21:58 A Unix shell script? Jul 11 04:22:02 yes Jul 11 04:22:44 You want to run a script during the build process or you want the app to run shell scripts? Jul 11 04:23:15 I want my app to execute that shell script. Jul 11 04:23:21 without extracting Jul 11 04:23:44 So you want the app users to have that script Jul 11 04:23:51 yes Jul 11 04:24:32 but they I don't want that they can acces that script in any way Jul 11 04:25:28 Ologn, any idea how to do that? Jul 11 04:31:01 Tims_Tech, not sure how to access the adb from an app Jul 11 04:31:18 I did not say adb Jul 11 04:31:25 I said shell script Jul 11 04:33:30 shmooz https://www.reddit.com/r/androiddev/comments/4s5rbl/whats_your_minimum_api_level/ Jul 11 04:33:42 add gingerbread to the comments ! Jul 11 04:34:38 g00s, ok I will do it Jul 11 04:35:25 I don't see how Froyo is 100% Jul 11 04:35:38 One of my apps still has Eclair users Jul 11 04:36:04 shmooz oh somebody put api 10 already Jul 11 04:36:33 I posted: 100 % 10!!! Jul 11 04:37:01 ;-) Jul 11 04:37:20 yeaah Jul 11 04:38:12 I have 81 current Eclair users Jul 11 04:39:19 Ologn what does engagement look like for those ? Jul 11 04:39:55 g00s, I don't have engagement really tracked on that app Jul 11 04:40:28 My last APK with Eclair for them was in April 2012 Jul 11 04:46:34 i have minSdk=19 too, would like 21 actually Jul 11 04:58:13 why accessibility service turns off in galaxy s6 edge and some other devices also. reported by users. any workaround devs? Jul 11 04:59:21 ask samsung :) Jul 11 05:00:24 they say its Android bug :P Jul 11 05:01:41 so... they take the source, don't test, then blame someone else when things aren't turned on and/or work? lovely ... Jul 11 05:02:04 seems so Jul 11 05:02:38 evon some xperia series has the same problem Jul 11 05:04:01 bankai_ too many cooks in the kitchen :D Jul 11 05:04:26 in samsungs? looking at the quality of crap they've been producing lately, i'd say far too few Jul 11 05:04:41 looks pretty, ship it! Jul 11 05:05:18 bankai_ i mean in the whole ecosystem ;) Jul 11 05:06:17 chinies are doing good. low cost devices. use it for a year, throw it afterthat get a new one. Jul 11 05:09:03 g00s: my minimum API is 3, cupcake! Jul 11 05:09:30 shmooz you disappoint! why not minSdk=1 ? Jul 11 05:10:17 because it doesn't have a sweet name Jul 11 05:10:29 1 and 2 are called just Base Jul 11 05:11:15 and I never thought of putting 1 or 2, but maybe it will just work if I do Jul 11 05:11:18 min api 3 ! can i have a look to the app somewhere. wonder what is it Jul 11 05:12:20 t2mkn: ok, it's a media player app and if you're lucky it might even stream shoutcast radio stations Jul 11 05:12:35 t2mkn: what kind of phone will you be testing it on? Jul 11 05:13:02 my wifs old samsung device. android 2 or 3 i guess :) Jul 11 05:13:23 I uploaded an apk of it a couple weeks ago here http://cybersage.net/with/xwatch.apk Jul 11 05:14:06 oops, sorry, it was http://cybersage.net/xwatch/with/xwatch.apk Jul 11 05:14:31 Forbidden :( Jul 11 05:14:39 doh! Jul 11 05:14:47 VIRUS Jul 11 05:14:58 no it's not a virus Jul 11 05:15:08 I'm just blocking lotf of IP ranges Jul 11 05:19:23 ok I unblocked his IP, now he can get it ;) Jul 11 05:20:00 if anyone else wants to try it , go ahead , let me know if it works, it's not fully complete, but it should play local audio/video files Jul 11 05:23:49 t2mkn: if it's crashing it's because of some bug on some devices with extracting album art from audio files which I haven't fixed yet, but I also uploaded a version without the album art stuff Jul 11 05:24:36 it works on most devices for me with the album art version though Jul 11 05:28:30 shmooz: crash just after taping on play button Jul 11 05:28:47 t2mkn: do you have any audio/video on device? Jul 11 05:29:31 try again, and select a file from the listview first Jul 11 05:29:40 ooohoooo there is no video files in here. lol. Jul 11 05:30:17 t2mkn: you can click the top left corner icon to change the mode from video to audio Jul 11 05:30:56 playing music. wow. :D Jul 11 05:31:37 t2mkn: cool! yeah it crashed when you pressed play because it didn't have a history of anything played before I guess Jul 11 05:32:00 ya Jul 11 05:32:10 t2mkn: in the settings you can change the theme from dark to light and stuff Jul 11 05:33:08 without restarting the app or stopping the music :) Jul 11 05:36:44 t2mkn: if you click on where it says Local Storage and change it to Internet while in Audio mode, it will list some shoutcast radio stations Jul 11 05:37:08 ooo let me try :) Jul 11 05:37:50 but you need to have it connected to the net, and that part again works on some devices and not others, due to the custom AACdecoder lib I used Jul 11 05:39:52 hello Jul 11 05:40:29 any idea why the heck Android mounts SD card with noexec? Jul 11 05:43:23 morfin for good reasons Jul 11 05:43:40 to keep users like you from doing silly things :) Jul 11 05:43:50 that's why i rooted phone:D Jul 11 05:44:00 I want to upgrade my computer situation. Do you guys dev on a laptop or a desktop? Jul 11 05:44:02 to do things i am not allowed to do Jul 11 05:44:04 morfin anyhow, show your code / stacktrace Jul 11 05:48:19 g00s: you should be curious enough to try my app Jul 11 05:48:40 on the Nexus 7 about half the shoutcast stations work Jul 11 05:49:05 on my old gingerbread HTC phone , ALL the streaming audio stations work! Jul 11 05:52:13 on my Moto G 2nd gen, unfortunately none of the streaming stuff works :( Jul 11 05:52:32 Hi everybody! I'm creating a custom View by extending LinearLayout. The thing is, I'd like to add child views to my view via xml. How do I get a list of these children in my custom view? Jul 11 05:54:30 g00s i was just testing for now Jul 11 05:55:02 anybody know - c++-shared still does not unwind stack after an exception? Jul 11 05:55:09 on 4.0 Jul 11 06:00:52 https://developer.android.com/ndk/downloads/index.html this page says that stack unwinding does not happen after an exception and program just exit without calling destructors which leads to uncommited transactions, unfinished IO etc etc Jul 11 06:09:58 how do i begin programming my own in house navigation software Jul 11 06:28:07 Find out what exactly you want to build. Jul 11 06:28:54 What do you think of json-io as a json-serialization library https://github.com/jdereg/json-io compared to gson? Jul 11 06:33:43 if you only want serialization, it might be a good fit, but if you're doing any sort of generic JSON handling aside from that you'd need another library anyway. Jul 11 06:40:15 So if you want need to modify any json such as adding a subtree or removing a parent then you need something like gson or jackson? Jul 11 06:44:04 pretty much - at least, might be possible to write code that does that with json-io, since it does have support for generic maps/arrays, but it'd take more effort than gson. Jul 11 06:48:28 OK, thanks. I haven't found any good documentation or examples to do it with json-io Jul 11 07:29:03 Is it against admob ToS to put an add below the main buttons that are meant to be clicked a lot? Jul 11 07:30:08 no clue, but I'd punch whoever does that Jul 11 07:31:58 Zharf: it's nice that I'm probably hundreds of KM away from you then :P Jul 11 07:32:15 Zharf: and I've seen this tactic on other apps Jul 11 07:32:48 I tend to rewrite apps with ads to get them for myself without the ads Jul 11 07:32:59 if the app is useful and doesn't have an option to remove asds Jul 11 07:33:00 ads Jul 11 07:34:06 Zharf: I'm in a messed up situation and scruples are a luxury that I can't afford right now Jul 11 07:42:59 hello. for a 2D GL game, is it practical to save the full state and release resources on pause, then restore everything upon resume? should I resist pausing as much as possible by disabling orientation/keyboard/screens size state changes? Jul 11 07:47:20 kirillkh: I don't see anything wrong with disabling state changes in a GL game Jul 11 07:54:52 pduin: ok. still, I have to handle the case when the user "alt-tabs" out of the game and then comes back Jul 11 07:55:31 pduin: is keeping the state exactly as is as long as the OS doesn't kill the process a good idea? or should I go ahead and develop a serialization mechanism? Jul 11 07:55:37 True, being able to save and restore state is pretty tricky, but important Jul 11 07:57:23 Kind of depends on your game, really. If you have a game with somewhat linear progression you might get away with saving at certain checkpoints in the game. Jul 11 08:18:05 I hate how you can't choose the desired result from search in d.android.com with arrow keys Jul 11 08:29:46 Clicking on that AdMob Ad Unit test ID doesn't do anything, right? Jul 11 08:30:28 Actually, it kinda makes sense that it won't do anything because it's not linked to my ID Jul 11 08:41:33 Hi! What is the best way to pass bitmaps from one activity to another? The bitmap is too big to use a intent extra, so I tried using a temp file but that was too damn slow Jul 11 08:43:47 pass a handle Jul 11 08:45:29 What excpetion do you get? Jul 11 08:51:29 Hello, can i delete the whole generated folder? Jul 11 08:51:41 It has literally thousands of files with broken dependencies Jul 11 08:51:54 will it get generated again when building again? Jul 11 08:52:14 I mean, the build folder Jul 11 08:54:12 Twirl: ./gradlew clean Jul 11 09:08:18 can I delete the files in .gradle folder? Jul 11 09:10:16 yep Jul 11 09:18:01 * lut4rp yawns Jul 11 09:18:07 what a terribly slow day Jul 11 09:18:13 hate mondays Jul 11 09:22:37 barq: How do I do that? Jul 11 10:02:27 Hello to everybody! :) Jul 11 10:08:57 I am a beginner in android development, I am trying to make an application that displays vaious data from JSON data fetched from the internet. I admit, I have made most things based on different tutorials, and I am sure I have mixed up something. I am facing a strange error message which I don't know how to solve... Jul 11 10:09:33 tothbalint: then link the error Jul 11 10:10:16 here is the stacktrace and (I think) all the relevant files: Jul 11 10:10:17 https://gist.github.com/tothbalint/a5aa1c28b4060d90882fa1e10eda998b Jul 11 10:11:21 basically I have a RecyclerView with items parsed from the JSON data, and when I try to click on a list item, I get the error no view found for the fragment Jul 11 10:11:30 which should open after the click event Jul 11 10:12:36 No view with id fragment_container exists wherever you're trying to add SingleTicketFragment Jul 11 10:15:50 Gosh, I had a typo in the id of FrameLayout :( Jul 11 10:16:11 I am so sorry, I was banging my head against this for 2 days already Jul 11 10:16:46 SimonVT, thank you very much, you just saved my day :) Jul 11 10:17:16 I would like to ask an other thing, if I may Jul 11 10:18:47 on SingleTicketFragment I am planning to add an other RecylerView but it would not be the parent element in the layout, I would like to show some details of that ticket with a couple of textviews, and put the recyclerview under that. Is that possible, or the RecyclerView has to be parent element? Jul 11 10:19:23 No problem in that Jul 11 10:20:22 I have to put the same ViewHolder and Adapter classes inside the file, right? Or is there something needed to be changed? Jul 11 10:20:25 hello Jul 11 10:20:42 anybody uses linux and android studio 2.1.2 ? Jul 11 10:21:12 litledot, I am using that with Ubuntu 15.10 Jul 11 10:21:39 can you please tell me which java you installed ? Jul 11 10:22:47 at home i have both - jdk1.7 and jdk1.8 Jul 11 10:23:01 but lately i use only jdk1.8 Jul 11 10:23:27 litledot, I have this on my machine Jul 11 10:23:29 java version "1.8.0_91" Jul 11 10:23:30 Java(TM) SE Runtime Environment (build 1.8.0_91-b14) Jul 11 10:23:30 Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode) Jul 11 10:24:08 How you installed jdk1.8 ? I installed oracle jvm and openjdk but i can't compile anything with android studio 2.1.2. gives me error with java Jul 11 10:24:08 litledot, and I have followed this when I installed Android Studio Jul 11 10:24:09 http://askubuntu.com/questions/634082/how-to-install-android-studio-on-ubuntu Jul 11 10:25:14 i'll give it a try. thanks Jul 11 10:25:34 litledot, you are welcome :) Jul 11 10:31:06 Trying to .setUserAgentString("Test"); but getting crashes Jul 11 10:32:32 i'm doing WebSettings webSettings = mWebView.getSettings(); and then webSettings.setUserAgentString(user_agent); Jul 11 10:32:56 java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference Jul 11 10:47:11 Is anyone here familiar with the android studio GPU profiler Jul 11 11:06:36 hi. i have a chinese portable bluetooth printer app source. it has 2 activities - one with fragments and another is for bluetooth device selection. I want to create intent-filter with data object which has custom schema, so i can create links on my site, then using smartphone click them and ill be redirected to printer app and there will be passed some String data to print. I was thinking about creating new Activity for this, but i Jul 11 11:06:37 cant understand logic behind bluetooth sdk. So i tought i need to create an intent filter which would open mainactivity and switch it to bluetoothfragment, then .setText() of text entry field to data from getIntent().getData().getHost(). how to create an intent-filter for this, if there is a intent-filter for this activity already? can i have 2 intent filters? Jul 11 11:12:57 ok. its possible to create two intents :) Jul 11 11:23:37 Is there a way of testing IAP without using a signed APK? I need to do some logging/changes during testing preferably, otherwise I'll end up at a version code of 200 if I have to upload a new APK for every tiny change. Jul 11 11:36:05 My application has an appwidgethost that displays a widget chosen by a user. When using the build in picker activity, which returns the chosen appwidget's ID the widget host view works normally. However, I want to save the widget when the application closes and automatically load appwidgethost with the latest chosen widget, without having the user manually pick it again. But simply saving the Jul 11 11:36:11 appwidget's ID and loading it again when the application starts doesn't seem to work. The widget host view doesn't show anything. Jul 11 11:39:18 My question is: how do can I save a widget and automatically load it? Jul 11 12:07:30 How do I rename my app in android studio to xyz.company.foo ? Jul 11 12:07:36 i had misnamed it when I started? Jul 11 12:14:54 kode54: if you mean the package, right click > refactor > rename Jul 11 12:15:03 ops kostodo: Jul 11 12:15:50 If you want to rename the whole project, just create a new one and move your files over there Jul 11 12:16:08 I saw a post describing how to "reset" purchases from Google Play, since I want to keep testing my IAP implementation. This "adb shell pm clear com.android.vending" was suppose to be run to acieve that. But where? I can't see running that in CMD on Windows will do anything on my phone? Jul 11 12:25:50 purplex88, basically i called it sc.foo.bar instead of com.foo.bar Jul 11 12:25:56 purplex88, will refactor fix that? Jul 11 12:26:09 yes i'm sure Jul 11 12:26:16 already changed the applicationid in build.grade Jul 11 12:26:25 but still doesnt change the R class Jul 11 12:26:36 Bernzel: why not? it's just a host command for running a shell on your phone. Jul 11 12:26:49 kode54: rename the package like i said Jul 11 12:27:45 Bernzel: if you want to type 'pm clear com.android.vending' in a terminal emulator on the phone itself, feel free - easier to type on a real keyboard IMHO. Jul 11 12:28:21 tm604, yea sure. But I need to be connected to the adb in some way? Is it enough to be in the same dir as the adb and run that command? Jul 11 12:28:30 adb should be in the path Jul 11 12:28:44 if not, have a look in the SDK installation directory under platform-tools Jul 11 12:29:25 purplex88, that basically changed the app name at the end of com.foo Jul 11 12:29:30 purplex88, com.foo still remains Jul 11 12:29:33 ah alright. tm604 is there anything else I need to do to reset the purchases? Like clearing caches or something? Jul 11 12:30:14 Bernzel: not that I know of Jul 11 12:34:51 ANyone use GPGS save game feature? How do I create a snapshot? Jul 11 12:44:58 any way to backup the current recovery via fastboot before flashing a new one? Jul 11 12:46:09 dreadkopp: wrong channel... Jul 11 12:46:29 whoopsy... #android-root, here i come :P Jul 11 12:46:49 bluetooth expert here? Jul 11 12:55:25 not being able to start activities from notification actions on the lockscreen is really annoying Jul 11 13:05:53 Anyone else have an issue with protobuf not being found when syncing using gradle plugin 2.2.0-alpha5? https://code.google.com/p/android/issues/detail?id=215548&q=protobuf&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened#makechanges Jul 11 13:12:58 hi guys. so i got a method in Activity A, which i would like to call from Activity B using public static. any caveats i should expect? Jul 11 13:15:30 gdrc: You still about Jul 11 13:15:38 I was doing some BLE stuff Jul 11 13:17:15 raoul11, as long as you don't keep reference to activity context in the static variable, it's usually ok Jul 11 13:18:03 is it the same about static method bitkiller ? Jul 11 13:18:34 markyosullivan: am I able to connect to the same device at the same time over ble and classic bt? Jul 11 13:19:36 unless you pass the context as a parameter and 'save' it to a static member, you will not have access to it in a static method Jul 11 13:20:35 if your static method is a 'pure function', then it's fine Jul 11 13:20:45 not passing anything, just triggering an event on the static method Jul 11 13:21:09 kk thanks bitkiller Jul 11 13:38:04 Hmm, so where do you guys look for new Android devs to hire? :P Jul 11 13:38:40 Let's say my app needs to use a gyro. If the device doesn't have a gyro, what's the right exception to raise? Jul 11 13:38:55 I search the docs, didn't seem to find an exception like "MissingHardwareException" Jul 11 13:39:33 (gyro == gyroscope, not the greek food :D) Jul 11 13:41:03 Raise or catch? Jul 11 13:42:24 raise Jul 11 13:42:59 like I check what sensors are available at start, if not, I'm just wondering if there is something like missinghardwareexception - just to be idiomatic Jul 11 13:43:36 Afaik not, you just get a null sensor. Jul 11 13:44:06 thanks either way Jul 11 13:50:24 Hello for everybody! Jul 11 13:51:34 gdrc: I'm not usre if you can do both Jul 11 13:51:38 I've only had to do BLE Jul 11 13:52:09 I'm pretty sure I accidentially connected to my colleagues smart watch with BLE and I think he was still using it with his iPhone so maybe you can :D Jul 11 13:53:33 I would like to ask a completely silly newbie question. I am trying to make a new application by using a book and several tutorials, but I hit a roadblock... I am sure it is something easy, but I am such a newbie :) Jul 11 13:55:03 Well... yay? :) Jul 11 13:57:18 I have created successfully a recyclerview which is populated with list items, the data is parsed from an online JSON source. I am trying to do the same, but with a single list item. Jul 11 13:57:21 https://gist.github.com/tothbalint/a8eb08348a74e9259aa1d70bd045850b Jul 11 13:58:53 I have created the single view, but for some reason the mTickets remain null... I guess the issue is that the onPostExecute does not pass the data to an adapter, because I am trying to use the 1 item data to populate various textviews Jul 11 14:00:08 tothbalint: are you starting the task at all? Jul 11 14:00:12 the getSingleTicket function does not do anything now, I was just trying to do some experimenting Jul 11 14:00:42 I think so, in onCreate() I have new FetchTicketsTask().execute(); Jul 11 14:00:48 line 52 Jul 11 14:01:15 ah yes i read over it Jul 11 14:01:56 when I am clicking an item in RecyclerView, the app crashes Jul 11 14:02:10 oh, sorry, let me update my gist with the stach trace :( Jul 11 14:02:32 i see some weird code though.. Jul 11 14:02:58 like getSingleTicket could maybe just return a Ticket instead of setting mTicket Jul 11 14:03:25 Is it necessary to check if the fragment-idenitified-by-its-name exist before using FragmentManager popBackStack(String name, int flags)? Jul 11 14:03:28 how to accomplish this in xamarin? <Oxford> expose the functionality in your app and make it take an input file Jul 11 14:03:53 xorgate, yes, I admit I dont know everywhere what I am doing exactly :) Jul 11 14:04:01 ok so what happens Jul 11 14:04:13 onCreate runs, the task starts, it downloads Jul 11 14:04:25 in the meantime, onCreateView is called, but the task has not finished yet Jul 11 14:04:39 xorgate, I was trying to put mTicket to the class variable because I thought the issue is because of visibility Jul 11 14:04:42 therefore there is no mTicket Jul 11 14:05:25 oh crap... right, because when I am setting the adapter, it has to wait for the parsing to finish... (when I am using it in the recyclerview) Jul 11 14:05:57 so you could have a method that takes a Ticket and updates the textviews with its data Jul 11 14:06:04 and call that at the right time Jul 11 14:06:20 so start the task in onCreateView maybe Jul 11 14:06:47 and when it is done, you know the textviews are available as well Jul 11 14:07:12 xorgate, you mean I should put the AsyncTask there in onCreateView as well? Jul 11 14:07:20 no, only in oncreateview Jul 11 14:07:31 your problem is that 1 thing is available before the other Jul 11 14:07:42 views are available, but ticket is not Jul 11 14:08:06 theoretically it could be that a task that is started in oncreate finishes before onCreateView is called Jul 11 14:08:15 so then you have no textviews to set values on Jul 11 14:08:46 I understand now :) Jul 11 14:09:16 so something along these lines would work? http://storage3.static.itmages.com/i/16/0711/h_1468246166_8260729_6f53cfda83.png Jul 11 14:09:51 no Jul 11 14:09:59 understand that an asynctask runs in another thread Jul 11 14:10:18 yes so it does not hold up the main thread execution Jul 11 14:10:19 its onPostExecute is called somewhere in the future Jul 11 14:10:30 okay Jul 11 14:10:38 so after the call to .exectute() you have no data yet Jul 11 14:11:24 okay Jul 11 14:11:26 suppose i ask you to go to the supermarket and get milk, my next action cannot yet be 'put milk in fridge' because it will take you a while Jul 11 14:11:38 yes I understand Jul 11 14:11:42 great Jul 11 14:12:19 so I should put the textview setText code in a function that is called in onPostExecute? Jul 11 14:12:55 could be, if you also make sure that the textview exists at that time Jul 11 14:13:29 how can I check that? Jul 11 14:13:43 if (x == null) Jul 11 14:14:06 but if you start the task after you inflate the view and findViewById you'll be fine Jul 11 14:14:36 that's why i suggested .execute in onCreateView Jul 11 14:15:46 soin OncreateView, first the inflater, then calling execute, then doing findViewByid for all of the textviews, then calling a function that will set their texts? Jul 11 14:16:32 inflate -> findviewbyid -> start task ... ... ... ... wait ... ... display result in UI Jul 11 14:16:50 I would probably start the task before inflation Jul 11 14:17:27 okay :) do you have some idea how can I implement the waiting properly? Jul 11 14:17:32 i guess the onPostExecute would run on the same thread as the onCreateView so that would not be a problem no Jul 11 14:17:43 tothbalint: what about a spinner? Jul 11 14:18:32 thepoosh, that would "stop" the execution until the .execute() is finished? Jul 11 14:19:00 tothbalint: no, but if you have a UI indication that there is a task running you should be fine Jul 11 14:19:33 Just repeating my question from earlier, "Is anyone here familiar with the android studio GPU profiler?", I am specifically looking for information on what it means if an app is spending a lot of time in the "sync" phase of rendering. Jul 11 14:21:02 thepoosh, xorgate: thank you very much, I will try to implement it how yoiu suggested :) Jul 11 14:21:09 I am really thankful for your help Jul 11 14:21:15 np Jul 11 14:21:52 jfpowell, I would like to help but sadly I am too newbie for that area, I never used the GPU profiler :( Jul 11 14:22:36 No worries, the official documentation isn't massively helpful. Jul 11 14:24:23 youre welcome Jul 11 14:27:37 How do I pass an object from one object to another? Jul 11 14:27:41 sorry Jul 11 14:27:43 bad english Jul 11 14:27:50 pass an object from one fragment to another Jul 11 14:27:54 Bundle? Jul 11 14:35:47 I've looked at Bundle and it seems you can only pass certain data types and not objects Jul 11 14:39:03 ive tried to fork the launcher3 and extend it as my own. Ive changed all packages and modifed the manifest and gradle script but it still shows me "activity class com.mycompany.mylauncher/com.mycompany.mylauncher.MemoryFumpActivity does not exist. Ive doubled checked it and it DOES exist. Ive cleaned everything, but i cant figure out WHY. Any idea? Jul 11 14:40:14 markyosullivan, Google: android passing data between fragments Jul 11 14:44:16 I have modified my code, I even tried to add a ProgressDialog inside my AsyncTask, but I get the same error :( Jul 11 14:44:53 nooone have any idea? I also get the error "Linker libhoudini.so has text relocations This is wasting memory .." Jul 11 14:48:00 What do you use to show the architecture of your application? e.g. communication with firebase/servers, etc? Do you use an online web page? Jul 11 14:51:47 tothbalint: link code Jul 11 14:52:47 xorgate, https://gist.github.com/tothbalint/a8eb08348a74e9259aa1d70bd045850b Jul 11 14:53:26 tothbalint: you did not fix anything we talked about Jul 11 14:54:49 xorgate, I have changed the asynctask, separated the findViewById calls for the textviews Jul 11 14:55:33 tothbalint: ok that's not what i meant... Jul 11 14:55:47 xorgate, I apologize :( Jul 11 14:55:49 ANyone use GPGS Save utility? WIll a Google Drive account automatically be created for that person if it does not exist? Jul 11 14:56:09 in onCreateView, you access mTicket. It will be null (because the Task has not completed yet) Jul 11 14:56:38 okay Jul 11 14:57:20 tothbalint: remove the .setText() methods from onCreateView and place them inside onPostExecute Jul 11 14:57:27 AlexBerdnikov: I have, it gives methods to pass data types using Bundle but you can't do that with objects Jul 11 14:57:27 see what happens Jul 11 14:57:51 Also recommends Parceable Jul 11 14:58:12 xorgate, okay :) do I need to pass the textviews as parameters somehow into the onPostExecute? Jul 11 14:58:35 tothbalint: i think it knows about them since it's a private class Jul 11 14:59:00 omg the new episode of Mr Robot is out! Jul 11 14:59:24 xorgate, okay, I know probably it is stupid, I thought since the Asynctask class is private , and the textviews are private too, they cannot see each other Jul 11 15:00:26 xorgate, changed the code, and still getting java.lang.NullPointerException: Attempt to invoke virtual method on a null object reference Jul 11 15:01:51 tothbalint: look at the error and figure what object is null. then figure out why it is null Jul 11 15:02:13 like i said: it has not been set yet (so you should not call methods on it) Jul 11 15:05:37 in java, is this a valid comparison? if (mTickets.get(i).getDbId() == ticketDbId) Jul 11 15:06:03 ticketDbId is int and getDbId() also returns int Jul 11 15:10:00 Which is a good tool, preferably online, to make flow diagrams of an android app? Jul 11 15:15:24 xorgate, I have finally solved this, I cannot describe how thankful I am! Jul 11 15:15:48 xorgate, I guess I owe you a virtual coffee/beer/something :) Jul 11 15:16:39 tothbalint: great! Jul 11 15:17:17 now try rotating the device and see what happens Jul 11 15:18:34 yes, I see :( the app goes back to the activity/fragment which is first in the navigation Jul 11 15:18:46 and that is the main activity too Jul 11 15:18:50 but that's another problem Jul 11 15:20:01 crised: graphviz maybe? Jul 11 15:21:00 ludocode: looks appropiate, but I'd bet there are newer sites to do this Jul 11 15:21:15 i bet you're right Jul 11 15:21:28 xorgate, yes, and I promise I wont be bugging you with that :) Jul 11 15:21:41 tothbalint: just ask in the channel Jul 11 15:21:54 tothbalint: post the solution? Jul 11 15:21:54 graphviz is nice if you're looking for something open source that you write in text files and run from the command-line Jul 11 15:22:05 which is pretty valuable if you want your docs to sit in a git repository or whatever Jul 11 15:22:33 xorgate, I am not sure what do you mean, would you like if I would post the solution to my null object error? Jul 11 15:22:58 ludocode: I see, but I just want something simpler Jul 11 15:27:07 yes Jul 11 15:34:02 xorgate, of course https://gist.github.com/tothbalint/a8eb08348a74e9259aa1d70bd045850b Jul 11 15:34:29 Good morning Jul 11 15:34:41 tothbalint: ok yes something like that Jul 11 15:35:36 xorgate, :) that means there is still hope Jul 11 15:41:15 Is it possible to uses BuildConfig String values in xml layouts? Jul 11 15:46:08 no Jul 11 15:46:24 but you can create src/debug/values/strings.xml Jul 11 15:46:28 and src/release/values/strings.xml Jul 11 15:54:20 hm. i want to create and later launch an AlertDialog from non-ui thread. problem is i can create it on one thread and later launch it on another?. so seems i could either name it something and keep a HashMap and both create and launch via runOnUiThread and the name. or i could use futures and block until runOnUiThread returns me an AlertDialog. am i missing anything? Jul 11 15:54:32 cant* create Jul 11 15:55:35 why would you do that Jul 11 15:55:40 change your design Jul 11 15:57:03 the Q is if theres any other better way to accomplish it. or which method between the 2 to prefer. Jul 11 15:57:17 falcom, maybe you just want http://tools.android.com/tips/layout-designtime-attributes Jul 11 15:58:03 its for an opengl app with a game loop thread Jul 11 15:58:06 otherwise i don't see why you would separate debug and release strings at runtime Jul 11 15:58:07 does it stand correct that all I have to do in order to be able to debugg/log a signed APK is to upload the apk with "debuggable true" in the gradle file? Jul 11 15:59:04 Bernzel, yes and no Jul 11 15:59:10 actually i could use indexes and a vector instead of a map with names Jul 11 15:59:20 even with debug, your apk is signed Jul 11 15:59:43 i guess thats what ill go with Jul 11 15:59:44 not sure if a release signed apk with debuggable enabled is allowed on the playstore Jul 11 15:59:52 but it should work on your test device Jul 11 16:02:42 adq, there must be some way of debugging a signed apk in Beta version? I can't believe I have to upload a new version for every tiny change I make and just guess in the dark what is happening. (I'm testing IAP) Jul 11 16:04:02 IAP needs a release apk published in alpha or beta or regular Jul 11 16:04:05 there is no other way Jul 11 16:04:12 and this has nothing to do with debuggable or logging Jul 11 16:04:24 and you also need a test account Jul 11 16:04:30 yes, this is the pain Jul 11 16:04:31 . Jul 11 16:04:58 (and your test account should/must be the primary account on your test device) Jul 11 16:05:02 *even moar pain* Jul 11 16:05:20 adq, jesus christ. Then I'll probably end up on Version Code 200+ when it's done.. Jul 11 16:05:43 JakeWharton: If RxAndroid depends on RxJava internally... why recommend to bring in the newest version of RxJava in the app level build.gradle? Wouldn't you be bringing in two instances of RxJava into your app? Jul 11 16:19:38 I published an app a few days ago and certain users are having the app crash on startup. Here's the crash report http://pastebin.com/6UttLxUN I have tried for the past few days to figure it out and can't. Please help :( Jul 11 16:20:55 melancoholic> it's reporting an out-of-memory error decoding bitmaps, appearently an asset Jul 11 16:21:06 this generally means that the drawables you have included in your APK are too large Jul 11 16:21:27 what devices report that? Jul 11 16:21:28 make sure you include the right size graphics in the right drawable folders Jul 11 16:24:41 Chainfire: That's what I thought so I went and downsized the two images of my navigation drawer and it's still happening. There are more images to the nav drawer but they are svg. Could it be them? Jul 11 16:26:01 Ashiren: Muliple samsung phones, and a Droid Ultra. There are all on 4.4.4, 4.4.2, or 4.2.2. Jul 11 16:27:20 could be Jul 11 16:27:26 I'm not sure how well SVG support works on Android Jul 11 16:27:32 Oh shit the svg graphics are set to 1000dp width and height. I think it's them. Jul 11 16:27:57 ah yes Jul 11 16:28:01 that sounds like an issue Jul 11 16:28:17 a good rule of thumb with older devices is, they have enough memory to hold twice the screen resolution in bitmaps Jul 11 16:28:27 and that is the total memory for the app Jul 11 16:28:52 I'll keep that in mind in the future. Thank you! Jul 11 16:33:20 eghdk: no. that's not how build systems work Jul 11 16:33:33 you'd get like 40 versions of the support library if that were true Jul 11 16:34:54 =( Well that makes sense. Thanks. But what happens if something changed in RxJava, and RxAndroid was doing something that's not available anymore. Breaking api changes. Does that matter? Or will RxAndroid still use the version that was packaged with it? Jul 11 16:35:16 we don't depend on anything that can change Jul 11 16:35:37 libraries using RxJava should never use @Beta or @Experimental APIs Jul 11 16:39:14 Gotcha. But lets just say RxAndroid used something that got removed in a later version... it WOULD indeed break right? Jul 11 16:39:32 It wouldn't magically compile/build against the version included by any chance right? Jul 11 16:39:45 it would break, yes Jul 11 16:39:49 but that will never happen Jul 11 16:40:47 only one version is ever used, and that's always the newest specified in the dependency graph Jul 11 16:50:06 they took err jerbs! Jul 11 16:50:37 not yet. they’re still in the process of requisitioning the forms necessary to take err jerbs Jul 11 16:54:35 http://imgur.com/OcBIpuq Jul 11 16:54:38 ^ in mr robot ;) Jul 11 16:55:50 adq: i disliked that show Jul 11 16:56:10 besides ANR is always good when it's the system Jul 11 17:03:57 Is it possible to fake GPS locoation without having "Mock GPS location" enabled in the developer options? Jul 11 17:04:59 in genymotion you can inject coordinates & stuff, but not sure if they use mock or not Jul 11 17:05:08 more importantly Zythyr, why? Jul 11 17:06:22 is it possible to create software usb devices? Jul 11 17:06:34 ? Jul 11 17:06:57 adq trying to work on a gps faking method on a rooted device Jul 11 17:07:07 i want to emulate a microphone without a physical microphone Jul 11 17:07:09 wrong channel then, see topic Jul 11 17:08:20 dbkaplun, depend on the emu/vm you use and the host OS, you can inject audio into microphone with some virtualcables Jul 11 17:08:31 adq: tell me more Jul 11 17:09:00 basically, you need to create a fake virtual cable which fakes a mic input, and use another virtual cable to route the output into this input Jul 11 17:09:16 then on recent avd or vm, it should catch it as a mic Jul 11 17:09:46 adq: can you point me to some docs? Jul 11 17:09:47 and you would be able to play in your favorite audio player what will be injected into the microphone of the avd/vl Jul 11 17:09:49 vm* Jul 11 17:10:09 dbkaplun, nope sorry there are no doc, and it depends on your os, etc Jul 11 17:10:23 nexus 5 so raw android 6 Jul 11 17:10:25 first, search for how to set up virtual cable on your host os Jul 11 17:10:55 i don't want to have to plug my phone in for this to work Jul 11 17:11:31 well there is no way then Jul 11 17:11:44 and it's not by using a phone, but via using emu avd or a vm Jul 11 17:11:56 if you succeed, keep in mind there are some weird restriction about the samplerate of the emu/vm mic Jul 11 17:12:01 good luck Jul 11 17:12:08 the whole point is that i want to press a "what?" button if i'm somewhere noisy that the other person can't hear me Jul 11 17:12:18 not possible Jul 11 17:13:33 why? Jul 11 17:13:41 it's not allowed Jul 11 17:13:47 iirc, the audio path goes directly into the chip Jul 11 17:13:58 without passing through android system Jul 11 17:14:02 well i can control my microphone volume Jul 11 17:14:10 a microphone has no volume Jul 11 17:14:10 it has to go through software at some point Jul 11 17:14:15 Does anyone here have much experience with animations? I'm curious if I can use vector drawables have an equivalent to an animation-list, or if I can just directly use vector drawables in one back to API 14 Jul 11 17:14:30 i can make sound recordings so Jul 11 17:14:33 if you record audio with mic outside of a phone call, this is totally another story Jul 11 17:14:43 Wow, I don't know how I messed up a sentence that badly... Jul 11 17:15:27 Hello! Gson is being a pain: java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.foo.bar.Foo I have some nested generics but all generics are explictly typed at compile time: http://pastebin.com/nuH2mwc1 Jul 11 17:16:10 Foo has CopyOnWriteArrayList, Bar has CopyOnWriteArrayList, Baz has data Jul 11 17:16:42 Whoops, the obfuscated exception should read java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.foo.bar.Bar Jul 11 17:16:58 This works on MOST devices, not sure why it wouldn't work on this $20 phone Jul 11 17:20:43 explodes thats weird Jul 11 17:21:20 + Jul 11 17:21:23 oops Jul 11 17:21:36 i thought gson is pretty nice library for Java Jul 11 17:22:52 g00s any hunches or immediate thoughts? Jul 11 17:23:04 gson is great. Jul 11 17:23:12 no, unless that device had some bug with harmony reflection Jul 11 17:23:21 my favorite serializer thusfar Jul 11 17:26:54 harmony reflection? Jul 11 17:27:51 org.apache.harmony.lang.reflect Jul 11 17:28:01 I had to look it up:P Jul 11 17:28:08 oh i am not familiar with Java, it's strange thing Jul 11 17:28:22 Did anyone ever got the Launcher3 compiled by changing the package name? (extending the launcher) Jul 11 17:30:22 Hello! I'm trying to create a sticky service that constantly checks the accelerometer values, but I notice that when running on battery the onSensorChanged() isn't being called at the expected frequency. I acquire a WakeLock in the service, but it's still going to sleep. Do you have any idea how to keep the service always running? Jul 11 17:31:50 apidae you'll need foreground service too Jul 11 17:31:54 be careful ! Jul 11 17:32:09 yes I also configured it as a foreground Jul 11 17:32:43 startForeground(1, notification); Jul 11 17:32:55 yup Jul 11 17:33:21 google has been making this scenario more and more difficult to achieve Jul 11 17:33:33 i wish they would post some guidelines now on how to do these things in a legit way Jul 11 17:33:56 'i really need an app that is running and records x, how to make sure it works w doze, blah, etc' Jul 11 17:33:59 yes, it starts feeling like a bunch of hacks Jul 11 17:34:49 maybe I should try making a native plugin with the NDK Jul 11 17:35:15 that won't get you anywhere, i don't think Jul 11 17:35:21 mh interesting Jul 11 17:35:27 does native API allow you query that device? Jul 11 17:35:28 do you have any advice? Jul 11 17:36:00 apidae i'd try to decompiler google science journal app and see what they do (if anything) Jul 11 17:36:03 i guess that's some battery-saving thing? Jul 11 17:36:12 yes, I found a working example using the sensors with NDK here: https://github.com/googlesamples/android-ndk/tree/master/sensor-graph Jul 11 17:36:26 but for this application I really need to keep track of the acceleration at all times Jul 11 17:36:35 apidae yes but from power perspective, i dont see how that changes anything Jul 11 17:38:12 yes it's quite bad from the power perspective, but for the app I'm developing I need to be able to detect peaks in acceleration at any given time Jul 11 17:44:58 I wish they’d just throw out all the Doze crap and start over. \ Jul 11 17:47:47 s73v3r s/Doze/java framework :D Jul 11 17:50:38 the requirement for being stationary for doze is pretty lame Jul 11 17:50:52 that was changed for N Jul 11 17:51:04 it's doze-lite when not stationary Jul 11 17:51:12 it doesn't go into full doze until it's stationary Jul 11 17:53:15 the inability for the user to whitelist something is also pretty lame Jul 11 17:55:16 i thought the user could whitelist - but if you pu exlude battery optimizations in your manifest the google hammer could come down Jul 11 17:55:33 now /that/ is lame, i hate all that parental bs Jul 11 17:56:14 that I understand, because otherwise everyone would just do that, and doze would be worthless Jul 11 17:59:34 hmm Jul 11 18:00:18 s73v3r aka war on general purpose computing Jul 11 18:00:21 Doze is 6+? Jul 11 18:00:48 meh, I’ve never bought any of the “war on general purpose” things Jul 11 18:01:09 morfin: Doze is 6+ Jul 11 18:01:24 if your app is running on 6, it’s subject to Doze Jul 11 18:01:25 s73v3r so, what happens when your app needs to be excluded from battery optimizations but it doesn't fit the google criteria of 'chat' app ? Jul 11 18:01:45 the logical thing to have done, would be to put that in the manifest Jul 11 18:02:01 g00s: at the same time, that would be abused to all hell Jul 11 18:02:11 hah\ Jul 11 18:02:21 a PM decides that the app should be running all the time, cause “Why wouldn’t people want to use our app? Jul 11 18:02:22 s73v3r anything a platform delivers will be abused eventually. you'd have to sell a brick to prevent all abuse Jul 11 18:02:40 next up: water flows downhill Jul 11 18:02:42 in this case, the abuse would override any benefits from having the system Jul 11 18:02:58 it would render the system useless Jul 11 18:03:09 which is why I said they should start over completely Jul 11 18:04:05 interesting can you demonize your process with fork and run in backgrounhd Jul 11 18:04:21 huh? you can change any app to by-pass doze Jul 11 18:04:22 and cooperate with UI Jul 11 18:04:26 your app just can't request it directly Jul 11 18:04:48 by you, you mean the user? Jul 11 18:04:53 yes Jul 11 18:05:04 its in the settings for the app Jul 11 18:05:04 it’s not very well publicized, then Jul 11 18:05:38 battery settings -> battery optimization -> all apps Jul 11 18:05:47 flip the switch for any app you want to bypass doze Jul 11 18:06:01 like i said, not very well publicized Jul 11 18:06:06 * pfn shrugs Jul 11 18:06:18 app vendors can tell users to do that if necessary Jul 11 18:06:30 and in fact, most apps that require it do ask the user to do so, e.g. bubbleupnp Jul 11 18:06:53 rather than popping up the intent to go directly into the optimize app screen (requiring permission and google's banhammer) Jul 11 18:07:30 I imagine that gets a very low conversion rate, though Jul 11 18:08:07 * pfn shrugs Jul 11 18:08:12 users are instructed how to bypass doze as necessary Jul 11 18:08:20 if the user wants the app to bypass doze, they will do so Jul 11 18:09:09 in my experience, telling the user to leave the app to go do something, without taking them there is a losing proposition Jul 11 18:09:19 raoul11: I'm working from around you tomorrow Jul 11 18:09:34 should i be worried? Jul 11 18:10:23 s73v3r, again, if the user wants your app to bypass battery optimizations, they will Jul 11 18:10:28 thepoosh im starting to hate my userbase. they dont do reviews ): Jul 11 18:10:42 it's only a losing proposition if you think all users want your app to bypass said optimizations Jul 11 18:10:43 not so much. if they get lost, they’ll give up Jul 11 18:10:50 link me and I'll give you 1 star saying "great app" Jul 11 18:10:58 as i said you can even daemonize process Jul 11 18:11:03 thanks Jul 11 18:11:07 :D Jul 11 18:11:07 butnothanks Jul 11 18:11:10 to do some stuff in background Jul 11 18:11:21 without caring about that Doze Jul 11 18:11:23 i got enough fakefriends reviews Jul 11 18:11:32 morfin: source? Jul 11 18:11:48 i have a hard time believing that’s true, especially for things that need network access Jul 11 18:12:32 s73v3r, why not? if you write C/C++ prog which do fork() and then same thing as any daemon do Jul 11 18:12:43 so you don’t have a source Jul 11 18:12:47 can't see how damonizing a process has anything to do with power management Jul 11 18:13:07 does not daemons work regardless of that Jul 11 18:13:19 fork all you want, schedulers shut down cores Jul 11 18:13:35 morfin: I would not make that assumption Jul 11 18:13:42 i should try Jul 11 18:13:47 just for fun Jul 11 18:13:49 yes, please do Jul 11 18:13:58 shut down cores? Jul 11 18:14:21 for power saving Jul 11 18:14:39 ah crap i forgot have only 4.2.2 not 6 Jul 11 18:14:40 :( Jul 11 18:15:08 well if it does't work on 4.2.2 it won't work on 6 :D Jul 11 18:15:14 do it for science ! :D Jul 11 18:16:40 i see now how that works Jul 11 18:16:53 it require requesting wake locks Jul 11 18:17:14 http://www.netmite.com/android/mydroid/development/pdk/docs/power_management.html Jul 11 18:18:26 this is "best" thing: "Bypassing the power management policy in the Android runtime will destabilize the system." Jul 11 18:19:02 it's possible to crash Android with kernel panic i think Jul 11 18:35:44 Anyone have an ELI5 of observeOn vs subscribeOn? I feel like I don't actually know what happens. Reading Dan Lews grokking rx he says it like subscribeOn affects the Observer. and observeOn affects the Subscription. That can't be true can it? Jul 11 18:36:36 s73v3r i wonder what the audience reception would have been like if google announced the india training program at i/o Jul 11 18:36:50 eghdk did you read that article i linked you ? :P Jul 11 18:36:54 probably not well Jul 11 18:37:05 g00s: When? Today? Jul 11 18:37:20 eghdk last week, or 2 weeks ago http://www.grahamlea.com/2014/07/rxjava-threading-examples/ Jul 11 18:37:39 I don't recall seeing that. Maybe I missed it. Thanks will take a look now Jul 11 18:37:45 np Jul 11 18:38:10 hello Jul 11 18:38:59 I have a AsyncTask and I want to write a JUnit TestCase for that. I cant find any good site. Can anyone help me out ?? Jul 11 18:40:46 eghdk, subscribeOn determines the thread to run '.subscribe' side-effects Jul 11 18:40:56 observeOn determines all other side-effect threads Jul 11 18:41:42 if it's a cold(?) observable, .subscribe will produce an effect, subscribeOn describes where that effect occurs Jul 11 18:42:35 pfn: I'm looking at it as more of "Does subscribeOn affect where my onNext, onComplete onError code will run"? Jul 11 18:42:41 no Jul 11 18:42:50 subscribeOn affects subscribe Jul 11 18:42:53 that is all Jul 11 18:43:09 Yeah, but observable.subscribe(observer) Jul 11 18:43:38 So I'm subscribing onto the observer? Jul 11 18:44:13 oh wait. so is the Observable what gets affected by subscribeOn? Jul 11 18:44:47 yes Jul 11 18:45:35 And nothing else? Jul 11 18:46:23 s73v3r i had to add my smartass comment :D Jul 11 18:46:24 So if I did Observable.just(1).subscribeOn(Schedulers.io) the 1 would be sent from the io thread/threadpool pfn ? Jul 11 18:46:51 conceptually, yes Jul 11 18:47:03 (in reality, probably not) Jul 11 18:47:04 hello, I'm trying to remove the title bar of my application. It appears to work in the visual xml display. It's set to NoTitleBar.Fullscreen. However when I actually upload the application, the title bar is still there. Any ideas? Jul 11 18:47:25 you need to apply that theme to your activity Jul 11 18:47:34 oh :o Jul 11 18:47:39 choosing the theme in the visual display doesn't actually affect anything, other than preview Jul 11 18:47:48 gah Jul 11 18:47:51 ok Jul 11 18:48:30 pfn: So if I go and write a map function that grabs text from a view. Right before I call that map function, I have to call AndroidSchedulers.mainThread() right? Jul 11 18:48:46 huh? Jul 11 18:49:45 you mean observeOn(mainThread), I assume Jul 11 18:50:51 Yeah. Sorry Jul 11 18:51:37 Is there a good tutorial on how to create vector animations? Everything I've seen seems to barely scratch the surface Jul 11 19:02:12 I AM GOING TO UPLOAD MY APP TO THE GOOGLE PLAY WHEN IT IS DONE(AM GOING TO BUY IT THURSDAY) YAY WOOHOOO Jul 11 19:02:54 good for you Jul 11 19:03:00 thanks :-) Jul 11 19:03:17 buy what? Jul 11 19:03:21 ahh google account Jul 11 19:03:27 the google play dev thingy Jul 11 19:03:32 yessssss Jul 11 19:05:11 Tims_Tech: First you need to use the caps lock key. Jul 11 19:05:21 he did Jul 11 19:05:23 What app is it? Jul 11 19:05:28 yes I know hoiw to use the CAPS key Jul 11 19:06:22 http://bash.org/?835030 Jul 11 19:06:46 Ashiren, LOL Jul 11 19:08:18 Tims_Tech: What does the app do Jul 11 19:08:22 Ashiren: hunter2 Jul 11 19:08:45 LunarEclipse120, it is a hid attack app that will sen pre-programmed keystrokes to your target Jul 11 19:09:05 Tims_Tech: What? Jul 11 19:09:26 Human Interface Device(keyboard,mouse,joystick etc) Jul 11 19:09:33 Malicious apps aren't allowed on the play store. Jul 11 19:09:45 And if you make em, you're a cunt imo Jul 11 19:09:47 it is not Malicious Jul 11 19:09:53 is it for private use Jul 11 19:09:57 just like: Jul 11 19:10:01 intercepter-ng Jul 11 19:10:31 that is illegal too or not? Jul 11 19:11:38 What are you trying to use it for? Jul 11 19:12:01 just for pentesting Jul 11 19:12:24 fun to play around with Jul 11 19:13:29 LunarEclipse120, ^^ Jul 11 19:13:53 that kind of app has no place on the play store Jul 11 19:14:21 how can i add ListViewAnimations source to my project? I don't want to just get it from mavencentral because i want to modify it. I've been trying to put it in libs and then add it to the include in my settings.gradle, but no matter what I do i keep getting "configuration default not found". Jul 11 19:14:36 pfn, why not? Jul 11 19:14:47 What are some of the implications of this for the US Android economy: http://economictimes.indiatimes.com/tech/internet/google-aims-to-train-two-million-indian-developers-on-android-platform/articleshow/53152243.cms Jul 11 19:14:48 i've been reading through gradle docs but somehow i think i know *less* after reading them Jul 11 19:14:54 1, usually requires root, 2, wouldn't trust any app that requires root on play store Jul 11 19:14:55 pfn, would a SUV helicopter mommy be too insulted? Jul 11 19:14:57 pfn, really? hmm intercepter-ng is a network spoofer and MITM https://play.google.com/store/apps/details?id=su.sniff.cepter&hl=nl Jul 11 19:15:06 De beschrijving vertalen naar het Nederlands met Google Translate? Vertalen Jul 11 19:15:07 Intercepter-NG is a multifunctional network toolkit for various types of IT specialists. It has functionality of Jul 11 19:15:07 several famous separate tools and more over offers a good and unique alternative of Wireshark for android. Jul 11 19:15:08 sure Jul 11 19:15:12 pfn, so why doesn't it have a place on Play store? Jul 11 19:15:29 Don't trust it, move along. Jul 11 19:15:46 pfn: Chainfire puts his apps on the Play Store. Jul 11 19:15:49 my description: Jul 11 19:16:20 BadUSb is a multifunctional HID toolkit for various types of IT specialists Jul 11 19:16:35 LunarEclipse120, indeed Jul 11 19:16:58 "wouldn't trust any app that requires root on play store" Jul 11 19:17:03 You wouldn't trust Chainfire? Jul 11 19:17:32 I don't install any of chainfire's apps :P Jul 11 19:17:41 I don't root my phone either Jul 11 19:17:46 the flashfire Is REALLY good Jul 11 19:18:14 so yeah Jul 11 19:18:50 my BadUSB app should be legal for private use/pentesting Jul 11 19:19:06 in the 'setup' you need to agree my agreement Jul 11 19:19:21 * pfn shrugs Jul 11 19:19:24 that i am not responsible for anything that the user does with the app Jul 11 19:19:24 publish it on xda first Jul 11 19:19:26 get some cred Jul 11 19:19:40 pfn, I will create a preview on my youtube channel Jul 11 19:19:48 and then upload to google play Jul 11 19:19:56 and then create a XDA thread Jul 11 19:20:00 or something Jul 11 19:20:11 but first: finish the app Jul 11 19:20:30 /join #android Jul 11 19:20:33 woops Jul 11 19:20:35 anyway bye Jul 11 19:24:13 is it possible to keep a service with a sensor listener always running? I have tried with START_STICKY, a PARTIAL_WAKE_LOCK and adding a notification with startForeground but the onSensorChanged() stops being called after a while Jul 11 19:29:16 apidae i noticed that with other sensors all the way back to 2.2, it maybe as designed Jul 11 19:29:36 on iOS they have a motion coprocessor for this kind of thing, to offload this processing w/o waking the main cpu Jul 11 19:29:39 lol Jul 11 19:29:54 BadUSB allows to do different things Jul 11 19:30:46 at that time, canadiancow and I were working on separate apps that recorded signal strength as map overlays. same problem. cpu was awake, but signal strength callbacks went stale Jul 11 19:31:06 did you find any way to overcome it? Jul 11 19:31:20 it was filed as a bug in 2.2 days and never closed, so ... no Jul 11 19:31:37 but that was signal strength, other sensors, and other devices, could behave differently Jul 11 19:32:20 so, having the device fully on with screen was unworkable , gps + screen drained power to quickly Jul 11 19:32:28 *too Jul 11 19:33:07 this is actually critical for my app, I need to guarantee that I can get the sensor values at all times. You mentioned that NDK wouldn't help. Is that because the process will also be killed by the OS? Jul 11 19:33:33 NDK doesn't get you around power management policies afaik Jul 11 19:33:48 maybe Mavrik knows Jul 11 19:35:04 apidae just looking at this http://www.gizmag.com/samsung-gear-fit-2-review/44207/ Jul 11 19:35:31 i wonder if these wearable devices might be better for you, to log the sensor data and send back to the phone ? Jul 11 19:36:13 they seem to be designed with data-logger applications in mind. maybe its handled a little differently there Jul 11 19:36:16 interesting. I did an app once for a Samsung Gear S2 (running TizenOS) and was able to achieve this Jul 11 19:39:00 the device I'm using right now is a smartwatch, but runs standard android 4.4.2 Jul 11 19:39:27 so it's basically just a small smartphone Jul 11 19:47:47 hmmm i didn't know about the doze thing Jul 11 19:48:06 does it mean it can kill my bluetooth background service? Jul 11 19:48:35 g00s do you know about system apps? http://devescape.blogspot.com/2011/02/persistent-services-in-android.html Jul 11 19:51:10 Is it possible to get a list of all notifications? Jul 11 19:52:27 bitkiller afaik you can guarantee that your service will be restarted if android kills it, the issue I have right now is that I need my service to never be killed Jul 11 19:52:28 apidae no, sorry Jul 11 19:53:12 g00s thanks for your help, I'll let you know if I find a way Jul 11 19:53:28 bitkiller did you read google wants to eventually do something about all unbound services Jul 11 19:53:53 g00s, nope Jul 11 19:56:53 g00s, apidae, i'll probably have to look into it because one of my apps interface with bluetooth printer and it may print while device is sleeping Jul 11 19:58:15 in fact, i may have another problem: my app runs a http server, so it can work as a "print server" for slave devices Jul 11 20:02:18 i've just tested with another app and the BLE communication stopped Jul 11 20:03:29 it ran for a while then stopped Jul 11 20:06:45 after turning the device on, the app was not focused (stopped, minimized). launching it, it didn't recreate and it rebound to the service Jul 11 20:07:44 strange Jul 11 20:10:03 forget it, my mistake; the app had normally halted the BLE communication Jul 11 20:16:39 i've been disconnected Jul 11 20:47:53 I am trying to set the background drawable dynamically for appcompat's AlertDialog but I can't seem to find where this is set. Does anyone know? Jul 11 20:48:53 In onStart in an AlertDialog I can find the view by id "R.id.parentPanel" and set the drawable there. It works. But when I look at appcompat source I don't see where it is setting the drawable. Jul 11 20:49:03 * onStart in a DialogFragment Jul 11 21:33:00 anyone know why when I run my unit tests via Gradle, it get a "Mockito can only mock visible & non-final classes" error, but when running via Android Studio, everything passes. Jul 11 22:04:28 Hi all... I'm writing benchmarking code for our backend, and I can't figure out why our implementation of OkClient seems to be throwing ways the Content-Length header. I've got a breakpoint in UrlConnectionClient.readResponse(), and everything that indicates size or length is either 0 or -1 every single time, and Content-Length is missing from connection.getHeaderFields(). When I curl these endpoints, I do get a Content-Length heade Jul 11 22:04:28 r. Any idea why retrofit hates me so much? :) Jul 11 22:06:55 *throwing away Jul 11 22:08:33 does your curl match the request headers going out from OkHttp? Jul 11 22:08:55 i'm betting the server is sending back a gzipped body Jul 11 22:09:14 that means the Content-Length header is known, but the ungzipped length (what the application layer sees) is not Jul 11 22:09:16 hence the -1 Jul 11 22:09:48 if you see -1 you just need to consume the body until it ends Jul 11 22:10:17 it is gzipped, yep! Jul 11 22:11:30 thanks, jw :D Jul 11 22:23:30 hey guys Jul 11 22:41:57 Does anyone know of a library that shows notifications IN the app that come from the top? Jul 11 22:42:09 like a card that just comes down for a bit and disappears Jul 11 22:42:25 similar to the new notifications which are available to the more recent Android SDKs Jul 11 22:43:19 should be easy enough to make yourself Jul 11 22:45:44 yonatankoren, search for "crouton" Jul 11 22:46:03 adq: I think that's perfect Jul 11 22:46:19 s73v3r: yeah shouldn't be too hard, but libraries let me focus on the backend more Jul 11 23:30:08 hey guys Jul 12 00:31:12 is it possible to parcel an intent? I mean it's parcelable right? I'm hitting some weird issue that just spits out miles of errors in my logs about trying to putExtra() with an Intent Jul 12 00:31:44 sorry not putExtra() but writeParcelable() Jul 12 00:33:17 what’s it complaining about? Jul 12 00:38:07 it's hard to tell Jul 12 00:38:11 the output doesn't stop Jul 12 00:38:11 haha Jul 12 00:38:31 i can only tell it's happening at the line where I writeParcelable(Intent, 0) Jul 12 00:38:41 Intent being my Intent object, not the class name Jul 12 00:39:23 also just noticed some weird things happening here that probably don't need to be this way Jul 12 00:39:31 whoever wrote this thought that hashmaps are parcelable Jul 12 00:39:54 let me fiddle some more Jul 12 00:41:20 Why would interface methods be declared abstract? Jul 12 00:41:34 interface methods? Jul 12 00:42:05 they define an interface -- they describe that its implementers should have these methods, but we don't care how they do it Jul 12 00:42:33 No I know Jul 12 00:42:42 Why would they be declared abstract methods though Jul 12 00:42:54 For example, DrawerLayout.DrawerListener Jul 12 00:42:55 is that possible? Jul 12 00:43:05 https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.DrawerListener.html Jul 12 00:44:21 the abstract doesn’t appear to be in the actual code Jul 12 00:44:47 I think that's just the documentation Jul 12 00:45:32 Why would an interface method _ever_ be abstract, it doesnt make any sense Jul 12 00:45:45 well the interface itself is Jul 12 00:45:48 Abstract methods are just mehtods of an abst. class that are un-implemented Jul 12 00:45:59 But interface methods are unimplemented anyways Jul 12 00:46:00 abstract methods are methods that don't have implementations Jul 12 00:46:15 Right Jul 12 00:46:17 the new versions of Java allow for default implementations in interfaces Jul 12 00:46:28 Ah, that cud be why Jul 12 00:46:33 so neither the methods with the words 'abstract' in front nor the methods in an interface have implementations Jul 12 00:46:36 But if its not in the actual code, then the doc is wrong Jul 12 00:46:47 i could be looking at an older version Jul 12 00:47:10 yeah the version I looked at said the same thing Jul 12 00:47:22 either way I would assume even if it's possible to write abstract in an interface it's unneeded Jul 12 00:47:23 abstract methods are only used in abstract classes right? Jul 12 00:47:25 it's probably implied Jul 12 00:47:34 I think you're reading too much into it Jul 12 00:47:45 but you have a good point Jul 12 00:47:50 Well now im just wondering in general grekkos Jul 12 00:47:54 you also don't need to write "public" in an interface Jul 12 00:47:58 but it can't hurt if you do Jul 12 00:48:03 An abstract method is only used with abstract classes? Jul 12 00:48:06 for the methods themselves I mean Jul 12 00:48:25 And it means any anon class of the abst class must override it? Jul 12 00:48:26 the proper definition, I think, is that abstract methods have no bodies Jul 12 00:48:35 so it doesn't have to be in a class technically Jul 12 00:48:45 try making an interface and define some abstract methods Jul 12 00:49:01 Yeah, I'll do that later Jul 12 00:49:03 "The declaration of an abstract method m must appear directly within an abstract class (call it A) unless it occurs within an enum declaration (§8.9); otherwise a compile-time error occurs." (JLS) Jul 12 00:49:28 An abst class cannot be instantiated, only extended, or made into an anon class, right? Jul 12 00:50:03 (That said, I think it'd be reasonable for the documentation generation to stick the word 'abstract' in there, for methods declared in an interface.) Jul 12 00:50:05 abstract class is different from an abstract method Jul 12 00:50:15 No I know that grekkos Jul 12 00:50:49 yes an abstract class can only be extended Jul 12 00:51:00 also it can be used as an object reference Jul 12 00:51:08 wb: new AbstractClass() {/*override abst methods*/} Jul 12 00:51:24 SomeAbstractClass o = new ConcreteClassWhichExtendsIt(); Jul 12 00:51:37 Yep that Jul 12 00:51:40 also anon inner Jul 12 00:52:00 basically it's just the way you think of it Jul 12 00:52:09 an interface is a set of public abstract methods Jul 12 00:52:21 and fields Jul 12 00:52:28 public static fields Jul 12 00:52:49 Wait, should a Navigation Drawer go above or below the toolbar? Jul 12 00:52:50 so the same way you don't need to write public static in front of a field you don't have to write public abstract in front of a method, but you can Jul 12 00:53:20 I think they usually go above Jul 12 00:53:36 Hi there, I need to have a series of imageviews be presented as if they were one contiguous pdf document, with scaling etc that behaves just like as if you were looking at a pdf document Jul 12 00:53:47 does anyone here know of anything that does that? I have a feeling I have to create this on my own Jul 12 00:58:02 oh there we go, I was right. stack overflow lol Jul 12 01:00:18 does anyone know if it's possible to parcel an intent? Jul 12 01:01:23 Whats the scneario grekkos Jul 12 01:01:26 jw Jul 12 01:01:34 Why does the text on emulator looks somewhat blurry? Jul 12 01:01:50 Has anyone notice it too? Jul 12 01:02:49 I have a list of Parcelables I'm trying to pass to the activity, that Parcelable contains an intent, somewhere along the line this parceling is causing an infinite recursion Jul 12 01:04:09 grekkos its parcelables all the way down ... Jul 12 01:07:05 hi, i cannot get usb debugging working on linux. i am using the adb in platform-tools that came with android studio 2.1.1 Jul 12 01:08:07 ./adb devices does not show my phone. i set up /etc/udev/rules.d/51-android.rules exactly like someone else did (changing vendor to match my phone) Jul 12 01:08:32 nowbooted, can you adb to AVD emulators? Jul 12 01:08:42 i saw the RSA fingerprint prompt for less than one second on my phone and it disappeared Jul 12 01:09:09 Ologn: no VD emulators installed Jul 12 01:09:25 g00s: yeah I think it's just parceling infinitely, does that sound right? I didn't write this I'm just trying to make it work right now hah Jul 12 01:10:58 nowbooted, if you set up an AVD emulator and can get in, then you know it's a USB/hardware problem. If not, then you know it's not. Jul 12 01:18:47 Ologn: got it working! i revoked pervious authentication on the phone, which changed productID. putting in the new one worked Jul 12 01:19:19 it does say in adb devices: udev requires plugdev group membership Jul 12 01:20:06 I cant understand what android:fitsSystemWindows does Jul 12 01:39:12 What are the best settings for emulator to scale on windows for good display? Mine are set to Scale=Auto. Jul 12 02:19:50 hi. I'm trying to stream data via UDP and I was wondering what sort of task/thread I should use, as the stream needs to access a state variable of the UI thread Jul 12 02:21:08 cameronfr is this for wifi only ? Jul 12 02:21:23 yea, for control of a RC vehicle Jul 12 02:22:12 ok, just be advised udp doesn't work well / at all on mobile Jul 12 02:24:09 oh, I thought it would be better because I'm basically streaming the position of a few joysticks Jul 12 02:29:27 cameronfr it will be ok on wifi, just not 3g/4g Jul 12 02:29:50 oh I see **** ENDING LOGGING AT Tue Jul 12 02:59:58 2016