**** BEGIN LOGGING AT Thu Nov 10 03:00:01 2016 Nov 10 04:28:26 "Campaign Asia reports that gadget maker Lenovo will stop marketing smartphones with its own brand name and adopt the Moto label from here on out." Nov 10 04:28:36 yeah, who cares ... moto is gone Nov 10 06:17:05 nverinaud does emulator work first? Nov 10 07:31:58 morning peeps Nov 10 08:58:09 hi Nov 10 08:58:21 I'm doing a GET request to an internal endpoint. This request takes approximately 3 minutes to execute. When I run it over wifi, it works fine. When I run it over 4G (which is faster than our wifi!) it always throw a SocketTimeoutException Nov 10 08:58:27 I can't explain why, 4G here is so fast Nov 10 09:00:34 Is your service only available on your internal network? Nov 10 09:17:56 Mavrik: no, it is open to everyone Nov 10 09:25:37 thepoosh boker Nov 10 09:26:01 Can you actually see if request reach the server? Do shorter requests work? Nov 10 09:32:19 raoul11: indeed it is Nov 10 09:33:00 whats the score thepoosh? are we winning? Nov 10 09:33:31 well, we are making everything great again Nov 10 09:33:36 except my FB feed Nov 10 09:33:44 that is filled with political spam Nov 10 09:34:55 kek Nov 10 09:35:16 lemme guess, full of h8 to the mainstream media and lefties Nov 10 09:44:03 raoul11: nah, filled with angry liberals Nov 10 09:44:26 donno which kind is worse Nov 10 09:44:31 both Nov 10 09:44:43 the past 6 months have been social media hell Nov 10 09:44:46 Thinking of making a webm camera app just for 4chan. Any suggestions? Nov 10 09:44:59 winsoff: cool Nov 10 09:45:21 you'll have to save something as a media file such as mp4 and then convert Nov 10 09:45:28 Really? Ah fuck Nov 10 09:46:24 winsoff: http://stackoverflow.com/q/16748074/1056359 Nov 10 09:47:21 SimonVT: yeah, the request does reach the server Nov 10 09:47:41 (sorry for the delay but without quoting my name I don't have notification) Nov 10 09:48:00 Hey guys anyone know why is not sending notification http://pastebin.com/R0PSfwP1 it's xamarin but the code is almost identical (I was looking at java example). Is it because I using application context? Nov 10 09:48:34 It doesn't crash I just don't see notification Nov 10 09:49:36 Almis90: you must set an icon Nov 10 09:50:32 thepoosh oh I didn't know that, ok I will try Nov 10 09:52:37 sup ya Nov 10 10:23:24 Do any of you guys know a good way to get my old iphone contacts onto my new Android phone? I tried downlloading the vcf but it gives me 1 file called x contact + 1432 more and when I open that up with People or windows contacts it just opens up the first of the lot Nov 10 10:27:01 basically you need to dump that file to google contacts Nov 10 10:27:26 sync after Nov 10 10:27:43 I want to make software in small pieces and join them later. I think node does that level of modularity but not android or javaee. Is there a way? Nov 10 10:27:46 plasmar, go to your google account, give that file to your google contacts Nov 10 10:27:56 and then it will let you go through them afterward, as raoul11 Nov 10 10:27:58 said** Nov 10 10:28:13 Sircle, what are you trying to say? How would node do that, but nothing else would? Nov 10 10:29:48 winsoff: yes. I am finding a way Nov 10 10:29:49 cool thanks yall Nov 10 10:29:56 has dart for android been discontinued? Nov 10 10:30:31 one could hope Nov 10 10:30:37 cept g00s Nov 10 10:43:50 Hi, how can I multidex my app only for debug mode? Nov 10 10:46:41 astroduck: make a separate flavor Nov 10 10:47:10 or buildtype not sure which Nov 10 10:49:43 xorgate: I used buildtype and added `debugCompile 'com.android.support:multidex:1.0.1'` in my dependencies. And also created 2 files in debug/release folders to abstract the MultiDex.install(this) part from App but I get an error: Error:Execution failed for task ':app:transformClassesWithDexForDevDebug'. > com.android.build.api.transform.TransformException: Nov 10 10:49:46 com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException Nov 10 10:51:16 multiDexEnabled true Nov 10 10:53:45 I did, in debug buildConfig Nov 10 11:08:48 plasmar: sup yo! Nov 10 11:19:51 Can I user googleApiClient in a background Service as a result from a broadcast from a receiver ? Nov 10 11:51:51 csst0111: that doesn't make much sense to me Nov 10 11:52:54 meaning ? I was just wondering what if service gets killed before connection happens Nov 10 11:55:39 why do that in a service? Nov 10 11:56:17 cause I receive a request from a web service Nov 10 12:04:11 Hello ! Anyone know how to change the color of the "Small text" and "Medium text" of a theme ? Like you can see on this picture, large is black and medium small are gray... http://www.hostingpics.net/viewer.php?id=193834Sanstitre.png Nov 10 12:12:29 I tried this : @style/TextViewStyle Nov 10 12:12:34 Nov 10 12:28:37 hi o/ Nov 10 12:47:39 Qwertie: Hi \o Nov 10 12:54:29 I was just wondering what is the best way to do notifications to save on power usage? From what I can see most people use google to push out notifications but is there a way to do it without the play services? Nov 10 12:55:17 FCM is very good Nov 10 12:55:25 there are other services for this such as Pubnub Nov 10 12:55:31 also sinch Nov 10 12:56:09 Are these services like GCM? Nov 10 12:56:33 they are pub/sub services Nov 10 12:56:43 and you should use FCM and not GCM Nov 10 12:56:51 So no extra 3rd party servers? Nov 10 12:57:08 don't follow the question Nov 10 12:57:52 Im looking for a way to send notifications with low power usage without sending them through a 3rd party service Nov 10 12:58:03 not gonna happen Nov 10 12:58:22 all push mechanisms that are worth their name are 3rd party server based ones Nov 10 12:58:26 including GCM/FCM Nov 10 12:59:20 What if the notifications went through something like XMPP or Matrix so there is still one server but you can run your own if you want Nov 10 13:00:10 than you need to not only scale up with the number of registered (not active) users you have, you also need to write and maintain the entire registration and delivary mechanism Nov 10 13:00:27 unless you can really justify it, you should avoid it Nov 10 13:00:30 But it could work? Nov 10 13:00:37 of course it can Nov 10 13:00:45 it's just a very VERY bad idea Nov 10 13:02:20 Because it would be difficult to get working or because you couldn't get it working as well? Nov 10 13:02:38 both, and because costs are going to be very high Nov 10 13:02:45 and breakage will happen Nov 10 13:02:52 and security will be bad Nov 10 13:03:05 Why would security be bad? Nov 10 13:03:19 The messages could be end to end encrypted Nov 10 13:03:32 how? Nov 10 13:03:52 Matrix has a fairly new protocol called olm for end to end encryption Nov 10 13:04:21 The server could just encrypt the notification before sending Nov 10 13:04:48 Would only work if the server was made to support it though Nov 10 13:04:50 sounds like you're over complicating your servers instead of using a BaaS Nov 10 13:05:33 I know that its more complex than it needs to be but im just thinking about people like me that dont have the google play services Nov 10 13:05:47 it's not just more complex, it's stupid Nov 10 13:06:02 Ashiren: help me here Nov 10 13:07:02 raoul11? Nov 10 13:10:58 Qwertie so you are looking for alternatives to FCM because of the dependency to play services. Or looking into technology to do it all by yourself? Nov 10 13:18:46 Zooklubba: Not looking to do something my self im just looking into if there are any solutions to break the dependency on a single organization Nov 10 13:19:16 I know that its not as practical as the other methods but I was just wondering how possible it would be Nov 10 13:19:31 Didnt thepoosh mention two other services that are not FCM/GCM? Nov 10 13:21:05 thepoosh: ? Nov 10 13:22:44 well the services likely depensd on GCM/FCM Nov 10 13:23:14 good things about GCM/FCM is that it can work in deep sleep, while what youre saying would need to listening to socket, thus draining more battery Nov 10 13:36:03 Ashiren: I know that pubnub has a backup for when in China Nov 10 13:36:19 but in general implementing pub/sub for mobile is a bad idea Nov 10 13:48:33 I have an ImageView, initialized with scaleType.matrix. I'm creating new matrix, and replacing the image with a cropped version of the image initially loaded. The display of the image seems to be messed up Nov 10 13:48:37 Any idea why this is happening Nov 10 13:57:55 sup thepoosh Nov 10 13:59:43 i'm back Nov 10 14:13:32 hey my friends, does anyone know how can I put an input on a form that takes an address, makes suggestions and return coordinates?? Nov 10 14:17:48 j4f-shredder: what suggestions Nov 10 14:18:27 for example if I type "5th" I would like to see "5th Av. New York, United States" Nov 10 14:18:34 then I select that and I get the coordinates Nov 10 14:18:40 is there something like that? Nov 10 14:20:01 i never tried but maybe this is good for you https://developer.android.com/reference/android/location/Geocoder.html Nov 10 14:20:17 getFromLocationName Nov 10 14:23:39 great Nov 10 14:23:53 I will try this for sure sci-fic...thank you very much my friend Nov 10 14:34:39 There are some examples around of someone passing to AlarmManager a broadcast PendingIntent that broadcasts an Intent that "executes"(whatever that is) a BroadcastReceiver that apparently also receives Intents Nov 10 14:35:08 I don't get what on earth that is supposed to be Nov 10 14:47:32 anyone using leak canary and getting this same issue? https://github.com/square/leakcanary/issues/494 Nov 10 14:54:41 Hoping someone here can help with a bug I can't find a solution for in any of the usual forums: Nov 10 14:54:53 My activity extends AppCompatActivity and implements a ListView. There error I'm seeing is "java.lang.IllegalArgumentException: parameter must be a descendant of this view". The error is only seen when I hit the virtual back button on a physical device. My onBackPressed() is set up like this: Nov 10 14:55:02 public void onBackPressed() { View currentFocus = getCurrentFocus(); currentFocus.clearFocus(); Intent a = new Intent(this, StartActivity.class); a.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(a); super.onDestroy(); } Nov 10 15:06:27 should pastebin full stacktrace, plus why super.onDestroy() when in onBackPressed? Nov 10 15:07:57 Hey guys. I want to optimize my app for RTL at the moment and everything works very fine so far, except one problem: As soon as a text is mulitline, it doesnt align correctly anymore but instead aligns like it would be ltr.Singleline textviews work just fine Nov 10 15:10:10 Thanks, @whatitis Nov 10 15:10:15 http://pastebin.com/raw/AdvAqkj4 Nov 10 15:14:08 what lead you to the onBackPressed being the point of error? i don't see it in the stacktrace Nov 10 15:15:35 Long stack traces are cut off. Assuming it's clearFocus() causing it, why do you even need to do that if the Activity is going away? Also, don't call super.onDestroy(). Nov 10 15:17:13 clearFocus() and super.onDestroy() were added to try to resolve. It prevented a full crash of the app but still getting an error. Nov 10 15:18:19 you'd do super.MethodYouAreIn(), super.onBackPressed(), why are you even getting current focus and clearing it? Nov 10 15:18:32 super.onDestroy() is very wrong, clearFocus() is most likely wrong. Remove those and debug the initial error Nov 10 15:18:43 it calls that method in the parent class of one that extended it Nov 10 15:19:16 If that stack trace is cut off as well, try and attach a debugger. That might let you inspect all of it Nov 10 15:19:58 orginal method: http://pastebin.com/raw/S1CmnpBp Nov 10 15:20:34 and result: http://pastebin.com/raw/WMfeFcm8 Nov 10 15:25:12 Can't say it's an error I've had before. Maybe find out what View is causing it, and what about that View Nov 10 15:26:23 should i do backup sharedprefrences (BackupAgentHelper) on every write to sharedpref, or activity's onstop? Nov 10 15:26:51 I believe it's this view: http://pastebin.com/raw/nCgVpuWi Nov 10 15:26:54 i know its queued till the request is made, just wondering if too many calls to it is the right thing to do Nov 10 15:27:59 That's a layout containing multiple Views Nov 10 15:52:01 My viewgroup's visibility is set to GONE but still it's onClickListener is firing. How is it possible? Nov 10 15:57:11 Maybe the onClick is set for the parent? Nov 10 15:58:24 No the onClick is set for the viewgroup whose visibility is set to GONE Nov 10 16:00:56 does the onClick fire for the invisible views? Nov 10 16:04:58 Don't think so Nov 10 16:05:45 Maybe try view.setClickable(false) to see if it still happens? Nov 10 16:22:29 When I attempt to install an application from the Play store in an Android Emulator, the application is installed to my real device. How do I install them in the emulator? Nov 10 16:56:13 Does anybody know why urban dic is black and white Nov 10 17:07:29 karthyk: Huh? Nov 10 17:08:05 I am implementing a voice search option https://developer.android.com/guide/components/intents-common.html#Search and it's working, but my SearchActivity has a parent activity so it breaks after navigating around. Any ideas on the best way to solve? Nov 10 17:12:00 i guess i could send the search to my main activity then call my searchactivity like the app normally does but that doesn't seem right Nov 10 17:36:53 Anyone know much about the error "warning: Ignoring InnerClasses attribute for an anonymous inner class"? Nov 10 17:37:01 It says, "This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler" Nov 10 17:37:28 I have no idea how the library was compiled though since it's coming from another provider Nov 10 17:37:43 Is there anything I could investigate myself to help them resolve it? Nov 10 17:37:49 yiati: There was a bug in previous build tools causing that issue. Nov 10 17:37:58 Though this bug is not the only possible cause. Nov 10 17:38:19 I'm on "com.android.tools.build:gradle:2.2.1" Nov 10 17:38:25 for the Android gradle plugin Nov 10 17:38:51 How do i remove the project name showing up on the title bar of the app when i choose empty project Nov 10 17:39:05 I'm on 2.2.2. I can't remember whether upgrading to 2.2.2 fixed it for me. Nov 10 17:39:10 Updating *something* fixed it here. Nov 10 17:39:13 I'll try Nov 10 17:40:35 TacticalJoke: hmm no luck, which version of gradle are you running? Nov 10 17:40:56 Looks like I'm running 2.14.1 Nov 10 17:41:19 2.14.1 here too. Are you using `buildToolsVersion` 24.0.2? Nov 10 17:41:45 24.0.0, I'll try updating that as well Nov 10 17:47:44 yiati: Which Android Studio version are you using, by the way? Nov 10 17:48:38 This is the bug I'm thinking of (though your case could just be intended behaviour): https://code.google.com/p/android/issues/detail?id=222989 Nov 10 17:49:26 hey all, having an issue chasing down the cause of this stack trace, cant seem to find any solutions on usualy forums. Occurs when back button is clicked: Nov 10 17:49:27 http://pastebin.com/raw/tDq2ngAm Nov 10 17:49:39 java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Handler android.support.v4.app.FragmentHostCallback.getHandler()' on a null object reference Nov 10 17:56:52 RafRafCity: Not sure. Maybe you're not saying `super.whatever();` in Activity/Fragment overrides. Nov 10 18:05:02 @TacticalJoke thanks ill double check, but i think i have that all buttoned up Nov 10 18:05:04 any other ideas? Nov 10 18:05:33 Not sure; I'm not much of a Fragment kinda person. Nov 10 18:05:44 You might have to post code otherwise. Nov 10 18:05:58 roger, ill triple check real quick Nov 10 18:05:58 thx Nov 10 18:09:55 TacticalJoke: I'm on 2.2.2 of Android Studio, but I'm getting this message from terminal with "./gradlew clean assembleDebug" Nov 10 18:10:18 TacticalJoke: Thanks for that link though, I've definitely seen the "AGPBI" stuff before Nov 10 18:10:38 yiati: When did this problem start? Nov 10 18:11:48 Mmm I believe when I updated this library but I'm not sure the last time I updated it. I'll try messing with the version number, and if I can't figure anything out I'll probably just have to contact them Nov 10 18:12:30 Ahh, yeah, in that case it may well be a real problem on their end. Nov 10 18:13:44 Can anyone point me towards a github repo with the source code of a vendor flavor of android? Complete with the drivers for their camera(s)? Nov 10 18:14:06 Hello, I am trying to connect my phone to an emulated android wear watch. I have been able to connect it in the past, but now it won't connect. I am forwarding the tcp port. The message the emulated watch shows up with is "removed from network. unpair watch to reset". Any ideas? Nov 10 18:47:19 doesn't anyone else find it annoying that changing the project file structure from outside Android Studio it closes the Studio's file tree and you have to navigate your way back to where you were all over again? Nov 10 18:49:57 So I've written a few simple Android apps before, but the codebase is usually a bit of a mess by the end of it. Is there a good intro to Android dev best practices I should go through? Nov 10 18:50:19 other than good OOP principles, not really Nov 10 18:51:17 i don't think there can be an exhaustive list of development patterns for every single case Nov 10 18:52:10 ask 15 different devs, you’ll get 17 different answers Nov 10 18:53:32 Poeticode: You could start with implementing an MVP pattern. Nov 10 18:56:35 ah, that makes sense Nov 10 18:57:08 oooo, Eclipse Neon for Android! Nov 10 19:03:25 Poeticode: https://codelabs.developers.google.com/?cat=Android Nov 10 19:04:23 Poeticode: This 4th slide in the testing code lab is actually a pretty nice soft into to MVP which one of the 17 options, https://codelabs.developers.google.com/codelabs/android-testing/index.html?index=..%2F..%2Findex#3 Nov 10 19:04:31 s/into/intro/ Nov 10 19:05:01 Also https://github.com/googlesamples/android-architecture Nov 10 19:32:21 thanks for the links, yiati! Nov 10 19:54:01 Anyone know if someone made a material design dimen.xml sheet? Nov 10 19:57:10 https://github.com/DmitryMalkovich/material-design-dimens/blob/master/material-design-dimens/src/main/res/values/dimens.xml Nov 10 20:01:15 hmm that is wron Nov 10 20:05:15 is there a way to check if a broadcastreceiver is registered and up? I setup one for BOOT_COMPLETED and I don't see anything indicating that it has been called. Nov 10 20:05:56 I adb shell and checked the list of packages on the emulator and it shows the package for the broadcastreceiver Nov 10 20:06:08 but I want to ensure that it is being registered. Nov 10 20:17:32 can android: be shortened, ie defined as like ad: for xml declarations? Nov 10 20:27:46 Anyone know if someone has made available optimized xml layouts for standardized material design lists? Nov 10 20:35:04 what do you mean? Nov 10 20:37:14 there's a material values library: https://github.com/AoDevBlue/MaterialValues Nov 10 20:46:58 that helps but i was curioius for like instance, they have a defined 2 item row , is there an optimized xml for this? Nov 10 20:47:10 so implementing all those values in an actual generic layout file Nov 10 20:49:51 hmm there is an app google uses for the convention, what is it called? Nov 10 20:50:11 oh ioshched Nov 10 20:50:30 how can I check if a braodcast receiver is registered? It is presently setup for BOOT_COMPLETED but I am seeing nothing in logcat that indicates it is up and running. Nov 10 20:51:22 Ping_2_Ur_Pong, do you know how to use adb shell? Nov 10 20:51:31 you can force broadcast boot_completed Nov 10 20:51:43 how? Nov 10 20:51:46 http://stackoverflow.com/questions/11325920/how-to-test-boot-completed-broadcast-receiver-in-emulator/11326391 Nov 10 20:51:51 I am shelled in right now and can see the package Nov 10 20:51:55 * Ping_2_Ur_Pong bows to lasserix Nov 10 20:52:28 oh that's good thank you Nov 10 20:54:06 Can anyone help me with the location of the global Gradle tasks configuration on Mac OS? Nov 10 20:55:53 Sorry, this is in regard to Android Studio build tasks. Nov 10 20:56:24 reaxion: possibly Nov 10 20:56:46 yiati: I'm all ears/eyes. Nov 10 20:56:56 What's the question? Nov 10 20:57:25 I am trying to disable the mockableAndroidJar task as I do testing via other means Nov 10 20:57:50 What would be the best way to do that? Nov 10 20:58:26 When you build you can pass "-x :mymodule:mockableAndroidJar" to not run that specific task Nov 10 20:58:34 Oh nice. Nov 10 21:00:22 I'll give that a try. Nov 10 21:00:31 yiati: thanks man Nov 10 21:01:35 reaxion: I actually learned it from https://medium.com/@cesarmcferreira/speeding-up-gradle-builds-619c442113cb#.3vv4fd9t8 which is a good quick read on speeding up Android builds Nov 10 21:01:51 Cool. I'll check that out as well. Nov 10 21:02:43 yiati: This looks very useful. Nov 10 21:17:14 Interesting I guess: https://www.producthunt.com/posts/snapbots Nov 10 21:17:42 Though I dont understand the appeal since they launched the things Nov 10 21:23:42 is it correct that broadcastreceiver's will never be launched if the application they are associated with isn't launched at least once? Nov 10 21:26:11 it is definitely looking like it. If I remove the activity that's in the app from the manifest file. Even if the logic to start the broadcastreceiver doesn't need to be called through the activity nothing is called. Nov 10 21:34:11 orbyt_: What is it? Nov 10 21:34:46 Vending machines that dispense Spectacles Nov 10 21:35:12 Like Glasses? Nov 10 21:36:55 Ping_2_Ur_Pong: Yes, either they have to launch once, but you can also tie into the boot complete event Nov 10 21:37:04 s/but/or/ Nov 10 21:37:10 yiati: These things Snap released a few months ago: https://www.spectacles.com/ Nov 10 21:37:43 yiati would you elaborate please Nov 10 21:38:14 orbyt_: Ah, man I'm so far behind. I thought them being called Snap now was a joke Nov 10 21:40:02 Ping_2_Ur_Pong: You can have your BroadcastReceiver subscribe to https://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED Nov 10 21:40:25 Ping_2_Ur_Pong: http://www.vogella.com/tutorials/AndroidBroadcastReceiver/article.html Nov 10 21:42:20 Hi Guys ... I am writing a c++ class and am getting a linker error ... i am on Mac OsX Nov 10 21:42:39 I meant specifically being able to notice the completion of BOOT_COMPLETED without having an activity. I want to setup a jobscheduler to check for updates but it doesn't need any UI. Whenever I remove the activity from the application the BroadcastReceiver doesn't handle the BOOT_COMPLETED action. Nov 10 21:43:18 the error I am getting is "ld.gold: internal error in read_cie" Nov 10 21:43:33 can anyone help me troubleshoot this ? Nov 10 21:44:50 Ping_2_Ur_Pong: Are you defining the BroadcastReceiver in the AndroidManifest.xml? Nov 10 21:45:01 yes Nov 10 21:45:19 as well as the action BOOT_COMPLETED Nov 10 21:45:55 I saw something on SO earlier where a person was saying you can't have an app that has no UI. It was a security measure implemented by google against malware. Trying to discern if it is true or not. Nov 10 21:46:25 Ping_2_Ur_Pong: Ah you want to have no Activities, yeah not sure if that's possible Nov 10 21:47:56 Ping_2_Ur_Pong: Maybe you want to make something like play-services then? I know that Dave Smith wrote an article about his experience making a project similar to it, http://wiresareobsolete.com/2016/06/play-services-complexity/ Nov 10 21:55:18 How long has Android Studio been out? Nov 10 21:55:30 Just read a Job requirement that is asking 4+ years of AS experience.. Nov 10 21:56:15 AS/IJ... close enough Nov 10 21:56:29 until you start with Android things Nov 10 21:57:17 In that regard AS == Eclipse as AS == IntelliJ Nov 10 21:57:57 not really, AS doesn't stray that far from its IJ base Nov 10 21:58:44 Yeah, I get that point.. it’s just that there are just so many more Android-specific things in AS. Nov 10 22:00:05 like last year I saw someone asking for 10 years of Android exp, but it’s only been unveiled for 8 at the time… which makes me ask.. do these people really know what they want? Nov 10 22:02:10 no Nov 10 22:02:36 the descriptions are written by people who don’t know what the position requires Nov 10 22:02:56 they grab some things that sound right, and come up with numbers that sound right Nov 10 22:03:09 i’m guessing neither of those positions paid any good Nov 10 22:29:22 tricknology: According to Wikipedia, AS was announced in May 2013. Nov 10 22:30:16 i believe it was in beta for a year and a half Nov 10 22:30:20 s73v3r: pay is not mentioned on the description and it’s very vague as to who they even are… I’m going to guess with you on that one. Nov 10 22:30:20 Perhaps they want some kind of time-traveler or wizard. Nov 10 22:30:32 I’ll go with wizard for 500 Nov 10 22:32:17 Ping_2_Ur_Pong: Yeah I tried an app without any activities, and it installed, but didn't receive any events Nov 10 22:32:35 Ping_2_Ur_Pong: Guess a simple blank main activity will be necessary Nov 10 22:35:40 I put on my robe and wizard hat Nov 10 22:35:51 You’re hired! Nov 10 22:37:34 I kinda miss bash.org. Nov 10 22:37:41 Though I realise it's a few keystrokes away. Nov 10 22:41:00 now that windows 10 has a bash shell Nov 10 22:42:32 After reading http://www.bash.org/?latest just now, I feel that recent entries aren't as "l33t". Nov 10 22:42:43 Like nerds have dumbed down. Nov 10 22:43:59 http://hasthelargehadroncolliderdestroyedtheworldyet.com Nov 10 22:44:13 * orbyt_ wipes sweat from brow Nov 10 22:44:48 Part of me hoped to see "yes". Nov 10 23:01:51 TacticalJoke: hint: that site is not written in ASP.NET or Ruby on Rails. Nov 10 23:02:37 orbyt_: lol, "if the lhc actually destroys the earth & this page isn't yet updated please email mike@frantic.org to receive a full refund" Nov 10 23:03:30 source has a bunny with laser eyes Nov 10 23:03:46 mhm lol Nov 10 23:06:05 yiati: Biggest timewaster: http://www.theuselessweb.com/ Nov 10 23:06:17 My latest result: http://www.baconsizzling.com/ Nov 10 23:06:56 This is therapeutic: http://eelslap.com/ Nov 10 23:07:29 One of my favorites: http://crouton.net/ Nov 10 23:08:56 So I'm trying to create a sliding navigation drawer thingy... Nov 10 23:09:03 And I found three trillion guides online Nov 10 23:09:11 And none of them are getting me anywhere Nov 10 23:09:22 And they all conflict Nov 10 23:09:42 What's the latest/greatest way to do it, compatible with Material Design and all? Nov 10 23:10:16 HactarCE: DrawerLayout (with or without NavigationView). Nov 10 23:10:22 HactarCE: https://developer.android.com/training/implementing-navigation/nav-drawer.html Nov 10 23:10:23 Thank you, I'll give that a shot :) Nov 10 23:15:26 hey guys, i have a serialization issue on my app causing a crash. both crashes are from samsung phones running 6.0.1. i didnt pick it up in testing which makes me think samsung are doing something different under the hood for serialization Nov 10 23:15:31 is this likely? Nov 10 23:16:14 teasp00n: What do you mean by 'serialization'? Nov 10 23:16:29 it’s not likely Nov 10 23:17:14 i have java objects that implement serializable and written into bundles when the activity is destroyed then read back in when its recreated - standard lifecycle stuff Nov 10 23:17:34 and im using serializable, not parcelable Nov 10 23:17:43 you’ll have to post your code Nov 10 23:19:23 I'd also be curious to see the stack trace. Nov 10 23:22:50 http://pastebin.com/m90ZKxTg Nov 10 23:23:04 null pointer Nov 10 23:23:11 opoh Nov 10 23:23:18 yeah m8 Nov 10 23:23:24 ObjectOutputStream is not serializable Nov 10 23:24:43 that’s not it.. ha Nov 10 23:24:45 need code Nov 10 23:24:53 what kind of object are you trying to serialize? Nov 10 23:24:59 why not use parcelable? Nov 10 23:25:04 POJO Nov 10 23:25:23 theyre my objects, just domain objects Nov 10 23:25:37 yeah but you can stil parcel your own objects Nov 10 23:25:45 are the members also serializable? Nov 10 23:26:04 yeah defs, there was a reason we arent using parcelable i just cant remember haha Nov 10 23:26:42 hm.. might be one of the members of your custom Object? Nov 10 23:26:50 yeah they should be but thats a good point, ill check (this code has been tested on my personal device and was working) Nov 10 23:27:10 oh well that’s weird Nov 10 23:27:15 is it still working? Nov 10 23:27:26 i would try to remember why you didn’t use parcelable. It’s a better solution on android, and there are plugins that will help you work iwth it Nov 10 23:27:29 so i was thinking perhaps its a class provided by the system and in some versions of android is serializable and in others not Nov 10 23:27:59 oh that’s nasty Nov 10 23:28:13 you can still parcel a serializable though Nov 10 23:28:16 yeah, i hope thats not it haha Nov 10 23:28:39 i understand parcelable is a bit more work but worth it IMHO Nov 10 23:28:48 and yeah it’s a pain to maintain.. Nov 10 23:29:05 does AS have automatic stuff for parcelable BTW? Nov 10 23:29:06 anyone know? Nov 10 23:29:10 would be nice if it did Nov 10 23:29:20 (as it’s basically boilerplate) Nov 10 23:29:25 teasp00n: I wonder whether it's a ProGuard issue. There are quite a few results for 'notserializableexception proguard'. Nov 10 23:29:57 are you using a proguarded library? Nov 10 23:30:04 (even if it’s yours) Nov 10 23:30:11 there are few plugins for AS to generate parcelable boilerplate, like "android parcelable code generator" Nov 10 23:30:15 works ok for me Nov 10 23:30:17 well bu then he wouldn’t be able to run it.. nevermind Nov 10 23:30:30 sick, thanks Nov 10 23:30:48 Oh TacticalJoke Nov 10 23:30:50 I think that’s it Nov 10 23:30:53 check the error: java.io.NotSerializableException: com.google.a.b.g$1 Nov 10 23:30:58 com.google.a.b.g Nov 10 23:31:07 looks obfuscated to me Nov 10 23:31:40 Though it's weird if it fails only on some devices. Nov 10 23:32:00 different versions of Android? Nov 10 23:32:06 wouldn’t they have different classes? Nov 10 23:32:31 yeah i am using proguard, ill have a look into that too Nov 10 23:32:50 if you have a library that you made and you’ve proguarded it before using it.. don’t Nov 10 23:32:54 but I think you know that Nov 10 23:32:55 failing on the same version of android so far Nov 10 23:32:56 6.0.1 Nov 10 23:33:02 Is there any sort of "proper" way to make the side drawer only slide in when the button is pressed, but not when the user slides their finger from the side of the screen? Right now I'm doing it using DrawerListener and LOCK_MODE acrobatics Nov 10 23:33:18 gtg, have a nice weekend yall! Nov 10 23:33:24 good luck teasp00n Nov 10 23:33:54 Theres a good lib that uses annotations for all the boilerplater Nov 10 23:34:10 HactarCE: Does this work? http://stackoverflow.com/questions/17025957/disable-gesture-listener-on-drawerlayout Nov 10 23:34:24 hey teasp00n check this Nov 10 23:34:25 http://stackoverflow.com/questions/13895867/java-io-notserializableexception Nov 10 23:34:33 mark the field as transient Nov 10 23:35:01 also that class could have an inner private class Nov 10 23:35:09 hasta Nov 10 23:35:18 Yep, thanks TacticalJoke. Although that also disables sliding it to close it (the only way now is by tapping outside) Nov 10 23:44:11 If a service is killed, lets say by the OS for resources, by a user, or just crashes due to error. And a new call the startService() Is executed will it re-initialize static variables? If I had a boolean "private static boolean isNew = true" and I had set it to false in the onStartCommand() will it be true the next time onStartCommand runs if the service was unexpectedly killed? Vs false if I call startService() a second time but its s Nov 10 23:44:11 till running properly? Nov 11 00:09:25 static is static Nov 11 00:09:54 you should make shure they are initialized to assignment correctly each time Nov 11 00:10:11 in case the process is cached and the static refers to previous assignment Nov 11 00:27:27 does anyone know if the material design two-item row has any spacing between the major/minor text? Nov 11 01:38:06 So Gradle. I'm trying to provide 2 build flavors. One that has Google Play Services, and one that doesn't. Problem is that I can't seem to apply the 'google-services' classpath to just the one build flavor. Nov 11 01:38:10 Is this even possible> Nov 11 01:38:11 ? Nov 11 01:39:00 Or would this be more of a question for #gradle ? Nov 11 01:44:26 totally possible Nov 11 01:46:56 pR0Ps: android.productFlavors.each { flavor -> if (flavor.name == "bleh") compile "com.google.android.gms:play-services-location... Nov 11 01:48:31 I was messing with it and it seems to actually be when I apply the plugin that causes the issue. If I want to make a completely google-free build flavor, do I need to take the google-services out of the classpath, or just not apply the plugin? Nov 11 02:35:40 Hi! I'm having trouble doing a https request to a php file on my server. It fails with the error "javax.net.ssl.SSLHandshakeException: Connection closed by peer". I can successfully make the same request from my browser though. Anyone would have any hindsight on what the cause could be? Nov 11 02:37:33 Any idea how apps block casting to a google cast device? Nov 11 02:38:38 crappycoder: Try using curl in verbose mode and see what it says. Also test the connection with openssl Nov 11 02:40:43 @pROPs: So I just found out the connection seems to close if I request only domain.suffix. It seems to work fine with www.domain.suffix though. I'm thinking it might be related to the certificate I installed but I'm not familiar enough with SSL. Thanks for the advice! Nov 11 02:41:32 If you run `openssl s_client -connect youserver:443` it should spit out loads of info Nov 11 02:41:50 Probably misconfigured cert though if the subdomain works but not the base domain Nov 11 02:42:19 *misconfigured cert on the server Nov 11 02:42:26 Or just a misconfigured server Nov 11 02:43:43 @pROPs: That's what I'm thinking. I've tried to set it up on cpanel. Apparently it's supposed with and without www but I'll have to do more testing. Thanks! Nov 11 02:46:24 @pROPs: Yep, openssl command says "no peer certificate available" without www. **** ENDING LOGGING AT Fri Nov 11 03:00:00 2016