**** BEGIN LOGGING AT Fri Jan 20 03:00:04 2017 Jan 20 03:04:38 update the view properly in onBindViewHolder Jan 20 03:06:30 pfn: sure. it would be if onBindViewHolder was called. Jan 20 03:06:53 Good. I set a breakpoint to be sure that it's not called and I got a SIGSEGV Jan 20 03:07:04 It does get called, only reason it wouldn't is because you called the wrong item Jan 20 03:07:48 pfn: ok. I'll investigate that. Thanks Jan 20 03:24:27 pfn: I was updating the adapter in the wrong thread Jan 20 03:28:56 yes, that was the problem Jan 20 03:35:24 After I have done `android -s update sdk --no-ui --filter tools,platform-tools -a`, my /opt/android/tools directory is empty. Any clue? Jan 20 03:36:19 Installing tools and platform-tools will create a `tools` directory in $ANDROID_HOME? Jan 20 03:51:09 Can a handler communicate with UI Thread the same way as AsyncTask does? Jan 20 03:52:05 Like switching between background and UI Thread calling override methods Jan 20 03:52:32 or does it only run a background thread.. Jan 20 03:53:23 a handler operates on a looper Jan 20 03:53:50 the looper you associate it with determines what thread it runs on Jan 20 03:55:15 purplex88: unless you request a handler for the main thread looper, the handler is associated with the thread where it's created Jan 20 03:55:43 looper is new to me haven't read about it yet.. Jan 20 03:55:49 purplex88: AsyncTask actually uses Handler in order to run stuff on the UI thread. Jan 20 03:56:19 purplex88: you can create a background thread, run a looper in it and create Handler to schedule Runnables on that looper Jan 20 04:01:18 Sounds very complicated Jan 20 04:02:02 Background thread > looper > handler > runnable Jan 20 04:02:06 purplex88: if you want to make an abstract class with abstract method methodPerformedOnTheMainThread(), just create a invokeMethodPerformedOnTheMainThread() which schedules a call to methodPerformedOnTheMainThread() on the main looper and call only that method. People will override/define methodPerformedOnTheMainThread with the guarantee that will be performed on the main thread Jan 20 04:03:06 purplex88: that's is probably how AsyncThread#onPostExecute() is implemented Jan 20 04:03:34 I just want to know if you can communicate with UI Thread using handler the same way you can do with AsyncTask. Jan 20 04:03:58 we just told you that you can Jan 20 04:04:30 I'm sorry I added some details I thought were pertinent Jan 20 04:06:19 so not possible to do it without looper? because i have seen the usage of handler using runnable Jan 20 04:07:37 I already answered to this question Jan 20 04:07:48 purplex88: It's as simple as `handler.post(...);`. Jan 20 04:08:03 You don't need to know anything about Looper. Jan 20 04:08:25 http://www.computerworld.com/article/3159068/android/android-one-google.html Jan 20 04:10:01 sounds like google would do the marketing for the One devices Jan 20 04:11:08 lets hope it lasts longer than Play Edition / Silver Edition program :P Jan 20 04:11:52 Melatonina: like this: http://pastebin.com/y9ejPGRQ ? Jan 20 04:12:07 OMG. Installing SDK packages is really a disaster. Jan 20 04:12:29 Even on Android Studio SDK Manager. Jan 20 04:12:53 It looks Google years to improve and it's still that bad. Jan 20 04:13:08 It doesn't create a background thread but only calls a method in UI Thread after timer expires right? Jan 20 04:13:20 purplex88: Right. Jan 20 04:13:22 purplex88: if you execute Handler handler = new Handler(); in something like onCreate(), that handler will be created on the main thread, will be associated with the main looper and it will work as you expect. Jan 20 04:13:50 purplex88: also, use retrolambda if you do that often Jan 20 04:14:57 purplex88: yes, no thread or looper is created in any case Jan 20 04:18:17 Do I have to specify build-tools version to update? `android update sdk --filter build-tools-25.2.5` Jan 20 04:19:10 What's the concept that `android update sdk --filter build-tools` doesn't work on getting the latest build tool? Jan 20 04:20:43 "Fabric and Firebase Joining Forces" Jan 20 04:33:12 TacticalJoke Benatar is coming out with a new book Jan 20 04:34:32 Which book? Jan 20 04:35:15 lol this will be great "Are human lives ultimately meaningless? Is our inevitable death bad? Should we hasten our deaths by taking our own lives in acts of suicide? The Human Predicament offers a less sanguine assessment. " Jan 20 04:35:41 haha Jan 20 04:35:52 cm_at_work: i remember trying to get things to install nicely via the --filters to be a nightmare Jan 20 04:36:16 cm_at_work: build_tools would just wouldnt be matched Jan 20 04:36:37 cm_at_work what problems did you have with sdkmanager ? Jan 20 04:37:23 Even in GUI, it was a disaster. The GUI SDK Manager is a bit nicer now. But it's still a bit annoying. At least, you have to update package in right order otherwise it still screws up a bit. Jan 20 04:37:41 sdkmanager is command line only, are we talking about the same thing ? Jan 20 04:37:59 tools/bin/sdkmanager ? Jan 20 04:38:09 g00s: I can't pass the license agreement step using sdkmanager in an automated way. Jan 20 04:38:43 i haven't gotten that far because it ellides all the possibilities Jan 20 04:38:56 cant you use an expect script or something ? Jan 20 04:39:12 What trick did I play to automated it? You know it. I know the agreement. I agree with that. And I just want to accept it and get my docker image built. Jan 20 04:39:51 `echo` y won't work on sdkmanager Jan 20 04:40:01 `echo y` Jan 20 04:41:11 Was there something like license=y flag in the pass? Jan 20 04:41:18 :s/pass/past Jan 20 04:41:49 I think I've seen something like that on Android CLI Jan 20 05:01:00 cm_at_work: i feel like better command line support was what sdmanager was supposed to provide Jan 20 05:01:18 i havent tried using that, ive only ever tried using android sdk -update type commands Jan 20 05:01:22 However, it's not. At least not now. Jan 20 05:01:26 stink Jan 20 05:01:51 android update sdk have more flags Jan 20 05:02:08 But it serves things right Jan 20 05:08:44 I'm having an issue with android studio and googling the error message isn't helping (it's related to android studio itself, not building android applications) Jan 20 05:10:00 I seem to be unable to use gradle at all. When starting a project, it tries to do the initial gradle build (which swallows 16GB of ram and swap creating literally tons of java threads) Jan 20 05:10:09 and then after a while it times out and gives "Error:The first result from the daemon was empty. Most likely the process died immediately after connection." Jan 20 05:10:39 Googling that error message I only find problems people in china are having which is a firewall issue (Which I doubt is happening here) Jan 20 05:10:42 Anyone have any ideas? Jan 20 05:12:59 http://stackoverflow.com/questions/39431565/gradle-sync-failed-the-first-result-from-the-daemon-was-empty-most-likely-the Jan 20 05:16:28 sasser: I'm not using windows. I don't know what "C:\Users.gradle\wrapper\dist" is Jan 20 05:17:44 sasser: changing the dist url didn't do anything though. Jan 20 05:18:43 anoteros: does gradle work when you use it from the command line? Jan 20 05:19:01 teasp00n: Yes Jan 20 05:20:54 close android studio and run ./gradlew -stop or gradle -stop if you arent using the wrapper Jan 20 05:21:01 then start AS up again, see if it works Jan 20 05:21:20 that'll stop and running gradle daemons that may be stuffed up Jan 20 05:21:22 any* Jan 20 05:21:50 Okay I'll try. Jan 20 05:26:12 Hi, I am using Android studio with the ndk and C++ support. I am having trouble create an external .cpp file and including it. Build fails, it is not being included properly Jan 20 05:28:06 teasp00n: It's doing the same thing. Jan 20 05:28:25 doing ./gradlew build finishes in 2 or 3 seconds Jan 20 05:28:58 android studio's attempt at calling gradle sucks up all the resources it can get on my machine for a few minutes and gives up Jan 20 05:29:08 when I run out of ram and swap Jan 20 05:32:03 teasp00n: I don't know who made the decision to have android studio spawn literally one hundred java workers, but it doesn't seem reasonable to me at all. Jan 20 05:45:04 anyone can help with cmake.txt? http://pastebin.com/cbBX3hWx Jan 20 06:07:29 In how many ways you can create a background thread in Android. One is Java's Thread and another I learned is via. AsyncTask. Are there several others? Jan 20 06:09:27 ok this is it working now finally: http://pastebin.com/61vnEMa9 Jan 20 08:05:55 Hello, can anyone help me with this context nullpointer ? https://glot.io/snippets/emcpfh5fyi Jan 20 08:10:45 Sourcey: you dont instantiate Activities by yourself, only system should do that Jan 20 08:11:17 thus context is not yet setup Jan 20 08:13:05 What you mean m8? The new SplashActivity() ? Jan 20 08:14:04 If I do just SplashActivity.loginOk() I'm getting a domino effect of missing static methods Jan 20 08:15:07 normally you extend the Activity, and setup things you put in its onCreate() Jan 20 08:32:01 Hi. I use OpenSqliteHelper is there anyway I can export the db file including the data inside it to the internal or external storage? Jan 20 08:39:26 I think the file is under data/data Jan 20 08:39:35 you need to use DDMS file explorer to get it Jan 20 08:42:27 Is this an android application? Jan 20 08:43:01 its a tool for pc Jan 20 08:43:56 anyway, sqlite db file is writte inside app internal storage so it is available to the app Jan 20 08:44:50 normally its /data/data/app.package/databases/name_of_database Jan 20 08:46:50 Hi, I upgraded from version 8.4.0 of the google play services to 10.0.1, and now IntelliJ can't find com.google.android.gms.ads.* Jan 20 08:47:19 Context has a getDatabasePath method Jan 20 08:48:39 Ashiren: You mean access it from inside my app and store it on an external storage? Jan 20 08:49:07 mohsen_: yes. i thought this is what you wanted Jan 20 08:49:11 Ashiren: File file = new File("/data/data/app.package/databases/name_of_database"); Jan 20 08:49:14 Does this work? Jan 20 08:49:20 it should Jan 20 08:49:32 Okay, thanks buddy. Jan 20 08:50:00 I updated the main play services package to 10.0.1, and the gradle plugin to 3.0.0 Jan 20 08:50:09 And since then all the ad related classes can't be found Jan 20 08:50:15 but context.getDatabasePath() would be better Jan 20 08:50:48 If I open project structure, all the play services are red, with the following missing, http://i.imgur.com/5UdWrhX.png Jan 20 08:51:07 Is there something I'm missing that's causing it to not be moved over into that directory? Jan 20 08:51:09 maybe they changed api a bit Jan 20 08:51:16 8.4.0 to 10.0.1 is quite a step Jan 20 08:51:48 that's build/intermediate, you must have another error somewhere, because this part is not really relevant Jan 20 08:52:01 did you try to clean (sad I know) Jan 20 08:52:09 Hmm, I'll try a clean Jan 20 08:52:48 nah the intermediates are still missing Jan 20 08:52:55 also i'm not aware of 3.3.0 but 3.3 for gradle Jan 20 08:53:02 What sort of errors would prevent that? Jan 20 08:53:10 no idea tbh Jan 20 08:53:41 Everything's up to date in the SDK manager Jan 20 08:54:00 AS got so many issues, you could try in command line with gradlew Jan 20 08:54:17 because without any relevant error it's kinda hard to pin point, it could be many things Jan 20 08:54:27 yeah, I'll just run ./gradlew build Jan 20 08:54:46 Missing api_key/current_key object Jan 20 08:54:54 Has the format of the JSON file changed since 8.4.0? Jan 20 08:55:25 I'll regen it Jan 20 08:55:26 thanks Jan 20 08:57:59 Ashiren: How can I store the file on the root of the internal storage of the phone? Jan 20 08:58:27 Yep.. that fixed it, thanks everyone Jan 20 08:58:48 internal storage of phone? Jan 20 08:59:51 Ashiren: Yeah, I want to send the file to my laptop then to view the database using a sqlite database viewer Jan 20 09:00:25 mohsen_: https://gist.github.com/pimduin/c9288a87ccd7e037da640456c828ed2a Jan 20 09:00:59 I use FileUtils as a convenience to copy the file over, but you can also just use the normal API for that Jan 20 09:01:09 that would definitely throw exception eh? Jan 20 09:02:09 Works for me Jan 20 09:02:58 pduin: Does getExternalFilesDir return the path of internal storage of the phone? My phone doesn't have a sd card Jan 20 09:03:48 mohsen_: phone "internal" storage (where you put your pictures, files, movies etc., without sdcard) is called external storage as well Jan 20 09:04:12 Ashiren: External storage to the app? The app has internal storage itself right? Jan 20 09:04:42 yes, which only the app can see it Jan 20 09:05:08 https://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) Jan 20 09:05:14 Hmmm Jan 20 09:12:53 pduin: by the way, guava Files has a copy method that takes two files and copies the first to the second, don't reinvent the wheel:D Jan 20 09:15:38 guava is pretty big for just having a copy method Jan 20 09:19:53 raoul11: A few killo bytes? Jan 20 09:20:44 methods wise Jan 20 09:23:08 Do you guys use eclipse or android studio? Jan 20 09:23:22 AS Jan 20 09:23:47 I like to use eclipse for java dev but it's not supported anymore for android :/ Jan 20 09:24:38 did you try AS? Jan 20 09:26:45 hiya SimonVT Jan 20 09:26:48 long time no seek Jan 20 09:28:24 is there a third way to create threads besides asynctask and java threads? just curious since there seems to be so many thread handling classes etc. Jan 20 09:29:21 handler Jan 20 09:29:29 executor Jan 20 09:29:33 rxjava Jan 20 09:31:21 asynctasks stink to be honest Jan 20 09:32:12 but handler just ties itself to thread to execute a periodic task, does it actually create a new thread as well? Jan 20 09:40:52 or you mean HandlerThread Jan 20 09:42:38 so I have some basic html in a webview, height set to wrap Jan 20 09:43:08 it grows till the bottom of the screen and puts the rest into the "scroll buffer" Jan 20 09:43:35 is there a way to say "don't scroll, expand over screen size" Jan 20 09:43:42 oh Jan 20 09:43:54 nvm Jan 20 09:44:04 parent has match_parent Jan 20 09:44:07 my bad Jan 20 10:10:56 purplex88, Thread is the primitive Jan 20 10:11:22 Asynctask is for simple UI offloading like Bitmap decoding Jan 20 10:11:40 IntentService does background tasks not tied to UI Jan 20 10:12:12 HandlerThread has more bells and whistles, its for things like dealing with multiple camera thumbnails Jan 20 10:13:42 then there are implementations of Executor like ThreadPoolExecutor Jan 20 10:13:58 In a sense it goes from simple threading to more complex Jan 20 10:13:58 hi all Jan 20 10:14:34 I tried to do this to create a jar plugin for the Unity android app, but I can't Jan 20 10:16:09 how can I create a jar file from an empty android app (without activities) with Android Studio? Jan 20 10:16:29 guys how can I find out where a certain XML file is being called Jan 20 10:16:41 like with java files you just click on the class name and you get all the usages Jan 20 10:18:54 right click, find usages Jan 20 10:25:51 yea that's true Jan 20 10:26:56 somebody? Jan 20 10:27:06 http://stackoverflow.com/questions/21712714/how-to-make-a-jar-out-from-an-android-studio-project Jan 20 10:27:36 you have 2 45point answers Jan 20 10:27:36 this says to make java library, but if I copy the code from the app without activity to the library, then it will gives me syntax errors Jan 20 10:27:40 what do you want more Jan 20 10:28:04 Odaym: ^ Jan 20 10:28:19 ask them Jan 20 10:28:23 the posts are still 2016 Jan 20 10:28:32 so last year Jan 20 10:29:23 Odaym: one of the answers says: "Open build.gradle for library project " Jan 20 10:29:30 Odaym: I'm already stuck in here Jan 20 10:29:42 Odaym: how to create library porject in Android Studio? Jan 20 10:30:09 start by not panicking Jan 20 10:30:33 Odaym: is it really clearly can be seen? Jan 20 10:30:36 I dont know, i suggest you ask them on the same page you got the answer, they will reply Jan 20 10:30:47 yea you're obviously panicking Jan 20 10:31:11 Odaym: why is that so obvious for you? :) Jan 20 10:31:21 i can see things bruh Jan 20 10:31:25 brb Jan 20 11:05:34 Odaym: I have created a library this way: https://gist.github.com/daniellevass/2c46cf33e3814e685b47, and I have tried to create jar this way: http://stackoverflow.com/questions/21712714/how-to-make-a-jar-out-from-an-android-studio-project Jan 20 11:05:53 Odaym: no success, gives error after :library:compileDebugJavaWithJavac Jan 20 11:32:03 hi, anybody with a rooted android device interested in "alpha-testing" my app's new version (cheatdroid)? Jan 20 11:34:35 (pretty popular app, 3 million+ downloads, you would get to test the pro version for free) Jan 20 11:43:07 When I use the code for Firebase Authentication on the firebase docs http://goo.gl/IxwLHB , it works fine however, it logs " HostConnection::get() New Host Connection established 0x7f8f6b0697c0, tid 30494". Is this normal? Jan 20 12:01:04 i'm trying to reflect a public static method but i keep getting NoSuchMethodException https://dpaste.de/w1cP Jan 20 12:27:02 Hi all, is there any possible way to detect touch events when you're app is above all others? like the facebook messenger chat bubble. Jan 20 12:29:46 not anymore i think, this is also bad to not say evil, and can lead to too many issues Jan 20 12:30:05 just stay in the scope of your own application Jan 20 12:30:38 adq, that's what I want :) it's indeed for security reasons I'm asking this Jan 20 12:30:46 make no sense Jan 20 12:31:16 no sense? Jan 20 12:31:25 none Jan 20 12:32:46 I think that receiving touch events when another application is running has a lot of impact on security.. Jan 20 12:48:43 Hi, anybody with a rooted android device interested in "alpha-testing" my app's new PRO version for free (CheatDroid, pretty popular, 3million+ downloads)? Jan 20 13:05:35 flxapps: Release alpha on play store? Jan 20 13:10:20 Hi. I have a SeekBar inside a CardView. The SeekBar is completely white. Anything that would make it appear this way? How to fix? :) Jan 20 14:00:29 emimu, post your layout file. Jan 20 14:30:48 Syzygy: http://pastebin.com/jXtZUFiR Jan 20 14:31:02 near the bottom Jan 20 14:31:25 have you tried giving it another color? Jan 20 14:32:04 yes, that works if explicitly set it. but if i incorporate the color in my