**** BEGIN LOGGING AT Sun Apr 10 02:59:58 2016 Apr 10 03:25:51 hello, I am looking through the properties on my Edittex to see if I can keep the cursor from being defaulted when I open the app, it gets kind of annoying when i open my app and the keyboard is suddenly covering half of my app. Apr 10 03:27:43 Post the current code Apr 10 03:55:31 so my AS 2 / gradle-plugin 2 build time are terribad. with and without instant run Apr 10 03:55:46 does dexOptions { maxDexProcess=1 } make sense ? Apr 10 03:56:20 i notice 4 jvm spin up (in addition to the already running 2 for AS and gradle daemon) and its a bloodbath Apr 10 04:13:40 huh, i have dexOptions { maxDexProcess=1 } like http://tools.android.com/tech-docs/new-build-system says and I get a DSL error Apr 10 04:14:47 oh ffs xav, if you're only going to document this shit in release notes at least get THAT right - its dexOptions { maxProcessCount 1 } Apr 10 04:15:19 this is disgrace Apr 10 04:33:01 would this card work well in my smart phone, http://www.amazon.com/Lexar-Professional-microSDHC-UHS-II-LSDMI32GCBNL1000R/dp/B00U77V8AM/ref=sr_1_4?ie=UTF8&qid=1460262376&sr=8-4&keywords=Lexar+microsd Apr 10 04:33:08 vs http://www.amazon.com/Lexar-High-Performance-MicroSDHC-version-LSDMI32GBBNL633R/dp/B00IF4OC8Y/ref=sr_1_5?ie=UTF8&qid=1460262376&sr=8-5&keywords=Lexar+microsd Apr 10 04:33:12 they are both u3 Apr 10 04:33:18 but one is uhs1 the other is uhs2 Apr 10 04:33:51 tripknotix and what does that have to do with android development ? Apr 10 04:34:17 i need to test the fastest possible Apr 10 04:34:24 my old phone took forever to transfer Apr 10 04:34:38 mhm Apr 10 04:34:46 my new phone, transfers fast without a microsd, but im using the same microsd now and it seems to slow it down quite a bit Apr 10 04:34:56 i mean, not as slow as my old phone Apr 10 04:35:18 but still, i'd like to know if phones even have an increase from uhs 2 Apr 10 04:35:33 or if they top out somewhere, because im seeing that benchmarks are slower on phones than over usb Apr 10 04:35:34 3 Apr 10 04:39:17 oh its per device Apr 10 04:39:20 galaxy s7 edge Apr 10 04:39:30 gonna have to google if it supporst the uhs-2 interface Apr 10 04:39:33 its backwards compatible ofcourse Apr 10 04:54:27 What kind of view does gmail use to display the previews for each message in your inbox--are those html formatted text views? Apr 10 04:54:57 Referring to the gmail app. Apr 10 04:57:00 ok, so from what people are seeing, the uhs-2 provided no performance increase over uhs1 in the s7 Apr 10 04:57:07 so s7 = uhs1 parts Apr 10 05:01:52 recursor94 you could try decompiling the apk or maybe hierarhyviewer would work Apr 10 05:04:02 wrong channel Apr 10 05:05:06 Wrong channel for what? Apr 10 05:05:23 tripknotix Apr 10 05:06:18 and gmail looks like a textview Apr 10 05:06:25 what's special to ask about Apr 10 05:06:43 there's no formatting Apr 10 05:09:34 Well you have different sized text within it, and the title is in bold, and in a different font Apr 10 05:09:53 I only know how to create very basic, bare minimum text views. Apr 10 05:11:26 How else do you format a text view that way? Apr 10 06:12:39 i’m not sure why my emulator is just stuck at the ANDROID loading screen…any fixes? Apr 10 06:14:00 Slow? Apr 10 06:14:11 It can be 20x less fast Apr 10 06:14:18 (Than a tablet) Apr 10 06:14:43 So several minutes instead of 20 seconds for example. Apr 10 06:15:34 man; i thought 2.0 emulator would be faster boot Apr 10 06:16:15 Try the x86 mode if impatient :) Apr 10 06:16:28 There's a build for Intels Apr 10 06:17:01 Sadly, only a handful of the crappiest tablets use Intel. <-- In my opinion, with a survey size of one HP 7. Apr 10 06:17:34 Hmm alright…I’m trying to load the Nexus_S_API_19 Apr 10 06:17:38 *a Apr 10 06:17:53 So if you need to debug it on an actual x86 and actual ARM (at least 32-bit) tablet... meh. Apr 10 06:18:28 so i’m confused then what exactly were the emulator improvments in the 2.0 update? Apr 10 06:18:46 Accuracy? :) Apr 10 06:19:07 x86 emulator is fast Apr 10 06:19:45 and x86 emulator doesn't affect testing, unless you are debugging ndk code Apr 10 06:19:55 did you have to reconfigure emulator 2.0? Apr 10 06:20:03 in 1.0 you had to enable intel stuff Apr 10 06:20:10 i bet u need to enable it in 2.0 Apr 10 06:20:29 I honestly just deleted all my AVDs and started over because i was getting a “Running an x86 based Android Virtual Device (AVD) is 10x faster. Apr 10 06:20:30 We strongly recommend creating a new AVD.” Apr 10 06:21:44 trying to boot with KitKat x86 image… Apr 10 06:24:39 I would avoid using AVD all together Apr 10 06:24:42 so i’m monitoring the boot of this emulator and theres a lot of random exceptions; is that normal? Apr 10 06:24:52 and use genymotion or some other emulator instead Apr 10 06:25:03 pawansolanki: yes, totally normal Apr 10 06:25:05 Hahah yea i have some android devices i was just curious to test this wohle quickrun feature Apr 10 06:53:30 instant run is generally bad news bears Apr 10 06:53:52 I've seen it work, and it was really cool, but there are more problems than solutions at this point Apr 10 07:03:52 I can apply weight only on widgets ? If I have two LinearLayouts inside a LinearLayout how can I have one take 40% of height and the other one the 60% ? Apr 10 07:27:04 whats the go-to for ORM layers these days? Apr 10 09:40:31 Hey guys. I'm using broadcasts to get/modify data from my app. The problem is the data I'm modifying or inserting into my explicit BroadcastReceiver is not being saved. Every time I send a new intent the previous data that I sent isn't there -- what could cause this? Apr 10 09:42:20 Is there a way around creating new Broadcast receivers every time I fire away an Intent? Apr 10 09:42:38 No Apr 10 09:43:08 If you have data you need to save, https://developer.android.com/guide/topics/data/data-storage.html Apr 10 09:43:57 Your app could have been killed between two intents as well Apr 10 09:45:51 Alright well this is a bummer.. thanks SimonVT! Apr 10 09:47:43 But what if I make my Broadcast receiver variables all static -- would that work? Apr 10 09:48:10 Nope. Apr 10 09:48:12 Sure, unless your app is killed between two intents Apr 10 09:48:16 ^ Apr 10 09:48:34 Which happens on Android N with 100% guarantee Apr 10 09:48:45 If the user for whatever reason leaves your app (answer a call, text, ..) Android is free to kill your app Apr 10 09:49:01 When the user returns, your app should restore in whatever state it was in Apr 10 09:49:50 oh well. Thanks again guys. Apr 10 10:31:53 Hi, has any of you tried to incorporate usb audio device drivers in your app ? Apr 10 10:32:43 Or somehow enabled it in before lolipop flavours ? Apr 10 11:54:01 Hey all Apr 10 11:54:22 Hey Apr 10 11:56:25 hi hi Apr 10 11:56:48 hey thepoosh Apr 10 11:57:04 How are you. Apr 10 12:00:49 Anyone use this library before: https://github.com/mikepenz/Android-Iconics Apr 10 12:01:01 The icons aren't displaying in my layouts :s Apr 10 12:05:04 markyosullivan: that looks weird why not use the assets provided by android? Apr 10 12:05:22 they are in VectorDrawables and should scale perfectly Apr 10 12:05:33 with using appcompat 23.2.0 Apr 10 12:05:37 VectorDrawables? Apr 10 12:06:08 https://blog.stylingandroid.com/vectors-for-all-almost/ Apr 10 12:07:15 Thanks for the link! Apr 10 12:07:29 VectorDrawables is different than the fonts, tho Apr 10 12:07:31 I was trying to use that library because the MaterialDrawer library pretty much enables it Apr 10 12:07:46 Oh, if it works it works Apr 10 12:07:47 all you need to do is insert the icon library you wish to use Apr 10 12:08:02 and it works for my navigation drawer but I can't insert it into the XML layouts Apr 10 12:08:27 so my navigation drawer gets the icons programmatically and now that I'm trying to setup my XML layout it doesn't work :D Apr 10 12:10:14 is it recommended to unregister shared preferences listener in onDestroy? Apr 10 12:10:34 I also registered a broadcastreceiver programmatically, should I unregister it in my onDestroy? Apr 10 12:11:13 ChampS_: onDestroy should clean memory of set class and that includes all fields and listeners Apr 10 12:11:14 Is broadcastreceiver's not used for stuff like alarms? Apr 10 12:11:43 markmarkmark: it is also used for stuff like networkstate changed Apr 10 12:11:45 markyosullivan: only if it's declared in the manifest it will live after the registering context Apr 10 12:12:22 thepoosh then it's really weird that android does not provide functions to check whether a listener is registered or not Apr 10 12:12:51 how do you mean? Apr 10 12:12:53 Yeah I was nearly certain I used it for alarms in the past the poosh Apr 10 12:12:56 *thepoosh Apr 10 12:13:49 it's always used, but if they are not declared in the manifest and they were registered as part of an Activity, they should (IIRC) get cleaned from memory with the activity Apr 10 12:14:28 you can easily check that with MAT Apr 10 12:21:23 I tried making a class diagram of only the concrete implementations of only the non-UI backend of my app o.O https://dl.kuschku.de/docs/de.kuschku.libquassel.pdf Apr 10 12:21:34 Result: too much! Apr 10 12:22:22 thepoosh if you try unregister the broadcastreceiver in onDestroy but at the moment onDestroy is called the listener is not registered because of bad timing, an exception is thrown. Apr 10 12:23:05 but there is nothing like ctx.hasBroadcastReceiver(broadcastreceiver) to check if there is already a registered receiver Apr 10 12:23:38 I have to take a try catch OR I use a boolean in my class which holds the registered state Apr 10 12:23:41 Exactly. So treat the broadcast receiver registration like a finite state machine Apr 10 12:24:03 You don’t need a boolean if the state of the registration is also coupled to other things. Apr 10 12:24:09 yah but it's not a pretty solution Apr 10 12:24:34 justJanne how do you mean? Apr 10 12:26:12 ChampS_: seems like you are not managing the state of your app if you don't know if it's registered Apr 10 12:26:43 Guys how is it possible that after I switch from portrait to landscape the onSaveInstanceState method is called but after that the onCreate method is not called Apr 10 12:27:13 Shouldn't it be so that after each onSaveInstaceState method call the app starts again with onCreate method? Apr 10 12:27:34 Psychiatrist maybe an exception that is catched in your onRestoreInstanceState Apr 10 12:28:14 ChampS_, I haven't define an onRestoreInstanceState Apr 10 12:30:25 hey Apr 10 12:30:34 Sorry I got disconnected Apr 10 12:30:46 Psychiatrist: nope, orientation changes are very weird. They use onSaveInstanceState, sometimes also onCreate, but mostly only onStart or onResume Apr 10 12:30:53 I was using Shared element activity transitions Apr 10 12:31:05 and it is acting weird :/ Apr 10 12:31:37 when I click and item in an grid view it works fine , but when I press the back button on the detail activity to retract to old stage Apr 10 12:31:59 justJanne, Thanks! Would overwriting the onSaveInstanceState and calling onCreate be reasonable approach since all my logic is already in onCreate? Apr 10 12:32:09 Psychiatrist: That’s very bad. Apr 10 12:32:14 the reverse animation shows image from next grid item Apr 10 12:32:18 onSaveInstanceState should ONLY save the state. Apr 10 12:32:22 Not modify anything. Apr 10 12:32:31 onCreate should only prepare stuff once, Apr 10 12:32:41 justJanne, I meant to say onRestoreInstanceState, sorry Apr 10 12:32:44 the actual population of the views with data should happen in onStart Apr 10 12:32:59 Again, you should NEVER call ANY on* methods yourself. Apr 10 12:33:00 Ever. Apr 10 12:34:19 damn I used to call onRestoreInstanceState Apr 10 12:34:54 justJanne, Alright will do! Just to clarify for myself -- the reason why onCreate is not called after onSaveInstanceState is because the onRestoreInstanceState is called instead and I should not call them out myself just overwrite the method and my logic into specific methods? Apr 10 12:35:31 Well, the methods can be called at different moments – and the OS thinks onSaveInstanceState and onRestoreInstanceState are idempotent Apr 10 12:35:57 So, the OS might someday decide to allow a global undo button, where it uses onRestoreInstanceState to force your app into an earlier state (hypothetically) Apr 10 12:36:10 or it might decide to run onSaveInstanceState a dozen of times in a row. Apr 10 12:36:17 Each of them should only load or save stuff. Apr 10 12:36:31 Please read the documentation *VERY CAREFULLY* Apr 10 12:36:37 A lot of developers didn’t, Apr 10 12:36:44 and this led to an issue in Android Nm, Apr 10 12:36:47 *Android N, Apr 10 12:36:54 where suddenly apps pause if they lose focus Apr 10 12:37:15 (onPause does NOT mean you should pause video, etc, just that you lost focus – onStop means to pause video, etc) Apr 10 12:39:53 justJanne, Haha, that's sound what I would do. Thanks a lot, this helped clarify things, I need to reread the specifications on instance states. Apr 10 12:40:56 I did it wrong quite a few times myself... Apr 10 13:23:52 <_maddy> if I have a boolean variable in my Activity, should it stay in memory between onPause and onResume? Apr 10 13:29:23 <_maddy> I have a variable which is true in onPause, but then false in onResume (and onCreate is not called) Apr 10 13:34:20 <_maddy> this is tied to reading NFC tag, which calls onPause and onResume, and it happens only once after application is started, after that it works normally Apr 10 14:25:48 hi all, i just downloaded a library from github and i'm trying to get it imported into my android studio project. what's the proper way to do it? directly import the files or build an aar from it? Apr 10 14:26:15 do they not have a gradle or maven accessible library? Apr 10 14:26:29 richa_: they do, but i'm trying to pin it to an old version and jitpack keeps saying it can't be found :( Apr 10 14:27:47 previously when I have to import standalone libaries I have just imported the jar using the include marker in gradle Apr 10 14:28:55 whether or not thats the "proper" way to do, I couldn't say; but it works for me Apr 10 14:29:39 hrm Apr 10 14:29:47 it would be much easier if jitpack would just let me pin to an old version :( Apr 10 14:30:47 Guys if I'm sending an 'sendOrderedBroadcast(intent, null, new BroadcastReceiver() { @Override Apr 10 14:30:48 public void onReceive(Context context, Intent intent) { ... }' The intent gets broadcasted well - I catch the data from the other side but for some reason the data that I send back from the other side never reaches that onReceive method --in fact the method is never even called.. Apr 10 14:32:00 richa_: how do you build a jar with gradle? Apr 10 14:33:47 dcope sorry possibly a crossed-wired there, I was meerly talking about importing a jar into my gradle project Apr 10 14:34:27 oh Apr 10 14:53:26 is there a way to make sendOrderedBroadcast method not async ? Apr 10 14:57:32 At the moment the code that's after the 'sendOrderedBroadcast()' is ran before the code that is in the BroadcastReceiver class... Apr 10 15:04:05 Hi All :) Apr 10 15:05:11 I have a problem of Hardware acceleration with Box Android , someone could help me :') ? Apr 10 15:22:24 Guys is there a way I can force the code to wait on an async method to finish? Apr 10 15:39:40 wow 15$, seems fishy Apr 10 15:40:43 sory wrong channel Apr 10 15:40:49 Psychiatrist, what are you trying to do? The easiest way is to just run the next bit of code in "onPostExecute"... Apr 10 15:42:15 NoirAvlaa, I'm trying to fix my BroadcastReceiver since the sendOrderedBroadcast() method sometimes hasn't had the time to finish but the code is already past it. I got the async fixed but it didn't solve my problem anyway.. Apr 10 15:43:10 Sounds like a job for Semaphore man Apr 10 15:43:32 I'm at a loss here. I have some data that I want to get with an Intent. I send the ordered broadcast with that intent and wait for the results. When the results come back I want to save them into an saveInstanceState bundle. But the values from the ordered broadcast never get here but I know for a fact they're sent. Apr 10 15:59:03 Would someone mind giving a look: http://imgur.com/NzJjFPj . Is it even considerable to use a BroadcastReceiver in an onSaveInstanceState method? Apr 10 16:01:30 saveinstancestate is not going to wait for the receiver Apr 10 16:03:49 muthu, Thanks, I figured so. I've tried having it wait on the receiver with CountDownLatch and CyclicBarrier to no good. The app won't crash but the screen freezes after rotation for example. Apr 10 16:05:18 ya, not a good place for receiver Apr 10 16:06:48 muthu, Should I abandon the idea? I'm having difficulties on thinking how would I get the necessary functionality any other way. Since I do want to get data from the receiver and I do want to save the data I get. Apr 10 16:07:00 ya, redesign Apr 10 16:07:34 you can register the receiver within the activity Apr 10 16:08:20 onStart.. then unregister in onDestroy Apr 10 16:09:12 i tried AS 2.0 but its so buggy, how come is it stable Apr 10 16:09:43 muthu, If I registered the receiver programmatically instead of in the manifest -- would the on* methods wait on it then? Apr 10 16:10:13 its just a matter of giving the receiver a chance to do something Apr 10 16:10:49 receive, then fire of an intent .. to do some work Apr 10 16:11:14 don't do any actual work in receiver Apr 10 16:12:26 muthu, I wouldn't but how can I access the receiver's 'getResultExtras()' and 'getResultData()' methods outside the receiver? I want to work with that data. Apr 10 16:13:18 whatever you get in the intent.. Apr 10 16:13:25 bundle them in another intent Apr 10 16:13:28 then fire them off Apr 10 16:13:52 so another activity can unbundle and work with that dat Apr 10 16:18:04 muthu, I'm having difficulties grasping -- I have two projects: A and B. Project B extends BroadcastReceiver. When A asks data from B I send an intent from A with a string so I know which data to give back. B responds depending on the intent's string and bundles a bunch of data and sends it back. A catches the data and does xyz. Apr 10 16:19:47 use two activities Apr 10 16:19:49 a and b Apr 10 16:19:54 no need for receiver Apr 10 16:21:53 muthu, I must use the BroadcastReceiver, previously the app worked without it. It seems a bit ridiculous to use it but it's meant for learning purposes. Apr 10 16:22:22 I'll keep messing with it. Thanks a lot for your time, muthu, I appreciate it! Apr 10 16:22:36 haha Apr 10 16:22:44 then it's serving the purpose Apr 10 16:22:53 you are learning that you cannot use it this way :) Apr 10 16:32:51 justJanne ok cool, i just built ferflower from the idea git repo and "worls". although seems to throw lots of exceptions decompiling google keep. like maybe 50% of the files. oh well Apr 10 16:33:10 * it "works" Apr 10 16:34:09 would be great if the next version of IRC protocol let you correct message you posted for spelling mistakes :D Apr 10 16:58:26 Hello Apr 10 16:59:00 I would like to know how to compile AOSP from source having already the kernel source in a .tar downloaded from Open Source LGE, can somebody help? :) Apr 10 17:02:58 Hi! I have that annoying jitter when navigation away from an activity with no status bar to an activity with one. Does anybody know how to avoid it? Apr 10 17:27:16 how can you delete local commit from AS? Apr 10 17:44:29 icedp, use a different transition, like a fade Apr 10 18:06:01 how do you manage notifications in android? Apr 10 18:07:42 https://developer.android.com/guide/topics/ui/notifiers/notifications.html Apr 10 18:12:43 NoirAvlaa, what when my app is not running Apr 10 18:12:56 Intents mate Apr 10 18:13:10 Same page Apr 10 18:13:19 "Setting up a regular activity PendingIntent" Apr 10 18:13:39 what about GCM? Apr 10 18:14:02 hm? Apr 10 18:14:10 google cloud messaging Apr 10 18:14:19 What about it? Apr 10 18:14:23 you register to GCM, you have the BroadcastReceiver from GCM and do whatever you want Apr 10 18:14:27 my app is not running Apr 10 18:14:34 so Apr 10 18:14:40 I'm not android developer :/ Apr 10 18:14:46 um Apr 10 18:14:55 I'm trying to create the backend Apr 10 18:15:21 it should be able to talk to ios, android and web Apr 10 18:15:41 I'm stuck in how am I supposed to handle notifications Apr 10 18:15:48 I just want to send them a beep or something Apr 10 18:15:54 like a chat app Apr 10 18:16:06 the app uses websockets for the main flow Apr 10 18:16:15 ouch Apr 10 18:16:21 Ashiren, ouch? Apr 10 18:16:23 for ping best would be GCM Apr 10 18:16:32 ping? Apr 10 18:16:43 then app open websocket and you get the normal flow Apr 10 18:16:53 Ashiren, that's ok Apr 10 18:17:00 I expect the socket to be closed to save battery Apr 10 18:17:10 and it's up to the mobile developers to care about that Apr 10 18:17:20 I just worry in how to send them a notification over GCM Apr 10 18:17:30 I'm confused as fuck with the docs :s Apr 10 18:17:37 I only care about the server part Apr 10 18:18:01 but it's all in Java DX I don't use Java, I use Node.js, python and C Apr 10 18:18:03 https://developers.google.com/cloud-messaging/android/client Apr 10 18:18:29 We can't really write it for you mate, it's all in there Apr 10 18:18:39 oh i myself just started learning GCM. i just got a working app with python server and client getting the message Apr 10 18:19:39 Felishia, GCM requires you to make a simple REST request on a server Apr 10 18:19:46 When sending a message. Apr 10 18:19:55 It works on Android, iOS and Web Apr 10 18:20:00 so in my understanding they send me a token Apr 10 18:20:04 the client sends me a token Apr 10 18:20:09 Yep. Apr 10 18:20:25 and when I want to send that device a message I use such token Apr 10 18:20:33 This is pretty much what's relevant for server: https://developers.google.com/cloud-messaging/http#auth Apr 10 18:20:37 Yeah. Apr 10 18:20:59 The token on a device may get updated in some cases so you need to handle that. Apr 10 18:22:10 I just need to know what they send me Apr 10 18:22:16 and add that to the binary packet Apr 10 18:22:18 in the login flow Apr 10 18:22:29 also when they logout and stuff Apr 10 18:23:03 huh Apr 10 18:23:08 It doesn't work like that :) Apr 10 18:23:20 You need to be able to update / associate the token outside the login flow. Apr 10 18:23:29 wut? Apr 10 18:24:50 what I think of is user logins -> user sends me token (I don't care how they get them) -> user updates token (whenever it wants) -> user revokes token (when it logouts) Apr 10 18:25:04 Yep, that works. Apr 10 18:25:26 Also the "/send" on Google server will return list of tokens that aren't valid anymore (e.g. users uninstalled app without logout) Apr 10 18:25:39 But what you said is pretty much the process in a nutshell. Apr 10 18:29:45 is there anything I should be worried about and check before I lower my minsdk in middle of a project? Apr 10 18:30:03 Mavrik, I'm creating a model for rest in realtime :/ Apr 10 18:30:07 hey guys, if I wanted to have my app scan like every lets say 5 second or 10 seconds, would I use a while loop, and have it pause for 5/10 seconds inside the loop? I have my scan start in the onCreate method atm. Apr 10 18:30:12 because I'm sick of having to write all by hand Apr 10 18:30:40 and stuff is self-documenting Apr 10 19:09:51 Are switch statements slow Apr 10 19:12:26 test Apr 10 19:13:11 How Apr 10 19:13:33 drose379, ? Apr 10 19:13:48 How to test that Apr 10 19:14:17 Just never done it before Apr 10 19:14:19 drose379, http://stackoverflow.com/questions/2086529/what-is-the-relative-performance-difference-of-if-else-versus-switch-statement-i Apr 10 19:14:30 drose379, if you get plenty of if-else rather use switch Apr 10 19:15:11 But is there a way to test it Apr 10 19:15:18 and again if you need to do logical testing Apr 10 19:15:22 you are limited to if-else Apr 10 19:15:38 Can I test the actual speed of the statement Apr 10 19:16:17 drose379, try it one ideone.com Apr 10 19:16:20 https://ideone.com/jA90s Apr 10 19:16:28 https://ideone.com/Zpp6s Apr 10 19:16:51 What about from within the IDE Apr 10 19:17:26 take timestamp before execution , take timestamp after execution Apr 10 19:17:31 substract those Apr 10 19:17:40 convert to friendly time Apr 10 19:17:56 if you are asking there's a tool for that Apr 10 19:18:03 I don't know :( Apr 10 19:18:07 Oh ok Apr 10 19:18:10 Thanks Apr 10 19:29:27 we've gotten a few reports that our app is causing "phones to reboot". is there a common occurance that could cuase that to happen? Apr 10 19:41:00 dcope, the last time i saw such a thing was in 2.1, when dealing with bluetooth Apr 10 19:43:08 bitkiller: i finally got it to happen. it looks like the app is crashing, but there's a crash within the crash reporter (fabric) and that's taking the systme down. Apr 10 19:43:14 happening on a T-Mobile S7 Edge Apr 10 19:43:17 this is wild Apr 10 20:02:07 hm Apr 10 20:02:28 it seems if I dynamically add a fragment and then rotate the screen, the entire app crashes Apr 10 20:02:42 "Error inflating class fragment" Apr 10 20:03:10 Stackoverflow is very vague, saying stuff like "mixing dynamic and static fragment adding is a recipe for disaster" - is that a known "thing"? Apr 10 20:03:22 yup. Apr 10 20:04:41 Mavrik: but.. why? Apr 10 20:05:21 dcope, lol nice Apr 10 20:05:26 crashing the crash reporter Apr 10 20:07:54 any preference for specific bottom navigation library ? Apr 10 20:08:07 https://github.com/aurelhubert/ahbottomnavigation Apr 10 20:08:15 g00s hello again! :) Apr 10 20:08:17 https://github.com/roughike/BottomBar Apr 10 20:08:21 hello richa_ Apr 10 20:08:44 paresh: well, that's what it looks like Apr 10 20:08:47 does anyone have any idea how i can make chrooted linux gui runs on the android screen Apr 10 20:08:54 i think the actual crash is due to a MediaPlayer being created then disposed of too fast Apr 10 20:09:35 i'll just go with the one with the most stars :D Apr 10 20:09:45 its full ... of stars ! Apr 10 20:10:14 https://code.google.com/p/android/issues/detail?id=959 Apr 10 20:10:20 LOL looks like this has been a system bug since 2011 Apr 10 20:10:25 er 2008* Apr 10 20:10:34 8 years later... yeah I doubt this will everb e fixed Apr 10 20:14:23 dcope, ayy Apr 10 20:14:35 g00s : copying an iOS specced UX? Apr 10 20:15:34 richa_, ? Apr 10 20:16:00 did you miss out https://www.google.com/design/spec/components/bottom-navigation.html Apr 10 20:16:12 :O Apr 10 20:16:15 ... clearly Apr 10 20:16:17 urr having button/icon on a bottom of screen belongs to nobody Apr 10 20:16:24 Just because it's listed there, it doesn't mean it's not stupid :P Apr 10 20:16:27 richa_, it was added recently :d Apr 10 20:16:47 yeah, not really suited on low end phone with tiny screen Apr 10 20:16:53 nor landscape Apr 10 20:16:57 Mavrik, true Apr 10 20:17:14 i just changed my mind because i need tabs Apr 10 20:17:19 tabs + BB = ??? Apr 10 20:17:20 Google suggests not to use card view for grouping similar items and yet uses them in google play store Apr 10 20:17:21 :') Apr 10 20:17:48 the nail in the coffin for sidebar navigation? Apr 10 20:18:08 when mathias joined google there was a slight improvement in UX/design across all the apps .. Apr 10 20:18:14 but i feel like its all going to shit lately Apr 10 20:18:19 paresh, ?? Apr 10 20:18:25 you must be confused Apr 10 20:18:29 adq, ? Apr 10 20:18:32 but agreed, their specs are confusing too Apr 10 20:19:04 there was an article on /r/android - about material adoption Apr 10 20:19:12 paresh, https://www.google.com/design/spec/components/cards.html#cards-content Apr 10 20:19:22 i think the top comment was right, it was a spec (aka shared hallucination) Apr 10 20:19:30 with little implementation Apr 10 20:19:44 adq, yes I was going to refer you to that :) Apr 10 20:19:48 "A quickly scannable list, instead of cards, is an appropriate way to represent homogeneous content that doesn't have many actions." Apr 10 20:19:48 :)) Apr 10 20:20:03 yet they use Card view in play store Apr 10 20:20:19 if you search for paradoxes, you will find many Apr 10 20:21:03 what i really hate about the specs is there is a lack of info, like some padding, size etc are often missing Apr 10 20:21:19 and you have deduce from the picture based on other displayed value what "seems" to be recommended Apr 10 20:21:25 have to* Apr 10 20:21:43 adq pretty much everything is just 8, 16, or 32 dp :P Apr 10 20:21:52 no, also 12, 24, etc Apr 10 20:21:54 or 4 or 2 or 10 or 12 Apr 10 20:21:57 random pick you'll be right 1/3 of the time Apr 10 20:22:03 adq, Apr 10 20:22:11 yeah, well, it's not me who is trying to enforce consistency across apps Apr 10 20:22:17 pfn: still same glitch with status bar suddenly drawn after window content is loaded, even with fade Apr 10 20:22:19 adq, here https://design.google.com/devices/ Apr 10 20:22:21 :) Apr 10 20:22:25 we should not even care about that and have components ready with correct values Apr 10 20:22:50 yea some specs are missing Apr 10 20:23:05 a lot, every page lacks of info Apr 10 20:23:22 the web material is much more documented iirc, last time i checked Apr 10 20:43:33 icedp, oh well, you can't. control the status bar Apr 10 20:52:12 Is running code after an activity finishes a bad thing? Apr 10 21:04:15 i have an activity that finishes running all my code, then crashes out with no error or logcat messages. Any idea what I can do to figure out what's causing it? Apr 10 21:04:56 maybe try a global try/catch in your Application subclass? Apr 10 21:05:09 try to catch any exception Apr 10 21:05:20 or set your breakpoints to break on exceptions Apr 10 21:05:42 good ideas Apr 10 21:17:56 i'm starting to think that android studio has gone crazy Apr 10 21:18:01 or that it's trying to make me crazy Apr 10 21:22:43 kommunicate: Oh it has. I felt the same this week Apr 10 21:23:26 Say I have activity A B C D, im currently in D, then have a new intent back to A, what hapens to B C and D? Apr 10 21:23:53 Its launchmode is singleTask Apr 10 21:25:12 If that makes sense Apr 10 21:25:22 A "singleTask" activity allows other activities to be part of its task. It's always at the root of its task, but other activities (necessarily "standard" and "singleTop" activities) can be launched into that task. Apr 10 21:25:28 from http://developer.android.com/guide/topics/manifest/activity-element.html Apr 10 21:25:52 it turns out that android studio is the world's first strong ai, and it has a sense of humor and hates us Apr 10 21:26:06 so they're probably just paused Apr 10 21:33:32 wtf, why is this working again? I didn't change anything Apr 10 21:33:37 * kommunicate throws his computer out of the window Apr 10 21:33:59 hunting leaks with LeakCanary Apr 10 21:34:20 anyone familiar with cursorJoiner vs just a normal cursor, I am trying to get data from 2 tables (booksTBL (_id,cat_id,title, author) and categoryTBL (_id,category) , if i was using normal sql i would just do a join .. limitation 1 i can just do a rawQuery ... it has to use projections .. so i am trying with CursorJoiner Apr 10 21:34:23 http://pastebin.com/ghzMYGky Apr 10 21:34:29 o Hate android studio Apr 10 21:34:32 I Apr 10 21:34:51 but its what we are being taught on Apr 10 21:35:31 LeakCanary: good idea Apr 10 21:38:21 what i am trying to do is populate a listview from 2 tables, if i was just touching on table i would use a SimpleCursorAdapter .. but now that i am using a CursorJoiner .. this SimpleCursorAdapter adapter = Apr 10 21:38:22 new SimpleCursorAdapter(this, R.layout.books_list, cursor, columns, idArray, 0); will not work Apr 10 21:38:41 already found 2 of them ;-; one with a useless context, and another one with a listener i forgot to set at null Apr 10 21:41:31 or does anyone have a better idea of how i can get the book category string that its _id matches the cat_id from the book table, you know like a regular join ,, but with android ... Apr 10 21:41:50 sqllite Apr 10 21:45:51 no ideas? nobody has tried something like this before ? Apr 10 21:51:39 Hi everyone im trying to build a rom from source and im a noob. I already downloaded the the marshmallow branch for android but now i dont know what to do next. Im trying to build an ASOP rom for my Moto X Pure Edition and i dont know how to get the device tree nor how to sync it with the android source. Apr 10 21:57:02 Anyone here use startActivityForResult to manage the backstack Apr 10 22:03:43 Seems like it should work Apr 10 22:09:37 Hi, how can I get the title/action bar to show in every activity? Apr 10 22:11:38 thomasross: http://developer.android.com/training/appbar/setting-up.html Apr 10 22:12:08 have your activities extend AppCompatActivity and set the theme and necessary XML values Apr 10 22:15:32 Artichokeslam: thanks, that worked! Apr 10 22:25:18 Ok so setResult only gets called when the activity finishes Apr 10 22:25:20 interesting Apr 10 22:25:25 makes sense really Apr 10 22:27:56 \/exit Apr 10 22:40:03 I'm trying to use a FloatingActionButton but I am getting an java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. Apr 10 22:40:32 However, in my AndroidManifest I have android:theme="@style/Theme.AppCompat.Light"> Apr 10 23:08:59 thomasross: check if you do setTheme in onCreate Apr 10 23:09:10 justJanne: I don Apr 10 23:09:11 't Apr 10 23:10:31 I need a new laptop Apr 10 23:10:40 ##hardware isn't very into practical machines it seems Apr 10 23:10:58 is a macbook worth the price to you? Apr 10 23:11:48 lol no Apr 10 23:12:35 Lenovo ThinkPad seem to be quite good for the price iirc Apr 10 23:12:41 Macbook's are over priced Apr 10 23:12:51 but if you do iOS dev then essential Apr 10 23:13:10 I'd get a Macbook so I could try out iOS dev Apr 10 23:13:24 or if I had to choose between Windows and OS X, I'd probably pick OS X Apr 10 23:13:31 i have a thinkpad Apr 10 23:13:51 e550 Apr 10 23:13:59 the build quality of the thinkpads is great Apr 10 23:14:07 I'm on ubuntu right now and I hate it lol Apr 10 23:14:10 so ugly Apr 10 23:14:16 i run debian on that thing Apr 10 23:14:21 runs awesome Apr 10 23:14:33 the main appeal of OSX is the unix tools that are included Apr 10 23:14:38 and the polished UI Apr 10 23:14:46 i've heard plenty of bad things about it too though Apr 10 23:14:48 the unix tools on os x are a joke Apr 10 23:14:55 4-5 years out of date Apr 10 23:16:20 hello guys Apr 10 23:16:40 i have to make a custom widget like a scrollable gear Apr 10 23:17:11 so unix tools or polished UI, pick on? Apr 10 23:17:13 *one Apr 10 23:17:35 what? Apr 10 23:17:40 bash on windows looks cool, if they implement it right Apr 10 23:17:59 ah ok, you are not talking with me Apr 10 23:18:00 sorry Apr 10 23:18:32 ok, i try to explain what i want to do Apr 10 23:18:47 i want scrollableview with circular element inside Apr 10 23:19:02 in the scrollable view must be visible 3 element at time Apr 10 23:19:42 and i want the middle element is sticky Apr 10 23:19:53 i make it clear? Apr 10 23:21:04 RustyShackleford: You could always get a macbook and then install Linux, but that's expensive :P Apr 10 23:22:06 well at that point I'll get a dell or something Apr 10 23:22:16 I paid 300 bucks for this dell (newegg daily deal) Apr 10 23:22:26 its done great for the past 3 years Apr 10 23:23:04 ah Apr 10 23:23:37 yeah even if the build quality is so nice, I can't justify a macbook Apr 10 23:25:43 yeah id just get a thinkpad Apr 10 23:27:26 RustyShackleford: Try Elementary OS Apr 10 23:27:29 I'm using it atm Apr 10 23:27:39 nicest looking distro I've used Apr 10 23:29:15 problem with elementary is the same problem with mint Apr 10 23:29:21 ill link in a min or two Apr 10 23:29:31 justJanne: could it be an issue with the version of appcompat i'm using? Apr 10 23:30:55 I think chrome just doesn't work very well on linux Apr 10 23:31:55 it works fine? Apr 10 23:33:44 damn it. Apr 10 23:33:48 stackoverflow is down Apr 10 23:35:26 there are bugs definitely Apr 10 23:35:37 i haven't had any issues Apr 10 23:35:44 this one has existed for years. Two chrome windows are stacked on top of eachother Apr 10 23:35:58 click a tab to select it, the chrome window behind it is selected instead Apr 10 23:36:08 video playback is wonky Apr 10 23:37:04 I always have issues getting Flash working on Linux Apr 10 23:37:10 but always end up getting it some how :D Apr 10 23:38:16 i wish flash wopuld die Apr 10 23:40:30 also i wish SO would come back online Apr 10 23:42:31 Is it appropriate to use PreferenceScreen to store details like User first name, user last name, etc? Apr 10 23:43:18 justJanne: fixed it somehow, just cleaned the project and rebuilt o_o Apr 10 23:51:47 yay SO is back up Apr 11 00:31:08 hello Apr 11 00:31:12 someone can help me? Apr 11 00:33:29 usually best to ask the actual qestion Apr 11 00:34:43 i already ask it Apr 11 00:34:51 but no one give me response Apr 11 00:34:55 so, that is Apr 11 00:35:13 i want create custom widget in android that work like a "gear" Apr 11 00:35:23 i have a circular list scrollable Apr 11 00:35:49 and i want select middle element while scroll is done Apr 11 00:35:56 when* Apr 11 00:36:14 its little hard for me Apr 11 00:42:48 Is it wise storing an ArrayList of ArrayLists? Apr 11 00:43:34 I'm trying to figure out how to retrieve all the bookings from my Firebase database but the way my schema is set up I think I'll have to store the booking information in an arraylist of arraylists Apr 11 00:44:40 So essentially my schema is the following: /bookings//