**** BEGIN LOGGING AT Tue Mar 01 02:59:58 2016 Mar 01 03:05:52 g00s: did you find any docs on the daynight theme? From what i've gathered you set the theme and then use appropriate qualifiers for resources, then set defaults with AppCompatDelegate Mar 01 03:06:17 only info I can find on it though is the blog post and the summary here: http://developer.android.com/tools/support-library/index.html Mar 01 03:06:45 i can't use it to switch between my 3 dark themes Mar 01 03:07:17 right, was wondering if you came across any good docs on it though Mar 01 03:07:42 no Mar 01 03:07:56 chris medium post is pretty good though ... Mar 01 03:08:20 https://medium.com/@chrisbanes/appcompat-v23-2-daynight-d10f90c83e94#.w3eks0wl6 Mar 01 03:08:26 ah cool thanks Mar 01 03:11:32 > pfn | man, wish maven central sync didn't take forever... Mar 01 03:11:36 eveyone wishes that Mar 01 03:15:33 gordon_, I mean as in publishing Mar 01 03:17:24 this too Mar 01 03:17:28 gordon_, coursier-sbt-plugin is pretty good now Mar 01 03:17:53 never heard of it, reading Mar 01 03:18:08 oh, replacement for ivy Mar 01 03:18:25 wtf, I published keepassj 2 hours ago, it still hasn't sync Mar 01 03:20:47 happens Mar 01 03:20:58 same with linux servers ;) Mar 01 03:27:17 fuck it, I'll just publish-local Mar 01 03:41:35 bankai_ http://www.gizmag.com/australia-shark-spotting-drones/42096/ Mar 01 03:41:41 the dogs are safe ! Mar 01 03:42:18 hahah that's cool Mar 01 03:49:13 g00s: why are you so against bus libraries? This is awesome Mar 01 03:49:35 although I'm glad I implemented the callbacks first Mar 01 03:51:28 RustyShackleford not totally against buses. then can be convenient sometimes for certain cases Mar 01 03:51:52 but generally, chucking events all over the place is poor programming Mar 01 03:52:05 I see how that can be misleading Mar 01 03:52:37 I'm trying to keep all event handling in one place. Only in the host Activity Mar 01 03:52:41 may people moved from buses to rxjava pipelines Mar 01 03:52:56 isn't that sort of a hack? I think rxjava is a different use case Mar 01 03:53:04 so the flow events is explicit in the chain, and rx gives you composability and error handling Mar 01 03:53:19 i dont mean using rxjava as event bus Mar 01 03:53:40 i mean, redesigning how your app handles events and restrict those to explicitly defined pipelines Mar 01 03:53:58 know of a code example? Mar 01 03:54:17 I'm already using rxjava. One fewer library is good Mar 01 03:54:38 not really. its a shift in thinking, not converting otto to BehaviorSubject Mar 01 03:55:07 or green robot, etc Mar 01 03:55:22 rxjava is for streams. green robot seems perfect for "user picked this item" Mar 01 03:55:33 nope Mar 01 03:55:46 user picked this item is a stream that gets composed into other streams Mar 01 03:56:48 pretty much the only thing i'd use event bus for now is chucking events that need to go to analytics, because i don't want analytics all over the place in my code ... Mar 01 03:57:06 but i have to look at maybe AOP helping me there Mar 01 03:58:31 I think I see what you're saying now Mar 01 03:58:43 although i'm not sure how to set it up Mar 01 04:00:46 I can picture responding to the message in onNext(). Not sure what the message sender would do Mar 01 04:04:41 abusing rxjava for an observer pattern is pretty lame Mar 01 04:07:46 I don't know, it's a good start. Mar 01 04:08:08 Instead of reinveinting an observer/listener interface, just use the ones from Rx Mar 01 04:08:38 Makes you comfortable with them, you can probably get rid of dozens of mini interfaces you wrote in your code base, now it's all uniform Mar 01 04:08:44 And now, the real power of Rx opens up Mar 01 04:11:21 CedricBeust: what is the real power of rx then? Mar 01 04:11:38 That's a long story Mar 01 04:11:53 Baby steps, first recognize the value of having one universal observer pattern Mar 01 04:16:14 sure, agree, but rx is overkill Mar 01 04:16:28 and for the most part, the vast majority of the usage is for an observer pattern Mar 01 04:17:54 If you don't feel like adding it as a dependency, at least write interfaces that are compatible with Rx (onNext(), onComplete(), onError()) to make future migration easier Mar 01 04:19:45 already using RxAndroid so thats not a problem Mar 01 04:20:05 now I'm debating whether or not I want to use green robot as well Mar 01 04:20:45 There are pros and cons, but if you're not comfortable with Rx yet, go with the event bus, safer route Mar 01 04:21:33 it does seem simpler for now. I'm sorta wanting to just write this app Mar 01 04:21:48 I've been researching/experimenting with different libraries for like two weeks Mar 01 04:22:09 Then go ahead, use the bus, reach your goal Mar 01 04:22:20 Once you're there, you can setp back and reflect Mar 01 04:22:25 right Mar 01 04:22:41 no matter how hard I try, its not going to be perfect hah Mar 01 04:23:13 Yes. I'll take shipping something imperfect over not shipping something perfect any day. Mar 01 04:23:50 that is the maddening part about programming Mar 01 04:23:53 its never perfect Mar 01 04:25:41 dumb/newb question.. how do I change a switchpreference from the left/right toggle-ish icon to the on\off style toggle? Having a hard time finding the right terms to google. Mar 01 04:43:19 CedricBeust: have you used rx before ? Mar 01 04:44:07 I like rxjava, but testing it is quite boilerplate Mar 01 04:44:53 gordon_: Quite a bit, wrote a series of articles about it http://beust.com/weblog/2015/03/23/android-rx-and-kotlin-a-case-study/ Mar 01 04:46:25 why is it single threaded Mar 01 04:46:39 I mean server calls Mar 01 04:47:25 ok, part2 is mulithreaded Mar 01 04:48:13 .subscribeOn(Schedulers.io()) Mar 01 04:48:19 this is fail in unit tests btw Mar 01 04:48:25 BilldaCat, SwitchPreference was added in API 14 Mar 01 04:49:03 So if your app allows for pre-14, that has to be taken into account Mar 01 04:49:25 Ologn: it doesn't, it's set for min of 14 Mar 01 04:50:23 i'm just trying to get the on\off style like this: http://i.stack.imgur.com/nxlD6.jpg instead of these: https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bzhp5Z4wHba3eWRXVkNtT05wNDg/settings_switch1.png Mar 01 04:50:28 and i'm not sure how to do that Mar 01 04:55:06 Right...I would guess somewhere the old style is being pointed to...as in style. Maybe in res/values/styles.xml or the manifest? Mar 01 04:55:50 I think Holo is the style you want Mar 01 04:56:37 ahhh ok. so that's where i need to look into changing it, thanks. Mar 01 04:56:47 appreciate it Mar 01 06:34:54 morning guys. is it normal for dagger to make it into a production build as dependency. using a third party library and it's really entwined. Mar 01 06:35:12 I haven't had the privilage of doing any testing in my android work as of yet :/ Mar 01 06:35:51 so if I build a .jar, then dagger will inadvertently ship with the final build of my app. Mar 01 06:36:02 just want to make sure that's normal. Mar 01 06:37:11 DysonReturns out of curiosity, what 3rd party lib depends on it ? Mar 01 06:37:56 a semi complete lib which does Disqus integration. let me find a link Mar 01 06:38:22 https://github.com/markrebhan/disqus-android-sdk Mar 01 06:39:45 yeah, uses a bunch of stuff https://github.com/markrebhan/disqus-android-sdk/blob/master/disqus-sdk/build.gradle Mar 01 06:40:32 DysonReturns: Nothing wrong with shipping with Dagger Mar 01 06:40:54 not sure what the best practice is for libraries that want DI - i thought they should depend on the JSR 330 jar Mar 01 06:41:21 puts my mind at ease a bit. i don't mind it heavily relying on the squareup http stuff, since I always use those anyway. Mar 01 06:41:28 thanks for the info Mar 01 06:44:10 classpath 'com.android.tools.build:gradle:1.0.0' Mar 01 06:44:12 oh yeah Mar 01 06:49:39 hah. Mar 01 06:50:00 I use the new gradle stuff as much as possible, but still staving off Studio 2.0 Mar 01 06:51:02 had a situation a few days back where a build didn't work with the SugarORM. its like that fresh install doesn't run what's required to init the db. Mar 01 06:53:04 i don't know the symantics. even an uninstall and then running the build it feels like a some sort of hot swap still happens and it doesn't register what its supposed to. studio 1.5 with same build toolset otherwise didn't have the same issue. so i'm back on that now and missing Instant Run dearly. Mar 01 06:54:47 the performance from 2.8-> 2.9 and up is really good on incremental builds. Mar 01 06:54:57 of the wrapper Mar 01 06:58:40 analytics ftw Mar 01 06:58:54 I finally got Google Analytics working on one of my apps Mar 01 07:06:45 Guys, is it better to inflate views inside a recyclerview, or seperate those views to be inflated outside it? Mar 01 07:07:40 I want to put some views on bottom and above a recyclerview, but it doesn't really work as the recycler view is scrollable Mar 01 07:12:38 depends on what you want Mar 01 07:12:45 obviously, if it scrolls, it should probably go inside the recyclerview Mar 01 07:18:24 Hi people! Could someone help me with CTS please! Mar 01 07:18:31 I'm running CTS android.renderscript on a x86 device running android 4.2.2_r1.2 Mar 01 07:18:34 http://hanhuy-acra.appspot.com/public/com.hanhuy.android.irc.lite/e039b441b1205d79f4d936ea737fb37bbb8ffa5b Mar 01 07:18:41 and I get "process crashed". here's what I see in logs: Mar 01 07:18:43 lol, someone randomly submitted that as a logcat Mar 01 07:19:00 D/RenderScript_jni(25091): MessageThread exiting. V/RenderScript(25091): 0xb80ab2b8 rsContextDestroy V/RenderScript(25091): 0xb80ab2b8 Context::~Context V/RenderScript(25091): 0xb80ab2b8 RS Thread exiting V/RenderScript(25091): 0xb80ab2b8 RS Thread exited F//system/bin/app_process(25091): stack corruption detected: aborted Mar 01 07:19:05 so what can I do with that stack corruption issue? Mar 01 07:20:58 renderscript has some major issues with some x86 devices, that's all i know, probably because of some faulty RS driver shipped, idk if you can use RS support on CTS tests but that might help, also check b.android.com issues in case it's a known one Mar 01 07:28:23 adq filed a bug, wasn't assigned to anyone :( Mar 01 07:28:49 i think if it isn't triaged in 3 days or so its essentially dead Mar 01 07:30:00 link? Mar 01 07:31:21 star if you can, don't think it matters any more https://code.google.com/p/android/issues/detail?id=202037 Mar 01 07:31:29 misspelled support :| Mar 01 07:32:43 i googled around, seems like people see different things with this. they made some changes to the nested fragment support in 23.2 Mar 01 07:33:14 g00s: PR pending to upgrade to support 3.2.0 Mar 01 07:33:29 3.2.0 O.o Mar 01 07:34:35 ahah sorry g00s, last time i submitted a bug about log verbosity... https://code.google.com/p/android/issues/detail?id=201541 Mar 01 07:34:57 adq lol yeah i saw that :D Mar 01 07:35:00 :() Mar 01 07:35:08 but in this case the fragments are going into bad states Mar 01 07:35:16 its just that we get a nice warning :D Mar 01 07:35:25 sometimes they don't show up in the viewPager Mar 01 07:35:52 man this 23.2.0 compat latest update... so many issues Mar 01 07:36:20 the dreaded WrongForum Mar 01 07:36:27 I've seen some applications start up by showing an overlay with arrows pointing to important features. Is there some simple way to implement that? In particular, to make sure that the arrows align nicely over the widgets to which they point? Mar 01 07:37:11 adq long time ago, android 4.1 x86 images were spewing out hundreds of entries per second ... Mar 01 07:37:23 you couldn't see shit unless a strict filter was applied Mar 01 07:38:14 yup i remember, android is still extremely verbose and i found these logs rarely useful Mar 01 07:43:36 people Mar 01 07:43:51 how to disable recyclerview items clicking ? Mar 01 07:44:38 or may there is a way to disable whole recyclerview ? Mar 01 07:47:05 ondroed: the second answer is to visibility:gone Mar 01 07:47:08 :D Mar 01 07:47:10 jk Mar 01 07:48:56 no Mar 01 07:49:12 i need it to be visible, but disable Mar 01 07:49:19 disabled as fuck Mar 01 07:49:30 you can override the clicking listener inside viewholder iirc Mar 01 07:50:09 or just set clickable false to recyclerview Mar 01 07:50:27 it does not help Mar 01 07:50:58 huh? Mar 01 07:51:06 recyclerview items don't click, unless you give them a click listener Mar 01 07:51:13 or a click-reactive background/foreground Mar 01 07:51:21 y-yea Mar 01 07:51:28 they have click listener Mar 01 07:51:40 if you register it then its clickable Mar 01 07:51:52 then remove the click listener Mar 01 07:52:03 seems rather obvious Mar 01 07:53:23 it's not conveniently Mar 01 07:54:16 then write something to make it convenient Mar 01 08:06:05 morning fellas Mar 01 08:07:07 good morning Mar 01 08:34:44 sci-fic: morning Mar 01 09:13:31 good morning boys and girls, or ladies and gentlemen's or just developers :P Mar 01 09:16:04 morning Number5 Mar 01 09:21:23 * Ankhwatcher suggests "fleshbags" Mar 01 09:23:27 good morning boys and girls, and developers* Mar 01 09:25:51 anyone notice any issues downloading from dl.google.com, example: https://dl.google.com/dl/android/studio/install/1.5.0.4/android-studio-bundle-141.2422023-windows.exe keeps giving me "network error" after about 75% downloaded Mar 01 09:25:57 good morning is an oxymoron Mar 01 09:39:01 Does anyone know a nice compass library I can use? I made one myself, but the animation doesn't work well because I get too many sensor events per second. Mar 01 09:43:57 can anyone please help solve this issue? https://github.com/ftwhlp/TTS/issues/1 Mar 01 09:45:00 ftwhlp may be a clean+build as the first step? Mar 01 09:45:34 I did clean and it said build successful. However then I rrun debug, and it comes up with the same errors again Mar 01 09:46:01 (am a beginner) Mar 01 09:46:08 ... and I don't see the repo structured correctly for an Android Studio project. Mar 01 09:49:18 Hey.. can an NDK developer work directly with HAL? Mar 01 09:50:34 Not worried about "should he" I'm wondering "can he" Mar 01 09:53:12 napster: could you please let me know what other files are missing, I only uploaded where the errors came up as the full project is located elsewhere on github Mar 01 09:53:30 Hello everyone, is ther anyway i can get the name of activity i am on in android studio LogCat Mar 01 09:53:37 hi guys! I want to create a test environment for testing arbitrary apps with the emulator. what's the recommended way to get an execution log of an app? logcat can't be filtered for one app right? i can not change the code of the application. The problem is, i dont want exceptions from the system itself or other apps in the execution log, when i evaluate it. Mar 01 09:54:06 I have the app running on my phone and i want to get the activity name when i load the activty Mar 01 09:57:56 can anyone advise once I have cleaned the project, the next step is Build > rebuild? Mar 01 10:07:15 ftwhlp Can you make sure your project is structured correctly? Mar 01 10:07:50 may be get familiarised with Android Studio first? Mar 01 10:21:16 hi, how does AV for android works? where i can find more information about it? (all i found so far is useless article like "Android antivirus apps are useless") Mar 01 10:22:00 then it wasnt useless article Mar 01 10:22:40 yes but i am looking for technical information how they detect. what are the methods Mar 01 10:22:43 Who need antivirus? Mar 01 10:23:19 i know that antivirus isnt needed but i want to learn how they works Mar 01 10:23:36 oh Mar 01 10:26:35 someone? Mar 01 10:27:38 I think most people here would disagree with your premise that they work Mar 01 10:33:46 Bored: If you figure it out, please post a gist? The idea that an app crosses the sandbox is rather interesting. Mar 01 10:49:46 I'm looking to create a sound in android via NDK.. Most examples for NDK sound include playing a sound file. Anyone know how to make sound.. I'm looking for a simple sound generator. Mar 01 10:51:34 what do you mean Mar 01 10:51:45 like making some raw data and then playing it? i.e. http://stackoverflow.com/questions/9137297/generating-sounds-without-a-library Mar 01 10:52:06 Yeah. that might do it. Mar 01 10:53:38 so probably better look in C/C++ than android, althought youll most likely to find libraries like openal and whatnot which i think are not available for android Mar 01 10:55:44 openSL ES .. Mar 01 10:56:06 if only java had traits... Mar 01 10:57:30 I've a c app running, so I'm digging.. I want to try making sounds at various levels out of different ears Mar 01 11:01:50 baash05, start with a simple sin oscillator at a given frequency, your question is too generic atm Mar 01 11:02:09 Is it better to use fixed vertex data in VBO and then changing size using glScale or updating the vertex data instead? Mar 01 11:02:12 actually that would be perfect.. I'm really fishing. Mar 01 11:03:22 And I don't really have specific questions yet. Mar 01 11:05:04 isnt porn a "sin oscillator" Mar 01 11:13:14 Are Exceptions always priority E and higher in logcat? Mar 01 11:14:21 well E is lowest isnt it Mar 01 11:14:32 ahh there is assert below Mar 01 11:15:43 E is lower than D? Mar 01 11:16:28 what do you mean by priority Mar 01 11:16:30 log level? Mar 01 11:16:32 yes Mar 01 11:17:42 ah ok. in as e is highest. in eclipse it used to be (?) the opposite Mar 01 11:17:50 anyway sometimes exceptions are W Mar 01 11:18:41 Ashiren: Why and when? Mar 01 11:19:15 i.e. in background thread Mar 01 11:19:23 when throwing exception doesnt stop the app Mar 01 11:23:07 alright, ty Mar 01 11:40:37 can a JNI app reach down to the kernal? Mar 01 11:41:04 Hi, anyone willing to work for $, on this app... https://github.com/BenoitDuffez/MyMine Mar 01 11:52:30 baash05, if by reach down to the kernel you mean make system calls, then yes Mar 01 12:02:17 How low (close to the metal) can an app developer go? That is, on an unlocked phone? Mar 01 12:03:39 I suppose only one way to find out :) Mar 01 12:04:02 if the phone is unlocked (as in, you have root) you can do everything the OS can Mar 01 12:05:41 I'm looking for the lowest I can get on an unlocked phone.. Mar 01 12:05:53 oops.. I mean on a locked phone Mar 01 12:06:08 Not sure why I keep typing unlocked. :( Mar 01 12:06:34 ehm, well you can run native code under user-level permissions Mar 01 12:08:39 And could you write kernel level stuff there? Or how about just HAL level stuff? Mar 01 12:08:59 well no, you could trivially compromise the security if you could Mar 01 12:09:16 that would make the distinction locked/unlocked rather nonsensical Mar 01 12:11:28 I'm just playing with the idea of finding out how far down I can go.. As an experiment. Mar 01 12:18:00 Hello Mar 01 12:19:12 I need help integrating gcm with google app engine as app server Mar 01 12:43:44 Do you think is ok to extend views to add some behavior to them? For example, there is a ProgressBar that I use to control some behavior by two or tree methods inside the fragment. I'm thinking to create a custom ProgressBar that incorporate these methods. Do you think it's ok ? or should I avoid it ? Mar 01 12:45:22 I think its ok Mar 01 12:46:39 I do the same to textViews wen I need a custom behaviour Mar 01 12:47:23 Why can't I access setVisibility from inside ProgressDialog ? Mar 01 12:48:22 wviana: its called a custom view Mar 01 12:48:30 basically when you need custom behaviour Mar 01 12:49:10 jvrodrigues: Do you know why I can't access the method setVisibility inside my custom view ? Mar 01 12:50:06 not even this, super or just the method. :( Mar 01 12:51:30 ofc you can Mar 01 12:51:50 as long as it extends View Mar 01 12:52:05 Material Design guidelines advices me to use #FFFFFF on 50%. I can set textColor="#FFFFFF" but how do I get 50% ? Mar 01 12:55:39 I am working on gcm with google app engine module as backend server Mar 01 12:55:47 I got this error: http://pastebin.com/pMTGv78K Mar 01 12:55:53 Do you know some expression in english to when your doing something really stupid for not paying attention ? Mar 01 12:55:57 I looked it up and it had to do with having more than 65k methods which was weird cuz I used a new /blank project and the way round it is to enable multiDex in build.gradle Mar 01 12:56:16 I have always seen multiDex as something to avoid as I have read that it slows down apps. Is there any other way to use Google App engine without enabling multiDex as in am I implementing it the right way? Mar 01 12:56:29 Nnabueze: thats because you are importing the WHOLE google play library Mar 01 12:56:34 and you shouldnt if you are only using gcm Mar 01 12:56:54 compile 'com.google.android.gms:play-services-gcm:8.1.0' Mar 01 12:56:59 user only that one Mar 01 12:57:26 ok thanks Mar 01 12:57:33 would change it now Mar 01 12:58:33 smallfoot-: #7FFFFFFF Mar 01 12:58:41 jvrodrigues, thanks Mar 01 12:58:42 I think Mar 01 12:59:16 jvrodrigues, I found a lookup table http://stackoverflow.com/questions/15852122/hex-transparency-in-colors#17239853 Mar 01 12:59:36 It says it should be 80, as #80FFFFFF Mar 01 13:00:07 there is no visible difference between 80 and 7F Mar 01 13:00:18 Oh Mar 01 13:00:20 7F is rounding down and 80 is rounding up Mar 01 13:00:25 I see Mar 01 13:01:52 Hey guys. Is there any other way to implement the back navigation while keeping the toolbar from one screen to another, than using addToBackStack() and popBackStack()? Mar 01 13:01:56 Is it how you do it? Mar 01 13:02:31 If I use different activities the toolbar changes, it is visible the change from one screen to another Mar 01 13:02:42 So I intend to use fragment transactions instead Mar 01 13:02:49 Sounds good? Mar 01 13:03:30 Mattx, yes thats wat I use too to navigate between fragments Mar 01 13:04:17 Nnabueze, I'm looking for a behaviour similar to Gmail app when you open an email and press back. Am I on the correct track? Mar 01 13:04:37 (Android 4.4.x) Mar 01 13:06:24 Mattx, I think you are Mar 01 13:07:28 jvrodrigues, thanks it worked Mar 01 13:08:13 Mattx: if you change the layout the action bar is in it will then change Mar 01 13:08:43 Any idea how I can figure out where my stuck app is stuck? like even ballparking what is causing it? Mar 01 13:09:05 jvrodrigues, I know, I'm only changing the content fragment Mar 01 13:09:17 I just don't want the "back animation" to occure Mar 01 13:09:18 what is it that is changing in the action bar mate? Mar 01 13:09:23 hi, can i check the version of my app in google play inside my app? Mar 01 13:09:37 Syzygy: tried logs before and after statements? Mar 01 13:09:39 i need check if has a new version, to force app update Mar 01 13:09:41 is it in the main thread? Mar 01 13:09:47 is it on other threads? Mar 01 13:09:59 jvrodrigues, when you have two activities and press back, the whole screens gets animated and disappear, showing the previous activity instead Mar 01 13:10:12 yes indeed Mar 01 13:10:21 well if you configure it to work that way at least Mar 01 13:11:00 I want the toolbar to keep exactly the same. The only changes are the content fragment and the hamburger icon on the toolbar to a back arrow Mar 01 13:11:16 then only change those things Mar 01 13:11:32 and in your fragments dont set titles or create option menus Mar 01 13:11:32 How do you do that using activities? Mar 01 13:11:43 with activities you cant lol, the action bar will be recreated Mar 01 13:11:48 :/ Mar 01 13:11:58 That's my point. I asked here is the way to go is using fragment transactions instead of activities Mar 01 13:11:59 :) Mar 01 13:15:55 if the * Mar 01 13:18:01 sorry didnt get you I guess Mar 01 13:18:56 Well most applications should use fragments. But applications may have multiple activities too. Mar 01 13:19:16 You should use multiple activities when it makes sense to do so. Such as when handing entirerly differentthings. Mar 01 13:19:52 But sure, use fragments together with drawer or tab bar Mar 01 13:20:28 smallfoot-: thats the first step to start a 5 hours long discussion in this channel that wont get you anywhere Mar 01 13:20:48 some people prefer to use views, others fragments Mar 01 13:21:07 in the end it doesnt really matter, its whatever youre more confortable with Mar 01 13:21:36 Alright Mar 01 13:30:00 hi, can i check the version of my app in google play inside my app? Mar 01 13:30:41 I don't know if that is possible Mar 01 13:47:51 hi, I need to record some events that happen on device and timestamp them. however the datetime on the device can be anything, which is far from ideal Mar 01 13:48:50 I need to come up with a strategy to overcome this problem, even if I ping the server from time to time for correct time, I have to find a way to keep this information updated locally so that I can use it whenever an event happens Mar 01 13:49:55 i tried googling for "local time" "server time" "best effort" and a few other things but came up short of relevant answers. can anyone suggest anything? Mar 01 14:04:48 t0th_-_: you can check the version of your app inside your app, its unrelated to google play though Mar 01 14:05:03 i need check the latest version of app Mar 01 14:05:18 maybe my it is not, i need compare with a google play version Mar 01 14:06:26 t0th_-_, well you know the versioncode, and you are managing the play version, why do you need to read it from there? Mar 01 14:07:51 to force user to update Mar 01 14:08:34 just host the versioncode somewhere on your server/site and use that, it would be a lot more easy Mar 01 14:08:55 alternative way would be to parse the playstore entryand get the version from html Mar 01 14:13:13 Is retrofit-beta4 ready for production? Mar 01 14:20:16 Would anyone be able to help me get wifi going on an android 4.2.2 device? It works as root shell but android will not recognize it's working. Mar 01 14:25:16 Is there a portable way to code apps for both Android and desktop (say Linux)? Mar 01 14:27:35 Eduard_Munteanu: qt, or something html5 related Mar 01 14:27:45 openframeworks too Mar 01 14:27:57 yea probably html5 will be ok for most cases Mar 01 14:28:43 or OGL, check out the Kodi source Mar 01 14:30:35 How do you accept Android 6 permissions in UI/Instrumentation tests? Mar 01 14:34:09 Hi.. It's possible to use getLinkSpeed to calculate uplink and downlink? Mar 01 14:36:28 I have a lib MyLib that I made for my app. In that lib I add a compile statement to add another lib (NotMyLib) that contains some native .so files. If I add MyLib to my app, it complains it can't find the .so files. Is there any way around this? Seems like the only solution is to add the NotMyLib into my app, and then it works, but it actually belongs in MyLib. Mar 01 14:39:02 https://docs.gradle.org/current/userguide/dependency_management.html Mar 01 14:39:16 transitive dependencies I believe, though I am not sure if it works with so files Mar 01 14:41:56 jvrodrigues: So I'm looking in the aar thats generated by my lib, and I don't see the so files in there. So this means I need to change the build.gradle file of MyLib right? Mar 01 14:42:32 setting transitive = true in the aar dependency statement Mar 01 14:42:34 should in theory work Mar 01 14:43:17 transitive is default Mar 01 14:43:46 Damn Mar 01 14:43:57 wait, it is? Mar 01 14:44:08 of course Mar 01 14:44:23 sounds like your aar is busted, eghdk Mar 01 14:45:08 pfn: But it works when I put MyLib and NotMyLib in my App build.gradle. Mar 01 14:45:31 Now I just want to my NotMyLib into MyLib, and only depend on MyLib in my App Mar 01 14:47:18 rodrigo_golive, hm, is that Qt thing something like GTK's HTML5 backend? Mar 01 14:47:39 i am using a service with alarmmanager, i am setRepeting to every 15 seconds, how i can run this only 5 times? Mar 01 14:47:45 (I know what Qt is, but I'm unclear how Qt helps on Android) Mar 01 14:51:15 Could someone tell me how to troubleshoot this? http://pastebin.com/9Zc6WzBw Mar 01 14:51:28 I guess I'm too lazy for this industry, others just dive in and code 5 variants of an app for the different platforms. :) Mar 01 14:53:11 Would .so's be contained in the .jar in the aar? Mar 01 14:53:53 Hello guys, I want to give my listview cell a drop shadow like the elevation shadow in Lollipop (for example CardView), is there a nice lib for that or does someone know who made some nice xml drawables including a nice shadow one? Thank you. Mar 01 14:54:16 eghdk, no Mar 01 14:54:33 erm, actually, I don't remember Mar 01 14:56:38 pfn: So in MyLib I included NotMyLib which are the .so files for sqlcipher. And theres no sign of any .so when I pull apart the aar of MyLib. Any idea why .so's don't get added to an aar? Mar 01 14:57:10 Anyone have this weird issue where emptying a recyclerview leaves one item on the list Mar 01 14:57:18 it doesn't __actually__ exist, but it's left there UI-wise. Mar 01 14:57:39 and it stays there when the recyclerview is re-populated Mar 01 14:58:35 eghdk, don't know, refer to the gradle aar building docs Mar 01 14:58:43 I don't gradle Mar 01 14:58:57 Do you maven? Mar 01 15:00:29 https://github.com/pfn/android-sdk-plugin/blob/master/src/tasks.scala#L569 Mar 01 15:00:41 .so go in jni/ in the aar Mar 01 15:08:50 pfn: So if I tear down MyLib aar and I don't see a jni folder (should contain the SQLCipher .so's) is that a problem with SQLCipher or MyLib? Mar 01 15:09:51 it's a problem of sql cipher Mar 01 15:10:23 your aar must not rebundle transitive so Mar 01 15:14:14 pfn: Okay. Cool. So one last thing. Any idea why when I bundle the SQLCipher @aar in MyLib AND I bundle MyApp with MyLib + SQLCipher it would complain about duplicate .so files? Mar 01 15:15:03 Because I had to start doing that whole pickFirst 'lib/armeabi/sqlcipherwhatever...' for that not to happen. Mar 01 15:21:01 eghdk, the answer is obvious, it's duplicate because you made it duplicate Mar 01 15:40:36 hi guys quick question Mar 01 15:40:51 quick answer Mar 01 15:40:53 how come the shadow attribute doesnt render for a regular button? Mar 01 15:40:57 yes Mar 01 15:41:11 "shadowColor" Mar 01 15:41:24 I want to give a border to my button text Mar 01 15:41:28 but it wont take! Mar 01 15:42:16 says : "Paint.setShadowLayer is not supported." Mar 01 15:42:28 What the H bro! Mar 01 15:47:57 Eduard_Munteanu: qt has nothing to do with html5, but it's c++ and cross-platform Mar 01 15:57:28 pfn: But the aar doesn't show the jni/so files so how would can it even cocmplain about that. Mar 01 15:57:59 eghdk, because the build loads jni from the classes.jar of direct aar dependencies Mar 01 15:58:42 hi everyone, I am a ruby dev, and now I'am dealing whit an android built, anyone kwno how to make the call from the handset to my server throught https, instead of http: or a blog post or something Mar 01 16:01:55 g00s: sup? Mar 01 16:02:48 Hey all Mar 01 16:03:44 perlsyntax: HAI Mar 01 16:04:29 hey thepoosh . theming my app (this is hard!) Mar 01 16:04:40 hmmmm Mar 01 16:04:44 we have a UI guy for that Mar 01 16:04:46 :P Mar 01 16:06:37 taskwarrior for android released. i use the command line its great Mar 01 16:07:05 cool Mar 01 16:08:22 g00s: I thought themes are easy peasy Mar 01 16:08:46 i think most people change 3 or 4 attributes and call it a day Mar 01 16:09:27 i;m trying to make 2 variants; nv red and nv green which are all red / green on black background - so everything has to be tinted right Mar 01 16:10:16 you can use the day/night themes Mar 01 16:10:31 its not that easy ;) Mar 01 16:11:00 there can't be a pixel anywhere that is not a shade of green or red - Mar 01 16:11:16 guess one thing i can't control are the colors of icons in the status bar, so that stinks Mar 01 16:12:59 i,m surprise you can;t control icon colors.. really? Mar 01 16:13:22 icons in nav & status seem to be white always Mar 01 16:15:29 or black Mar 01 16:15:41 can't we set our own Mar 01 16:16:40 pfn is there any way to control that ? Mar 01 16:18:06 i dont think i've ever seen status / nav icons being black anywhere. maybe the oem does that ? Mar 01 16:18:32 ya, the oems cusomize big Mar 01 16:19:08 the clock hides status / nav in night mode , maybe thats why Mar 01 16:19:23 (google clock) Mar 01 16:21:55 Hey thepoosh Mar 01 16:25:43 pfn: "because the build loads jni from the classes.jar of direct aar dependencies" Sorry didn't follow that statement. Can you explain. It's okay if not. Appreciate it. Mar 01 16:55:54 adb monkey only work with a device? Mar 01 16:58:39 odd Mar 01 17:01:51 Hello. I'm considering porting my api code to retrofit. In the current iteration, I fetch and validate a json schema and use this to assign types to api response json. From what I understand about retrofit, there doesn't seem to be any way to validate a response schema. Is there a way to check if an api response includes the required types? Mar 01 17:02:08 I assume there is some exception thrown when the POJOs can't be created, but I can't see one? Mar 01 17:02:47 In native code, I'm making a call to memcpy, but I'm getting a segfault down the line in libc.so: /system/lib/libc.so (__memcpy_base+88) Mar 01 17:03:17 Googling it, you get a bunch of Unity users who encountered the same message in older versions of Unity, so I can infer that it is a programming error on my part Mar 01 17:03:33 Does Otto use reflection or is it 100% static? Mar 01 17:03:45 (because Unity's upgrades fixed the problem, not Android's upgrades) Mar 01 17:04:42 jaana: reflection Mar 01 17:04:57 JakeWharton: Any reason for not using annotation processing? Mar 01 17:05:01 i take that a no Mar 01 17:05:07 jaana: it doesn't offer any benefits Mar 01 17:05:30 JakeWharton: Really? You prefer using reflection over static dispatch? Mar 01 17:05:36 JakeWharton: isn't reflection a lot slower on ART compared to static dispatch? Mar 01 17:06:09 I looked into a code generation-backed Otto 3 years ago Mar 01 17:06:12 wasn't worth it Mar 01 17:07:00 cordovafan8: retrofit doesn't care about serialization. use a serializer that can validate the schema like Jackson Mar 01 17:07:42 JakeWharton: right, but it must throw something if the serialization fails, correct? Mar 01 17:07:51 don't know. i'm not a Jackson user Mar 01 17:08:05 if the serializer throws it will be propagated Mar 01 17:08:20 if you've got a structure of POJOs that supposedly matches the response, then if the response changes it should throw something, which is essentially response type validation anyway Mar 01 17:08:37 so I'm considering if I even need to do json schema validation Mar 01 17:08:47 currently I use jackson and the fpe plugin for validation Mar 01 17:08:47 anyone tried using retrolambda? was it worth the trouble of getting it up and running? Mar 01 17:08:52 most serializers just ignore values which don't map to fields Mar 01 17:08:57 kommunicate: works fine. no trouble. Mar 01 17:09:18 jakewharton: did you get retrolambda working with Android tests? Mar 01 17:09:32 yeah it works Mar 01 17:09:34 cordovafan8: if you're using jackson you can add the @JsonIgnoreProperties annotation to ignore any differences between the json you get and the pojo Mar 01 17:09:39 awesome, thanks JakeWharton Mar 01 17:09:45 So I'm just doing something wrong, and it's not just impossible. Mar 01 17:09:52 kommunicate: I would like to do exactly the opposite Mar 01 17:09:55 That already helps. Thanks. Mar 01 17:10:15 cordovafan8: parsing will fail in that case Mar 01 17:10:24 i don't think we can use default methods or static methods on interfaces in tests, but lambdas, method refs, and try-with-resources works fine Mar 01 17:10:49 kommunicate: do you mean serialization? I imagine parsing will succeed on valid json that just doesn't match your schema/pojos Mar 01 17:11:09 i thought try-with-resources was one of the things that Android actually had from Java 7+? Mar 01 17:11:31 only if you support minSdk=19+ Mar 01 17:11:41 retrolambda rewrites it to work on API levels before that Mar 01 17:12:37 cordovafan8: sorry, I think I misunderstood what you were attempting to do Mar 01 17:12:55 I want to do response validation basically Mar 01 17:13:05 ideally according to a schema Mar 01 17:13:53 Consider versioning your api instead, and not randomly changing the schema Mar 01 17:14:44 SimonVT: I'm thinking more of situations where you don't control the api, and it changes Mar 01 17:15:11 but yes, ideally there would be no overlap at all Mar 01 17:16:38 i'm not sure what you're looking for here -- are you concerned about the case where you have required fields but you don't get them, or that data is missing, or..? Mar 01 17:18:11 yes to those Mar 01 17:18:31 or the data is not the correct type, etc Mar 01 17:18:44 I would really just like to maintain type and required field integrity Mar 01 17:18:52 but maybe I'm going about it all wrong Mar 01 17:19:03 Hello! Mar 01 17:21:13 anyone able to tell me why this oerlaps my onscreen buttons? https://gist.github.com/anonymous/24975a6402502bd60f52 Mar 01 17:21:18 otto uses reflection, and the big thing was why bother? Mar 01 17:21:24 oops, was scrolled up Mar 01 17:21:34 cordovafan8: type shouldn't matter (why would it be different?) and I think Jackson doesn't support required fields on deserialization, so you have to go back and check the fields all got propagated manually Mar 01 17:21:42 I've set android:layout_height="wrap_content" still overlaps the buttons though :_/ Mar 01 17:27:11 hi hi hi Mar 01 17:27:42 ah... screw these buttons... Mar 01 17:27:48 how do i add entries to the ExpandableListView Mar 01 17:27:54 you have no buttons in your paste Mar 01 17:28:09 from onCreateView and not with arrays.xml Mar 01 17:28:25 linuxuz3r, by using the adapter Mar 01 17:29:09 This code should put my closeBtn (ImageView) in the top right but it's actually top-left. Is there a simpler way to do it? This looks over-engineered to me: http://pastebin.com/GAeU4CT7 Mar 01 17:29:32 I know the width and height of its container btw if I could just use that Mar 01 17:29:37 pfn: the android buttons, back, app tray, etc. Mar 01 17:29:42 (I know it dynamically) Mar 01 17:31:01 andymccall, nothing in there does that Mar 01 17:31:23 windsurf define it in xml and then use LayoutInflator.from(context).inflate(R.layout.view, null, false); Mar 01 17:31:42 hey hey hey Mar 01 17:32:26 http://pastebin.com/j4LGpmqE Mar 01 17:32:34 it crashes on onCreateView Mar 01 17:32:49 that code is onViewCreated Mar 01 17:33:14 doesn’t matter Mar 01 17:33:37 and if you’re going to say something is crashing, then post the stack trace Mar 01 17:33:43 Stack Trace, or it didn’t happen Mar 01 17:33:57 pfn: https://imgur.com/KlLGYEW like so Mar 01 17:34:44 andymccall, your theme Mar 01 17:35:15 http://pastebin.com/iMwHjihE Mar 01 17:35:26 how are you copying this? Mar 01 17:35:43 nevermind Mar 01 17:35:50 this is the same trace from yesterday Mar 01 17:39:43 pfn: how so? Do you mean the theme of the render window, or the theme set in my code? Mar 01 17:40:09 yes i fond the error Mar 01 17:40:10 damned if I know what you're doing or looking at Mar 01 17:40:43 how do i set adapter to use ExpandleListView instead of ArrayList Mar 01 17:41:05 by setting that adapter Mar 01 17:41:25 linuxuz3r: that question is pretty incomprehensible Mar 01 17:41:46 I prefer to use .doMagic() for that Mar 01 17:42:40 adapter can bind to any views Mar 01 17:42:52 adapter can load from any datasource Mar 01 17:43:08 load from arraylist, bind to expandable list view Mar 01 17:43:18 I'm in the process of reading up on RxAndroid/RxJava and Retrofit 2.0, is there some recommended reading for this stuff? I've found a good deal of good content already, just wondering if others have found particular resources helpful. Mar 01 17:46:42 pfn: sorry to bother you again, can you explain what you mean when you say its the theme? I'm a newbie to Android dev... Mar 01 17:46:59 andymccall, it means you set your theme to allow your view to expand beyond normal bounds Mar 01 17:47:09 and preview is useless, if that's what you're using to make this determination Mar 01 17:51:19 Is anyone here using gitlab-ci for Android projects and tests? Mar 01 17:56:56 what do people recommend for a json parser/serializer? I've read good things about LoganSquare and Moshi, but they aren't as mature as Jackson/Gson. Mar 01 17:57:51 pfn: ah, okay...getting off of train.. thanks for help pfn! Mar 01 17:59:17 Okay, solved that question. Mar 01 17:59:22 Is there a way in gradle to change the javac compiler in use? (Actual goal: run errorprone on the source code https://github.com/tbroyer/gradle-errorprone-plugin has some work around a gradle-errorprone plugin but relies on the 'toolChain' property to work.) Mar 01 17:59:41 Another one: Anyone know of a simple way to handle FHIR (de)-serialization together with Retrofit? Mar 01 18:02:15 (specifically, FHIR v1.0.2 encoded as JSON) Mar 01 18:02:34 (via DSTU2, ofc) Mar 01 18:19:10 Soo if text changes between device to device how do I choose a standard FONT? Mar 01 18:21:31 going back to the conversation about android conventions... xml attributes are usually camelCase right? so I can have like context.getString(R.string.somethingLikeThis) ? Mar 01 18:22:53 cart_man: standard in terms of names, or the actual font itself? Mar 01 18:28:14 grekkos: I’ve thought they were underscored. like_this Mar 01 18:29:16 s73v3r question, if you org by feature - lets say you have a content provider, and these usually have a Contracts class, which you can give clients - that Contracts class typically has all the Interfaces and helpers, across everything Mar 01 18:29:31 s73v3r ideally, org by feature, each contract would be with the module though Mar 01 18:29:45 how do you handle that ? Mar 01 18:29:52 whats a good drop down with selections Mar 01 18:30:39 try having the interfaces in the feature module, with the Contracts class having references to them. And that I guess would be in some kind of Common module Mar 01 18:33:34 guys Mar 01 18:33:39 hm Mar 01 18:34:10 is view is static right Mar 01 18:34:30 the Contracts class sounds like a rudimentary Dependency Injection thing, right? Or maybe a Service Locator? Mar 01 18:34:46 i want expandable list view but only with 1 entry per row Mar 01 18:34:47 s73v3r typically all the constants and stuff for field names Mar 01 18:34:59 so you could ship it as a jar, people could include it in their project Mar 01 18:35:24 and helpers for constructing Uris Mar 01 18:35:40 guys how about helping me Mar 01 18:36:23 g00s: Ahh, in that case you might need to change things up a bit Mar 01 18:36:26 .doMagic() Mar 01 18:37:19 s73v3r seems like android is always conspiring dev to use worst practices :P Mar 01 18:37:45 well, I don’t know how jazzed I am about having One Contracts class to rule them all Mar 01 18:38:00 nevermind Mar 01 18:38:07 s73v3r thats pretty much how its been done, look at Contacts, Calendar, etc Mar 01 18:38:07 i forgot the Content Provider part of it Mar 01 18:38:13 yeah Mar 01 18:38:25 Uhm, Building and deploying the app takes more than a while, mostly due to building taking so long, is there anyway I can improve it? Mar 01 18:38:43 Note that my bottleneck is the 2 gigs of RAM, but hey I have nothing else open Mar 01 18:38:43 OverCoder gradle plugin 2.0 is supposed to be a lot faster Mar 01 18:39:26 OverCoder, definitely more ram, and a ssd. there isnt much else you can do; the build is an expensive process Mar 01 18:39:32 i was just watching a video of hans dockter talking to googlers Mar 01 18:39:46 i dont think gradle is going anywhere as long as google is using it for android .. Mar 01 18:39:48 anything in particular? Or about how bad the niners suck? Mar 01 18:40:36 hmmm Mar 01 18:40:45 what are the advantages and disadvantages of using idea to code android instead of android-studio? Mar 01 18:40:50 g00s, How do I check I am using 2.0? I use Android Studio 2.0 Beta 5 Mar 01 18:40:51 can anyone help me figure this one out Mar 01 18:41:08 OverCoder lol you look at your build.gradle file Mar 01 18:41:28 dragorn, hm, yeah I think I should get an SSD, because the disk almost always being used 100% during building Mar 01 18:41:43 jvrodrigues: one of the cons is that you don’t get all the new tools that AS adds. Mar 01 18:41:46 jvrodrigues idea picks the AS bits up at some random time, whatever is best at time of packaging. but its not necessarily the newest Mar 01 18:41:51 OverCoder, that could also be swap. 2 gig is pretty lean these days. Mar 01 18:42:16 jvrodrigues yeah and some things are missing altogether Mar 01 18:42:42 a pro is that you get the newest IDEA, whereas AS randomly picks that up Mar 01 18:43:10 yeah , do you want newest IDE or newest android support :P Mar 01 18:43:36 AS = newest android support, older ide ; idea = newest ide, older android support Mar 01 18:44:11 dragorn, hmm, there's a high chance of that, I think I'll change that soon :p Mar 01 18:45:03 s73v3r: yeah I thought they were underscored too, but then in values.xml google default templates use camelCase for the color name attribute Mar 01 18:45:10 s73v3r using as 2 ? Mar 01 18:45:44 g00s: I am not. I’ll pick it up either when it releases, or when I start a new project Mar 01 18:45:48 s73v3r: like colorPrimary Mar 01 18:45:49 g00s, none of my *gradle files had anything related to the version I am using Mar 01 18:45:52 or w/e Mar 01 18:46:21 grekkos: i guess that’s just my teams convention. I only looked in a layout file, though, cause that’s what I had open Mar 01 18:46:34 yeah Mar 01 18:46:53 I'm just a little confused about what I should be using where, I was also under the impression everything was underscored until I saw those colors Mar 01 18:48:55 well, colorPrimary is an attribute, which is different from a resource Mar 01 18:49:07 eh? Mar 01 18:49:12 so that might give you some guidance Mar 01 18:49:17 isn't it in a resource file? Mar 01 18:49:22 in an xml attribute Mar 01 18:49:36 i mean it defines an XML attribute Mar 01 18:49:48 something you’d use in a layout file or a style file Mar 01 18:49:50 oooh Mar 01 18:50:01 is that so Mar 01 18:50:10 whereas something like dialog_ok or dialog_cancel is a resource Mar 01 18:50:27 so if I define my own color @color/brandGreen or some such Mar 01 18:50:34 should that be camel or snake Mar 01 18:51:16 snake Mar 01 18:51:27 because the color itself is a resource Mar 01 18:51:38 donkey Mar 01 18:51:40 keep in mind, i’m kinda just making this up as I go along Mar 01 18:51:41 * OverCoder hides Mar 01 18:51:50 (So neither camel nor snake) Mar 01 18:52:54 I would use donkey style but it involves typing too many extra vowels in between words Mar 01 18:53:49 s73v3r: okay haha... so check this out https://gist.github.com/hk0i/ff5c9f9c6f945a40dcba the line break separates the auto generated stuff from what I created... I originally had underscores until I opened up the file and noticed the discrepency Mar 01 18:53:50 thanks Mar 01 18:54:00 but what does IDEA have that AS doesn't? Mar 01 18:54:03 anything worth mentioning? Mar 01 18:54:04 jvrodrigues, everything Mar 01 18:54:12 it has ideas for one thing Mar 01 18:54:13 if you only do android, use android studio Mar 01 18:54:20 if you do more than just android, use IDEA Mar 01 18:54:22 I don't only do android Mar 01 18:54:24 that's all it boils down to Mar 01 18:54:32 jvrodrigues: Do you do much enterprise Java? If so IDEA is what you want Mar 01 18:54:34 unless you like running multiple copies of an IDE just because Mar 01 18:54:39 pfn: does it make sense to use AS for android and IDEA for everythign else or just IDEA? Mar 01 18:54:39 well Mar 01 18:54:44 i have as and idea CE Mar 01 18:54:51 grekkos, I only use IDEA--I have no need of AS features Mar 01 18:54:54 I do a bit of Spring here and there Mar 01 18:55:04 pfn, what are the AS features I would be losing? Mar 01 18:55:06 some people might. if they do, then use AS Mar 01 18:55:08 adb integration? Mar 01 18:55:10 jvrodrigues, nothing really important Mar 01 18:55:16 I thought that aswel Mar 01 18:55:27 you’ll lose the layout stuff Mar 01 18:55:29 IDEA has everything AS has, except whatever popped up in 1.5 Mar 01 18:55:37 pfn: ah I guess I don't know exactly what AS provides over IDEA but I've been using AS for over a year now and I'm finally getting around to needing some non android specific java things Mar 01 18:55:56 i’m fairly certain IDEA doesn’t have the integrated SDK and AVD managers Mar 01 18:56:00 s/things/ide Mar 01 18:56:03 s73v3r, false Mar 01 18:56:07 I use Eclipse for non-android (especiallf or web-things) and AS for android Mar 01 18:56:09 s73v3r, those are mainly unnecessary tbh Mar 01 18:56:20 s73v3r: I think those are plugins actually but i'm not sure Mar 01 18:56:21 since the community IDEA doesnt have things like deploy on server anyway Mar 01 18:56:21 or do you mean integrated as in in the window itself? Mar 01 18:56:23 they’re handy to have, but not necessary Mar 01 18:56:24 ktwo, its not productive to learn two different environments Mar 01 18:56:32 it's the same environment Mar 01 18:56:42 well AS and eclipse isn't Mar 01 18:56:47 i know them both already so it doesnt matter Mar 01 18:56:56 i mean integrated, as in, there’s the button there you can click to open it. you still have access to those tools, just not as conveniently Mar 01 18:57:06 and as said idea is pretty expensive, our company would have to spend a LOT of money to get the required licences Mar 01 18:57:14 s73v3r, still integrated in IDEA Mar 01 18:57:22 it was integrated in IDEA before there was android studio Mar 01 18:57:33 pretty much everything you have in android studio already exists in IDEA Mar 01 18:57:39 including all layout design/preview bullshit Mar 01 18:57:52 only stuff that isn't in IDEA is what is new as of AS 1.5 and 2.0 Mar 01 18:58:09 yea Mar 01 18:58:21 I am considering it because every now and then im required to dive into the spring server Mar 01 18:58:26 ugh no docs for bottom sheet stuff O.o Mar 01 18:58:37 another pro for AS: It doesn’t cost $200 :p Mar 01 18:58:48 plus I do quite a bit of javascript, so I would pickup the all products offer Mar 01 18:58:54 its not the money Mar 01 18:59:03 i know, it rarely is Mar 01 18:59:09 s73v3r: actually, IntelliJ is subscription based now Mar 01 18:59:18 i know, but that still works out to $200 Mar 01 18:59:18 s73v3r: slightly cheaper at the start, but more expensive over time Mar 01 18:59:32 its the other way around Mar 01 18:59:32 well more than that depending on how long you use it right? Mar 01 18:59:40 expensive at the start cheaper at the end Mar 01 18:59:49 is it? Mar 01 18:59:58 I thought it's like $10/mo or something Mar 01 18:59:58 yea Mar 01 19:00:08 after 1 year yea Mar 01 19:00:20 oh Mar 01 19:00:20 but anyways the idea is I either pickup the whole product sale Mar 01 19:00:26 with the cool SQL tool Mar 01 19:00:37 and web storm (the only thing that makes coding js bearable) Mar 01 19:00:58 or keep using my atom/android studio/idea CE setup that I have going on Mar 01 19:01:01 s73v3r, IDEA CE doesn't cost money Mar 01 19:01:17 but he mentioned the full version Mar 01 19:01:24 oh jeez you're right Mar 01 19:01:26 for work, you have $JOB pay for it Mar 01 19:01:41 webstorm isn't part of the IDEA ultimate suite Mar 01 19:01:45 and depending on where you're living could be a tax writeoff Mar 01 19:01:49 at least I don't think so, nevewr tried to edit web Mar 01 19:01:54 its part of the "All Products" bundle Mar 01 19:02:03 yes, it was mostly tongue in cheek. Thank you everyone for ruining the joke Mar 01 19:02:15 oh i see if you pay yearly Mar 01 19:02:22 they give you a discount but it's a huge hit up front Mar 01 19:02:37 not a big deal tbh Mar 01 19:02:49 I have made several times that with android-studio tbh Mar 01 19:02:50 if it's not a big deal then go for it i guess Mar 01 19:03:01 yea, I am considering it Mar 01 19:03:13 It's an awesome product, but for me personally I can't justify the cost yet Mar 01 19:03:22 I will give ultimate a go Mar 01 19:03:24 I'd pay $200 if it were perpetual Mar 01 19:03:31 and then not get updates for a while Mar 01 19:03:37 it is perpetual, as long as you don't get updates Mar 01 19:03:42 but for me $500 subscription is kind of hefty Mar 01 19:03:45 your current version never expires Mar 01 19:03:53 hmm Mar 01 19:03:56 pfn whats the best way to get the freshest support lib sources? i forgot which repo its in. is 23.2 even in the aosp repo ? Mar 01 19:03:57 if the productivity boost is bigger than 2h a month its already worth it Mar 01 19:04:00 so I can buy it for a month at $50 and keep using it? Mar 01 19:04:06 or I have to buy the year pack Mar 01 19:04:15 g00s, in the m2repository, there's a -sources.jar Mar 01 19:04:21 i think for android development only it jut doesnt make sense to get idea licence, the real strengths are for web development, but here if you jsut do it occasionally id still prefer eclipse at no cost Mar 01 19:04:26 grekkos, don't know how that sub works Mar 01 19:04:37 I just know I have a perpetual license to whatever is current Mar 01 19:04:38 oh Mar 01 19:04:53 they don't sell perpetual anymore afaik Mar 01 19:04:53 pfn, you will lose it I think Mar 01 19:04:55 pfn oh neat, duh missed that Mar 01 19:05:06 I think he can keep it as long as he doesn't want updates Mar 01 19:05:07 or will have to subscribe to upgrade Mar 01 19:05:11 jvrodrigues, false, it says so on the license screen Mar 01 19:05:12 yea true Mar 01 19:05:12 yeah Mar 01 19:05:18 hmm Mar 01 19:05:20 whatever is /current/ not as in up-to-date Mar 01 19:05:30 yeah Mar 01 19:05:38 the current version you're running Mar 01 19:05:42 makes sense Mar 01 19:05:50 I like subscription based models though Mar 01 19:05:51 always did Mar 01 19:05:59 me too, when i'm the one getting paid hehehe Mar 01 19:06:13 they make sense Mar 01 19:06:17 it's a really good idea I think I just wish they had both Mar 01 19:07:21 but for me I stick to vim outside of android studio Mar 01 19:07:45 for my other web development things, it's more than enough usually Mar 01 19:08:27 03-01 21:05:13.298 30686-30686/tk.microdroid.microirc E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources Mar 01 19:08:45 I am getting around 23 of messages like that, with each one for some other missing class Mar 01 19:08:47 Is it normal? Mar 01 19:09:12 doesn't sound like it no Mar 01 19:09:23 but I donno I never used that class before Mar 01 19:09:45 Neither me, and I wouldn't have thought it's support, but it's at Error levle Mar 01 19:09:47 * OverCoder shrugs Mar 01 19:09:50 oh looks like you aren't either Mar 01 19:10:04 according to the docs it should be there Mar 01 19:10:27 https://developer.android.com/reference/android/util/ArrayMap.html Mar 01 19:10:27 Hmm, weird, because I have the latest SDK and the Support repo Mar 01 19:10:36 mmmk Mar 01 19:10:37 I wonder if there's a path issue Mar 01 19:10:44 which device are you using? Mar 01 19:10:45 like it's not finding some android things Mar 01 19:10:58 jvrodrigues, Xperia U running ICS 4.0.4 Mar 01 19:12:24 "Added in API level 19" Mar 01 19:12:31 it doesn't find it because it's not there Mar 01 19:13:37 why is it being referenced in a method? Mar 01 19:15:06 feels to me someone failed to set the min sdk on some xperia hot fix Mar 01 19:15:11 Is there some way to notify the onCheckedCnangeListener s of a CompoundButton ? Mar 01 19:17:37 Something like force it to call their onCheckedChanged ? Mar 01 19:17:59 you check it? Mar 01 19:18:19 jvrodrigues, hmmm, got it Mar 01 19:18:28 can someone help me Mar 01 19:18:28 http://pastebin.com/sVacBr7f Mar 01 19:19:17 linuxuz3r, show us fragment and xml with the fragment Mar 01 19:19:17 jvrodrigues Mar 01 19:21:07 linuxuz3r, show some code, the XML Mar 01 19:22:03 linuxuz3r: it’s an error with creating the fragment. Either in the fragment’s XML, or the fragment can’t be instantiated Mar 01 19:22:36 http://pastebin.com/HaVL9CqR Mar 01 19:23:21 where is expListView defined? Mar 01 19:24:00 in the paranoidshiftfragment.java Mar 01 19:24:07 linuxuz3r, It's really bad to try/catch a NullPointerException Mar 01 19:24:08 i didnt post everything of that file Mar 01 19:24:09 I’m fairly sure you’re going to have to inflate the layout before you can access it Mar 01 19:24:21 thats what i am getting Mar 01 19:24:25 You should almost never have a chance of NullPointerException in your app Mar 01 19:24:39 don’t catch NPEs unless you can actually do something about it Mar 01 19:24:50 better to fix why you’re getting the NPE Mar 01 19:24:55 Usually an if statement is enough for that Mar 01 19:24:56 My app on certain devices is causing a System message saying "The app "MyApp" is using 18% of battery". Has anyone seen this? Apparently it's coming from HTC devices. Mar 01 19:25:10 linuxuz3r, your onCreateView method is all wrong mate Mar 01 19:25:26 yeah. you need to inflate before you can try to get references to the widgets inside Mar 01 19:26:25 hi Mar 01 19:26:29 thanks jvrodrigues Mar 01 19:28:04 do I get this wrong or is it very hard to make my UI look the same on phone and tablet that have the same aspect ratio anyways? Even games do it automatically... I mean I can't use one of the physical units, can't use pixels, can't use dp because I don't want same physical size Mar 01 19:28:09 Is there some way to notify the onCheckedCnangeListener s of a CompoundButton ? Mar 01 19:28:12 jvrodrigues: que pasa? Mar 01 19:28:28 jvrodrigues: habla espanol Mar 01 19:29:10 thanks s73v3r Mar 01 19:29:10 linuxuz3r, tienes que criar la vista antes de hamares findviewbyid Mar 01 19:29:23 getView es nulo Mar 01 19:29:52 Toubsi: I wouldn’t put much worry into it. You shouldn’t have the same exact UI on the two platforms anyway Mar 01 19:29:57 porque la razn de haber do metodo onCreateView eres precisamente criar la vista Mar 01 19:30:05 del metodo? Mar 01 19:30:11 idk I speak portuguese, not spanish Mar 01 19:30:19 jvrodrigues: I inflated the inflater and set the layout . all that is recived by a view variable Mar 01 19:30:22 now Mar 01 19:30:31 wait Mar 01 19:30:37 i used that view for instead of get view Mar 01 19:30:38 yes but i want it to be OK at least on bigger devices Mar 01 19:30:39 it works now Mar 01 19:30:40 Um, okay this is part of my service http://pastebin.com/8ZJAEBEg aaand this is the Activity where I bind the service http://pastebin.com/c0KrnZLd , the problem is I am getting a NullPointerException in initialize() in the ChatActivity, I have added some comments, there, why is that happening? Mar 01 19:30:41 take gmail for instance, the tablet variant is much easier to use Mar 01 19:30:51 jvrodrigues: i thought you are filipino Mar 01 19:30:59 but why s not z Mar 01 19:31:02 Note that I start the service before I start the ChatActivity (Starting them from the MainActivity) Mar 01 19:31:29 Toubsi: Are you overriding dimen values for larger devices? Mar 01 19:31:39 http://pastebin.com/nKV7imth Mar 01 19:31:45 no soy portugus mismo :) Mar 01 19:32:09 pero entiendo espaol, escribir es outra cosa Mar 01 19:32:12 :/ Mar 01 19:32:16 s73v3r no my goal was to make one ui for all 16:9 devices... Mar 01 19:32:36 intiendes Mar 01 19:32:37 don’t Mar 01 19:32:59 Have a layout for phones, a layout for smaller tablets, and a layout for larger tablets Mar 01 19:32:59 anyways replace your method by mine and you should be good Mar 01 19:33:05 don't try/catch null pointers Mar 01 19:33:30 generally, don't try/catch anything if you don't have to Mar 01 19:33:34 linuxuz3r: Always try to determine WHY the NPE is being thrown, and guard against that Mar 01 19:33:49 well, if you can recover and fix it, then try/catch Mar 01 19:33:56 (I just tried with BIND_AUTO_CREATE flag while binding, nothing changed) Mar 01 19:34:21 s73v3r, try/catch can be replaced with an if Mar 01 19:34:38 (For NPE I mean) Mar 01 19:34:45 well I think my only other option would be to use percentage then like layout_weight so it will be same on different devices Mar 01 19:34:49 NPE, yes. but in general Mar 01 19:35:18 OverCoder, you never assign a value to the service reference mate Mar 01 19:35:34 Toubsi, why do you want to make it the same, UI elements would be ridiculously big on the tablet Mar 01 19:35:50 * OverCoder checks Mar 01 19:36:05 OverCoder, nvm, misread your code Mar 01 19:36:18 jvrodrigues, Line 56 http://pastebin.com/c0KrnZLd Mar 01 19:37:01 s73v3r: its because getView() is null Mar 01 19:37:09 i had to inflate the resources Mar 01 19:37:14 yes, I know. Mar 01 19:37:25 I was saying, that’s what you do when you get an NPE Mar 01 19:37:35 well if I don't make it the same, it will look ridiculously small on the tablet right Mar 01 19:37:44 when i extend Fragment i thought it inflates the layout right away Mar 01 19:37:59 it doesn't know which layout to inflate until you tell it to Mar 01 19:38:13 and you tell it on create view Mar 01 19:38:19 it will only get a view after you create it Mar 01 19:38:25 so getView is obviously null Mar 01 19:38:32 Toubsi: You need to make a different layout for large tablets, and usually also need to provide different dimen resources Mar 01 19:38:56 I design a flashlight app, and my switch for the on off control is for example 100 dp, but 100 dp is like nothing on tablet then Mar 01 19:39:30 so you provide a different dimens file for tablets, and you set the switch in that Mar 01 19:39:35 err, the switch size Mar 01 19:41:21 yes but also not optimal, do it 3 times test 3 times etc for everything and in-between devices might look strange but I have to do it this way I guess Mar 01 19:43:50 no, what’s not optimal is trying to shoehorn the same thing onto vastly different devices Mar 01 19:44:56 and really, you’re not making the 3 layouts in this case. you’re providing 3 different values for the switch size. that’s it Mar 01 19:45:36 OverCoder, you are not supposed to keep an instance of your service. in your manifest is it in the same or different process as your application? Mar 01 19:48:04 hmm ok thanks s73v3r Mar 01 19:48:45 but if you want to not half-ass the app, you’d provide different layouts for the different form factors. layouts that optimize for the form factor you’re on Mar 01 19:49:02 hi guys hope someone can help me out here. been searching for a solution to this problem for literally days now :/ Mar 01 19:49:02 I am using a webview with some local js scripts to log into amazon. the problem is that amazon handles the login process through some cookies that are being set. it basically stores a session token as a cookie on which subsequent calls rely on. but it seems like those cookies are never being stored. is there any way to accept the storing of cookies in a webview with a local (file scheme) base url? Mar 01 19:49:59 CookieManager.setAcceptFileSchemeCookies(true); and CookieManager.getInstance().setAcceptThirdPartyCookies(mWebView, true); don't seem to make a difference Mar 01 19:50:57 but still strange that even if devices have same aspect and even same resolution just different size you can't make it look the same in android (although in this case I could use pixels but thats bad) Mar 01 19:51:23 dude, just do it the way you’re supposed to Mar 01 19:51:46 you’re forgetting about density Mar 01 19:52:07 either take the effort to support tablets properly, or don’t do it at all. Mar 01 19:52:38 yes Mar 01 19:52:55 http://android-developers.blogspot.com/2016/03/explore-new-google-play-developer.html Mar 01 19:53:45 jvrodrigues, I didn't make it as another process, and I think the default is the same process, and also I need to be always bound to the service Mar 01 19:54:13 so now whenever those “My app got banned because I didn’t do anything wrong (except violate several developer policies I won’t mention)” posts show up on Reddit, we can point to that? Mar 01 19:54:30 Is it normal to have several different IntentService classes, each designed to do one specific task Mar 01 19:54:56 well, the alternative is one that would do multiple things, and that would be worse Mar 01 19:55:03 hum, the iBinder is to communicate with the service, not sure if you can get an instance of the service like that Mar 01 19:55:07 it really depends on those things you’re doing Mar 01 19:55:13 HTTP requests Mar 01 19:55:25 Communicating with an API Mar 01 19:55:46 i could see that. Mar 01 19:56:02 Talking to me s73v3r ? Mar 01 19:56:09 g00s: I want that font they’re using for the IO countdown Mar 01 19:56:13 drose379: yes Mar 01 19:56:31 Ok, thanks s73v3r Mar 01 19:56:44 I just think its a clean way to run specific tasks on background threads Mar 01 19:56:55 Also, I am using otto to communicate from Service back to UI Mar 01 19:57:03 Why is otto deprecated? Mar 01 19:57:18 cause they’re not going to add any new features to it Mar 01 19:57:29 it’s more or less, done Mar 01 19:57:29 But I can still use it? Mar 01 19:57:32 yeah Mar 01 19:57:40 drose379: https://github.com/greenrobot/EventBus/blob/master/COMPARISON.md Mar 01 19:57:53 Would you reccomend using something else? I switched from using the LocalBroadcastManager, I like the EventBus better Mar 01 19:58:12 drose379: well ... greenrobot's eventbus Mar 01 19:58:21 Why MrMaffen Mar 01 19:58:27 drose379: click the link Mar 01 19:58:40 if you like Otto, keep using it, just know it’s not going to get any maintenance Mar 01 19:59:10 Its just very simple I think, subscribe, and post Mar 01 20:01:10 Thanks MrMaffen Mar 01 20:01:30 jvrodrigues, That's how it's done in the docs, google 'Bound service Android', it'll be in the first one or two results Mar 01 20:02:16 Anyone here working on anything cool lately? Mar 01 20:02:45 workshopping a talk on android architecture and lessing dependence on things like Parse Mar 01 20:03:01 Cool s73v3r Mar 01 20:03:08 Tell me more? Mar 01 20:03:31 well, it’s about general app architecture, not android specific Mar 01 20:03:43 drose379: https://github.com/tomahawk-player/tomahawk-android Mar 01 20:03:56 but the idea is trying to get things like Parse or Firebase out to the edges of the app, and not let your main app know about them Mar 01 20:04:02 so you can easily switch them out Mar 01 20:04:15 s73v3r thats the sticking point for many; its easy to think up of solid / clean / mvp in the wild, once you have to apply it to android all shit breaks loose Mar 01 20:04:17 open-source multi-source clean music player app Mar 01 20:04:25 always looking for devs to help me out :) Mar 01 20:04:30 Beautiful MrMaffen Mar 01 20:04:34 Hows it work? Mar 01 20:04:35 And as a bonus, it provides a handy spot to inject mock data for testing Mar 01 20:05:06 g00s: Yeah, I’m kinda cheating by hanging some stuff off the Application class, although it could work with Dagger too Mar 01 20:05:18 drose379: it connects to all types of sources and "resolves" the track you want to listen to to the best available source Mar 01 20:05:32 So how do you connect to Spotify? Mar 01 20:05:35 Do they have an api Mar 01 20:06:11 drose379: yes through their official sdk Mar 01 20:07:35 so in some google apps, when you look at their 'Settings' screens, the PreferenceCategories are actually Cards - is there an easy way to do that ? Mar 01 20:08:52 like Google Fit Mar 01 20:09:01 g00s: you can give the PreferenceCategory a layout attribute in the menu.xml file Mar 01 20:09:26 thepoosh orly ! Mar 01 20:09:32 wut Mar 01 20:09:39 yes Mar 01 20:09:41 sorry Mar 01 20:09:52 took me a sec to figure out what orly meant Mar 01 20:10:30 g00s: http://developer.android.com/reference/android/preference/Preference.html#attr_android:layout Mar 01 20:10:55 is vulkan for android available? Mar 01 20:11:20 the graphics API? I think the new NDK exposes it Mar 01 20:11:34 thepoosh have you tried it yet ? Mar 01 20:11:49 yesir, glide settings has that exactly Mar 01 20:11:55 oh nice Mar 01 20:12:52 PreferenceCategory Mar 01 20:12:59 sorry Mar 01 20:13:01 g00s: https://gist.github.com/yishai-glide/033bd9da70d7f3f56766 Mar 01 20:13:08 snippet from settings screen Mar 01 20:13:22 thanks thepoosh Mar 01 20:13:23 Hmm, Android Studio just froze, anything I can try before killing the process? Mar 01 20:13:40 OverCoder if mac, try killing adb Mar 01 20:13:42 HDD/CPU aren't being used Mar 01 20:13:48 I am on Windows 10 Mar 01 20:13:52 But i'll trying killing adb Mar 01 20:14:33 KILL -9 Mar 01 20:14:42 dead Mar 01 20:14:48 But meh, still frozen Mar 01 20:15:13 OverCoder: WIN+Cntl+Esc Mar 01 20:15:18 and kill it Mar 01 20:15:22 *Ctrl Mar 01 20:15:23 i think google should do LTS releases of AS Mar 01 20:15:37 i'm on 1.5.1, and its far from stable, despite it being the last stable release for a long time Mar 01 20:15:45 well, bug free Mar 01 20:16:32 or of course they could just keep fixing bugs in their stable channel and not abandon it ;) Mar 01 20:16:36 hey g00s Mar 01 20:16:42 hey perlsyntax Mar 01 20:17:00 a new computer I'm sure its stable for pretty much everyone else Mar 01 20:17:11 get a new Mar 01 20:17:14 thepoosh so to get the gap between cards ... Mar 01 20:17:18 you can’t just put something in the stable channel. a build has to be nurtured through the canary channel and be hardened through the beta channel Mar 01 20:17:34 g00s: if you give some paddingTop and some paddingBottom Mar 01 20:17:39 should do the trick Mar 01 20:17:46 maybe a nice 9-patch Mar 01 20:17:46 yeah ok thanks Mar 01 20:17:49 I go for weeks without restarting IntelliJ Mar 01 20:18:05 well i dont have AS crash, its just autocomplete buggers out Mar 01 20:18:19 autocomplete is some fickle shit Mar 01 20:18:24 in xml files Mar 01 20:18:33 you should try it on Swift in AppCode Mar 01 20:18:46 never fails for me Mar 01 20:18:46 the java autocomplete is fine Mar 01 20:19:05 i hate working with git in AS Mar 01 20:19:22 the only git thing I do in AS is blame Mar 01 20:19:27 bach changes are a bitch Mar 01 20:19:36 I only ever used it from the command line Mar 01 20:19:39 i don't use git in AS but it's very annoying Mar 01 20:20:05 pfn: same here, but AS gets messed up all the time Mar 01 20:20:05 s73v3r if you refactor a class name, do you do it through AS or 'git mv' ? Mar 01 20:20:22 through AS. SourceTree is usually smart enough to pick up on it Mar 01 20:20:52 honestly haven't had problems with git in AS either, but i just use it to highlight whats changed. in prefs I have most disabled Mar 01 20:21:43 yeah do all git stuff in sourcetree (ftw!) or command line Mar 01 20:21:58 i like command line Mar 01 20:22:37 i like command line for most things, but for committing and rebasing, i like using a GUI app Mar 01 20:22:51 I like being able to easily pick hunks of changes to commit Mar 01 20:23:52 yeah thats nice too Mar 01 20:24:38 s73v3r: i thought that's what git yolo is for Mar 01 20:25:59 intelliJ has a nice diff viewer in its 'vcs' menu. found out you can run that from the command line Mar 01 20:26:05 but - java - starts kinda slow Mar 01 20:26:33 g00s: beyond compare is much better Mar 01 20:27:06 thepoosh i liked araxis merge the best - but its kinda expensive Mar 01 20:27:22 have to look at beyond compare. i use p4merge , its free and usable Mar 01 20:27:24 company budget Mar 01 20:27:32 BC is amazing Mar 01 20:27:36 a bit pricy Mar 01 20:27:59 oh araxis much much more heh Mar 01 20:28:22 i use p4 merge too. BC isn’t available on Mac Mar 01 20:29:08 s73v3r: i use it on a mac Mar 01 20:29:23 natively, or through wine or VM or something? Mar 01 20:29:33 http://www.scootersoftware.com/download.php Mar 01 20:29:39 natively Mar 01 20:29:42 thepoosh http://www.araxis.com/merge/index.en Mar 01 20:29:44 huh. Mar 01 20:29:57 g00s: 270$ is too damn high Mar 01 20:29:58 back when I used it at work, they didn’t have a Mac version. It was Windows only Mar 01 20:30:08 it was in beta until last year Mar 01 20:31:04 Poop. 3 way merging is a Pro feature Mar 01 20:34:19 * thepoosh gots the pro version Mar 01 20:35:35 g00s: good night, seeya at the end of your day Mar 01 20:35:47 thepoosh gnight ! thanks for the help Mar 01 20:36:19 i'm sure i could get my dog to do this right ... http://digg.com/video/ball-dogs-tennis Mar 01 20:37:28 s73v3r from today, maybe some ideas for presentation http://devblog.songkick.com/2016/02/25/ingredients-for-a-healthy-android-codebase/ Mar 01 21:19:03 hey guys Mar 01 21:20:05 i'm curious about the floatingactionbutton and setting the background resource. I set it to a drawable but it does not take up the whole floatingactionbutton. I have a circular drawable but it only sets it in the middle and does not Mar 01 21:20:13 "fill" the FAB Mar 01 21:20:23 is there a way to set it to the whole FAB? Mar 01 21:27:25 wow, according to InMobi "A new research report says Windows Phone developers earn more money on average than their iOS and Android counterparts." Mar 01 21:27:49 http://www.inmobi.com/blog/2016/02/08/2016-state-of-mobile-app-developers Mar 01 21:28:16 ""Windows Phone is the highest money-maker at $11.4k per month per app." Mar 01 21:29:51 on average? Mar 01 21:29:54 sounds bullshit Mar 01 21:30:09 average developer on microsoft store makes 140k/yr on an app they publish Mar 01 21:30:16 I call shenanigans Mar 01 21:30:46 pft Mar 01 21:30:49 140k/yr in average? Mar 01 21:30:52 it's hush money from microsoft. only way they can get people to develop for that Mar 01 21:30:53 wtf are we doing on android Mar 01 21:31:00 My service is never bounding Mar 01 21:31:37 I wouldn't be surprised if they do make more though, probably much harder to find people Mar 01 21:31:53 seems to be that way for android, too Mar 01 21:31:55 The onServiceConnected() never gets called, even though the service is started, and I am sure that onStartCommand gets called before binding the service Mar 01 21:32:54 If I use BIND_AUTO_CREATE flag it works but it seems like creating a separate instance of the service or something, which is not what I want, I want both started and bound service Mar 01 21:33:03 g00s where does it say windows phone is the highest money maker on that website? Mar 01 21:33:40 martiallaw its in the complete report Mar 01 21:33:56 The IRCBinder class that extends Binder has a getService() method, which is also never called Mar 01 21:34:02 That's kinda of weird Mar 01 21:39:42 Hi everyone, I'm having issues running an app from Android Studio on my phone. I tried running the application on my friends' devices, and they all work. But for mine, it just crashes. I'm trying to find the reason why my phone specifically does not work Mar 01 21:41:13 read the stack trace Mar 01 21:43:34 -_______- Hired.com doesnt even give me my test score Mar 01 21:43:45 orbyt_ not hired :) Mar 01 21:43:56 g00s: your funny. Mar 01 21:44:11 you're Mar 01 21:44:17 Well actually its Codility.com on behalf of Hired but still Mar 01 21:44:27 .. Mar 01 21:44:44 pretty sure i got 100% though so all good Mar 01 21:44:54 with 25 mins to spare >=) Mar 01 21:47:42 any idea how to "fill" the background of a floating action button with a drawable? Mar 01 21:50:11 kot09, stacktrace or gtfo Mar 01 21:50:27 Okay um, IntentService has onHandleIntent, what's the alternative for Service? Mar 01 21:52:06 services don't run shit in threads Mar 01 21:52:17 all service callbacks occur on the mainthread Mar 01 21:52:36 uh Mar 01 21:52:41 I need a special type of thread Mar 01 21:52:47 Okay here's my situation: Mar 01 21:54:06 meh, hate compliance training Mar 01 21:54:20 I hvae some IRC library I made, it works by instantiating a Worker, and it connects and stuff like that, so I want to store that in a HashMap (Because I want to run multiple instances), and then, I'd like to have an activity that binds to that service Mar 01 21:54:37 So the thing is, IntentService doesn't bind, nor keeps running in the background Mar 01 21:54:52 So Service, but service runs on the main thread, which isn't helpful Mar 01 21:54:57 * OverCoder facepalms Mar 01 21:55:01 * OverCoder punches Android Mar 01 21:55:15 learn2program Mar 01 21:55:22 :| Mar 01 21:55:59 you can start your own thread in the service Mar 01 21:56:04 and have callbacks Mar 01 21:56:20 The Worker already runs a thread, and it doesn't block the thread starting the Worker Mar 01 21:56:21 punching android, you should punch yourself Mar 01 21:56:56 where does the Worker instance live Mar 01 21:57:24 It should, in a global HashMap in the service Mar 01 21:57:31 So I can access it when I bind the service Mar 01 21:57:36 service is only a lifecycle container Mar 01 21:57:39 what you want to do is up to you Mar 01 21:57:43 ^ Mar 01 21:57:48 o Mar 01 21:57:51 * OverCoder thinks again Mar 01 21:58:38 hm, then I think I need to A) Go sleep, because I super tired and B) When I wake up, learn about IntentService/Service Lifecycles in the docs Mar 01 21:58:43 Great, thanks Mar 01 21:59:34 OverCoder intentservice isn't what you want Mar 01 21:59:55 hmm Mar 01 22:00:01 you'll have a service, which babysits N IRC clients Mar 01 22:00:21 the service will start when the first client starts and connects, and stop when all clients disconnect Mar 01 22:00:25 * pfn doesn't even maintain his irc connections in a service Mar 01 22:05:54 anyone know of an app that has a K as the logo? Mar 01 22:06:04 i mean, icon Mar 01 22:06:21 why, no Mar 01 22:07:05 yes Mar 01 22:07:07 keep Mar 01 22:07:18 you mean the app icon right? Mar 01 22:07:21 keep has no K in the icon Mar 01 22:07:22 whoops, sorry I had some terrible connection problem, anyways Mar 01 22:07:24 yeah Mar 01 22:07:31 g00s, hmmm, gotcha Mar 01 22:07:36 justJanne: not the note taking app, the shopping app Mar 01 22:07:42 pfn, Where would I handle it otherwise? Mar 01 22:07:49 a coworker of mine is spelling something out on his home screen with icons Mar 01 22:07:50 OverCoder, wherever you want Mar 01 22:07:50 I can pull android logs from the device right? Is there a way to copy that file without just looking at the real time output? like I want to get output from before I connected it to my machine Mar 01 22:08:11 pfn, what does that even mean Mar 01 22:08:13 grekkos, no Mar 01 22:08:24 s73v3r: https://play.google.com/store/apps/details?id=com.keep.goldfinger&hl=en Mar 01 22:08:36 pfn, Probably I want to keep the connection in the background, so not in the Activity itself Mar 01 22:08:37 and https://play.google.com/store/apps/details?id=com.gotokeep.keep&hl=en Mar 01 22:08:58 pfn: oh really? I thought I've done this before Mar 01 22:09:26 grekkos, logcat -d you mean? Mar 01 22:09:33 thanks. He ended up going with something called K-Talk Mar 01 22:10:01 psh thats ugly Mar 01 22:10:25 pfn: would that give me logs from events that happened before I plugged in the USB? Mar 01 22:10:46 i suggested the first one. not so much the second one Mar 01 22:11:22 pfn: hmm yeah I guess it does show stuff frmo before anyway Mar 01 22:11:44 OverCoder: the only reliable way is a foregroundservice. Mar 01 22:11:54 which requires an always-on notification Mar 01 22:12:09 pfn: yeah that looks like it'll work Mar 01 22:14:00 you need a foreground service to keep the service from dying Mar 01 22:14:12 but that has no bearing on having to perform the irc connection maintenance within the service Mar 01 22:14:58 o, isn't a foreground service is just a Service with an ongoing notification, and no other difference? Mar 01 22:15:08 Because I'm having an ongoing notification anyways Mar 01 22:15:21 but a foreground service is required to have maximum priority Mar 01 22:15:32 Should I care? Mar 01 22:16:06 yes Mar 01 22:16:17 hmm :p Mar 01 22:16:52 OverCoder: yes actually :D Mar 01 22:16:53 Oh right, I am just looking at the docs Mar 01 22:18:08 OverCoder the service doesn't have to do anything to maintain the IRC connections. the clients inside that do that. it just has to watch for the clients to become idle so it stops Mar 01 22:18:57 the clients don't have to be physically in the service class, but .. i think it makes most sense. you can even have something like static MyIrcClient getClient(etc) Mar 01 22:19:21 again, the clients don't know about the service. but the service watches the clients Mar 01 22:21:06 jeez. Apparently no-one, literally no one, makes a stylus with BTLE HID-over-GATT protocol Mar 01 22:21:31 sounds like a Kickstarter waiting to happen Mar 01 22:21:31 p_l, seems weird, hid over gatt? Mar 01 22:22:30 pfn: essentially, the way for HID to run on BTLE Mar 01 22:22:47 btle kinda sucks at streaming stuff Mar 01 22:22:56 yeah, it's a connectionless transport for HID Mar 01 22:23:06 unlike classic HID profile Mar 01 22:23:10 yeah, seems like it would suck for a stylus Mar 01 22:23:37 g00s, hmmm, gotcha, many thanks to all of you, and sorry for delayed responses but my connection is facepalming Mar 01 22:23:49 what do all of the other stylii use? Regular BT? Mar 01 22:24:02 anyway, BTLE styli that use HID-over-GATT are natively supported by android 6.0 ... except there are none Mar 01 22:24:11 s73v3r: apparently all use custom protocols and custom SDKs Mar 01 22:24:35 so even on iOS things like pressure sensitivity etc. will work only in certain set of apps Mar 01 22:24:43 but it’s gotta be something standard underneath unless they use a dongle Mar 01 22:25:00 s73v3r: nope, just make people use their SDK Mar 01 22:25:09 I hate it when they put me on the backend Mar 01 22:25:19 2 hours to configure a spring server with a simple hello world request Mar 01 22:25:31 i know, but it has to be running over BT or BTLE, otherwise there’s no way for the data to get from the stylus to the device Mar 01 22:25:38 jvrodrigues why not just jetty or something ... Mar 01 22:25:49 I could have done an app that you press a button and tells them to fuck off and still watch a show or something Mar 01 22:25:53 g00s, requirements Mar 01 22:25:59 I really don't know their obsession with spring Mar 01 22:26:05 understand* Mar 01 22:26:06 but its there Mar 01 22:26:13 I will use spring for as long as I am in that company Mar 01 22:26:17 wether I like it or not Mar 01 22:26:43 pfn: poked around with the adb logcat args and I got something that works thanks :) Mar 01 22:27:47 s73v3r: BTLE, just with custom protocol that nothing except the SDK supports Mar 01 22:34:05 jvrodrigues, you were saying you love spring just the other day... Mar 01 22:34:17 30 more mins to go... Mar 01 22:34:39 I want to get a little more done with this app Mar 01 22:34:43 pfn, its the first time I actually ever had to configure it Mar 01 22:34:47 would anyone be up for a code review? Mar 01 22:34:51 the web app bootstrap Mar 01 22:35:00 pfn java.lang.RuntimeException: Unable to start activity ComponentInfo{soen390.mapx/soen390.mapx.activity.MainActivity}: android.database.sqlite.SQLiteException: no such table: DESCRIPTION (code 1): , while compiling: DELETE FROM DESCRIPTION Mar 01 22:35:00 RustyShackleford, would love to Mar 01 22:35:16 alright I might take you up on that Mar 01 22:35:37 i'd just like some opinions on the design before I continue with it Mar 01 22:35:42 kot09, you are deleting a table that doesn't exist Mar 01 22:35:43 harder to change as you write more Mar 01 22:35:51 The thing is, when I used my friend's phone to install the app on my laptop, it works fine. Likewise, when I install the app on my phone from his laptop, it works fine. Mar 01 22:36:06 We have both pulled from master Mar 01 22:36:27 It seems like there's an issue with my phone/laptop combo that's screwing things up Mar 01 22:37:04 jvrorigues, nope, the code is working fine on other devices when I install them from my side. I'm also able to install the app, but only from my friend's laptop. Mar 01 22:37:06 looks like you’re not setting up your database before using it Mar 01 22:38:29 s73v3r I thought so at first. I rechecked my code, and it doesn't seem to be that. I installed the app on my phone from my friend's laptop, and it runs fine Mar 01 22:38:49 I even recloned the repo and things are still not working Mar 01 22:39:04 When I install the app on my phone on my laptop specifically Mar 01 22:39:27 have you tried git status, and looking at the git ignore? Mar 01 22:39:43 and are you shipping the app with a database? Mar 01 22:43:40 git status says im up to date Mar 01 22:43:51 oops, failed compliance training, that's annoying Mar 01 22:44:03 Im not shipping with a database, im creating a database on first use Mar 01 22:44:29 then you didn't create it Mar 01 22:44:32 it says you’re up to date, but one of the laptops might have a file that wasn’t committed or something Mar 01 22:45:58 my friend is also uptodate with origin, and doesnt have any uncommitted files Mar 01 22:46:18 check again Mar 01 22:46:25 pfn: we create the database on first use, but we clear the database on every run Mar 01 22:47:09 then check the code where you clear the db Mar 01 22:47:18 also, what i dont understand is when i install the app on my friend's device from my laptop, it works; he doesn't have the problem Mar 01 22:47:37 if I have an Observable> someList, how would i use .filter to only include the items of someList that have .someProperty() == 5? Mar 01 22:47:42 that would point to there being a discrepency between your repos Mar 01 22:47:42 i tried it with two different devices, and they were able to run the app when they were installed from my laptop Mar 01 22:48:01 its specifically with my phone Mar 01 22:48:22 then check the code dealing with creating the db Mar 01 22:48:27 filter(i -> i.someProperty() == 5) won't work since the observerable is a list, not elements of the list -- how do I refer to the individual list items? Mar 01 22:50:35 kot09, you still done it wrong Mar 01 22:50:42 kot09, use a debugger, step through code, identify issue Mar 01 22:50:54 and make sure you're actually running correct code on your device Mar 01 23:46:29 Hey all. I'm working through the Udacity.com course of Android app development and I have run into an issue I don't understand. My program is supposed to make an API call, get some weather data and display it in a list. List works, I've confirmed the API call returns expected values; However, the program crashes when it runs URLConnection.connect() Mar 01 23:46:30 ; Mar 01 23:47:03 URLConnection.java has " public abstract void connect() throws IOException;" which tells me nothing Mar 01 23:47:47 So I was wondering if someone would be able to tell me where else to look. Sorry for the vagueness, first Java programming endeavor as well, I don't speak the lingo fluently yet. Mar 01 23:48:18 use logcat to view the crash reason Mar 01 23:51:55 I don't know enough to get anything out of them unfortunately. I see it failed to create the fragment view. Mar 01 23:52:22 Tried to pastebin it but copy-paste into pastebin.com made it unreadable. Mar 01 23:52:28 :\ Mar 01 23:54:31 Here we go, pastee looks better. https://pastee.org/eu8sd Mar 01 23:54:57 you’ve got an error in your layout XML Mar 01 23:55:05 no Mar 01 23:55:08 it is the classic Mar 01 23:55:13 networkonmainthreadexception Mar 01 23:55:22 although I'm not sure how it got triggered during inflation Mar 01 23:55:50 anyways you can't call connect() on the UI thread majuk Mar 01 23:55:56 Ahhhh Mar 01 23:56:26 oh jeez they put new people thru fragments in udacity? Mar 01 23:56:28 Interesting. Mar 01 23:56:41 what’s worse, is it looks like the put the fragments in the XML Mar 01 23:57:15 https://github.com/udacity/Sunshine-Version-2 Mar 01 23:57:24 If you care. Mar 01 23:58:41 I'm prototyping an application, so it works alright enough for what I need, but it definitely requires some background. Mar 02 00:01:03 Anyway, thanks s73v3r and missingno Mar 02 00:41:07 hi guys Mar 02 00:41:21 i'm attempting to create my first dll plugin to access the native android api within unity -> http://hastebin.com/ifegukazak.java Mar 02 00:41:27 when i try to convert it from .jar to .dll using ikvm, it complains about missing class 'android.app.Application' Mar 02 00:41:32 it converts fine if i remove the extending of Application and the DisplayMessage method Mar 02 00:42:23 any ideas? i'm not sure if i should be extending Application or not? I'm only doing that so i can get the application context Mar 02 00:43:25 dll and android? Mar 02 00:43:31 dll and unity Mar 02 00:43:43 yup dll and unity Mar 02 00:43:56 you might be better off asking in the Unity channel Mar 02 00:44:55 already done that and no luck :) Mar 02 00:45:21 i think this is more of an android question because im stuck before it gets to unity Mar 02 00:45:28 Sadly I think you’re going to have just as much luck here Mar 02 00:45:54 darn Mar 02 00:45:57 but it says it can’t find Application. you might start there Mar 02 00:46:11 (missing class "android.app.Application") Mar 02 00:46:33 yep, but it can find it within android studio Mar 02 00:46:44 cause Android Studio has access to the Android SDK Mar 02 00:47:03 so i wonder why ikvm can't find the class Mar 02 00:47:14 well, does it know about the android classpath? Mar 02 00:47:27 i don’t know shit about ikvm, so i can’t answer Mar 02 00:47:43 i've got the path set so i would think so Mar 02 00:47:57 or maybe its to do with android studio creating the jar file Mar 02 00:48:12 no idea. maybe you want to ask in the ikvm channel Mar 02 00:48:23 would the application class be included in the jar file? Mar 02 00:48:28 Teedo: a dll? a dll is a windows thing though, Android is linux and java based, good luck with that ;) Mar 02 00:48:53 dll and unity? *scratches head* Mar 02 00:49:03 Unity can use managed dlls Mar 02 00:49:04 Unity uses Mono, which would use DLLS Mar 02 00:49:25 oh, mono hey Mar 02 00:50:07 does unity use protection? Mar 02 00:50:27 i have no idea Mar 02 00:59:05 hmm, why doesn't recyclerview honor layoutAnimation Mar 02 01:02:21 because it is a dishonorable dog Mar 02 02:00:46 hi Mar 02 02:01:42 i want to make an app that works from the lock screen, putting some special conditions on what is needed to unlock the phone Mar 02 02:03:05 do i need root access for that? Mar 02 02:05:43 okay I should not still be working now Mar 02 02:05:53 this also happened last night Mar 02 02:06:11 RustyShackleford :D Mar 02 02:06:33 anyone? Mar 02 02:06:33 on the plus side, I'm at home in my sweatpants Mar 02 02:07:05 sadpone Pre L , all you could do is lock screen widget; post L all you can do is notification on lock screen Mar 02 02:07:19 so yeah, anything more and you're on your own Mar 02 02:07:54 oh Mar 02 02:08:24 so i do need root access for post L to do something like a coordination test Mar 02 02:09:30 just basic passive logic Mar 02 02:10:48 hey there guys Mar 02 02:11:17 to write my own lock screen widget Mar 02 02:11:38 is it possible to make an app to change network config like IP or other data without a rooted phone? Mar 02 02:11:56 cliffreich: depends if the settings app support that in its intent Mar 02 02:12:41 I Know setting up wireless via an third party app is possible (zxing does it when you scan a QRcode that represents wifi conf details) Mar 02 02:12:57 interesting Mar 02 02:13:07 g00s: could you elaborate on what you said? Mar 02 02:13:39 sadpone not really ... i just mentioned your options non-rooted Mar 02 02:15:47 so, what about a secondary lockout app? Mar 02 02:16:27 it doesnt even need to lock the phone it just needs to prevent access to certain apps Mar 02 02:17:05 and now I get a call to do something else Mar 02 02:17:29 you have great health insurance rusty Mar 02 02:17:46 I do have good health insurance Mar 02 02:21:22 fucking done. Work laptop is off Mar 02 02:28:20 sadpone: are you using your device as a kiosk or something? Mar 02 02:28:36 hat reminds me, I need to find some decent kiosk software or write my own :\ Mar 02 02:28:57 no Mar 02 02:30:46 something like locking kids out of their phones during certain times of the day or near places like school Mar 02 02:42:45 that sounds interesting Mar 02 02:43:05 although locking out via geographical locations means kids are going to skip school more :P Mar 02 02:45:56 well, during school hours on week days would work too Mar 02 02:54:53 * g00s sighs Mar 02 02:54:58 depressing tuesday Mar 02 02:55:07 Cheer up!! It's taco tuesday! Mar 02 02:55:25 super depressing taco tuesday Mar 02 02:55:55 well, just think of margerita wednesday and you will pull through :) Mar 02 02:56:16 i was going to give androidplot a try, but if they can't keep their website up ... **** ENDING LOGGING AT Wed Mar 02 02:59:58 2016