**** BEGIN LOGGING AT Wed Feb 11 02:59:58 2015 Feb 11 03:06:57 Hello, im trying to add android.support.v4.widget.SlidingPaneLayout onto my project but everytime i run my app it crashes. Any ideas? I tried researching this much and tried many things but still crashes. Need help please. Feb 11 03:07:53 what did logcat say ? Feb 11 03:07:55 Whats the Exception in logcat Feb 11 03:07:58 ^ Feb 11 03:09:14 02-10 22:08:46.600 1136-1136/com.example.dynamo.newbutton E/AndroidRuntime﹕ FATAL EXCEPTION: main Feb 11 03:09:14 Process: com.example.dynamo.newbutton, PID: 1136 Feb 11 03:09:14 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dynamo.newbutton/com.example.dynamo.newbutton.MyActivity}: java.lang.RuntimeException: Binary XML file line #8: You must supply a layout_width attribute. Feb 11 03:09:43 oh man Feb 11 03:09:47 i think i know whats wrong now Feb 11 03:09:54 let me try something Feb 11 03:10:29 nope no good Feb 11 03:10:43 so any ideas from you good people out there Feb 11 03:10:59 it tells you Feb 11 03:11:08 * capella isn't good Feb 11 03:11:27 layout width Feb 11 03:12:11 I have it already set as android:layout_width="match_parent" Feb 11 03:13:50 xmlns:android="http://schemas.android.com/apk/res/android" Feb 11 03:13:51 xmlns:tools="http://schemas.android.com/tools" Feb 11 03:13:51 android:layout_width="match_parent" Feb 11 03:13:51 android:layout_height="match_parent" Feb 11 03:13:51 tools:context=".MyActivity" Feb 11 03:13:53 android:id="@+id/spLayout"> Feb 11 03:13:55 this is what i have Feb 11 03:14:20 please don't paste that much into the channel - use a pastebin Feb 11 03:14:21 in my xml file for my main activity Feb 11 03:14:29 k sorry bout that Feb 11 03:14:32 :) Feb 11 03:14:32 more than 2-3 lines, don't paste it Feb 11 03:14:37 k no Feb 11 03:14:39 np Feb 11 03:15:08 more than 2-3 lines, wrap it in bacon and pm it to Leeds :D Feb 11 03:15:21 NO BACON! Feb 11 03:15:37 :) Feb 11 03:17:07 This is my main activity: http://pastebin.com/ghPjn5ne Feb 11 03:17:14 please check it Feb 11 03:18:21 Oh i think the linear layout needs one width and height too Feb 11 03:18:37 there ya go... Feb 11 03:19:23 ok great it works now Feb 11 03:19:53 Ahh collaboration is the best =) Feb 11 03:20:38 Hello Feb 11 03:20:45 often, if you have to explain your problem to other people, you already know the answer Feb 11 03:21:01 I just installed Android studio Feb 11 03:21:05 is it better to directly connect through database by an android app or to do by web request? Feb 11 03:21:06 =)) Feb 11 03:21:25 child: web Feb 11 03:21:45 I am unable to start the emulator Feb 11 03:22:38 I-am-Groot: what happenes when you try Feb 11 03:23:23 Can i paste the error here?? Feb 11 03:23:38 Leeds: could you tell me pros and cons? Feb 11 03:23:41 Here goes Feb 11 03:23:43 ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them Feb 11 03:23:43 you will have to do at least one of the following: Feb 11 03:23:43 - Use the '-force-32bit' option when invoking 'emulator'. Feb 11 03:23:43 - Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment. Feb 11 03:23:43 Either one will allow you to use the 32-bit binaries, but please be Feb 11 03:23:44 aware that these will disappear in a future Android SDK release. Feb 11 03:23:46 Consider moving to a 64-bit Linux system before that happens. Feb 11 03:23:47 hehe well ill tell you what i was told, use pastebin :) Feb 11 03:23:57 it's in the topic, now really .... Feb 11 03:24:05 OOpps Feb 11 03:24:07 I-Am-Groot: use this next time buddy: http://pastebin.com/ Feb 11 03:24:08 sorry Feb 11 03:24:18 Okay Feb 11 03:24:26 also, the error tells you the problems ... Feb 11 03:24:40 Yea Feb 11 03:24:51 It seems to be giving me a workaround Feb 11 03:24:58 But i dont know where to start Feb 11 03:25:09 which image are you using for the emulator Feb 11 03:25:22 you don't know where to start following the instructions it just gave you ? Feb 11 03:25:23 Its a Nexus 5 Feb 11 03:25:41 Yea Feb 11 03:26:23 bankai, its telling me to use -force -32bit option Feb 11 03:26:45 Where do i insert that Feb 11 03:28:17 why aren't you running 64 bit anyway? Feb 11 03:28:27 <_genuser_> finally added a new file parser class to read legacy versions. and create versioned files. Feb 11 03:28:39 i'd go for the env var, then you don't have to worry about it again Feb 11 03:28:53 OOkay Feb 11 03:29:08 Forgive my Noobness... but am still lost Feb 11 03:31:38 is there a specific irc channel for android studio? Feb 11 03:32:18 your problem isn't related to AS Feb 11 03:34:16 Okay Feb 11 03:34:25 What is it related to?? Feb 11 03:34:55 the emulator Feb 11 03:35:10 <_genuser_> u mean emulatah? Feb 11 03:44:47 Yea Feb 11 03:44:49 Lol Feb 11 03:45:04 I have done some research ryt now Feb 11 03:45:37 i just added export ANDROID_EMULATOR_FORCE_32BIT=true to my .bashrc Feb 11 03:45:47 but it still wont launch :( Feb 11 03:45:57 what is "google apis" in the sdk manager? Feb 11 03:48:36 how does it differ from google play services? Feb 11 03:48:36 Guys, so if AS's inbuilt emulator doesnt work, is there any way i could run my projects?? Feb 11 03:48:43 you're probably after google play services, under extras Feb 11 03:49:07 I have Genymotion installed Feb 11 03:49:08 bankai_, that's a different topic though. that is "google apis"? Feb 11 03:49:09 I-am-Groot: they aren't inbuilt and they do work Feb 11 03:49:30 bankai_, sorry, what* is "google apis"? Feb 11 03:49:34 Pls tell me how to get it up and running bankai Feb 11 03:49:53 I-am-Groot, the emulator is crap. use a device Feb 11 03:50:02 Hmmm okay Feb 11 03:50:12 Can i use genymotion?? Feb 11 03:50:17 use a device Feb 11 03:50:29 Okay Feb 11 03:51:04 fuggg https://www.google.com/search?q=what+is+%22google+apis%22+in+sdk+manager&client=safari&rls=en&ei=F9DaVIjjLcnSoASci4KwCA&start=10&sa=N&biw=1183&bih=695 Feb 11 04:00:42 anyone ever figure a clever way to reduce duplication of preference key (strings) used in the API and specifie in the xml's android:key tag? Feb 11 04:04:33 g00s: use string resources Feb 11 04:04:43 night Feb 11 04:05:03 night Feb 11 04:06:01 Napalm|afk and his stupid crazy sleep schedule Feb 11 04:06:27 😵😴 Feb 11 04:14:58 how come apps like these are allowed in playstore ! https://play.google.com/store/apps/details?id=com.yschi.MyAppSharer&hl=en Feb 11 04:15:03 what happens if the users uses this app to share a purchased app for free to all his friends ? Feb 11 04:15:06 hwo did google allow such an app ! ? Feb 11 04:15:39 solofight: are you expecting the answer to have changed since you asked the same question yesterday? Feb 11 04:18:11 Leeds: oh,... just noticing that there were answers to my question yesterday !... my bad to expect people to tag my name when they answer :( Feb 11 04:20:34 i'm just curious, how would that even work ? Feb 11 04:21:31 g00s: well, if you put someone's nick in your response, the IRC client can highlight your response to that person Feb 11 04:21:48 "Offers in-app purchases" ... can you share its IAPs too :) Feb 11 04:22:09 thanks Leeds Feb 11 04:26:06 <_genuser_> do you guys ever create binary formats? Or just dump everything into an xml or json file and base64 encode the binary data? Feb 11 04:27:05 probably better to protobuf it Feb 11 04:27:12 if you can Feb 11 04:27:25 <_genuser_> g00s: me? Feb 11 04:35:31 Guys..Its me again Feb 11 04:36:25 Where is AS supposed to save apks on ubuntu? Feb 11 04:37:21 Because mine is being saved in the root directory Feb 11 04:37:26 is that normal? Feb 11 04:38:27 I-am-Groot, it's up to how you are building the app Feb 11 04:38:56 mmmm...no response :( Feb 11 06:06:27 holy crap, 8K displays are coming :O Feb 11 06:14:27 smh Feb 11 06:14:33 almost feel good i haven't bought a 4k yet Feb 11 06:14:49 that would explain why they were looking kinda affordable this past black friday though Feb 11 06:18:47 What is the recommended approach if the application has no portrait layout? I've set android:configChanges="orientation|screenSize|keyboardHidden" android:screenOrientation="landscape" yet still the application crashes upon screen lock. Feb 11 06:21:12 also this: minSdkVersion 16 targetSdkVersion 21 Feb 11 06:23:51 this is the base class that other two activities have extended: http://pastebin.com/FPSgCWMz Feb 11 06:35:45 Hello Everybody! Feb 11 06:38:24 So I have a conceptual question : What would be the caveats of Event Bus over Interface based callback mechanism? Feb 11 06:38:37 In terms of overall size of the app? Feb 11 06:38:49 I have an app where a lot of interfaces are being used for communication and callbacks. This makes the whole flow quite complex to understand. I wanted to switch to an Event Bus for brevity purposes. Feb 11 06:40:30 cons of event bus: need to create event classes and all the classes depend on it. Overall, I still find it has more benefits than drawbacks Feb 11 06:44:05 deuteros, completely agreed on that. similarly, we have to create interfaces for them Feb 11 06:44:24 I was mainly concerned about the APK size because of the event bus library Feb 11 06:45:15 SheikhAman: Should be the least of your concerns, it’s pretty small Feb 11 06:46:55 :D Thanks! Feb 11 06:47:07 Will be doing some experiments and will post results here Feb 11 06:47:11 Napalm applyStyle() works, i used it wrong. so you can use it to simulate mixins for themes \o/ Feb 11 06:48:39 i spend way too much time looking up android theme attributes, i hate this crap Feb 11 07:10:20 Otto is just 17KB and Green Robot's Event Bus is less than 50KB. Good enough Feb 11 07:10:42 I think I'll now have to see if learning Otto is too steep of a path, since I am already accustomed to Event Bus Feb 11 07:11:06 It isn't Feb 11 07:14:18 Can I subscribe to a replay subject after it's been subscribed to and unsubscribed? Feb 11 07:14:33 knapper_tech sure Feb 11 07:14:41 its a hot observable Feb 11 07:14:51 Got a null pointer reference on trying to resubscribe and not sure what nulled Feb 11 07:16:10 all of the hot observables can be subscribed / unsubscribed until the cows come home - not sure what happens when they call onComplete, i suppose your subscriber would get an immediate onComplete Feb 11 07:17:19 Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference Feb 11 07:18:14 i dont see anything related to rx there :) Feb 11 07:19:09 null exception occured deep in rx call stack Feb 11 07:19:14 rx calls at the top of the stack] Feb 11 07:20:41 dunno, use the latest 1.0.5 - i've never had problems with those. stuff blows up when you onError but your subscriber doesn't implement onError - i make that mistake on occasion Feb 11 07:22:17 The tight coupling between observables and subscribers still bother me about rx Feb 11 07:32:34 g00s, found the error. I'm hooking up a fragment that isn't visible to a subscription...so that I can return the.....stupid.... Feb 11 07:32:43 I have a fragment so I'll manage lifecycle there Feb 11 07:33:12 I was managing the subscriptions of children that were quite smart enough to unsubscribe themselves like good little spawn Feb 11 07:34:00 :) Feb 11 07:35:25 g00s: worked a bit with AS last night Feb 11 07:35:29 it lloks noce Feb 11 07:35:30 nice Feb 11 07:35:35 hey thepoosh Feb 11 07:35:42 hi hi Feb 11 07:35:46 you have been using eclipse up to now ? Feb 11 07:36:06 what about the rest of the team ? Feb 11 07:36:17 yeah, still doing it since our build.gradle is not compatible with the AS plugin Feb 11 07:36:24 and also uses outdated gradle Feb 11 07:36:26 (1.12) Feb 11 07:36:29 hm Feb 11 07:36:46 but a team member ported the project to AS earlier this week Feb 11 07:36:49 so I had a look Feb 11 07:36:55 it's quite nice Feb 11 07:36:58 it's s obeautiful Feb 11 07:37:07 even though it said that it's in beta Feb 11 07:37:37 thepoosh hm, the ide shouldn't give you trouble. but you'll have to make sure your gradle build works OK. Feb 11 07:37:43 thepoosh, I've been getting shit done with AS. The support for xml and id reference things are pretty awesome. Feb 11 07:38:04 since you are on these sprints, and seems like heads are rolling, i'd use gradle-plugin 1.0.+ still Feb 11 07:38:52 anywho, sprints are relaxing Feb 11 07:39:02 too much shit sue to bad specs and design Feb 11 07:39:07 *due Feb 11 07:39:17 so we're slowing down the pace Feb 11 07:39:20 thepoosh who makes the specs ? Feb 11 07:39:27 we have a product team Feb 11 07:39:59 sounds like a big production over there :) Feb 11 07:40:13 we have about 53 workers here Feb 11 07:40:47 6 product, 2 design, 7 android, 6 iOS, about 8 server Feb 11 07:40:56 a few customer service people Feb 11 07:41:00 some marketing Feb 11 07:41:07 CPO, CTO, CEO Feb 11 07:41:09 Only thing I hate in AS is that it doesn't select which tabs to display ver well Feb 11 07:41:23 hmmm Feb 11 07:41:28 Chief poop officer? Feb 11 07:41:36 product Feb 11 07:41:56 didn't know that was C-level, but cool! Feb 11 07:42:14 he is one of the founders Feb 11 07:42:16 product! it's all product! Feb 11 07:42:25 he's the dreamer Feb 11 07:42:31 of how things should work and look Feb 11 07:42:32 oh boy Feb 11 07:42:42 what do the 6 product people do ? Feb 11 07:42:45 There are still a few things that bother me about AS compared to Eclipse, like the logcat view is crazy slow, the absence of incremental recompilation Feb 11 07:42:46 thats crazy Feb 11 07:43:14 deuteros__ yeah, incremental compilation :( Feb 11 07:43:21 AS recompiles my stuff super fast.. SSD so maybe I just can't see Feb 11 07:43:41 g00s: Even a Problems view would be an improvement, but instead, I have to type alt-f9 to build all the time... wtf, this is 2015 Feb 11 07:43:49 you can have incremental builds Feb 11 07:43:51 problem is i actually have to compile to find errors in the project Feb 11 07:44:16 g00s: Exactly, that's retarded Feb 11 07:44:16 even though AS seems smarter about the model, which is more flexible, it seems dummer about whats wrong Feb 11 07:44:21 g00s: they design marketing, iPhone app, iPad app, Android app, iWatch app, Android wear app Feb 11 07:47:16 thepoosh who does UX ? Feb 11 07:48:38 but thats interesting, 7 android people Feb 11 07:49:13 maybe if i could clone myself 6 times i'd actually be able to get my android project done Feb 11 07:49:25 You'd keep arguing with yourself Feb 11 07:51:14 yeah thats not good Feb 11 07:51:32 g00s: the designer after talking to prodcut and one of our guys is the UI/UX master Feb 11 07:52:25 Is there anyone who has sucessfully restored a dialogfragment on rotate? Feb 11 07:52:45 http://pastebin.com/EVKhA1CV Feb 11 07:53:10 Even trying to restore my dialog in my activities onCreate fails Feb 11 07:54:29 http://pastebin.com/n8XAS9km Feb 11 07:54:33 yeah i think i've been getting google messages about that bug for like 2 years Feb 11 07:54:37 maybe more Feb 11 07:54:53 I am running lollipop Feb 11 08:04:17 Hi all, new to Android. Trying to follow getting started docs from Google. A default template includes the manifest line android:theme="@style/AppTheme" and the AppTheme file says something like