**** BEGIN LOGGING AT Mon Dec 14 02:59:58 2015 Dec 14 03:14:22 So what do you do if you want to use the Switch widget but your minimum api is set to less than 14. Do you get a library that offers backport of Switch? Or can you do it so somehow if api < 14 -> use other widget ? Dec 14 04:09:10 ping Dec 14 04:14:20 pong Dec 14 04:22:42 Gilad Bracha's dart book is out Dec 14 04:26:36 hello. Is there any way to use the old permission mode but compile with SDK 23? Dec 14 04:41:04 what's the difference between sensorEvent.timestamp && System.nanoTime()? Dec 14 04:41:06 http://stackoverflow.com/questions/5500765/accelerometer-sensorevent-timestamp Dec 14 04:41:34 seems they both are nano-seconds of uptime since last boot Dec 14 04:42:15 i'm trying to locate the adb files that I am reading are to be installed after the 1st run of android studio. i don't have a C:\android folder (where they are supposed to be installed). Dec 14 05:10:32 So if someone wants to write Java apps but knows absolutely nothing about it, in what direction would you point them? Dec 14 05:16:41 hello Dec 14 05:19:37 BenisBoy: Probably best to try ##java or googling `learn java site:stackoverflow.com`. Dec 14 05:19:56 Thanks Tactical, will look into it. Dec 14 05:22:05 TacticalJoke lol, ##java - dont think he's asking you for help again : Dec 14 05:22:06 :P Dec 14 05:24:14 haha Dec 14 05:24:20 I was gonna add a legal disclaimer, but I was too tired. Dec 14 05:29:24 So do you all use tabLayout now when you are doing tabs? instead of just actionbar.setNavigationMode(TABS) kinda thing Dec 14 05:31:13 i can't seem to work with the sd card on my android studio emulator. Dec 14 05:32:01 i've tried to run through the adb commands found on SO, but still cannot StatFS, or write. Dec 14 05:32:41 Environment.getExernalStorageDirectory().getAbsolutePath() returns /sdcard, but that's about all I can get Dec 14 05:35:57 Do you ever use a double tab layout ? like stack them on top of each other Dec 14 05:36:01 that would be EPIC Dec 14 05:37:18 "Remember that time JimHawking stacked TabLayouts?", wrote future generations, decades after the event. Dec 14 05:38:03 reading the docs for GridLayout ... would be nice if they had diagrams Dec 14 05:38:27 Sup guys Dec 14 05:38:42 I keep stumbling upon MSDN links lately. Every page seems to have an example, no matter what the class. It's brilliant. Dec 14 05:38:56 For java? Dec 14 05:39:02 Nah, for .NET. Dec 14 05:39:19 TacticalJoke oracle also has GridLayout, even they have diagrams https://docs.oracle.com/javase/7/docs/api/java/awt/GridLayout.html Dec 14 05:40:08 Oh, neat. Even something that simply helps a lot. Dec 14 05:40:21 just makes sense; this visual thing looks like this when you set it like that Dec 14 05:40:38 simple* Dec 14 05:40:39 Yeah. Dec 14 05:44:29 <_genuser_> is anybody using the old camera API still? Dec 14 05:44:39 <_genuser_> what's the word on how long we can expect that to work. I know it was deprecated in 21. Dec 14 05:47:30 did it ever work ? lol Dec 14 05:47:45 It's weird being a human today. We might spend our day trying to get some awful API to work, while our ancestors were wresting bears or tigers or whatever. Dec 14 05:47:50 Or at least hunting and fighting. Dec 14 05:48:30 TacticalJoke yeah, the amount of pain is probably the same, its just shifted from physical to emotional Dec 14 05:48:40 :D Dec 14 05:49:07 I bet some of them were quite happy. Though I guess I'd have to admit that there might've been more suffering in total back then. Dec 14 05:49:51 i'd rather waltz with bears than wrestle but maybe Dec 14 05:51:48 TacticalJoke: I'm not so sure they were suffering more than we are, after all, we have Spring Dec 14 05:52:53 I'm lucky enough never to have used that. Dec 14 05:53:39 i'm sure i'll look back at the android APIs with the same amount of disdain Dec 14 05:53:57 JEE, Spring, Android ... Dec 14 05:54:03 is there no good thing in Java land Dec 14 05:54:59 Actually they are all good, it's just that nothing stays good forever Dec 14 05:55:25 i remember using Spring IOC first time and was blown away :D Dec 14 05:55:38 Yeah it was good stuff at the time Dec 14 05:55:44 xml wire all the things ! Dec 14 05:55:48 yup Dec 14 05:56:14 I'm writing another article for Java Magazine for the next issue about annotations, I'll discuss this aspect at length Dec 14 05:57:08 Getting rid of XML hell was the main reason I got involved with annotations Dec 14 06:20:13 how does instagram do that thing with its listView where they title of an item floats up with the view until it reaches the top where it sticks until the next one knocks it up Dec 14 06:20:26 more info about GridLayout blog than javadocs Dec 14 06:20:29 http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html Dec 14 06:25:14 CedricBeust what is the article about ? Dec 14 06:25:31 so where is Kotlin magazine? :P Dec 14 06:33:00 spring was neat, but it was an excuse to use reflection and xml... Dec 14 06:33:43 the non dependency injection parts were nice, though Dec 14 06:33:53 TacticalJoke here Dec 14 06:34:04 's the MSDN docs on GridLayout https://msdn.microsoft.com/en-us/library/hh673533(v=vs.85).aspx Dec 14 06:34:25 quite a few diagrams, examples, excellent stuff Dec 14 06:40:58 g00s: If only we had stuff like that. Dec 14 06:42:12 i wonder how MS does their docs from a tooling perspective Dec 14 06:43:54 i have a feeling its more like the way authors write tech books, where they have placeholders for code snippet that goes inline with text; and those snippets are extracted from code that actually compiles Dec 14 06:44:20 rather than the total opposite way around, where android has javadoc, and they embed examples in the javadoc Dec 14 06:46:02 which is retarded Dec 14 06:52:25 g00s: This month, JCommander (it's available for download today). Next month, just covering annotations Dec 14 06:53:00 CedricBeust did you work on jcommander ? Dec 14 06:53:11 g00s: I created it Dec 14 06:53:24 oic your name there :D Dec 14 06:53:30 http://www.oracle.com/technetwork/java/javamagazine/index.html Dec 14 07:00:23 anyone has experience with AppCompatEditText ? I want to override it's highlight color (set new style for colorAccent) but it always show old color Dec 14 07:00:40 any advices? (all stackoverflow links doenst work for me) Dec 14 07:00:50 I mean solutions in them Dec 14 07:15:59 hi Dec 14 07:17:43 how can i get recycler in recyclerView.LayoutManager? Dec 14 07:18:33 i mean is there method to get it or i just can save it inside onLayoutChildren? Dec 14 07:34:55 Hi guyze! I've tried both hard-coding a save path "/sdcard/my_recording.pcm" and using "Environment.getExternalStorageDirectory().getAbsolutePath()"+"/my_recording.pcm". But now I want to locate the file and listen to it (on my laptop) I can't find it anywhere :/ Where might it be? Dec 14 07:39:16 Wait - I just opened up an app "File Commander" (an Android file manager) and I see the files I recorded under "Internal Storage". But not when browsing the device on my laptop (Ubuntu linux) Dec 14 07:48:52 well you could printout the entire path and check Dec 14 07:49:09 and do adb pull /path/to/file . Dec 14 08:15:14 hey all how do I get a JSONobject printed as a satring Dec 14 08:21:30 jsonObject.toString() Dec 14 08:26:47 what is right (orthodox) way to get recycler: RecylerView#Recycler in custom RecyclervView.layoutManager or anywhere else? Dec 14 08:55:47 hmm Dec 14 08:56:30 I put toolbar with layout in it (image, menu, edit text) and now I want to display hamburgerbutton, but it shows only empty space (I can click it) what am I doing wrong ? Dec 14 08:56:55 should work, since I can click that empty space and drawer shows up Dec 14 09:34:08 my bad... I just set color ;/ Dec 14 09:52:16 anybody had android studio not show help info when you press "More..." or the key-combo Ctrl+F1 Dec 14 09:52:21 (this is on windows 10) Dec 14 09:55:37 man marsh is soo slow onm y n7 Dec 14 09:56:03 Hey:) Dec 14 09:57:39 I hope i get android 6 on nexus 6 if i don't have to get a new nexus 6p phone. Dec 14 09:59:07 How everyone doing. Dec 14 10:01:56 lasserix,What to slow? Dec 14 10:14:14 perlsyntax: lol, nexus6 has android 6.0.1 Dec 14 10:15:05 gordon,I mean i got the att nexus 6 waiting for the over the air update. Dec 14 10:15:41 Let you know it not unlocked nexus. Dec 14 10:16:51 gordon_I didn't know the 6.0.1 is out. Dec 14 10:16:59 :) Dec 14 10:21:08 Hello! I am developing andorid library. So the question is how i should manage my lib dependencies (for example support-v4) to prevent duplicates in my library developer-user project. I depend on support-v4:23.0.0 and developer-user on support-v4:23.1.1 for example. Dec 14 10:21:30 https://developers.google.com/android/nexus/images?hl=en Dec 14 10:21:41 perlsyntax: do it like a boss ;) Dec 14 10:21:53 Use provide instead of compile? But whet if developer-user doesnt have support-v4 at all? Dec 14 10:23:43 gordon,I thought nexus 6 that are not unlocked you can't do that i thought:) Dec 14 10:25:30 huh, using espresso with RecyclerViews seems super awkward. Dec 14 10:25:32 gordon_,lol i was told from att i need to be unlocked to do that. Dec 14 10:26:09 gordon_,Does it matter what image i download to flash it? Dec 14 10:36:22 perlsyntax: I'm in japan, but from what I know, it's the same device Dec 14 10:36:41 or maybe I live in japan, and I'm not from japan ;) Dec 14 10:37:10 and there's only one image for 6.0.1 Dec 14 10:37:56 oh really. Dec 14 10:38:51 flashing may fail (image not found error) - google screws those images all the time, but dont worry you can flash it with fastboot, not script Dec 14 10:39:01 you can ping me if you want to do this Dec 14 10:39:08 maybe I will flash 6.0.1 today Dec 14 10:39:12 still on 6.0.0 Dec 14 10:40:27 gordon_, i read on xda forum that on't matter what image you download.I was think of give this phone to my mother but still thinking about what i going to do:D Dec 14 10:40:54 Hello. why is String.format("%1.3f"...) converting `1.4500895E9` to `1450089472.000` ? Dec 14 10:41:48 perlsyntax: I have 6p at work Dec 14 10:41:53 pretty nice device Dec 14 10:42:20 i think about that nexus 6p to Dec 14 10:42:35 I dont think it's worth it Dec 14 10:42:47 it's nice, but 6 is as good as 6p Dec 14 10:43:20 I know the nexus 64gb phone when down. Dec 14 10:43:56 gordon,Only think that 6p has is band 30 for att. Dec 14 10:44:19 ? Dec 14 10:44:42 I mean band 30 was to make the intenet go faster. Dec 14 10:44:51 that all. Dec 14 10:45:38 gordon_,What don't you like about the nexus 6p? Dec 14 10:45:39 Is there a way I can make an activity do something onFocus> Dec 14 10:45:40 ? Dec 14 10:48:50 hey cart_man Dec 14 10:49:02 perlsyntax: Yo! Dec 14 10:49:29 vedu, because that's what you demand of it. Dec 14 10:50:56 i mean the nexus 6 64gb went down in price Dec 14 10:52:57 Mavrik: Do you perhaps know how I can figure out when my Focus is back on a previous Intent? Dec 14 10:53:55 Mavrik: I want it to show 3 decimal places. How can I make it do that. I am using String.format("%.3f", d) Dec 14 10:54:29 vedu, but you are showing 3 decimal places? O.o Dec 14 10:55:01 Can you explain more what did you expect from that call? :) Dec 14 10:55:09 Mavrik: I mean the value is changing. Output should be .000 Dec 14 10:55:40 Mavrik: the input 1.4500895E9 is a very small positive decimal number Dec 14 10:56:01 It's a very large positive decimal number Dec 14 10:56:14 E9 = 10^9 Dec 14 10:56:19 huh, so in order to use espresso to do UI tests I need to modify my application code? :/ Dec 14 10:56:23 If it would be very small it would be E-9 Dec 14 10:56:32 storkme, ? Dec 14 10:58:39 Mavrik: http://michaelevans.org/blog/2015/08/03/using-espresso-for-easy-ui-testing/ Dec 14 10:59:16 *sigh* Dec 14 10:59:23 What do you mean exactly? Dec 14 11:02:54 well espresso works by waiting for asynchronous tasks to finish before executing the next perform/check, right? but since retrofit doesn't use the asynctask thread pools, so espresso doesn't know that the asynchronous activity has finished Dec 14 11:03:59 Espresso by default waits only on UI events. Dec 14 11:04:35 And yes, espresso can't magically know what your other code does with threading. Dec 14 11:04:46 Mavrik: I had the same thought, but E9 means E-9 and E+9 means the large one :) Dec 14 11:04:47 So you have to register an idling resource if you want it to sync on that. Dec 14 11:04:55 Seems like a bug in the android library of java Dec 14 11:05:38 vedu, no it doesn't. Dec 14 11:05:41 Mavrik: it does magically work just fine with the asynctask thread pools :) Dec 14 11:05:52 E9 = 10^9, E-9 = 10^-9 Dec 14 11:08:07 Mavrik: oh yes. thanks :) Dec 14 11:13:50 hey, any suggestions about a photo editing tool like aviary? Dec 14 12:22:24 stupid question but if I want to mock something (a retrofit service) when doing instrumentation tests, what's the most straight forward way of doing it? Seems a bit overkill to bring in something like dagger when I only need to mock the one thing Dec 14 12:23:10 oh right I can just have like a 'setService' method in my Application, right? and then set it in the @Before method of my tests? Dec 14 12:46:23 What is the best way of keeping your service running even though the app is forced closed... I just can not get a nice way to do it :( Dec 14 12:56:00 I'm looking for a way to occasionally check a website for updates, similar to how it's done for RSS readers. I don't care if the updates shows up the moment the website was updated, an hour or even a day later. Is there a mechanism in place to do that? Dec 14 12:57:11 SyncProviders Dec 14 12:57:25 Or just a service :) Dec 14 12:57:46 I suggest you make an API on your own server as an in-between though. Dec 14 13:18:10 Mavrik: Dec 14 13:18:12 ups soz Dec 14 13:18:22 Do you know what context is the desktop on ? Dec 14 13:18:35 If I want the Desktop context for say...notification handling Dec 14 13:18:39 outside of my app Dec 14 13:27:09 Mavrik: I failed to find when the SyncAdapter triggers a sync, also they seem to require ContentProvierders which are kind of overkill since I just want to check for a change. Dec 14 13:30:06 Has anyone here successfully ran the Clang/LLVM AddressSanitizer on a real Android ARM 32 device to analyze C and C++ code at runtime? I have yet to find a rooted device that doesn't crash after running the asan_device_setup from the Android NDK or the LLVM sources. Dec 14 13:31:16 morning Dec 14 13:31:35 anybody: How to share assets between unit test and instrumentation test in android?, http://stackoverflow.com/questions/34256623/how-to-share-assets-between-unit-test-and-instrumentation-test-in-android Dec 14 13:45:22 cart_man, that sounds like the wrong question -_- Dec 14 13:45:34 mflow, I wasn't able to get it to work, no Dec 14 13:45:40 it also broke the ROM on my nexuses :P Dec 14 13:45:53 Syzygy, use JobScheduler then Dec 14 13:46:05 Syzygy, or the play services backward compatible equivalent Dec 14 13:46:16 Mavrik: Even after you reverted the installation? Dec 14 13:46:54 Mavrik: Well I managed to get it to work though... Do you know anything about Gimbal SDK? Dec 14 13:47:17 Nop. Dec 14 13:47:51 Mavrik: asan_device_setup's --revert option worked for me everytime, even though it broke the ROMs on several devices, either couldn't boot at all or crashed immediately after boot Dec 14 13:58:00 Mavrik: I believe when lolipop was comming out, one of the features was that (at least during battery saver mode) sync requests and checks for everything on the phone would be batched together. Is this the feature for that? Dec 14 13:58:18 Syzygy, that's what JobScheduler does/ Dec 14 13:58:22 It's a Lollipop API. Dec 14 13:58:38 Alright, thanks, then that is what I was searching for. Dec 14 13:58:50 If you need something that works on older APIs, use https://developers.google.com/cloud-messaging/network-manager Dec 14 13:59:00 It has a funny name, but it's effectively JobSchedulerCompat Dec 14 13:59:46 I'll check it out. thanks Dec 14 14:02:52 Hi, I'm not seeing my service accounts in google play developer console (for API access). Worked a couple of days ago, do someone know if it's a known issue? Dec 14 14:09:55 is there any particular downside to using Auto for android:installLocation ? Seems like a good idea to let the users device decide whats best. Dec 14 14:16:33 if android:installLocation is set to Auto what happens with OBBs? Will they try to be placed on internal memory if the apk is installed on internal memory? Dec 14 14:18:42 hey. I'm using android studio 1.5.1. I'm using the layout convention of "activity_name.xml" and "content_name.xml" Dec 14 14:19:19 In this case, the "content_name.xml" file is included in the "activity_name.xml" file using the "include" xml tag. Dec 14 14:19:40 In the preview tab, at the top bar, I have an option to associate a particular layout file with an activity Dec 14 14:20:14 I've accidentally associated the "content_name.xml" activity with the "Name.java" file Dec 14 14:20:27 this has led to improper rendering in the Preview. Dec 14 14:20:34 I want to fix this. Dec 14 14:20:43 Someone got any ideas? Dec 14 14:25:28 For a PeriodicTask of the GCM framework, do times like 1 day with a flex of 10 hours make sense? The api reference has examples with 30 seconds. Dec 14 14:26:24 Anyone know if an APK is installed to internal memory and tries to use a OBB downloader to download additional content however the content wont fit on Internal Memory will it download the OBB to External Memory? Dec 14 14:26:44 <_abc_> Hello. I'm new to Android development, I developed for Blackberry and J2ME in the past. I would like to get going fast with droid stuff with/without cyanogen. I have android studio installed and working, would like to buy a device dedicated to development, i.e. a torture device. What would be good here? My minimal platform version support will probably be aimed at 4.x, the device can be a tablet or a ph Dec 14 14:26:50 <_abc_> one, must be cheap, and have bluetooth. Is ... Dec 14 14:26:53 <_abc_> ... SPP support in android bt emulator still broken? Dec 14 14:27:43 _abc_: I recommend a samsung device since those seem to be the most widely used ones. Dec 14 14:28:09 <_abc_> Not LG? Have you ever heard of Allview? Dec 14 14:28:14 <_abc_> It's a local brand. Dec 14 14:28:25 I suggest you get a used Galaxy S2 or 3 Dec 14 14:28:37 <_abc_> Is that on 4.x? Dec 14 14:28:56 hi everyone i cannot get view on the screen Dec 14 14:29:07 I think the S2 supports it, but you should confirm that before you buy. Dec 14 14:29:07 https://paste.kde.org/pdm2l5cjo Dec 14 14:29:13 s2? lolwut Dec 14 14:29:22 this is my activity code Dec 14 14:29:41 pfn: as a cheap widely used dev phone it should be fine. Dec 14 14:29:50 https://paste.kde.org/pxexeyg8n Dec 14 14:29:55 this is my fragment Dec 14 14:30:04 but there is nothing on the screen Dec 14 14:30:13 can anyone help me Dec 14 14:30:43 _abc_: as far as I can tell, samsung has a larger market share than LG. And I don't know your local phone manufacturers :P Dec 14 14:31:53 <_abc_> Syzygy: SIII can be CMd? Dec 14 14:32:11 this is fragment_newtodo Dec 14 14:32:36 very likely, I had cyanogen on my S2 as well. and as I said, the galaxy s series of phones is very popular Dec 14 14:33:07 this is new_todo_layout Dec 14 14:34:25 the s2 isn't widely used anymore Dec 14 14:34:36 it didn't even officially get past gingerbread did it Dec 14 14:36:12 well it was, and it's a (by now) low end android phone. He can do t hat last bit of research to see if the OS version he wants is supported for himself Dec 14 14:36:33 and since he wants cyanogen anyway, I know that it supports 4.4 CM Dec 14 14:37:07 why noone help me ? Dec 14 14:37:19 i send you whole code ! Dec 14 14:37:52 pfn: also, it was released with 2.3, of course they updated it to 4. something at some point Dec 14 14:38:09 4.0.4 apparently Dec 14 14:38:25 yeah, barely Dec 14 14:38:47 not a very usable. phone Dec 14 14:38:51 not for dev Dec 14 14:39:03 would be better served buying something like a moto e Dec 14 14:41:40 Walmart even sells a $10 android phone Dec 14 14:41:52 Probably about as good as the s2 Dec 14 14:42:11 <_abc_> I also want CM probably. I do strange things with phones, like controlling hardware I developed. Dec 14 14:42:26 <_abc_> That does not play so well with google store and other things before all the bugs are removed. Dec 14 14:42:39 <_abc_> So I need to test A LOT offline Dec 14 14:42:47 <_abc_> How bad is bt support in the emulator now? Dec 14 14:42:59 <_abc_> It was nonexsitant before some time, like a year ago. Dec 14 14:43:01 there is no bt in emulator Dec 14 14:43:06 <_abc_> Omg Dec 14 14:43:12 use a device Dec 14 14:43:16 <_abc_> Not even a fake channel to a serial port from qemu? Dec 14 14:43:28 and cm brings no advantage to building apps Dec 14 14:43:48 <_abc_> What bunch of brown stuff. I still have the J2ME device emu and bt works reat there. Dec 14 14:43:48 well, very very slight, it ignores the debuggable flag Dec 14 14:43:58 good for you Dec 14 14:44:03 <_abc_> pfn: CM is needed for unorthodox things. Dec 14 14:44:04 write a j2me app Dec 14 14:44:14 <_abc_> pfn: Why is it good? I need to tinker with ancient phones to use BT Dec 14 14:44:25 <_abc_> Because they run J2ME Dec 14 14:44:54 <_abc_> The droid 3rd party to run J2ME is hooey. They basically translate the app into an apk on the fly, and get to keep the app you send them in the process. Dec 14 14:44:58 <_abc_> Not going to happen Dec 14 14:45:00 sarcasm goes undetected Dec 14 14:45:06 <_abc_> Dec 14 14:45:42 <_abc_> That being said, J2ME is about the most constrained programming environment barring WAP that I know of in like 25 years of coding on and off. Dec 14 14:48:43 cm isn't needed for anything as a developer Dec 14 14:49:10 well, toggling adb wifi, which is convenient, but not needed Dec 14 14:49:51 http://pastebin.com/JRJAyxzV Dec 14 14:50:34 can someone tell me how to determine why I cannot create a file there. Dec 14 14:51:29 Marshmallow permissions or emulator without external storage Dec 14 14:55:15 pfn: i'm showing SDCARD on my emulator, 9.5 KB used of 197 MB. i have not been prompted for file system access yet. i am using marshmallow Dec 14 14:55:35 then you need to request access Dec 14 14:55:45 you don't get prompted, you have to ask Dec 14 14:57:27 I'm not seeing my service accounts in google play developer console (for API access). Worked a couple of days ago, do someone know if it's a known issue or could help me verify if it is an actual issue? Dec 14 15:00:43 pislikler Dec 14 15:08:59 yo all Dec 14 15:09:06 android 4.X dont support ogg in html5 audio? Dec 14 15:10:14 Hi all, do you know if the toolchain has been ported to raspbian ? Dec 14 15:11:02 you could recompile it to be hosted on arm, but afaik google doens't provide such a thing Dec 14 15:11:44 even the rpi2 isn't really a very good platform for that, so I'd reconsider your plans personally, but it's doable if you build the toolchain from aosp yourself and change the build to be arm-hosted Dec 14 15:12:51 Ok, and do you know how the AIDE app did it, is it the same thing ? Dec 14 15:14:27 hello Dec 14 15:14:39 I am trying to find documentation on android - xml Dec 14 15:15:35 would someone help me in design? Dec 14 15:15:47 i'm blind can't design myself, so i'll need someone to help. Dec 14 15:15:51 personal app Dec 14 15:28:30 So I was in my project, and did file->new module->new android library Dec 14 15:28:40 I thought the library would be imported into my current project automatically? Dec 14 15:29:11 * DelphiWorld slap drose379 with a Galaxy Note 5 Dec 14 15:29:12 :P Dec 14 15:29:27 Do you know why? Dec 14 15:29:49 lol Dec 14 15:30:33 you need to add the module dependency to your project Dec 14 15:30:55 there's lots of times you won't want it added automatically Dec 14 15:31:11 Ok pfn, how do I do this? Dec 14 15:31:28 I tried google, one sec Dec 14 15:32:02 Think I got it pfn, thank you Dec 14 15:47:39 Does GcmNetworkManager deal in any way with duplicate scheduled tasks? Do i need to cancel a task specifically if I assume it could be running at that point before I start it again? Dec 14 15:56:23 Is it OK to have live analytics in your app, that just follows the users flow through the app, anonnymously Dec 14 15:57:10 having a strange problem with espresso, I have three consecutive calls to onData(..).inAdapterView(withId(some_id)).perform(click()), it seems that when it opens the spinner, it then thinks that the spinner frame is the new view hierarchy so it can't find any of the AdapterViews.. paste here illustrates what I mean: http://pastie.org/pastes/10632376/text Dec 14 16:26:46 holy shit, I have a weird bug, my click listener stops firing when my keyboard is showing, but starts firing again once it's closed Dec 14 16:30:31 easy way to make text size shrink to fit into textviews? Dec 14 16:30:41 there is no easy way Dec 14 16:30:47 have to use StaticLayout and calculate it Dec 14 16:32:29 lammmmeeeee Dec 14 16:32:41 ios has had it for a long time, i figured android would have it by now too Dec 14 16:32:42 :( Dec 14 16:32:47 is there a good lib for this? Dec 14 16:33:35 autoscaling text sucks Dec 14 16:33:45 why7 Dec 14 16:34:04 haha if you saw the design that was handed to me you would see why its necessary... what a fucking messs. Dec 14 16:34:12 yeah, that's exactly the reason Dec 14 16:34:15 "mobile designer"... more like web designer... Dec 14 16:34:17 it's used to paper over broken design Dec 14 16:34:28 hyperlinks Dec 14 16:34:38 all measurements in points Dec 14 16:34:50 and side by side textview/edit texts Dec 14 16:34:57 (each taking half the screen) Dec 14 16:35:11 i voiced my concerns but they ignored ... ) Dec 14 16:36:02 Could someone please tell me why I get this error ? It seems like this error comes when Gimbal is trying to make a notification to any of my screens and it is spawned from a service running in the background -> http://pastebin.com/aU8ykaWZ Dec 14 16:36:25 https://github.com/grantland/android-autofittextview Dec 14 16:36:27 seems nice Dec 14 16:38:42 cart_man, if you're using an intent service, you can't do that Dec 14 16:39:14 cart_man, you'll have to convert the workflow to a traditional service since intentservices drop dead as soon as they complete the workload Dec 14 16:39:24 dragorn: Why though? It is still alive eventhough the app isnt? Dec 14 16:39:35 dragorn: Ohhhh Dec 14 16:40:01 dragorn: Is making a normal service harder then an intentservice though? Dec 14 16:40:07 somewhat Dec 14 16:40:38 Would you help me maybe ? Dec 14 16:41:29 is data binding well accepted as something most developers use now? Basically I am wondering how well received it has been since it came out. Has is become more used than findViewById()-ing everything? Dec 14 16:41:48 Huh, I doubt a lot of people use it. Dec 14 16:42:34 Mavrik, you'd guess most people are still doing it the old way? Dec 14 16:42:56 I'm using databinding in my app and now I can't run AS Dec 14 16:43:10 has there been an update to gradle? Dec 14 16:43:24 it's complaining about plugin being out of date Dec 14 16:43:33 Do you use Joda on android, or something else? Dec 14 16:44:46 lexton, ah, still unstable to use huh? Dec 14 16:45:00 Would you recommend making the switch if the tools worked properly? Dec 14 16:46:35 truckcrash yes I would recommend it Dec 14 16:48:17 dragorn: sorry my connection is terrible Dec 14 16:50:36 I believe version 1.3.0 of gradle incorporated databinding into it Dec 14 16:50:58 I was able to run my code without having to import the separate databinding plugin Dec 14 16:53:37 Hello! I am developing library. I have 1 Fragment with recyclerveiw. I want to give user_developer options to customize recyclerview item text color, item background etc. I created attrs with color and reference attrs. How can i define default attr values which will applied if user-developer not specify them? Dec 14 16:54:22 Do i need create declare-styleable Dec 14 16:57:10 I was able to compile again with classpath 'com.android.tools.build:gradle:2.0.0-alpha3 Dec 14 16:57:19 the latest greatest? Dec 14 16:57:45 dragorn: Hey you still there? Dec 14 16:58:06 looks like I still need to upgrade to gradle 2.8 Dec 14 16:58:10 hmm, it's because of shouldInterceptTouchEvent... Dec 14 17:01:49 autrilla, there's a tiny android-focused version of it Dec 14 17:01:51 I've upgrade to latest gradle -> distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip Dec 14 17:02:00 autrilla, ThreeTensABP or something Dec 14 17:02:08 Mavrik: maybe java.util.Date is not so bad for my use case anyway Dec 14 17:02:19 can't google post docs with their updates that spells all of this out? Dec 14 17:02:32 I'd use jsr310 stuff pretty much anywhere, it's so much better and less error prone :/ Dec 14 17:02:55 What sort of context do I give if I want a Notifier to be able to work from all over the OS desktop? Dec 14 17:03:01 Mavrik: yeah well.. Dec 14 17:06:22 is it possible for a NDK library to determine the range of memory allocated for its .text section? Dec 14 17:07:01 hmm, it's just GCC or Clang anyway, so check if there's a cflag_ Dec 14 17:07:04 ? Dec 14 17:07:37 its in assembler Dec 14 17:09:17 hmm, think I found a bug in espresso. Anyone tried it with multiple AdapterViews before? Dec 14 17:10:36 probably only affects Spinners, actually Dec 14 17:11:14 I440r, it's more likely an ldflag, how do you link that code? Dec 14 17:11:26 using ld :) Dec 14 17:12:21 i might have found a solution Dec 14 17:12:43 not to the question but to the problem that brought it up :) Dec 14 17:14:48 yup fixed my bug lol Dec 14 17:17:00 oh, because of my touch intercept... meh Dec 14 17:20:33 \join Dec 14 17:23:15 hi, i'm using microsoft azure services lib for android to upload a file to the blob storage. When I pass the java.net.uri of my file to the lib, it crashes trying to access the getHost method of the Uri. Why would it tries to read the Host, knowing that it is the uri of a local file (an image) ? Dec 14 17:24:01 ask microsoft Dec 14 17:24:19 H3bus, you're passing the wrong URI Dec 14 17:24:56 there are two classes and the Java one is retarded and always tries to resolve the host Dec 14 17:25:04 (yes, the desktop JVM does that as well) Dec 14 17:25:12 pfn, how is a Java STL issue connected to microsoft? Dec 14 17:26:07 Mavrik, seeing as there's no stacktrace by which to go by, the assumption is it's a library problem Dec 14 17:26:11 H3bus, should it perhaps be android.net.Uri? Dec 14 17:26:40 Mavrik: no the library clearly require a java.net.uri as a parameter... Dec 14 17:26:55 "passing a URI to the lib" the latter being a microsoft library, I would most certainly not call it a stl issue Dec 14 17:27:10 pfn, then you don't know what you're talking about :) Dec 14 17:27:28 yeah, I definitely never know what I'm talking about Dec 14 17:28:28 to illustrate the problem with multiple Spinners when instrumentation testing with Espresso, I've created a github repository of a basic test case.. any thoughts? https://github.com/storkme/TestApplication Dec 14 17:28:30 should provide a stacktrace and documentation link or sample code. otherwise this is just an annoying guessing game. Dec 14 17:29:04 pfn, https://corner.squareup.com/2015/05/okhttp-2-4.html Dec 14 17:29:29 "never" is a word you added. :) Dec 14 17:29:45 H3bus, which call are you trying to do? Dec 14 17:29:45 novak: was that at me? I did provide sample code Dec 14 17:29:57 and yes, novak has a point, do pastebin your code. Dec 14 17:30:22 storkme: no, that was not towards you. Dec 14 17:30:41 Mavrik: is github no good? Dec 14 17:30:54 Mavrik, still a totally inapplicable comment regarding what H3bus was asking Dec 14 17:31:04 the problem isn't stl URL/URI Dec 14 17:31:42 Mavrik: here is the path to the lib : https://github.com/Azure/azure-storage-android. I will paste my code in a minute, as soon as intellij behaves Dec 14 17:36:01 Mavrik: here is my code : http://pastebin.com/dcVgkfmR Dec 14 17:37:21 presumably, CloudBlockBlob does not support local files Dec 14 17:38:12 +1 Dec 14 17:38:21 and once again, not an issue with the stl Dec 14 17:38:26 I never know what I'm talking about Dec 14 17:38:41 pfn, it does. Dec 14 17:38:55 So slowly stfu please? :) Dec 14 17:39:33 H3bus: please pastebin the stacktrace and the uri you are passing. Dec 14 17:39:48 H3bus, thing is, you're passing in URI to the local file where should be a remote reference Dec 14 17:40:01 basically he took File.toURI Dec 14 17:40:01 the local file is passed into the Uploadfromfile. Dec 14 17:40:20 see https://azure.microsoft.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/ Dec 14 17:40:57 Mavrik: I think i see where you are going with this Dec 14 17:41:08 filed a bug in the AOSP issue tracker, I don't think it's possible for me to mark it as a support library bug though: https://code.google.com/p/android/issues/detail?id=197057 Dec 14 17:41:50 H3bus, so you first grab a reference from your container which gives you that object and then use the upload call to upload data to it. Dec 14 17:42:18 Mavrik, "it does" support a local URI? -- no Dec 14 17:42:35 but whatever, good job jumping the gun on me, you were clearly right Dec 14 17:43:05 pfn, you're just contributing noise because you don't know the fuck what you're talking about or what he even does. Go away. Dec 14 17:43:23 Go do your insulting ego building stuff to reddit or something. Dec 14 17:44:41 says the person posting a completely irrelevant link to okhttp URL Dec 14 17:45:04 question: I have a list, with ImageViews, being populated by Picasso, and containing views colored by Palette using a PaletteTransformation pattern. on tap, those rows launch an Activity, which I want to display the same image and use the same Palette colors for accents. how would you guys approach that in order to not make extraneous Palette and Picasso calls? Dec 14 17:45:20 * drinfernoo high fives Mavrik Dec 14 17:46:04 noise and being wrong while trying to be holier than thou is awesome Dec 14 17:46:46 Mavrik: okay I got it I was completly wrong on how I was doing it. The question now is how do I get a reference to my container Dec 14 17:47:11 *shrug* :) Dec 14 17:47:39 H3bus, the article I posted looks kinda straightforward, try that? Dec 14 17:48:19 drinfernoo, I'd probably stuff the bitmap + palette into the tag of an imageview Dec 14 17:48:35 Mavrik: yeah you're right, sorry, thanks for your help, saved my life ! Dec 14 17:48:49 then how would i get it to the activity? Dec 14 17:50:23 right now, im calling picasso (and generating a palette) on each row of my main grid view, then again for the image view in the activity, and then again on each row of a list in the activity Dec 14 17:50:43 not only is it slow, but it doesnt update async very well Dec 14 17:51:45 would it make sense to store in the model? because i just pass that to the activity Dec 14 17:52:08 why a palette for every image Dec 14 17:52:23 ugh, why am I even bothering Dec 14 17:52:30 <_abc_> Normally a portable apk need only contain the Dalvik code, right? The .dex file besides manifest and so on? No lib/ ? Dec 14 17:52:47 _abc_, portable? but yeah, apk are self-contained Dec 14 17:53:00 other than resources Dec 14 17:53:19 pfn, thats why i asked Dec 14 17:53:38 what would be a better way to do it? Dec 14 17:53:44 I mean, why am I bothering with you if you feel the urge to high five Mavrik, -> blacklisted Dec 14 17:54:04 pfn is an ass, don’t worry about him Dec 14 17:54:04 <_abc_> pfn: I mean, if compiled 'generic' for no particular abi, then there should be nothing under lib, but only a dex files and resources, manifest, etc? Correct? Dec 14 17:54:18 _abc_, yes Dec 14 17:54:53 drinfernoo: Why do you need so many palletes? Dec 14 17:55:01 <_abc_> .odex = object (relocatable ?) .dex? Dec 14 17:55:02 to ship stuff home Dec 14 17:55:04 why else Dec 14 17:55:12 <_abc_> Ah optimized Dec 14 17:55:44 Hey how can I see if a service has already started so that I do not start it up again when I start the app Dec 14 17:55:53 <_abc_> Is there a serious performance penalty when using .dex instead of native abi compiled apps? Dec 14 17:55:59 no Dec 14 17:56:04 <_abc_> Defined as running half as fast or such? Dec 14 17:56:08 no Dec 14 17:56:09 no Dec 14 17:56:11 <_abc_> ok Dec 14 17:56:26 odex is done automatically anyway Dec 14 17:56:30 99% of apps you’re running on android are Java apps run with dex or art Dec 14 17:56:33 <_abc_> And the emu works well with .dex? iirc it requires an abi to be selected? Dec 14 17:56:50 yes, it’s fine Dec 14 17:57:00 the abi only matters for native code Dec 14 17:57:05 s73v3r, my main view is a grid view with elements styled based on the image, and the detail activity should have the same Palette for its elements Dec 14 17:57:07 <_abc_> Hmm then why does studio force me to select an abi when building an apk? Dec 14 17:57:13 it doesn't Dec 14 17:57:28 although the existing one is kinda slow and crappy. Emulator 2.0 is better, but is still in develop mode Dec 14 17:57:36 <_abc_> It did last time for some reason. I had no abis installed and it refused to work Dec 14 17:57:55 it forces you to pick an abi for building an avd Dec 14 17:57:58 <_abc_> I tried to be clever and not install the abis to save space on my already full disks. Dec 14 17:58:10 <_abc_> pfn: Ah? And that is different from what I said? Dec 14 17:58:22 an avd is an emulator image Dec 14 17:58:35 <_abc_> I realize that but why is there no dex running emu... Dec 14 17:58:37 and to run an emulator, you have to have an abi... Dec 14 17:58:40 <_abc_> Or is there. Dec 14 17:58:46 an emulator is a VM Dec 14 17:58:49 you can't run a VM without the OS Dec 14 17:58:59 <_abc_> Hmm makes sense. Dec 14 17:59:00 an OS must run on a particular ABI Dec 14 17:59:11 <_abc_> Well you can pretend to be a proper OS up to a point. Think wine. Dec 14 17:59:14 <_abc_> Just a sec brb Dec 14 17:59:20 yeah, but google didn't care to do that Dec 14 17:59:26 drinfernoo: And each grid item has to be different? Dec 14 17:59:42 <_abc_> s73v3r: any hope of bluetooth coming in the v2.0 emu you alluded to? Dec 14 17:59:42 cart_man, services are singletons, so it doesn't really matter. Dec 14 17:59:45 that was my plan ;) Dec 14 18:00:21 _abc_: It’s supposed to be there, as long as your computer has bluetooth, I think. It’s probably not done yet Dec 14 18:00:31 <_abc_> Sigh. Dec 14 18:00:47 drinfernoo: Palette is expensive. Dec 14 18:01:01 <_abc_> The NetBeans J2ME env has bluetooth on the emu, without using the host's. It can be used but need not be. Dec 14 18:01:04 Mavrik: Ohh ok awesome news ! YAY! Dec 14 18:01:10 Mavrik: Brb Dec 14 18:02:25 <_abc_> Dan Bernstein who wrote Dalvik is the guy with the email system, right? Dec 14 18:02:36 _abc_: I don’t see how that’s possible, considering the host would have to have bluetooth in order for the guest to be able to use bluetooth Dec 14 18:03:11 <_abc_> s73v3r: there's an abstracted bt stack in the emu and emu instances can see each other and talk to each other in emu bt mode. Dec 14 18:03:20 <_abc_> s73v3r: which is unrelated to hw bt Dec 14 18:03:30 <_abc_> s73v3r: iirc there is a way to use the hw too Dec 14 18:03:51 _abc_ yeah i was thinking of a way to do something like that also Dec 14 18:03:54 I imagine most cases of wanting to use bt are in connecting with bluetooth devices, not just other emulator instances Dec 14 18:04:04 <_abc_> s73v3r: there's also an abstracted cell network and wifi mockup tcpip too Dec 14 18:04:14 google said they were working on BT support in the emus a few years back, but never delivered Dec 14 18:04:41 <_abc_> s73v3r: there are default emulator devices for various things like headesets etc and there used to be plugins. So you could have a gps mouse or whatever in the system Dec 14 18:05:52 <_abc_> Apparently (and in fact it hit me irl) the differences between the emu bt which is standards compliant and the real life bt in devices is large enough that emu only development is not going to end well Dec 14 18:06:17 <_abc_> I had umpteen hours buried into tracing various exceptions in devices which never happened in the emu Dec 14 18:06:19 I'm following a tutorial online. It talks about fragments. I have to overload the onCreate method but it seems that this method is not available in the Fragment superclass (v4.app.Fragment). Whats the workaround? Dec 14 18:07:13 onCreate must be available :) Dec 14 18:07:23 billaman: it is there Dec 14 18:07:35 _abc_ sure but it gets you off the ground w/o devices. green path scenarios should work. i hear game devs write for iOS first, debug their gaming logic there, and then port to Android later so its clear what is there bug vs android bug Dec 14 18:07:50 *their Dec 14 18:08:35 I don't know then. something wrong with IntelliJ. I'm using Ctrl+O and its not there in the list. Thanks though. Dec 14 18:08:41 but yeah, in the case of BLE i had to make so many adjustments, the green path scenario wouldn't have worked most of the time. so there's that Dec 14 18:09:17 it wouldn’t be there if you’ve already overridden it Dec 14 18:16:54 s73v3r, imagine something like this: /msg NickServ VERIFY REGISTER dr_infernoo jqaolhdgshtk Dec 14 18:16:58 haha whoops Dec 14 18:17:05 http://4.bp.blogspot.com/-qX9XNcFEQlQ/VEngSGP2ZyI/AAAAAAAAA6E/PbORZ-3ex-Y/s1600/palette2.gif Dec 14 18:17:12 God, the 2014 moto x on Verizon sucks Dec 14 18:17:25 still can't do voice.and data at the same. time Dec 14 18:17:37 <_abc_> g00s: I am not yet using BLE. Plain BT. Dec 14 18:17:56 pfn stop complaining Dec 14 18:18:10 <_abc_> dr_infernoo: sounds like it's time to a) clear the clipboard b) change password Dec 14 18:18:35 yeah lol that doesnt have my pw, and its my alt nick anyway Dec 14 18:18:47 <_abc_> pfn: Does it not depend on your carrier? Dec 14 18:19:05 <_abc_> pfn: Some carriers will severely limit what you can do in some areas. Dec 14 18:19:18 <_abc_> pfn: And voice has priority over data normally. Dec 14 18:20:32 _abc_ i noticed once google switched from bluez to bluedroid, classic BT destabilized as well Dec 14 18:21:03 somebody at dev summit said something about rumors switching back to bluez - i thought they left it b/c licensing issues Dec 14 18:21:20 <_abc_> g00s: when was this? I still have bluez somewhere I forget. Dec 14 18:21:38 bluedroid popped up in 4.2 Dec 14 18:21:41 BLE 4.3 Dec 14 18:26:39 <_abc_> What's the current adb version please? Dec 14 18:26:56 <_abc_> I ended up with an old adb in the path somehow. Dec 14 18:27:30 <_abc_> No trace of how it got there, probably copied it in from somewhere while debugging something more than a year ago... unix is wonderful like that. No mistakes will be lost ... Dec 14 18:28:07 <_abc_> Deleted it. Fingers crossed. Dec 14 18:28:50 _abc_, http://prntscr.com/9e50yh Dec 14 18:29:54 <_abc_> Thanks. The one I nuked was .29 not too old. Dec 14 18:31:26 _abc_, no, it's broken hardware Dec 14 18:31:36 they should both work Dec 14 18:32:25 <_abc_> I don't have all the rest, the devel env etc. Just the adb binary. Weird. Dec 14 18:32:42 <_abc_> Not on this machine. And I don't remember why I needed it. Dec 14 18:33:51 I guess I need to buy a nexus 5x Dec 14 18:33:55 and ditch the pos moto x Dec 14 18:36:14 Hi guys! I have some project I haven't opened for a couple of months. Today I opened it to find out I can't compile it due to "Error:Execution failed for task ':app:transformClassesWithDexForDebug'. Dec 14 18:36:15 > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_11\bin\java.exe'' finished with non-zero exit value 2" Two months ago I had same error and then it turned out it was some trobles with "com.google.android.gms:play-services-gcm" dependency. Back then I updated the version of GMS lib in build.gradle, Dec 14 18:36:15 rebuilt the project and everything became fine. But now I have this error agaib but this time it's not gms for sure because I've tested it with the newly created project and it (gms) doesn't cause such a problem there. Dec 14 18:37:13 Can anybody explain me what else might cause an exception on ":app:transformClassesWithDexForDebug" Dec 14 18:38:24 Does anybody know where I can get some more info on Gimbal SDK? Dec 14 18:43:12 AlexBerdnikov, you need the full error that is logged before that Dec 14 18:43:21 AlexBerdnikov, that explains what the problem is Dec 14 18:46:12 AlexBerdnikov, if you cannot find that log in android studio, you can gradlew assemble and pastebin the log that you get from the command line Dec 14 18:47:11 pfn: here it is: http://pastebin.com/uPKZaDJg But how I supposed to know which exact library is using the same declaration as some another one? Dec 14 18:47:55 AlexBerdnikov, usually because you're using old libraries, like actionbarsherlock, or viewpagerindicator, etc. Dec 14 18:48:18 Yes, I use viewpagerindicator Dec 14 18:48:54 then you need to exclude the android-support-v4 library that it includes Dec 14 18:49:08 or don't use viewpagerindicator Dec 14 18:52:32 pfn, but it did compile ok before. I wouldn't even know it's broken now if my client didn't ask for some new feature in this app I he already released... Dec 14 18:52:52 pfn: anyway, I've just excluded it an it didn't help :( Dec 14 18:52:52 ./gradlew dependencies Dec 14 18:53:06 find . -name '*android-support*' Dec 14 19:02:45 pfn: ./gradlew dependencies shows empty output for dependencies. http://pastebin.com/5rHCafGy Dec 14 19:03:04 Which is weird TBH Dec 14 19:07:47 AlexBerdnikov, app:dependencies Dec 14 19:09:03 I'm building my first android app and the generated gradle file doesn't seem to work. Any idea what's wrong? http://pastebin.com/eE0QJMfL Dec 14 19:11:08 kommunicate, line 110 Dec 14 19:11:12 failed to movce file Dec 14 19:11:17 could be a permission problem Dec 14 19:12:15 pfn: Thank you. Don't you mind to look at that outuput? I honestly don't see where there might be a conflict Dec 14 19:13:00 hm.. interesting, thanks Dec 14 19:13:37 that was weird, rerunning fixed it Dec 14 19:14:58 pfn: If you don't, here it is http://pastebin.com/D9UjYSQ8 But thank you for showing me where to look anyway Dec 14 19:19:07 AlexBerdnikov, it's still likely viewpagerindicator if the aar bundles the support jar Dec 14 19:20:16 pfn: hmmm... but I clearly excluded it from there http://pastebin.com/kmCXAvi9 Dec 14 19:20:39 There's my dependencies block in build.gradle Dec 14 19:21:09 AlexBerdnikov, that doesn't help if the aar includes the jar file internally Dec 14 19:21:35 sd Dec 14 19:21:45 AlexBerdnikov, you shouldn't be using viewpagerindicator in any case Dec 14 19:22:46 pfn: but it worked like 2 months ago :) I worked for 6 months on that project, I mean, how could it break? None of those libs were changes or something Dec 14 19:22:57 * pfn shrugs Dec 14 19:23:02 change in gradle version Dec 14 19:23:08 someone re-published the aar and broke it Dec 14 19:23:20 plenty of reasons Dec 14 19:23:20 pfn: BTW why I shouldn't use viewpagerindicator? Dec 14 19:23:27 because it's unsupported Dec 14 19:23:39 and hasn't been updated to modern libraries Dec 14 19:23:51 AlexBerdnikov, i would double check all your dependencies to make sure theyre all being downloaded correctly as well Dec 14 19:23:56 and because JakeWharton says so, and he wrote it Dec 14 19:24:08 pfn: what would you suggest to use instead? Dec 14 19:24:22 depends on your needs, tablayout, pagertitlestrip, pagertabstrip, etc. Dec 14 19:25:21 If it has been 3 years since the last commit, you probably shouldn't use that library Dec 14 19:25:58 Unless you intend to maintain it yourself Dec 14 19:26:02 Mavrik, you mentioned setting image/palette data as a tag Dec 14 19:26:03 pfn: I see. Thank you for the help very much! Dec 14 19:26:20 SimonVT: thank you for advice Dec 14 19:26:26 how would i go about sending that to my activity, if the image view is in a viewholder? Dec 14 19:27:13 dr_infernoo, you want to start a new activity with that data? Dec 14 19:27:23 yeah Dec 14 19:27:49 a "detail" activity Dec 14 19:28:00 so... typical android cameras don't support burst mode? Dec 14 19:28:07 or is it just my s6? Dec 14 19:28:36 dr_infernoo, I'd probably use some kind of singleton cache object to which activity A would push the bitmap/palette in and the activity B could retrieve it without parcelation Dec 14 19:28:53 if you use an image cache already you can just pass the image name and load it from cache Dec 14 19:29:42 i think i use Picasso as an image cache? lol Dec 14 19:35:05 hi, so I'm having trouble with my custom AdMob adapter only when proguard is in use Dec 14 19:35:58 AdMob takes a string for custom adapters for various ad networks in their webapp mediation settings, so presumably it needs those class names to remain with all the methods and whatnot unmolested by proguard Dec 14 19:36:57 I'm not super familiar with proguards syntax, but seemingly something like -keep public mycustom.package.** { *;} should do it? Dec 14 19:39:42 bfrog, did you add the admob proguard settings to your app? Dec 14 19:40:00 its -keep class com.google.ads.** Dec 14 19:40:39 + additional settings for any other ad network sdks you add (most of them provide some settings on their website) Dec 14 19:53:15 can toasts be triggered when an app is in the background? Dec 14 19:53:57 yes Dec 14 19:54:33 pfn: they can?? Dec 14 19:54:46 but they wont be showed to the user until the app resumes though, right? Dec 14 19:54:53 of course, if you have a Context, you can show toasts Dec 14 19:55:07 jeremiedenoob, they will be showed when outside of the app Dec 14 19:55:15 thats why google suggests to use snackbars Dec 14 19:55:29 oh rly... thats pretty shocking Dec 14 19:55:33 eh, not really Dec 14 19:55:36 toasts are pretty useless Dec 14 19:55:41 it can be an annoyance at worst Dec 14 19:55:54 ah no I did not Dec 14 19:55:57 can't really advertise using toasts, so all you can do is annoy your users Dec 14 19:56:11 lol well you could Dec 14 19:56:16 right, I'm working on my own ad network, so I'll take a closer look Dec 14 19:56:18 if you can show them when the user is in other apps Dec 14 19:56:19 you can't Dec 14 19:56:19 danijoo_: thanks! Dec 14 19:56:25 its 2015, use snackbars :p Dec 14 19:56:43 i thought you just said u could show toasts outside the app? Dec 14 19:57:07 jeremiedenoob, if you close an activity, this doesnt make the toast dissapear Dec 14 19:58:29 and i think you can start them while your app is only paused/stopped since you have access to the context Dec 14 19:58:47 snackbars are not a replacement for toasts Dec 14 19:58:56 squirrel, they are. Dec 14 19:59:01 no Dec 14 19:59:04 they’re toast++ Dec 14 19:59:06 yeah but im dont think they would show if you triggered it after the app is in bg Dec 14 19:59:25 i agree, snackbars are in deed a replacement for toasts. Dec 14 19:59:29 even the guidelines say to use snackbars for toasts Dec 14 19:59:40 and that toasts should primary be used for system apps Dec 14 19:59:53 ok, show toasts when users long-tap buttons to see the tooltip Dec 14 20:00:00 do that Dec 14 20:00:30 i wouldnt use toasts nor snackbars for that squirrel .. Dec 14 20:00:40 android uses toasts for that. Dec 14 20:00:47 in every app. Dec 14 20:00:51 where? Dec 14 20:01:01 in just about EVERY app Dec 14 20:01:31 name an instance of it happening Dec 14 20:01:34 I cant think of one. can you please show me an example Dec 14 20:01:35 i just tried in Gmail, and nope Dec 14 20:01:52 are you sure you arent mistaking toasts with popup views? Dec 14 20:02:01 open gmaill, long press the magnifying glass button, see toast Dec 14 20:02:12 thats not a toast Dec 14 20:02:18 that is a toast Dec 14 20:02:22 no its not. Dec 14 20:02:29 it’s not a toast, but it’s stylistically the same Dec 14 20:02:29 it is Dec 14 20:02:40 look at the source of the support library Dec 14 20:03:04 They didn’t to Toast.MakeToast() like you would to make a toast, but they made it look the same. You can’t position a toast like they did Dec 14 20:03:17 also, there are several buttons in Gmail where that doesn’t work. Reply, for instance Dec 14 20:03:21 it might reuse the look and maybe actually some code of it Dec 14 20:03:30 but its not the toast in the context we mean toast Dec 14 20:03:37 it’s close enough to being a toast Dec 14 20:03:43 like the toasts you can instantiate in the middle of the screen Dec 14 20:03:57 look at the source of the support library Dec 14 20:03:58 squirrel i long clicked on gmail magnifying glass, and didn't see anything at all Dec 14 20:04:14 point us to what you want us to look at Dec 14 20:04:14 yeah its close enough at a toast to do some quibbling :p Dec 14 20:04:30 i’m not gonna go look through the whole damn support library because you claimed something Dec 14 20:04:54 http://prntscr.com/9e6h5j you mean that, right? Dec 14 20:05:10 where it says ¨today¨ because i longclicked calendar Dec 14 20:05:34 danijoo_ how did you do that ? Dec 14 20:05:48 g00s, its the tooltip that appears if you longpress a menu icn Dec 14 20:06:23 * g00s googles toolbar tooltips Dec 14 20:06:32 also note that these things appear different on different android versions Dec 14 20:06:35 basically the text you define as menu button text when the icon doesnt fit Dec 14 20:06:54 its no toast in the definition of a toast. Dec 14 20:06:55 besides a "toast" is a design thing, not even necessarily a class Dec 14 20:07:39 99% of the time, when someone says “toast”, they’re referring to the Toast class Dec 14 20:07:45 https://android.googlesource.com/platform/frameworks/support/+/master/v7/appcompat/src/android/support/v7/view/menu/ActionMenuItemView.java#250 Dec 14 20:07:48 Dec 14 20:08:23 thank mr simon Dec 14 20:08:33 they reused toast for it, yes. Dec 14 20:08:41 but its not what you usually mean if you say toast Dec 14 20:09:37 a toast is a message that appears on screen overlaying other elements. Dec 14 20:09:40 the toast is getting burned Dec 14 20:09:41 toasts have no buttons. Dec 14 20:10:00 squirrel, with this definition a buttonless dialog is also a toast Dec 14 20:10:03 snackbar shifts other elements. snackbars can have buttons. Dec 14 20:10:18 dialog draws focus. A toast doesn't Dec 14 20:10:38 toasts are click-through Dec 14 20:10:52 i can't see how you don't see that they are very different Dec 14 20:11:08 * squirrel squirrels away all the lovely toasts Dec 14 20:11:31 you can’t click on a toast Dec 14 20:11:49 anonymous inner class for Runnables..... Does everyone really use a static WeakReference class to avoid the leak? Dec 14 20:12:04 Nop. Dec 14 20:12:13 No… some people don’t care about leaking :p Dec 14 20:12:28 all i wanted to say is that where we used toasts in the past to show small messaged Dec 14 20:12:33 is that really the proper solution though Dec 14 20:12:38 with Toast.makeText(..) .show() Dec 14 20:12:43 google now suggests to use snackbars Dec 14 20:12:47 thats all Dec 14 20:13:08 in some situations. not all Dec 14 20:13:12 most Dec 14 20:13:42 ofc its not an options if its part of closing an activity for example Dec 14 20:13:57 like ¨draft saved¨ if user goes back from writing a mail Dec 14 20:14:06 seems so silly to make this whole static WeakRunnable class when you are just modifying a few UI elements. Runnable is pretty unlikely to live longer than enclosing class Dec 14 20:14:38 g1bbs: you don’t have any guarantee of that, though Dec 14 20:14:47 hello Dec 14 20:15:09 s73v3r: so in practice of say - posting a Runnable to UI looper you always use this method? Dec 14 20:15:39 I tend not to do that Dec 14 20:15:52 but when I have to, yes Dec 14 20:16:10 there is no guarantee that your Activity will still be there when the runnable runs Dec 14 20:16:14 sekrit: meh issue I'm having is receiving otto events on background thread and wanting to modify the UI from subscribers Dec 14 20:16:24 s73v3r: not sekrit Dec 14 20:16:35 s73v3r, if you post it to the main looper then of course the activity is there :) Dec 14 20:16:41 how can I change the colour for the action buttons in an alert dialog using a style? Dec 14 20:17:27 dunkel2: you can set the accent color of your style Dec 14 20:17:37 dunkel2, or use tint Dec 14 20:17:41 let me try Dec 14 20:19:17 truckcrash: not working i tried it also the normalcontrol and nothing works Dec 14 20:19:55 hmm im reading on stack here... is it correct that theres no way before api 21 to set the color of the text in the actionbar to whatver you want? Dec 14 20:19:57 im doing this: new AlertDialog Dec 14 20:20:16 http://stackoverflow.com/questions/27839105/android-lollipop-change-navigation-bar-color Dec 14 20:20:17 dunkel2, ah, actually I misread your question. sorry. tint is for drawables Dec 14 20:20:22 textcolorprimary doesnt seem to work for me Dec 14 20:20:45 new AlertDialog(new ContextThemeWrapper(getActivity(), R.style.mytheme)) Dec 14 20:20:53 jeremiedenoob, are you using the support library? Dec 14 20:21:21 maybe not... Dec 14 20:21:26 let me double check Dec 14 20:21:34 the maybe dont remove android: Dec 14 20:21:41 andoird:tint not working either Dec 14 20:21:41 from the items Dec 14 20:22:56 how do i know if i am using supportlib? my activity extends appcompat... Dec 14 20:23:50 did you add supportlib into your gradle file? Dec 14 20:24:12 jeremiedenoob, you are using support lib then Dec 14 20:24:13 no i dont have it there Dec 14 20:24:15 remove the andorid: Dec 14 20:24:32 if you use AppCompatActivity it must be there Dec 14 20:24:34 lol something is contradictory Dec 14 20:24:40 or it wouldnt work Dec 14 20:24:48 go look through your gradle dependencies Dec 14 20:24:50 compile 'com.android.support:design:23.1.0' ? Dec 14 20:24:58 thats one of them yes Dec 14 20:25:08 thats the only one I see there thats related Dec 14 20:25:30 jeremiedenoob, replace `android:textColorPrimary` with just `textColorPrimary` Dec 14 20:25:37 truckcrash: also i set a list of items and how do i change the text colour for that? i trid the primarytextcolor and nothing happens Dec 14 20:26:33 danijoo_: "no resources found that matches the givven name textColorPrimary" Dec 14 20:27:41 did this project ever compile? Dec 14 20:28:04 yes Dec 14 20:28:08 (right before ) Dec 14 20:28:32 (and after, ui just rechecked to make sure Dec 14 20:28:44 ** I just rechecked... Dec 14 20:30:52 http://stackoverflow.com/a/26871541/783198 Dec 14 20:30:54 this worked Dec 14 20:31:07 I really dont understand android sometimes Dec 14 20:33:08 s/sometimes// Dec 14 20:33:15 android:textColorPrimary is a platform attribute, and has always been there Dec 14 20:33:21 so you wouldn't use "just" textColorPrimary Dec 14 20:33:23 android: attribute are defined in the framework, non-android: attributes are defined in your app or one of your dependencies Dec 14 20:34:42 BUT, this is the but, if you're using appcompat-v7, and any attributes in platform are defined AFTER api 7, then you will need to use the attribute without the android: prefix Dec 14 20:35:20 and *appcompat* will provide the attribute for you Dec 14 20:35:46 #things you dont have to worry about on ios Dec 14 20:36:03 the only thing android kills ios on is the layouts Dec 14 20:36:21 jeremiedenoob: you mean because we don't need a magical UI builder to make them? :P Dec 14 20:36:24 (although ios has gotten a lot better in the last 2 years at this) Dec 14 20:36:55 well the ui builder in ios is very unintuitive... specially when you start messign with scrollviews Dec 14 20:37:08 where as android your just like hey heres some stuff. make sure the user can see it all Dec 14 20:37:12 and android just sorts it out Dec 14 20:38:41 what do you guys use for rest calls? I used retrofit 2.0 and I quite like it Dec 14 20:38:59 retrofit 1.x Dec 14 20:39:22 2.x represent Dec 14 20:40:44 jeremiedenoob, yes, there is some complexity here, and ios makes it easy by mostly being homogeneous on platform versions Dec 14 20:41:13 yeah, which is a HUGE problem with android Dec 14 20:41:42 (and one of the many reasons why users get shittier experiences, when you add this to the lack of checking on adnrdoids part before publishing , its a mess) Dec 14 20:41:43 it's not a huge problem, there's some complexity, the huge problem is oems that change stuff they shouldn't Dec 14 20:42:11 although the checking is also a huge problem in ios, cuz there are always delays and its hard to push hot fixes. (which also is a good thing and teaches you to test better) Dec 14 20:42:16 love hate, love hate. Dec 14 20:42:29 yeah Dec 14 20:42:34 i stand corrected Dec 14 20:42:40 i agree with what you said about the oems Dec 14 20:42:45 that is the problem Dec 14 20:42:53 and its even some of the large ones that do it too which is a huge pain. Dec 14 20:43:11 how do i make an app only have a landscape layout and not crash in portrait? Dec 14 20:43:41 You can declare that in the manifect I440r Dec 14 20:43:44 specially if you are working with something complex. (I did a project that was communicating over the usb to install firmware on remote car starters, it was a bitch) Dec 14 20:43:56 aha Dec 14 20:44:02 duh i shud have remembered that lol ty Dec 14 20:44:13 android:screenOrientation="landscape" I440r Dec 14 20:44:21 put that on all your activities and you will be fine Dec 14 20:44:35 And murdered by your users. Dec 14 20:44:37 yea ty Dec 14 20:44:50 maybe that too lol Dec 14 20:44:51 lol @Mavrik agreed but thats not my call Dec 14 20:45:12 but its a game and the landscape layout gives me a better interface Dec 14 20:45:21 landscape is completely okay for games Dec 14 20:45:29 yeah I'd never complain about a landscape game Dec 14 20:45:31 true Dec 14 20:45:36 (i think thats the only case where an app can force eveyrthing landscape without people being pissy) Dec 14 20:45:59 otherwise though fuck that. its funny when orientation first came out everyone made all their apps in multiple orientations, like it was so cool and cutting edge Dec 14 20:46:19 now its just a pain, and the only time its useful is for texting with a larger keyboard, watching movies, and playing games. Dec 14 20:47:10 Except you know. Dec 14 20:47:20 Bunch of devices that have landscape as default mode. Dec 14 20:47:41 Which makes locking apps to portrait mode completely annoying. Dec 14 20:51:54 Is there any reason why ActivityCompat.requestPermissions takes a request code that can only be an 8 bit value? Dec 14 20:52:32 eghdk, where does it say that? Dec 14 20:52:38 its a normal int, isnt it? Dec 14 20:53:48 Mavrik, can you name one of those devices? Dec 14 20:54:07 danijoo_, majority of tablets Dec 14 20:54:13 im curious what vendor does that.. Dec 14 20:54:15 >7" all default to landscape mode Dec 14 20:54:23 7" are commonly used in lanscape as well Dec 14 20:54:24 ah yes. I thought you are refering to phones Dec 14 20:54:29 Phablet phones as well. Dec 14 20:54:36 really? didnt know that Dec 14 20:54:41 Since landscape makes things easier to read commonly. Dec 14 20:54:55 But it's especially annoying on large tablets. Dec 14 20:55:18 Apps like Authy which can't manage to center a textview in landscape mode or something. Dec 14 20:55:22 yeah.. especially when the portrait gui is just streching in this case. Dec 14 20:56:05 Mhm, it's annoying because when you switch apps it demands that you rotate the device to use it Dec 14 20:56:35 eghdk: It's like with startActivityForResult, some of the requestCode is used for when the result needs to be dispatched to a fragment Dec 14 20:57:10 hmm.. seems like emulator 2.0 has settings for all network modes but you cant enable wifi :/ Dec 14 20:57:56 I hope they add that Dec 14 20:59:14 danijoo_: and SimonVT idk if there's any best practice. But usually for activity resulsts I've been using numbers like 1000, and 2000. I tried that for permissions result and it failed. Dec 14 20:59:48 Facing weird issue. Is there any reason why this would happen? http://hastebin.com/etuboyiyib.java Dec 14 21:00:11 eghdk, did it tell you to use a smaller number or what? Dec 14 21:01:43 danijoo_: Yeah, it told me to use an 8 bit number. so 0 to 255. But I'm kinda just curious if theres any reason behind it. Dec 14 21:01:59 because for activity result, I guess I can use up to a 16 bit? Dec 14 21:02:11 hm. strange design decision. Dec 14 21:02:35 maybe its cast to a short internally, dunno.. Dec 14 21:02:37 danijoo_: Okay. So not just me. Dec 14 21:02:42 Not very many need to request 255 permissions Dec 14 21:02:45 or byte. Dec 14 21:02:58 SimonVT, same is true for requestCode though Dec 14 21:03:18 SimonVT: "startActivityForResult, some of the requestCode is used for when the result needs to be dispatched to a fragment" do you mean dispatched to an Activity? Dec 14 21:03:33 No Dec 14 21:04:24 Way more allocations when multiplying a float by int on incoming sensor values, more compared to not multiplying Dec 14 21:04:27 how :/ Dec 14 21:04:37 The result is always received by an Activity, but it might be requested by a Fragment Dec 14 21:10:36 Any idea why adb pm revoke com.eghdk.dialer CALL_PHONE doesn't work? it just gives me a man on adb pm it seems like Dec 14 21:12:44 adb shell pm? Dec 14 21:12:54 ^^ Dec 14 21:19:05 Mavrik: Yeah. Damn dev byte video code snippets foil me again! Dec 14 21:20:52 TIL you can theme IntelliJ beyond the editor Dec 14 21:30:16 Is there a good way to do localization for libraries that don’t already have localized copies of resources? Dec 14 21:31:19 what's the best way to add a contact to the phone? contactsProvider ? Dec 14 21:31:40 I want to depend on play_expansion and play_licensing from the sdk extras. they have a few strings but not localized versions. Dec 14 21:34:21 I kept hearing that requesting permissions is Asynchornous. Any reason why that is? Dec 14 21:35:18 Hello! I have library with Fragment. In this fragment i have TextView. I want to let user of my library to customize textColor of this TextView. At the same time i want to setup default color. I created attr "custom_color" format - color. Then i created style "MyTextView" with TextAppearance as parent. In this style i defined default value for color as a link to color resource. So when in... Dec 14 21:35:20 ...client application in theme i define this attribute - everything ok, but when do not his, relaying on default value - I get runtime exception Dec 14 21:35:21 android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): TypedValue{t=0x2/d=0x7f010000 a=-1} Dec 14 21:35:43 eghdk, you need to wait for user interaction and cant stop the ui thread code at a point to wait for their click Dec 14 21:35:45 eghdk: so your app can still do stuff while asking for permisssions Dec 14 21:36:32 So is checkSelfPermission or requestPermission async? Dec 14 21:36:58 in layout of my fragment i set style MyTextView to TextView and android:textColor="?attr/custom_color" Dec 14 21:40:35 i’m trying to implement a “download over wifi only” setting in my app and i’m having some difficulties Dec 14 21:41:15 it’s easy enough to say “hey user, you have this set and you aren’t of wifi, go to your settings”, but it’s harder when detecting network switches *while* downloads are going, in order to cancel or refresh them Dec 14 21:41:55 ghostmoth: theres a broadcast receiver for that I believe. Dec 14 21:41:57 the android documentation says it’s not a great idea to listen for that broadcast while downloads are going, but wouldn’t it be the user expectation that their downloads would pause if they had that setting on and left a wifi area? Dec 14 21:42:33 depends on what it is, and i guess how much was left Dec 14 21:43:03 ghostmoth: http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html monitor for a change, and see if it's a data connection, and not wifi, then maybe ask the user if theyd like to cancel. Dec 14 21:43:32 makes sense that the download would pause... or even more likely, just stop completely. Dec 14 21:44:11 i wish pocketcasts app would do that Dec 14 21:44:18 if I leave wifi they just keep downloading. Dec 14 21:44:18 i’ve tried using that setup, but it seems like there’s a race condition. sometimes the switch from wifi to mobile is smooth and it pauses, other times, it seems like the download fails bc of connectivity before the receiver even knows about it Dec 14 21:45:41 i guess i’m wondering if this is a common issue with this feature, or what some best practices are in the android world Dec 14 21:46:19 well, the wifi connection takes a while to discover that it's out of service before you switch back to mobile data Dec 14 21:46:37 the signal goes to 0 long after you're able to reliably send/receive data Dec 14 21:47:56 i’ve seen this happen both while physically walking away from the signal, and while simply turning wifi off during a download. mostly the latter. Dec 14 21:58:35 Hi Dec 14 21:58:45 If I wanted to program android apps with C++, where could I look it up? Dec 14 22:06:55 the NDK Dec 14 22:07:12 or with QT Dec 14 22:07:56 s73v3r, Ok. So I should look for learning the NDK (or QT like you said) ? Dec 14 22:08:13 s73v3r, Do you know if I can avoid java (100%)? Just out of curiosity. Dec 14 22:09:05 doubtful Dec 14 22:09:13 I see. Dec 14 22:09:14 in fact, you’d be better off just using Java Dec 14 22:09:20 Ok. Dec 14 22:09:25 I can almost guarantee your project does not require the NDK Dec 14 22:09:37 Oh... I'm sorry, I don't have a project. Dec 14 22:09:41 I was just asking out of curiosity. Dec 14 22:10:08 the answer is, anything is possible. It’s just software. But it’s not going to be easy Dec 14 22:10:55 if you’re going to look up the NDK, you might also want to look at CrystaX NDK. It’s an alternate NDK that is supposed to use more up to date compilers Dec 14 22:11:16 Ok. Thanks. Dec 14 22:11:58 phao https://www.reddit.com/r/androiddev/comments/3wsz40/crystax_ndk_1030/ Dec 14 22:12:26 in Activity() i was writing mTask = String.valueOf(editText.getText()); intent = new Intent(); intent.putExtra("task", mTask); this but then application was stopped Dec 14 22:12:38 s73v3r obj-c support - wonder how long until swift support :D Dec 14 22:12:41 then i changed intent.putExtra("task", mTask); to ntent.putExtra("task", "asdasd"); it is not working correctly but at least it is not stopped Dec 14 22:12:59 i cannot bring editetxt or any otther view to screen Dec 14 22:12:59 it’s using LLVM, so it should come eventually, assuming the project people want it Dec 14 22:13:10 Ok. Thanks. Dec 14 22:13:55 asdasd_: you’d have to post more code, and probably your stack trace Dec 14 22:14:24 what you mean by stack trace Dec 14 22:14:53 is it crashing? Dec 14 22:15:29 now not crashing Dec 14 22:15:35 but before Dec 14 22:15:40 but nothing on screen Dec 14 22:15:41 yes Dec 14 22:15:51 give us the stack trace from then Dec 14 22:17:14 It’ll be in logcat, and look something like this http://www.cs.dartmouth.edu/~campbell/cs65/lecture10/images/debug.png Dec 14 22:18:18 My brain hurts Dec 14 22:18:21 https://paste.kde.org/pbmwbfwtm Dec 14 22:18:42 this line of code evaluates to 0: https://gyazo.com/fc704b491695f97b092512a869d2907a Dec 14 22:18:56 and these are the values at runtime: https://gyazo.com/c42bd6f91591062e4b0808bdd1f030cc Dec 14 22:19:11 including the percentage calculated by said line of code. Dec 14 22:19:15 asdasd_: that’s just the log, not a stack trace Dec 14 22:19:16 0_o Dec 14 22:19:34 Hi, could someone help me figure out how to create an HLSPlaylist from a single mp4 URL string ? Dec 14 22:20:42 Humorousone: Are they floats, or are they ints? Dec 14 22:21:35 Is there a list of all permissions? All I could find was a list of all Normal permissions: http://developer.android.com/guide/topics/security/normal-permissions.html Dec 14 22:21:41 http://hizliresim.com/lrGBjp Dec 14 22:21:51 s73v3r Dec 14 22:22:34 s73v3r: Percentage is float, others are both ints Dec 14 22:22:53 https://gist.github.com/nbcsteveb/092d49c6ba76467d9cf2#file-hlsrenderer-java-L134-L152 Dec 14 22:22:53 i have this code here Dec 14 22:22:54 that doesn’t help at all Dec 14 22:24:02 playlistFetcher fails with exception: com.google.android.exoplayer.ParserException: Failed to parse the playlist, could not identify any tags. Dec 14 22:24:04 s733r did you said that for me ? Dec 14 22:24:04 because mp4 is not a m3u8 playlist Dec 14 22:24:06 s73v3r Dec 14 22:24:07 just need mp4 url thrown into a programmatically created HLSPlaylist rather than one created by HLSPlaylistFetcher Dec 14 22:24:07 Humorousone: Int/Int is going to be 0 Dec 14 22:24:07 0 * 100 is going to be 0 Dec 14 22:24:08 asdasd_: Yes. I can’t read that Dec 14 22:24:08 but don't know how to do this Dec 14 22:24:40 you can read Dec 14 22:24:52 it is not too small Dec 14 22:24:53 ? Dec 14 22:25:12 yes, it is. It’s an image. Don’t paste an image Dec 14 22:25:25 a stacktrace is text. Paste that Dec 14 22:25:59 s73v3r: int/int = 0? Dec 14 22:26:21 in your case, it’s going to end up being 0.5. Which, in integer division, is 0 Dec 14 22:26:25 s73v3r: is this down to my loose use of variable types? Dec 14 22:26:30 yup Dec 14 22:26:46 you’ll need to cast them into floats or doubles Dec 14 22:26:55 s73v3r: ahh, I understand Dec 14 22:27:13 2-14 22:18:00.313 22756-22756/tr.edu.iyte.todoapplicationwithmenus E/AndroidRuntime: at tr.edu.iyte.todoapplicationwithmenus.NewTodoActivity.onOptionsItemSelected(NewTodoActivity.java:50) Dec 14 22:27:29 don’t paste here; use a pasting service Dec 14 22:28:14 s73v3r: as a side note, can you implicity convert an int to a float by casting it? Dec 14 22:28:22 ie (float)someintegervariable Dec 14 22:28:23 yes Dec 14 22:28:29 s73v3r: thanks Dec 14 22:28:39 https://paste.kde.org/p88m7cqvn Dec 14 22:29:28 ok, go back to the original code you had. Run that. Logcat will produce a stack trace when it crashes. Paste that. And paste the entire section of code you’re runing Dec 14 22:29:49 s73v3r: fixed my issue :) Dec 14 22:30:21 for those interested in the fix: https://gyazo.com/a58b9d4d9841a2d1a338007ac4465a8e Dec 14 22:31:14 https://paste.kde.org/pb2t151xh Dec 14 22:32:28 well, for one, I don’t see where you’re setting the target of the intent, or doing anything starting the activity Dec 14 22:33:41 can you say it clearly Dec 14 22:33:46 i did not get it Dec 14 22:33:59 I don’t see where you’re setting the target of the intent Dec 14 22:34:09 the activity that the intent is supposed to start Dec 14 22:35:05 the reason your code kinda just stops is because you have that finish(); which finishes the activity. But nothing else has been started Dec 14 22:39:29 where can I find the android sample apps on github Dec 14 22:40:08 http://developer.android.com/guide/topics/providers/contacts-provider.html "which is part of the ContactAdder class in the Contact Manager sample application. " Dec 14 22:40:44 do you have any solution s73v3r ? Dec 14 22:46:58 tell the intent where to go? Dec 14 22:47:20 it seems like you’re pretty new at this, so you might want to do some more reading about how to make an Android app Dec 14 22:50:51 interesting. when i disable BT in 6.0 it Settings app says system apps can still detect them Dec 14 22:51:37 hm ok , under Scanning options Dec 14 23:21:05 I am attempting to write an app that removes duplicate files from the sdcard. As such, I need a way to index files on the sdcard so that I can perform quick lookups. Does anyone know whether this is possible? I know Android provides the "MediaScanner" but that is solely for media files Dec 14 23:22:02 I’m going to add a view to a Viewgroup. I want to set margins on that view. Will parent.getLayoutParams() get me what I need, or is there something else to do to get the appropriate LayoutParams subclass Dec 14 23:22:03 ? Dec 14 23:23:14 hey all im writing a JSON file to local storage with a function: https://bpaste.net/show/605bbabb48e3 Dec 14 23:23:17 which seems to work fine Dec 14 23:23:51 but when I restart the app, this file: if (settings.exists()) { which is created by: File settings = new File(settingsFile); says the file does not exist Dec 14 23:23:54 and re runs that function Dec 14 23:23:56 what did I miss Dec 14 23:25:14 nevermind, just having ViewGroup.LayoutParams doesn’t let me set the margins Dec 14 23:28:21 Is there any way to set some data, anything really inside a textview, just like how you can use attributes on a html-element, in android? Dec 14 23:28:46 I have a FloatingActionButton from the design support library, can i make it bigger than the provided small and normal sizes? Dec 14 23:29:03 When i try to set the width and the height manually i get this: Dec 14 23:29:06 https://ptpb.pw/ABD98y_lo6MaSQRC_8tTQZAwCN56.png Dec 14 23:29:16 dersand: just do it? like what are you trying to do Dec 14 23:30:12 TheArtist: The sizes are kinda dictated by the material design spec. If you want a different size, you’ll have to roll your own Dec 14 23:30:19 s73v3r, I would like to have the textview to have a text, but also some other data, in html you can either use the alt="", or in html5 the data-*="" attributes Dec 14 23:30:31 textview displays text. that’s it Dec 14 23:30:45 you can add a picture, too, but that’s it Dec 14 23:30:46 s73v3r: Well, do we have any other good implementation? Dec 14 23:31:01 TheArtist: Github is full of them Dec 14 23:31:31 you could also look at the source of the design library, and use that as a base Dec 14 23:31:56 s73v3r: that seems a good idea, i hope its not too complicated Dec 14 23:33:23 can anyone point me twoards an android NDK socket server example that does NOT extend activity Dec 14 23:33:29 s73v3r, I have an arraylist, and each entity in that arraylist is displayed with a view. When i click on a view, i'm getting the text of that textview and comparing it to the arraylist, but the text is not unique, so it would be great if i there is any meta-data i can input such as position to make it more consise. Dec 14 23:33:32 /facepalm Dec 14 23:34:01 dersand: why wouldn’t you just use the index? Dec 14 23:34:23 s73v3r, setting the index as the text? Dec 14 23:34:36 no, in the onitemclicked Dec 14 23:34:56 wait, you’re not using a listview/recyclerview, aren’t you Dec 14 23:34:59 i search on android ndk socket server and im inundated with millions of totally irrelevant results :/ Dec 14 23:35:44 No, it's just LinearLayouts Dec 14 23:36:16 then set a separate onClick for each of them Dec 14 23:36:39 Question on permissions. I'm watching a Google I/O video on permissions, and the guy says "check your results and cache them. don’t worry about runtime handling". Does anyone know what is meant by this? Why should I cache the results... can't I just ask every time? Dec 14 23:37:00 I have them already, but that doesn't mean if i click the second one, i will get the second reference Dec 14 23:37:15 eghdk the dev summit the other week had a talk on permissions, i'd see that also Dec 14 23:37:28 if you click the second view, you’re going to know they clicked on the second view Dec 14 23:38:31 g00s: Will do. Thanks Dec 14 23:41:28 super basic question: i want to make a button with a clickListener that starts an activity. When I try to declare the Intent line, I get a syntax error because "this" refers to the OnClickListener, not the parent activity. How do I refer to the parent (or do I)? Dec 14 23:42:41 Kommunicate: MyActivityClassName.this Dec 14 23:43:32 thanks s73v3r Dec 14 23:43:55 that's.. really weird syntax. Does this mean that there are only ever static instances of activities? Dec 14 23:44:18 kommunicate: that's how you do it Dec 14 23:45:17 oh sorry I misunderstood Dec 14 23:45:44 I think it's a static field that has some kind of package local access or something Dec 14 23:45:57 it’s not actually a static field Dec 14 23:46:19 it’s just a short syntax that tells the compiler to replace it with the next enclosing this of the type MyActivityClassName Dec 14 23:46:25 what is it exactly? Dec 14 23:46:29 oh neat Dec 14 23:46:33 i never knew :3 Dec 14 23:46:38 if you try to access it from somewhere else, it won’t work Dec 14 23:46:43 right Dec 14 23:47:53 is calling a method on a fragment from an activity considered evil? I mean a non `Fragment` method. like a public method specific to my fragment Dec 14 23:47:55 Kommunicate: no, it has to do with accessing the containing class of the inner class. Dec 14 23:50:57 s73v3r: I get that part, but I don't get how it uniquely figures out which is the right parent object without the inner class being declared static Dec 14 23:51:09 It does so during compile time Dec 14 23:51:25 it knows what class is containing that inner class Dec 14 23:51:26 oh! is this a compiler hack? Dec 14 23:51:48 it’s not a hack Dec 14 23:57:09 hello everyone! Dec 14 23:57:21 I have a problem with my toolbar. I'm trying to provide Up navigation via the toolbar's home button but I can't get it to work. I've tried anything there is online in stackoverflow and google docs Dec 14 23:57:28 Can anyone tell me what is the correct way to show the "Up" button on toolbar and provide up navigation? Dec 15 00:24:38 when changing the compileSdkVersion, I needed to change some stuff in the dependencies in order to get it to compile. how should i determine what the version numbers should change with a change in sdkVersion? Dec 15 00:25:32 I'm speaking generally, i simply copied someone elses gradle build file in this case, but that didn't help my understanding at all Dec 15 00:27:22 unless you have a reason, generally the latest ones available Dec 15 00:28:21 s73v3r, I wanted to test out some code without having to write the permission requests for 23. Dec 15 00:28:56 but really, i just want to know how to select sdk versions and then get all the other stuff in the build file to match. Dec 15 00:29:23 the compile sdk version and the versions of the support libraries should match Dec 15 00:31:23 so if you’re using compile sdk version 23, then you should be using support lib 23. If you’re using compile sdk version 21, then support lib 21 Dec 15 00:31:34 s73v3r: the support stuff usually has a different one (only matching before the first decimal), so if i assuem it's major.minor.build, on the major rev number matches the sdk Dec 15 00:31:46 yes Dec 15 00:31:59 for instance: com.android.support:appcompat-v7:22.2.1 is what i have for 22. how do i determine the v7: .2.1 Dec 15 00:32:25 without having copied it from someone elses file I found on SO Dec 15 00:32:37 you want the lastest version of the compatible one Dec 15 00:32:43 so the latest version of 22 Dec 15 00:32:56 ok, and where are these found, is there a list somewhere? Dec 15 00:33:27 i believe you can find them on the android tools website Dec 15 00:33:46 ok, i'll keep poking around. thanks Dec 15 00:36:46 cool https://www.jetbrains.com/idea/help/running-intellij-idea-as-a-diff-or-merge-command-line-tool.html Dec 15 00:46:05 hi guys, I have a newbie design/architectural question Dec 15 00:46:23 i have an activity+tab layout and 3 fragments Dec 15 00:46:40 i need to call an api in the background and save data to db Dec 15 00:47:01 then i need to notify one of the tab fragments that the data is loaded Dec 15 00:47:25 but the tab/fragment that needs this flag cannot be guaranteed to be created at any time Dec 15 00:47:38 what would be the best way to approach it Dec 15 00:49:39 rburgosnavas check out the android dev summit talk on app architecture (a few weeks ago) Dec 15 00:51:33 oh, ok Dec 15 00:56:32 Hello guys Dec 15 00:58:33 do you guys think it's normal to experience a cpu usage of up to 20% for drawing 64 squares at 30FPS with OpenGL 2.0? Dec 15 01:00:28 anyone? Dec 15 01:01:29 i couldn’t really say Dec 15 01:01:46 maybe, but I’m not familiar enough with that sort of thing to say Dec 15 01:01:56 I'm using the sample provided on Android Developers atm as I just got started Dec 15 01:03:04 I had move away from Canvas because of this issue only to find the same with OpenGL Dec 15 01:04:06 ... unless android studio is showing cpu usage according to cpu frequency.... Dec 15 01:08:42 don't get me wrong, I think it's great news, but what is Google's motivation for this effort: http://www.phoronix.com/scan.php?page=news_item&px=Linux-4.5-MSM-Changes Dec 15 01:09:04 especially in regards to Nexus 4. Like, I think it's cool, but who really cares if a mainline kernel runs on a 3 year old phone? Dec 15 01:10:01 it does say nexus7/nexus4/etc Dec 15 01:10:14 maybe those chips were rather popular? Dec 15 01:10:24 Ah, makes sense. I see what you're saying. Dec 15 01:11:04 I mean, I see value in having those things upstreamed and I'm sure google would like to upstream as much as possible to reduce the amount of patching they do on top of mainline. Anyway, very cool to see :) Dec 15 01:16:32 molec its good news, because the closer android kernel is to stock kernel, it frees chipset mfgs from writing 2 drivers Dec 15 01:16:59 so the same driver could be used for regular embedded linux, and android Dec 15 01:17:58 one of the things i heard a while back, was that drivers were available for android often, but not vanilla kernel. so those oems just focused on what the most popular thing was Dec 15 01:19:03 yeah, there's libhybris Dec 15 01:19:09 also, we are now very behind the stock kernel version wise. like many years. if they converge more thats also good news from a security perspective Dec 15 01:19:26 mhm Dec 15 02:11:01 Anyone use Sugar orm? I get a "unable to instantiate com.org.SugarApp" Error. Dec 15 02:11:28 I followed the instructions on the site but I still get it Dec 15 02:16:52 <_genuser_> heyo ppl Dec 15 02:17:00 <_genuser_> anybody around or are all of you slacking off? Dec 15 02:18:10 slacking, mostly Dec 15 02:18:59 <_genuser_> Leeds: ugh. lazy!! Dec 15 02:19:15 <_genuser_> I'm trying to determine if others are also seeing that android 5 is much slower on the same hardware as android 4.x.x Dec 15 02:19:28 <_genuser_> in my experience it it's horribly slower. Dec 15 02:19:30 hey, I've been using slackware since 1996 - I'm a highly-experienced slacker Dec 15 02:19:49 <_genuser_> Leeds: whoa, you're still using slackware? Dec 15 02:19:54 I am! Dec 15 02:20:10 <_genuser_> nice. I had tried it a few years ago on kde4. I liked it quite a bit. Dec 15 02:20:18 <_genuser_> I couldn't get behind the package managements, etc. no dep tracking. Dec 15 02:20:29 ok, I didn't use it for all of the past 20 years, but I started on it, and I've been using it pretty consistently for at least the last 10 years Dec 15 02:20:37 Leeds, why slackware instead of something else? Dec 15 02:20:39 what keeps you on it Dec 15 02:20:57 it works, it's simple, it's straightforward Dec 15 02:21:04 <_genuser_> his personal stburronness Dec 15 02:21:17 and I have a penguin smoking a pipe on top of my monitor, so it seems appropriate Dec 15 02:21:29 <_genuser_> it's understandable. Dec 15 02:21:38 <_genuser_> I've been using gentoo for my fileserver for about 10years. Dec 15 02:21:56 see, slackware people think gentoo users are weirdos :) everyone else thinks we both are... Dec 15 02:22:14 <_genuser_> Leeds: haha, I know what you mean by "everyone else thinks we both are." Dec 15 02:22:35 <_genuser_> in terms of slackers thinking gentooers are weird... well, hey if it makes you happy... Dec 15 02:22:55 <_genuser_> I don't get offended when people call gentoo users odd, or etc. or even stupid. Dec 15 02:22:57 yeah anyone using linux on desktop is kinda weird Dec 15 02:23:07 <_genuser_> but if someone calls me stupid directly, I just say back off and then just ignore it. Dec 15 02:23:20 <_genuser_> g00s: I'm only using it on a fileserver. so phew Dec 15 02:23:27 :D :D :D Dec 15 02:23:32 hey, I didn't say stupid, just weird :) Dec 15 02:23:34 <_genuser_> talk to me about android 5 Dec 15 02:23:41 <_genuser_> is it slower for you guys on the same hardware? Dec 15 02:23:58 <_genuser_> Leeds: heh, I didn't mean you said stupid. but I have heard that. and then people get really angry before I even respond. Dec 15 02:24:10 i skipped 5 because it supposedly ran poorly on N7 (performance wise) Dec 15 02:24:13 I haven't had anything with 4 on it for quite a long time Dec 15 02:24:41 <_genuser_> g00s: well add galaxy s4 to that list. because it's pretty slow in terms of performance and jittery on s4. Dec 15 02:25:20 eh i think android is always going to struggle pushing stuff over 20fps Dec 15 02:25:35 I would guess it's more of a resource profile - e.g. 4 might be more dependent on CPU, 5 needs more RAM, 5.1 pushes the GPU harder, etc. Dec 15 02:25:37 <_genuser_> Leeds: I have an app that has some performance focused stuff and same s4 with android 4.x.x (it took 6 seconds to do a given action). on s4 with android 5, it's 13 seconds. In some cases much higher. Dec 15 02:25:54 I use Arch and Kubuntu on Desktop, a Moto G and a Moto G2 with 5.0.2, and a HUAWEI IDEOS X3 with Gingerbread, and a N7 '12. To get the full spectrum of Android for testing and development. Dec 15 02:26:23 justJanne: if you don't have a samsung device or two, you're *not* covering the full spectrum Dec 15 02:26:31 <_genuser_> problem is resource profile or not, I can't expect my users to worry about this stuff, no? Dec 15 02:26:44 _genuser_: so, work out why? Dec 15 02:26:49 <_genuser_> they just want an app that does crap. and who waits 13 seconds to do something that they will have to do 10-20 times per app run Dec 15 02:27:09 _genuser_ systrace is your friend Dec 15 02:27:14 <_genuser_> Leeds: hmm, ok work it out why and then address that, that I can unerstand. Dec 15 02:27:17 Well, Leeds, I don't own a SAMSUNG device, due to expensiveness. But I have access to an S3 mini, an Ace I, and a lenovo tablet with Android. Dec 15 02:27:25 <_genuser_> but I've just used stock music app, etc. and they're much slower too. Dec 15 02:27:47 <_genuser_> g00s: systrace? I wish I was sophisticated enough of an android dev to say oh I know what that is, but I'll have to google to say that. Dec 15 02:28:11 http://developer.android.com/tools/debugging/systrace.html' Dec 15 02:28:35 * _genuser_ types in teh url into chrome. Dec 15 02:28:43 minus ' Dec 15 02:29:13 <_genuser_> g00s: yep, I've have mistyped in the single quote many a time. Dec 15 02:29:22 <_genuser_> g00s: ok, I'll use this and see if this helps. Dec 15 02:29:28 <_genuser_> first I need to import my app from eclipse to androidstudio. Dec 15 02:29:49 _genuser_, which device are you talking about? Dec 15 02:30:29 <_genuser_> Bubo: galaxy s4. I've only used android 5 on that. but on my brother's s6, the app was fairly slow also (using android 5). Dec 15 02:30:53 I have an S3 with cyanogenmod 5.1.1 Dec 15 02:31:06 stuff runs the same as with kitkat Dec 15 02:31:40 <_genuser_> Bubo: I see. I had encrypted it and for a while thought it was the encryption. Dec 15 02:32:00 <_genuser_> Bubo: I have since factory reset it to android 5.0.1 (or whatever). and things like music app, and other apps are jittery. Dec 15 02:32:25 <_genuser_> slow response. Holding down power button will bring up the task list after 2-3 seconds (after releasing). Dec 15 02:32:43 <_genuser_> killing apps will just either bring them to front or just take an extra second to kill. Dec 15 02:32:47 <_genuser_> before it was just tap tap tap tap. Dec 15 02:32:54 I don't have that problem Dec 15 02:33:43 I've been using Relay for browsing reddit, spotify for music and messenger at the same time and it works fine Dec 15 02:33:51 although sometimes it slows down but not a lot Dec 15 02:33:51 <_genuser_> I will redo my app and focus on that. I can't fix the rest of the OS, but I can focus on my own code. Dec 15 02:34:26 <_genuser_> yeah it will gps/music and all taht fine. it's just as if UI and GUI app threads have a much much lower priority in the OS. Dec 15 02:34:46 <_genuser_> or maybe it's doing much more in the background. Dec 15 02:36:36 <_genuser_> ok new qusetion. Dec 15 02:37:05 <_genuser_> if I have an app that does X (assume X is something you're interested in), would you use it if: Dec 15 02:37:54 <_genuser_> 1) app is mostly local only, stores all data locally, 2) you can't interact with other users, 3) you can MMS data to each other but they have to have the same app to view it. 4) the recipient ID is encoded by phone number in the file so nobody else can view it. Dec 15 02:38:26 <_genuser_> later came the: 1) website, 2) user registration, 3) sending stuff back and forth using user-ids 4), etc. etc. Dec 15 02:38:42 what^..? Dec 15 02:39:09 hey im trying to get a listpopupwindow to display above a webview Dec 15 02:39:09 if you dont say what the app is about how do i know if i should care about interacting with other users Dec 15 02:39:29 it shows but the height is like 40px and no matter what i try with setHeight it doesnt change Dec 15 02:39:52 <_genuser_> orbyt_: admittedly I'm a little hesitant to describe my idea publicly before I have implemented it. However, I said _assuming_ you were interested in what it does. Dec 15 02:40:28 <_genuser_> orbyt_: if you need a further example, assume it was a game that let you send game property back and forth between users, but initial sending was as a packaged file over MMS. Dec 15 02:41:01 <_genuser_> orbyt_: so no in-game transfers because no users, yet. because no backend. Dec 15 02:42:05 i dont use MMS Dec 15 02:42:24 it'll cost money to use the app? to play the game? Dec 15 02:42:49 <_genuser_> Bubo: ok, so initially if the game property (belongings such as cloaks, daggers) were only transferrable as SMS/MMS messages, you'd pass? Dec 15 02:42:55 <_genuser_> no cost to play. no ads. Dec 15 02:43:02 SMS/MMS messages cost Dec 15 02:43:03 <_genuser_> no in-game purchases Dec 15 02:43:16 <_genuser_> yes, SMS/MMS cost, tho. that's why I ask. Dec 15 02:43:21 _genuser_: thats pretty much an impossible question without knowing what game, and why i would want to send this specific in gme property. Dec 15 02:43:33 best thing here is to ask urself if you would use it Dec 15 02:43:35 if it needs sending a lot of sms a lot of people will pass Dec 15 02:43:36 <_genuser_> plus the hassle of having to "share" it as a just a file to a contact instead of just sending to a user with a username. Dec 15 02:43:43 should be implemented on a server so it just needs internet.. Dec 15 02:44:16 <_genuser_> I can code up the backend. but it will take time. and I figured if the game is good enouhg, maybe others will join in on teh dev work for ownership. Dec 15 02:44:48 <_genuser_> orbyt_: no too much sharing back and forth. so as a user I would. but I find my own choices are not very reflective of general population. Dec 15 02:45:14 what game is this for? Dec 15 02:45:51 <_genuser_> orbyt_: an android game atm. role play. I don't want to say more. :) Dec 15 02:46:15 <_genuser_> orbyt_: I also understand without full picture you may not feel the idea much. Dec 15 02:48:58 <_genuser_> Bubo: so you're on per txt price plan? Dec 15 02:49:37 _genuser_, well people mostly are in my country Dec 15 02:50:57 <_genuser_> Bubo: I see. I think everyone I talk to here in the US is on unlimited everything plan. but then again I only talk to a limited type of crowd Dec 15 02:57:26 anyone familar with listpopupwindows? Dec 15 02:57:54 _genuser_, if you target US, alright then Dec 15 02:58:15 I still don't think people want to receive sms from random people Dec 15 02:58:30 they need to know your number right? **** ENDING LOGGING AT Tue Dec 15 02:59:58 2015