**** BEGIN LOGGING AT Sat Jan 09 02:59:58 2016 Jan 09 04:23:25 my name is Jan 09 04:32:06 can you tell me Jan 09 04:32:11 why you succeed? Jan 09 04:32:27 why do you succeed in life? Jan 09 04:32:42 why is the time period Jan 09 04:32:51 such a beautiful time Jan 09 04:32:58 for me to succeed Jan 09 04:33:26 what is success to you ? Jan 09 04:34:01 what is succes to me? Jan 09 04:34:17 its being the best damn skateboarder in the world! Jan 09 04:34:29 Lets Android Jan 09 04:34:59 i explan the success to the Lord Jan 09 04:35:30 ia9371: ssshhh Jan 09 04:35:50 Keep that between him and yourself Jan 09 04:40:54 I androided for years!! Jan 09 04:42:46 google does not recognize fidonet related queries any more Jan 09 04:42:49 so sad :( Jan 09 04:43:10 follow you're Lord Jan 09 04:43:28 I am? Jan 09 04:45:50 hey, anyone have experience rooting samsung? Jan 09 04:45:59 homestarz see topic Jan 09 04:46:08 Follow the path of lawlesssness Jan 09 04:46:26 into eternal darkness Jan 09 04:46:28 ahh sorry Jan 09 04:46:31 kill em all Jan 09 04:46:32 thanks @g00s Jan 09 04:47:02 we like eternal darkness Jan 09 04:47:22 as long as its not cold Jan 09 04:47:27 i dont like the cold Jan 09 04:47:33 it's like reddit android channel now Jan 09 04:49:19 machine head locusts Jan 09 04:49:26 good song Jan 09 04:49:31 beside him Jan 09 04:50:48 vigilancer at least our mod came back :) Jan 09 04:52:51 can robolectric handle android.util.Xml? you it'll be better to go with instrumentation tests? Jan 09 04:56:19 *instrumental Jan 09 05:00:16 I'm having some issues with my render view not updating when the SDK version is set to 16, but it works fine when set to 23. I can put stuff in the main view and it updates okay when I'm on sdk 23, but when I change to 16 the view effectively "freezes". Anyone have any ideas? Jan 09 05:04:38 ugh - how do you get the "android" and "adb" tools installed on Linux (Debian)? Jan 09 05:04:48 Nouv: have you installed api16 sdk? Jan 09 05:04:49 they don't seem to be included with neither the SDK nor the Studio?? Jan 09 05:05:10 all i find is this page http://developer.android.com/sdk/index.html#Other which is really confusing Jan 09 05:05:14 BW^-: they are in sdk Jan 09 05:05:16 vigilancer: Indeed Jan 09 05:05:21 and, i understand the "android" tool will help me install more Jan 09 05:05:45 vigilancer: "find android-sdk-linux/| grep adb" gives me no output Jan 09 05:05:47 BW^- just a warning, some debian users were having problems with old glibc Jan 09 05:05:54 Just to clarify (first time dev here), if I want to support from android 4.1+, I should build from sdk version 16 right? Jan 09 05:05:58 vigilancer,g00s: "find android-sdk-linux/| grep bin/android" gives me no output too Jan 09 05:06:15 g00s: ok if I see that I'd need to address it. Jan 09 05:06:31 BW^-: ls $ANDROID_HOME/bin Jan 09 05:06:50 g00s,vigilancer: to install the Android SDK from scratch, all I should do is "aptitude install openjdk-7-jre" (implies SDK), wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz, tar xvfz it, and set ANDROID_HOME to that directory, no? Jan 09 05:07:11 Nouv https://medium.com/google-developers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd#.hgn9q73em Jan 09 05:07:18 vigilancer: weird - in ANDROID_HOME/tools/bin, indeed there is the "android" program! Jan 09 05:07:39 BW^-: so add it to path that's all Jan 09 05:07:44 Nouv so minSdk=16, target/compileSdk=23 would be sane .. but if you are just starting off, i'd say minSdk=21 really Jan 09 05:07:45 oo seems to work , nice! :D Jan 09 05:07:51 gr8 - let's see :D Jan 09 05:08:05 g00s,vigilancer: exactly in what directory should the "adb" tool be located? Jan 09 05:08:11 I'll do "android update sdk --filter tools,platform-tools,android-22,build-tools-22.0.1,sys-img-x86-android-22,extra-android-m2repository,extra-google-m2repository,extra-android-support --all --no-ui" now, maybe that will give it to me! Jan 09 05:08:15 g00s: Thanks, I'll read that Jan 09 05:09:32 BW^-: run android, install platform tools first Jan 09 05:12:18 g00s: I'm not entirely understanding this. If I set a minSdkVersion of 16, doesn't that mean I can only use features provided by that sdk version 16? Jan 09 05:13:53 Nouv i don't know how to explain it better than the article :( Jan 09 05:14:29 I'll .. read it again then. :P Jan 09 05:19:30 g00s: I read it again but I still don't understand. Specifically this part: "This allows you to use new APIs (as you did update your compileSdkVersion right?) prior to working through the behavior changes. Jan 09 05:19:30 " Jan 09 05:19:49 So it's possible to have minSdkVersion 16 and use APIs introduced in sdk version 23? Jan 09 05:20:05 yes Jan 09 05:20:26 of course, those apis won't be on 16 - so you have to check and see Jan 09 05:20:46 hm Jan 09 05:21:09 Nouv: check BuildConfig.VERSION at runtime Jan 09 05:21:58 Where? Jan 09 05:22:31 when you have to use new api Jan 09 05:22:42 if VESRION_CODE >= 23 - do new api Jan 09 05:23:06 else - fallback and rollout anotherimplementation Jan 09 05:23:06 hm, ok Jan 09 05:23:29 I still have the issue where my render view doesn't update when set to sdk version 16 Jan 09 05:24:17 yeah. remember to check your api version or you'll crash on older code Jan 09 05:24:26 s/code/devices/ Jan 09 05:24:36 g00s,vigilancer,*: in what part of the Android SDK thing is "adb"? Jan 09 05:25:45 dragorn was reading this .. privacy related https://www.washingtonpost.com/news/the-switch/wp/2016/01/04/the-big-data-of-bad-driving-and-how-insurers-plan-to-track-your-every-turn/ Jan 09 05:27:07 Alright let me start from the beginning Jan 09 05:27:14 I want to build an app that has support for sdk version 16 Jan 09 05:27:35 So in the creation wizard I set the minimum sdk to api 16 Jan 09 05:27:43 BW^-: platform tools I believe Jan 09 05:27:43 blank activity Jan 09 05:27:43 g00s, yup Jan 09 05:27:59 g00s, once data exists, someone will sue to get it once there's a legal case Jan 09 05:28:11 And then I change the render view to sdk 16 ... but it stops updating and I can't make any changes, which is my issue. Anyone know? Jan 09 05:28:48 dragorn i'll bet the insurance companies will eventually find a way to sell it to somebody as well Jan 09 05:28:54 vigilancer: aha, and that is something that I download using the "android" tool right - it's not in the SDK .tar.gz file right? Jan 09 05:29:10 g00s, also cute, some of those devices have exposed the canbus directly and allowed for some fun attacks Jan 09 05:30:10 vigilancer: It's *not* in "http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz" right? Jan 09 05:30:32 Nouv: I'm a newbie...but was having a similar issue. I will yield to others with more expertise. But I let it sit for a few minutes and then suddenly I was able to start selecting items again. I think maybe Android Studio's design interface just gets lost sometimes. Jan 09 05:30:43 BW^-: can't recall. just install platform tools and see Jan 09 05:30:46 ok Jan 09 05:30:51 Anchac: hm Jan 09 05:31:03 vigilancer: aha, anyhow that's one of thosep luggable modules. gotcha. Jan 09 05:31:08 Also I get the warning "PorterDuff Color Filters are not supported" which goes away when I select version 23. I assume this is related? Jan 09 05:31:58 Nouv: Haven't encountered that one. Do you know if the Color Filters are supported by 15? (They may be. It's only a guess.) Jan 09 05:32:04 Not sure Jan 09 05:32:25 But I wouldn't understand why it would include something that isn't supported when I specifically set minsdk to 16 in the project creation wizard Jan 09 05:32:47 because it expects you to always use the latest and work around for legacy, probably Jan 09 05:33:14 But how? Jan 09 05:33:19 (which is fairly true - you should be minsdk whatever, targetsdk latest, and using support libraries and api-versioned resource directories for legacy Jan 09 05:33:32 workaround latest and workaround legacy) Jan 09 05:38:14 is Erik Meijer working on dart ? Jan 09 05:38:55 No Jan 09 05:39:04 Gilad is Jan 09 05:39:28 Erik is working on... lots of things Jan 09 05:39:59 CedricBeust i was reading https://medium.com/@filiph/why-i-m-joining-the-dart-team-of-all-places-d0b9f83a3b66#.m0hdqavx4 Jan 09 05:40:08 he mention gilad of course, but also erik Jan 09 05:40:21 and erik wrote the foreword to gilad's book, just wondering Jan 09 05:40:32 * g00s doesn't have the book though Jan 09 05:40:36 Erik has very strong reasons to stay at Microsoft, I can testify to that Jan 09 05:40:51 oh, i thought he left MS O.o Jan 09 05:41:00 ok, i'm probably just confused Jan 09 05:41:47 yeah, he left in 2013 to start applied duality Jan 09 05:41:50 Yes he eventually did Jan 09 06:02:59 i wonder if somebody found a sane way to ship your own sqlite AND use the android bindings ... Jan 09 06:03:04 the new json extension looks nice Jan 09 06:03:21 kinda wish somehow they unbundled sqlite like they did for apache httpclient Jan 09 06:03:55 (and we wouldn't have to worry about which version is on what phones, which can span many versions) Jan 09 06:09:36 I wonder how hard it would be to have my database app do sqlite Jan 09 06:09:59 And how hard it would be to connect to system bindings, i.e. not flat files Jan 09 06:12:50 you can't unbundled sqlite, unless you want to interface with it via jni only Jan 09 06:16:36 Maybe I'll connect to calendar, contacts, mediastore etc. Jan 09 06:16:55 huh? Jan 09 06:17:41 I'll have my database app poll providers like contacts, calendar etc. Jan 09 06:17:53 instead of doing raw sqlite Jan 09 06:31:43 is there a channel for realm? Jan 09 06:37:10 What type of layout would I have for a settings page? Where there would be rows, each row containing a text descriptor and a checkbox Jan 09 06:37:31 Nouv just use PreferenceFragment Jan 09 06:37:50 Thanks g00s Jan 09 06:38:22 so, how does amazon give away so many apps, do they pay the developers anything? Jan 09 06:42:41 legally they'd have to unless it's in the contract for their store Jan 09 06:48:50 I *think* they didn't pay the old app-of-the-day developers, but they do pay the new underground developers Jan 09 06:54:39 http://blog.shiftyjelly.com/2011/08/02/amazon-app-store-rotten-to-the-core/ http://distantsuns.com/this-is-what-it-means-to-be-amazons-free-app-of-the-day/ Jan 09 06:58:24 Why am I getting these errors when inserting a toggle button? Jan 09 06:58:33 1. Different corner sizes are not supported in Path.addRoundRect Jan 09 06:58:38 2. Path.isConvex is not supported Jan 09 07:08:31 herriojr, you figure out your bootclasspath thing? Jan 09 07:22:36 pfn: yeah, I do think I'm going to have to do the platform thing (long-term) Jan 09 07:23:18 herriojr, if you're open to using a different build system, it's also possible Jan 09 07:23:18 short term, I've patched this person's hack to work Jan 09 07:23:29 oh yeah, I don't doubt that :P Jan 09 07:23:54 I could also just pull down the android gradle source and fork it as well Jan 09 07:24:07 which I almost decided to do for short-term Jan 09 07:36:17 not hard to take an existing gradle build and build it with sbt + custom boot classpath Jan 09 07:43:19 pfn: yeah, I have other reasons for wanting to do it as a platform as well Jan 09 07:56:48 How do I set default text for a spinner Jan 09 07:56:56 when it is unselected Jan 09 07:57:31 I've tried using spinner.setPrompt("Choose option"); but it isn't working Jan 09 07:59:13 I've also tried adding a prompt attribute in the xml where the spinner is defined, and it gives me an invalid resource error Jan 09 08:25:43 Hey guys.. does the TabWidget cater for swiping to the next tab? Jan 09 08:28:55 no Jan 09 08:30:03 pfn: So which one does though? Is there a standard android container that can doe that? Jan 09 08:48:46 is there any method I can override to determine when my application is closed? Jan 09 08:49:26 hm suppose my resources will be cleaned up anyway Jan 09 08:49:31 if you did that, your app wouldn't be closed Jan 09 08:50:22 I meant just before it was going to be closed Jan 09 08:51:51 like applicationWillTerminate for iOS, but an equivalent for android Jan 09 08:52:28 but seems like there isn't one Jan 09 09:21:54 well there would be last activity's onDestroy() but that isnt guaranteed Jan 09 10:04:20 How do I get googleMaps V2 to zoom into its current pin locaion? Jan 09 10:17:23 ahoy!! devs Jan 09 10:19:38 hello Jan 09 10:23:02 whens the next NDK coming out? Jan 09 10:28:17 Tomorrow. Jan 09 10:40:03 How do I get googleMaps V2 to zoom into its current pin locaion? Jan 09 12:22:55 <_3mpty> cart_man: I'm not sure - but sounds like problem related to map camera Jan 09 12:23:40 Hey! I am trying to save a file to the standard "Downloads" directory, so that people can easily find them on their device. The problem is that they are not visible when using the stock Download App ( they are when using a 3rd party file browser). Any ideas? Jan 09 12:23:54 <_3mpty> cart_man: yup, CameraUpdateFactory Jan 09 12:31:03 grees, im not sure if this is true for the Downloads directory but in order to make new images available for the galery apps, you need to trigger the mediascanner to update the media `database` Jan 09 12:31:14 maybe the same counts for downloads Jan 09 12:31:39 how do i implement client server data sync? is there some standard protocol i should be looking at? Jan 09 12:32:52 zigjidd, http is an option (post/get). There are also propriatary solutions like Parse for firebase if you dont want to build your own backend Jan 09 12:34:00 danijoo__: i' am triggering the mediascanner, otherwise it wouldn't be visible in the 3rd party app. I read somewhere that only files which are actually "downloaded" are visible in the stock downloads app. I tried to pass the URI of the local file to the downloadmanger, but thats not working i guess Jan 09 12:36:34 danijoo__: DownloadManger can only handle http / https uris. Jan 09 12:39:58 grees, ahh. good to know Jan 09 12:41:24 danijoo__: yeahr... and i don't find anything on the web to solve the problem. What is kinda weird because i was thinking many apps would want to save generated files to the standard downloads directory Jan 09 13:01:31 hi, I'm created a class that inherit from Toolbar, what would be the res id of my toolbar title view ? Jan 09 13:16:38 sameerynho: you have to create a xml layout file in your res folder. then you can acess it via findViewById(R.id.nameoftoolbarlayout) Jan 09 13:18:00 grees, i don't have the xml file Jan 09 13:18:42 sameerynho: yeahr you will have to create it yourself! Jan 09 13:18:56 grees, ok thanks Jan 09 13:21:58 sameerynho: maybe you should first get familiar with the basics of Android Resources :) http://developer.android.com/guide/topics/resources/available-resources.html <--- this would be a good point to start 7 Jan 09 13:22:21 grees, thanks Jan 09 13:52:50 grees, dude i think i have to explain my goal a little more Jan 09 13:53:48 grees, i want to change the font of toolbar title, since i can't have access to mTitleTextView which is defined in Toolbar class ( I have a class inherited from Toolbar ). I want to fetch it by id, Jan 09 13:54:01 grees, but i don't know the res id of this view Jan 09 13:55:59 hi,my app is set to open a specific url pattern. I can see that it works because if i click on a link with that pattern from say the notes app, it asks if i want to open it with my app. However,if i navigate to my site with chrome and clikc on a link that matches that pattern, it's not asking me what to open it with Jan 09 13:56:07 is there something i can do about it, or is it just how chrome works? Jan 09 13:57:30 sameerynho: add a textview to the toolbar.xml and style it the way you want Jan 09 13:58:25 grees, there is no toolbar.xml around in the project my friend Jan 09 13:59:14 well somewhere the toolbar has to be declared? maybe you can post a minimal example to a pastbin... Jan 09 14:01:07 grees, yeah sure Jan 09 14:30:41 Hi guys! How can I add vertical scrollbar to TextView? I added scroll feature by mTextView.setMovementMethod(ScrollingMovementMethod.getInstance()); but scrolbar isn't there and I can't find appropriate method for that. Jan 09 15:09:38 grees, you have to use download manager for it to show up in downloads app Jan 09 15:10:23 pfn: but if i pass the uri of the file to download manager i get an error Jan 09 15:10:51 pfn: as i mentioned download manager can only handle http/https uri Jan 09 15:11:47 that's the only official way to make it show up in downloads, you can dig through aosp to see how the downloads app works otherwise Jan 09 15:12:28 Oh no, Nikolai obedin doesn't work for jetbrains anymore :( Jan 09 15:14:47 grees: what protocol are you using then? Jan 09 15:16:38 Leeds: no protocol, my app generates some png files and i want to save them in the downloads folder. So its a local file! since not everybody has a 3rd party filebrowser app installed i think that would be a good way to do it Jan 09 15:16:54 so they're not actually downloads... Jan 09 15:17:14 yepp thats the point Jan 09 15:17:18 better to save them as pictures? Jan 09 15:18:31 hmm not really, the app is a steganography tool, so you don't really look at them as pictures... they are more like carriers Jan 09 15:32:20 the whole point of steganography is that you don't know that they're carrying data Jan 09 15:33:12 steganography, I heard about that in CSI Jan 09 15:33:30 If I unpublish app, can I republish it later and providing updates to the users that downloaded it before it was unpublished? Jan 09 15:33:51 just throw it in pictures, grees Jan 09 15:33:53 yoavst, yes Jan 09 15:34:29 Thanks. Jan 09 15:35:34 pfn: yeahr i could do that. but i don't like browsing my whole gallery to find the stego pics i generated Jan 09 15:35:52 pfn: but maybe i'll do it like that Jan 09 15:35:55 you put it in its separate album/folder Jan 09 15:36:03 good idea Jan 09 16:32:05 Is there a channel for hosting help? Jan 09 16:32:44 I'm trying to find a cloud hosting option for object storage and also processing power Jan 09 16:49:13 appengine Jan 09 19:56:20 hi guys Jan 09 20:00:45 heyo Jan 09 20:03:01 I have a problem and I hope that someone will solve in this room Jan 09 20:03:23 I am trying to upload video from my app to server Jan 09 20:03:32 but I am confused with techniques Jan 09 20:03:43 volley is efficient for small files Jan 09 20:03:53 httpentity is already deprecated Jan 09 20:04:14 anyone knows how can I upload using newest libraries? Jan 09 20:12:14 Anyone use GreenDao? Jan 09 20:12:30 Do I need to make a new DaoSession every time I want to save/load data? Jan 09 20:12:49 Or can I just use the same one over an activity Jan 09 20:12:50 ? Jan 09 20:39:13 I'm trying to display some text that will rotate in the center of the screen. I decided to extend the TextView class and override the onDraw method to accomplish this. But for some reason, I'm seeing double. I'm seeing the rotated text in the center, but I am also seeing the text in the corner where the RelativeLayout would typically place the textview. All I want is the text in the center. https://gist.github.com/emilabraham/5c Jan 09 20:54:20 url not complete Jan 09 20:54:25 also if you see double stop drinking :v Jan 09 20:56:56 lol Jan 09 20:56:59 https://gist.github.com/emilabraham/5c520a126c8099f3574a Jan 09 20:57:02 Wait? Jan 09 20:57:09 That url isn't complete? Jan 09 20:59:07 hi, im trying to get rid of the ripple efect Jan 09 20:59:24 I see the relevant code is here https://android.googlesource.com/platform/frameworks/base/+/891e65c5ceff6a7859afab34f75f149b3aefa0c6/graphics/java/android/graphics/drawable/Ripple.java Jan 09 21:00:17 and relevant resource files are core/res/res/drawable/* etc. Jan 09 21:00:27 can I override core/ res files in a theme? Jan 09 21:00:37 honestemu: well your message was too long Jan 09 21:00:45 oh lol Jan 09 21:01:25 these are the res files I want to override in my theme https://android.googlesource.com/platform/frameworks/base/+/891e65c5ceff6a7859afab34f75f149b3aefa0c6/core/res/res/ Jan 09 21:02:10 honestemu: could be that super.onDraw() draws the another text Jan 09 21:03:17 well you could make the theme that "extends" some theme and override the attributes Jan 09 21:04:17 well I want completely stock android 5.0 material look Jan 09 21:04:21 only without the ripple effect Jan 09 21:04:28 why Jan 09 21:04:43 and you would replace backgrounds with one's without ripples Jan 09 21:04:52 pfn: guess Jan 09 21:05:05 yeah but I would need to replace everybackground in every app :) Jan 09 21:05:10 you can change the theme attributes Jan 09 21:05:15 yeah, no Jan 09 21:05:19 ask #android-root Jan 09 21:05:34 we don't care about such concerns here Jan 09 21:05:46 pfn: what attributes? ;) Jan 09 21:05:54 I mean I already have a theme which does this Jan 09 21:06:00 pfn: fuck you Jan 09 21:06:27 :O Jan 09 21:06:52 but my theme does it specifically Jan 09 21:07:32 Ashiren: That was it! Jan 09 21:07:36 Ashiren: Thank you! Jan 09 21:08:09 for example https://github.com/luv/norippletheme/blob/cm-12.0/theme/src/main/assets/overlays/com.android.calculator2/res/values/colors.xml Jan 09 21:08:18 or https://github.com/luv/norippletheme/blob/cm-12.0/theme/src/main/assets/overlays/android/res/values/colors.xml Jan 09 21:08:45 but disabling the ripple effect system-wide is defo the better way to do this Jan 09 21:10:46 but it isnt in #android-dev scope Jan 09 21:16:23 yeah, go fuck off already Jan 09 21:25:57 Is it possible to enable/disable a broadcast receiver when your app launches/is completely closed? I know I can setComponentEnabledSetting in my app's Application.onCreate, but how about for disabling when the app is actually closed (not backgrounded)? Jan 09 21:26:37 Can the BroadcastReceiver itself check the status of the application, and if it's not running then disable itself using setComponentEnabledSetting again? Jan 09 21:28:19 its tricky since even when you 'leave' app, it doesnt get completely 'closed' Jan 09 21:29:07 Right, so can the BroadcastReceiver itself just check if the app is running and disable itself otherwise? Jan 09 21:29:26 one way i see is to extend Application class and store variable. if last activity's onDestroy is invoked that variable would be false Jan 09 21:29:52 broadcastReceiver gets context so i believe it has access to custom Application class Jan 09 21:31:18 i.e. https://stackoverflow.com/questions/3667022/checking-if-an-android-application-is-running-in-the-background Jan 09 21:32:03 I've read that thread, not sure I was able to get an answer for my question from it Jan 09 21:34:25 hmm getAppTasks seems correct and not yet deprecated Jan 09 21:34:26 https://stackoverflow.com/questions/26400469/alternative-to-getrunningtasks-in-android-l Jan 09 21:34:44 I guess my question boils down to this: I want a way to programmatically register a BroadcastReceiver that is tied to the application's lifecycle, not to an Activity's lifecycle Jan 09 21:35:19 <_3mpty> there is second question, why? App lifecycle is not reliable thing to track Jan 09 21:37:34 Well, maybe my understanding is incorrect, but I think I read that receivers defined in the manifest will fire even if the screen if off? Jan 09 21:38:17 yes Jan 09 21:38:21 <_3mpty> usually, there is corner case when you listem with two BR to same thing Jan 09 21:38:42 <_3mpty> anyway brodcast receiver has access to app when fired Jan 09 21:38:43 ok, so I want that behavior, but only if the app is open Jan 09 21:38:59 <_3mpty> what you mean by 'open' Jan 09 21:39:06 <_3mpty> when app is visible? Jan 09 21:39:14 I mean has been launched, may be in the background though Jan 09 21:39:39 Has not been completely closed, whether than be via swiping it off the recent activity list or whatever (back button from last activity) Jan 09 21:40:05 <_3mpty> if BR is fired it has context so app will be running Jan 09 21:40:21 <_3mpty> even if you 'killed' it from app list Jan 09 21:40:24 hm, so... has no active activities? Jan 09 21:40:39 <_3mpty> yup Jan 09 21:40:45 that's what I would mean then Jan 09 21:41:08 and I guess I could use an ActivityLifecycleCallbacks class to track that? Jan 09 21:41:36 like this: http://stackoverflow.com/a/13809991 ? Jan 09 21:42:20 Or, I dunno, so tricky Jan 09 21:42:41 <_3mpty> never tried such thing Jan 09 21:43:00 hmm this is somewhat what i proposed but in cleaner way Jan 09 21:44:07 I guess I can check what getAppTasks returns too, that might work better Jan 09 21:44:46 or, I dunno, because what if android kills the tasks due to low memory? Jan 09 21:45:06 then app will be killed Jan 09 21:45:13 <_3mpty> don't use getAppTasks Jan 09 21:45:14 oh, and that's api 21, I need back to 14 Jan 09 21:45:18 <_3mpty> nope Jan 09 21:45:42 <_3mpty> api from above is for 14 and greater apis Jan 09 21:45:50 <_3mpty> you don't need use older one Jan 09 21:45:54 also what are you trying to do is a little hacky, i dont know if there is elegant/recommended way to do it Jan 09 21:47:09 I am open to any other solutions, but I don't see any reason to launch the BR if the app isn't "open," so I'd rather just have it enabled when the user has indicated that they want it by opening the app Jan 09 21:48:43 <_3mpty> ActivityLifecycleCallbacks is your best bet Jan 09 21:49:01 <_3mpty> manual tracking can be annoying as app can have multiple entry points Jan 09 21:49:05 or does it really not matter and everyone does this? I mean, I am using a BR to monitor wifi state, that's something that changes pretty frequently, and this app is one that a user would use infrequently Jan 09 21:49:15 <_3mpty> so use ALC to detect if there is at least one not stopped activity Jan 09 21:50:09 <_3mpty> I think that maybe you should rethink way how your feature work Jan 09 21:50:14 Ok. In the case of an activity being killed due to low memory, what happens? I know onPause will run, but not necessarily onStop? Jan 09 21:50:31 _3mpty: in what way? Jan 09 21:51:25 <_3mpty> in way if you need to check if user used app lately Jan 09 21:52:02 <_3mpty> your BR has to be runned anyway on wifi state change Jan 09 21:52:08 like I said, it's an app that has a very specific purpose, and will be used for e.g. 10 minutes then not for days or weeks Jan 09 21:52:15 <_3mpty> so maybe just check time when mainActivity was runned last time Jan 09 21:52:17 not if I disable it Jan 09 21:52:42 <_3mpty> and store such info somewhere Jan 09 21:52:44 <_3mpty> ofc Jan 09 22:42:17 sigh, the BR predictably starts a process for the app, since it needs context and then that process sticks around even after the BR disables itself Jan 09 22:43:11 so then if you open the app from the launcher, it doesn't call onCreate since it already has an Application object around Jan 09 22:43:59 This feels so hacky, but I don't think it's an unreasonable desire? Jan 09 22:47:46 <_3mpty> as above, don't rely on lifecycle if you don't have to, use time constraint Jan 09 22:47:59 I really do have to, unfortunately Jan 09 22:48:37 due to the fact that the user could need to use the app for an unknown amount of time, a simple time constraint can't work as far as I can see Jan 09 22:54:51 I have this pretty simple layout, w/ card that holds a ListView in it: https://gist.github.com/eggie5/1ab7c0ad2976b1112734 why doesn't the layout expand w/ the listview? Jan 09 22:57:39 btn: sounds like you need to read up on the activity lifecycle, and not be using onCreate for what you're using it for Jan 09 22:57:53 It's the application lifecycle Jan 09 22:57:58 that I am talking about Jan 09 22:58:11 @zinx Jan 09 22:58:52 btn: the application is an activity. Jan 09 22:59:19 zinx: wat? android.app.Application Jan 09 22:59:25 or, well, it's the thing with the lifecycle you need to be paying attention to anyway :/ Jan 09 23:00:19 I dunno, maybe you didn't read the whole conversation earlier about the particular thing I am trying to accomplish, I'd be happy to have your help if you want to discuss it though Jan 09 23:01:31 huh? what exactly are you trying to accomplish? Jan 09 23:01:44 btn: why do you need to disable/enable the BroadcastReceiver? Jan 09 23:02:05 if you want a broadcast receiver that only runs when your app runs, then use a registered receiver, not a manifest receiver Jan 09 23:02:11 pfn: I want a defined in my manifest so that my app will respond even when the screen is turned off Jan 09 23:02:31 why would you disable it then Jan 09 23:02:32 pfn: but I only want it enabled when the app is "being used," meaning from the time it has been launched by the user Jan 09 23:02:48 then use a registered receiver, not a. manifest receiver Jan 09 23:02:52 pfn: to the time that it is either swiped off the recent activity list, or the final activity is closed Jan 09 23:02:59 disabling the component is the wrong approach Jan 09 23:03:19 I was under the impression that registered receivers won't wake the app if the phone screen is off? Jan 09 23:03:40 you're under the wrong impression Jan 09 23:03:54 if it's registered, then it will be invoked Jan 09 23:04:08 until it's unregistered or your app is killed Jan 09 23:04:10 ok, so then I still have the same issue though? When do I unregister? Jan 09 23:04:22 what broadcast are you catching? Jan 09 23:04:25 when you want to Jan 09 23:04:27 obviously Jan 09 23:04:30 and what if the app is "killed" due to low memory, but is still open? Jan 09 23:04:39 YOU know when you want to unregister Jan 09 23:04:50 if your app is killed, your registration is killed Jan 09 23:04:57 and that is precisely what you wanr Jan 09 23:05:00 want Jan 09 23:05:02 so that's not what I want Jan 09 23:05:10 no, if the app is still open but is killed due to low memory Jan 09 23:05:16 I still need to receive the broadcast Jan 09 23:05:16 that is most definitely what you want Jan 09 23:05:26 if it's killed due to low memory it is not open Jan 09 23:05:27 "open" in the background, that is Jan 09 23:05:45 there is no such thing as open in the background Jan 09 23:05:46 what broadcast are you catching, and why does it need to only be caught when your app is open? Jan 09 23:06:05 if it's in the background it is by definition not open Jan 09 23:06:14 would this be the right place to ask questions about building roms for specific hardware? Jan 09 23:06:17 sure, then have it your way, in the background Jan 09 23:06:23 if your app is killed, it is by definition not open Jan 09 23:06:26 still available from the recent activity list Jan 09 23:06:28 or is there a more appropriate room? Jan 09 23:06:36 kablaaam, see topic Jan 09 23:06:52 pfn: gagh, sorry, IRC client hid the relevant info Jan 09 23:06:52 btn, you do know that apps in the recent list are not open Jan 09 23:06:53 pfn: Your app can be in the activity list and be killed, as long as it isn't in the foreground Jan 09 23:06:57 it's just a history Jan 09 23:07:03 it's not an activity list Jan 09 23:07:08 it is only a history Jan 09 23:07:12 sure, but many of them have processes that are running? yes? Jan 09 23:07:16 false Jan 09 23:07:19 ... Jan 09 23:07:36 if I adb shell ps | grep myapp Jan 09 23:07:43 when it is in the activity list but not the foreground Jan 09 23:07:48 it has a process that is alive Jan 09 23:07:58 that means nothing Jan 09 23:08:16 what? Jan 09 23:08:23 not going to help you further, use the appropriate life cycle container, that is all Jan 09 23:08:34 ... Jan 09 23:08:56 what broadcast are you catching, and why does it need to only be caught when your app is open? Jan 09 23:09:17 pfn: it means that Application.onCreate won't be called the next time the application is launched Jan 09 23:09:27 sowhat Jan 09 23:10:04 that is expected behavior, if you depend on application creation to do something special, you're doing it wrong Jan 09 23:10:05 hello Jan 09 23:10:07 zinx: Wifi state changes, I only want it when the app is open because the app has a very specific use and may be used infrequently, so it is really wasteful to have a receiver all the time, but I need it when the app is "open" Jan 09 23:10:08 I have an LG L34C phone that is giving Unfortunately, the process com.android.systemui has stopped. Does anyone know of a way to get this to stop? The phone company claims they cannot help me with the issue and it is too old for them to replace it. Also cannot afford a new phone Jan 09 23:10:24 you need to define wtf open means Jan 09 23:10:30 recent list does not mean open Jan 09 23:10:38 pfn: well, the problem is that activity lifecycle just isn't enough to let me tie a receive to the application Jan 09 23:10:40 btn: i would give the user a switch to turn it off/on, then Jan 09 23:10:58 btn, there are lifecycle containers beside activity and application Jan 09 23:11:32 but you must define what open means Jan 09 23:13:39 btn: basically there's no part of the lifecycle you can use to determine if the user wants it running or not - but a switch will do that. Jan 09 23:13:48 pfn: Open means the user can access the application without going through the launcher (this is assuming no other activities have intent filters which could be launched by another app) Jan 09 23:14:43 so, essentially, "open" in this case means that the user can return to the app from the recent app list Jan 09 23:16:39 is there a gradle protobuffer plugin that doesn't require 'protoc' ... i thought there was, but the 1st result in search requires protoc Jan 09 23:16:49 can't find anything else Jan 09 23:18:29 <_3mpty> btn: hmm pfn is right - it's just shortcut from history, rethink your feature Jan 09 23:19:28 _3mpty: it allows the app to be launched into an activity other than the LAUNCHER activity though Jan 09 23:19:34 I have a conecpt I'm thinking of developing, wondering if I could get some feedback. There are already some solutions for using SMS from a deskop computer that involve sending messages from phone to desktop through a central server. These are clunky and slow. I'm thinking of building something that would have phone and desktop connect directly. Jan 09 23:19:36 and I assume it maintains back stack? Jan 09 23:20:09 btn: yes, but i don't think you can reasonably access the activity stack :/ Jan 09 23:20:21 (it would be a privacy issue if you could) Jan 09 23:20:26 you mean to check if the application is open? Jan 09 23:20:36 no, to check to see if it's in the history list. Jan 09 23:20:44 Also thinking of using WebRTC, but I don't know if the setup is worth it over using Websockets Jan 09 23:20:53 <_3mpty> btn: for example i've app in recents that i was using two weeks ago - it's still 'open' in your thinking? Jan 09 23:21:08 yes Jan 09 23:21:12 I have an LG L34C phone that is giving Unfortunately, the process com.android.systemui has stopped. Does anyone know of a way to get this to stop? The phone company claims they cannot help me with the issue and it is too old for them to replace it. Also cannot afford a new phone Jan 09 23:21:25 btn: seriously, just give the user a switch they can turn on/off Jan 09 23:22:00 btn: you can put it in a widget or notification or whatever :/ Jan 09 23:23:05 zinx: not really an option >< Jan 09 23:23:20 btn: why not? o_O Jan 09 23:23:58 anyone have experience with Webrtc on Android? Jan 09 23:25:25 <_3mpty> matkam: your approach sounds like something bad for battery Jan 09 23:26:04 <_3mpty> looks like a job for push messages, it will wake phone only when needed Jan 09 23:26:47 _3mpty: It wouldn't always be on. I was thinking of using push to turn on the service, and have it off when the desktop client is not being used. Jan 09 23:27:09 I have an LG L34C phone that is giving Unfortunately, the process com.android.systemui has stopped. Does anyone know of a way to get this to stop? The phone company claims they cannot help me with the issue and it is too old for them to replace it. Also cannot afford a new phone Jan 09 23:27:59 <_3mpty> Jorja: i'm not sure if it's question related to this channel, try factory reset Jan 09 23:29:08 Npo reset on the phone Jan 09 23:29:36 _3mpty: i think push would be to slow otherwise. think of the lag for a message to go from a friend's phone, friend's phone provider, my phone provider, my phone, google push server, my desktop Jan 09 23:29:36 Jorja off topic for this channel Jan 09 23:30:44 plus message order wouldn't be gaurenteed, so that could mean another trip from my desktop to a central server to the phone just to get the order right Jan 09 23:31:45 anyway, battery life should be neglegable, it would probably be very close to what it takes to keep the wifi radio on Jan 09 23:32:26 <_3mpty> order can be handled, just keep timestamp in push, lag will be always noticeable on provider side Jan 09 23:32:33 <_3mpty> imho sms is not real time chat Jan 09 23:32:41 <_3mpty> so it has such drawbacks included Jan 09 23:33:11 that's true about order with timestamps Jan 09 23:33:31 <_3mpty> about battery it will be keeping radio in 'hight' state always Jan 09 23:33:54 also true its not realtime chat, but it'd be nice not to make it any worse when using a desktop pc Jan 09 23:34:01 <_3mpty> push service is managed by os and can play nicely with doze Jan 09 23:34:22 any idea how whatsapp does their web client? Jan 09 23:34:52 as far as i know, it also forwards messages from phone to desktop Jan 09 23:34:56 <_3mpty> one pro thath i can see here is kinda security - my data stays with me Jan 09 23:35:00 and works quite nice Jan 09 23:35:13 yes security is a plus too Jan 10 00:02:07 there is no ontopic for it Jan 10 00:34:42 Are there any better tutorials for dev than the official tutorial, such as the buildin of a messenger gui? Jan 10 00:54:36 hi, anyone using android studio on ubuntu 15.10 here? Jan 10 00:55:32 I have an annoying problem. If I run studio as me it has crap fonts for the menus, toolbars, etc. but if I run it as root it has proper/nice fonts for those things Jan 10 00:55:36 anyone know why that is? Jan 10 00:56:11 lol, cause linux Jan 10 00:56:14 kozukumi, is it just root or any other user? Jan 10 00:56:22 just root Jan 10 00:56:43 It has a bad font for all other users? Jan 10 00:57:05 interestingly when i first run it as me the "do you want to import settings from a previous..." uses the GTK theme but if I run it as root it uses the generic Java theme Jan 10 00:57:15 Ologn, hard to know, im the only user ;) Jan 10 00:57:37 kozukumi, create a test user and try it like that and do everything vanilla. Jan 10 00:57:57 ok will do Jan 10 00:58:03 If it works, then you have some setting somewhere which is off on your normal user/studio settings Jan 10 00:59:28 yeah, it is strange tho as this is a clean ubuntu install, clean jdk install (oracle not open), clean everything Jan 10 00:59:54 and out of the box it has strange fonts and even errors on a generic full screen activity project Jan 10 01:00:13 i might nuke this install and try again tomorrow, is 1am here now :( Jan 10 01:01:32 kozukumi what do other java apps look like ? Jan 10 01:01:40 I have an LG L34C phone that is giving Unfortunately, the process com.android.systemui has stopped. Does anyone know of a way to get this to stop? The phone company claims they cannot help me with the issue and it is too old for them to replace it. Also cannot afford a new phone Jan 10 01:01:42 try running the 'android' command, for the sdk manager Jan 10 01:01:58 Jorja you have been told, this is the wrong channel Jan 10 01:02:13 there is no right one Jan 10 01:02:20 get an iphone for better customer service Jan 10 01:02:29 cannot afforfd them Jan 10 01:03:03 Jorja well this isn't right either, so stop asking Jan 10 01:06:07 kozukumi you could also use emacs like Ologn :D Jan 10 02:02:02 I have a problem when uploading my new APK ... it tells me I already have a version 1 so I need to change it... I would but I do not know where I need to change it? Jan 10 02:02:14 Manifest Jan 10 02:02:24 No, build.gradle Jan 10 02:02:25 sorry Jan 10 02:03:01 drose379: VersionCode or VersionName? Jan 10 02:03:06 Code Jan 10 02:03:27 drose379: Thanks allot! Jan 10 02:03:33 No problem Jan 10 02:04:50 drose379: Although when I changes it I got error (17,0) Project may be using a version of Gradle that does not contain the method Jan 10 02:05:25 Hmm Jan 10 02:05:33 Oh, I think you must change the version name along with code Jan 10 02:05:57 drose379: Hm ok both of them are 1.23 ... just name is in " " Jan 10 02:06:29 Waht was your previous name and version? Jan 10 02:06:37 1 and "1" Jan 10 02:06:47 now I made it 1.23 and "1.23" Jan 10 02:06:50 Go 2 and "1.1" Jan 10 02:08:50 Anything cart_man Jan 10 02:09:00 drose379: Hmm yea that is it... seems like Code can not have decimal values... A Bit misleading if you ask me Jan 10 02:09:13 Yea Jan 10 02:09:15 What you updating? Jan 10 02:09:28 Code is just a unique integer. I personally just have a script that increments it on every build Jan 10 02:09:33 drose379: Just a Beta APK for clients I need to demo tomorrow Jan 10 02:09:52 Nice cart_man Jan 10 02:10:25 drose379: Thanks :) .. Lets just hope all goes well though Jan 10 02:10:33 Good luck Jan 10 02:10:38 Logging off now Jan 10 02:29:40 Is there any way to remove the bar from the bottom of the multiline textfield? **** ENDING LOGGING AT Sun Jan 10 02:59:59 2016