**** BEGIN LOGGING AT Sun Feb 07 02:59:58 2016 Feb 07 03:02:32 ugh, NumberPicker's selectionDivider attribute is private - what bozos Feb 07 03:48:25 what is the best way to create "thumbs up" and "thumbs down" buttons so that only one can be selected at once and they start in a neutral state where neither are selected? Feb 07 04:05:32 uhm @bob14 - I suppose it depends? Feb 07 04:06:04 is it supposed to be its own activity - or part of an existing one, for example Feb 07 04:06:19 part of existing one Feb 07 04:06:45 is the decision made supposed to be final? Feb 07 04:07:23 one will be chosen, then the user will hit "submit" and then it is final Feb 07 04:08:03 probably just use 2 buttons nd check uncheck th eother one depending on which one is clicked? Feb 07 04:08:45 alright.. well .. widget-wise you might want to use something like an ImageButton I guess.. and you'd implement a logic that once one is clicked the other one is "unclicked" .. so you sort-of have a ratio-button behavior there Feb 07 04:09:34 yes thats what im thinking. i saw some people suggest a selector. but i think what u said is fine Feb 07 04:09:37 maybe you could even use radio buttons and style them in some other way instead .. but that's just a guess as I am relatively new to android development (I usually develop JEE applications or some stuff in c#) Feb 07 04:10:20 ok, nexus 5x is slow as fuck, it's probably gonna go back Feb 07 04:11:13 actually bob - perhaps using a selector is a good idea .. I just quickly looked it up Feb 07 04:11:54 like this: http://www.mkyong.com/android/android-imagebutton-selector-example/ Feb 07 04:12:29 you'd still need to implement the logic of one button unsetting the other etc. so I do not really see an advantage, but then again I don't know.. Feb 07 04:13:10 hm I wonder if I should keep my xperia z1c for development purpose.. I probably could still get 150/200 euro for it.. but then again .. I am not sure I wanna sell it anyway Feb 07 04:13:11 thanks for the link Feb 07 04:13:17 np :) Feb 07 04:24:08 Hello everyone… Can anyone please help on how i can access a final variable in a callback method http://paste.ideaslabs.com/show/tulO35GT5H Feb 07 04:25:27 in the if statement I think you wanted to have flag = false in line 17 of the pasted snippet.. hm let's see Feb 07 04:26:12 Thanks Aoi Feb 07 04:26:29 The issue is that the flag variable is a constant Feb 07 04:26:55 i can’t access it in the callback if it’s not declared as a constant Feb 07 04:26:56 so it underlines it in your code editor? Feb 07 04:27:56 well if it was static, you could access it via YourClass.flag .. since it is not and if it does not allow you to use it, you might have to extend the ClickListener and pass the final variable as a constructor parameter Feb 07 04:28:04 Yes… There is nothing wrong with that line Feb 07 04:28:20 the problem is where i am assigning value to flag Feb 07 04:28:43 well you cannot assign something to a final variable Feb 07 04:28:55 it is final after all Feb 07 04:29:19 final means it cannot be (easily) changed after initially assigning it Feb 07 04:29:23 Will try declaring it as a static variable Feb 07 04:29:45 spykins just remember: you cannot re-assign a value to a final variable - static or not Feb 07 04:30:00 Yes Feb 07 04:30:32 so in the snippet, I'd probably just remove the final modifier from the flag variable Feb 07 04:30:35 But i am trying to access another class local variable in a different class Feb 07 04:30:58 Will Java allow me to do that??? Yes.. but the item pass has to be fina; Feb 07 04:31:00 final Feb 07 04:31:35 right .. I assume it's because it cannot modify that variable as it is passed by value Feb 07 04:31:40 (not by reference) Feb 07 04:32:42 yes… Feb 07 04:34:03 I am trying to think up what I'd do in this case.. I might end up passing the whole button as a parameter and then call the setter for flag to adjust the value Feb 07 04:34:33 that'd force me to extend the default ClickListener class though (if that is even possible - I think it is) Feb 07 04:35:27 waoo Feb 07 04:35:45 I am new to programming and Android development Feb 07 04:36:34 I am new to the latter myself, but I program in Java for over 6 years Feb 07 04:36:50 use a member variable if you need to mutate a variable from a callback Feb 07 04:37:48 pfn if he defined the variable in the activity (I assume it is an activity), he'd still need to pass the activity to the ClickListener, wouldn't he? Feb 07 04:37:59 no Feb 07 04:38:22 java basics, anonymous and nested classes have access to outer instance Feb 07 04:39:10 so the inner classes can adjust them? hm.. guess I got rusty then D: Feb 07 04:39:59 yes Feb 07 04:40:27 ok - I just tried it and it seems pfn is right, spykins Feb 07 04:40:43 so just create a member variable in your class and use that Feb 07 04:40:54 @pfn does it matter whether the member variable is private or not? Feb 07 04:41:00 doesn't matter Feb 07 04:41:08 private is scoped to file Feb 07 04:41:45 right but if you declare non-anonymous inner classes, they would also be able to access the private variables of the outer class? wow :o Feb 07 04:42:02 err private member attributes* Feb 07 04:42:05 oh nice persent support libs to aspect ratio too ... Feb 07 04:42:09 *percent Feb 07 04:43:27 of course, Aoi, would expect you to know this kind of stuff if you have 6yrs experience with java Feb 07 04:43:53 lol Feb 07 04:44:01 I nearly always had separate classes for separate concerns - nearly never used inner classes Feb 07 04:45:59 I did use anonymous classes though, but then I don't remember adjusting member attributes of the parent object.. duh.. Feb 07 04:55:16 also no need to be so dismissive D: Feb 07 05:06:24 does anyone have a device running Android 4.2? Feb 07 05:35:13 hm what's the correct way to get to the app folder? I already saw the Environment class, but somehow I cannot make out what to use.. I want to store some configuration XMLs and possibly thumbnails/images (the latter would probably go to some other directory - maybe).. Feb 07 05:37:23 hm maybe use getCacheDir / get ExternalCacheDir.. Feb 07 05:57:45 Leeds hehe https://www.youtube.com/watch?v=WipM3SAYqK4 Feb 07 06:05:59 what's faster in case of uploading apk to emulator Feb 07 06:06:05 genymotion or new android emulators ? Feb 07 06:06:35 i'd assume the new android ones with improved adb Feb 07 06:07:31 but you'll have to measure :) Feb 07 06:09:24 eh Feb 07 06:09:29 I will just try Feb 07 06:10:05 for science ! Feb 07 06:14:53 I got better things to do for science ;) Feb 07 06:18:29 I'm having trouble setting a button's text in fragment A from another fragment B. Fragments are communicating via set/getTargetFragment. print to console indicates button text is being set, yet display shows old value. Wondering what might be the problem? Feb 07 06:20:39 not setting value from main thread Feb 07 06:26:51 porjo get/setTarget is pretty dubious stuff anyhow ... Feb 07 06:27:31 yeah, this emulator is finally fast Feb 07 06:27:37 after so many years ;) Feb 07 07:17:34 Hi, guys. I need to check imageview for an image there?(If there is example.png) Feb 07 07:17:39 How to implements this? Feb 07 07:18:12 I tried imageview.getDrawable()==getResources().getDrawable(R.drawable.example) Feb 07 07:18:15 But it doesn't work Feb 07 07:19:02 you want to check if it has image or a particular image Feb 07 07:21:28 Ashiren: particular image Feb 07 07:24:44 anyway dont compare objects with == Feb 07 07:24:48 try equals Feb 07 07:25:11 and if it doesnt work, use setTag() getTag() when setting the image Feb 07 07:26:27 also for drawables you can try to compare their getConstantState() Feb 07 07:26:36 Ashiren: I need settaf in my algorithm Feb 07 07:26:58 Ashiren: I can't get drawable of the particular image Feb 07 07:27:03 It doesn't work Feb 07 07:35:13 Can anyone help me solve this problem? Feb 07 07:39:45 Ozymandy, what's the problem? Feb 07 07:44:38 syntagma: Feb 07 07:44:40 [10:17:32] Hi, guys. I need to check imageview for an image there?(If there is example.png) Feb 07 07:44:40 [10:17:36] How to implements this? Feb 07 07:44:40 [10:18:09] I tried imageview.getDrawable()==getResources().getDrawable(R.drawable.example) Feb 07 07:44:40 [10:18:13] But it doesn't work Feb 07 08:11:12 setTag the resource ID and compare against that Feb 07 08:11:36 canvs2321: I can't do it. I need setTag in my algorithm Feb 07 08:11:55 then map it in some way Feb 07 08:12:14 or create an object that holds all the data you need and create a list of that Feb 07 08:12:55 canvs2321: what do you mean? For getDrawable? Feb 07 08:13:24 don't do getDrawable, map it before that if you are already using setTag Feb 07 08:14:22 can always getId and map that way, just don't get the drawable Feb 07 08:14:42 Pass an id to setTag and it can hold multiple values Feb 07 08:15:22 SimonVT has got ya Feb 07 08:15:35 Hmm, I can create ImageView and set it R.drawable.example Feb 07 08:15:49 And then compare two imageviews Feb 07 08:19:44 Can I compare img1.getDrawable()==img2.getDrawable()? Or I need equals? Feb 07 08:21:59 I' Feb 07 08:22:02 I'd use equals* Feb 07 08:22:37 I'd always use equals except with primitive types / classes Feb 07 08:22:53 i'd not choose to compare drawables and find a better alternative Feb 07 08:23:31 well yeah I saw the drawables as any objects.. so if you had Strings, you'd use .equals (or .equalsIgnoreCase if it's there), too Feb 07 08:23:41 (hm the latter might be a c# thing though) Feb 07 08:23:52 anyway.. off for some DoA5 Feb 07 08:24:28 Hmm, when I do == it doesn't work Feb 07 08:25:08 can always break point it or log.x to see why Feb 07 08:25:30 most likely they aren't the same object reference Feb 07 08:26:32 should post some of you code, just need to find better ways to tag stuff Feb 07 08:27:31 only time i'm ever doin'g == is with primitives Feb 07 08:29:42 What does getDrawable.getConstantState? Feb 07 08:31:04 ctrl-q it, it'll tell you the javadoc on that and the return type Feb 07 08:35:38 Shit, equals doesn't work too Feb 07 08:35:48 I can't compare drawable :| Feb 07 08:50:47 How to compare two drawable? Feb 07 08:55:15 what's a drawable in android? an image? Feb 07 08:55:31 http://stackoverflow.com/questions/9125229/comparing-two-drawables-in-android Feb 07 08:55:42 it says getDrawable().getConstantState().equals... Feb 07 08:55:47 the other ConstantState Feb 07 08:55:53 Yes, but it doesn't work Feb 07 08:56:41 Aoi: drawables can be xml only as well Feb 07 08:57:11 ah .. hm well what I also see is some people render it into a Bitmap .. and compare that instead Feb 07 08:57:24 not sure you'd want to do this though Feb 07 08:58:52 some also seem to try and comapre Tags, but I suppose that's what you already tried, too, Ozymandy Feb 07 08:59:13 Yes, and I need setTag in my algorithm Feb 07 09:00:16 so you can't setTag? Feb 07 09:00:36 or rather: you use it otherwise? Feb 07 09:01:16 I use setTag in another solution here Feb 07 09:01:35 I test my app on my phone. Can I enable exception there? Feb 07 09:02:02 Viewing exceptions I mean Feb 07 09:02:21 uh that I don't know.. but I'd imagine if you are debugging it (from e.g. Android Studio), you could redirect the output (including stacktraces of exceptions) to AS Feb 07 09:17:06 Hmmm, I checked. Constant State changes every time Feb 07 09:19:39 Ozymandy, you know you can set a tag that is an object with id or resource drawable and any other such stuff you caare about right? Feb 07 09:20:03 Yes, I know. And I need setTag in my algorithm Feb 07 09:20:16 I set position on the table via setTag Feb 07 09:20:37 that is fine, the object you set can have that data and more Feb 07 09:20:54 more? Feb 07 09:20:58 I can set many tags? Feb 07 09:21:03 you create a object Feb 07 09:21:06 You can set 2 billion tags Feb 07 09:21:12 I don't get Feb 07 09:21:19 Imageview is an one object Feb 07 09:21:31 And imageview.setTag() I can set only one tag Feb 07 09:21:44 Or as SimonVT says use multiple tags Feb 07 09:21:46 https://developer.android.com/reference/android/view/View.html#setTag(int,%20java.lang.Object) Feb 07 09:22:30 (I said this an hour ago) Feb 07 09:22:40 Oh, i's interesting. It can help me Feb 07 09:23:08 Been fun following the conversation for that hour tho Feb 07 09:38:59 Lol, it crashes when I set tags Feb 07 09:47:47 hm does anyone know how to show the class hierarchy tree for a certain (highlighted/selected) class? Feb 07 09:48:04 in Android Studio* Feb 07 09:52:20 Hey, how can i make sure Android Studio doesnt slow down other programs while compiling? Feb 07 09:53:16 Setting the priority doesnt seem to work, maybe because it calls other executables Feb 07 09:53:55 you could increase the priority of the other tasks (that need high/higher priority), but sometimes it does not help Feb 07 09:54:24 surely that's what nice is for? Feb 07 09:54:28 What helps is to set the affinity for the CPUs but it sucks because each time i close it i have to re-set it Feb 07 09:55:49 I get what is wrong. Problem is in setTag(key,obj) Feb 07 10:01:42 Can anyone explain me about setTag(int key,obj)? Feb 07 10:01:53 Key can't be like 1 or 2 Feb 07 10:01:55 Yes? Feb 07 10:04:01 "The specified key should be an id declared in the resources of the application to ensure it is unique" Feb 07 10:04:27 So, how to declare it? Feb 07 10:04:56 "(see the ID resource type)" http://developer.android.com/guide/topics/resources/more-resources.html#Id Feb 07 10:05:32 http://developer.android.com/reference/android/view/View.html#setTag(int, java.lang.Object) Feb 07 10:24:57 hm I always confuse when to make a new Activity and when to just show a Dialog with stuff in it Feb 07 11:22:11 hm .. can I include a preferencefragment / preferencescreen in a activity? Feb 07 11:56:09 How to get int value from getTag()? It returns object Feb 07 11:56:35 I tried Integer.parseInt(v.getTag(R.id.Position).toString()) Feb 07 11:58:53 Hello! I want an imageview to match the parent's size, and adjust its height, keeping the original image aspect ratio. Is it possible without doing this programmatically? Feb 07 12:04:00 http://pastebin.com/HVigUfxg What am I doing wrong here? Feb 07 12:05:03 huh. Feb 07 12:05:14 What in the world :) Feb 07 12:08:19 Ozymandy - I'd just cast Feb 07 12:08:42 hm? Feb 07 12:08:53 oh that was a reply to your question 20 minutes ago Feb 07 12:09:19 I mean I'd just cast if you know you'll be getting an int of course Feb 07 12:09:37 if you do not know, you'd probably either use try-catch or find another way.. D: Feb 07 12:20:39 I have two lib modules. Both needs some common code. So I have put this common code in third module. It is internal dependency in both the modules. Now the problem is these classes are all pubic. Is there any way to achieve that these classes can only be accessed by these libs but not outside world ? Feb 07 12:22:59 Hmmm Feb 07 12:23:12 android.content.res.Resources$NotFoundException: Feb 07 12:40:52 http://pastebin.com/s4NBydzq What is wrong? android.content.res.Resources$NotFoundException: Feb 07 12:42:10 what are you expecting the toast to print? Feb 07 12:42:29 Value of tag of course Feb 07 12:43:30 I can't get why notfound Feb 07 12:43:55 I send view onclick and all is clear Feb 07 12:46:44 what resource is not found? Feb 07 12:47:05 danijoo: Imageview I think Feb 07 12:47:16 you think or you know? Feb 07 12:47:27 I can show you oncreate Feb 07 12:47:55 danijoo: http://pastebin.com/AKZN6EwK Feb 07 12:48:02 show the stacktrace in its full length + the part where it belongs to Feb 07 12:49:49 danijoo: Wait. I need to compile it in emulator. Now I test on my phone - it's faster Feb 07 12:50:39 Can I keep change access modifier of the service classes and reciever classes mentioned in Manifest ? Feb 07 12:50:46 change** Feb 07 12:51:22 thinking of changing them to default that is package level acccess. Will it break my code ? Feb 07 12:51:47 must be public Feb 07 12:52:04 suhas_sm, they must be available from ´outside´ Feb 07 12:52:06 hmm Feb 07 12:52:14 danijoo: you mean logcat? Feb 07 12:52:35 Ok, For OS to call them, Seems appropriate Feb 07 12:52:55 Damn I am starting to hate packaging structure of JAVA now Feb 07 12:55:45 Thanks, pfn and danijoo Feb 07 13:00:03 http://pastebin.com/ic2VkM3Q it's on emulator Feb 07 13:00:43 But it doesn't work there O_o Feb 07 13:00:45 java.lang.OutOfMemoryError: Failed to allocate a 656112 byte allocation with 413576 free bytes and 403KB until OOM Feb 07 13:00:51 your app uses to much RAM Feb 07 13:01:14 and crashes because if exceeds the heap limit Feb 07 13:01:22 It's on emulator Feb 07 13:01:26 most likely because your images are too big Feb 07 13:01:38 How to fix images? Feb 07 13:03:12 http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Feb 07 13:07:37 But what is wrong with tags? Feb 07 13:08:39 you didnt show the stacktrace of your tag problem Feb 07 14:30:53 My theme inherits the appcompat default theme, I've added the following code to styles.xml when I set a button that style, nothing special happens.... any pointers? Feb 07 14:32:29 I could never make AppCompat buttons work right on pre-lollipop and lollipop+ at the same time. I use a custom drawable for a Button instead. Feb 07 14:33:15 figured it out, you need to set theme:.. on the button and not style:... Feb 07 14:35:30 How to write data to file in android? Feb 07 14:35:33 I tried http://pastebin.com/AJfGvsB5 Feb 07 14:35:38 But it doesn't work Feb 07 14:35:48 No exception, but it doesn't work Feb 07 14:35:59 I want to write to root path file Feb 07 14:53:55 Can I set one tag key for tags in many views? Feb 07 14:54:09 view1.setTag(key1,value) Feb 07 14:54:09 Hello, i have an android question, i just add it to stack overflow, can somebody help please? http://stackoverflow.com/questions/35254808/in-android-6-0-1-retrieving-the-camera-photo-is-not-working Feb 07 14:54:22 view2.setTag(key1,value2). Can I? Feb 07 14:56:05 Ozymandy: given that the docs say keys should be unique... firstly, why not just try it? secondly, why? Feb 07 14:56:32 Leeds: I tried and it doesn't work. And I have no idea where I made mistake Feb 07 14:56:53 well, possibly by not using unique keys? do you have a shortage of IDs? Feb 07 14:56:53 There's not found resourse exception Feb 07 14:57:03 are you using a declared ID? Feb 07 14:57:11 did you actually read the docs I linked you to hours ago? Feb 07 14:57:31 Leeds: Yes, I did like there Feb 07 14:57:32 http://pastebin.com/AKZN6EwK Feb 07 14:57:49 It's code where I declare Feb 07 14:58:16 http://pastebin.com/s4NBydzq here is exception Feb 07 14:58:19 argh, brain hurty Feb 07 14:58:21 again Feb 07 14:58:25 are you declaring the ID or not? Feb 07 14:58:29 and why are you reusing it? Feb 07 14:58:32 Yes, of course Feb 07 14:58:59 In the second pastebin link in the bottom Feb 07 14:59:08 I attached Feb 07 14:59:46 meh, I'm in the wrong mood for this, I'll just start swearing Feb 07 15:00:25 I declared it Feb 07 15:00:28 In resource file Feb 07 15:00:45 And then called in setting tags Feb 07 15:01:03 But when I call getTag(id) it crashes Feb 07 15:01:47 resource not found exception Feb 07 15:03:43 can you tell on which line its crashing? ozymandy Feb 07 15:04:36 dastan: http://pastebin.com/s4NBydzq on 4-5 lines Feb 07 15:06:22 can you check the instanceOf v its ImageView or something else? Feb 07 15:06:55 put the breakpoint on 4 and expnad v object on debug time Feb 07 15:07:16 check v type its ImageView or what? Feb 07 15:07:31 dastan: check instanceof of imageview or object? Feb 07 15:08:11 I get Feb 07 15:13:45 dastan: Yes, it's instance of ImageView Feb 07 15:14:03 k anythingin mTag Feb 07 15:14:09 or its null Feb 07 15:14:27 dastan: ? Feb 07 15:14:33 I don't understand Feb 07 15:15:02 means when you expand v in debug mode it will show everthing about ImageView Feb 07 15:15:25 id src mTag drawable etc. Feb 07 15:15:32 if tis imageView Feb 07 15:19:10 dastan: it's not null Feb 07 15:19:15 Object isn't null Feb 07 15:19:26 I mean getTag Feb 07 15:20:34 no bro Feb 07 15:20:52 wait sending screenshot Feb 07 15:21:33 dastan: I can't do debug because my emulator is crashing, so I tested on my phone Feb 07 15:22:12 so you can debug on your phone Feb 07 15:22:31 What is the correct workflow of checking and prompting for availability of Google Play Services? Feb 07 15:22:41 dastan: How to? Feb 07 15:22:57 enable the debug mode in your phone Feb 07 15:23:05 which phone you have? Feb 07 15:23:07 yes, enabled Feb 07 15:23:18 ok connect with your system Feb 07 15:23:28 And then? Feb 07 15:23:48 and check is it showing Usb debuggin in your phone Feb 07 15:24:09 and you are doing first time then it will ask for RSA authintication Feb 07 15:24:14 napster, https://developers.google.com/android/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#isGooglePlayServicesAvailable(android.content.Context) Feb 07 15:24:18 How? Feb 07 15:24:32 oops this one is depreacted, i meant: https://developers.google.com/android/reference/com/google/android/gms/common/GoogleApiAvailability#isGooglePlayServicesAvailable(android.content.Context) Feb 07 15:24:32 which phone you have? Feb 07 15:24:38 galaxy s 2 Feb 07 15:25:53 adq No, I meant to ask, what should we actually do? If that function returns false, we check if it is user resolvable. And if yes, should we block the user and show the returned dialog, or should we proceed... What do you guys generally do? Feb 07 15:26:32 anything showing on your phone when you are connecting to system? Feb 07 15:26:47 There should be a best-practices kind of a thing for stuff like these. Feb 07 15:26:54 No Feb 07 15:27:20 https://www.doubletwist.com/help/question/usb-connect-mode/ Feb 07 15:27:23 check this link Feb 07 15:27:38 it will show like that only Feb 07 15:27:51 Usb debugging connected Feb 07 15:28:07 may be you need to chose MTP to enable debugging mode Feb 07 15:28:16 napster, it does not return true or false but an int Feb 07 15:28:18 and you need to install samasung driver Feb 07 15:28:40 napster, iirc it should prompt a dialog to get playservices (which redirect to playstore) Feb 07 15:28:42 better to check on your emulator Feb 07 15:28:51 napster, let me check some code where i use it Feb 07 15:29:05 http://www.itjungles.com/samsung-galaxy-s-ii-how-to-enable-usb-debugging.html Feb 07 15:29:52 Connected Feb 07 15:29:55 https://gist.github.com/anonymous/57414bbeae4ccc1f942d This is what I do currently adq Feb 07 15:30:03 napster, i use something like googleAPI.showErrorDialogFragment(this, result, 0); Feb 07 15:30:03 if !ConnectionResult.SUCCESS Feb 07 15:30:13 USB debugging ? Feb 07 15:30:28 Yes Feb 07 15:30:33 k cool Feb 07 15:30:45 k put the break point on line no 4 Feb 07 15:30:52 and debug the code Feb 07 15:31:02 Yeah, I understand that buddy. I was just trying to understand how other developers are dealing with multiple scenarios with the results. Feb 07 15:31:09 https://www.google.co.in/search?q=debug+image+of+android&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjPxa2V-uXKAhVECI4KHckSDnkQ_AUIBygB&biw=1366&bih=667#tbm=isch&q=debug+image+of+android+studio&imgrc=h8Gi_76PmhYApM%3A Feb 07 15:31:12 check this link Feb 07 15:31:38 so on debug mode in varialbes you will see v then just expand the v and check mTag Feb 07 15:32:19 dastan: But how toexecute code? Feb 07 15:32:24 I don't get Feb 07 15:32:29 well it's either you prevent the use of the app if no playservices and the app heavily depends on them, or you might disable features dependent on play. In my case, i check the availability for cloud save, if not available i invite to download playservices via the dialog, if it's still not present, i simply disable cloud save (local & sdcard save still available) Feb 07 15:32:30 It's usb debug now, yes Feb 07 15:33:04 adq ok, that is a good way to deal with it. Feb 07 15:33:06 did you see anything in variables? Feb 07 15:33:10 in debug window Feb 07 15:34:14 dastan: I connected my phone to pc in usb debug mode, but how to launch code? Feb 07 15:35:00 you are using Android Studio correct? Feb 07 15:35:11 Yes Feb 07 15:35:39 But there's no my phone in the list of devices Feb 07 15:35:45 Only emulator Feb 07 15:35:45 and in notification bar is it showing Usb debugging connected? Feb 07 15:35:56 in your phone Feb 07 15:36:04 just try the code on emulator only Feb 07 15:36:16 I think you haven't installed the driver Feb 07 15:36:30 so better to to check in emulator as I told you before Feb 07 15:36:39 dastan, http://developer.android.com/tools/help/adb.html#Enabling Feb 07 15:36:45 read the doc Feb 07 15:36:47 dastan: http://www.doubletwist.com/s3media/faq/images/usb_connect_mode/sgs2_06-sm.png this on my phone Feb 07 15:37:45 brot your usb storage is connected Feb 07 15:37:54 your phone not in debug mode Feb 07 15:38:25 better to check on emulator only and I shared two link please follow to enable usb debuggin in phone Feb 07 15:38:49 dammit, the gold 6p is out of stock Feb 07 15:39:06 pfn seriouly in android-dev channel Feb 07 15:40:57 I can't debug from emulator Feb 07 15:41:06 #android-dev should only allows ppl ranting about AS Feb 07 15:41:08 Because It crashes because of graphics Feb 07 15:43:43 Ozymandy, fix your graphics Feb 07 15:44:33 yes, because pro developers need bling devices Feb 07 15:45:06 danijoo: well, good idea, but now it's more important to fix tags Feb 07 15:45:13 how do you have so many problems with as Feb 07 15:45:17 pfn, dont you alrady have a 6p? Feb 07 15:45:29 danijoo, yeah, but I have 3 lines Feb 07 15:45:39 so, it's time for another Feb 07 15:45:56 going to return the 5x, tried to like it, but it's incredibly slow Feb 07 15:46:07 slower than my 2013 Moto x Feb 07 15:46:10 Ozymandy your problem fixed Feb 07 15:46:12 that is unacceptable Feb 07 15:47:12 pfn are you talking about Moto x play Feb 07 15:47:44 the 5x hangs and lags for no reason Feb 07 15:47:57 dastan: hm? Feb 07 15:47:57 any way to listen when the SearchView dialog expands to hide the other elements and "make room" ? Feb 07 15:48:22 I still love my HTC MyTouch 4G the best Feb 07 15:48:41 the moto x play is 2015 Feb 07 15:49:19 pfn, are you sure your device is ok? mine has no problems Feb 07 15:49:26 but no gyroscope Feb 07 15:49:32 maybe you got a bad one Feb 07 15:49:43 ozymandy what hm? Feb 07 15:50:07 so its sucks moto x play but good for games Feb 07 15:50:08 èdastan: but i still have no idea how to fix tags:( Feb 07 15:50:20 bro can you try one thing Feb 07 15:50:33 I don't know it will work or not Feb 07 15:50:52 just replace your R.id.Person to R.id.button4 Feb 07 15:50:55 every where Feb 07 15:51:07 and R.id.Drawable to R.id.button8 Feb 07 15:51:13 everywhere in file Feb 07 15:51:15 and then try Feb 07 15:51:20 but in setTAg only Feb 07 15:51:54 and please learn basic thing Ozymandy Feb 07 15:52:31 dastan: R.id.button8 - it's id of the imageview Feb 07 15:52:46 ya i know just try Feb 07 15:53:13 most of the time i use component id instead of create one Feb 07 15:53:27 but it works Feb 07 15:53:32 just try Ozymandy Feb 07 15:54:04 My internet fell down Feb 07 15:54:13 I can guess bro Feb 07 15:54:15 [18:53:06] anything after this? Feb 07 15:54:34 nothing I just said just try repalcing things Feb 07 15:54:46 let me know its working or not Feb 07 15:56:23 danijoo, use the 5x for a while, everyone says the same thing, it's unusably laggy Feb 07 15:59:29 dastan: NullPointerException Feb 07 15:59:40 Oh, wait Feb 07 15:59:41 No Feb 07 15:59:49 I made mistake Feb 07 16:00:26 that I know Ozymandy Feb 07 16:00:33 but what mistake? Feb 07 16:01:14 dastan: When I change same not found exception Feb 07 16:01:36 dastan: I forgot change in onclick method gettag key Feb 07 16:02:56 so bro you are using button4 and button8 only everywhere in setTag ? Feb 07 16:03:49 Íóû Feb 07 16:03:51 Yes Feb 07 16:04:03 its working Feb 07 16:04:10 ? Feb 07 16:04:21 No, same notfound exception Feb 07 16:04:27 Same problem Feb 07 16:04:33 nofound execption what Feb 07 16:04:42 what notfound exception? Feb 07 16:04:47 resource not found Feb 07 16:05:02 can you show me current code Feb 07 16:05:05 content.res.Resources$NotFoundException Feb 07 16:05:08 Yes, wait Feb 07 16:06:20 dastan: http://pastebin.com/JMx34uVk Feb 07 16:06:29 k Ozymandy Feb 07 16:07:10 and its crashing on which line number Feb 07 16:07:36 and you forget to change in line no. 11 but thats not problem Feb 07 16:07:43 ? Feb 07 16:08:03 dastan: On 92-92 Feb 07 16:08:17 dastan: yes, it's not a problem Feb 07 16:08:26 kk please chang line no. 11 Feb 07 16:09:27 I did Feb 07 16:10:33 k then you have to debug Feb 07 16:10:38 put the breakpoin on 92 Feb 07 16:10:50 But I can't :( Feb 07 16:10:55 press debug button in android studio Feb 07 16:11:03 you are testing on emulator correct? Feb 07 16:11:07 Yes Feb 07 16:11:15 No. I test on phone Feb 07 16:11:33 how ? Feb 07 16:11:34 On emulator this activity crashes because of images Feb 07 16:11:43 I compile apk and then install Feb 07 16:11:57 means you are copying the apk in phone Feb 07 16:12:07 yes Feb 07 16:12:12 ok then disable the images for a while Feb 07 16:12:12 to the phone Feb 07 16:12:48 can you do this? Feb 07 16:13:28 I mean use small images in imageview or comment the code and enable only one imageview Feb 07 16:13:45 if its working for one imageview then it will work for others also Feb 07 16:17:38 i wanta button that is at the top right, center right, and bottom right of screen how would I do that? Feb 07 16:18:41 use relative layout Feb 07 16:19:11 calguy Feb 07 16:21:41 framelayout does that too Feb 07 16:22:00 use gravity Feb 07 16:22:05 layout_gravity Feb 07 16:22:25 dastan: I changed images, wait Feb 07 16:22:51 dastan: LOL,now my phone appears in the list of devices Feb 07 16:23:06 cool Feb 07 16:23:14 may be use MTP something Feb 07 16:23:22 *you Feb 07 16:24:30 Well, phone can't debug Feb 07 16:24:38 why so? Feb 07 16:25:04 you just said its showing on devices Feb 07 16:26:10 Lol Feb 07 16:26:19 Erorr Feb 07 16:26:28 what error? Feb 07 16:27:00 http://pastebin.com/Q8eSQVMW when I perform debug Feb 07 16:27:06 on the phone Feb 07 16:27:12 k Feb 07 16:27:37 Now try on the emulator Feb 07 16:27:57 because adb ask for authentication Feb 07 16:28:04 and may be you pressed cancel Feb 07 16:28:06 is it? Feb 07 16:28:20 Now, I don't Feb 07 16:28:28 k Feb 07 16:28:32 try on emulator Feb 07 16:28:51 and press shift+f9 in android studio to debug Feb 07 16:28:57 hey all Feb 07 16:29:03 and don't forget to put breakpoin on 92 Feb 07 16:34:53 anyone knows why android gradle plugin has to re-dex dependencies every time it does clean build for target 21 ? Is there something wrong with my configuration or is it done this way on purpose ? Feb 07 16:41:36 Ozymandy its done Feb 07 16:41:52 ? Feb 07 16:45:40 dastan: It crashes(( Feb 07 16:45:51 Because images Feb 07 16:46:21 I fix now Feb 07 16:46:29 why its crashing "because of images" Feb 07 16:46:35 I din't understand Feb 07 16:46:43 images are heavy ? Feb 07 16:46:55 at least a few kilos each Feb 07 16:47:19 Yes, they are heavy Feb 07 16:47:49 can't you create new project and test the code there only Feb 07 16:48:10 if its working there then apply the code here Feb 07 16:48:15 PS: if you can Feb 07 16:48:51 and dwnld the samsung drivers please to debug the code in phone Feb 07 16:49:03 dastan: I can give you project Feb 07 16:49:16 k share the project Feb 07 16:49:27 But I start debugging Feb 07 16:49:30 I will fix you in half an hour if its possible Feb 07 16:49:38 on github please Feb 07 16:49:50 or gitlab whichever you like Feb 07 16:50:20 sorry typo :D Feb 07 16:50:50 send the link private chat Feb 07 17:01:07 Which IRC clients do you use ? Feb 07 17:03:42 LimeChat Feb 07 17:04:00 textual :) Feb 07 17:04:21 irc client for mac os Feb 07 17:06:55 hexchat Feb 07 17:08:12 how can I place an expandable view into a navigation drawer? Feb 07 17:10:19 what I'm trying to do is have expanding submenus in the nav drawer to tidy it up Feb 07 17:11:29 but an expandable listview in the nav drawer Feb 07 17:12:13 I've been trying but it either hasn't worked or it doesn't compile Feb 07 17:16:48 suhas_sm, qicr, of course Feb 07 17:17:17 of course ?? Is it something that everyone uses ? Feb 07 17:20:11 nope Feb 07 17:20:12 even the queen of england. Feb 07 17:23:19 Mavrik, I'm gonna return the 5x :( the lags are unacceptable Feb 07 17:23:35 Yeah, it's dumb. Feb 07 17:23:42 seems to be particularly bad around the camera Feb 07 17:23:55 and that's like what gets used the most on it for me Feb 07 17:24:21 It's especially bad when you invoke camera from sleep. Feb 07 17:24:31 Which means that by the time it starts working you missed the event 5 times. Feb 07 17:24:54 HACKhalo2 NavigationView doesn't do it - you could use expandable recycler view project from BNR Feb 07 17:25:35 HACKhalo2 this might do it also https://github.com/mikepenz/MaterialDrawer Feb 07 17:25:41 yeah, it's nasty, I want to get a gold 6p, but they're out of stock... Feb 07 17:26:07 My 5X is company/test device so it was essentially free. Feb 07 17:26:16 But I'm waiting for Sony to move their lame ass and update Z5s Feb 07 17:26:24 is the 5X underpowered ? Feb 07 17:26:32 g00s, doesn't feel like it. Feb 07 17:26:35 serious firmware issues Feb 07 17:26:41 is more likely Feb 07 17:26:58 pfn, I have a feeling it's a BIG.Little fuckup Feb 07 17:27:05 Where the slow cores wake first. Feb 07 17:27:12 That architecture is pile of crap everywhere. Feb 07 17:28:50 sony Concept for Marshmallow looks good http://www.androidcentral.com/sonys-marshmallow-concept-shows-how-android-should-be-2016 Feb 07 17:29:25 don't want another silver 6p Feb 07 17:29:36 and the black and white aren't bling enough Feb 07 17:29:59 hey folks i am trying to teach myself to develope for android, I am working on a battleship clone, I curently have a Grid layout of buttons 10x10, I am unsure of how i should proceed next .. should i do a ship class with sub classes for each ship type (number of holes(grid location in an array))? or would the recomendation be to do a single ship class with an array of hole chordinates ? depending on the ship type there could be 2 3 4 5 holes? Feb 07 17:30:48 my curent project is here https://github.com/NullMonkey/BattleSheisse Feb 07 17:34:07 that name.. Feb 07 17:34:56 yeah sorry Feb 07 17:35:00 frustrated Feb 07 17:35:03 hehe Feb 07 17:35:04 :p Feb 07 17:35:33 the finally project will have a better name Feb 07 17:36:24 lol Feb 07 17:36:41 nono.. put it in the playstore like that :' D Feb 07 17:37:10 market to folks who play game while on the toilet lol Feb 07 17:37:16 rename shit to poop, maybe call it Poop Battle Feb 07 17:37:35 with auto matchmaking at public toilets Feb 07 17:37:40 to your neightbour Feb 07 17:37:48 bluetooth Feb 07 17:38:03 though about that .. saw a bluetooth turtorial Feb 07 17:39:18 spaceteam is still the best game Feb 07 17:39:55 anyways i am at the learning stages .. so i have buttons .. what should i do next .. my friend say buttons can contain objects ? not sure how to do that .. i am also learning java as i go along Feb 07 17:40:54 maybe a button object that has a bool value for if there is a ship there ? Feb 07 17:41:30 this isn't #tutorial Feb 07 17:42:01 learn java first :v Feb 07 17:42:03 ok what would be a good channle to ask these questions than ? Feb 07 17:42:21 no channel is good Feb 07 17:42:35 take some java courses on Udacity first Feb 07 17:44:08 every View (so Button too) has setTag() and getTag() so you can put object there Feb 07 17:44:08 meh, screen on 6p has a couple scratches already, guess I should order up a screen film Feb 07 17:45:07 tags are a convenience - ghostd0g probably needs to learn about architecture though Feb 07 17:45:43 * g00s has feeling, trying to stuff model into tags Feb 07 17:45:44 still gives me a place to start :) thank you Feb 07 17:46:13 Yeah, usually if you start thinking about setTag() you have an issue with design :) Feb 07 17:47:16 i have a fuzy understanding of java ... i have mostly been working in other languages Feb 07 17:47:41 ghostd0g are you familiar with MVC ? you want to do something like that on android too Feb 07 17:47:50 i was thinking i could store ship locations in an arrays Feb 07 17:47:51 whether MVC, MVP, Mwhataver Feb 07 17:47:57 yes i know mvc Feb 07 17:48:08 familiar with it i mean Feb 07 17:53:20 ghostd0g check out androidweekly.net, lots of articles on design there Feb 07 17:53:44 thank upi Feb 07 17:53:47 you Feb 07 17:54:05 also /r/androiddev for news, not so good for asking questions Feb 07 17:54:23 java questions in #java Feb 07 17:54:31 Bah, androiddev is full of idiots :/ Feb 07 17:54:48 ghostd0g tell #java you are using android though) Feb 07 17:55:02 maybe they will mellow out when we get openJdk :D Feb 07 17:55:10 It kinda makes me laugh that tnorbye and droidxav ask people for feedback in there. Feb 07 17:55:16 the chan rules for ##java says no android Feb 07 17:55:19 lol Feb 07 17:55:31 ##java Feb 07 17:55:35 ghostd0g: The first rule of Android club is: you do not mention Android when asking questions in ##java. Feb 07 17:55:50 lol Feb 07 17:56:09 The second rule is an update on the first: never enter ##java. Feb 07 17:56:23 ghostd0g and there is a free android udacity course from google which should be good Feb 07 17:56:32 i like free Feb 07 17:56:34 lol Feb 07 17:57:42 this one https://www.udacity.com/course/developing-android-apps--ud853 ?? Feb 07 17:58:34 ghostd0g see "online courses" http://developer.android.com/develop/index.html Feb 07 18:00:42 :) Feb 07 18:01:01 TacticalJoke there were 4 kotlin articles in androidweekly Feb 07 18:01:29 Oh, I missed them. Feb 07 18:01:34 I never read Android publications. :s Feb 07 18:01:49 this was good http://tomstechnicalblog.blogspot.com/2016/02/kotlin-rxjava-what-rxjava-should-be.html Feb 07 18:01:58 others were on reddit earlier Feb 07 18:02:13 g00s: You should join us in #kotlin. :D Feb 07 18:02:19 Actually, you shouldn't, because it's dead. Feb 07 18:02:23 They're all on Slack now. Feb 07 18:02:35 meh slack Feb 07 18:02:55 looks good for corporate projects, not open source ones Feb 07 18:03:01 I dislike that we have to give our e-mail addresses. Feb 07 18:03:04 Yeah. Feb 07 18:03:21 Loads of people have basically begged them to remove the e-mail requirement, but they still haven't. Feb 07 18:03:21 i'm reading here that github wants to go all corporate now ... Feb 07 18:03:29 say goodbye to clean simple UI Feb 07 18:03:42 I secretly (and evilly) hope that GitHub dies and gets replaced by something that supports Mercurial. Feb 07 18:04:22 i not so secretly hope thats not happening Feb 07 18:04:33 as log as i can do git from cli i am ok.. course i have only ever used git Feb 07 18:04:39 i'm curious how it will go. i tried getting adopted at DHL, they were using clearCase ... Feb 07 18:04:43 as *long Feb 07 18:04:50 they said no, because they needed all the fine grain controls Feb 07 18:05:21 lol, getting git adopted at DHL (not me haha) Feb 07 18:05:47 they just didn't like the idea of a decentralized version control system. i probably would have had a better time selling svn to them Feb 07 18:07:15 corporations = fiefdoms ... gates to resources = power, etc Feb 07 18:07:45 but i guess atlassian is doing well in that space so Feb 07 18:11:08 TIL A foreground Service has to show a persistent notification, but you can give it a priority value of PRIORITY_MIN to hide it from the status bar (it will still be visible in the notification shade Feb 07 18:11:35 dammit the gold 6P's are out of stock Feb 07 18:11:47 it's not much of a sale if you don't have the merchandise Feb 07 18:11:50 RustySha1kleford, you are only the 3rd saying this today.. Feb 07 18:11:52 bait and switch! Feb 07 18:12:17 you guys are probably tired of my 5x vs 6p dilemma haha Feb 07 18:13:11 g00s: Hmm, does that still work? For some reason, I thought they had gotten rid of that. Feb 07 18:13:21 Though I can't see this substantiated in Google. Feb 07 18:13:53 yeah if its not mentioned in the docs - not sure i'd rely on the observed behavior Feb 07 18:16:18 i want to put different text sizes according to the screen size Feb 07 18:16:36 whats the best way to achieve? Feb 07 18:16:40 this? Feb 07 18:17:08 values.xml Feb 07 18:17:08 it seems that they upgraded the way to do it on images Feb 07 18:17:14 pycas: http://developer.android.com/guide/practices/screens_support.html Feb 07 18:17:18 pycas, different style.xmls for different orientations Feb 07 18:17:55 yes, I know Feb 07 18:18:45 but I want to know how can I get the deffault values Feb 07 18:19:02 to cover the most used devices Feb 07 18:19:34 like xhdpi hdpi for images Feb 07 18:23:03 I dont understand what you want tbh Feb 07 18:23:08 TacticalJoke wonder if we will see AS 2.0 final this week ... Feb 07 18:24:05 is there a bug with nested fragments that they get the wrong height in a viewpager? Feb 07 18:24:13 Does 2.0 come with the Kotlin plugin pre-installed? (I guess so because it's based on IntelliJ 15.) Feb 07 18:24:20 and yes, I know. nested fragments... Feb 07 18:24:22 danijoo i used nested in VP and it was OK Feb 07 18:25:19 I have a fragment holding a tablayout + viewpager but it seems the nested fragment ´thinks` it has the whole size to cover Feb 07 18:25:26 i wish there was a way for nested fragments to accumulate their options menu in their parent fragment, rather than just going straight to the activity if hasOptionsMenu(true) Feb 07 18:25:34 its going out of the screen at the bottom Feb 07 18:25:36 pretty weird Feb 07 18:25:47 danijoo probably pebkac :D Feb 07 18:26:28 most probably Feb 07 18:27:46 danijoo: Does AS 2.0 have the Kotlin plugin pre-installed? Feb 07 18:27:51 no Feb 07 18:27:55 ;o Feb 07 18:28:01 Does that mean they removed it from the IntelliJ 15 base? Feb 07 18:28:07 no Feb 07 18:28:14 well. google did Feb 07 18:28:24 Yeah, that's the "they" I was referring to. Feb 07 18:28:28 yeah ^ Feb 07 18:28:33 probably removed it, if there were compat problems with gradle-plugin 2.0 Feb 07 18:28:54 thats what i always wonder about ... Feb 07 18:29:04 there are currently problems with incrementalJavaCompile Feb 07 18:30:01 g00s: Yeah, that's the only potential drawback with Kotlin, as far as I can see -- that the tooling could become out of sync (even if it's just for a short time). Feb 07 18:30:51 it already did Feb 07 18:31:02 at least if you consider instant run Feb 07 18:31:26 our build system is a hairy beast, i get very nervous adding things to it which can break. all ittakes is a corner case with , say, flavors, custom pixie dust task, code gen or whatever Feb 07 18:32:00 * g00s tries to keep that stuff as simple as possible Feb 07 18:32:51 our? Feb 07 18:32:53 g00s, you've been right. it was a problem at layer 8 :p Feb 07 18:40:45 What's the difference between "?android:attr/someHeight" and "?attr/someHeight"? Feb 07 18:40:58 android: Feb 07 18:41:08 namespace Feb 07 18:43:30 Did that answer your query? If so, click [here]. If not, click [here]. Feb 07 18:43:58 anyone use MPAndroidChart? if i have 2 charts, and a user scrolls one, can I have the other locked to scroll to the same place ? Feb 07 18:44:35 sudhirkhanger recently, you used android-dev IRC help desk. we ask that you take some time to rate our performance Feb 07 18:46:21 get 20% off your next question when you complete this questionnaire Feb 07 18:47:34 sudhirkhanger, android: indicates its an attribute defined in the android framework Feb 07 18:47:53 if theres no android:, its defined by yourself (or one of your imported libraries) Feb 07 18:51:28 sudhirkhanger there are places, where you can use both ?attr/xxx and ?android:attr/xxx - for example, using AppCompat. they define local (non-android) namespace ones which either reference the android ones (on platforms that have it) or define it some other way Feb 07 18:51:58 usually in that case, you would want the appcompat one so ?attr/xxx Feb 07 19:00:57 appcompat defines attributes that don't exist on v7 and earlier Feb 07 19:01:42 g00s: Did my question offend you? Feb 07 19:02:00 sudhirkhanger lol no why did you think so ? Feb 07 19:02:03 if using appcompat then should use the attributes defined by appcompat, always Feb 07 19:02:34 g00s: Or rather asking a question, perhaps silly in your opinion, offend you. Feb 07 19:02:38 the long rant. Feb 07 19:03:19 just having fun :) Feb 07 19:03:29 oh okay. Feb 07 19:11:12 wow. this android weekly half of the articles seem to be about kotlin Feb 07 19:14:27 danijoo wonder if there will be a Kotlin superbowl add ... Feb 07 19:16:56 when i press power button to lock the screen and after that i press again on power button to resume Feb 07 19:17:36 ... the app crashes Feb 07 19:17:44 my activity resumes, pauses, is destroyed, resumes Feb 07 19:18:02 i cant understand why Feb 07 19:18:19 pycas did you read about the activity lifecycle ? Feb 07 19:18:26 yes Feb 07 19:19:02 but cant understand this behaviour Feb 07 19:19:03 hrmf Feb 07 19:19:15 Can you use Kotlin classes from java 6 code? Feb 07 19:19:30 Mavrik, yes Feb 07 19:19:43 its 1.6+ Feb 07 19:19:56 Yes, but is the API transparent? Feb 07 19:20:11 E.g. if you make a Kotlin library, will it be transparently usable from Java 6 code without the user knowing that? Feb 07 19:20:40 they would need to include the kotlin runtime Feb 07 19:20:50 not so sure if 10k methods is transparent ;) Feb 07 19:20:56 hm. not sure about librarys. I think it it bundles the kotlin runtime, yes Feb 07 19:21:04 g00s, kotlin is < 1k Feb 07 19:21:49 danijoo ... are you sure O.o Feb 07 19:22:01 after proguard, yeah Feb 07 19:22:01 danijoo have you used ClassyShark ? Feb 07 19:22:19 ah no.. i looked it up now. its actually 1,5k for me Feb 07 19:23:09 We're a largeass library so *Shrug* Feb 07 19:23:17 Just wanna know if they have to know about kotlin or not :P Feb 07 19:23:26 still smaller then everything facebook wrote ;p Feb 07 19:23:42 :D Feb 07 19:23:46 g00s, no i used the dexcount plugin Feb 07 19:23:58 next version of AS should get that in the GUI Feb 07 19:24:09 at least it says target 2.1 Feb 07 19:27:39 Everytime I see anything by facebook it just seems like their developers are too "smart" for their own good :P Feb 07 19:28:07 Anyway, RxJava is a huge method count booster. Feb 07 19:29:56 yeah, sadly Feb 07 19:30:53 yeah, you can use kotlin transparently, it's just another library Feb 07 19:31:33 yeah, by own libs are also huge method count boosters Feb 07 19:32:07 I wrote my own libs for fully reactive, threadsafe collections. Practically usable like java’s stream library, but reactive. Feb 07 19:32:43 you take a reactive collection, apply a stream to it, and the resulting thing will be updated whenever the original collection is. Threadsafe and, on android, you can even enforce some things to un on UI thread. Feb 07 19:32:46 Mavrik hopefully rxjava 2 count won't be much bigger Feb 07 19:32:54 I ran over the method count once before employing proguard Feb 07 19:33:02 g00s, it's not the lib itself Feb 07 19:33:08 it's all the anonymous classes generated Feb 07 19:33:25 An rx chain can easily be 10-15 methods Feb 07 19:33:54 but it’s just sooo convenient being able to just have a collection and say "intersect with collection x, sort the results, map this function, then that function, then attach the collection to this recyclerview Feb 07 19:34:18 if android would get invokedynamic support, most big apps’ method counts would probably half Feb 07 19:34:50 justjanne, sounds like you reimplemented a mix of rx and kotlins functional behaviour :/ Feb 07 19:35:24 danijoo: yes, I did. But rxjava didn’t do the collection stuff properly for me (as items at any place can be modified or removed or edited) and kotlin was too much of a jump for m,e Feb 07 19:36:55 danijoo: I’ll probably end up cutting Guava, too, after I already have my own streams api and optionals now Feb 07 19:37:13 actually, I don’t think I even use guava anymore, I might actually save through that Feb 07 19:37:47 what do you do in such cases, danijoo? Feb 07 19:40:02 I only use kotlin so I dont have this problem Feb 07 19:41:24 and kotlin has that? neat. Feb 07 19:42:12 I just have a notifyItemInserted/Changed/Removed interface on each collection, which is then handed through to the observers in the same way. Except for optionals, which have only notifyChanged, which is then also handed through to observers. Feb 07 19:42:13 list sorting and stuff like that? Feb 07 19:42:14 yeah Feb 07 19:42:41 btw, I should refactor this into a single, proper library. Feb 07 19:42:58 then I could actually use it easier, and maybe even improve the code quality. Feb 07 19:43:38 you can do things like myList.filter { item -> boolean }.map { item -> somethigelse} .. Feb 07 19:44:10 yeah, I just need this concept: Feb 07 19:45:27 channelidlist.filter { network::contains }.map { network::channelname }.bind(recyclerview.getAdapter()) Feb 07 19:45:40 when I then do channelidlist.add(24), the recyclerview would auto-update ;) Feb 07 19:45:43 that’s the neat stuff Feb 07 19:47:29 the latter would be an rx job. Feb 07 19:47:37 yeah, but the idea is to combine it Feb 07 19:47:37 observable which updates the recycler Feb 07 19:47:49 yeah so.. kotlin + rx :P Feb 07 19:47:51 because rx can’t do stuff like removing items easily without copying the list Feb 07 19:48:32 rx can do a stream of items, or a stream of lists of items, but not a list with a stream of diffs to be applied Feb 07 19:49:08 Yeah, RxJava was written for servers Feb 07 19:49:12 which means lots of memory trashing and GC churn Feb 07 19:49:27 becuase "who cares we have bunch of ram and good GC" Feb 07 19:49:30 I tried rx before, but it can’t really do that Feb 07 19:49:30 but you can make an observable where you throw an item (24) in and it will update a bunch of stuff (add it to channel list, update recycler view) Feb 07 19:49:45 yeah, how do I remove an item from the channel list now? :D Feb 07 19:50:01 except for maybe boxing each action as an object Feb 07 19:50:01 dont :D Feb 07 19:50:11 Action { type, position, element } Feb 07 19:50:40 then I’d send a stream of { ADD, 2, "#android-dev" } and { DELETE, 7, #firefox } Feb 07 19:50:52 but that wouldn’t improve GC costs at all, just increase them... Feb 07 19:52:44 reactive android programming is a hard task :/ Feb 07 19:53:07 I’m also disappointed that Java8’s stream API, despite being able to do so, doesn’t support async reactive collections Feb 07 19:58:49 Hello. Alot of websites support two-step verification using a one-time password that is generated with an OATH client like Google's Authenticator. I would like to use two-step verification with my mobile app, however, I dont like the idea of people switching from my app to the Google authenticator to generate their code. Any suggestions? Feb 07 19:59:26 implement totp yourself Feb 07 20:00:15 pfn I guess... what about a device token? Feb 07 20:00:50 pfn I'm curious how other mobile apps enable two-step verification Feb 07 20:02:40 sudhirkhanger: I missed most of the chat, but how would you rate our performance? :D Feb 07 20:03:26 TacticalJoke A for effort Feb 07 20:08:31 no device token Feb 07 20:08:33 totp Feb 07 20:10:19 *+ Feb 07 20:10:23 oops Feb 07 20:10:24 sorry Feb 07 20:10:43 paste that password :) Feb 07 20:10:56 if you implement totp in your app, the user doesn't even have to enter the 2nd factor manually Feb 07 20:11:07 just send it in your auth roundtrip Feb 07 20:21:58 Hello guys, I made my fragment fullscreen by this: getActivity().getWindow().getDecorView().setSystemUiVisibility( Feb 07 20:21:58 View.SYSTEM_UI_FLAG_LAYOUT_STABLE Feb 07 20:21:58 | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); But now I don't know how I reverse back when I change fragment. Any idea? Feb 07 20:22:36 by clearing those flags. Feb 07 20:25:58 pfn ahh... I will look into that actually :) Feb 07 20:37:40 pfn: I like the new network list you posted on google+, btw ;) Feb 07 20:50:23 hi guys Feb 07 20:50:44 hello, you Feb 07 20:53:16 i tried to add a progressbar but get some error: https://pl.vc/2gisk Feb 07 20:53:52 Good evening, would somebody give me some tipps how to implement a share action from a fab button? I am Trying with this http://developer.android.com/training/sharing/shareaction.html Feb 07 20:54:19 but it seems my fab has no function like getActionProvider Feb 07 20:54:36 http://pastebin.com/zzr8HVNz Feb 07 20:55:36 I have some view and I want to randomize their resources(images) and then show it on screen. Can I do it? Feb 07 20:55:42 I mean onCreate Feb 07 20:56:35 store all resources inside of an array, access it randomly Feb 07 20:56:53 Android041: Your error isn't related to progress bars. Feb 07 20:57:06 could u help so solve? Feb 07 20:57:09 Android041: android.app.Activity doesn't have a method called setWebviewClient. Feb 07 20:57:25 how does android know how to draw NavigationView? Feb 07 20:57:28 WebView, on the other hand, does. Feb 07 20:57:57 Well, it has one called 'setWebViewClient'. Feb 07 20:58:04 Jace25: Yes, random method I have already implements. I want to do randomize before loading content Feb 07 20:58:35 TacticalJoke: and how can i do? sorry i'm new Feb 07 20:58:39 Android041: On a side note, that image-hosting site sucks. Use Imgur. Feb 07 20:58:48 ok for the next time Feb 07 20:59:14 `engine.setWebViewClient(...);` Feb 07 21:00:32 doesnt work =/ Feb 07 21:00:33 @Ozymandy I dont see your problem, just random the ressources before loading them Feb 07 21:01:26 http://imgur.com/cJgSfbn Feb 07 21:01:41 Android041: Think about it. Feb 07 21:01:44 Jace25: it doesn't work, but I have already solved this problem Feb 07 21:01:50 Can you use `engine` before it's declared in Java? Feb 07 21:02:01 justjanne, indeed, but it's not material enough or something :p Feb 07 21:02:14 pfn: yup ;P Feb 07 21:02:45 so if you have 10 images, store their ressources to an array and access it randomly (think of already accessed items), and load them after you have accessed them. Feb 07 21:02:58 TacticalJoke: how? Feb 07 21:05:17 pfn: you violate the guidelines in your apps anyway all the time Feb 07 21:05:33 for example, on light theme, use either grey600 or accentColor icons Feb 07 21:05:41 guidelinea are made to be broken Feb 07 21:09:21 TacticalJoke: are you here? Feb 07 21:09:40 You're basically asking me why this doesn't work: `text = "foo"; String text;` Feb 07 21:10:02 TacticalJoke: I'm totally new Feb 07 21:10:14 I think you need to learn Java before tackling Android development. Feb 07 21:13:06 If I'm reading the NavigationMenu source correctly, instead of actually adding submenus when addSubMenu is called, it has a wrapper that literally adds another MenuItem to itself? Feb 07 21:13:17 so no help? TacticalJoke Feb 07 21:13:24 HACKhalo2 yeah its pretty dumb Feb 07 21:13:37 and it puts a divider if its not the first item Feb 07 21:13:46 Android041, I agree with TacticalJoke, take a crash course on java dev Feb 07 21:14:17 hm Feb 07 21:14:41 Android041 maybe get the BNR expandable RV and do it yourself Feb 07 21:15:01 the NavigationView code is more complicated because it tries to be a general solution ... Feb 07 21:15:50 g00s, so if I wanted to get working submenus using a NavigationView, I would have to reimplement how the NavigationMenu and submenu work? Feb 07 21:16:01 yeah Feb 07 21:16:21 or use that MaterialNavigationDrawer project (or whatever its called) Feb 07 21:16:55 mikepenz/MaterialDrawer it is Feb 07 21:17:05 yeah Feb 07 21:17:17 It got support for expandable lists recently, Feb 07 21:17:22 I'll check that out now since I have a connection better then 128kb Feb 07 21:17:22 but still has a few bugs Feb 07 21:17:31 found already two today Feb 07 21:17:36 Android041: The problem is that anyone who knows the tiniest amount of Java can easily fix this issue, while anyone who doesn't isn't ready for Android development. Feb 07 21:17:44 ^ Feb 07 21:17:47 I don't mean it horribly. Just being blunt. :D Feb 07 21:17:57 year Feb 07 21:18:31 how stable is studio 2.0? Feb 07 21:19:11 beta-stable Feb 07 21:19:31 google beta stable :) Feb 07 21:19:39 so it's okay to use Feb 07 21:20:02 its useable. but there are some quirks and you might need a restart once or twice a day. Feb 07 21:20:05 From what I've read, it's "we're outsourcing our testing to the Android community" stable. Feb 07 21:20:25 "community feedback" "thanks for testing" Feb 07 21:20:38 TacticalJoke, thats kinda the definition of beta :p Feb 07 21:21:24 danijoo not if you don't do any of it yourself :D Feb 07 21:21:47 alpha skipped Feb 07 21:21:50 I don't like the tabs they use in 2.0 Feb 07 21:21:58 tabs? what tabs? Feb 07 21:21:58 other then that it's pretty Feb 07 21:22:34 the look hasnt changed that much in AS.. Feb 07 21:22:40 eh, breadcrumbs? is that what they are called now? Feb 07 21:22:49 I hide that navigation thing. Feb 07 21:22:50 TacticalJoke, which is awesome Feb 07 21:22:51 those are also in 1.0? o.O Feb 07 21:22:54 There's testing! Feb 07 21:22:56 :P Feb 07 21:22:57 haha Feb 07 21:23:06 nothing has changed except for instant run and the monitors tab in the android monitor screen Feb 07 21:23:09 I got a retina display and 2.0 looks sharper Feb 07 21:23:21 HACKhalo2: yup, it finally supports hiDPI Feb 07 21:23:29 which is awesome for me on linux here Feb 07 21:23:40 HACKhalo2: It's based on IntelliJ 15, so I guess there are a few general IDE changes. Feb 07 21:23:44 I haven't tried it yet, though, personally. Feb 07 21:23:49 i hope the font AA is fixed - i guess it will ship with its own JRE ? Feb 07 21:23:54 is that because its now based on intellij 15 or did they do that for AS? Feb 07 21:23:56 I seriously can't wait to throw arch linux on this thing Feb 07 21:24:03 I hate OS X Feb 07 21:24:16 you got a mac but hate osx? ^^ Feb 07 21:24:23 there are better ways to burn money.. Feb 07 21:24:25 it was $500 Feb 07 21:24:37 mid 2015 Feb 07 21:24:40 I have a couple macs, and I still hate osx Feb 07 21:25:13 Meanwhile, I'm enjoying Windows 10. :D Feb 07 21:25:24 Though it's probably largely because I'm ignorant of the degree to which my privacy is being violated. Feb 07 21:25:26 windows is my generally preferred desktop env Feb 07 21:25:35 I really like the way OS X deals with fullscreen windows (borderless on it's own desktop) Feb 07 21:25:38 pfn, that explains a lot Feb 07 21:25:48 ;P Feb 07 21:25:55 TacticalJoke i read the other day, even with all the telemetry disabled windows 10 made like 8K connections to ~ 90 IP addresses in the period of 1 day Feb 07 21:25:55 HACKhalo2, yeah, too bad it messes up dialogs badly Feb 07 21:25:57 windows > * Feb 07 21:25:57 especially in AS Feb 07 21:26:02 yea Feb 07 21:26:05 OS X is especially shit at managing modal dialogs Feb 07 21:26:12 it keeps losing them, not showing them in missin control, etc. Feb 07 21:26:18 they also use a really shitty version of the X Server Feb 07 21:26:29 g00s: One computer did that? Feb 07 21:26:35 no one uses x11 apps on osx Feb 07 21:26:36 If I'd get a penny for every time the run device window disappeared somewhere Feb 07 21:26:47 I'd buy facebook and force every employee to jump off a cliff. Feb 07 21:27:00 One thing about Windows 10 is that, by default, it's set up to allow people over the Internet to download Windows updates from you. Feb 07 21:27:01 I haven't noticed intellij doing that on fullscreen on osx Feb 07 21:27:08 You gotta turn that crazy stuff off right away. Feb 07 21:27:09 pfn: x11 is the framework to cacao Feb 07 21:27:17 HACKhalo2, it is not Feb 07 21:27:30 TacticalJoke oops 4000 connections http://tech.slashdot.org/story/16/02/06/1550249/even-with-telemetry-disabled-windows-10-talks-to-dozens-of-microsoft-servers Feb 07 21:27:35 er, cacao? OK, maybe Feb 07 21:28:31 g00s: Sounds worrying. :/ Feb 07 21:28:56 android only needs one ip Feb 07 21:29:06 then again, no one really uses. cacao Feb 07 21:29:07 it sells your sould exclusivly through google play Feb 07 21:29:12 soul* Feb 07 21:31:36 g00s: One commenter claimed the OP got it wrong: "He configured the router to drop all connections. So Windows tries to access Windows Update, and it fails. So it tries the next server on the list, which fails." Feb 07 21:32:44 danijoo: I see hundreds of different connections every day. Feb 07 21:32:48 from Android. Feb 07 21:32:49 TacticalJoke, but the title wouldnt look scary enough with only 5 ips Feb 07 21:33:01 justjanne, without apps? Feb 07 21:33:05 danijoo: yup. Feb 07 21:33:09 justjanne, well that's because everything on Android spies on you constantly :P Feb 07 21:33:12 to lots of google stats and analytics sites Feb 07 21:33:24 Half apps have like 4-6 advertising SDKs constantly sending telemetry Feb 07 21:33:27 with ads, I have analytics to google, yahoo, microsoft and yandex Feb 07 21:33:41 alone Google’s own apps send like every 60secs to google analytics servers here Feb 07 21:33:48 I'm pretty sure Google knows more about me than I do at this point. Feb 07 21:33:51 but maybe that’s just the fail->retry thing Feb 07 21:34:19 well. thats kinda the business strategy of android Feb 07 21:34:25 02-07 22:26:38.820 W/GAv4: AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See http://goo.gl/8Rd3yj for instructions. Feb 07 21:34:25 02-07 22:26:38.849 W/GAv4: CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions. Feb 07 21:34:25 02-07 22:26:38.881 W/GAv4: AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions. Feb 07 21:34:31 nobody should be suprised abut that Feb 07 21:34:35 a short excertp from the log Feb 07 21:34:54 funnily, literally no apps installed except GApps on a GPE Moto G and my own app here Feb 07 21:34:59 (which doesn’t use google services) Feb 07 21:36:48 danijoo, the annoying thing is that that shit generates like 50% of mobile data traffic and keeps radios and cpu running Feb 07 21:36:51 burning battery. Feb 07 21:37:11 Mavrik: now imagine being in an area where no one has mapped the WiFi networks for location services yet... Feb 07 21:37:38 if Google recognizes a new network, the first android phone to see it will map it and upload data about it, and enable and upload GPS coords for a few minutes every 60sec. Feb 07 21:37:44 Mavrik, yeah.. Feb 07 21:37:52 if you’re in an area with purely unknown networks, your battery dies in 30min Feb 07 21:38:21 Someday I decided to just take my tablet, enable location services, and let it hang on wall power. Feb 07 21:38:38 after a few hours it stopped, and now I can turn on location services without battery dying Feb 07 21:39:37 arent you from germany? Feb 07 21:40:51 i wouldnt have expeted there are still unmapped areas here Feb 07 21:41:31 Google StreetView was terminated before they got my city. Feb 07 21:41:39 hell, my whole district is missing from Google maps. Feb 07 21:42:22 the "third right in the roundabout to get to the highway" inevitably leads, when a new road is added but never marked, to travelling groups, police, money transporters, etc ending up in my street, a dead end. Feb 07 21:42:27 we’ve had lots of fun with that. Feb 07 21:42:46 justjanne, but I would have expected at least wifi mapping reached your 'dorf' Feb 07 21:43:05 danijoo: the experience I mentioned was in 2012 ;) Feb 07 21:43:15 ah! ^^ Feb 07 21:46:43 justjanne, I'd guess OSM is more accurate? :) Feb 07 21:46:54 well, yeah, but not as usable. Feb 07 21:47:00 I and everyone I know use here maps now Feb 07 21:47:47 Yeah, here is OK Feb 07 21:48:07 Even though the UX leaves something to be desired... I was playing with Maps.ME app for OSM and it's pretty neat. Feb 07 21:48:12 My go-to nav for car stuff is still Sygic though Feb 07 21:52:27 Mavrik: https://www.reddit.com/r/legaladvice/comments/3rer0e/google_maps_directing_folks_on_to_our_private/cwog5ow Feb 07 21:52:32 Guys. When I do startActivity(new Intent(main.this,Game.class)) what happens with activity where I was before? Feb 07 21:52:38 A Google employee asked me to tell them the actual issues Feb 07 21:53:04 justjanne, ugh :/ Feb 07 21:53:13 That sucks ass Feb 07 21:53:16 https://www.google.com/maps/@54.3530178,10.0703569,529m/data=!3m1!1e3 Feb 07 21:53:18 https://maps.here.com/?map=54.35308,10.07028,17,satellite&x=ep Feb 07 21:53:22 so much fun :D Feb 07 21:53:26 It's like that old peoples home which has the same MAC address as phone thieves. Feb 07 21:53:29 Can anyone help me? Feb 07 21:53:36 So people come there demanding their stolen phones back. Feb 07 21:53:56 Ozymandy: the activity will get paused and pushed on the back stack Feb 07 21:54:02 unless you do finish() Feb 07 21:54:08 then it gets killed Feb 07 21:54:24 If I want to kill this activity I have to do finish? Feb 07 21:54:28 ye Feb 07 21:54:28 this.finish()? Feb 07 21:54:40 i have called just finish() Feb 07 21:54:42 and it worked Feb 07 21:54:45 just finish() or this.finish() or super.finish() Feb 07 21:54:47 all should work Feb 07 21:55:23 without prefix resolves to this.finish(), and as you don’t have overriden it, that resolves to super.finish(), which resolves to Activity.this.finish() Feb 07 21:55:51 And then when I press back button I exit from the app, yes? Feb 07 21:55:53 which resolves to Landroid/app/activity;finish Feb 07 21:55:59 Ozymandy: you should, yes. Feb 07 21:56:06 Good, thanks Feb 07 21:56:30 (I’m not sure if that bytecode syntax is correct, haven’t used that stuff in a looooooooong time Feb 07 21:57:45 12 years of reporting the above maps issue to Google. No fix yet. So much fun. Feb 07 21:59:52 I have big text and want to create dialogue window with it, how to? Feb 07 22:00:08 Generally I don't know how to pass text Feb 07 22:00:16 Because it's big Feb 07 22:04:20 same way yu pass a small one Feb 07 22:18:09 googles review translation is allways so helpful.. Feb 07 22:18:13 "Very good Mac monitoring application, however, came at a great feature if you're doing an Application Boyle would be perfect, beyond the Coke Drinking Thanks" Feb 07 22:18:35 definitly too much coke drinking in this app Feb 07 22:23:00 that reminds me... Feb 07 22:24:18 reviews should be exclusivly english imo :/ Feb 07 22:26:08 Shouldn't reviews exclusively be in Chinese since there are more Chinese speakers than English speakers? Feb 07 22:26:42 no because chinese dont use the app store ;0 Feb 07 22:27:00 but spain maybe Feb 07 22:27:07 spanish* Feb 07 22:27:15 if you go by numbers Feb 07 22:27:18 haha, good point :D Feb 07 22:27:46 I was teetering because Japanese and Chinese. I chose poorly :D Feb 07 22:28:26 /because/between/ Feb 07 22:30:23 This is how I see it : not everyone in world can write in English. So Google is a great band-aid. But that person who can't write English has to be aware that their message may not be understood by the dev... Feb 07 22:31:22 MikeWallaceDev: even worse when you know the same language as the reviewer, but use your own bad english Feb 07 22:31:50 translation is mostly fine. its just a view languages like turkish were it doesnt work at all. Feb 07 22:32:02 i think they must have a very different grammer Feb 07 22:32:26 hey its MikeWallaceDev Feb 07 22:32:31 justjanne, oh that's a good one! Feb 07 22:32:50 Hey g00s what's up? :) Feb 07 22:33:06 MikeWallaceDev not much, have you done any more conference talks ? Feb 07 22:34:06 No, DevCon Montreal was cancelled this year :( Feb 07 22:34:19 They picked the same date as I/O Feb 07 22:34:26 screwed everything up Feb 07 22:34:40 i see Feb 07 22:34:56 MikeWallaceDev what topics would to choose next ? Feb 07 22:35:01 s/to/you lol Feb 07 22:35:07 That's easy : Paul Feb 07 22:35:21 Paul ? Feb 07 22:35:29 * g00s googles paul + android Feb 07 22:35:31 It's an architecture based on Uncle Whatshisname's.... Feb 07 22:35:43 no point in Googling it yet :D Feb 07 22:35:59 uncle bob ? Feb 07 22:36:00 I didn't know what to call it, so I called it Paul :D Feb 07 22:36:05 Yeah! Uncle Bob Feb 07 22:36:11 lol you mean Clean ? Feb 07 22:36:29 Clean! Couldn't remember, I have been calling it Paul for months now :D Feb 07 22:36:48 lol they sound similar phonetically i guess :D Feb 07 22:37:09 So, since I'm not doing Clean exactly, I wanted to give it a name. And Paul has always been my go to variable name since the 90es... Feb 07 22:37:37 every application I've ever made has a "int paul" in it somewhere... Feb 07 22:38:00 then you get famous, and we call you uncle mike Feb 07 22:38:20 My nieces and nephews already do! hahaha Feb 07 22:38:35 :D Feb 07 22:40:01 MikeWallaceDev to make it more sexy you're going to have to throw kotlin in there somehow Feb 07 22:41:44 Not a bad idea ;) Feb 07 22:41:55 I don't have enough sexy to spare :D Feb 07 22:42:05 just add a K in front of it Feb 07 22:42:08 and everything related to kotlin has to start with k, so you can call it kaul Feb 07 22:42:18 haha g00s Feb 07 22:42:25 danijoo hehe we thought the same :D Feb 07 22:42:40 Maybe I should call it Martin. They I could call it K-Mart Feb 07 22:43:14 k-mart isn't doing so well, i'd avoid any association :D Feb 07 22:43:15 Too Punny? Or K-Mart wasn't in the us? Feb 07 22:46:15 is kmart still a thing? I though they bought sears then died Feb 07 22:46:55 Well Sears is still a thing... Feb 07 22:47:21 Is there anyway I can implement a shre button in my webapp that will send data to android apps? Like a normal intent I guess. or similar to the one that pops up when you select a text in the main brow… Feb 07 22:47:22 …ser. Feb 07 22:50:00 Caution, hack ahead : You could create your own web client and send it specific urls. Then your app would trap them and resend them as Intents. Feb 07 22:53:29 I'm not planning to just share urls. so... Feb 07 22:54:29 The specific urls are what your web client would trap. You can share any uri Feb 07 22:56:43 Bassically I want to share some of the content of the page I'm in. Feb 07 22:58:46 I guess I got it though. thanks anyway. Feb 07 22:59:51 np! Feb 07 23:05:23 g00s: so like with KDE? Konsole? Konversation? Kolor? Feb 07 23:05:42 unfortunately Feb 07 23:05:49 (funnily, with KDE being a German foundation, and the first two examples actually being the German word for console and conversation, it matches well) Feb 07 23:07:46 hm.. is it possible to somehow have a PreferenceActivity, which does not save preferences into the usual SharedPreferences? I'd rather have a button, which would save whatever is typed otherwise Feb 07 23:08:06 or do I have to unbind everything first D: Feb 07 23:11:35 ok i had a crazy idea. i wonder, if I made each recyclerview item, a SlidingPaneLayout. is that sane? Feb 07 23:11:59 so you could slide the item to one side to reveal some more things about it Feb 07 23:12:15 hm i wonder if the swipe to dismiss kinda works like that Feb 07 23:14:48 no, that’s overkill Feb 07 23:14:57 the swipe to dismiss uses one global drag helper for all items Feb 07 23:15:07 ask pfn, he’s got experience with drag stuff Feb 07 23:15:20 i could make something myself with viewdraghelper i guess Feb 07 23:19:49 justjanne did you say earlier pfn added some nifting thing to qicr ? link ? Feb 07 23:19:54 *nifty Feb 07 23:20:42 something about server list Feb 07 23:20:54 yeah, but what I meant now was https://www.youtube.com/watch?v=PyTL_Mq6HpI Feb 07 23:21:22 that with the server list was https://www.youtube.com/watch?v=rbLZ1N_YbDM Feb 07 23:21:41 ah ok Feb 07 23:22:56 i can't see that pull down actionbar looking good in landscape / tablet Feb 07 23:23:17 since ab goes whole length of screen ... at least a bottom sheet can be somewhat narrow Feb 07 23:23:51 yeah, it’s bad. Feb 07 23:24:10 for QD I’ll have to think about tablet, too Feb 07 23:25:12 justjanne have you seen MS OneNote UI on Android ? Feb 07 23:25:32 i'll probably need to do something like that eventually, with multiple sliding panes Feb 07 23:25:42 i have a deep hierarchy of lists Feb 07 23:26:18 nope, video? Feb 07 23:26:39 vide here https://play.google.com/store/apps/details?id=com.microsoft.office.onenote Feb 07 23:26:59 looks good enough, all I care Feb 07 23:27:08 don't really care about tablets Feb 07 23:27:16 other than it works Feb 07 23:27:24 justjanne you can see it around 0:19 or so Feb 07 23:29:22 hm Feb 07 23:29:47 kinda reminds me of mac Finder multi pane dir traversal Feb 07 23:29:58 yeah, that’s neat Feb 07 23:30:04 sadly no android widgets for that Feb 07 23:30:14 unless you manually stack sliding viewpanels, Feb 07 23:30:18 or build your own Feb 07 23:31:42 swipe to dismiss is easy Feb 07 23:31:53 item touch helper and call it a day Feb 07 23:33:15 pfn i was thining about the user being able to slide recyclerView items to show more options, and then slide them back Feb 07 23:33:32 conceptually, its exactly like SidingPaneLayout Feb 07 23:33:53 still not. very difficult, but not very intuitive Feb 07 23:34:24 yeah when i do things different that has no precedence, i need some kind of affordance Feb 07 23:35:04 better to just tap to navigate than swipe Feb 07 23:44:21 not necessarily. Feb 07 23:44:39 the swipe-to-archive, swipe-to-pin, swipe-to-delete exists even in Google’s apps Feb 07 23:44:43 all at once on the same item, Feb 07 23:44:51 depending on direction and amount of offset Feb 07 23:44:54 that's swipe to act, not swipe to navigate Feb 07 23:45:11 archive and delete are the same thing, just different result Feb 07 23:45:48 justjanne: On a site note, Google's apps aren't exactly a pinnacle of UI design. They get so many things wrong (even basic things). Feb 07 23:45:52 side* Feb 07 23:50:53 pfn: for some time, swiping right was pin/delay, swiping left a little was archive, completely left was delete Feb 07 23:51:01 super cluster fuck, no one could remember anything Feb 07 23:51:22 yes, so not a good example to bring up Feb 07 23:53:02 well, just saying. Feb 07 23:53:16 as you said yourself, pfn, guidelines are there to be broken ;P Feb 07 23:55:12 you can do it if you want, it'll just be weird Feb 07 23:58:42 that’s exactly what I said about your app ;P Feb 08 00:05:07 g00s, MaterialDrawer is kinda weird Feb 08 00:06:41 HACKhalo2: what do you mean with "weird"? Feb 08 00:11:57 hm.. I still don't get it.. it seems that a PreferenceFragment / PreferenceActivity always writes into SharedPreferences.. what if I do not want to do that, but instead want to write the settings into my own configuration? Feb 08 00:12:56 I know I can specify the name of the file, but I am not sure it's what I want.. I want to save that data into an object (for further usage within the app) AND serialize the object to disk.. I am sure I'll find a solution, but perhaps someone knows o.o;? Feb 08 00:19:59 watch out for highway interdiction :D Feb 08 00:20:06 oops wrong channel Feb 08 00:21:22 does anyone know if databinding works with PreferenceActivity? Feb 08 00:21:29 http://goo.gl/BOVE35 Feb 08 00:21:35 hahahahahahahahaha Feb 08 00:48:03 justjanne, there's nothing weird about my app Feb 08 00:50:07 default colors are absolutely material Feb 08 00:55:36 and your example of a guideline violation in my apps is violated across all material apps, including Google's Feb 08 01:25:00 pfn: the look + feel just isn’t material, it’s hard to describe Feb 08 01:25:05 it’s a design thing Feb 08 01:34:03 pfn all you need is some bold colors, lots of animations, and more padding :P Feb 08 01:34:58 and if an animation doesn't induce a seizure, it needs moaaarr Feb 08 01:35:18 i really wish the material spec had more guidance for dark themes Feb 08 01:36:28 they would need to adjust the color palettes Feb 08 01:40:28 also wasn't L / M supposed to have a dark mode during preview, but it got yanked last minute Feb 08 01:44:07 g00s: it’s more about a type of design style. fonts, weights, margins. Feb 08 01:44:56 and shadows and layers, but yeah i was joking - kinda :D Feb 08 01:46:37 hi. I have a project I made long ago using ant, makefiles and ndk (c++, static libs). Is there any guide on how to migrate that kind of project to Android Studio / Gradle ? (I've never used Android Studio before ; I've created a blank project and moved the old files into it, that's all) Feb 08 01:48:51 justjanne do you have any screenshots of your app? sounds like you are working hard to make it material Feb 08 01:50:55 g00s: I have actually about 2 screenshots which are already done. Feb 08 01:51:22 I only finished the first part of the UI properly today. Feb 08 01:51:54 What I'm really proud of is the ability to drag out the input bar, so that it becomes a full-screen WYSIWYG editor. Feb 08 01:52:41 It's hard to see how material sonething is when most isn't done yet. Feb 08 01:52:50 ah k Feb 08 01:53:08 yeah i tend to leave, whatever i think could be improved by appcompat, until the end :D Feb 08 01:53:31 like the tiniting for icons in toolbar, etc - its messed up in my app now, hoping next release does that Feb 08 01:53:34 I'm still spending most of the time on the backend. Syncing channel joins between clients, for example, is particularly tricky. Feb 08 01:53:40 or i'll have to do it myself. those little details Feb 08 01:54:49 Yeah, I'll have to test on previous versions of Android, too. Feb 08 01:55:03 And then get my hands on a device with marshmallow, to get permissions done right. Feb 08 01:59:29 justjanne have you used any bottom sheet libraries like the one from flipboard ? Feb 08 02:03:24 umano's AndroidSlidingUpPanel, but I modified it a bit. Feb 08 02:03:34 You find the modified version on my github Feb 08 02:03:39 @justjanne Feb 08 02:05:35 yeah i remember that one, been around for a while Feb 08 02:06:20 The important modification is that you can now blacklist items from being drag panels. Feb 08 02:06:34 So you can say a drag panel is everything that is inside x but not y. Feb 08 02:06:43 Very useful. Feb 08 02:07:40 justjanne you liked it better than the flipboard one https://github.com/Flipboard/bottomsheet Feb 08 02:08:11 It's very different type of bottom sheet lib Feb 08 02:08:15 With different usages. Feb 08 02:08:48 Want one that moves just like the slidingpanel from hangouts or the vertical one from play music? Then umano's is better. Feb 08 02:13:59 ah. i guess i haven't learned the differences Feb 08 02:15:11 i'll have to install those to check them out Feb 08 02:16:27 can't believe what a crapfest the number/date/time picker situation is Feb 08 02:17:05 the material date picker i found seems only dialog style, but i want plain views Feb 08 02:24:15 google & VR http://www.ft.com/cms/s/0%2Fb33d75fe-cc5a-11e5-be0b-b7ece4e953a0.html#axzz3zVsU60xd Feb 08 02:25:20 "Google is hoping to improve the quality of the mobile VR viewing experience by embedding new software directly into its Android smartphone operating system, rather than relying only on a traditional app as it does with Cardboard today." Feb 08 02:27:57 so, VRML strikes back? Feb 08 02:37:23 justjanne does the umano panel *have* to be the root layout of the activity, or can it be the root layout for the DraweLayout content ? **** ENDING LOGGING AT Mon Feb 08 02:59:58 2016