**** BEGIN LOGGING AT Sun May 01 02:59:59 2016 May 01 03:29:32 Is there a way to redraw everything on the screen, including both the current activity and any system ui elements? May 01 03:31:57 to be effective, you should be well versed in java May 01 03:32:07 to putz around, you can be whatever level May 01 03:32:40 most people seem to know just nothing about java and stackoverflow their way to victory May 01 03:34:16 Is there a good resource for android-related terminology? I have trouble asking questions because I'm not always sure what each component is called. May 01 03:39:08 i notice the gapps use a lot of custom views in com.google.android.libraries, must be their 'in-house' support lib May 01 03:39:19 but they also use a lot of support lib stuff May 01 04:01:29 Quick question because I don't have the ability to test it currently: Will an app targetting API22 crash on a 6.0+ device if a dangerous permission is used (i.e. camera?) May 01 04:01:35 Or is that only if the app is targetting API23? May 01 04:03:05 Or is the permission permanently granted to the app targetting API22 (since camera permission is in manifest) May 01 04:09:32 Hope my question makes sense ... have to work on a new app that I didn't write the code for but having problems on marshmallow devices May 01 06:19:30 I like rxjava May 01 06:19:39 listeners can be a total mess May 01 06:20:17 its just like a standardized way to implement a listener... sorta May 01 06:49:51 i have android keystore file which is said to be a release key, is it possible to verify this against previously released app? May 01 06:56:59 use jarsigner -verify May 01 06:58:38 hi is that a way to verify a single apk? May 01 07:06:19 nickirc: if you try to upload a signed apk that was signed with a different key it will fail (same for install) May 01 07:09:54 i'm confused between jarsigner command and keytool -list -v -keystore command May 01 07:10:10 i have the key, got it from other developer and confused what to do with it May 01 07:10:22 eventually need to sign the apk and release myself May 01 07:11:49 nickirc: just create the signed apk and try upgrading the apk May 01 07:12:35 ok May 01 07:25:52 and the other question, we have developers distributed around May 01 07:25:59 what would be the best way to share this keystore? May 01 07:26:20 we have private repo, would that be a good way to just put keystore? May 01 07:26:27 and share among members.. May 01 07:39:58 nickirc: the keystore should probably be in your source control May 01 07:40:20 and the keys should not be distributed, but on the build machine that you should have May 01 07:40:49 guess i'm not understanding difference between keystore and the key May 01 07:41:10 i just ysed this keystreo explorer, and was able to verify my key with the password May 01 07:41:14 what does that mean? May 01 07:41:49 hm? May 01 07:41:51 think i'm seeing keypair inside keystore but is key separate from keystore? May 01 07:41:58 eeyup May 01 07:42:13 you can change password without changing the key May 01 07:42:17 i see May 01 07:42:34 but keystore always moves around with key right? May 01 07:42:46 so i commit the keystore in source control(private) then it's ok? May 01 07:43:00 been going through article with pros/cons on that May 01 07:43:17 but i'm leaning towards committing.. May 01 07:45:01 well at my work we have production keystore in building machine May 01 07:45:10 and just debug one in repository May 01 07:49:28 oh May 01 07:49:45 hmm, we don't have separete build machine, developers are distributed May 01 07:50:04 and we host project on private bitbucket May 01 07:50:34 nickirc: never commit keystore in source repository May 01 07:50:38 nickirc: distribute it separately May 01 07:50:45 ok.. May 01 07:50:50 nickirc: it may come back to haunt you later on May 01 07:51:12 i guess not then, thank you all May 01 07:51:53 np May 01 07:52:28 another quick question, i'm trying to call rest api (google/yelp) to get the json output, what would be the best(simplest) way to achieve that? (asyncTask?) May 01 07:52:54 and... is there a handy way out there to parse returned json test? May 01 07:53:01 nickirc: use a library like Retrofit or Volley May 01 07:53:16 and GSON, Jackson, org.json etc. May 01 07:53:21 I suggest reading up May 01 07:54:10 nickirc: also, I suggest abstracting it to a class May 01 07:54:42 nickirc: e.g. have a class that gets the data, parses it into a simple class May 01 07:54:51 nickirc: never use the API directly where you need it May 01 07:54:56 nickirc: maybe even use a ContentProvider May 01 07:56:23 thank you thepoosh, spudowiar May 01 07:56:34 nickirc: np May 01 07:57:12 spudowiar ok i get the separate class idea, we have to to do this with separate thread right? May 01 07:57:19 yep May 01 07:57:29 nickirc: look into ContentProviders as well May 01 07:57:36 nickirc: sometimes they can be more useful May 01 07:57:43 ok May 01 08:44:20 Guys i wanna make an app that pulls images from a Facebook page and sets them as wallpaper, where do i start? May 01 08:46:01 Google May 01 08:46:47 first lookup how to integrate Facebook login May 01 08:48:50 Problem is Facebook authentication,it says unauthorized even after i put in my api key, May 01 08:49:32 they have the steps clearly outlined, it works with me May 01 08:50:48 Oh ok,so i pull out album images and store em to local folder then set as background? May 01 08:51:48 if that's what you want to do.. May 01 08:52:55 Can i directly set an online image as wallpaper? May 01 08:53:44 "directly"? May 01 08:53:56 you have to grab it first and then its yours, then you can do whatever you want with it May 01 08:54:35 Ok thanks May 01 08:58:58 Im actually working on something similar to that May 01 08:59:02 if you solve it, tell me how May 01 08:59:13 make it copy/pastable May 01 09:00:34 Definitely! May 01 09:09:04 hi, on ubuntu I downloaded android sdk, Is I also need to let android studio download android sdk? May 01 09:11:18 rahuldev, didn't it asked to give path to your sdk? May 01 09:11:57 hello May 01 09:11:59 can somebody please tell me wtf is wrong with this code: https://stackoverflow.com/questions/36815325/android-notification-action-intent-is-not-fired May 01 09:12:38 LegendThinker, I gone to configure-sdk-> there I provide path... still there saying: total download size: 411MB May 01 09:13:52 rahuldev, I am not sure but but when I was in your situation I got no other way than download. May 01 09:14:09 and the path i give there said And existing android sdk was detected.. May 01 09:14:24 LegendThinker, thanks then I'll also download! :) May 01 09:14:59 You can wait too if this download gonna cost you too much May 01 09:15:15 till someone with better experience respond May 01 09:16:18 Hm not cost, unlimited internet.. with moderate speed just need to wait.. for next 3 hours. :D May 01 09:17:25 LegendThinker, I was thinking... Android SDK that I downloded is already above 600 mb and now to download extra 400 mb May 01 09:18:29 rahuldev, 400 MB :D. Chill there are GBs you will be needing in few days May 01 09:19:57 Wow!, I just started Android Studio. May 01 09:20:03 Thanks for help! May 01 09:21:00 rahuldev, your welcome May 01 09:23:59 Legend thinker, If I format my computer, or use another computer with same OS, will I need to redownload it, Or I can reuse it all these? May 01 09:25:02 you can reuse it May 01 09:25:53 ok, Thanks Ashiren. May 01 09:28:09 retrofit library looks awesome! May 01 09:37:22 eeyup May 01 09:37:59 you might want to use http://www.jsonschema2pojo.org/ May 01 09:38:17 check JSON and Gson and paste the json you want to parse May 01 09:39:04 when I first found that site it was great but I soon realised that editing the files to be like I want was more effort than just writing them myself :p May 01 09:44:21 Is everything going right, My android studio from 15 minutes still at http://oi63.tinypic.com/2rm3029.jpg May 01 09:44:47 use imgur May 01 09:45:09 tinypic is like 1998 May 01 09:45:13 15 minutes eh? May 01 09:45:15 what about imageshack May 01 09:45:24 2001 May 01 09:45:35 imgur is the future, and the future is now May 01 09:47:08 http://imgur.com/dY2G6vl May 01 09:47:43 it's still downloading May 01 09:47:53 it's not an error May 01 09:48:21 you can just cancel and try again if you like, nothing will explode May 01 09:48:47 Odaym, ok thanks, May 01 09:49:01 Odaym, friend to the common man May 01 09:49:04 helper of the helpless May 01 09:49:30 :):):) May 01 09:50:04 issuing misleading information based on 2 minutes of Google, since 2012 May 01 10:18:04 Is 2 gb ram ok for android studio, and android dev? May 01 10:18:29 I struggled with 8G, 16 is nice ;) May 01 10:19:04 * thepoosh agrees with Zharf May 01 10:19:21 still struggling with 8gb May 01 10:19:31 uf, even games don't take that much RAM. May 01 10:19:32 2gb and java = nope May 01 10:19:57 rahuldev: games use the GPU for that May 01 10:20:04 and gpus have much RAM May 01 10:20:17 hm... May 01 10:21:07 rahuldev: http://imgur.com/wjDpsvh May 01 10:21:22 and I'm not running anything at the moment May 01 10:21:40 8gb and 16 gb is too much, I've 4gb, 2gb + 2gb, but lost one slot, and now only 1 slot left.. my luck. May 01 10:22:29 I'm not sure if I've seen a computer with less than 4G memory in the last 10 years or so May 01 10:22:32 :p May 01 10:23:00 thepoosh, in your screen shot is it taking around 1.38 gb May 01 10:23:16 gradle needs another 2 gb ;) May 01 10:23:16 Zharf :) :) May 01 10:24:04 rahuldev: not including the rest of the system May 01 10:24:19 gradle means. May 01 10:24:25 do you need the complete window for me to prove that gradle + java + AS are more than 2GB? May 01 10:25:10 I don't know what gradle what exactly is? May 01 10:25:19 the building tool May 01 10:25:34 the thing that does the work ;) May 01 10:25:41 aaanyway, you can try to run it but you'll be swapping like crazy May 01 10:25:50 it won't be pleasant May 01 10:26:33 end to end I need new upgraded system. May 01 10:29:03 Thanks for suggestions! :) May 01 10:52:57 hello May 01 10:54:18 I need something like nested list in https://raw.githubusercontent.com/pilhuhn/hawkfx/master/docs/screenshot.png May 01 10:54:59 or any other way we can represent that in android May 01 10:55:09 i have a problem using a ViewPager+FragmentPagerAdapter with TabLayout inside a Fragment - the TabLayout shows tabs but the ViewPager is blank May 01 10:57:12 Code: https://gist.github.com/mRokita/2cf81184ca6c98470a8ff08f56bac346 May 01 10:59:48 effect: http://screencloud.net/v/4r62 - the ViewPager should have white background and display a fragment with some random text in a TextView, it's blank instead May 01 11:04:13 LegendThinker: that's a tree like structure May 01 11:06:15 LegendThinker: https://github.com/bmelnychuk/AndroidTreeView ? May 01 11:11:52 Twirl, thanks, more suggestions? :) May 01 11:26:32 I cant see a nested list there :/ May 01 11:30:00 that library is really great May 01 11:34:29 Hi. I want to capture the volume-up button while the screen is off. The documentation says I should use setVolumeControlStream(), but I won't be using it for audio. Should I still use it, keep it from hitting maximum and read that volume setting out (i just want to see if volume-up is hit)? or is there a better way? May 01 11:34:53 It's hacky, but sounds simple May 01 11:38:51 is this available for any of you? https://play.google.com/store/apps/details?id=com.printicapp.printic May 01 11:39:23 Odaym, yes May 01 11:39:32 think it's a country issue? May 01 11:39:43 I have an N5, says it's incompatible May 01 11:41:36 no idea but compatible with my n5x May 01 11:42:25 yea it's a country issue, looked for it from the other device, still doesn't show up in the listings May 01 11:44:35 danijoo: HAI May 01 11:44:52 thepoosh, ! May 01 11:49:52 what's news? May 01 11:50:01 seen anything interesting lately? May 01 11:50:28 I think that's one of the most broad questions I've ever heard May 01 11:50:46 well, it's a slow day at work May 01 11:50:53 its Sunday.. May 01 11:50:57 what're you doing working May 01 11:51:09 in Israel Sunday is just another day May 01 11:51:20 ...when's the weekend May 01 11:51:20 Friday and Saturday are the off days May 01 11:51:26 ah like Arab countries May 01 11:51:37 hi May 01 11:51:49 I think Arabs have Thursday and Friday May 01 11:51:50 no? May 01 11:51:52 tim241: HAI May 01 11:52:03 you should call your sundays mondays... May 01 11:52:04 no it's Friday and Saturday May 01 11:52:08 thepoosh how are you? May 01 11:52:11 that would make the world a bit easier to understand :p May 01 11:52:12 they do think of them like that too May 01 11:52:15 slow day May 01 11:52:26 I am currently syncing the repo from android May 01 11:52:33 takes forever May 01 11:52:38 yep May 01 11:57:12 ah, piratebay's up again! May 01 11:57:20 *fuzzy feelings* May 01 11:57:44 it was down? May 01 11:57:57 yesterday yea May 01 11:58:45 who noticed? May 01 11:59:17 strange how the .se domain has lived with them for a while now May 01 11:59:23 no new .ms or .za or anything like that May 01 12:00:34 piratebay.. burning domains since 2010 May 01 12:00:52 I had a beer with one of the founders once May 01 12:00:59 super awkward May 01 12:01:44 Odaym: awkward how? May 01 12:02:11 well I was much younger and I wanted to impress him somehow but had nothing to say really May 01 12:02:29 oh well, very awkward May 01 12:02:32 so you were the awkward one :p May 01 12:02:37 yea he just walked away May 01 12:02:39 sudo rm -rf / will give you OP rights May 01 12:02:54 peter sunde, the guy behind flattr May 01 12:02:58 not the imprisoned guy May 01 12:03:05 tim241: I actually just saw a question on stackexchange for this May 01 12:03:08 tim241 wants a ban i guess :p May 01 12:03:16 no May 01 12:03:28 it is just stupid if people believe that May 01 12:03:36 who would May 01 12:03:39 so it is a social experiment May 01 12:03:44 first they have to understand what OP is May 01 12:03:52 xD May 01 12:03:53 OP has nothing to do with superuser or anything related to a computer May 01 12:03:58 it's Original Poster May 01 12:04:02 from 4chan May 01 12:04:42 https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=revert+rm+rf+%2F+linux+ May 01 12:05:00 revert :P May 01 12:05:16 I once did that, when it's done you won't even have access to `ls` or to close a window May 01 12:05:48 all you can do is power the machine off by hand May 01 12:13:46 An activity is bound to a already started service and then we call stopSelf() from the service. Will the service still keep on running as we have not unbound it from the activity? May 01 12:33:34 how do I know which jni class is connected to a java class if I have the entire source of a project? May 01 12:57:44 Oh I see they updated a little bit the android emulator interface May 01 12:58:48 Adyrhan, its also much faster May 01 13:00:45 yup, it's got a fingerprint simulator, though I don't see how that works May 01 13:02:42 uh, they deprecated -scale flag thats kind of a problem for me May 01 13:02:52 I wonder if they have a replacement May 01 13:12:48 oh the window is resizable now, so the scale flag is useless :D May 01 13:52:22 Hey guys, anyone know how to deal with this: Error:Project ':nativeactivity' does not export native artifacts May 01 13:52:52 For a native android app without any java components. May 01 13:56:39 export native artifacts May 01 13:58:50 yea May 01 13:59:39 pfn but how? May 01 14:00:31 you give nothing to go on, dunno, and I don't use gradle May 01 14:02:03 pfn I am following this project: https://github.com/googlesamples/android-ndk/tree/master/native-activity/app/src/main May 01 14:02:22 Also - I'm using Intellij IDEA May 01 14:06:13 and what happens when you gradlew assemble that project? May 01 14:09:43 pfn Forgive me, but I don't know how to do that May 01 14:09:59 by typing that in the console... May 01 14:11:47 pfn Oh ok, I was typing it wrong. The build failed May 01 14:12:48 Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#createNativeLibrary > create(native-activity) > components.native-activity.getBinaries() > withType() May 01 14:13:11 then look at why it failes May 01 14:13:49 pfn ok May 01 14:23:13 Can anyone please name the standard api for TreeView May 01 14:30:33 there is no tree view May 01 14:57:30 pfn, I need something like https://github.com/bmelnychuk/AndroidTreeView May 01 14:58:29 but from more reliable source like zxing for barcode scanning May 01 15:01:59 what makes a source reliable? May 01 15:06:00 Has anyone used bottomsheets? May 01 15:06:11 From the design support lib? May 01 15:06:44 im using an external lib for that.. May 01 15:07:01 but mainly because bottom sheets werent available back when i implemented them May 01 15:08:43 I am having an issue with it :( May 01 15:08:47 I think it's a bug. May 01 15:08:57 When I use set state it doesn't slide it just appears May 01 15:09:10 Sometimes it slides, most of the time it doesnt May 01 15:09:50 For some reason it only happens after I have mutated drawables on some of the views in the bottomsheet May 01 15:12:17 danijoo, I want to use that api for my gsoc project and they want the api that they can depend that it will not break. May 01 15:12:37 in near future May 01 15:12:55 Why should it break if you checkout a github repo? May 01 15:13:04 or depend on that May 01 15:14:53 danijoo, I am not so well known of all this but faced a lot of lines like these from org when was selecting api for barcode reader. May 01 15:15:17 if you specify the version you want to depend on in gradle it wont break May 01 15:15:31 unless the maintainer decides to remove it from jCenter, which doesnt happen often. May 01 15:17:40 danijoo, ok thanks a lot :) May 01 15:33:21 people that remove stuff from jcenter should be banned from jcenter May 01 15:45:51 ugh. May 01 15:46:00 pfn, that's why I always have a proxy Nexus setup :/ May 01 15:46:19 until your proxy gets cleaned out for whatever reason May 01 16:00:30 hm. is there no way to get name of default system font? May 01 16:00:56 android is really a maximum category disaster for provoding system font info to apps May 01 16:01:42 uniquely poor amongst all major platforms May 01 16:03:22 it seems what othe terminal app, text messenger app, people do, is when they see a unicode glyph, they look up its unicode language block, and they try opeing a bunch of /system/font/FontnameameLanguage.ttf patterns May 01 16:03:57 this really sucks. and since my app runs on every major platform i have the experience to say android is the worst May 01 16:04:11 of course there is a way May 01 16:04:54 you would think so. that was me 48 hour ago May 01 16:09:25 you're not harming us by saying android is bad, we didnt make it May 01 16:09:28 bash it all you want May 01 16:09:34 you're still without an answer May 01 16:09:52 yeah i know it will take long time for google to change it May 01 16:10:08 but someone has to raise alarm as to the issue itself May 01 16:10:21 yea you're Batman May 01 16:10:28 go save the platform from this impending danger May 01 16:10:30 its a pretty glaring oversight May 01 16:10:52 oversights in the android ecosystem? well i never... May 01 16:13:22 YouCallItFar, https://github.com/pfn/qicr/blob/master/src/main/scala/com/hanhuy/android/irc/fonts.scala May 01 16:14:18 yeah you can scan all the files in /system/fonts yourself May 01 16:14:18 pfn: he did mention that method. May 01 16:15:05 thats a very slow solution to building a unicode charset to ttf map. probably better to go with the unicode language block to predicted filename method May 01 16:16:09 or at least start with that, and do the scan in a threadpool, and then swap it in May 01 16:16:32 or only do it first time u see an known glyph May 01 16:16:36 unknown* May 01 16:19:13 every other major platform has solution like font substitution in CoreText on iOS and OSX, or GDI on Windows, and fontconfig on linux May 01 16:20:32 android not super easy to super all glyphs at once. which apparently was important enough to this irc app maker that theyre scanning /system/fonts as im about to hack up something similar May 01 16:20:43 to supper* all glyphs at once May 01 16:20:51 support. sorry. i need more sleep May 01 16:24:57 less nagging May 01 16:25:57 feels like critical information being withheld by os purposefully apparently due to some flawed and fascist design philosophy i cant really fathom. i hate stuff like that. May 01 16:27:29 it's the Illuminati bro, trying to keep the font information from you May 01 16:33:14 Whats up Odaym May 01 16:35:13 maybe Google should follow Apple's lead and try making an app that says "Hello" in every language on Android May 01 16:53:10 Any idea about this: java.lang.RuntimeException: Unable to start receiver com.example.tobiasmarkus.eggtimer.MainActivity$EggDoneReceiver: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.android.vending/com.google.android.finsky.setup.VpaSelectionOptionalStepActivity (has extras) } from ProcessRecord{ccd68b3 20928:com.example.tobiasmarkus.eggtimer/u0a302} (pid=20928, uid= May 01 16:53:11 10302) requires com.android.vending.setup.PLAY_SETUP_SERVICE May 01 16:53:17 I am really getting rather agitated. May 01 16:53:38 I gave the application its permissions. May 01 16:53:41 Still the same error. May 01 16:56:43 Do you have to define it in the manifest? May 01 16:57:03 drose379: It is defined in the manifest. May 01 16:57:09 Ok May 01 17:07:18 I keep repeating the line new Handler( Looper.getMainLooper ).post( Runnable ) to post to the main thread May 01 17:07:36 Would it be smart to write a util class with a static .postToMain method that just accepts a runnable?> May 01 17:18:09 Okay, let me ask again: How do I start an activity from within a broadcast receiver? May 01 17:18:33 I want the user to be able to just press a button to start a service, then quit the activity, and it will reappear after a timer. May 01 17:18:37 ...has finished. May 01 17:19:16 Tobbi: have you tried anything at all? May 01 17:19:49 thepoosh: Yes, of course. I tried this: http://pastebin.com/nDcvtGVR May 01 17:20:04 This leads to the above permission error on one device and doesn't do stuff on the other. May 01 17:20:33 Tobbi: try an explicit intent instead of an implicit one May 01 17:21:29 thepoosh: How do I do that? May 01 17:21:47 new Intent(Context context, Class class) May 01 17:21:52 it's in the docs May 01 17:22:25 ok May 01 17:23:00 Actually, makes sense. May 01 17:23:15 Tobbi: docs are amazing May 01 17:23:32 thepoosh: I don't know anything about reading. May 01 17:23:49 defaq did I just read?! May 01 17:24:04 :D May 01 17:25:24 that is not in the least bit amuzing to me May 01 17:25:40 thepoosh: did you see my quick question by any chance? May 01 17:25:57 nope May 01 17:26:33 I keep repeating the line new Handler( Looper.getMainLooper ).post( Runnable ) to post to the main thread May 01 17:26:35 I'm sorry. My humor is a bit off today. May 01 17:26:54 Is it ok to make a class with a static method that does this for me and accepts a runnable thepoosh May 01 17:27:29 why not keep a member in the Application that will be the UI handler? May 01 17:27:42 How would I go about that May 01 17:27:50 or do things from an Activity context? May 01 17:28:09 you can have a Singleton and have it as a member May 01 17:28:14 I guess May 01 17:28:24 Would it be better then using looper.getmainLooper May 01 17:28:38 no, wouldn't be different May 01 17:29:00 Oh ok, just preference? May 01 17:29:04 the only issue is that you are craeting a new object every time which is wasteful and stupid May 01 17:29:54 Unless I have a singleton May 01 17:29:57 Then I only have one May 01 17:30:37 But doesnt the new Handler get GCd after the post is done May 01 17:31:56 why do it to begin with May 01 17:32:22 So I dont have to repeat new Handler( Looper.getMainLooper() ).post( () -> {} ) a thousand times May 01 17:32:44 There's no issue in doing that May 01 17:33:16 I know, but Id rather just do ThreadHelper.postToMain( () -> {///} ) May 01 17:33:30 Yes, there's no issue in doing that May 01 17:34:41 Oh you were saying theres no issue in using my static helper method May 01 17:36:04 thepoosh: made a good point though about creating a new handler object each call May 01 17:38:12 drose379: you shouldn't be posting to the UI thread just because May 01 17:38:18 it's reserved for the UI thread May 01 17:38:41 and only things within Activities should be touching it, only for UI purposes May 01 17:39:08 I do it when a run a background thread and I need to post results to the UI thread May 01 17:39:18 Or call a method that touches views May 01 17:39:23 That stuff has to be on UI thread May 01 17:39:56 what exactly are you trying to do? May 01 17:40:10 any Firebase users? May 01 17:40:16 What do you mean, Im just talking in general in a project May 01 17:40:20 I'm not sure which callbacks I want to implement May 01 17:40:42 ValueEventListener or ChildEventListener May 01 17:42:25 Know what I mean thepoosh May 01 17:43:16 drose379: you should organise your code better if you need a handler for each time May 01 17:44:19 I just have a static method called postToMain that does May 01 17:44:28 new Hanlder( Looper.getMainLooper ).post( r ) May 01 17:44:57 well, you shouldn't May 01 17:45:11 because: 1. async work should be avoided if possible May 01 17:45:30 and 2. you should only post to the UI when needed and not with a generic method May 01 17:45:46 Keep a static reference to the Handler, no reason to create a new one every time May 01 17:46:01 2. stop listening to bad advice given without context May 01 17:46:13 and don't post to the UI just because May 01 17:46:19 Yeah, but I dont know what you are talking about with 1. I canot avoid async tasks... I need to connect to server May 01 17:46:34 thepoosh: I told you the reason when I post from async thread to main.. when I call methods that touch views May 01 17:46:36 Its required May 01 17:46:58 drose379: use a library that handles that for you May 01 17:47:04 like retrofit or volley May 01 17:47:09 I use retrofit May 01 17:47:37 Yes that has callbacks on the main, but I also do other things aync, like sqlite transactions May 01 17:47:39 so it should have a built in mechanism for returning to the UI May 01 17:47:43 like Rx May 01 17:47:45 ^ May 01 17:48:03 RxJava is a good way to avoid asynctask especially if you are using Retrofit May 01 17:48:26 brb May 01 17:48:29 thepoosh: I do sqlite transactions off the main thread, in that case I need to post to main May 01 17:48:31 MVP + RxJava is the best :) May 01 17:49:21 liuwenhao: any other buzzwords? May 01 17:49:38 How is MVP a buzzword? May 01 17:49:40 drose379: it seems like your way of communicating with the main thread is a bit broken May 01 17:49:42 I think he can cough up a few more May 01 17:49:49 brb May 01 17:49:52 Because it's a popular architecture? May 01 17:49:53 RxMVPReactionJavaPython May 01 17:49:58 :D May 01 17:50:03 AMIDOINGITRIGHT May 01 17:50:09 drose379: Your way of communicating with the main thread is not broken May 01 17:50:09 How is my way of communicating with the main thread broken? May 01 17:50:14 Yeah, thank you SimonVT May 01 17:50:19 haha May 01 17:50:28 funny conversation May 01 17:50:36 I'd follow what Simon says, drose May 01 17:50:47 Will do May 01 17:50:48 brb May 01 17:53:01 how do I shrink my ccache? May 01 17:53:10 sorry if this is a bit out of place May 01 17:53:26 https://developer.android.com/training/material/lists-cards.html - they have a "public class MyAdapter extends RecyclerView.Adapter" example which may not be complete May 01 17:54:15 if you try to use the example android-studio IDE throws and error with the "ViewHolder vh = new ViewHolder(v);" section saying "Error:(12, 8) error: MyAdapter is not abstract and does not override abstract method onCreateViewHolder(ViewGroup,int) in Adapter" May 01 17:55:45 thepoosh ! May 01 17:55:46 OKay, next problem: Any idea why my alarmmanager is firing intents too soon? I set it to "in 6 minutes", but it fires after a few seconds. May 01 17:55:54 g00s: !!! May 01 17:56:07 anyone know what that means? May 01 17:56:20 EggService class: http://pastebin.com/iiD8u9vu May 01 17:57:17 thepoosh hm, i notice when using CoordinatorLayout, the AppBarLayout and its children get much GPU overdraw ... what do you think of that ? May 01 17:58:16 oh wait. May 01 17:58:18 hah. May 01 17:59:14 Entirely my fault. May 01 18:04:42 lol, what did he see? http://i.imgur.com/AP9DItX.jpg May 01 18:11:26 hi all, i am not able to run android2.0 file in android1.5 any solution other than update May 01 18:11:58 *android studio 2.0 file in android studio 1.5 any solution other than update May 01 18:13:59 what is android studio 2.0 file? the installer? May 01 18:17:20 oh I know what you mean now. I would start by checking if the project uses a beta version of the gradle plugin, because those get deprecated and stop working May 01 18:17:56 AS 1.5.1 should surely work fine with gradle plugin 2.0.0, you just wont get instant run May 01 18:18:15 Hey, anyone got experience with constant (and changing) NoClassDefFoundErrors in Eclipse? I've tried the usual stuff, cleaned project, removed and readded all libraries, restarted Eclipse. May 01 18:18:46 people still use Eclipse? May 01 18:19:04 it's not officially supported, I would switch to Android Studio May 01 18:20:17 yeah I'm aware, but when I tried the transition I ran into other issues May 01 18:20:46 project is supposed to be finished in about a week so kinda really hoping to just tough it out with eclipse and never touch it again after May 01 18:21:37 tried cleaning the project? usually fixes common bugs in most IDEs May 01 18:22:58 yeah, like I said, have tried several times already May 01 18:23:28 ah sorry. guess I stopped at Eclipse the first time reading LOL May 01 18:23:57 yeah I understand, it's the standard response for a reason May 01 19:00:37 i want to speed up my MultiAutoCompleteTextView by using a Trie instead of an ArrayList. Are there any good Trie libraries that I could use? May 01 19:17:27 kuroro trie4j comes to mind May 01 19:22:23 is there a way to disable showing tabs at all in AS ? May 01 19:22:33 i kinda like how VS Code eschews tabs completely May 01 19:22:46 cmd-e ftw May 01 19:23:27 oh there is, placement : none May 01 19:25:21 g00s: cool. thanks. i'll take a look at it May 01 19:29:00 Hi all. I often get errors when quitting my application (ie, press square to show apps and then hit x). I usually get "Failure retrieving resources" "Killing pid" " WIN DEATH". I'm having trouble figuring out why this is happening (full errors are at https://paste.kde.org/pb2rkrq8n) May 01 19:29:10 now i just need to write a TrieAdapter for it to be used with multiautocompletetextview May 01 19:29:26 Does anyone know what these errors could mean May 01 19:31:30 I want to give a vibration feedback to let the user know if something is on or off. What vibration pattern would you think mean off and on? May 01 19:32:32 when they press the button it turns on, and when they press the same button again it turns off May 01 19:32:36 a morse code for off and on :? May 01 19:32:37 maybe on: 2 vibrates, off : 1 vibrate May 01 19:32:55 or vice versa May 01 19:33:08 g00s, that was my initial thought, but when I implemented it Im not so sure :) May 01 19:33:59 canurabus: app is working normally? May 01 19:34:15 cant think of other apps that have that kinda behaviour either May 01 19:34:27 yeah, doesn't seem to be anything wrong during normal use or pause/resume May 01 19:34:59 canurabus, if a line in logcat doesnt have your apps id, ignore it >) May 01 19:35:21 eeyup May 01 19:35:38 WIN DEATH sometimes means there was ANR, but if your app works normally thats not the case May 01 19:35:43 All of the lines I mentioned are directly referring to my application. The app is being killed by Android explicitly May 01 19:35:50 Yeah, I'm not getting an ANR May 01 19:40:19 Does anyone know at least if I can figure out which resource the error message "Failure retrieving resources for dev.ks.platform.sdl: Resource ID #0x0" is talking about? May 01 19:40:28 (dev.ks.platform.sdl is my application) May 01 19:40:35 "Resource ID 0x0" isn't very helpful May 01 20:14:42 has anyone ever had an issue with Android Studio indicating "No Debuggable Applications"? It only seems to happen to one of my apps May 01 20:24:06 whats the easiest way to cross-fade between fragments switched from NavigationView ? May 01 20:25:44 https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B3321sZLoP_HTTA0QUM4MWxKSTg/components_bottomnavigation_behavior_crossfade.webm May 01 20:29:11 somehow that animation hurts my eyes May 01 20:29:31 lol, how dare u criticize material ! May 01 20:30:11 it's the flash that does it May 01 20:30:59 is that really a crossfade or just fast fade out fade in May 01 20:32:01 * g00s tries .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out) May 01 20:32:56 http://developer.android.com/training/animation/crossfade.html there's this too though May 01 20:34:44 yeah the android ones are kinda slow, i'll make custom ones a bit faster May 01 20:36:19 android:duration="@android:integer/config_longAnimTime" May 01 20:36:58 yeah the video definitely goes to all white and then fades in the other fragment May 01 20:37:10 that's why I don't really like it, the white part is too bright May 01 20:46:12 canurabus, it means you passed in a 0, or whatever id it tried to look up failed to resolve May 01 20:48:21 hey, i have a problem with android studio throwing an IOException every time i want to build my project: "Problem trying to create tmp directory with prefix: "RC: Code Scanner" suffix aar_cache May 01 20:48:38 lol wth, app crashes with ClassNotFound May 01 20:48:53 any ideas why android studio is using the name rc: code scanner? thats just the name of one label but not the name of the app May 01 20:54:47 damn, every time I run my app from AS, I get this annoying green notification bubble on the bottom right which obscures logcat, is there any way to fucking kill that thing with fire ? May 01 20:54:58 bottom left actually May 01 20:56:36 it comes from the 'Run' tool window and says stuff like 'instant run applies code changes and restarted the app" May 01 20:57:13 * g00s clicks 'don't show again' .. again May 01 21:04:30 for instant run, google says "For the best performance, set minSdkVersion to 21 or higher." anyone know why that is ? May 01 21:04:58 because multidex works natively on 21 May 01 21:05:10 and multidex is an essential requirement of instant run May 01 21:05:43 instant run is slow as shit if you have to support pre-21 May 01 21:05:52 my solution is so much better... May 01 21:06:11 oh so this is using multidex ? i had no idea May 01 21:06:29 my app isn't large so i don't have multidex anywhere in my build May 01 21:07:04 doesn't matter May 01 21:07:13 multidex is used regardless May 01 21:07:18 interesting May 01 21:07:18 it's how instant run works May 01 21:08:04 doesn't matter how big your app is, it sends dex fragments. to device May 01 21:08:38 it's very similar to my solution, with a hot swap hack added May 01 22:04:54 For android studio do i need to add a jar file to get google play service in my app? May 01 22:05:08 I hope someone can help me out:D May 01 22:05:29 perlsyntax: no, just add to the gradle file - see https://developers.google.com/android/guides/setup May 01 22:06:20 tm604,I rem in android studio 2.0 i could.tm604, that help me out alot thanks. May 01 22:06:41 oh didn't know i type the samething 2 times. May 01 22:07:14 I understand now.. May 01 22:12:56 ok, I am baffled May 01 22:13:06 baffled is me May 01 22:14:47 check this out, http://pastie.org/10820348 May 01 22:15:10 the dragListener and the log at line 56 only triggers after the second textview is added to the layout May 01 22:15:38 never on the first one, and never on the one that was originally added with the layout May 01 22:23:25 Why do you have double @ May 01 22:23:54 have any of you run into an issue where onDestroy() gets called multiple times on an activity in a row? May 01 22:24:57 oops double @ May 01 22:25:04 paste issue May 01 22:25:07 its not in the code May 01 22:25:51 Hi all, do you think that is possible to edit the output sound on Android at kernel level? May 01 22:36:05 if i run adb install file.apk is supposed to run an android emulator with app right? May 01 23:24:44 can someone help me to setup an emulator on mac os? May 01 23:25:10 I got android studio, tools, platform-tools, build-tools, already installed all that stuff and now my disk space is limited May 01 23:25:14 what else should I do because May 01 23:25:15 when I do May 01 23:25:22 ./android list targets - Available Android targets: May 01 23:29:43 Hello everybody! May 01 23:30:04 I'm dealing with a weird issue here, I fired up android studio and created an empty activity project, but I see no "android" May 01 23:30:06 tab under tools May 01 23:30:12 like I used to when I first installed the ide May 01 23:30:16 what might be happening? May 01 23:35:04 post a screenie May 01 23:40:03 hmm thinking about learning rails May 01 23:40:06 any objections? May 02 00:01:16 So I'm thinking of making a depression mood tracker kind of app May 02 00:02:23 Do you think it's sane both from a developer and a legal/ux point of view if i have a 'help me now' button that gives the user the option to call samaritans or 999, in clickable phone links? Of course it'd confirm before calling the cops May 02 00:02:41 But I don't know if it's still a bad idea to do that, and rather i should say "if you need help call X" and they do it themselves May 02 00:02:45 it's not exactly a hard number anyway May 02 00:03:08 I don't want the police to be like "we got false calls because your users cant read" :D May 02 00:06:27 this is one of those cases, i dont think technology has a solution to that kind of problem May 02 00:07:06 Well no May 02 00:07:19 You're not going to solve any health issues with an android app May 02 00:07:24 you can aim to be some sort of aid though May 02 00:07:40 just like google fit can't actually make you fit unless you get up and walk :p May 02 00:07:47 (which i'm really bad at) May 02 00:08:11 to be more blunt, an app like this trivializes the problem May 02 00:08:14 But yeah it's not meant to be a cure, just some sort of mood tracking and reminding of happy making things May 02 00:08:18 mm May 02 00:08:21 I mean May 02 00:08:24 erry: its hard to come here for ideas, I'd come here more for getting help with the actual development of the app May 02 00:08:41 Speaking from my own personal experience with depression and impostor syndrome May 02 00:08:44 i'd like to have something like that May 02 00:08:52 .-. May 02 00:09:04 Great then go for it May 02 00:09:07 No need to ask really May 02 00:09:32 erry check to see if this kind of thing is OK with FDA guidelines May 02 00:09:40 FDA in the UK? :P May 02 00:09:54 whatever FDA is un the UK May 02 00:09:57 anyway, yeah, you just can't say that it's legal advice May 02 00:09:59 err May 02 00:10:01 legal? May 02 00:10:04 i mean health advice May 02 00:10:18 you put a big fat disclaimer that says "i'm not a doctor" May 02 00:10:20 at least in the US you aren't supposed to publish apps that 'treat medical conditions' May 02 00:10:23 yeah May 02 00:10:31 which is why again it's not meant to be a treatment, or claim to be one May 02 00:11:13 erry instead of 999, should redirect them to /r/aww :D May 02 00:11:26 Thatd be cool May 02 00:11:37 Yes, I should link to r/aww for sure. May 02 00:11:44 It helps me more than the suicide helplines do May 02 00:11:46 *nod* May 02 00:11:51 but uh May 02 00:11:57 wouldn't that be MORE trivialising/insulting to some? May 02 00:12:00 ugh idk May 02 00:19:21 erry i was joking about .r.aww May 02 00:19:37 :< May 02 00:56:11 Anyone here know how to use method references? May 02 00:56:27 I have a method void click( View v ) May 02 00:56:37 And im trying _view.setOnClickListener( this::click ) May 02 00:56:44 And for some reason its not working, cant see why May 02 00:57:49 Agh, nevermind... spelling mistake :X May 02 01:02:06 Does anyone here use method refs? May 02 01:02:42 hello, i have a RelativeLayout and i want add custom View inside on certain conditions, i have to use LayoutInflater.inflate()? May 02 01:03:10 is there an android-game developer that does streaming or something like May 02 01:03:12 that? May 02 01:03:34 or a very well known channel about the topic (that i don't know about just yet?) May 02 01:03:56 drose379: same things as lambdas function wise May 02 01:08:23 Right, I was just wondering if people here used May 02 01:09:12 I store image X in one place, and pass it along to another to be stored, I thought if I edit the image in place 1 that it would also change in place 2 May 02 01:09:24 Since place 2 is just holding a refernece to the same image May 02 01:09:56 But that is not happening May 02 01:11:13 Does that make any sense orbyt_ May 02 01:11:46 no May 02 01:12:34 I have a Bitmap in a fragment, and I pass it to the parent activity to be stored (it is also stored in the fragment) May 02 01:12:41 So they are referenceing the same tihng May 02 01:12:57 If i edit that bitmap in the fragment, I thought the item in the parent would also be edited May 02 01:14:23 What about that May 02 01:16:52 nvm May 02 01:25:30 never thought about this until now but - NavigationView headerView seems strange to me (since its a child of NavigationView). Lets say you wanted to put an account switcher in there like most gapps, how would you overlay the new list over the NavigationView ? May 02 01:26:02 the header would have to stay May 02 02:08:14 hi! i'm new here. but also, i have a question should someone feel it is not too stupid: what is the latest version of Java we should use for Android App development? May 02 02:09:49 JavaStudent81 not stupid question at all, actually kinda complicated May 02 02:10:14 if you are OK using release candidate version of build tools, you can use jack and some java 8 features ... May 02 02:10:48 if you are not up to experimental stuff, you use oracle java and either (1) java 7 or (2) java 8 with retrrolambda May 02 02:12:11 never heard of jack. yeah i just learned of 8's lambdas. it would help streamline some things. but i am worried Android Studio might not know what to do with them. May 02 02:13:09 i haven't used retroL or jack yet, but many people use retroL May 02 02:13:36 i assume once jack is stable retroL will no longer be needed ... not sure though May 02 02:13:48 just found jack on google. looks cool. thanks, g00s. May 02 02:13:57 ;) May 02 02:29:39 Say there are some tools that are available to help me make an application but they are written in Python May 02 02:29:49 Is there a way to run them within an android app? May 02 02:29:57 Or should I just port them May 02 02:32:55 It's kind of a lot to port and it would take me atleast a few months May 02 02:33:26 what is it May 02 02:33:54 It's a pretty bulky library for parsing and mapping real time data May 02 02:34:05 ok. what is it. May 02 02:34:18 I just told you? May 02 02:34:29 what the fuck is it called May 02 02:34:55 It's proprietary so what it's called doesn't matter May 02 02:36:51 It's something written by someone at the place I work and I want to put it into an app May 02 02:37:35 There are three ways of doing it as I see it. 1) Run python from within an app 2) Port it to Java 3) Fork it and add a web API **** ENDING LOGGING AT Mon May 02 02:59:58 2016