**** BEGIN LOGGING AT Thu Jul 21 02:59:58 2016 Jul 21 05:22:19 <_vaibhavingale_> I have amlogic android TV box runs on 4.4.2, we connect a usb keyboard to it. when its powered on, power on/off key works.. but once device shutdown am not able to start it from keyboard's power button. Can I do this? I have its android source too. Jul 21 07:44:14 hi Jul 21 07:46:40 can anyone answer my problem Jul 21 07:46:51 I have a problem with InApp Purchases Jul 21 08:02:57 Possibly, if you tell us what your problem is. Jul 21 08:08:18 barq: I have refunded a Purchase Order to my customer from the merchant page of my app. Jul 21 08:08:47 the customer no longer wanted the Inapp Feature so I refunded Jul 21 08:09:29 Using the debug code evaluate on Android studio 2.1 I'm trying to evaluate this expression "new String("hello world".getBytes("UTF-8"), "UTF-8")" Jul 21 08:09:33 it return empty string Jul 21 08:09:38 refunded money got credited to customer's account Jul 21 08:09:54 I've tried the same expression on Intellij IDEA, and it works as expected (returns "hello world") Jul 21 08:10:47 If I put it on my code, and put a breakpoint afterward, it shows the right value. Jul 21 08:10:55 So, In my app I want to check the InApp Product purchase status and block respective feature to the user Jul 21 08:11:43 How would check the refunded feature inside my app? Jul 21 08:18:39 I just installed java and android-studio using Homebrew-Cask, and now when opening it I get “'tools.jar' is not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.” Jul 21 08:19:20 does anyone know which path JAVA_HOME needs to be set to? Also how do I set environment variables for apps? I only know how to set them for shells Jul 21 08:19:52 (this is on OS X btw) Jul 21 08:26:32 The jdk path Jul 21 08:27:08 http://stackoverflow.com/questions/30454505/mac-os-how-to-set-java-home-correctly-in-the-path Jul 21 08:41:06 barq: okay, that answers the first part of my question Jul 21 08:47:25 okay, so apparently running `open -a "Android Studio` from a shell with that envar set works Jul 21 08:49:06 Ugh, why is onResume() called when I create a new activity? Jul 21 08:51:29 VerbalKInt : look at android life cycle Jul 21 08:51:33 Is this seriously how it's supposed to work? I have to put my "dynamic" stuff in it? Jul 21 08:51:58 Gah Jul 21 08:52:58 VerbalKint: onResume is called when the fragment/activity gains focus Jul 21 08:53:14 thepoosh: yeah, I get it Jul 21 08:54:35 boker thepoosh Jul 21 08:54:51 raoul11: where were you? was looking for you the past 2 days Jul 21 08:54:59 VerbalKint: so why the long face? Jul 21 08:55:07 werkin like a baws Jul 21 08:55:15 thepoosh: thought it would be saner :P Jul 21 08:55:23 finished like 8 screens i needed to Jul 21 08:55:24 wat Jul 21 08:55:29 coolz Jul 21 08:55:33 VerbalKint: what's the issue? Jul 21 08:55:46 thepoosh: nothing right now. Know what to do. Jul 21 08:56:09 activity lifecycle is wonderful once you understand it Jul 21 08:57:42 Does everyone here use Crashlytics? Jul 21 08:57:49 raoul11: and then you find out about fragment lifecycle and become 10 years older Jul 21 08:57:56 Is it essential for all apps or only big apps? Jul 21 08:58:13 i got a confession thepoosh, i stopped using fragments alltogether Jul 21 08:59:09 markyosullivan: you should care more if your app has a low userbase, coz every crash is an injection of poision to your ranking Jul 21 08:59:15 still there Jul 21 09:00:25 plus, as a dev ud appreciate reports telling you exactly whats wrong with your app on your users phones Jul 21 09:00:38 anyways Jul 21 09:00:44 thepoosh: plans for this weekned? Jul 21 09:00:56 you going to the mitzhaad today? Jul 21 09:02:32 raoul11: nope, I am spending a lot of time talking about it though Jul 21 09:02:42 pro/against? Jul 21 09:02:54 markyosullivan: why not firebase crashes? Jul 21 09:02:54 undecided? Jul 21 09:03:17 i plan on integrating damadafaka out of firebase to my next game thepoosh Jul 21 09:03:26 raoul11: I think that there are better ways to protest but protesting is a corner stone of democracy so I have no say about it Jul 21 09:03:29 it is amazing Jul 21 09:03:50 couldnt agree more Jul 21 09:04:05 its like "mitzhad hasharmutot" Jul 21 09:04:11 what a stupid way to make a point Jul 21 09:04:14 that no one gets Jul 21 09:04:29 anyways thepoosh: i will bug you a lot once i start firebase integration Jul 21 09:07:54 raoul11: it's a global thing and it's called slut walk Jul 21 09:07:58 no worries Jul 21 09:08:09 I have about 3 months worth of firebase integration Jul 21 09:08:40 from what one of the core devs told us about it in google, it looks amazing Jul 21 09:09:16 core/lead forgot what his pos there Jul 21 09:31:34 hey! can anybody spot what either of those phones is (if any exists)? facebook keeps referring to terrible phones with small screens and I'd like to get one :) https://cnet4.cbsistatic.com/img/f5mtzcRh2c-F8sDHNz9tnfC11WQ=/270x0/2015/06/04/29b10e82-14eb-455b-8af0-7c841ff812c8/fblitenewsfeedenglish.jpg Jul 21 09:31:35 https://usercontent.irccloud-cdn.com/file/4h6BH7OB/Screenshot%202016-07-21%20at%2002.17.19.png Jul 21 09:36:52 Good morning, i am looking for a technique or guide or documentation of some sort to deobfuscate (or at least try) to deobfuscate a decompilaed apk Jul 21 09:38:01 i know it might sound strange but i was engaged in a pentesting activity (legal) which is black box Jul 21 09:40:48 thepoosh: What's better Firebase crashes or Crashlytics? :p Jul 21 09:57:28 markyosullivan: there are advantages and disadvantages to each Jul 21 09:59:29 Well I can't get Crashlytics working Jul 21 09:59:34 ._. Jul 21 10:06:55 Got it working Jul 21 10:07:02 the plugin auto generated code which I didn't need Jul 21 10:12:04 what is the easy explanation of the XML tag and why is it sometimes used around ? Jul 21 10:17:19 I just downloaded the Android Action Bar Icon Pack.. where do I put it Jul 21 10:18:35 take the resources you want to use and put them in /res/drawable/ Jul 21 10:18:53 thanks. I dont have to keep them grouped? (like full open source?) Jul 21 10:19:29 I'm not familiar with the legality of it Jul 21 10:19:44 ohk thanks, Ill keep researching Jul 21 10:21:23 Hello, can i ask about device emulation here? Jul 21 10:22:06 I'm running a virtual device on genymotion / virtualbox, and I don't know if it's possible to emulate an USB connection from the device to my computer Jul 21 10:23:52 are u using the free version? Jul 21 10:24:13 mmm yeah Jul 21 10:25:08 I know you get a lot more features when you buy it so perhaps the full version Jul 21 10:26:25 I'm pretty sure it should be somewhere in the free version, just not very familiar with the virtualbox settings Jul 21 10:41:16 Anyone familiar with Crashlytics? Just wondering if I have to include Fabric.with(getContext(), new Crashlytics()); for every Activity? Jul 21 10:41:40 If I have this it means any crash at all will be reported on the dashboard? Jul 21 11:15:43 why dont you implement a base activity and do it from that Jul 21 11:23:51 https://twitter.com/kotlin/status/755339965194731521 funny :D Jul 21 11:24:02 Hey guys is there a way to find out what version of google play services an apk is using? Jul 21 11:24:11 Specifically for ads Jul 21 11:26:27 thornekey: A base activity which is extended by all the other activities? Jul 21 11:27:00 markyosullivan, yep Jul 21 11:27:36 you dont need to do it Jul 21 11:27:46 just init it in application class Jul 21 11:29:42 hello, so is there any way to get an android emulator to be read as a physical android connected on an USB device for pc? Jul 21 11:34:14 when using TextInputLayout, when the hint text animates and changes color, where is this secondary color set? Jul 21 11:40:36 gordon_: Application class? How would I go about doing that? Jul 21 11:41:47 YourApplication extends Application Jul 21 11:41:56 and manifest tag Jul 21 11:50:07 How would I override Application class though Jul 21 11:50:07 ? Jul 21 11:51:38 Also is there a way to disable log? Jul 21 11:51:39 markyosullivan, this is mine, http://pastebin.com/nxjfTDAn i use it to check if the user is logged in with fb Jul 21 11:52:27 Then you extend from that class for all other activities? Jul 21 11:52:48 yea :) Jul 21 11:52:52 ? Jul 21 11:53:10 your activities wouldnt be extending from that? Jul 21 11:53:28 thornekey: but you can't extend two classes, like my MainActivity uses AppCompatActivity Jul 21 11:53:48 wait let me check where i used it Jul 21 11:54:15 markyosullivan: just have your subclass use Application, and override what you need, but after that, leave everything else alone, they don't need to extend your class Jul 21 11:55:07 ah right, i just have a class which is called from an activity, which calls that Jul 21 11:55:08 my bad Jul 21 11:56:50 ghosalmartin: but would it not be messing methods from the likes of AppCompatActivitity? Jul 21 11:56:54 *missing Jul 21 11:57:53 your activities should extend AppCompatActivity Jul 21 11:58:02 and your Application class should extend Application Jul 21 11:58:05 have a base activity which extends that and extend base activity in ur activities Jul 21 11:58:06 what are you trying to do? Jul 21 12:02:01 I'm confused Jul 21 12:02:05 also Activity#onCreate should be protected Jul 21 12:02:28 So I have a application class which extends application, then base activity which extends application class which extended application Jul 21 12:02:48 but then if I have an activity which extends base activity, how is it supposed to extend AppCompatActivity as well? Jul 21 12:02:53 activity which extends application? what magic si this Jul 21 12:03:24 no, extends AppCompatActivity Jul 21 12:03:49 baseactivity extends AppCompatActivity > ur activities extend baseactivity Jul 21 12:04:32 eg. use it to stop and start facebook api tracking Jul 21 12:05:08 he must be high Jul 21 12:28:07 i have two res/values/version.xml files in my project one value is set to 6.11 and the other one to 8.4 Project builds fine but are both values used? We got a warning about our app using an outdated version and will no longer be supported. But the ads.aar pack is at version 8.4, so it should just be fine. But on their end our app is registered as 6.11 Jul 21 12:30:22 so.. is it possible or not to emulate an USB connection from the host computer with the virtual android emulated? Jul 21 12:30:50 I've tried genymotion and I can't find any option for that.. anyone else ever needed to do this and found a solution? thanks a lot Jul 21 12:49:20 thornekey: Okay makes sense now! Jul 21 12:49:21 thanks Jul 21 12:49:26 Ashiren: Whoops Jul 21 12:49:31 :) Jul 21 12:55:30 markyosullivan: sorry I was busy Jul 21 12:56:08 hi, how i can see the number of pixels of my margin? Jul 21 12:56:15 in debug mode can see this? Jul 21 13:00:59 Man, Handler + Thread is so much more efficient than CountDownTimer. At least it seems to me this way. Jul 21 13:04:17 hi, there is a know bug in android N preview about dialog? Jul 21 13:04:32 in my app doesent see buttons in dialog Jul 21 13:08:30 ? Jul 21 13:09:18 opinion req: sharedpref and a hashmap (key: string, val: arraylist), sharedpref and the hasmap as a json string (gson), or read/write to a .json file ? Jul 21 13:11:27 write to a .toml file :) Jul 21 13:12:29 saywhat Jul 21 13:12:52 Thanks for the suggestion guys, all I had to do was extend Application and just add in the Crashlytics code within the onCreate() and it works fine Jul 21 13:20:00 anyone has problem with android N preview dialog button? Jul 21 13:44:53 hi, i am using Chrome tabs, but my button X(close) is returning to chrome not to my app. How i can solve this? Jul 21 13:47:23 hi Jul 21 13:47:53 Is it possible to use GPS to detect driving? Jul 21 13:48:06 Or, detect being in a car that is being driven...? Jul 21 13:48:41 I'm trying to read the body from an okhttp response and I get an IllegalStateException. Now, I know that I can't read the response.body().string() twice, but the fact is that I'm not doing it. I get the response and the line after that I try to read it and I get the exception :/ Jul 21 13:48:52 skinux: http://stackoverflow.com/a/27058859/1056359 Jul 21 13:55:08 hi, i am using Chrome tabs, but my button X(close) is returning to chrome not to my app. How i can solve this? Jul 21 14:16:00 im using picasso to get images (from facebook url) and then using a rounding image class to make the image appear rounded, then finally setting the returned image as the source for an ImageView.. however sometimes it doesnt round all the images when i put them in a list. http://ideone.com/YceLmz is my code.. anyone see whats happening Jul 21 14:27:22 thornekey: why not using image transofrmation with picasso ? Jul 21 14:27:28 *transformation Jul 21 14:27:31 oh Jul 21 14:27:37 i didnt realise there was such a thing Jul 21 14:27:41 is there an example Jul 21 14:27:58 picasso.load().tranform(your class).into(imageView) Jul 21 14:28:07 wait I will give you class Jul 21 14:28:44 thornekey: http://pastebin.com/9vFrT02t Jul 21 14:32:15 wow, brilliant! Jul 21 14:32:25 thank you gordon_ !!! Jul 21 14:32:33 np Jul 21 14:32:43 it's not my class, I've found it somewhere Jul 21 14:33:06 well thanks for bringing my attention to it :) Jul 21 14:33:15 idk why mine only worked 'sometimes' Jul 21 14:33:16 np Jul 21 14:33:30 probably some cache issues Jul 21 14:33:37 too lazy to check it ;P Jul 21 14:33:53 haha yea perhaps, Jul 21 14:34:01 all good though, this seems to work well Jul 21 14:34:07 good Jul 21 14:41:41 How do you view custom keys on the Crashlytics dashboard? Jul 21 15:03:11 Crashlytics.log("Response code: 400"); Jul 21 15:03:23 Where can I find that log message in the Crashlytics dashboard? Jul 21 15:27:39 my main Activity opens a new LoginActivity (that does stuff etc....). From the LoginActivity I need to access an object that is inside MainActivity... how can I do that? Jul 21 15:28:42 pass object using intent Jul 21 15:30:59 I have an Activity that calls an Intent that calls an Intent that calls an Intent that calls an AsyncTask. How can I send results from AsyncTask to the first Intent without return the value through "onActivityResult"? Jul 21 15:31:13 What I have: Activity_1 -> Activity_2 -> Activity_3 -> AsyncTask Jul 21 15:31:13 What I want: Activity_1 <- AsyncTask Jul 21 15:37:10 store the result in some global cache Jul 21 15:38:45 By extending a class with "Application"? Jul 21 15:39:10 why does people still use asynctask Jul 21 15:39:13 in 2016? Jul 21 15:40:02 What alternative should I use? Jul 21 15:40:57 (That not implies to import a library, obviously) Jul 21 15:47:14 <^arcade_droid> Hi. I've got a spinner, populated as described here https://stackoverflow.com/questions/18154518/android-populate-spinner-from-html-form-values-select-tag . But when on button click I wish to get the string selected, I get the selected ID (spinner.getSelectedItemID()) but spinner.getSelectedItem().toString() as described everywhere on the internet (to get the selected string) does not seem to return anything. Jul 21 15:47:14 <^arcade_droid> Log.d("tag". spinner.getSelectedItem().toString()) prints nothing to the debug console. How to fix it? Jul 21 15:47:32 dsardari, thank you. Jul 21 15:51:29 <^arcade_droid> Anyone? Jul 21 16:07:58 Hello, anyone knows a different place to upload your apps that is not the play store? Jul 21 16:08:45 RxMcDonald: There is Amazon App Store, but I haven't used it Jul 21 16:08:54 f-droid, assuming it's floss Jul 21 16:09:06 I mean, a place for different niches like adult niche or just somewhere to upload your apps that isn't restricted like the play store Jul 21 16:09:07 vast vast majority of users are on play store Jul 21 16:09:18 you know, the internet traffic is like 60% porn Jul 21 16:09:27 but it's stupid that there are so little apps for adults Jul 21 16:09:41 dunno if it still exists, but mikandi (sp?) was a porn app store Jul 21 16:09:44 and that's because the play store doesn't allow them Jul 21 16:10:06 also, there are plenty of apps that are good for that, they just don't advertise themselves that way :) Jul 21 16:10:24 in the play store? Jul 21 16:10:40 chrome, say... Jul 21 16:10:54 yes in the internet yes but I mean, android apps Jul 21 16:11:08 https://www.youtube.com/watch?v=1EPz-q_gT5A Jul 21 16:11:34 everybody watch that, it's very funny :D Jul 21 16:11:35 no man that's for browsing websistes with adult content Jul 21 16:11:42 it's NSFW Jul 21 16:12:07 yea it's for adult content Jul 21 16:13:17 But what I want to know is if there is some place to upload apps that is accessible by the android users for different niches and not restricted like the play store because the play store sets a lot of restrictions not just that Jul 21 16:14:10 seriously i don't even know why the block adult content since it's so easy to launch chrome and search for whatever you want Jul 21 16:14:52 I would like to know too if anyone has some info on that Jul 21 16:16:03 f-droid is dead btw Jul 21 16:16:11 and probably don't allow adult content Jul 21 16:16:17 as I said, mikandi, or something similarly-spelled, was a porn app store, but I don't know if it's still alive Jul 21 16:17:03 but porn app store is not exactly good for business either, i mean adult content doesnt have to be porn Jul 21 16:17:24 also, the play store sets a lot of restrictions Jul 21 16:19:03 can't we have an app store without restrictions? Jul 21 16:19:09 someone should make one Jul 21 16:20:35 is there an alternative to f-droid? Jul 21 16:20:42 Leeds: hey ty for the mikandi lead Jul 21 16:21:20 definitely something related, but it's too pornography oriented, it should be a play store that has adult apps and all the rest, without restrictions Jul 21 16:21:38 with pirated apps and everything Jul 21 16:21:58 you mean like aptoide or something? Jul 21 16:22:06 I use it for testing apps before buying Jul 21 16:23:25 Veruso: that looks promising Jul 21 16:25:53 with pirated apps? Jul 21 16:26:01 so you're looking for a malware store then Jul 21 16:33:16 malware store? that doesn't sound good for business Jul 21 16:33:35 something more like free of restrictions store Jul 21 16:33:58 restrictions like "copyright" and "publishing by the original author"? Jul 21 16:34:13 not difficult to spot malware Jul 21 16:34:45 best anti-virus is common sense Jul 21 16:34:48 no, I'd assume that pretty much anything from a warez market is infected Jul 21 16:35:13 restrictions like paying the author for their work? Jul 21 16:35:31 meh, you want to know where to publish porn apps, either self-publish or mikandi... you want to know where to get - or distribute - pirated apps? fuck off Jul 21 16:35:55 <^arcade_droid> I have to agree, you can not trust stores that distribute modified applications Jul 21 16:36:19 I would argue that pirating services increase app sales Jul 21 16:36:25 :shrug: Jul 21 16:36:28 nope Jul 21 16:36:30 not at all Jul 21 16:36:30 <^arcade_droid> Somewhat maybe Jul 21 16:36:40 well, at least for how I use such services... Jul 21 16:36:56 i do not believe that for a second Jul 21 16:37:02 ok? Jul 21 16:37:09 <^arcade_droid> so? Jul 21 16:37:20 everyone claims that they use pirated services to “try out, and they buy the ones they like, honest they do!” Jul 21 16:37:31 s73v3r : Authors should get paid? "But it's so easy not to" :/ Jul 21 16:37:42 but inevitably the come up with some reason that they don’t like the app, and justify not paying Jul 21 16:37:51 yet, they continue to use it Jul 21 16:37:53 <^arcade_droid> Well, here comes the fact that those who pirate would not buy the thing Jul 21 16:38:02 yeah i cbf discussing this with you Jul 21 16:38:04 so why are they entitled to it Jul 21 16:38:08 what do you mean everything "warez" is infected? not at all, I've never paid for any software or games and I've been on the internet since the early 90s and I've never had any trouble with virus or any other malware Jul 21 16:38:11 I paid for SublimeText3 - I love that thing Jul 21 16:38:14 people that get infected are idiots Jul 21 16:38:19 <^arcade_droid> Not everything Jul 21 16:38:22 I wouldn’t buy a ferarri. should I get one just because? Jul 21 16:38:32 <^arcade_droid> You can not trust the warez stores. Jul 21 16:38:47 s73v3r you can be against pirating without being a moron Jul 21 16:38:49 buy the damn app on the Google play store and be done with it Jul 21 16:38:51 just saying Jul 21 16:38:55 that means almost 30 years of free of any kind of trouble using pirated software Jul 21 16:39:21 also, I don't even use anti virus Jul 21 16:39:22 a proud thief is still a thief Jul 21 16:39:24 <^arcade_droid> s73v3r that was a damn bad metaphor Jul 21 16:39:38 if you're asking where to publish, why the fuck would you want to publish on a store which supported piracy? Jul 21 16:39:43 <^arcade_droid> Real items are in no way the same as digital content Jul 21 16:39:44 no, it wasn’t. either way I’m saying that the creator doesn’t deserve to be paid for their work Jul 21 16:39:48 if you're asking where to get warez? fuck off Jul 21 16:39:51 what you mean thief? only stupid people support copyrighted software, that's stupid Jul 21 16:40:03 oh god Jul 21 16:40:03 then use open source stuff Jul 21 16:40:13 open source stuff is still copyrighted Jul 21 16:40:15 developers should get paid for service not for copies of programs Jul 21 16:40:18 so is free software Jul 21 16:40:21 <^arcade_droid> What Jul 21 16:40:24 <^arcade_droid> What Jul 21 16:40:29 but don’t believe you’re entitled to the work of others just because you don’t believe in the concept of copyright Jul 21 16:40:30 I'm trying to test a Fragment, but first I need to open it from the Navigation Drawer. I have some espresso logic to do so, but it fails telling me it can't click the view because it's not showing. I feel like it's because the drawer might be taking some time to open, but I'm unsure. The code is pretty simple: open(R.id.drawer_layout); onView(withText("View Open Source Licenses")).perform(click()); Jul 21 16:40:52 <^arcade_droid> Did you just say should not get paid for copies Jul 21 16:40:54 <^arcade_droid> What Jul 21 16:41:06 ^arcade_droid: RMS-fanatic Jul 21 16:41:10 they just feel they’re entitled to free crap Jul 21 16:41:37 Leeds: That’s an insult to RMS. He at least doesn’t believe in taking the work of others Jul 21 16:41:41 I'm a developer and I don't agree with copyright software, it's seriously stupid, just get paid for a service Jul 21 16:41:45 <^arcade_droid> What Jul 21 16:41:56 guys, leave the troll be Jul 21 16:42:00 RxMcDonald: Good for you. Don’t take the work of others Jul 21 16:42:03 like you work 8 hours a day and get paid 30 dollars an hour, that's it Jul 21 16:42:15 what if selling apps is my day job? Jul 21 16:42:18 but getting paid 50 dollars for every copy of your program thats retarded Jul 21 16:42:18 <^arcade_droid> ^ Jul 21 16:42:21 <^arcade_droid> What Jul 21 16:42:34 <^arcade_droid> You are retarded, where do you think the money comes? Jul 21 16:42:34 if people are willing to pay it, it’s not Jul 21 16:42:50 you end up with companies and people worth thousands of millions, literally Jul 21 16:42:54 so? Jul 21 16:43:04 how can you agree with a guy having 80 billion on his bank account? Jul 21 16:43:06 are you stupid? Jul 21 16:43:12 they made something people wanted Jul 21 16:43:12 <^arcade_droid> How can I not? Jul 21 16:43:18 <^arcade_droid> They earned it. Jul 21 16:43:26 <^arcade_droid> Do some work and so shall you. Jul 21 16:43:40 no, they are selling copies of the same thing to everyone, literally virtual shit Jul 21 16:43:44 MarkyC: are you trying to handle the click event of drawer items? Jul 21 16:43:55 they are selling the work they’ve done Jul 21 16:43:55 <^arcade_droid> RxMcDonald so? Jul 21 16:44:05 they worked for x amount of hours and multiplied profits exponentially, that should be illegal Jul 21 16:44:11 <^arcade_droid> What Jul 21 16:44:14 nope Jul 21 16:44:23 yes, it's wrong Jul 21 16:44:26 and that still isn’t justification for you pirating Jul 21 16:44:29 tell that to your cleaning lady Jul 21 16:44:29 <^arcade_droid> No it is not Jul 21 16:44:39 tell her that she can't sell her cleaning profession for 50 billion copies Jul 21 16:44:46 <^arcade_droid> What Jul 21 16:44:48 Veruso: I'm just trying to click the drawer item titled "View Open Source Licenses" so that my Fragment will show. Then I want to test that Fragment in isolation. Essentially my test is failing to even get to the Fragment I want to test Jul 21 16:44:50 literally fucking with everyone even with you Jul 21 16:44:53 <^arcade_droid> irl != virtual Jul 21 16:45:01 literally fucking with developers Jul 21 16:45:05 <^arcade_droid> What Jul 21 16:45:18 like, i hire you, you work for 10 hours and i sell your work 500 million times Jul 21 16:45:23 and I only pay you for 10 hours Jul 21 16:45:25 ggpwned Jul 21 16:45:29 kill urself Jul 21 16:45:39 <^arcade_droid> Haha Jul 21 16:45:48 MarkyC: have you used onNavigationItemSelected(MenuItem) { }? Jul 21 16:45:50 worst of all it's not funny Jul 21 16:45:56 <^arcade_droid> Let's go kill ourselves for wishing to sell our work Jul 21 16:45:57 <^arcade_droid> Lol Jul 21 16:46:00 MarkyC: You could try to add it to a Test Activity, if you’re just looking to test the fragment, and not the drawer interaction Jul 21 16:46:18 guys, let the troll talk to himself until he's bored - he's obviously come in here looking for a fight Jul 21 16:46:23 the weird thing is, socialists are usually the ones arguing that those who do the work should see the bulk of the reward for it Jul 21 16:46:33 * capella loves the "can't understand it so capitalism is a bad thing" crowd Jul 21 16:46:42 Veruso: The menu works fine in the app. I feel the test framework is just being impatient Jul 21 16:46:43 Leeds I don't think he's trolling and to suggest so is intellectually dishonest Jul 21 16:46:51 he’s trolling Jul 21 16:46:58 ++ Jul 21 16:47:01 <^arcade_droid> I do hope so Jul 21 16:47:06 Leeds: no the fight came when you said that warez was infected and that companies should get paid for every copy, clearly two really wrongly mass distributed lies Jul 21 16:47:06 someone having an honest discussion wouldn’t be saying “kill yourself" Jul 21 16:47:07 "someone who doesn't agree with me is trolling" Jul 21 16:47:14 s73v3r: i've done that in the past, but this is a new project so I want to "do it right", y'know? Jul 21 16:47:26 seriously, people and companies with massive power keep telling those lies Jul 21 16:47:29 that’s not doing it wrong, if your goal is to test the fragment Jul 21 16:47:32 <^arcade_droid> Well, you can't trust warez Jul 21 16:47:32 just stop buying it, they are filthy rich Jul 21 16:47:37 <^arcade_droid> That is a fact Jul 21 16:47:47 how can you even trust someone that's worth 80 billion dollars? are you stupid Jul 21 16:47:47 it will also help you design your fragment properly Jul 21 16:47:49 RxMcDonald: Regardless of your views, your conversation is off topic for this channel. Jul 21 16:47:54 all they want is your money Jul 21 16:47:59 MarkyC: sry i didn't start Jul 21 16:48:03 <^arcade_droid> LOL Jul 21 16:48:05 <^arcade_droid> What Jul 21 16:48:11 RxMcDonald: but now you will stop Jul 21 16:48:13 be the bigger person and finish Jul 21 16:48:37 I'm not saying anything Jul 21 16:48:42 he said i was trolling Jul 21 16:48:49 <^arcade_droid> Shush now Jul 21 16:48:59 s73v3r: I forgot that was the second benefit to doing it that way :/ good call Jul 21 16:49:54 MarkyC: another thing you might want to look into, if you’re doing espresso tests about the drawer, is making sure that the option itself is on the screen Jul 21 16:50:48 s73v3r: the hamburger itself? I've breakpointed, and I see that the hamburger has a white circle around it, so it /is/ registering the click Jul 21 16:52:03 have you tried getting a reference to the DrawerLayout itself and calling openDrawer? Jul 21 16:52:29 s73v3r: worth a shot Jul 21 16:54:13 I would still do most of the testing by embedding the fragment in a test Activity, but going from the drawer and making sure the fragment appears properly would be a good integration test Jul 21 16:55:45 You know what irritates me? I have a few compilation errors in my project, and now all the R files refuse to build. The error isn’t even related to the resource files Jul 21 16:56:28 i made some changes to a class, and I want to find all the places I need to make changes. So I build, expecting the compilation errors. But those get lost in the noise of all the R.java errors Jul 21 16:56:32 <^arcade_droid> Hi. I've got a spinner, populated as described here https://stackoverflow.com/questions/18154518/android-populate-spinner-from-html-form-values-select-tag . But when on button click I wish to get the string selected, I get the selected ID (spinner.getSelectedItemID()) but spinner.getSelectedItem().toString() as described everywhere on the internet (to get the selected string) does not seem to return anything. Jul 21 16:56:32 <^arcade_droid> Log.d("tag". spinner.getSelectedItem().toString()) prints nothing to the debug console. How to fix it? Jul 21 16:56:49 eh? java errors never cause R errors Jul 21 16:57:02 tell that to my Android Studio Jul 21 16:57:05 how is it possible that you've encountered this Jul 21 16:57:14 only if you put R.java in the wrong package Jul 21 16:57:16 which still isn't possible Jul 21 16:57:39 i’m guessing that because of the compilation errors, it didn’t bother to create the R files Jul 21 16:57:47 R.java gets created before java compilation Jul 21 16:58:02 you can't do java compilation before R.java Jul 21 16:58:29 s/java/any/ Jul 21 16:59:12 all I know is that the files are full of highlighting as an error anything that references R. Jul 21 16:59:49 build once Jul 21 16:59:51 and it goes away Jul 21 16:59:54 unless you have resource errors Jul 21 17:18:00 if I had resource errors, I would expect those to show up in the log Jul 21 17:19:00 however, experience has told me this is not true Jul 21 17:22:14 s73v3r: in continuation to your comments a few days ago: https://www.reddit.com/r/androiddev/comments/4twno6/introducing_stack_overflow_documentation_beta/d5l6xeg?context=10000 Jul 21 17:22:45 With instant run, incremental compilation and whatever AS does it might not be the case. But gradle will tell you the truth Jul 21 17:23:44 hello world Jul 21 17:24:28 i like to know if any one have troubes sending date-time from android to a WS Jul 21 17:24:48 hi alex Jul 21 17:24:58 WS? Jul 21 17:25:40 I’m guessing web service Jul 21 17:25:57 Or websocket Jul 21 17:26:10 Web service Jul 21 17:26:24 TheNetMasterAlex: milliseconds are the bomb Jul 21 17:26:37 new Date().getTime() Jul 21 17:26:44 TheNetMasterAlex: send it as a string, and make sure you send the right format Jul 21 17:27:22 System.currentTimeMillis() Jul 21 17:27:28 recenty i have a troube with apple develpper kit sending from iphones the date-time because in some devices the date depends from the calendar (kind of calendar) Jul 21 17:27:35 why would you go through an object instantiation to do it Jul 21 17:27:59 i like to know i some one have the same troube in android, because i still having a similar trouble in Android SDK using some devices Jul 21 17:28:02 pfn: I actually use your approach in my code Jul 21 17:28:04 depends on if they want date now, or if they have a certain date. Also depends on the format the web service expects Jul 21 17:29:24 tks s73v3r but i have the date format expected from the WS but only in some devices some times the date sended is wrong Jul 21 17:29:35 how are you sending it Jul 21 17:29:51 i like to know if some one here know some thing about this kind of posibility (kind of calendars) Jul 21 17:29:54 are you using the SimpleDateFormat class to turn the date into a string? Jul 21 17:31:06 let me see.. Jul 21 17:31:42 i´m using SimpleDateFormat Jul 21 17:32:06 and how are you getting the Date initially? Jul 21 17:32:06 and yes i´m using this to send it into the string Jul 21 17:32:18 he string is JASON format Jul 21 17:32:27 JSON Jul 21 17:32:46 yes sorry ;) JSON Jul 21 17:33:28 thepoosh can you share with me your approach? Jul 21 17:34:03 I think sending a long representation of EPOC in millis is the best way to go Jul 21 17:34:40 any one knows the object GergorianCalendar ? Jul 21 17:35:09 thepoosh let me think it and test it Jul 21 17:35:30 you shouldn’t be using that directly, i don’t think Jul 21 17:36:40 thepoosh, need yer opinion: 1. sharedpref to store hashmap(key=string, val=arraylist), 2. shared pref store the same hasmap as a string and parse with gson, 3, directly use a .json file Jul 21 17:36:42 i need to use a solution to avoid any local changes or settings in the phone, in this particular thing to avoid a changes in the sended date-time Jul 21 17:37:14 SharedPrefs mapping between the keys to objects Jul 21 17:37:19 fastest Jul 21 17:37:33 TheNetMasterAlex: SimpleDateFormat should take care of that for you Jul 21 17:37:44 k Jul 21 17:39:09 i'm using just now the SimpleDateFormat and i have this trouble in some devices Jul 21 17:39:27 what’s your format string? Jul 21 17:39:35 TheNetMasterAlex: if you are having issues with it it's probably your fault Jul 21 17:39:56 and how are you getting the date you’re trying to send Jul 21 17:40:02 yyyy-MM-dd HH:mm:ss Jul 21 17:40:17 you might want to add a timezone code to that Jul 21 17:40:30 ok... Jul 21 17:41:06 otherwise the system won’t be able to convert to local time, so someone in LA will think that your time is 4 hours later than someone in New York Jul 21 17:41:31 do you know if exist a Japanese, Buddhist calendar or some similar thing in Android? Jul 21 17:41:34 I still don't understand why pass a string when a number takes less data and space Jul 21 17:41:40 and parsing it is much easier Jul 21 17:41:42 probably, but that shouldn’t matter Jul 21 17:41:48 and it's GMT Jul 21 17:41:54 i mean UTC Jul 21 17:42:16 thepoosh: that’s not guaranteed, and it’s easier to get strings from date objects Jul 21 17:42:21 using simpledateformat Jul 21 17:42:35 how is strings easier than millis? Jul 21 17:42:43 for transmitting Jul 21 17:42:55 i then take the string, use simpledateformat and turn it into a date object Jul 21 17:42:55 https://www.youtube.com/watch?v=-5wpm-gesOY Jul 21 17:43:02 I can then manipulate it to my heart’s content Jul 21 17:43:14 millis4lyfe Jul 21 17:43:23 there is a constructor for both Date and Calendar that takes a number Jul 21 17:43:29 for millis Jul 21 17:43:35 yes, I know Jul 21 17:43:38 so? Jul 21 17:43:55 how can you defend string representations when there is millis?! Jul 21 17:43:58 but also, if I wish to debug stuff, it will be a whole lot easier to look at JSON which has a date format string than a number Jul 21 17:44:01 makes zero sense to me Jul 21 17:44:03 easy Jul 21 17:44:15 unixtimestamp.com Jul 21 17:44:24 which is another step Jul 21 17:44:31 calendar has constructor with millis!? Jul 21 17:44:50 it doesn't Jul 21 17:44:56 all my life is lie Jul 21 17:44:59 but it also doesn’t have one that takes a date Jul 21 17:45:15 jmmm Jul 21 17:45:36 it has a setter for date and a setter for millis Jul 21 17:46:25 well I try to use the boot ways and I will see the video tks a lot Jul 21 17:46:30 TheNetMasterAlex: What kind of issues are you seeing Jul 21 17:46:31 ? Jul 21 17:47:14 Also, your choice of millis vs string isn’t likely to have an effect on your problem. it’s likely how you’re getting the date, and how you’re converting it into one or the other for transmitting Jul 21 17:47:40 well just now I'm putting a traking code in all my app to try to realy debug the responses but in iOS the truble is inside the date-time format and i explore this way in android too Jul 21 17:48:09 but what is the issue? Jul 21 17:48:21 in apple some devices send diferent date format depending from the local settings in the device and i like to thing in this way in the boot worlds Jul 21 17:48:38 i rest my case Jul 21 17:49:11 i try with mills and if i can solve it i come back to share my results, ok? Jul 21 17:49:14 you know you can tell iOS what date format to use for serializing, right? Jul 21 17:49:33 NSDateFormatter Jul 21 17:50:07 the trouble in iOS is not exactly the date format is the calendar, if in the device is set a diferent calendar (no gregorian) the date format is afected Jul 21 17:52:33 oh. then just convert to gregorian calendar before using a formatter Jul 21 17:53:01 use stardate [solved] Jul 21 17:53:15 yes but in androd the instruction does not exist XD Jul 21 17:53:24 Android :( Jul 21 17:53:26 shoudln’t matter Jul 21 17:53:39 it’s a different system. you can’t do everything exactly the same Jul 21 17:55:04 ¬.¬ i know... and this is the beginning of my initial question ;) Jul 21 17:55:18 but tks a lot i have now some ideas :D Jul 21 17:55:26 im go now and i will back :D soon :D Jul 21 17:59:33 Ashiren: this was solved by me a long time ago Jul 21 17:59:51 you don't get to slap the [solved] stamp here Jul 21 18:03:35 i love IRC :') Jul 21 18:28:54 hi! Jul 21 18:29:04 can someone point me in the right direction with something .. Jul 21 18:29:15 just ask Jul 21 18:29:21 I have a session object that I want to persist in onPause, what's the best approach ? Jul 21 18:30:02 should I try and write it to a file ? Jul 21 18:34:31 AlexandruM: how large is the object? If it's something simple, using SharedPreferences might work: https://developer.android.com/training/basics/data-storage/shared-preferences.html Jul 21 18:38:20 its a bit more complex Jul 21 18:38:27 has some other objects linked to it Jul 21 18:39:55 implement Serializable and try it out (you'll have to anyways to save to a file). Depending on the complexity, maybe look into an SQLite DB Jul 21 18:40:24 where 'it' is 'saving to SharedPreferences' Jul 21 18:41:59 I have an error: "android.support.v7.widget.AppCompatImageView cannot be cast to android.support.v4.widget.DrawerLayout" but nothing I have tried will fix it... Jul 21 18:42:34 here's a part of my setup: http://paste.ofcode.org/eBzqf5KBb2nimqR9uiYAk4 Jul 21 18:42:51 Veruso: you're probably reusing an ID Jul 21 18:43:03 MarkyC : worked Jul 21 18:43:04 thanks Jul 21 18:43:10 ~next Jul 21 18:43:19 ... I guess this isn't ##java Jul 21 18:43:39 Veruso: look for where you are using AppCompatImageView and check its ID Jul 21 18:45:36 I don't have an ImageView but it seems there is a problem with my android.support.v4.widget.DrawerLayout Jul 21 18:57:05 Android Studio question: Gradle DSL method not found: 'android()' Jul 21 19:01:04 you didn't add the android plugin Jul 21 19:01:10 has nothing to do with android studio Jul 21 19:03:01 pfn: thanks. Jul 21 19:04:51 guys, I have a bit of a question. Do you know if I can put an ExpandableListView into the child of another ExpandableListView and so on? I want to display the comments from reddit that I saved and not sure how should I do it a better way. Jul 21 19:07:16 if anyone can be bothered - here's a better look at my problem: http://pastie.org/private/m34gqsfskmangsdd7wpq Jul 21 19:10:15 anyone know what's happening with my apps in app purchases? No sku's seem to show up in my app Jul 21 19:10:16 http://pastebin.com/czTVMSKj Jul 21 19:20:38 Veruso: hey man I pm'd you, just trying to help you out Jul 21 19:20:55 what line is it pointing to in your paste? Jul 21 19:21:02 (MainActivity.java:42) Jul 21 19:25:41 Hey :) I am trying to download a small file from a website. Problem is: The download doesnt get completed :( It stops right in the middle. maybe you guys can help be :) Take a look at it here: http://pastebin.com/edXW5uw5 Jul 21 19:29:57 beatbrot, not really a direct answer, but have you considered using okhttp? it is well regarded and many people use it. Jul 21 19:30:02 http://square.github.io/okhttp/ Jul 21 19:30:37 How is the license? Can i still sell the application when i use it? Jul 21 19:30:51 Apache 2, so yes Jul 21 19:31:07 Okay :) So there are no regulations due to the license i have to look out for? Jul 21 19:31:15 Sorry, i am really not good with these things :D Jul 21 19:31:41 see for yourself https://tldrlegal.com/license/apache-license-2.0-(apache-2.0) Jul 21 19:31:55 Oh nice a tldr :) Thank you :) Jul 21 19:32:00 np Jul 21 19:34:19 is it a bad idea to use the same XML id for a tag in two different activities? Jul 21 19:38:55 Veruso: it's kind of nice to work on an app that doesn't call every ListView/RecyclerView `R.id.list` Jul 21 19:39:17 I like to be descriptive: `R.id.list_users`, `R.id.list_licenses`, etc Jul 21 19:40:28 i like to prefix them with the activity/fragment name as well Jul 21 19:40:36 im using the same ID for my app bar in the main activity and settings activity Jul 21 19:40:37 helps a lot when using 'go to definition' Jul 21 19:41:49 hi channel folks. Anyone here using both Studio and the gradle commandline (ie, on a Jenkins slave) who could help with a tools question? Jul 21 19:42:00 So I have an Expandable List View and I want in it's child to put another Expandable List View and so on. Can I do that using the same Custom Adapter I made? or I should make another one? Jul 21 19:44:05 I upgraded to 2.2-alpha5 a few days ago and have been beating my head on a wall trying to get ./gradlew to find the classpath - Studio builds fine, but the ./gradlew dies because it seems like it's not looking in the right place for the com.android.tools.build:gradle:2.2.0-alpha5. Jul 21 19:44:53 There must be some configuration I'm missing to tell it it's already there, I just don't know what. Jul 21 20:24:45 Hi all Jul 21 20:24:54 Have you been using RxJava? Jul 21 20:28:26 no Jul 21 20:29:28 ditzdragos: plenty of people have, do you have a question? Jul 21 20:32:45 I have played with it a bit in a hobby project Jul 21 20:33:02 But I'm not sure if it's good enough to use it in a client project Jul 21 20:33:15 Have you used it in production? Jul 21 20:33:30 Have you encountered any big issues working with it? Jul 21 20:35:02 there are alot of people that use it in production Jul 21 20:50:02 What is the best open source browser to use for creating a custom browser for an app? Jul 21 20:50:32 Hopefully not Google Chrome because I don't really want to have to modify C++ code. Jul 21 20:51:47 you can use the built in webview Jul 21 20:51:55 I think Firefox Android is also opensource Jul 21 21:08:16 every web browser will involve writing native code, unless you just use a webview Jul 21 21:08:23 which isn't really useful for a custom browser Jul 21 21:15:19 How do I toggle BuildConfig.DEBUG for a build type? Jul 21 21:15:53 I have 3 build types: debug, qa, release. I want BuildConfig.DEBUG to be true for debug and qa Jul 21 21:45:16 interesting, stack overflow documentation Jul 21 21:49:03 Howdy. I am using the "dm77/barcodescanner" library to scan a QR code. I would ideally like to use either espresso or UIAutomator to scan a code, which I was thinking I could do by faking/mocking what the camera sees (I give it an image). Is anyone aware of a way to do this? It is a little different than faking/mocking the external camera app itself. Jul 21 22:05:29 Additionally, has anyone seen this before with Mockito? java.lang.VerifyError: Rejecting class org.mockito.asm.ClassReader because it failed compile-time verification Jul 21 22:12:07 can multiple views consume fitsSystemWindows insets Jul 21 22:12:47 like I find it weird that it seems common to set fitsSystemWindows=true on multiple views in your layout Jul 21 22:13:05 when usually any views following the first do not receive the event Jul 21 22:17:45 Well, yes and no. There are insets for all 4 sides, and a View doesn't necessarily consume all of them Jul 21 22:18:08 If you're thinking of CoordinatorLayout and friends, it manually dispatches the insets to child views Jul 21 22:18:17 If they have fitsSystemWindows set, of course Jul 21 22:18:35 I'm thinking of DrawerLayout/NavigationView Jul 21 22:18:39 which also seems to do that Jul 21 22:18:54 which makes me wonder why NavigationView has fitsSystemWindows on it Jul 21 22:19:31 Probably so DrawerLayout knows to dispatch the insets to it Jul 21 22:19:57 (if DrawerLayout has fitsSystemWindows as well) Jul 21 22:34:16 huh this is confusing it gets manually dispatched to NavigationMenuPresenter#setPaddingTopDefault which then discards it if a header layout is present Jul 21 22:35:46 "manually" - it was from onWindowInsetsChanged which may not be manual... Jul 21 22:36:57 specifically from dispatchApplyWindowInsets, not onWindowInsetsChanged Jul 21 22:37:58 Items look out of place if they're all the way at the top. The header layout is supposed to go all the way to the top Jul 21 22:38:49 The status bar might even overlay the items if they're not offset Jul 21 22:39:22 I want my header layout to get the offset padding Jul 21 22:39:34 so that the background of it is below the statusbar Jul 21 22:39:36 but the content is not Jul 21 22:40:13 but apparently that is not how you do it, going by how NavigationView refuses to pass this along Jul 21 22:41:53 It's not how everyone else does it at least Jul 21 22:41:57 does anyone know if hit rects are in pixels or dp? Jul 21 22:42:15 I'm trying to use a touch delegate to increase the hit box on this view Jul 21 22:42:40 how does everyone else do it Jul 21 22:43:27 ok so apparently the undocumented DrawerLayout behavior is that it will pass fitsSystemWindows on to whatever direct children also have fitsSystemWindows Jul 21 22:43:36 *pass the insets on to Jul 21 22:43:48 my header is not a direct child tho Jul 21 22:44:08 guess I will just set center_vertical and a set height of like 150dp instead of wrap_content Jul 21 22:45:34 ah the autogenerated header template uses a LinearLayout with gravity=bottom Jul 21 22:47:07 Is it possible to stub a Parcelable class using Mockito? I am getting an error "Caused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: Centurion_Proxy" when Centurion is the stubbed (via Mockito.spy) Parcelable class Jul 21 22:51:24 I have no idea why it is looking for "Centurion_Proxy" and not just "Centurion" Jul 21 23:05:57 I don't understand how to pass a mock/spy to an activity using an intent. Jul 21 23:48:55 "Police 3D-printed a murder victim's finger to unlock his phone" :O Jul 21 23:56:50 hmm windowLightStatusbar does not work with transparent statusbars Jul 21 23:56:55 I wonder where the code for that is Jul 21 23:57:29 specifically it defaults to some shade of transparent black instead of whatever transparency you chose Jul 22 00:15:02 it doesn't? Jul 22 00:15:18 hmm Jul 22 00:15:22 * pfn shrugs Jul 22 00:30:26 brcolow, this is for instrumented tests? I don't think mockito works there Jul 22 00:32:38 for that matter, you should never be mocking a parcelable, those should only be data classes Jul 22 01:32:03 Hey, I'm using firebase to authenticate with mail and password, I have a login activity and I have an authorization listener on the LoginActivity, if the login is successfull I send the user to MainActivity, until that is working fine and I can see on the firebase console that the user is authenticated correctly....The thing is that I don't know if I have to put an authorization listener on the main activity as well in cas Jul 22 01:32:19 show the process with just 1 activity **** ENDING LOGGING AT Fri Jul 22 02:59:58 2016