**** BEGIN LOGGING AT Tue May 31 02:59:58 2016 May 31 03:48:16 Stackoverflow points up for grabs if anyone knows how: http://stackoverflow.com/questions/37536376/how-to-swipe-list-view-item-left-in-android May 31 04:04:15 http://www.parcelabler.com/ my new fav website May 31 04:28:21 next up : android for bicycles :) http://www.gizmag.com/openbike/43590/ May 31 04:30:11 how do you download stuff from internet May 31 04:30:54 retro something library for http post requests? May 31 04:35:28 anyone tried jack? it doesnt see my java8 lib when I put it in 'libs' folder May 31 04:42:02 https://twitter.com/shanselman/status/737112003097989120 May 31 04:47:25 gordon_ lol, i like this one too https://twitter.com/RayDavidson/status/737057679118630916 May 31 04:48:33 it's completly unrelated to programming :P May 31 04:48:45 unless USA is going to ban internet May 31 04:50:52 gordon_ well, trump (and clinton) want to ban encryption ... May 31 04:51:36 well.. Trump wants to ask Gates to turn off internet for kids :D May 31 04:52:05 reminds me of 'internet is the series of tubes' May 31 04:52:36 gordon_ is strangely aware of US politics ... May 31 04:53:10 hi al May 31 04:53:12 hi all May 31 04:53:39 i am a newbie to android development and doing a small program on calculating the currency values May 31 04:54:31 it consists of a number of input fields, but the program is crashing when a field is fed with null value May 31 04:54:36 from interesting libs, I've found this today: https://github.com/zserge/anvil May 31 04:54:36 can anyone please help May 31 04:55:09 stacktrace May 31 04:55:52 idea seems nice, dont know about this code quality: https://github.com/zserge/anvil/blob/master/anvil/src/sdk15/java/trikita/anvil/DSL.java ;) May 31 04:55:59 Features doesn't list what this lib does May 31 04:56:40 squ: create PR :P it's DSL for android views for java May 31 04:57:34 button(() -> { size(); text(); } May 31 04:57:49 gordon_: what to use to download files from internet? May 31 04:58:10 router and cables :P May 31 04:58:19 :) May 31 04:58:20 and some terminal May 31 04:58:33 yes but what libraries people May 31 04:58:36 use May 31 04:58:45 (asynctask and downloading bytes) May 31 04:59:05 I'd probably choose rx May 31 04:59:12 lolwut May 31 04:59:27 rx to call functions which do downloads :) May 31 04:59:28 RxHTTP :) May 31 04:59:41 he just want to download one file... May 31 04:59:46 no May 31 05:00:01 many files May 31 05:00:52 well, you can use RxJava and download bytes with some http client ;) May 31 05:01:04 putting then to onNext(); May 31 05:01:08 i would put tubes between app and file May 31 05:01:20 g00s: how many? May 31 05:01:28 1 tube for each file :) May 31 05:01:37 ok May 31 05:01:45 (this movie is like 10 years old) May 31 05:03:00 guy May 31 05:03:05 guys May 31 05:03:12 be serious please May 31 05:03:25 what everyone uses to download stuff May 31 05:03:27 ? May 31 05:03:43 I told you that I used asynctask :D May 31 05:03:50 and you want to use rxjava so - use it May 31 05:04:02 that's just threading wrapper May 31 05:04:05 seems good usage with downloading bytes May 31 05:04:31 gordon_ but what about kilo-bytes? May 31 05:05:06 squ: http://www.unknownerror.org/opensource/square/okhttp/q/stackoverflow/25893030/download-binary-fie-from-okhttp May 31 05:05:10 ios has url sessions, which when started continue download when app is minimized May 31 05:05:17 g00s: too big May 31 05:05:31 and calls-back to wake-up app when download is complete May 31 05:05:37 so files can be saved and processed, etc May 31 05:05:41 iOS is smart :) May 31 05:05:44 squ: you can put that in service May 31 05:06:01 what android has for downloading files May 31 05:06:08 downloadmanager May 31 05:06:17 also, ios is paying attention to caching May 31 05:06:40 which is configurable, just set the amount you want to store in ram/disk May 31 05:06:54 ah I've forgot about downloadmanager :D May 31 05:07:24 ok May 31 05:07:26 https://developer.android.com/reference/android/app/DownloadManager.html May 31 05:07:31 downloadmanager with rx May 31 05:07:54 what about retro library for http requests? May 31 05:08:04 it downloads stuff ? :) May 31 05:11:12 havent used retrofit to download files May 31 06:43:25 has anyone ever sold an application? May 31 06:45:33 never May 31 06:46:14 to users or other companies? May 31 06:48:45 to anyone May 31 06:48:52 just a full exclusive sale May 31 06:49:15 only thing ive found is https://flippa.com/sell-apps May 31 06:50:12 oh like that... May 31 06:50:29 i get spam mail from those shady guys weekly.. May 31 06:51:03 I think all they care for is your monthly active usebase. They will put their ads in and let the app run until its dead May 31 06:51:17 and ofc pay only enough to make a good profit by this May 31 06:51:56 danijoo: do what? flippa is an actual site May 31 06:52:05 mostly for websites May 31 06:52:32 oh I thought its one of those: "we buy your app!"sites i get mails from May 31 07:11:03 hi guys May 31 07:11:29 anyone uses gradle before May 31 07:11:44 and come across compileSdkVersion cdvCompileSdkVersion in their build.gradle May 31 07:17:09 everyone May 31 07:17:17 gradle is androids primary build tool May 31 07:19:57 tell it to eclipse guys May 31 07:20:14 and i never encountered cdvCompileSdkVersion May 31 07:20:35 but quick googling reveals its cdv stands for cordova, eek May 31 07:21:23 eclipse guys? They still exist? :P May 31 07:26:28 eclipse? May 31 07:26:31 what is that May 31 07:27:25 http://goo.gl/WzS1j May 31 07:28:29 danijoo, this is the error i am getting May 31 07:28:30 Error:(48, 0) Could not find property 'cdvCompileSdkVersion' on com.android.build.gradle.LibraryExtension_Decorated@64dd8ef8. May 31 07:28:31 Open File May 31 07:28:50 no idea about cordova sorry. May 31 07:29:44 hi May 31 07:35:31 I have two applications. One containing the user interface with activities and fragments. The other application containing ONE activity with bluetooth functionality for connecting and communicating with a device. Now I need to merge the bluetooth application with the user interface application. How would I do this in a good way? should I add the bluetooth application as a service so it can run independently? Or should it be as a library? May 31 07:40:35 Maybe I should break out the bluetooth functionality in a static class and add that to the user interface project, then I can access the bluetooth functionality from all other classes in the user interface project. May 31 07:48:26 Can someone help me here, because noone is responding in android-root May 31 07:49:19 not if its a root question May 31 07:50:00 also you didnt even ask a question in root ;) May 31 07:52:16 I asked if someone could help me :P May 31 07:56:39 people only answer if you ask your question directly in irc. how can someone know if he can help you without knowing the question? ;) May 31 07:56:52 That's true May 31 07:56:58 But i asked a question now May 31 07:57:35 also ppl in #android-dev get mad when you ask root question. so better dont :p\ May 31 07:58:21 alright May 31 07:58:32 Can i pm you? May 31 07:58:37 and i still dont know the question May 31 07:58:52 Its in the android-root section May 31 07:58:57 i don't ask ith ere May 31 07:59:04 oh May 31 08:09:11 danijoo: is it called irctiquette May 31 08:09:11 ? May 31 08:10:09 maybe May 31 08:29:57 https://developer.android.com/reference/java/net/HttpURLConnection.html May 31 08:29:57 https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html May 31 08:30:02 is this android or oracle api May 31 08:32:41 squ, wheres the difference? May 31 08:32:48 the price tag May 31 08:34:52 danijoo: if this is oracle, then it costs half a billion for google May 31 08:35:15 still fair use :p May 31 08:35:45 sorry May 31 08:35:47 > Oracle was seeking damages of up to US$9 billion May 31 08:36:51 whats your point May 31 08:37:09 you don't know? lawsuite from Oracle? May 31 08:37:17 yes but whats your point May 31 08:38:24 curious if android rewrite api with the same name May 31 08:46:45 why should they May 31 08:47:16 law decided its fair use May 31 08:51:00 danijoo: the court decided, it's everyones! May 31 09:29:32 Anyone that have used the V3 iap library and can tell me if checking for ownership on products is made like this? http://pastebin.com/1JkEdxkG Will the String "sku" return the keywords for the products I have added in the developer console? May 31 09:56:58 hey guys May 31 09:57:44 one question. i am dynamically adding multiple edittext views on the screen programmatically. i .requestFocus on them but it works only for the first one. do you know what could be the case here? May 31 09:58:14 sasos90, are you requesting focus immediatly after calling addView() ? May 31 10:03:36 because maybe you need until the view is actually added and inflated (which might happen asynchronously) May 31 10:12:25 danijoo: yes May 31 10:12:36 hm.. how can i do that exactly? May 31 10:14:20 is there some callback for that danijoo ? May 31 10:16:24 sasos90, https://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener.html#onChildViewAdded May 31 10:20:53 or simpliest: textView.post(new Runnable(){ ...requestFocus()... } ); May 31 10:25:38 aaa May 31 10:25:48 wow.. thank you guys! i will try that out after lunch May 31 10:33:03 Why is it a bad idea to initialize the IabHelper in an Activity? May 31 11:33:32 BC an Activity can be destroyed at any point in the app's lifecycle and you may want to hold on to the IabHelper longer then one activity's lifecycle. May 31 12:24:29 hi, i'm trying to mount /system as rw in the android emulator but i ony get "mount: Read-only file system", how can i fix this? May 31 12:25:28 mount -o remount,rw /system May 31 12:25:38 the question is more suitable for #android-root May 31 12:27:19 Ashiren: wow thanks May 31 12:55:28 bit nubish question: i am opening/copying 4 small json files on main activity. should i do that inside its own runnable/thread? May 31 12:55:57 read/write from assets to internal files dir May 31 12:57:16 most i/o should be done in background thread. but for small files i dont see why not make it in ui thread May 31 12:58:08 thanks Ashiren May 31 12:59:57 hey guys, I am currently working on an app that uses Firebase for auth and as real time database... now I am wondering how I should best store my local information. Since the data structure is adapted to the NoSQL JSON-like model as in the real-time database, I am wondering if it now makes sense to store the local information in an SQLite DB or if I should just store the infos in files (as JSON), load them and sync with the online DB once the user has a May 31 13:00:03 any tips? May 31 13:10:20 Ashiren: the reason not to do I/O in your UI thread, even if it is small, is you don't know what the I/O load is on your device -- and different devices have very different I/O characteristics. Do your disk reads/writes in a background thread (using a Runnable or an AsyncTask for simple cases) and you'll give your users the best experience on all devices. May 31 13:10:31 Hi I am having problems clicking the button of a dialog using espresso. It seems like it can't find the button. The dialog is an AppCompat dialog. Is it a known issue that you cant find the button or is it just me doing something stupid? May 31 13:11:26 Sorry that should have been to Raoul11 May 31 13:12:29 thanks nt4cats, ill reconsider this May 31 14:40:24 Hey. Is there a way for a TextView to provide the currently selected input method autocomplete suggestions (without having to write a custom one?) May 31 14:50:40 Hello. May 31 14:51:38 morning all May 31 15:04:42 hithere May 31 15:05:10 I have found "W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection" in logcat - it happens on screen rotation May 31 15:05:33 I have found similar question http://stackoverflow.com/questions/9633188/android-input-connection-error May 31 15:06:16 but I have had no idea what do they mean by connection.close() - where to use it? May 31 15:06:31 someone mentioned " May 31 15:06:31 Sometimes you must Close the KEYBOARD, before closing the activity" May 31 15:06:58 so I have in "onSaveInstanceState" called for "searchView.clearFocus();" May 31 15:07:09 now I have "E/ViewRootImpl: sendUserActionEvent() mView == null" in my logcat :D May 31 15:08:28 app is working normally in both cases (with / without clearFocus())), but I do not know whether or not to concentrate on this May 31 15:08:38 What do you thing? May 31 15:08:53 Ignore it May 31 15:10:15 anyone know where to get some more of these kinda images for use as the header in a drawer: https://github.com/mikepenz/MaterialDrawer/blob/develop/app/src/main/res/drawable/header.jpg?raw=true May 31 15:11:46 hey, what's that website where i can paste example code, so that i can link the url to anywhere May 31 15:12:12 kael03: pastebin May 31 15:12:40 orbyt_: I did a google search for "Material design header icon drawer" and found a lot of hits (e.g. http://www.sketchappsources.com/free-source/633-material-design-android-sketch-freebie-resource.html) May 31 15:12:45 hmm. i thought there was a cleaner looking place for code. oh well, that'll work May 31 15:14:13 kael03: github? May 31 15:14:59 nevermind. it was pastebin! thank you May 31 15:15:59 ok, can anyone help me out here? im trying to use SharedPreferences with String Sets. i get an error on line 22 of this code for null pointer exception: http://pastebin.com/8qV0AsgE May 31 15:16:08 i like paste.ee May 31 15:16:20 simple and good. know who built it too May 31 15:17:46 kael03: the if statement at line 17 says "if set is not null ..." May 31 15:17:56 if you get into the block at 21 you know set IS null. May 31 15:18:26 nt4cats: cool site, link doesnt work though. May 31 15:18:27 Line 22 you get a NPE because you're saying "set.addAll(...." May 31 15:19:08 orbyt_: my next step would be to go back to one of the other links returned by that search. I do not have specific knowledge of any sites. May 31 15:19:57 is it because i set it null initially in line 10? May 31 15:20:28 kael03: if the set doesn't exist in shared prefs then line 10 will make it null May 31 15:21:52 maybe line 10 should say set = sharedPreferences.getStringSet("sharedPreferencesKey", new Set()); May 31 15:22:06 ok. let me check May 31 15:22:35 (I'm lazy and am assuming that is a valid way to declare a new Set() -- don't let your code fail because i'm lazy) May 31 15:24:54 Once you do this, however, the second branch of your if statement shouldn't ever be called. Unless someone forces the value to be set with a null body -- that would be evil. May 31 15:27:00 Yea. Its a logic problem. As long as kael03 understands why its a nullpointer he can figure out the best approach for his problem. According to the doc a default values Set should be the second param. So I’d avoid doing that. May 31 15:30:56 Can I have some feedback on my Java/Android http communication code? :) http://pastebin.com/PiPNKKUM May 31 15:36:11 nt4cats, thank you! it worked. i had to declare it as "new HashSet()", but it worked. thank you! May 31 15:36:35 duh Set is abstract. Told you I am lazy. May 31 15:42:05 SimonVT, ok - btw - why ? :) May 31 15:43:50 Hi! How do I set/change the ABI version when using with the SDK? May 31 15:47:51 bolovanos: Like an issue with the framework code.. If it doesn't cause you issues, ignore it May 31 15:48:20 Might only happen on one api level, might only happens on the emulator May 31 15:48:32 SimonVT, that's what I thought - thank you May 31 15:54:17 yo May 31 15:54:36 Any one there? I am new to IRC chats and I am not sure if I am reaching anyone here... May 31 15:54:52 is there a way to determine, by javascript, in the/a webview, whether the page is currently in foreground? May 31 15:55:15 Prio: welcome to irc May 31 15:56:06 ahoo: Thanks for your reply. It seems to work :-) May 31 15:56:38 Prio: you're doing it right. there's simple rules. don't ask to ask. be patient (with waiting for answers to questions). don't privmsg anyone unless asking them for permission. May 31 15:58:01 I am trying to publish a new version of my app using the Alpha/Beta channel in the Dev Console. Problem is, that the update is not availabe on my dev device (even two weeks after publishing the APK). I contacted Google support and they told be, that there is an conflict with the ABI version in my manifest file. May 31 15:58:14 Thas it the first time I heard about ABI. May 31 15:58:29 Is ABI even relevant when working with the SDK and not with the NDK? May 31 16:01:48 anyone know anywhere to get animated vectors? May 31 16:05:38 orbyt_ thats like asking where to find pretty pictures ? May 31 16:05:55 sure May 31 16:06:19 but you can make them in After Effects, AI or maybe some freeware progs too May 31 16:06:47 by vecotrs you mean vector graphics right ? May 31 16:10:13 i think he means vector drawables May 31 16:11:28 s73v3r did you see that vid on /r/androiddev of gosling ? May 31 16:11:39 not yet May 31 16:11:43 just got in May 31 16:11:51 he has great restraint :D May 31 16:12:07 sounds like he wanted to start dropping f bombs :D May 31 16:22:37 Does coordinatorlayout requires the activity to extend the AppCompactActivity? May 31 16:23:22 doubt it May 31 16:24:04 what's android n? May 31 16:25:11 ahoo, the next upcoming release version of android May 31 16:27:22 is the N a placeholder for the next version, regardless what version? May 31 16:27:28 or is android N a thing May 31 16:28:06 jayeshsolanki, nah, it's a ViewGroup May 31 16:28:23 N stands for “Not Named yet" May 31 16:28:35 ahoo: It's a name, Every version as a desert. in alphabetic order. Jelly Beans, Kit Kat, Marshemelow May 31 16:28:42 aah May 31 16:28:46 it is the initial May 31 16:28:51 right, thx. May 31 16:28:56 ahoo: The next one will be something with N May 31 16:29:05 My guess Nutella May 31 16:29:13 heh yeah May 31 16:29:21 i don’t think they’re gonna want to do a brand name again May 31 16:29:31 Yeah, please no more brands May 31 16:29:34 so cheesy May 31 16:29:39 go with nectarine May 31 16:29:43 ^^ my vote May 31 16:29:54 s73v3r: Did they had problems with Kitkat ? May 31 16:30:04 i vote NotABrand :) May 31 16:30:12 so meta May 31 16:30:19 I dont know of any problems they had with it May 31 16:30:46 they probaly threw enough money at it May 31 16:31:31 or maybe Nestle threw money at google, seems its advertsing for them May 31 16:32:29 g00s: I agree with you, looks like a lot of advertising. I never seen Kitkat in Brazil before that Android version, now it's so common. May 31 16:33:18 wviana: desert != dessert. You know dessert has 2 s's because you always go back for seconds. May 31 16:34:09 I never have dessert May 31 16:35:16 orbyt_: Thank you. If you catches me miss spelling, please correct. I lived for a year and a half in USA, but I don't have that good english yet. May 31 16:35:32 pretty damn good english if you ask me May 31 16:36:49 I always ask myself how is country distribution here on android-dev. Believe most people here are americans, aren't then? May 31 16:37:23 depends on time of day im sure May 31 16:37:41 orbyt_: Where are you from ? May 31 16:37:53 cali May 31 16:37:56 strawpoll May 31 16:39:07 http://www.strawpoll.me/10360677/r May 31 16:39:45 yiati: voted May 31 16:52:12 Inconclusive sample size :P May 31 16:53:52 does anyone here know if you can target a specific device for instrumentation tests via gradle? If so, how? May 31 16:55:25 Pyuruku, use that device as the testing device May 31 16:55:43 I think you pretty much need that device or an emulator of it May 31 16:55:55 what? May 31 16:56:10 I'm trying to run my instrumentation tests on a specific device, not all devices connected May 31 16:56:12 via gradle May 31 16:56:59 Pyuruku: If you're issues have to do with that vendor specific version of Android you are not guaranteed to see them on stock android May 31 16:57:06 set the ANDROID_SERIAL env var? May 31 16:57:23 Pyuruku: If it's a screen size/density issue then you can make an emulator to match that May 31 16:58:01 by specific device, I mean one of the devices already connected to my computer May 31 16:58:07 tm604: is that really the only way? thats terrible May 31 16:59:36 only? probably not, but it'd be my first guess. May 31 16:59:38 Pyuruku: You can also do "adb -s serial_number_of_device_here" May 31 16:59:42 https://github.com/Ghedeon/Testy would be my second. May 31 16:59:50 "adb -h" for more info May 31 17:00:27 "adb devices -l" to see serial numbers May 31 17:00:40 I know how to use adb yiati May 31 17:00:49 problem solved May 31 17:01:00 no, because thats not at all what I'm asking May 31 17:02:32 I guess I'll just prepend my commands with `ANDROID_SERIAL` and be done with it May 31 17:03:21 hello there. sorry in advance if this is a very basic question. I am looking for literature/online resources about developing android applications. that is, information about frameworks that one could use, for example. I have been writing software for some years, but not for android in particular. May 31 17:04:44 dragorn http://www.engadget.com/2016/05/31/solarin-labs-moshe-hogeg-interview/ May 31 17:04:51 so what im looking for is kind of 'android development for dummies' that contains enough keywords that can lead to further documentation May 31 17:05:07 or research, even May 31 17:06:08 I was a fan of the big nerd ranch guide myself, it is a book though so does require a purchase rather than an online guide. May 31 17:06:43 buying a book is totally okay for me May 31 17:07:55 no worries, for background, I was a backend dev for a couple of years and found it very useful for learning android specifics rather than just teaching me java 101. May 31 17:11:49 jamie23: thanks for the hint, noted! May 31 17:12:19 um May 31 17:12:30 when doing shared element transitions May 31 17:12:44 makeSceneTransitionAnimation() requires an Acitivty May 31 17:13:06 if im doing this from inside a recyclerview adapter, whats the best way to get the activity? May 31 17:13:30 Pass the activity into my fragments constructor, and then from the fragment into the adapteR? May 31 17:13:33 adapter* May 31 17:13:37 or what May 31 17:15:19 g00s: HAI May 31 17:16:25 hey thepoosh :D May 31 17:16:31 sup? May 31 17:16:52 um, looking into recyclerview animations ... find it quite difficult May 31 17:17:24 they promised me it's much easier with recyclerview May 31 17:17:24 g00s basic animated remove is fine, but what kind of animation you want ? May 31 17:17:30 Napalm helped me out with a sample, i was putting some effort into learning TransitionManager, but seems its not applicable to RV - even though it is for Listview O.o May 31 17:17:54 shouldn't you be dealing with a Decorator or something like that? May 31 17:18:38 i have a complex animation i'd like when an item changes (it expands, Z changes, shared elements, etc) May 31 17:18:48 oh myyy May 31 17:18:58 Napalm's example helped quite a bit May 31 17:19:02 g00s: I am stuck trying to get a java project to run in AS May 31 17:19:10 not as easy as I thought May 31 17:19:18 oh a plain old java project, hm May 31 17:19:23 because it's a generator, it's not needed as a dependency May 31 17:19:31 for the android project May 31 17:19:40 but I can't seem to get it to run with AS May 31 17:20:43 thepoosh sorry , i haven't tried plain java project in AS May 31 17:20:51 dammit! May 31 17:21:15 heh May 31 17:24:57 StingRay_ so when you read of TransitionManager, you see it handles 'scene' changes. Thats pretty mich what I need to do, but I get the impression with RV, you are supposed to use ItemAnimator#animateChange May 31 17:25:24 g00s: downloading IntelliJ and will do everything from there May 31 17:25:29 not sure if this is overkill May 31 17:25:30 TransitionManager is pretty damn cool. if you have static layouts, it does all kinds of nifty things May 31 17:25:53 thepoosh i would think plain java works in AS ... May 31 17:26:05 it should, but I fear they fucked something up May 31 17:26:09 hrmf May 31 17:26:14 by removing all the things that make Jetbrains money May 31 17:26:20 lol May 31 17:26:39 whatever is java related in community edition should be in AS May 31 17:28:18 and googling for recyclerview + transitionManager brings up little, furthering my suspicions they are not meant to work together May 31 17:29:22 Are GUI components like TextView written with multi-threading in mind? May 31 17:29:52 no May 31 17:30:35 Kake_Fisk: Opposite actually May 31 17:30:54 But is it then fine to setText without using some kind of mutex? May 31 17:31:08 Or does runOnUiThread fix this for me? May 31 17:31:26 always set on ui thread, and yes you can use that if you are not currently on the ui thread May 31 17:31:37 by default you are on the ui thread May 31 17:31:43 Kake_Fisk, you're not allowed to touch UI elements outside the main thread. May 31 17:31:44 you cant change views in background thread May 31 17:31:54 Single threaded access doesn't require mutexes :) May 31 17:32:07 i think technically you can access the view from whatever thread created it ? May 31 17:32:15 but only one thread, doesn't need to be the main thread May 31 17:32:20 g00s: changes can only be done on UI May 31 17:32:27 Ah, okay. So outside access is just illegal. And runOnUiThread actually runs it on the ui thrad May 31 17:32:31 yep May 31 17:32:32 and adding views off UI will throw May 31 17:32:52 right but i don't think the UI thread NEEDS to be the main thread, Mavrik help me out :D May 31 17:32:53 since onCreate happens on the UI thread May 31 17:32:59 the content is from there May 31 17:33:21 g00s, it doesn't, but in current implementation it always is :) May 31 17:33:21 thepoosh did you see N is getting that Async Inflater ? May 31 17:33:32 nope, what's that? May 31 17:33:35 or maybe its in support 24 May 31 17:34:07 google came back with nothing May 31 17:34:07 i got impression to do inflation off main thread May 31 17:34:29 well, you were wrong, which should feel familiar May 31 17:34:31 :P May 31 17:34:46 lol it was discussed at i/o May 31 17:34:54 either support lib talk ... May 31 17:35:08 yeah yeah... May 31 17:35:13 i dont reckon May 31 17:35:15 thats the problem with videos 'they said something about it during those 3 days of videos' lol May 31 17:36:27 damn it, i'll try to find it :( May 31 17:36:40 g00s: I think you were thinking of animations off UI thread May 31 17:36:44 which I remember May 31 17:36:48 g00s I think you are correct, but the view hierachy that is active has to be main thread... inflate, even set maybe ? but child it to parent of active views then May 31 17:36:53 It's called AsyncLayoutInflater May 31 17:36:54 well quite time i was searching for a way to create fragment and it views in thread, to 'preload' fragments before attaching them May 31 17:37:01 thanks SimonVT :D May 31 17:37:13 But yeah, just inflation May 31 17:37:26 google found this only https://twitter.com/kristinmars/status/733456041719930880 May 31 17:39:19 oh and this http://msdx.github.io/androiddoc/docs/reference/android/support/v4/view/package-summary.html May 31 17:40:51 Ashiren cool thanks http://msdx.github.io/androiddoc/docs/reference/android/support/v4/view/AsyncLayoutInflater.html May 31 17:40:59 my imageview is not showing the image after a shared element transition. what should i be looking for May 31 17:41:00 g00s: I stand not only corrected, but also in a dire need to improve my googling skills May 31 17:41:09 please accept my defeat May 31 17:41:15 lol May 31 17:42:05 "For a layout to be inflated asynchronously it needs to have a parent whose generateLayoutParams(AttributeSet) is thread-safe and all the Views being constructed as part of inflation must not create any Handlers or otherwise call myLooper()." May 31 17:42:10 d'oh May 31 17:42:29 so what does that mean May 31 17:43:07 well it seems it throws exception if preconditions aren't met May 31 17:43:33 oops just falls back, sorry May 31 17:43:44 It don't expect that to be an issue with framework views May 31 17:44:57 i'm going to eventually need an ELI5 , "This inflater does not support setting a LayoutInflater.Factory nor LayoutInflater.Factory2" i thought support lib set LayoutInflater.Factory to hijack swapping of some things with compat versions May 31 17:47:02 so you can do everything to views off the main UI thread that you want May 31 17:47:28 obviously except partent them to something owned by main May 31 17:47:35 SimonVT do you blog anywhere ? Medium, etc ? May 31 17:48:04 android stuff obviously May 31 17:49:18 Nah, never found it that interesting May 31 17:58:12 anyone know how to do a shared element transition with an imageview that loads its image via glide/picasso? May 31 18:17:19 orbyt_: just have to wait until the image is loaded May 31 18:23:14 Guys, please explain where my issue is in multi touch: http://stackoverflow.com/questions/37552878/android-multi-touch-illegalargumentexception-in-touchmove-event May 31 18:28:00 gfycat.com/GlamorousOldfashionedHerculesbeetle May 31 18:28:13 https://gfycat.com/GlamorousOldfashionedHerculesbeetle May 31 18:28:30 anyone know how to fix the stuttering at the end of the return transition May 31 18:30:18 You could not cut off the sides of the image in the big picture May 31 18:30:51 im guessing thats because the imageview is set to centerCrop correct? May 31 18:31:04 Probably May 31 18:31:19 hmm May 31 18:33:12 hmm well using fitXY kinda looks better. Just stretch the image May 31 18:33:18 stretches* May 31 18:33:39 actually no it looks good May 31 18:33:57 now any ideas on fixing the floation action button? May 31 18:37:18 Nope May 31 18:37:31 But seems you would need to look into animations that doesn't simply scale the view May 31 18:40:35 something must be wrong, the two animations are not symetric (see the FAB) May 31 18:40:42 well im gonna guess the issue with the fab is the fabs on the cards have a 16dp margin, plus a 12dp margin from the card, so its 28dp from the edge. Whereas the activities fab has the 16dp margin and thats it May 31 18:41:01 you would think that the transition framework would handle this though? May 31 18:53:25 incase anyone thinks of an answer: http://stackoverflow.com/questions/37553519/shared-element-transition-with-floating-action-button-studders May 31 18:59:37 hi guys, i wrote an app that change the phone number called adding a prefix. I have used a broadcast receiver with an intent filter that starts every time a number is dialed. I added too a sharedpreference that is set in the main activity that is used for the prefix and also for enable / disable state. The app works perfectly with every samsung device i tested, and also with motorola but not with the Huawei and May 31 18:59:37 Asus. WHY???? Any suggestion is greatly appreciated!!! May 31 19:00:42 they probably fucked with the receivers May 31 19:00:42 ...or better.... in this phone the apps works when you start it for the first time but not after the phone goes to sleep May 31 19:03:44 but why the first time works? May 31 19:05:47 don’t know. why do you need to inject something in the number called? May 31 19:06:53 because the operator need a prefix May 31 19:07:01 only for the private calls May 31 19:07:16 as opposed to public calls? May 31 19:07:20 yes May 31 19:07:37 i mean, what’s the difference between the two? May 31 19:08:44 no prefix -> free calls ( business only) | prefix -> private calls you have to pay May 31 19:09:42 but the point is... why after deep sleep huawei don't start my broadcastreceiver??? May 31 19:09:54 probably a bug in their stuff May 31 19:11:29 s73v3r: have you tried any standard samples that involve broadcast receivers on the huawei and seen the same behavior? May 31 19:11:43 skin1980: ^ May 31 19:11:53 I'm updating a variable from my class in okhttp's onResponse event. Is this problematic or will it be fine? (Aren't they on different threads?) May 31 19:11:57 i suppose s73v3r May 31 19:12:28 is there a way to remote test on a huawei device? May 31 19:12:46 either get the device yourself, or look at one of the cloud testing services May 31 19:12:54 Testdroid is one, Google has another May 31 19:13:13 although I don’t know if they’d be set up for what you’re trying to test May 31 19:13:35 tnx for the suggestion May 31 19:27:19 I'm just getting caught up on the constraint layout talks, haven't had a chance to use it yet May 31 19:28:37 Does it work well with animations? For instance one of the examples they give shows a header with a FAB between it and the body, I imagine you'd still need to next that if you wanted the header to be collapsable. May 31 19:54:43 s73v3r: maybe i found a thing May 31 19:55:20 huawei have a "protected apps" in settings that, i think, it prevents the apps being killed May 31 19:55:38 maybe they kill mt broadcastreceiver May 31 19:55:43 my* May 31 20:13:23 I need to determine if one location is a particular distance from another location. However, I need to adjust for the strangeness of the Mercator projection (which is what Google Maps uses internally). How can I account for that? May 31 20:16:27 fraktor, look up the math online. as i recall it is not overly complicated May 31 20:19:00 hi May 31 20:19:58 fraktor, http://www.movable-type.co.uk/scripts/latlong.html May 31 20:20:11 The_root, hi May 31 20:20:32 i'm developing a android app. I have a timer within Service. There is a solution for not stop the timer in deep sleep? i have see AlarmManager, but is not a good idea for me. May 31 20:21:37 In my timer there is a handler. Handler contain scanLeDevice (from Google) for scanning BLE device May 31 20:23:44 You can see here my problem http://stackoverflow.com/questions/37523137/ble-scan-in-sleep-mode May 31 20:25:24 The apps that come with my phone that create a notification screen over the lock screen (phone, alarm clock, etc.) all have a unified look and feel. Is there a way that I can hook into these system default notification screens? May 31 20:38:06 why have a never seen a project using a Theme.Material theme? May 31 20:38:17 is there something special about them compared to the usual Theme.AppCompat May 31 20:43:29 Guys, I' May 31 20:44:16 I'm using retrofit with rx observables, I'm new to RXJava, and I want to know why onCompleted of subscriber is not called after onError May 31 20:48:09 yuriheupa: One gets called or the other, never both. They are the two possible ways to end an observable May 31 20:50:49 yiati: so if the onCompleted is only called if the observable ends with no errors right? May 31 20:51:09 yep May 31 20:51:12 drop the if* May 31 20:51:28 cool May 31 20:52:41 Thank you mate! May 31 20:54:11 Is there a material design guide on making full-screen notification activities? May 31 21:04:17 anyone have any ideas for fixing the snap in the animation at the end for the floating action button? https://gfycat.com/SnappySeparateDeer May 31 21:11:24 hi, got my new elephone vowney which has a "breathlight" - no common status led but it pulses for missed call, sms charging or low battery. I try to get it working for thridparty notificatins (threema,k9mail etc) and tried to send a fake sms to myself with a tasker automated app but this doesn't work yet. Now i try to somehow trigger the Breathlight via the device interface... May 31 21:11:34 what do i need to be able to somehow debug/ understand the system_server which does trigger the pulses (logcat shows V/BreathLightsDev( 957): mNewUnreadMsgCount: 1 mLastUnreadMsgCount :1 mNewMissCallCount0 ...etc) May 31 21:11:47 the PID is from system_server, how could i decompile that or whats the way to look into this? May 31 21:14:36 there are some /sys/class/breathlightdrv/breathlight/ files, can i somehow trigger it there? May 31 21:23:14 how do i force lowercase field in the layout? May 31 21:23:23 <_genuser_> hello people. May 31 21:23:58 luist: I don’t know if there is a TextField option for that, but if there’s not, you could set a listener and call toLower() on the string with every keystroke May 31 21:26:15 most efficient way to store global hashmap to the device ? May 31 21:26:52 hashmap btw May 31 21:27:00 s73v3r: :( May 31 21:27:05 there is for uppercase May 31 21:27:07 so when device restarts etc. the data is still there May 31 21:27:21 see if there is one for lowercase May 31 21:27:32 ugh, i can't seem to understand how to grab the right context, whether is MainActivity.this, getApplicationContext, etc. can someone help me understand it May 31 21:27:49 depends on what you’re trying to do May 31 21:28:00 s73v3r: android:textAllCaps="true" May 31 21:28:04 generally, the Activity context is what you want, though May 31 21:28:42 luist: could also try android:digits May 31 21:29:00 is there a video, or some reading material that will explain it like im 5 for contexts May 31 21:29:09 not that I know of May 31 21:29:57 i usually end up randomly picking out a MainActivity.this, or getApplicationContext(), until the warning color goes away :/ May 31 21:32:48 well, first you have to know what you want the context for May 31 21:33:56 for one, i needed a context for initializing an ArrayAdapter May 31 21:34:15 i mean, what is it wanting the context for May 31 21:34:30 an activity context is different than an Application context, for instance May 31 21:35:07 i guess the current context? that's what i am seeing in the documentation May 31 21:35:07 an activity context will be able to load up resources related to the activity’s current theme, which an application context won’t know about May 31 21:36:28 no wonder. it changed my font color when i entered something else May 31 21:36:30 for the context May 31 21:37:51 Q: I'm wanting to bridge to blender 3D running on a PC or as a cli app on a server via python from android. I don't see any good android > python > app info on searches. Anybody got any ideas? May 31 21:38:24 JuxTApose, youre what? May 31 21:38:25 so I can send and get info from blender into android from the python bridge May 31 21:38:46 I'm a blender developer...I want to control blender from a phone or tablet for some simple proof of concepts May 31 21:39:05 basically second screen technology like in video games May 31 21:39:06 ah. I wouldnt know about that myself May 31 21:39:10 i don’t see why that’d be any different than any of the other apps that get information from something running on a computer May 31 21:39:16 Python wouldn’t be special May 31 21:39:50 yeah, why not just connect over tcp? May 31 21:40:06 tooo slow perhaps? May 31 21:41:54 ya, I was concerned about latency May 31 21:41:57 or am May 31 21:42:46 wait, you want to do it with python on the android device? May 31 21:55:00 guys, how can I store a Hashmap locally May 31 21:55:34 serialize the object first and then the hashmap ? May 31 21:55:35 how so? May 31 21:55:35 or May 31 21:56:40 I have a hashmap , I want to store the obj on the device May 31 21:57:21 if I convert the hashmap to json , what will happen to the objectItem May 31 21:57:57 do I need to manually account for this ? May 31 22:00:44 Do synchronize only have to encapsulate the critical variable or does it have to encapsulate the relevant code around as well? May 31 22:08:22 Kake_Fisk try #java May 31 22:09:15 #java tend to be very sore if I'm programming for Android, but I agree May 31 22:09:34 I'm having a hard time getting picasso to work with custom targets, i've tried the following but get crashes: https://bpaste.net/show/708433efcdf7 May 31 22:09:57 Kake_Fisk well, don't ask android specific things ... but synchronize is fair game May 31 22:10:30 Yeah, of course :) May 31 22:12:02 i suppose i should get the stack trace May 31 22:13:19 oh odd, it's saying that target is null May 31 22:13:31 is it possible that the new target {...} gets GCd before the image is downloaded? May 31 22:24:23 can you run native code on android in deveolper mode? Type hello world in python and have it play back on the android physical device bare metal. Im not wanting to use the android studio. ALso is there an IDE for android apreicate it May 31 22:25:05 no May 31 22:25:25 why would you not want to use Android Studio, or other Java IDEs? May 31 22:25:38 the closest thing you’ll get is ScriptIt, which can work with python, or AIDE May 31 22:26:26 but if you’re actually serious about developing Android apps, you’ll probably be using AS, maybe IntelliJ May 31 22:27:33 ok i googled all of them apart from AS whats that? May 31 22:27:40 Android Studio May 31 22:27:40 can you not execute code on bare metal? May 31 22:27:45 ok im familiar May 31 22:27:57 i don’t get what you’re talking about May 31 22:28:27 an ide on an physical android device that can create an .apk and execute it May 31 22:28:39 AIDE is the closest thing you’ll get May 31 22:28:58 but you’re going to do far, far, far better just doing it the normal way, using a computer May 31 22:29:27 advanced intrusion dectecion envorioment :( or is it android ide May 31 22:29:36 s73v3r, im just exploring at the moment May 31 22:30:26 go back and read that statement, and think for a second May 31 22:30:55 hehe May 31 22:33:10 ok thanks for the resources May 31 22:34:26 seriously though, unless you absolutely have to, don’t bother with them. Just start out with Android Studio on a computer May 31 22:34:36 your experience will be much better May 31 22:35:01 i just dont want to emulate May 31 22:35:07 you don’t have to May 31 22:35:14 you plug the device into the computer May 31 22:35:21 cani convert a ttf file to png? May 31 22:35:21 go on May 31 22:35:28 that’s it. May 31 22:35:40 ahh shit May 31 22:35:41 you plug it in, and then when you hit build, you select your device instead of an emulator May 31 22:38:18 ok thats fine May 31 22:38:43 i was going arse about face May 31 22:39:58 what i wanted was to niche and wern't the right way to think about it May 31 22:40:13 best langauge for android app devolpement ? node.js or python? May 31 22:42:25 s73v3r: I have not decided how to do the bridge yet...my typical approach is pick the best method...on the blender side, py bindings are the best in general May 31 22:42:49 s73v3r: I'm open to anything that works quickly as a proof of concept then even changing to something that works better... May 31 22:43:31 s73v3r: I have changed languages just to have a better tool...I'm by training and most of my experience is with C...but I'll program in anything if it's better May 31 22:44:51 blender the 3dmodelling software? I like blender are you deving for it ? May 31 22:48:10 syeekick: java May 31 22:48:19 also, node.js isn’t a language May 31 22:48:22 syeekick: ya, I'm a blender 3d dev May 31 22:48:44 i have a newbie question, whats wrong with this? "else if (!dbImsi.equals(liveImsi)){" May 31 22:49:11 you’d have to provide more context May 31 22:49:16 I like the look of python can apps be written in python or atleast an app wrappen for a browser May 31 22:49:20 the actual error you’re getting would be a start May 31 22:49:26 syeekick: java May 31 22:49:38 syeekick: java May 31 22:49:50 hey guys... I am just getting a weird behavior trying to find a view in a fragment... I try to find it within onCreateView()... it works on the first start, but when I do a configuration change (e.g. turn screen) it doesn't find the TextView anymore and says it's null... http://pastebin.com/ZASXjvkg May 31 22:49:51 ok May 31 22:50:10 any ideas? I don't have a separate layout ofr landscape or alike... May 31 22:50:38 s73v3r: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference May 31 22:50:40 evident: you need to recreate your fragment afaik if orientation changes May 31 22:51:08 Im getting in the way here see ya. Thanks for answering newbie questions :) May 31 22:51:21 syeekick: I've just jumped into android dev and it looks like from my survey this last week choices are C/Java/and JS(Cordova wrapper) with little to nothing py..plus py would be way too slow except for proof of concept work or simple things, lol... May 31 22:51:24 well once I change the rotation, it calls onCreateFragment() again... but when I try the root.findViewbyId(...) it just gives me null then May 31 22:51:44 JuxTApose, ok thanks May 31 22:52:00 JuxTApose: syeekick The only reasonable first choice is Java, start with it May 31 22:52:08 michael33: your thingy is null May 31 22:52:08 it renders everything fine and shows me the textview in the fragment, but it doesn't find it in the code anymore May 31 22:52:26 is there a way to download an image and save it to disk while also loading it into an imageview using Picasso? May 31 22:52:29 if you learn java at a novice level, can you learn node js too ? May 31 22:52:47 node and java arent related May 31 22:53:04 jaana: makes sense, I'm starting with cordova atm...and app inventor by mit...then I'll probably move to java May 31 22:53:19 please dont waste your time ^ May 31 22:53:25 cordova is terrible May 31 22:53:33 ahh I hate cordova May 31 22:53:41 when i have it in textview in this condition it says null? May 31 22:53:48 -? May 31 22:53:54 is that like a brand new language out yesterday? May 31 22:54:04 orbyt_: ya, it's got issues as I have seen already...but I need the speed and html5 stuff, thanks for the tip though : ) and it is an accurate tip, lol... May 31 22:54:14 what speed May 31 22:54:20 not in execution, lol... May 31 22:54:25 Yeah don’t bother with Cordova May 31 22:54:25 that's for sure ;p May 31 22:55:00 hckrtst: any idea? I usually do this all the time in activitires and alike... just not usre why it isn't working in the Fragment... May 31 22:55:09 michael33: You’re gonna have to go through your code, but it looks like you’re trying to access something that was either nulled out, or not initialized May 31 22:55:56 jaana and orbyt_ I'm already developing for html5/css/js so it's an easy dump to Cordova for the time being...other than that, the typical Cordova PITA stuff wouldn't make it worth it.. May 31 22:56:20 I'm just doing proof of concept stuff atm for android...nothing that will go to market May 31 22:57:06 i bookmarked it May 31 22:57:13 thanks for the tips though you guys, they are spot on : ) May 31 22:57:39 Why is python considered slow? May 31 22:57:54 in app making May 31 22:58:09 Q: hey, btw, what's the preferred linux android emulator software? May 31 22:58:30 i don’t think there is one May 31 22:59:14 JuxTApose: yes for a proof of concept this might work... but trying to make a cordova app that looks really good on all kinds of devices (and then even cross-platform is a pain! Been through taht with our Live-Bussgeld app May 31 22:59:42 thats a shame s73v3r May 31 23:00:36 since its a string May 31 23:00:40 i did this "if (liveImsi.equals("null")) {" May 31 23:00:46 still same error May 31 23:04:05 evident: ya, good tip. That's what I'm also reading in several articles... May 31 23:07:28 michael33: That’s not how you check for null May 31 23:07:48 you’d need to do != null May 31 23:09:41 still using .equals right? May 31 23:10:08 no May 31 23:10:20 you check if the string reference is null May 31 23:10:53 if (var != null) { ? May 31 23:11:14 yes May 31 23:11:19 thx May 31 23:12:04 Hmmm @ no fav default linux android emulator... May 31 23:12:19 btw guys I'm big on FOSS so I plan on sharing a lot of source code : ) May 31 23:13:13 good, we were running a bit low on open source code May 31 23:13:47 JuxTApose: yeah because you will have to face so many challenges... e.g. devices with 4.3 or earlier won't have the separate WebView component... so it is kind of old... and might display some things differently... not al ot of fun... but still better than using cordova for Windows Phone... May 31 23:13:56 o7 May 31 23:15:36 o7 May 31 23:16:03 7o May 31 23:16:24 that looks like it hurts May 31 23:22:51 evident: hmmm, good tip, I've got one 2.3 test device and a 4.2x test device...I'll keep an eye out for webview issues, thanks May 31 23:45:12 is there a proper way i can count how many swipes have happened in a viewpager? May 31 23:49:44 nvm got it May 31 23:56:45 yo guys, sql-lite on android May 31 23:56:58 does it save the data even after a reboot May 31 23:56:58 ? May 31 23:58:19 data saved in sql lite, application closed fully , is the data still saved ? May 31 23:59:28 data saved in sql lite, application closed fully , is the data still saved ? Jun 01 00:00:09 got the answer nvm Jun 01 00:02:50 yeah, sqlite is persistent Jun 01 00:03:15 oh Jun 01 00:03:20 gone Jun 01 00:12:14 That was just a zen koan Jun 01 00:13:30 is there a visual way to check out the sqlitedatabase in android studio? it seems like i should download sqlitebrowser? is that the one everyone recommends, or is there an easier way (ie. im kind of looking for an easy way, like how visual studios has it already built in). Jun 01 01:09:19 i have newly installed android studio. on ubuntu 16.04. Trying to run emulator gives me these errors: http://pastebin.com/fX8tDpCK Jun 01 01:09:40 its saying its missing part of opengl Jun 01 01:10:06 radeon drivers Jun 01 01:14:23 what do you guys use as a Parse alternative? Jun 01 01:38:46 http://pastebin.com/fX8tDpCK Jun 01 01:39:07 error in android studio Jun 01 01:43:24 Hey everyone. I was wondering if anyone could help me with a problem? I'm trying to get a button to select all items in my listview but I can't find or figure out a way to do it **** ENDING LOGGING AT Wed Jun 01 02:59:59 2016