**** BEGIN LOGGING AT Thu Oct 30 03:00:00 2014 Oct 30 03:04:56 TacticalJoke there's always the samples ... Oct 30 03:05:05 oh wait, nm :) Oct 30 03:05:20 who you talkin to slice Oct 30 03:06:05 :D Oct 30 03:07:23 You talkin' to me?! Oct 30 03:08:26 Okay, so I googled, and quite a few people are doing this "public static Intent createIntent(Context[...]" thing. I'm glad. Seems to make code much neater. Oct 30 03:08:44 It makes sense, because the whole creating-Intents thing is like a constructor. Oct 30 03:08:49 With parameters and so on. Oct 30 03:11:38 I'm surprised that JacobTabak actually put me on ignore. He has way more self-control than I expected. Oct 30 03:12:50 TacticalJoke: don't talk good about JacobTabak or he might take you off ignore :P Oct 30 03:13:25 lol Oct 30 03:16:38 oh haha JacobTabak i didn't realize Oct 30 03:16:47 wat Oct 30 03:16:56 lol you have TacticalJoke on ignore Oct 30 03:18:21 i dont know what i did, but my AS previewer won't work for shit on anything since appcompat Oct 30 03:18:32 can't get a single layout to preview Oct 30 03:18:34 dat appcompat Oct 30 03:18:46 i have the right theme selected :) Oct 30 03:20:26 it actually chokes and says it can't process a file in the sdk Oct 30 03:20:43 -_- Oct 30 03:21:01 yeah some drawable xml file Oct 30 03:22:16 Path.approximate() not supported (3 similar errors not shown) Failed to parse file .../android-sdk-macosx/platforms/android-21/data/res/drawable/progress_small_material.xml Failed to parse file .../android-sdk-macosx/platforms/android-21/data/res/drawable/progress_indeterminate_horizontal_material.xml Oct 30 03:22:27 i get that all the time Oct 30 03:22:35 i mean, the path.approximate Oct 30 03:22:40 thats for rounded corners Oct 30 03:22:52 Android programming is hard. Once you get used to it, it's like being a member of the Freemasons or something. Oct 30 03:22:54 are you using android: namespace? Oct 30 03:23:03 JacobTabak ya Oct 30 03:23:09 you shouldnt Oct 30 03:23:24 wait wut? those as SDK files Oct 30 03:23:51 so you're using app:theme rather than android:theme? Oct 30 03:24:04 oh yeah, of course. the app runs fine Oct 30 03:24:13 o Oct 30 03:24:15 iduno! Oct 30 03:24:21 i dont appcompat yet ! Oct 30 03:25:03 you are saving the sweet yummy stuff for last Oct 30 03:25:17 i just already did so much work to get my app themed for material Oct 30 03:25:19 you're one of those that didn't eat their marshmellows and got more rewards later on Oct 30 03:25:24 i dont really care about backwards compat right now Oct 30 03:25:54 question... for gms location services, when you call connect(), is the locatino available as soon as its done connecting? Oct 30 03:28:24 this is pretty cool http://www.microsoft.com/microsoft-band/en-us Oct 30 03:28:55 i think this has around 12 sensors; HR, GPS, UV (sun) ... Oct 30 03:29:01 cross platform, thats cool Oct 30 03:29:26 cortana on my wrist, yay Oct 30 03:29:39 if the sleep tracking thing actually works .. Oct 30 03:29:48 Wow, it works on Android and iOS. Oct 30 03:30:46 I kinda feel bad for Microsoft. They're slowly being phased out. Oct 30 03:30:59 holy shit, only $199 - Garmin is so fucked Oct 30 03:31:02 As evil as they've been in the past, it's sad to see them dying off. Though this might bring them back a bit. Oct 30 03:32:24 ah nice, the optical HR sensor Oct 30 03:32:42 skin temp sensor ... not sure what relevane that would provide Oct 30 03:33:08 Perhaps it could detect a fever. Not sure. Oct 30 03:33:11 ebola detection Oct 30 03:33:16 Or how warm you get when exercising. Oct 30 03:33:32 (trololol) Oct 30 03:33:33 core body temp can't really be measured Oct 30 03:33:42 even through the ear canal Oct 30 03:34:08 basically have to swallow a transmitter Oct 30 03:34:20 i'm not volunteering for that :) Oct 30 03:35:05 well the only bummer about my lumia 521 is that it doesn't have bluetooth smart Oct 30 03:40:04 JacobTabak question ... how does one implement a progress bar like this http://material-design.storage.googleapis.com/videos/components-progressandactivitiy-progressandactivity-7-youtube.mobile-buffer_large_xhdpi.webm Oct 30 03:40:35 its only 4dp high total about Oct 30 03:40:43 do i just need to make my own drawables ? Oct 30 03:40:44 what specifically? Oct 30 03:40:56 theres some stuff that you wont be able to do with prgoress bar obviously Oct 30 03:41:14 like the buffering thing Oct 30 03:41:17 and the animated track Oct 30 03:41:34 you'd have to just make a custom view Oct 30 03:41:46 screw that :) Oct 30 03:41:48 but just the progressbar would be easy Oct 30 03:45:45 I hate selling medicare insurance Oct 30 03:47:17 "Hi, My name is Darklust. Can I interest you in medicare insurance?" Oct 30 03:47:28 hmmm yeah Oct 30 03:47:41 Darklust i think i know what the problem is :D Oct 30 03:47:43 Wish I could address myself like that irl Oct 30 03:47:47 Haha Oct 30 03:52:19 g00s do you know how rxjava operator isEmpty() works? Oct 30 03:52:34 JacobTabak no, i haven't used it Oct 30 03:52:35 ew that progress bar is ugly when it's loading Oct 30 03:52:36 if an observable has errored out will isEmpty() be true? Oct 30 03:53:56 JakeWharton yeah, that one specifically is; i was just trying to figure out if i could get some really skinny nondeterminate horizontal one at the top of my Card; without writing custom views, etc Oct 30 03:55:06 something like style="?android:attr/progressSkinny" :D Oct 30 03:55:30 i have to much work to fuss about these little things though Oct 30 03:56:20 meh a bug in ActionMenuView; if I change the theme the ActionViews don't take it Oct 30 03:56:24 fffuuu Oct 30 03:57:19 writing an app with both light and dark theme is such a pita Oct 30 03:57:33 mmmm ... pita .... Oct 30 03:58:22 if i kill the process and restart the app, the theme is OK Oct 30 03:58:33 for that ActionView Oct 30 03:58:57 need to tell it to get with the program :) Oct 30 04:00:47 i keep filing these bugs - and they aren't triaged. i think its because they are overwelmed getting the blue sky sceario working, nm the starnger things Oct 30 04:00:59 *stranger Oct 30 04:01:46 i think google should have had a better preview program. basically where we are right now, that should have been their first preview Oct 30 04:01:54 i have a feeling there are going to be a fuckton of bugs Oct 30 04:02:31 appcompat and stronger docs should have been there a long time ago, 6mos ago - so that devs started porting to material for real Oct 30 04:02:40 Sometimes it seems that they don't have a huge number of Android devs. It's always the same people triaging bugs and stuff. Oct 30 04:02:51 not scraping the interwebs for tips and dingleberries Oct 30 04:02:58 they have an internal tracker Oct 30 04:03:06 the actual devs aren't going to waste time with the public one Oct 30 04:03:35 the signal to noise ratio is ridiculous Oct 30 04:03:48 lots of people submitting bugs about there phones too Oct 30 04:03:56 Yeah. Oct 30 04:03:57 all kinds of crazy Oct 30 04:04:08 i sometimes wonder if they see bugs from certain people Oct 30 04:04:11 and they're like oh... its g00s again Oct 30 04:04:18 he always submits the worst bugs Oct 30 04:04:31 ' i was out walking the other day, and my frobniz app started frobnicating" Oct 30 04:04:37 please fix Oct 30 04:04:51 k thx bai Oct 30 04:05:16 JacobTabak i have a gift for destruction Oct 30 04:06:49 pls let me order a nexus 6 Oct 30 04:08:30 i suppose i should get a nexus 9 Oct 30 04:08:34 too Oct 30 04:08:39 I'm thinking of getting a Hudl 2. Hope it works with Android dev. :/ Oct 30 04:08:52 How can I get a full list of ratings and reviews for my android app? Oct 30 04:08:54 People complained about the first, although that seemed to be a case of simply installing the Google USB Driver and pointing it to it. Oct 30 04:10:01 hm, this defies reason. if the activity is recreated how could one ActionView have stale theme ? Oct 30 04:11:41 i wouldn't be dealing with half this shit if Dianne Hackborn didn't fuck night mode up Oct 30 04:12:19 what do you mean Oct 30 04:12:30 night mode only works when the phone is docked Oct 30 04:12:35 right Oct 30 04:12:39 thats stupid Oct 30 04:13:29 her again ... I need to buy her book apparantly Oct 30 04:14:12 I have a android.widget.SearchVIew in my android.app.ActionBar. When the SearchView is expanded and I click on the ActionBar icon it collapses the SearchView. Is there a way to override this behavior? Oct 30 04:14:30 She has a book? Oct 30 04:15:27 TacticalJoke you are coming out with a book about Tactical Jokes, right ? Oct 30 04:15:36 Vol 2 : Strategic Jokes Oct 30 04:16:19 :D Oct 30 04:16:37 Jokes in the Endgame will be the grand finale. Oct 30 04:18:05 my bad, confused her with Gail McDowell Oct 30 04:18:21 can i justify buying both a nexus 6 and 9 Oct 30 04:18:22 -.- Oct 30 04:18:23 She's a poet and she don't know it. Oct 30 04:18:23 capella thats a big confusion :P Oct 30 04:18:39 * capella used to drink a lot :) Oct 30 04:19:00 Hey guys. I'm trying to get the latitude and longitude in my app, and I've added the permissions but it still keeps telling me I need to have ACCESS_FINE_LOCATION for it to work. This is my manifest: http://pastie.org/9684789 Oct 30 04:19:10 What am I doing wrong? Oct 30 04:19:50 add network permissio Oct 30 04:19:56 Argh, that's it? Oct 30 04:20:04 probably not Oct 30 04:20:12 but i'm sure you'll need it if you're getting the weather Oct 30 04:20:17 Yeah. Oct 30 04:20:25 locatoin data is obtained from the network Oct 30 04:20:41 but you should still be able to get it from the gps without network permission Oct 30 04:20:50 also, if you have FINE you don't need COARSE Oct 30 04:21:09 i don't really need fine. I only need coarse.. I just need to get the city they're in. Oct 30 04:21:18 But it keeps telling me that to use "passive" I need fine. Oct 30 04:21:33 but I'm not using passive for my provider. No matter what I tell it though, it keeps telling me to use FINE if I'm using a passive provider. Oct 30 04:22:21 if you don't have fine, you're limiting your options to get location information Oct 30 04:22:41 Okay. I'll stick with that then. I still get this error though when I'm checking to see if the provider is enabled: Oct 30 04:22:43 If your application only has the coarse permission then it will not have access to the GPS or passive location providers. Oct 30 04:22:44 boolean enabled = service.isProviderEnabled(LocationManager.GPS_PROVIDER); Oct 30 04:22:48 Oops. that's the line. Not the error. Oct 30 04:22:52 Caused by: java.lang.SecurityException: "passive" location provider requires ACCESS_FINE_LOCATION permission. Oct 30 04:22:53 oh god the dark days before fused location Oct 30 04:23:03 What is fused location? Oct 30 04:23:10 google play services location provider Oct 30 04:23:13 Am I looking at an ancient tutorial? Oct 30 04:23:16 makes this a lot less painful Oct 30 04:23:21 probably Oct 30 04:23:23 Okay. Let me read up on the play services one then. Oct 30 04:23:35 you don't need to worry about the different location providers with the fused location provider Oct 30 04:23:38 you just pass in your requirements Oct 30 04:23:40 JacobTabak i's use that if it didn't require dragging in 20k methods Oct 30 04:23:43 and it gives you a location back Oct 30 04:23:57 Sweet. Oct 30 04:23:57 g00s i use gms 4.0 and its fine for location Oct 30 04:24:06 <8k methods Oct 30 04:24:43 Thanks. I'll read up Oct 30 04:32:39 hallo Oct 30 04:32:47 anyone around? Oct 30 04:33:38 nope Oct 30 04:33:40 Did you call me round? How dare you! Oct 30 04:34:04 he called you around ;P Oct 30 04:36:14 I have no idea what the hell i'm doing. =/ Oct 30 04:36:34 godzirra ignore all the stuff about checking if they have google play servies installed for now Oct 30 04:36:42 just make a location client, connect, and when youer' connected, call getLastLocation Oct 30 04:37:27 JacobTabak: I'm just trying to get it to import the play services SDK, because otherwise it doesn't recognize location client. Oct 30 04:37:52 but when I try and ync, it tells me it can't find 'com.google.android.gms:play-services:6.1.+' Oct 30 04:37:59 *sync Oct 30 04:47:42 godzirra install the google repository from the sdk manager Oct 30 04:47:49 sry missed your msg earlier Oct 30 04:50:53 I'm looking for it now. Oct 30 04:51:13 IT looks like I hae the Google Inc. repository. But there's a few others I don't have. Oct 30 04:51:37 google play services repo Oct 30 04:51:47 http://cl.ly/image/0z3g452o0h22 Oct 30 04:52:27 Hrm. I don't seem to have that . I don't have an extras section at all. Oct 30 04:52:33 you should Oct 30 04:52:37 oh wait I do. Oct 30 04:52:40 Its just not very full. Oct 30 04:53:06 I only have Android Support Repo, Android Support Library and Intel x86 Emulator Accelerator Oct 30 04:53:46 http://cl.ly/image/2M2p0q010S0K Oct 30 04:54:25 After updating it shows up now. Oct 30 04:54:39 Thanks Oct 30 05:09:16 JacobTabak: still fails to find it :/ Oct 30 05:09:23 gradle? Oct 30 05:09:52 you're using AS/gradle? Oct 30 05:09:57 Oh nevermind. It found it when I ran it the second time. Odd. Oct 30 05:21:59 Why does it seem like in Android Studio it keeps running an old version of my code. Like it's breaking on line 38 of my MainActivity.java, but Line 38 is a blank line now. Oct 30 05:22:03 It's seeing what used to be there. Oct 30 05:22:39 not making any assumptions about your experience with this, but yo ucan't hot swap code and you need to re-launch every time you modify code Oct 30 05:23:58 Re-Launch what? The Emulator? The app in the emulator? Oct 30 05:24:03 the app Oct 30 05:24:06 My experience with this is very, very low. Oct 30 05:24:19 I assumed thatit re-launched when it pushed the app up. My mistake. Let me try restarting the ap. Oct 30 05:24:23 app. Oct 30 05:24:28 what do you mean pushed the app up? Oct 30 05:24:36 when you hit 'run' it will reinstall and relaunch your app Oct 30 05:24:39 Pushed the app from Android studio to the emulator. Oct 30 05:24:45 That's what I'm doing, but it is still running old code. Oct 30 05:25:14 I just hit Run, and choose the same emulator that's running. Oct 30 05:25:20 and I get the same error on a line that has no code on it. Oct 30 05:25:26 if you've not changed the source, that is not what it does Oct 30 05:25:27 did you see the app stop and restart? Oct 30 05:25:49 it only reinstalls if the apk is different afaik Oct 30 05:25:52 No, I didn't. Oct 30 05:25:55 Which seems odd. Oct 30 05:25:57 and only calls the intent, it doesn't restart it Oct 30 05:26:09 godzirra you're not in generated/decompiled code are you? Oct 30 05:26:12 No. Oct 30 05:26:15 when you hit your breakpoint Oct 30 05:26:35 Interesting. I took out a blank line, and this time it restarted the app. Oct 30 05:27:01 But it still breaks on the same line. Oct 30 05:27:09 Man, I'm so confused. Oct 30 05:27:16 screenshot Oct 30 05:27:16 it's not really that confusing Oct 30 05:27:17 or something Oct 30 05:27:32 if you change the source, the apk changes, and it installs it, which by virtue of the install process, restarts the app Oct 30 05:27:46 poutine: I change code, I hit run, and it tells me there's an error on line 38. Line 38 used to have code, but has been a blank line for some time. Oct 30 05:27:49 That's why I'm confused. Oct 30 05:27:50 if you don't change the source, that does not happen, the intent to start the activity is called, but it's already started, so it likely does not have an effect Oct 30 05:28:19 so you have a compile error or a runtime crash Oct 30 05:28:50 godzirra, hit 'stop' in the debugger or detach Oct 30 05:29:01 JacobTabak: Yes, I just don't understand why. Oct 30 05:29:08 This is the error I get on line 38: Caused by: java.lang.IllegalStateException: Not connected. Call connect() and wait for onConnected() to be called. Oct 30 05:29:08 that was a question Oct 30 05:29:22 Oh, it compiles just fine and starts the app. I get an error after the app is started. Oct 30 05:29:29 Line 38 is currently this: System.out.println("done with onStart"); Oct 30 05:29:43 So it probably shouldn't be crashing due to an error connecting to play services. Oct 30 05:30:09 It seems like its caching my code, which seems really odd. Oct 30 05:30:13 nah Oct 30 05:30:23 if your app restarts when you hit run, it means that android reinstalled your app Oct 30 05:30:46 How does it crash with an onConnect error when it's a System.out line? Oct 30 05:30:55 maybe your logcat is out of date Oct 30 05:31:05 make sure its at the bottom, hit restart logcat Oct 30 05:31:40 Restarting android studio seems to have fixed it. At least temporarily. Oct 30 05:32:07 Weird. It still tells me Google Play services is missing. I'll troubleshoot some more. Oct 30 05:32:11 Thanks for all your help, both of you. Oct 30 05:32:20 adb integration sucks Oct 30 05:32:28 so logcat gets out of date Oct 30 05:32:41 what do you mean google play services is missing, you just got an error from google play services Oct 30 05:32:48 "Not connected. Call connect() and wait for onConnected() to be called." Oct 30 05:32:58 oh Oct 30 05:32:59 godzirra lol Oct 30 05:33:04 emulator doesnt have google play services Oct 30 05:33:12 Oh crap. Oct 30 05:33:14 do you have a device? Oct 30 05:33:18 Yeah, I can test on a device. Oct 30 05:33:27 Thanks. I would have been troubleshooting that forever. Oct 30 05:37:31 i thought some of the emus had play services Oct 30 05:38:16 maybe Oct 30 05:38:22 not genymotion tho Oct 30 05:38:27 so i dont care enough to bother with it Oct 30 05:41:42 thats another area googe fucked up their ownership of the platform; at least they should have had stub available that avoid any potential llicensing issues Oct 30 05:42:07 for a long time the x86 emus didn't have play services - like, seriously wtf google Oct 30 05:42:08 what do you mean? Oct 30 05:42:26 about fking up their ownership Oct 30 05:43:03 'we want you to use our closed apis, but we're not going to make it easy for you to test them" Oct 30 05:43:52 i shoulda gone to london Oct 30 05:43:56 not sure what i was thinking Oct 30 05:44:14 droidcon uk ? Oct 30 05:44:18 yea Oct 30 05:44:31 an excuse to go to europe Oct 30 05:44:38 where do you live again Oct 30 05:45:04 atm i'm in NJ, but usually AZ Oct 30 05:45:11 ah nice Oct 30 05:45:15 so you just dont sleep either Oct 30 05:45:32 go to Devoxx instad Oct 30 05:45:48 better beer, better waffles, better talks Oct 30 05:46:06 when's that Oct 30 05:46:11 soonish? Oct 30 05:46:11 three weeks Oct 30 05:46:17 k bookin it now Oct 30 05:46:24 you going? Oct 30 05:46:28 i am speaking on Dagger 2 Oct 30 05:46:31 for the waffles ! Oct 30 05:46:33 which i should start preparing... Oct 30 05:46:33 it's super expensive isn't it Oct 30 05:46:40 flights were $1400 today Oct 30 05:46:41 Question: Is there such a thing as having "too many" import statements, or should I not worry about it? Oct 30 05:46:48 not sure how much the conference is Oct 30 05:46:48 liuwenhao dont worry Oct 30 05:47:15 are all the talks in english? Oct 30 05:47:32 yes Oct 30 05:48:00 do you know of any secret ways to get free/discounted tickets Oct 30 05:48:03 Thank you Jacob Oct 30 05:48:08 like sponsors gave away a ton of tickets for dcnyc Oct 30 05:48:47 no. speakers get in free. looks like it's sold out anyways Oct 30 05:48:54 awwww Oct 30 05:49:07 it's a great venue though Oct 30 05:49:10 speak next year Oct 30 05:49:19 best conference venue i've ever been to Oct 30 05:49:32 BE is the best one? Oct 30 05:49:41 i haven't been to the others Oct 30 05:49:49 it's the original Oct 30 05:49:53 nice Oct 30 05:49:57 might try to do the UK one as well next spring Oct 30 05:50:34 pull some strings for me ;D Oct 30 05:50:39 i want to go to belgium! Oct 30 05:51:24 i'll see if there's anything I can do... Oct 30 05:52:36 wow it's been sold out for over a month Oct 30 05:54:04 25% english and 75% french talks in paris Oct 30 05:54:09 i should brush up my french Oct 30 05:54:36 uk one is june looks like Oct 30 05:54:46 cfp december 15th Oct 30 05:55:31 i read the dagger 2 proposal the other day Oct 30 05:56:00 i'm excited for it now Oct 30 05:56:19 that was probably about a year ago Oct 30 05:56:26 which is nuts Oct 30 05:56:28 yea its ancient Oct 30 05:57:29 kind of depressing that i'll probably be reworking so much of what i've spent the last few months on Oct 30 05:57:36 nah Oct 30 05:57:42 JacobTabak reworking ? Oct 30 05:57:53 it's not a conceptual change Oct 30 05:58:08 you'll just replace each ObjectGraph with a Component Oct 30 05:58:22 and all my classes will implement umpteen interfaces Oct 30 05:58:44 which i'm really happy about Oct 30 06:03:23 or maybe i misunderstood that Oct 30 06:07:34 so will injects = { } still be required? Oct 30 06:10:41 no Oct 30 06:10:49 i'm trying to figure out how that works Oct 30 06:11:12 components are the bridge between modules and injection points ("injects") Oct 30 06:11:22 and components are known statically at annotation processing-time Oct 30 06:11:38 wasn't that the case with modules also though? Oct 30 06:11:38 well kinda still needed, coz it goes in components instead right? Oct 30 06:11:51 JacobTabak: modules don't do anything Oct 30 06:11:58 there's no bridge into the @Inject point Oct 30 06:12:06 injects= was the bridge Oct 30 06:12:33 ObjectGraph which was a runtime component was the bridge and runtime defeats the whole purpose of a statically analyzable graph Oct 30 06:12:42 which is why we forced you to be explicit about where modules were used Oct 30 06:13:08 Components now play that role and they are available at annotation processing time so they become the list, implicitly Oct 30 06:13:08 i see Oct 30 06:14:17 so there will be no to interact with the DaggerComponent_MyComponent generated classes either, right? Oct 30 06:14:38 no need to interact* Oct 30 06:15:24 components are interfaces which declare the contract, only. you have to interact with the generated counterpart in order to use them Oct 30 06:15:53 similar to how you interact with the object graph now? Oct 30 06:15:59 yes Oct 30 06:16:06 it's going to be interesting... Oct 30 06:17:58 i just hope they have static convenience methods to hide that ugliness :) Oct 30 06:18:47 that's going to be hard to do Oct 30 06:18:53 the generated code is a builder Oct 30 06:19:31 even if hid behind a reflective lookup in a helper method we don't have the type except in the generated code Oct 30 06:19:40 so at that point you might as well reference it directly... Oct 30 06:19:51 hence: it's going to be interesting... Oct 30 06:19:56 yea, at least i'll only need to do it one or two places Oct 30 06:20:02 funny enough, it works fantastic in Eclipse Oct 30 06:20:13 isn't that ironic Oct 30 06:20:19 IntelliJ has support for the ecj compiler and continuous compilation but it doesn't work with the Gradle integration Oct 30 06:20:36 as long as it's not littered throughout the project Oct 30 06:20:36 (because all operations call out to Gradle itself) Oct 30 06:20:38 i'm fine with it Oct 30 06:20:43 yeah, we'll see what patterns emerge Oct 30 06:20:50 nothing worse than having one syntax error trigger 200 other errors Oct 30 06:20:56 indeed Oct 30 06:20:58 thats why i'm so anal about this Oct 30 06:21:09 i think about androidannotations and look like vietnam dog Oct 30 06:22:30 can anyone help with BLE. I am having trouble starting my BLE service under a preferenceFragment Oct 30 06:28:05 So I've created an AsyncTask to fetch data, but I'm not entirely certain how to return it back to the main activity. I tried writing a handler to handle the data and called MainActivity.this.handler(jsonData) but it tells me I can't touch its views since I'm not in the threads view heirarchy. Oct 30 06:29:21 godzirra if you make your async task an abstract class and don't implement onPostExecute you can implement it as an anonymous class inyour activity Oct 30 06:30:06 i have some code that runs onCreate that doesnt seem to execute my service. Or better yet, how can i tell if it executed? Intent gattServiceIntent = new Intent(getActivity(), BluetoothLeService.class); getActivity().bindService(gattServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); Oct 30 06:30:19 Hm. I made it a private class in my activity, but I didn't make it abstract. I dont' have onPostExecute at all. Oct 30 06:30:46 godzirra the work gets done in doInBackground, the return value of doInBackground gets delivered on the originating thread when the background work is complete Oct 30 06:30:53 sorrry wrong copy paste: here the correct one: https://github.com/jareddlc/TurquoiseBicuspid/blob/master/TurquoiseBicuspid/src/com/jareddlc/turquoisebicuspid/SettingsActivity.java line 130 Oct 30 06:30:58 Delivered where though? Oct 30 06:31:03 http://i.imgur.com/Dias132.png <- WHy are those black boxes not going to the top? Here's my layout, it is fill_parent, and I tried removing any possible margins: http://hastebin.com/nanawecoqu.xml Oct 30 06:31:05 to the onPostExecute method Oct 30 06:31:25 hmm wrap_content there maybe Oct 30 06:31:43 I thought you just said not to make an onPostExecute? Oct 30 06:31:45 I think I'm confused. Oct 30 06:31:49 actually I'm definitely confused. Oct 30 06:31:50 nope :( Oct 30 06:32:34 poutine imageview scaletype? Oct 30 06:33:07 godzirra if you have your asynctask implemented as an innerclass, then its even smipler - just do the work in doInBackground, and then handle the result in onPostExecute Oct 30 06:33:41 onPostExecute won't give me the same error about the threads view heirarchy? Oct 30 06:33:44 Why not? Oct 30 06:33:59 i'd refer you to the docs for that one Oct 30 06:34:24 JacobTabak, tried that to no avail Oct 30 06:34:28 Okay. Oct 30 06:34:38 (just now tried that, I did not think of that before you said something) Oct 30 06:34:51 http://developer.android.com/guide/components/processes-and-threads.html ctrl+F asynctask Oct 30 06:34:56 Man, I really need to start over with a simple tutorial on android. I can't even get it to find my textView by id. Oct 30 06:35:30 (TextView)findViewById(R.id.your_id); ? Oct 30 06:35:46 Yup. Oct 30 06:35:49 It's dying with an NPE. Oct 30 06:35:55 poutine do you have the adjustViewBounds = true Oct 30 06:36:02 there's no way that could give you an NPE Oct 30 06:36:02 And what's odd, is Android Studio auto completes R.id.tempF just fine. Oct 30 06:36:32 TextView tempF = (TextView)findViewById(R.id.tempF); Oct 30 06:36:47 That's line 36. And I get an NPE at line 36. Oct 30 06:37:37 that can't throw a null pointer exception Oct 30 06:37:46 Okay. Oct 30 06:37:49 you're not referencing any objects Oct 30 06:37:55 I'm not sure what I'm doing wrong then. Oct 30 06:38:04 godzirra: where are you writing that code ? in onCreate ? Oct 30 06:38:25 No, but that would probably be a better place to put it. That's why its breaking. B ecause I'm being dumb. Oct 30 06:39:51 godzirra: and is the TextView in your main.xml ? Oct 30 06:39:52 It helps to have something created before trying to look up the ids for a text view. Oct 30 06:40:02 shmooz: No, my previous statement wasn't sarcasm. Oct 30 06:40:09 godzirra were you doing it in the constructor or something? Oct 30 06:40:12 Yup. Oct 30 06:40:14 oh boy Oct 30 06:40:21 so the NPE wasn't in your code Oct 30 06:40:23 it was in platform code Oct 30 06:40:25 Right. Oct 30 06:40:33 so you lied to me Oct 30 06:40:40 No, I was just too dumb to know any better. Oct 30 06:40:42 lol Oct 30 06:40:44 Tooootally different :) Oct 30 06:40:48 well doesnt the stack trace say? Oct 30 06:40:54 Yes. See above. Oct 30 06:41:04 I'm going to go to bed and look at it more tomorrow. I'm making dumb mistakes all over the place. Oct 30 06:41:07 no! Oct 30 06:41:09 :P Oct 30 06:41:11 lol Oct 30 06:41:13 so just Oct 30 06:41:16 well maybe you figured this out Oct 30 06:41:27 but don't use constructors for any fragment or activity Oct 30 06:41:30 I did. I'm back on getting the view heirarchy in ASyncTask figured out. Oct 30 06:41:39 JacobTabak, didn't seem to do anything Oct 30 06:41:39 did you see the link i pasted? Oct 30 06:41:42 http://imgur.com/DEAyDYI <- margins view Oct 30 06:41:43 it explains it perfectly Oct 30 06:41:48 No. Let me scroll up. Oct 30 06:42:00 xml again poutine Oct 30 06:42:03 got it Oct 30 06:42:35 oh dude Oct 30 06:42:37 its your padding poutine lol Oct 30 06:42:39 nm I am a massive dummy Oct 30 06:42:44 I found it JacobTabak :( Oct 30 06:42:45 lululululuzzzz Oct 30 06:43:09 Well that seems trivially easy. Oct 30 06:43:10 im just happy i found it 3 seconds beforey ou did Oct 30 06:43:14 so i can laugh at you rather than myself :P Oct 30 06:43:38 Woot! It's loading my temperature. ;) Oct 30 06:43:44 For my local area. Oct 30 06:43:49 such a pro Oct 30 06:43:49 And on that happy note, I'm going to bed. Oct 30 06:43:51 :D Oct 30 06:43:52 goodnight Oct 30 06:43:52 lol Oct 30 06:44:00 JacobTabak: Thanks very much. I seriously appreciate all the help. Oct 30 06:44:06 thanks JacobTabak Oct 30 06:49:09 i honestly am stunned Oct 30 06:49:26 that google released recyclerview without a human readable error "you forgot to set your layoutmanager" Oct 30 06:49:38 like, honestly, how hard would that be? Oct 30 06:50:28 JacobTabak do you get the impression they just "threw it out there" , like volley Oct 30 06:51:35 eh Oct 30 06:51:39 still wondering what they intent for us to do with multiple selections, cursors, etc Oct 30 06:51:40 volley was open source for 18 months before Google I/O Oct 30 06:52:02 it sat in AOSP in quite usable form for a long time Oct 30 06:58:56 JakeWharton so when does development on Dagger 3 begin :D Oct 30 06:59:05 did you guys see reddit news update today? Oct 30 06:59:07 its really awesome Oct 30 06:59:13 JacobTabak the app ? Oct 30 06:59:15 yea Oct 30 06:59:16 ? Oct 30 06:59:41 JacobTabak: link? Oct 30 07:00:36 did u forget how to google :P Oct 30 07:01:08 you didn't say exactly wtf you're talking about Oct 30 07:01:14 is it about the reddit app? Oct 30 07:01:19 reddit news app Oct 30 07:01:22 kk Oct 30 07:01:35 I will test it against bacon reader Oct 30 07:01:42 which is very good Oct 30 07:01:46 g00s: hya! Oct 30 07:01:53 hey thepoosh Oct 30 07:01:55 is baconreader L now? Oct 30 07:01:57 er Oct 30 07:01:58 material Oct 30 07:01:59 nope Oct 30 07:02:03 still ics Oct 30 07:02:10 i prefer reddit news Oct 30 07:02:12 but i like it Oct 30 07:02:19 I will have a look Oct 30 07:02:32 bacon reader has issues with caching images Oct 30 07:02:35 it kinda sucks Oct 30 07:02:38 in that way Oct 30 07:02:42 one of my fav features with new reddit news Oct 30 07:02:45 but the UX is very good Oct 30 07:02:46 is a FAB on the comments page Oct 30 07:02:54 that pops out several buttons, one of which hops to the next top-level comment Oct 30 07:02:54 FAB? Oct 30 07:02:58 floating action button Oct 30 07:03:05 oh Oct 30 07:03:08 hmmmm Oct 30 07:03:09 What are some good subreddits other than r/programming and r/android? I don't use reddit much Oct 30 07:03:16 r/hacking Oct 30 07:03:20 wow there are a lot of android apps Oct 30 07:03:21 they also have a really cool recyclerview animation when the stories first load Oct 30 07:03:21 r/worldnews Oct 30 07:03:25 android reddit apps Oct 30 07:03:34 g00s: yeah, the API is exposed Oct 30 07:03:38 liuwenhao gentlemanboners Oct 30 07:03:39 :P Oct 30 07:03:41 and redditors are quite active Oct 30 07:03:51 r/theFappening? Oct 30 07:03:55 no..... Oct 30 07:03:59 thats badddd Oct 30 07:05:09 lol Oct 30 07:05:24 JacobTabak: I hate it when apps ask you if you're sure you want to close them Oct 30 07:05:27 i think reddit news might use webviews or something Oct 30 07:05:36 nah Oct 30 07:05:40 it's very nice though Oct 30 07:05:42 i mean Oct 30 07:05:43 i click on a story Oct 30 07:06:03 im pretty sure its a webview Oct 30 07:06:12 oh Oct 30 07:06:16 yes that is true Oct 30 07:06:47 I think that using a webview for an image/gif preview is not the right way to go Oct 30 07:06:59 and if I remember correctly, ImageView supports gifs Oct 30 07:07:03 (not sure) Oct 30 07:07:06 lol Oct 30 07:07:08 nah Oct 30 07:07:14 not reliably Oct 30 07:07:15 there are ways Oct 30 07:07:22 but nothing thats trivial Oct 30 07:07:29 this means image caching is possible Oct 30 07:09:49 * g00s just learns about android:animateLayoutChanges="true" Oct 30 07:09:59 it's quite nice Oct 30 07:10:03 nobody uses it Oct 30 07:10:06 omg ya! Oct 30 07:10:23 :D Oct 30 07:10:27 i just used my sticky headers recyclerview in a real app for the first time Oct 30 07:10:38 and i realized that some of the classes werent public Oct 30 07:10:41 (derp) Oct 30 07:10:50 but, it worked perfectly! Oct 30 07:12:26 is it feasible to build an html/javascript app on android? Oct 30 07:12:33 no Oct 30 07:12:42 maqr gave up already ! Oct 30 07:12:46 g00s: hah! Oct 30 07:12:57 iOS ain't so bad after all eh ! Oct 30 07:13:00 maqr you can but they suck Oct 30 07:13:09 you wont find any good apps that do that Oct 30 07:13:11 g00s: i actually did give up for a while, i think i'll try again when L gets released and i have it on my phone, because the emulator does not work Oct 30 07:13:30 JacobTabak: ok, that's what i thought, but i recently saw someone running android apps in chrome on reddit, so i thought maybe it could go the other way too Oct 30 07:13:44 maqr: if you want a non-sophisticated app Oct 30 07:13:48 this is the way to go Oct 30 07:13:52 but the app will suck Oct 30 07:13:55 and look bad Oct 30 07:13:57 probably Oct 30 07:14:00 lol Oct 30 07:14:02 heh Oct 30 07:14:03 so yeah, way to go ! Oct 30 07:14:43 it's cheep fast and it looks and feels cheap and fast Oct 30 07:14:47 maqr don't have to wait for emu to run; even on a good day it sucks ass. so i recommend just learning what there now, use appcompat a little, learn gradle, etc Oct 30 07:14:49 defaq Oct 30 07:15:04 yep Oct 30 07:15:10 g00s++ Oct 30 07:15:49 g00s: you make a good point Oct 30 07:16:28 JacobTabak: btw, g00s suggested i ask you... if i'm interested in really following best practices (SOLID principles, some DI framework, TDD, etc), what tools should i be looking at? Oct 30 07:16:32 maqr: so I guess you agree that native is the way to go? Oct 30 07:16:42 check out that blog post Oct 30 07:16:43 thepoosh: yeah, same as on iOS (though that's changing too) Oct 30 07:16:51 it was pretty good .. futurice best practices Oct 30 07:16:57 aside from the fragment thing Oct 30 07:17:02 and use gson rather than jackson Oct 30 07:17:06 if you like easy stuff Oct 30 07:17:08 oh yeah i read that too Oct 30 07:17:21 JacobTabak: which blog post? Oct 30 07:17:30 futurice best practice Oct 30 07:17:30 JacobTabak: is GSON faster than Jackson? Oct 30 07:17:36 no its slower Oct 30 07:17:39 https://github.com/futurice/android-best-practices this thing? Oct 30 07:17:40 not true Oct 30 07:17:40 in many cases Oct 30 07:17:45 probably Oct 30 07:17:47 blanket statements are bad Oct 30 07:17:52 i said in many cases Oct 30 07:17:54 ! Oct 30 07:18:14 JakeWharton: not all of them Oct 30 07:18:16 that's not a blanket, it's like a quilt with holes in it Oct 30 07:18:26 thepoosh: (that's the joke) Oct 30 07:18:31 oh, reddit thread http://www.reddit.com/r/androiddev/comments/2knhmv/best_android_practices_by_futurice/ Oct 30 07:18:40 saying use HTTPUrlCOnnection instead of DefaultHttpClient is always correct Oct 30 07:18:43 https://www.youtube.com/watch?v=xECUrlnXCqk Oct 30 07:18:59 JakeWharton: oh, I'm an old geezer, never get jokes Oct 30 07:19:05 according to my wife Oct 30 07:19:15 I think I am hilarious Oct 30 07:19:19 Gson is 25% the size of Jackson and has a vastly superior API. Oct 30 07:19:24 thats why i use it! Oct 30 07:19:35 oh i have the top comment on that thread lulz maqr Oct 30 07:19:38 well, we still use org.json Oct 30 07:19:51 i wouldn't want to touch json without gson :S Oct 30 07:19:55 this really is a great document Oct 30 07:20:00 there is also jackson-jr Oct 30 07:20:09 :P Oct 30 07:20:11 cute name Oct 30 07:20:16 does he molest children? Oct 30 07:20:24 LOLLL Oct 30 07:21:10 the cost of json (de)serialization is amortized over the cost of the network anyways Oct 30 07:21:12 maqr you could also start off reading about the Material design spec; also I/O videos about Material Oct 30 07:21:15 so performance is moot Oct 30 07:21:47 does the ContentObserver get unregistered when the cursor is closed? Oct 30 07:22:10 hi guys Oct 30 07:22:11 well, cpu cycles is important - so i guess once volta comes out we need to see who serializes more efficiently wrt watts ! Oct 30 07:22:17 android no easy :D Oct 30 07:22:27 g00s: makes sense, yeah Oct 30 07:22:36 not always Oct 30 07:22:37 g00s: i have an iOS app that i'm thinking about porting too Oct 30 07:22:43 sometimes it's meaningless Oct 30 07:22:56 the wattage cost of the radio dwarfs anything the cpu would use, so that's also moot Oct 30 07:23:18 i don't think that statement can be made unless there is data Oct 30 07:23:25 fire up 4 cores, thats not trivial at all Oct 30 07:23:44 there is the famous AT&T whitepaper about pandora Oct 30 07:23:50 are you running your json deserializer without data? Oct 30 07:24:06 only one core might be processing the json; but often the linux schedulers for SoCs turn on all cores Oct 30 07:24:33 so parsing json/xml is often a big power drain Oct 30 07:25:10 someone submitted an issue to my repo, what a feeling! :D Oct 30 07:25:13 it seems like this is overoptimizing the meaningless things Oct 30 07:25:19 the radio is staying on for 10s of seconds longer even after the ~100ms deserialization completes Oct 30 07:25:44 robotium looks sweet Oct 30 07:25:51 nooooOOOOOOOOOOOOO Oct 30 07:25:53 espresso Oct 30 07:25:53 oh yea Oct 30 07:25:57 thats one thing i forgot to bitch about Oct 30 07:26:02 LOL Oct 30 07:26:06 :o Oct 30 07:26:09 use espresso Oct 30 07:26:19 ive never had so much fun writing tests Oct 30 07:26:21 shit just works Oct 30 07:26:40 JacobTabak: oh, ok, that's not mentioned in this best practices doc Oct 30 07:26:53 please don't call it that Oct 30 07:27:02 "one guy's opinion doc" is more accurate Oct 30 07:27:09 sorry, i'm new :) Oct 30 07:27:13 click here click there assert this assert that its no big deal, its no big deal! Oct 30 07:27:33 JacobTabak: do you use junit for unit tests and espresso for ui tests? Oct 30 07:27:51 junit runs all the tests Oct 30 07:28:12 but i use robolectric for unit tests Oct 30 07:28:28 ok, good to know Oct 30 07:30:31 being that it's android, are there any really top quality open source android apps that are worth looking at for their architecture? Oct 30 07:30:40 not sure if the google apps are open, but i think not Oct 30 07:31:06 heh Oct 30 07:31:10 yea look at u2020 Oct 30 07:31:39 ooh, with corresponding talk :D Oct 30 07:32:05 this parleys player is pretty neat Oct 30 07:32:06 top quality, by whose standards? just write your damned app, then worry bout all the optimizing Oct 30 07:32:19 whatitis lol :( Oct 30 07:32:27 whatitis: it's not an optimization thing, it's an engineering thing Oct 30 07:32:31 whatitis if you want a testable app you have to write with testability in mind Oct 30 07:33:09 whatitis: agree, in general Oct 30 07:33:22 the hurdles to a quality app are so high that if you waste time trying to perfect everything you'll never get anything Oct 30 07:33:31 maqr, its all theoretical nonsense. if you can code, code. if you cant read a stacktrace, or figure out why A doesnt lead to B, then give up Oct 30 07:33:48 exactly what Jake said Oct 30 07:34:19 yea... obviously you don't want to dwell on it, but it's good to be aware of what's out there Oct 30 07:34:21 whatitis: on the whole i actually agree, but i find it's really useful when you're getting into a new thing to look at the best practices of people who have done it before Oct 30 07:34:29 it's a balance. depending on your team/company/experience you can lean more towards the planning side Oct 30 07:34:45 like imagine the pain of writing an app if you manually deserialized json and use async tasks everywhere etc etc Oct 30 07:34:54 whatitis: like i don't have strong opinions about a 'proper' REST api, but reading angry nerds debate it on the internet has helped my overall understanding of APIs Oct 30 07:35:00 i'd like to relive my life without ever doing that stuff Oct 30 07:35:10 heh Oct 30 07:35:13 rite of passage Oct 30 07:35:15 maqr my opinion of a proper rest api is not putting the version in the content type header Oct 30 07:35:59 JacobTabak: isn't the debate usually between a new header or putting the version in the URL? Oct 30 07:36:28 the popular ones i've seen are in the ACCEPT header, in the url or a custom header Oct 30 07:36:45 never seen anyone put it in the content-type header... but unfortunately thats where we landed Oct 30 07:36:47 oh wow, some people do put it in the content-type Oct 30 07:36:53 yea... like my company lol Oct 30 07:36:55 http://stackoverflow.com/questions/12037476/versioning-a-restful-api-with-both-xml-and-json-content-type Oct 30 07:36:59 there's someone doing it right now :p Oct 30 07:37:09 yeah, that seems terrible Oct 30 07:37:14 i guess i do have opinions about this :p Oct 30 07:37:28 well its only terrible because my beloved retrofit doesnt support it nicely yet Oct 30 07:37:37 you can wrap the Converter Oct 30 07:37:39 but the content is json! Oct 30 07:37:48 i already fixed it with some nice reflection hacks Oct 30 07:38:00 http://jacob.tabak.me/2014/10/media-type-parameters-retrofit-headers/ Oct 30 07:38:04 i didn't realize exactly what you wanted Oct 30 07:38:34 so there's a better way? Oct 30 07:38:39 wrapping the converter eh? Oct 30 07:38:41 you can probably also set it in a request interceptor and it'll override Oct 30 07:38:55 yea but then it overrides the content type Oct 30 07:39:08 but it's always the same, no? Oct 30 07:39:21 converter and inceptors are 1:1 in a RestAdapter Oct 30 07:39:37 unless you are using multipart, form encoding, or @Body TypedOutput Oct 30 07:39:41 ^ Oct 30 07:40:00 i could use a different rest adapter for each content type Oct 30 07:40:04 but either way this works fine Oct 30 07:40:36 btw i just used @streaming for the first time, it was a really nice experience Oct 30 07:40:40 worked exaclty the way i wanted it to Oct 30 07:41:01 can't you just wrap the TypedOutput in a VersionAppendingTypedOutput whose mimeType calls super.mimeType() + "; v=2" Oct 30 07:41:09 cool Oct 30 07:41:12 yea that's a much better idea JakeWharton Oct 30 07:41:12 i never used that or tested it Oct 30 07:41:23 didnt occur to me Oct 30 07:41:23 someone sent a PR and I said LGTM, merged, and shipped Oct 30 07:41:26 * JacobTabak quickly deletes blog post Oct 30 07:41:42 actually... hmm would that work? Oct 30 07:41:56 so you mean Oct 30 07:42:01 in the Client Oct 30 07:42:14 hm, 'git fsck' shows a bunch of dangling blobs, is that bad ? Oct 30 07:42:34 no. that's what happens when you amend or rebase or delete branches Oct 30 07:42:37 When an Activity is leaving when Cancel button was pressed, I want to pass some Bundle back to the Activity which initiated the current foreground Activity. Which lifecycle method should I override? Oct 30 07:42:43 phew, thanks Oct 30 07:43:13 carbon, startActivityForResult Oct 30 07:43:21 git keeps a log of recent SHAs (reflog) which may not be accessible via current branches or tags in case you screwed up royally Oct 30 07:43:26 over time they'll disappear naturally Oct 30 07:44:04 so pro tip: if you fuck something up really badly check git reflog and you can usually recover old versions Oct 30 07:44:28 ok. my machine is becoming unstable and HFS has been getting corrupted; i wanted to verify integrity of the repo Oct 30 07:44:32 JacobTabak: override execute, create a new Request with the same data but wrapping the .body() in your wrapping TypedOutput which appends the version to mimeType() Oct 30 07:44:47 and call super with it Oct 30 07:44:47 trying that now Oct 30 07:44:51 whatitis: I get null Bundle when the foreground Activity quitted by Cancel button Oct 30 07:45:21 its your cancel button, send back result Oct 30 07:46:19 very nice, of course it works flawlessly Oct 30 07:46:31 whatitis: Sorry, I don't get it. Oct 30 07:46:36 i think i saw final classes and said fk it Oct 30 07:46:44 time to hack away Oct 30 07:46:47 final == bad? Oct 30 07:46:51 no final is good Oct 30 07:47:18 it encourages people to contribute to your open source projects rather than abuse your libraries Oct 30 07:47:21 :) Oct 30 07:47:29 heh Oct 30 07:47:34 * JacobTabak is on to JakeWharton Oct 30 07:47:42 lol Oct 30 07:47:55 whatitis: The Back button is Android's Back button Oct 30 07:48:26 everything's final by default in kotlin. you have to opt-in to allowing extension. Oct 30 07:48:32 the back button is androids cancel button? Oct 30 07:48:33 I saved my Extra in onSaveInstanceState() Oct 30 07:48:44 whatitis: Yes Oct 30 07:48:54 news to me Oct 30 07:49:04 have you done anything other than experiment with kotlin? Oct 30 07:49:16 The virtual Back button on Android Oct 30 07:49:26 i wrote a tiny app with it Oct 30 07:49:35 would you do it again or at a larger scale Oct 30 07:49:39 I've this layout http://pastie.org/9685024 - the scrolling works fine on ListView but not across the entire relativelayout which has viewpager as well as the other child relativelayout which actually gets hidden when listview has scroll - any idea what I could be doing wrong? Oct 30 07:49:49 i absolutely would Oct 30 07:50:03 to both Oct 30 07:50:45 shmoon_: are you trying to implement horizontal navigation with vertical one side by side? Oct 30 07:51:33 sort of. I've a viewpager which will have horizontal navigation of imageviews. Oct 30 07:51:42 every imageview will change the context, hence content of listview will change Oct 30 07:51:44 hmmmm Oct 30 07:51:48 and i want every vertical screen scrollable Oct 30 07:51:48 that is not trivial Oct 30 07:51:54 I see Oct 30 07:52:02 oh nice that first little example is autovalue Oct 30 07:52:05 apps like etsy or hot or not have such navigations Oct 30 07:52:09 interesting, maybe i should try kotlin on android Oct 30 07:52:26 Ceylon looks interesting too Oct 30 07:52:30 shmoon_: you can try this: https://github.com/JakeWharton/Android-DirectionalViewPager/ Oct 30 07:52:36 don't use that Oct 30 07:52:41 they were supposed to have an official android story (Ceylon) Oct 30 07:52:46 why not? Oct 30 07:52:49 JakeWharton don't use ceylon ? Oct 30 07:53:06 because it has a giant deprecated warning Oct 30 07:53:13 it's based off of the r4 support library Oct 30 07:53:17 which is like two years ago Oct 30 07:53:21 ah :) Oct 30 07:53:37 hmm Oct 30 07:53:53 brb Oct 30 07:54:05 i love this: "And if you check a type is right, the compiler will auto-cast it for you" Oct 30 07:54:27 WAT?! Oct 30 07:54:56 output = null; println(output.length()); Oct 30 07:55:00 what happens here? Oct 30 07:55:21 NullPointerException Oct 30 07:55:23 it says 'kotlin protects you' but doesnt say what it does in this little demo Oct 30 07:55:30 "And of course, Kotlin protects you from mistakenly operating on nullable types, including those from Java" Oct 30 07:55:53 Any hint for getting Bundle in onActivityResult() if the finished Activity was quitted by "Back" button? Oct 30 07:56:09 setResult in onBackPressed Oct 30 07:56:10 who uses println? Oct 30 07:56:12 JacobTabak: you'd need a type there Oct 30 07:56:24 and from that it can infer nullability Oct 30 07:56:29 or it can be explicit Oct 30 07:56:31 so then what happens? Oct 30 07:56:35 it would error Oct 30 07:56:39 if it's nullable Oct 30 07:56:45 it would refuse to compile Oct 30 07:56:50 oh i see Oct 30 07:57:43 but i don't think it would be able to help with objects from a webservice Oct 30 07:57:58 why? Oct 30 07:57:59 if they're properly typed it will Oct 30 07:58:10 just like the @Nullable / @NonNull annotations help right now Oct 30 07:58:17 right Oct 30 07:58:28 except it would be enforced at compile time! Oct 30 07:58:36 does this mean i need to add endless null checks? Oct 30 07:58:42 in order to get it to compile? Oct 30 07:58:52 even when i'm promised by an api contract that it won't be null Oct 30 07:58:57 No? Unless your code it horribly broken :) Oct 30 07:59:17 The point is you isolate nullable stuff :) Oct 30 07:59:19 once you null check the type changes to a non-nullable type Oct 30 07:59:25 JacobTabak: Thanks! But what about onSaveInstanceState()? Oct 30 07:59:32 so all downstream code can require non-nullable data Oct 30 07:59:57 k i'll have to keep reading the docs to fully understand Oct 30 08:00:10 carbon_monoxide onsaveinstancestate isnt called when you hit the back button Oct 30 08:00:14 (by default) Oct 30 08:00:52 Ahh yea! Right! It is for the Activity itself being saved. The bundle doesn't go across other activity. Oct 30 08:01:12 correct Oct 30 08:01:31 What about onStop()? Oct 30 08:01:45 hmm, Kotlin looks actually kinda awesome for Android Oct 30 08:01:59 did you see my answer about overriding onBackPressed? Oct 30 08:02:03 considering the fact they managed not to be too smart about it and mess bunch of stuff up Oct 30 08:02:15 Yes, thanks! Oct 30 08:02:25 so does it make sense or is something not clear Oct 30 08:02:39 I am using oauth2 server with grant_type=client_credentials. I have android app that connects to the server with client_id and client_secret (this is same for every app) and app gets a token for using services I provide. so question is what is the correct way to bind my user to token, so I would know which user is making request? Oct 30 08:02:40 how's IDE integration with kotlin? Oct 30 08:03:07 jetbrains wrote kotlin Oct 30 08:03:16 tmyk Oct 30 08:03:17 intellij uses kotlin Oct 30 08:03:24 internally Oct 30 08:03:25 i have a font (.ttf) in my assets directory. im trying to read it and pass on the data to freetype2. problem is: app crashes in jni on calling AAssetManager_open() .. (confirmed: AssetManager is not null and filename matches) Oct 30 08:03:25 so why isn't it a bigger deal Oct 30 08:03:29 i hear people talking about it Oct 30 08:03:35 but nobody seems to be using it on real projects Oct 30 08:03:37 It's new, it's not sexy. Oct 30 08:03:45 it's not that new Oct 30 08:03:47 few years Oct 30 08:04:32 *AAssetManager Oct 30 08:04:34 JacobTabak: It make sense and clear, but I'm thinking about other quit situations except Back button is being tapped. Oct 30 08:04:45 Mhm, I think it's just in the same limbo as Ceylon and other languages like that Oct 30 08:04:58 got AAssetManager using AAssetManager_fromJava() Oct 30 08:05:04 It's not functional so their mindshare and amount of blog posts wasn't doing them good marketing Oct 30 08:05:05 this HN story is about Kotlin & Android https://news.ycombinator.com/item?id=8252800 Oct 30 08:05:55 carbon what other quit situations? Oct 30 08:06:11 there is one comment "The underlying Android API is so verbose that Kotlin by itself is nearly useless." i wondered about that wrt Scala also Oct 30 08:06:27 that's dumb Oct 30 08:06:28 and false Oct 30 08:06:56 I think that quickly becomse a non-complaint as soon as you go the Rx way Oct 30 08:07:00 whatitis: Like when I have other buttons which start other Activity or quitting the current Activity. Oct 30 08:07:20 where you can probably save money on GitHub costs just by not having anonymous classes instead of lambdas :P Oct 30 08:07:28 haha Oct 30 08:07:34 how can i make my application install a shortcut automatically? Oct 30 08:07:51 there's an API for that Oct 30 08:07:53 carbon, read about activity lifecycles Oct 30 08:08:38 mylord: looks like it's an intent http://stackoverflow.com/a/16873257/132047 Oct 30 08:08:43 carbon_monoxide you can override finish() Oct 30 08:08:47 been a while since i've done that Oct 30 08:09:02 I read here: http://developer.android.com/training/basics/activity-lifecycle/index.html Oct 30 08:09:20 https://github.com/xxv/android-lifecycle/blob/master/complete_android_fragment_lifecycle.png Oct 30 08:09:21 guess I meant, understand it Oct 30 08:09:28 JacobTabak: Oh, thanks! Good idea. Oct 30 08:10:25 good idea? you are clueless Oct 30 08:10:37 meanie ! Oct 30 08:11:06 whatitis: Why? Oct 30 08:12:29 whatitis generally you determine the result of an activity before finish(), and then call finish() yourself Oct 30 08:12:31 I've just added a flavor to my gradle config. Now I'm getting the error SourceSets 'main' and 'main' use the same file for 'manifest'. Can someone help me? Oct 30 08:12:38 because, how would overriding finish, be a complement to your question. you just latch on to anything shiny. like most Oct 30 08:12:44 Click66 your project structure is borked Oct 30 08:12:51 Actually overriding the onBackPressed() because the Back button sometimes handles more situation in the same Activity. Oct 30 08:12:54 paste your build file Oct 30 08:13:04 jacob, but you fail to read before suggesting thi gs Oct 30 08:13:34 JacobTabak: here you go http://pastebin.com/T1fW8ERp Oct 30 08:13:59 remove main Oct 30 08:14:02 from flavors Oct 30 08:14:11 whatitis not sure what you're getting at Oct 30 08:15:06 Mavrik so you like Rx now :) i think a while back you weren't so convinced of it :D Oct 30 08:15:33 However, using Intent and setResult() would cause the Activity quits with modified Activity result. Oct 30 08:16:06 not following your thoughts here Oct 30 08:16:14 carbon just override finish like jacob says Oct 30 08:16:26 JacobTabak: Removed it. Now getting duplicate class ( overwritting one class only ) Oct 30 08:16:38 Click66 you can't overwrite classes that exist in main Oct 30 08:16:42 Like when I do it on onBackPressed() and setResult(RESULT_OK, myIntent). The Activity result will be RESULT_OK. Oct 30 08:16:57 carbon_monoxide right, isn't that what you want Oct 30 08:17:10 JakeWharton can one use Dagger with Kotlin ? Oct 30 08:17:13 JacobTabak: It actually is Oct 30 08:17:15 carbon just override finish! Oct 30 08:17:22 g00s: no Oct 30 08:17:29 whatitis: OK. I will think. Oct 30 08:17:37 And I'm thinking Oct 30 08:17:38 it lacks annotation processing Oct 30 08:17:47 Click66 create a separate flavor for your google play build, or whatever you want to call it (not main) Oct 30 08:17:57 supposedly they're working on it Oct 30 08:17:58 leave the class you want to customize out of main and put it in each of the two flavors Oct 30 08:18:28 files in main are included in all flavors so you can't have the same class in both main and a flavor Oct 30 08:19:33 g00s: https://twitter.com/orangy/status/527605187834556416 Oct 30 08:19:47 good old ron Oct 30 08:20:06 well that's a wrench in that idea Oct 30 08:20:20 thanks Oct 30 08:21:44 how does it get so late Oct 30 08:22:02 JacobTabak where are you ? Oct 30 08:22:09 wisconsin Oct 30 08:22:21 well, what time is it there :) Oct 30 08:22:38 ffu its 4:30 here, time to go to bed Oct 30 08:22:57 3:30 Oct 30 08:23:09 west coast time zone makes so much more sense Oct 30 08:23:49 yeah i hate when its 1pm and its 10am on west coast; i know nothing has happened yet :| Oct 30 08:24:43 JacobTabak: thanks man :)) Oct 30 08:24:48 work? Oct 30 08:31:08 oh god what a weird feeling Oct 30 08:31:41 using my own lib, and running into a bug because i can't read my own documentation or look at my own samples Oct 30 08:34:17 took long Oct 30 08:43:22 I'm getting a strange VerifyError at runtime Oct 30 08:43:37 no sweat Oct 30 08:43:37 When I build my app with build tools 19.1.0 there is no problem. Oct 30 08:43:44 clean? :D Oct 30 08:43:46 When I use 21.0.0 I get "dalvikvm﹕ Invalid reg type for array index" Oct 30 08:44:02 update Oct 30 08:44:14 21.0.2 Oct 30 08:44:15 is latest Oct 30 08:47:09 Will try (I hadn't spotted the update) Oct 30 08:50:25 "done" is so much better than "archive" Oct 30 08:50:49 why did it take them 10 years to figure that out Oct 30 09:10:03 hello friends... Oct 30 09:10:22 please i need help... Oct 30 09:11:30 my SQLiteDatabase error.... http://pastebin.com/ZJbnpBuk Oct 30 09:11:47 can not open database Oct 30 09:19:38 hey, is it possible to let a different gmail account to manage one app in my developer account? Oct 30 09:21:01 hackable, whats the exception? Oct 30 09:21:18 can not open database Oct 30 09:21:51 aviran, open a new dev account Oct 30 09:22:31 kozko: can't open database Oct 30 09:22:49 i mean, exactly what is the exception? Oct 30 09:23:08 com.cbcemea.studio E/AndroidRuntime﹕ FATAL EXCEPTION: main Oct 30 09:23:09 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cbcemea.studio/com.cbcemea.studio.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database Oct 30 09:23:31 kozko, don't bother, he comes in every so often with random obscure questions and very little information, and expects others to solve his problems Oct 30 09:23:41 there, can't even use pastebin Oct 30 09:23:56 com.cbcemea.studio E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo {com.cbcemea.studio/com.cbcemea.studio.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database Oct 30 09:24:14 Kozko: i'm sorry, that's the exception Oct 30 09:26:37 Ravilov, what are you talking about? Oct 30 09:26:55 i'm not a full time developer and i'm still learning... Oct 30 09:27:15 So, why are you always on me.... Oct 30 09:27:44 i've the full information, i'm running sql database that's given me error... here is the url http://pastebin.com/ZJbnpBuk Oct 30 09:28:13 Kozko: don't mind him... help a brother! Oct 30 09:29:00 He's not exactly known for being sweet but your question could've been more concrete Oct 30 09:30:03 the first thing you should have learned by now is to google extensively before asking questions in here. this channel is not a substitute for laziness. Oct 30 09:30:18 that is all Oct 30 09:31:18 Ravilov, i've done that before coming here... don't know where the error is coming from. Oct 30 09:31:54 Can not open database using SQLiteDatabase.openDatabase(path, null, SQLiteDatabase.OPEN_READONLY); Oct 30 09:32:08 then you don't know how to read stack traces, which is yet another thing you should have learned before even coming in here Oct 30 09:32:53 another thing, don't assume people in here are your "friends" or "brothers" Oct 30 09:33:09 Hello, need a bit help i am using retrofit 1.7.1 and response is always failure and message is Null, and i have included okhttp and okhttp-connection...Any idea? Oct 30 09:33:12 here is the trace::: 2148-2148/com.cbcemea.studio E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cbcemea.studio/com.cbcemea.studio.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database Oct 30 09:33:32 that is not a stack trace Oct 30 09:33:41 also stop spamming the channel, there is pastebin for pasting Oct 30 09:34:20 Alright... Thanks for your help! Oct 30 09:35:17 lol Oct 30 09:35:29 Hello guys. I have a design concept question. What's the best way to communicate between Activity and Fragment? My solution so far was using Interface to call methods from Fragment to Activity and use public methods in Fragments to call them from Activity. What do you think? Oct 30 09:35:58 Number5, a simple google gives u the ans Oct 30 09:36:28 Number5, something wrong with that solution? -.- Oct 30 09:36:34 pifon1, thnx. Oct 30 09:36:55 yep Oct 30 09:37:00 Zharf, no, but maybe there's a better one I didn't know of. Oct 30 09:37:14 Number5 there is otto if you want to take a look. Oct 30 09:37:36 You mean otto like in SpongeBob? Oct 30 09:37:47 :P Oct 30 09:37:53 Number5 xD Otto from Square :D Oct 30 09:37:54 is somebody using rx-android to make comunication between activities and fragments? Oct 30 09:40:36 One other question. Who does also code for iOS besides Android? If yes, is it a bit hard to code for both platforms? Oct 30 09:42:07 Number5 i do, its not thath hard but code i dont like Objective C ^^ Oct 30 09:42:55 ArcaneWater, but don't you forget stuff for Android if you code for iOS for a while? Oct 30 09:43:28 Number5 not realy but i forget some stuff at iOS. Oct 30 09:44:52 Ok, so I'm not the only one forgetting some stuff for different platforms. Oct 30 09:45:18 Anyway, thnx for your conversation and your time :) Oct 30 09:45:22 Number5, protip - next time you come across or are told of a term you've never encountered before, your first instinct should be to google it, not to make silly comments Oct 30 09:46:03 why would you forget other platform stuff if you're coding for another platform for a while? Oct 30 09:46:05 ravilov, hey buddy, calm down. You are not obliged to answer ;-) Oct 30 09:46:06 o.O Oct 30 09:46:43 Number5, I am calm. this was just a protip, take it or leave it Oct 30 09:47:01 "otto" isn't really a google friendly name Oct 30 09:47:05 Zharf, I just forget. It;s not that I totally forgot it, but I have to figure out how it works again. Oct 30 09:47:24 Zharf, "otto android" is, though Oct 30 09:47:30 ravilov, well, in that case it was just a question, answer it or not ;-) Oct 30 09:47:38 ravilov, sure Oct 30 09:54:01 and 100% crash free Oct 30 09:59:46 Hello Oct 30 10:00:16 i have a listview and a textview below it. when there's room, i want the textview to be below the listview (if there's for example 1 item in it). If there's many items in the listview, i want the textview to be at the bottom, and have the listview adapt its size to always be above the textview. How to handle these 2 scenarios elegantly? Oct 30 10:01:10 What layout are you using? Oct 30 10:01:19 it's a linearlayout now, but can change Oct 30 10:01:40 I don't get it, this should happen automatically with linearlayout that has orientation=vertical Oct 30 10:02:19 unless I misunderstood what you're saying Oct 30 10:02:38 ig there's 1 item, the listview should be 1 item high, and the textview below it. below that, is empty space. But when the list has many items, the textview should align to bottom, and the listview should fill the rest of the sdpace Oct 30 10:03:21 Ah I misunderstood that Oct 30 10:04:55 So you want the textview to always be in sight? Oct 30 10:05:03 yes Oct 30 10:05:43 my app can open a text file (of 140KB) using AAssetManager (ie JNI), but opening a 130 KB true type font (Roboto-Thin.ttf) leads to crash Oct 30 10:05:43 and adapt to the listview's size. Unless the listview is filled with many items, then the listview should adapt to the textview Oct 30 10:07:01 JakeWharton: are you guys using kotlin ? Oct 30 10:07:06 (just found kotterknife) Oct 30 10:07:14 "signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr c0000004" Oct 30 10:10:52 You could use a relative layout, when the listview has > 1 item set the textview as ALIGN_PARENT_BOTTOM, if not set it as BELOW listview? Oct 30 10:11:57 Not 100% that would work, might be worth a try though. Oct 30 10:14:21 no because it depends on the combined size of the items Oct 30 10:14:35 whether or not the listview can contain them at once or not Oct 30 10:14:44 i guess i'll just need to talk to the designer :/ Oct 30 10:15:57 maybe i can put the button in the listview as .. bottomview or sth.. Oct 30 10:17:15 if the listview can't contain them it will scroll? Oct 30 10:22:46 JakeWharton there maybe :)? Oct 30 10:26:35 I wish there was better support for custom lockscreens on android Oct 30 10:27:00 without root, custom lockscreens with security are essentially useless Oct 30 10:30:02 Anyone have any experience with Retrofit and Realm database? When you extend class you cant parse with retrofit :/ Oct 30 10:33:59 Memery, lockscreen is supposed to be secure and protective, not customizable Oct 30 10:37:12 I appreciate that but the standard one(s) are horrendous Oct 30 10:39:36 Hopefully in the future they will incorporate some way for developers to create secure lockscreens Oct 30 10:40:38 unlikely, any openness in this area is a potential security issue Oct 30 10:43:18 Understandable, I guess for the foreseeable future I will be aiming my app at root users then Oct 30 10:47:25 I am using ABS in my code Oct 30 10:48:12 if I am interested in using ICS style indeterminate progressbar, which of following path I should take Oct 30 10:48:22 https://github.com/Prototik/HoloEverywhere Oct 30 10:48:35 or http://forum.xda-developers.com/showthread.php?t=1963469 Oct 30 10:59:04 Hi everyone, what is problem if get error message like this : Failed to install LoadActivity.apk on device 'emulator-5554! Oct 30 11:04:47 try installing with adb Oct 30 11:08:55 ravilov: thanks, right now installing is success but app still is not starting on the screen of emulator Oct 30 11:19:16 fk u whoever mentioned logos yesterday Oct 30 11:21:09 Coming up with a name for an app has got to be one of the hardest parts of development... Oct 30 11:22:50 What happened StingRay_ , you've been looking at logos ever since and only just woke up out of your trance? Oct 30 11:23:18 VnM no I stared at my logo for 10 mintues then though fk'it, re-design Oct 30 11:23:40 would not have done that…but yesterday some1 was on about logos Oct 30 11:23:45 app icons Oct 30 11:24:33 Ah well, something fun to do! Oct 30 11:47:49 fk you photoshop!!! why the hell did my mac loose illustrator … !!! Cant find disc or adobe login either….fk you mac!! Oct 30 11:48:23 :D Oct 30 11:48:32 well your own fault for using a mac, innit :x Oct 30 11:48:42 Omnomnom feed me with your tears Oct 30 11:48:50 as apposed to what KekSi ? Oct 30 11:49:01 Windows Vista Oct 30 11:52:17 my ABS activity taking too much UI rendering time :'( Oct 30 11:53:38 Why are you using ABS? Oct 30 12:01:00 hi, i have a sqllite database, how i can monitoring it without download and open in my pc? Oct 30 12:02:18 monitor it ? Oct 30 12:02:34 it's a database, you put stuff in or remove stuff/alter stuff Oct 30 12:02:45 you kinda know whats in there if you query it Oct 30 12:04:16 t0th_-_ adb shell > cd to data/data/com.packagename/databases/ and run sqlite3 databaseName.db Oct 30 12:10:35 is there a good way of being notified if the user manually deletes my application's account? Oct 30 12:13:07 thanks Oct 30 12:14:04 all I see are ways to be notified every time there is an account change and a dirty hack for getAccountRemovalAllowed Oct 30 12:23:03 thepoosh: I think you can only monitor this if you have another app on the device Oct 30 12:23:58 ACTION_PACKAGE_REMOVED intent is broadcast Oct 30 12:24:00 broadcasted Oct 30 12:24:02 is that even a word Oct 30 12:25:52 Hello Oct 30 12:27:14 Oh wait, I misread the question, ignore... Oct 30 12:28:22 What's the best approach to develop games for android. Currently i use Unity3D but im not quiet comfortable. It feels heavy and i dont like prebuild things. I like making games from scratch and using only necessary resources for my game. But not a whole engine for example Oct 30 12:31:24 hmm, anyone used Shadow plugin with Android yet? Oct 30 12:32:14 aliasc: never making game :) . btw do you ever use unreal? Oct 30 12:34:01 Nope. i mean i tried it but no i havent build anything with unreal engine Oct 30 12:34:10 shadow plugin? Oct 30 12:34:26 is Unreal Engine good for mobile devices ? Oct 30 12:36:12 aliasc: it is the best in the iOS Oct 30 12:36:32 this is not ios Oct 30 12:37:04 ravilov: ok, but maybe also for Android :) Oct 30 12:37:31 don't recommend something that's a "maybe" Oct 30 12:37:53 I want to have some iptables rules set Oct 30 12:38:00 where is the best place to put these rules? Oct 30 12:38:04 so that they are run on boo Oct 30 12:38:06 bot Oct 30 12:38:07 boot Oct 30 12:38:14 http://appcrawlr.com/android-apps/best-apps-unreal-engine Oct 30 12:38:22 seems like it's used for some Oct 30 12:38:49 johnflux, not in this channel, that's for sure Oct 30 12:38:51 try -root Oct 30 12:40:04 I still don't understand mobile games ... Oct 30 12:40:30 ravilov: thanks Oct 30 12:40:33 Zharf thats a really odd thing to say Oct 30 12:40:39 why Oct 30 12:40:45 no context Oct 30 12:40:55 I really dont understand the world Oct 30 12:40:56 oddity is his game Oct 30 12:41:07 dont understand a car Oct 30 12:41:07 in the context of mobile games, I don't understand why mobile games exist Oct 30 12:41:09 i want to get into mobile games. maybe just to check how's that... would need a free engine because no moneis Oct 30 12:41:23 Zharf ah, thats specific, they exist cause there is demand Oct 30 12:41:25 simple Oct 30 12:41:25 When using a transparent background it displays the home screen of the launcher underneath, is there a way for it to display the last used app underneath instead? Oct 30 12:41:39 Zharf no demand, not exist Oct 30 12:41:43 StingRay_, but I don't understand the demand either, why on earth would someone want to play them -.- Oct 30 12:41:52 Memery, only if it's launched from that app and not the homescreen Oct 30 12:41:54 it's weird to me that people play them Oct 30 12:42:04 Zharf, why not? Oct 30 12:42:05 thats down to surveys and demographics, weird to you Oct 30 12:42:13 Hmm, that's a shame. Thanks Oct 30 12:42:25 but you maybe weird the them Zharf :) Oct 30 12:42:39 and there are lots of them :) Oct 30 12:43:00 Trying to imitate a circular reveal on unlock of the lockscreen but it wouldn't look right revealing the launcher and then unlocking to another app. Oct 30 12:43:03 I don't like games in general, mobile games are no exception, but I'll admit the better-made ones can be quite a decent pastime Oct 30 12:43:15 amount of people liking something never had anything to do with anything Oct 30 12:43:29 I play a metric shitton of games Oct 30 12:43:47 I've just never seen a mobile game that would engage me for more than a minute Oct 30 12:43:56 Zharf, the things that exist purely because someone thought it's a good idea usually don't last very long Oct 30 12:44:02 I got addicted to Terraria on my mobile for a few weeks Oct 30 12:44:08 Zharf well if there were one category of gamer, then you may have a point, but there are metric shit tonnes of categories ;) Oct 30 12:44:52 but then using a touchscreen also makes me feel nauseated Oct 30 12:45:07 Zharf, if you had children, you would have a much better and broader understanding of real life ;) Oct 30 12:45:12 thats you… fortunate for the industry, not everyone is you Oct 30 12:45:25 i think there are armies or indians and pakistani programmers getting into game dev for mobiles. some added me after i posted my app Oct 30 12:45:35 StingRay_, unfortunately, really, then they'd see what kind of shit they're producing ;) Oct 30 12:45:48 even found a game with a very good copy of iOS interface for android heheh Oct 30 12:46:53 Zharf, that is your VERY personal opinion, you have every right to have one but don't try to pass it as a fact Oct 30 12:47:32 everything anyone ever says is an opinion Oct 30 12:48:02 Zharf but unless you are the industry trend or average…you mean sh*t to the bottom line ;) Oct 30 12:48:02 the only fact is that nothing is ever good enouhg Oct 30 12:48:20 in my time in games I never wanted to play things like rock band, rock revolution and guitar hero etc, even though I had to work on them, but was not narrow minded enough to think there was no point to what I was doing :) Oct 30 12:49:03 Zharf, no, there are indisputable facts as well Oct 30 12:49:05 why would you work on something you don't like though Oct 30 12:49:11 for money Oct 30 12:49:14 that's another thing I find weird about people Oct 30 12:49:16 -.- Oct 30 12:49:36 it doesn't seem you'll fare through life too well Oct 30 12:49:50 money is useless, just not getting bored every day is enough to do Oct 30 12:50:06 huh? Oct 30 12:50:06 someone should make point and click games with puzzles, complex actions and awesome stories like secret of monkey island. id buy that app Oct 30 12:50:22 ravilov, how do you define "fare well through life" Oct 30 12:50:24 cliffreich there are 100's Oct 30 12:50:46 they are nothing like old lucasarts saga Oct 30 12:51:07 cliffreich, did you notice that gog released some old lucasarts stuff Oct 30 12:51:08 Zharf, either you are really struggling with the real world, or bitching and whining about anything and everything is in fact your life force Oct 30 12:51:30 I don't know what life force is Oct 30 12:51:35 ^ Oct 30 12:51:37 yes i just saw sam&max. awesome, but you can use scummvm to play all that Oct 30 12:51:46 Money makes the world turn unfortunately Oct 30 12:51:48 cliffreich, sure Oct 30 12:51:59 whatever keeps you going, duh Oct 30 12:52:02 Memery, world would turn without humans just fine Oct 30 12:52:17 he meant the world of humans Oct 30 12:52:34 Obviously, if anything it would be better off without us Oct 30 12:53:21 ravilov, not much other than music in the world that has any sort of importance to me Oct 30 12:53:30 and most of that is just crap too Oct 30 12:53:35 that is, yet again, you Oct 30 12:53:45 I never said otherwise Oct 30 12:53:52 you are very isolated in this, just so you know Oct 30 12:53:53 but then you were talking about my motivations Oct 30 12:54:09 I'm trying to understand human motivations and such Oct 30 12:54:19 but it's so weird when they don't make any sense -.- Oct 30 12:54:24 yeah see, that's what you say ("music only") but your actions tell a different story Oct 30 12:54:43 what kind of story? Oct 30 12:55:09 you only ever bitch and whine, if it's not this then it's that, I seriously think you live off of constant complaining Oct 30 12:56:20 hi Oct 30 12:56:39 Hi Oct 30 12:56:40 i have this code http://pastebin.com/38XgpXgY , but is not getting UTC timezone, it is get the local timezone Oct 30 12:57:23 I used to strive for making things better from my point of view which at the time was *code*, but it's just pointless to even try to make people realise how code should never be considered good enough... that's why the world is full of shit Oct 30 12:57:57 That doesn't even make sense Oct 30 12:58:26 because relentless perfectionism is so much better? Oct 30 12:58:31 indeed Oct 30 12:58:36 tried it, didn't like it Oct 30 12:58:37 why bother if it's not perfect? Oct 30 12:58:40 drives you insane Oct 30 12:58:50 never get anything accomplished Oct 30 12:59:00 Because we are incapable of perfection Oct 30 12:59:02 nothing is ever good enough Oct 30 12:59:03 t0th_-_ try Joda time: http://stackoverflow.com/questions/2891361/how-to-set-time-zone-of-a-java-util-date Oct 30 12:59:33 right, but if you decide that things are good enough, the pile of shit will never get any smaller, only bigger and bigger Oct 30 12:59:51 Zharf, your logic is deeply flawed Oct 30 12:59:53 i need set timezone to calendar Oct 30 12:59:56 ravilov, how so Oct 30 13:00:02 i am setting but is not show the certain timezone Oct 30 13:00:39 honestly, I don't feel like explaining, it doesn't seem I'm getting through to you anyway Oct 30 13:01:05 ravilov, pft Oct 30 13:01:39 t0th_-_, Date is always UTC Oct 30 13:01:59 t0th_-_, the string representation of it might not be Oct 30 13:02:21 t0th_-_, you can use DateFormat to get a string in a specific timezone Oct 30 13:04:32 ravilov, frankly you never even tried... Oct 30 13:07:57 Zharf, ok Oct 30 13:14:04 When I'm running application, I notice that the application icon is always there on the status bar, When expanding the status bar I see that the notification body has " is running" Touch for more information. Any idea how to get rid from that icon ? Oct 30 13:14:53 R4md4c, well are you putting it there? because that's not really normal otherwise :p Oct 30 13:15:28 Zahrf: I don't remember setting any notification icon in my application Oct 30 13:15:35 I'll try to post the manifest Oct 30 13:15:39 setForeground? Oct 30 13:15:43 it has nothing to do with manifest Oct 30 13:15:56 * R4md4c searches for setForeground in the code Oct 30 13:16:00 You have to put it there with the NotificationManager don't you? Oct 30 13:16:09 Memery, or setForeground Oct 30 13:16:35 I see Oct 30 13:16:46 I'm sorry, it's startForeground, actually Oct 30 13:18:16 but you would still have to build a Notification object in any case Oct 30 13:20:13 I don't find any notification code, even my GCMIntentService does not use the NotificationManager unless a Broadcast is sent Oct 30 13:20:45 R4md4c: look for startForeground as Zharf wrote Oct 30 13:21:50 are you using some third party framework or something that might do things behind your back? Oct 30 13:22:53 Seems that RoboSpice is the one that uses startForeground Oct 30 13:22:59 Zharf: You are correct Oct 30 13:26:46 so much about 3rd-party addons that you know very little about Oct 30 13:26:52 hence why I generally use none Oct 30 13:29:48 Phew, Thank god that the method that creates the notification was not private, I overrode it and the problem is gone now Oct 30 13:30:44 Isn't it creating a background service so that's why the notification is there? Oct 30 13:31:16 R4md4c: so instead of startForeground you do what? =) Oct 30 13:32:00 breaks functionalty :p Oct 30 13:33:37 R4md4c: isn't the problem that you don't stop the service when its done? Oct 30 13:33:46 The point of the notification is so you can kill the background service or forces you to create your own notification (I think) Oct 30 13:33:57 Anyway... lunch Oct 30 13:34:20 I don't trust robospice propaganda/feature list Oct 30 13:34:27 "no memory leaks at all" Oct 30 13:34:49 lol Oct 30 13:35:00 Zharf: just reference leaks ;D Oct 30 13:35:33 "No bugs" Oct 30 13:36:07 Without a geocoder call, is there a way to get the streetname of where someone is at using the google map api (map shown, loaded where the person is). Oct 30 13:36:27 Well, the SpiceService that I'm extending, is using startForeground inside the onCreate, thankfully the notification is created on a separate method "createDefaultNotification" so I overrode that and returned null instead of a Notification object. pastebin.com/5z8UqKxH Oct 30 13:36:55 http://pastebin.com/5z8UqKxH Oct 30 13:37:06 R4md4c: so either you'll crash or you'll get a default notification =) Oct 30 13:37:14 No I got nothing Oct 30 13:37:25 It didn't crash either Oct 30 13:37:29 jonc, yes, it is called coarse location Oct 30 13:37:39 R4md4c: depends on what Android version if I remember correctly Oct 30 13:38:06 appel1, details please Oct 30 13:38:08 coarse location gives streetname? Oct 30 13:38:20 hm probably not Oct 30 13:38:26 that's the best you can get without gps though Oct 30 13:38:36 I don't think you can get streetname without geocoder call Oct 30 13:38:38 I am not saying I don't want to use gps Oct 30 13:38:43 but it's so simple to do geocoding... Oct 30 13:38:55 appel1: Also don't forget that they are using their own version of startForeground, and there are exception handlers everywhere. So no crash here ;) Oct 30 13:38:56 I am saying, using gps and google maps together, is there a way to get the current locations streetname using google maps? Oct 30 13:39:06 * Zharf doesn't think so Oct 30 13:39:17 R4md4c: ok, no crash but the service wont start.. Oct 30 13:39:27 Zharf, it is, but I would like to know as soon as possible when streetname changes and don't want to make a network call every 1-2 seconds to get it Oct 30 13:39:43 ah Oct 30 13:39:47 hmm exception handlers everywhere? maybe that's why they think they have no memory leaks Oct 30 13:39:50 Zharf: https://plus.google.com/u/0/105051985738280261832/posts/MTinJWdNL8t Oct 30 13:40:06 Zharf: don't remmeber when they started enforcing a notification. Oct 30 13:40:12 so I was just curious if the GoogleMap may have something to get it (looking at the docs now) Oct 30 13:40:30 Since it has to know the name of streets being shown to draw the text (doesn't seem to be part of the map tile) Oct 30 13:41:24 appel1, it just says that it'll create a default notification, which sounds like the one that R4md4c was seeing Oct 30 13:41:58 Zharf: no, he claimed that he used null as notification to hide it, but I very much doubt it works as he thinks. Oct 30 13:42:59 appel1, because devs kept hiding their battery-consuming services Oct 30 13:43:09 Looks like I will have to use the geocoder, since this is now kind of fused with everything else, it may check the current maps cache also (can only hope) Oct 30 13:43:44 appel1: Seems that they fixed this issue in the latest release as I don't see such behaviour in the new code. I'll try to revert my code and upgrade the library and see Oct 30 13:45:05 ravilov: lots of devs still leave their services running reducing overall device performance.. they just don't abuse foregrounded services as much anymore because of the forced notification. Oct 30 13:45:25 null notification would apparently throw illegalargumentexception Oct 30 13:45:41 which the robospice catches Oct 30 13:45:43 so it wouldn't crash Oct 30 13:45:46 it would just start in background Oct 30 13:46:22 (ref: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.4.4_r1/com/android/server/am/ActiveServices.java#555 ) Oct 30 13:46:40 With the new Toolbar, is it acceptable to have two backs buttons over each fragment in a Master / Detail? Oct 30 13:46:44 ok Oct 30 13:46:49 Anyway I've upgrade RoboSpice after reverting my code, and the notification is not showing any more. Here is the latest release's SpiceService code https://github.com/stephanenicolas/robospice/blob/1.4.14/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/SpiceService.java Oct 30 13:48:40 https://github.com/stephanenicolas/robospice/blob/1.4.14/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/SpiceService.java#L501 seems like this handles the null notification... but geez, that method name Oct 30 13:49:50 appel1, correct, so the services at least can't run with high priority Oct 30 13:51:19 * Zharf shuts down his services around 30 seconds after the last client unbinds Oct 30 14:06:13 what Oct 30 14:06:36 oh my. So *THAT* is why this app keeps throwing random empty notifications! Oct 30 14:06:51 empty? Oct 30 14:07:16 Robospice! Oct 30 14:07:31 but empty? Oct 30 14:07:38 Zharf, R4md4c -- thanks for all the discussion, you just accidentally solved something that had been bugging me for a while :D Oct 30 14:07:50 has anyone done any sort of dead reckoing for location between updates? Oct 30 14:08:02 20 downloads. i think i won't survive from my first app. better find a job heheh Oct 30 14:08:22 damn is hard to find a nice job these days Oct 30 14:09:23 I'm just bored at work because of nothing to do... next time I sign a contract I'll make sure that it's part-time and that I only need to work when there's something to do -.- Oct 30 14:09:30 lut4rp, good luck in using random 3rd party libs in the future :p Oct 30 14:09:36 Zharf: cool, too advanced concept for the devs at Spotify, Amazon, Microsoft and more though.. :) Oct 30 14:09:40 Zharf, yeah, empty. All I see is the app icon and nothing else. Oct 30 14:09:48 Zharf, both the projects I was on, were using Robospice and both of them exhibited this behavior Oct 30 14:09:49 lut4rp, weird Oct 30 14:09:54 maybe the text is the color of the background Oct 30 14:09:59 ^ Oct 30 14:10:11 appel1, :) Oct 30 14:10:22 ravilov, well yeah, I didn't make that decision. Otherwise I'd have picked just retrofit. Oct 30 14:10:37 These folks are using robospice along with the robospice-retrofit extension Oct 30 14:10:48 which is just another 3rd party lib, just with nicer and more accessible devs :p Oct 30 14:10:53 cliffreich: lol ? ;) Oct 30 14:11:04 appel1, http://eclipser.xmms2.org/git/xmmsclient-android-test.git/tree/src/main/java/org/xmms2/eclipser/xmmsclient/clientservice/XmmsClientService.java#n71 so simple though Oct 30 14:11:06 Def Oct 30 14:11:28 monsti :^) Oct 30 14:11:39 cliffreich: relocate ;) Oct 30 14:11:40 my point was, like I said - I steer away from any 3rd party code whenever I can, even if that involves a few more lines of boilerplate code Oct 30 14:11:54 I can be quite a control freak when it comes to certain things Oct 30 14:12:23 cliffreich, become self-employed Oct 30 14:12:24 I'm completely okay with (and support) using 3rd party libs, as long as they're mature and battle-tested Oct 30 14:12:41 monsti: need money to relocate first :P Oct 30 14:12:45 But oh well, can't control what the client's codebase is already using. Oct 30 14:13:00 cliffreich, get a job with relocation assistance :p Oct 30 14:13:17 ravilov like freelance websites or entrepreneurship? Oct 30 14:13:19 I do try to look for ready to use solutions but often I end up fixing or rewriting them :p Oct 30 14:13:47 cliffreich, either, or both, whatever works for you Oct 30 14:14:03 cliffreich: i am fromm germany - we have some serious problems finding good coders Oct 30 14:14:09 if I used github I might even submit the changes to upstream, but since I don't... Oct 30 14:14:30 lut4rp, sure you can, say the code was broken and needed some extensive refactoring, and end up charging more :p Oct 30 14:14:34 monsti: i thought germans were top tier for everything Oct 30 14:14:37 cliffreich: what's cool aboud android - we don't sell our apps on googly Oct 30 14:15:04 I'm not the best coder yet but I'm trying :) Oct 30 14:15:07 monsti: I guess that the German language is a barrier for getting coders from abroad, right ? Oct 30 14:15:08 monsti, correction: *everyone* has serious problems finding good programmers :) Oct 30 14:15:14 germany's too hot and their spoken language hurts my ear Oct 30 14:15:37 what are you, canadian? Oct 30 14:15:42 been offered a few jobs in there over the past year or so Oct 30 14:15:47 finnish Oct 30 14:15:51 lol Oct 30 14:15:57 finland is too hot too Oct 30 14:15:57 almost same diff Oct 30 14:16:09 yeah greenland seems like the place for you Oct 30 14:16:15 R4md4c: yes its quite hard for emericans lerning german - but in Berlin or Munich you can get a job with english Oct 30 14:16:16 possibly Oct 30 14:16:23 iceland maybe Oct 30 14:16:46 northern coast of norway Oct 30 14:16:48 :) Oct 30 14:16:49 Did someone just say *Finland* is too hot?! Oct 30 14:16:55 yes Oct 30 14:17:01 Folks, I'm from India :D Oct 30 14:17:13 nah that'll probably be too hot too, try to find some remote island to the north of that Oct 30 14:17:25 lut4rp, cool! Oct 30 14:17:26 I'm not :p Oct 30 14:17:31 I thought Scandinavian countries have issues with too less sunlight. Oct 30 14:17:38 i was learning german some time ago. some words got me, as no logical link to others in some phrases Oct 30 14:17:43 nah that's London Oct 30 14:17:56 but it's a nice lang Oct 30 14:18:01 I studied german for 5 years Oct 30 14:18:06 don't remember a thing Oct 30 14:18:12 except ich weiss nicht Oct 30 14:18:33 cliffreich, nice lang? really? http://i.imgur.com/a1aIsFc.jpg Oct 30 14:19:06 ravilov: i loved some german bands for instance :P Oct 30 14:19:06 that first one triggered a blümchen earworm Oct 30 14:19:31 cliffreich, probably exactly because the language is so... razor-sharp :p Oct 30 14:19:44 https://www.youtube.com/watch?v=Vt3Y4eo52Es Oct 30 14:19:51 * Schoumi ear german's band but lots of then sing in english Oct 30 14:19:58 s/then/them Oct 30 14:20:05 cliffreich, works well if you're for example... oh dunno, Rammstein :p Oct 30 14:20:07 heheh Oct 30 14:20:56 ravilov: yeah i liked rammstein and some metal when i was a long haired dude Oct 30 14:21:35 now hair is gone nad nature is trying to take it all Oct 30 14:21:43 the old times :') Oct 30 14:21:53 german isn't anywhere near as bad as italian or spanish though Oct 30 14:22:42 ... or finnish Oct 30 14:23:02 i am still waiting for my QI loader Oct 30 14:23:13 * monsti recently got a Kingzone K1 TUrbo Oct 30 14:23:18 how can I crop an image (as data)? Oct 30 14:23:31 oops, i mean in javascript.. wrong channel Oct 30 14:23:38 heh Oct 30 14:26:14 lol that image Oct 30 14:36:51 I want to publish a story using the Facebook SDK, but without an open session, what's the way to programatically authenticate the user? Oct 30 14:42:39 wanted to place ads while my activity gets data Oct 30 14:43:02 but happy to tell you all that AirPush is slow :-( Oct 30 14:50:15 to translate my app id need to change bar/pub to Erfrischungsraum/Kneipe and all my xmls :') Oct 30 15:21:42 I just created a simple DatePickerDiaog inside a DialogFragment. When trying to hide the title with DialogFragment.setStyle(STYLE_NOT_TITLE, 0) i noticed that this will not remove the title. Anyone know if theres a special reason why this doesn't work with a DatePickerDialog or might this be a bug? The DatePickerDialog gets created in onCreateDialog() and im calling setstyle from onCreate() Oct 30 15:25:12 I presume you had a typo NO NOT Oct 30 15:25:19 but setStyle(STYLE_NO_TITLE, STYLE_NORMAL); always works for me Oct 30 15:27:19 that was a type yes. it usualy also works. except when i use it with a DatePickerDialog. Funny thing is if i call setTitle("") on the DatePickerDialog the title dissapears Oct 30 15:27:28 toghether with the blue underline Oct 30 15:48:59 i have a string resource in res/values/strings.xml, the resource name is available in gen/R.java/string too. but i am unable to access the resource in code using R.string.resource_name. eclipse says - resource_name cannot be resolved or is not a field. i have cleaned the project many time and restarted the ide too. what could be the problem? Oct 30 15:49:50 the_cyber_guy: pff eclipse... did you try cleaning the project Oct 30 15:49:58 oops Oct 30 15:50:30 i would suggest trying android studio, eclipse is on its way out for android Oct 30 15:51:26 Hey guys. Is there a way to attach a debugger to native (NDK) apps on Android? I'm getting divide by zero errors on x86 that aren't happening with ARM and I could do with tracking them down Oct 30 15:51:44 the_cyber_guy: you might have a wrong import Oct 30 15:52:31 nvm, found it Oct 30 15:54:10 osxorgate: hmm, i think i should try android studio. i don't like eclipse myself. last time i tried android studio, it was in beta. Oct 30 15:54:21 monsti: import android.R; Oct 30 15:54:44 the_cyber_guy: it still is... but it's pretty usable.. more so that eclipse at least. Also it's under active dev Oct 30 15:54:53 s/that/than Oct 30 15:57:02 the_cyber_guy: yes that's wrong Oct 30 15:57:13 the_cyber_guy: you have to import your R not the systems R Oct 30 15:57:37 the_cyber_guy: the problem is _NOT_ eclipse related :) Oct 30 16:08:26 anyone implemented xmpp chat on android ? Oct 30 16:08:30 what's the best library for this? Oct 30 16:11:19 monsti: thanks, that solved my problem :) PS: i am a PHP dev though, trying to add localization in an app Oct 30 16:21:31 say I have a FooActivity, which contains a FooFragment, which has a child fragment one of FooDetail, FooSomething, FooElse. I don't want to do multiple look ups in the db for the Foo in question, so I was thinking about doing it once in FooFragment and communicating it to any one of the child fragments. Would Otto be good for this use case? Oct 30 16:22:31 why not just do the data in the activity and pass to the fragments ? Oct 30 16:23:49 StingRay_ yeah, I might do that instead. there is some more stuff involved here, like a viewpager, but I don't think it would be a be refactor to just set Foo in the Activity on swipe and do a getFoo callback Oct 30 16:39:29 On the google maps api v2, when I change the position of a marker, how can I update it's position on the map? it just stays the same (even though the debugger confirms that the internal position is changed) Oct 30 16:39:35 do I have to remove and readd it? Oct 30 16:40:23 the next question would be how do I remove a marker? Oct 30 16:42:55 Syzygy_: You need to move the map using CameraUpdate Oct 30 16:43:11 i'm not trying to move the map, just the marker Oct 30 16:43:19 oh Oct 30 16:43:27 sorry read that wrong Oct 30 16:43:43 just noticed that I was a bit confused by marker and marker options, I'll ask again if I still have the problem Oct 30 16:48:08 what's the min sdk for the new appcompat? Oct 30 16:48:11 ICS? Oct 30 16:49:06 Froyo Oct 30 16:49:11 shit Oct 30 16:49:14 fucking froyo Oct 30 16:49:16 Always froyo Oct 30 16:49:17 excuse my french Oct 30 16:49:19 why couldn't they just drop that hsit Oct 30 16:49:26 They kinda locked that in with the v7 Oct 30 16:49:26 give me another excuse to tell people im not supporting it Oct 30 16:49:38 (which is kinda stupid, but oh well..) Oct 30 16:50:36 Why do you need an excuse? Oct 30 16:50:49 Just say no and people will choose another dev if that's not acceptable :) Oct 30 16:50:54 that's what i'm going to do Oct 30 16:51:03 i'd rather be able to convince them Oct 30 16:51:05 though Oct 30 16:51:20 what's the best blog post / website advocating min SDK 15/16? Oct 30 16:52:26 hello everyone Oct 30 16:52:56 ha, SimonVT has a blog post about what API level to target Oct 30 16:52:57 Just show them the platform versions dashboard Oct 30 16:53:10 i'm a time traveler http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Oct 30 16:54:15 my min is 14 and i wonder if i should use a lower api Oct 30 16:54:27 Yeah, a lot don't know the difference Oct 30 16:54:27 i'm trying to get some text to align to the top and bottom of an image view; however there is still padding after having set includeFontPadding to false Oct 30 16:57:10 setting a negative margin works; but is that good practice? Oct 30 16:57:41 cliffreich: should be 15 Oct 30 16:58:56 one of my few users is 4.0! Oct 30 16:59:00 heh Oct 30 16:59:15 wtf Oct 30 16:59:21 ? Oct 30 17:00:19 im checking my app stats and from my few users 1 is 4.0 :O Oct 30 17:00:53 Tell him to get a new phone and move on Oct 30 17:01:33 i wish i could... and also tell the guy with the old version crashing sometimes that i fixed all that some days ago Oct 30 17:02:49 i still have new installs daily of versions that are 4+ months old Oct 30 17:03:43 one or 2 versions from 6 months ago installed yesterday on phones I have never heard of Oct 30 17:05:22 i think i'll read about how to implement those push notifications. maybe that will help to notify users Oct 30 17:06:23 "Daily reminder about how you should update sometimes" Oct 30 17:06:37 careful with that Oct 30 17:07:06 there are aspects of intrusion that one may feel from an app that may notify them out the blue Oct 30 17:07:29 maybe better to consider a more passive approach when they open the app Oct 30 17:07:35 i notify my users once in the morning and they forget to open it i email them later in the day Oct 30 17:07:46 use my app every day or perish Oct 30 17:09:28 JacobTabak did you go to sleep O.o Oct 30 17:10:30 heheh yes of course wouldnt be very intrussive. i don't want to scare my 20 users Oct 30 17:10:46 g00s i always go to sleep Oct 30 17:10:55 :D Oct 30 17:14:12 Hi Oct 30 17:15:00 I have a question, I have my code set up for grabbing the current datetime of the system. I amw wondering though besides having that code in onCreate and onResume, do I need to put it somewhere else? Oct 30 17:15:23 Right now, if I stay on my view where I set the current datetime, the datetime does not update when I'm on the view. Oct 30 17:16:06 If I'm doing android dev, can I safely add the .repo folder to my .gitignore? Oct 30 17:17:27 heh, this looks awful http://phandroid.com/2014/10/30/buy-gear-s-us/ Oct 30 17:17:29 you should not really have it in both those lifecycle calls Mugwump101 Oct 30 17:17:58 g00s looks ok Oct 30 17:18:12 ohh where should I have it? Oct 30 17:18:13 :S Oct 30 17:18:19 g00s not great…but ok Oct 30 17:18:52 Mugwump101 have a read of the android lifecycle Oct 30 17:21:07 ok but I want to ask you something, is the way I'm getting the time correct? Oct 30 17:21:48 http://pastebin.com/BQhuTPxW Oct 30 17:22:25 When My app crashes it tries to resume the activity on the stack that was behind the crashed one. Is there anything anyone can think of that would cause this? Oct 30 17:22:25 Or does this just get one instance of the time when I launch the activity or resume the activity? Oct 30 17:22:47 shadynastys i think that is the platform Oct 30 17:23:20 like the OS is doing it? Oct 30 17:27:53 Is the .repo folder just external deps? Oct 30 17:28:17 i have an sqlite question: i'm updating a value in a table. Is it suppose to update only when I restart the app? Oct 30 17:28:31 no Oct 30 17:29:13 Az15 you mean if you re-query the table the data has not changed ? Oct 30 17:29:48 yes.. unless i'm doing something wrong Oct 30 17:30:01 well then restarting the app wont make a diff Oct 30 17:30:13 ah, but it updates when I restart the app Oct 30 17:30:15 the data quite simply has not changed…or that would be my guess Oct 30 17:30:28 then you are not reading the data Oct 30 17:30:32 one or the other :) Oct 30 17:31:05 Mugwump101: looks like your code will get the current time and put it in a textview. depending on where this code is at will give you an answer to "get one instance question" Oct 30 17:31:21 or, the visual changes you are expecting are not being triggered, but the backing data has changed Az15 Oct 30 17:31:24 thats another poss Oct 30 17:34:38 okay so the code is correct but I need to figure out where to put it so that it continously updates Oct 30 17:34:52 when I'm viewing the page that the time is set on Oct 30 17:35:24 I am wondering if I need a service for this? Oct 30 17:40:54 The thing I don't see why I would need to set this code in anything besides onCreate()/onStart() or onResume() Oct 30 17:41:25 I am now wondering if I need to do something else outside the activity lifecycle Oct 30 17:41:45 well those calls happen once or n times Oct 30 17:41:54 but not constant Oct 30 17:42:56 hi guys, is there a way to ensure that only one async task gets executed? Oct 30 17:43:35 for instance, i have a button that triggest a request to a server and if the user clicks it three times, i don't want it to launch three requests, i want it to launch and only after the request is done should he be able to perform another one Oct 30 17:43:51 so for constant, I think I would need background service? Oct 30 17:43:58 How do I make it constant? Oct 30 17:44:10 Mugwump101 have you read what a service is ? Oct 30 17:44:13 loin disable the button until a response or error comes back ? Oct 30 17:44:33 or ignore subsequent clicks Oct 30 17:44:59 g00s, the button is a menu button, it doesn't seem like the button is activated, it doesn't exist in onCreate or onStart or onResum Oct 30 17:45:11 so i don't know when it gets created, but not when i need it Oct 30 17:45:45 loin store a reference to the Menu or MenuItem and enable or disable it when you want Oct 30 17:46:03 (from onCreateXXXMenu) Oct 30 17:46:17 tricknology was it you on about logo/app icon sh*t yesterday ? Oct 30 17:46:19 g00s, i can't store the reference because onCreatexxxMenu is not executed when the application is first started Oct 30 17:46:22 i used checkbox and notifyDataSetChanged(). With (if value is 0, uncheck) and value is 0, i cannot check the box as it unchecks itself. any ideas? (checking the box is suppose to update the value) Oct 30 17:46:28 I'm working on building android. If I make changes do I have to run make clean && make again or can I just run make ( USE_CCACHE=1 ) Oct 30 17:46:32 so the server requests starts and the response comes before that button is even created Oct 30 17:46:53 loin ok, so then in onPrepareOptionsMenu check if you are doing stuff Oct 30 17:47:21 I should be in android-root?? Oct 30 17:47:43 deadmund: yes Oct 30 17:48:09 g00s, thanks Oct 30 17:48:43 StingRay_, yes Oct 30 17:49:50 StingRay_, Can you give me a hint on what you are trying to spell out for me? Oct 30 17:50:10 you have no idea what to use a service for Oct 30 17:50:32 yes I do Oct 30 17:50:44 I can have an alarmservice to set out notifications Oct 30 17:50:49 at certain times Oct 30 17:50:50 that I set Oct 30 17:51:00 that is one example Oct 30 17:51:04 ok but you want to use a service to update time on-screen ? Oct 30 17:51:33 just an idea. I don't think I need it but I'm not sure where else to look from now Oct 30 17:52:05 textClock Oct 30 17:52:19 textView + Post Runnable Oct 30 17:54:42 ohh I didn't know TextClock was a widget? Oct 30 17:54:58 I can use TextView and have a runnable too hm Oct 30 17:55:11 if I use TextClock, then the background work is taken care for me? Oct 30 17:58:50 ok thanks I will try Oct 30 18:00:04 hello, I have an android app that uses a native lib through JNI. I have debug symbols for the native lib, is there a way I can set breakpoint inside native code when launching the Java app? Oct 30 18:00:23 without building the native lib itself from Eclipse Oct 30 18:00:44 StingRay_ maybe, me and TactivalJoker Oct 30 18:01:08 holy fk, how did you do that ? Oct 30 18:01:15 or did he join then you said that ? Oct 30 18:01:20 haha I summoned him Oct 30 18:01:30 sup TacticalJoke? Oct 30 18:01:38 g00s: what did you mean by you think its the platform. Can you elaborate on that? Im banging my head on a wall here with nowhere to look. Oct 30 18:02:13 You now need a geature graphic 1024x500 and a 80 word short description Oct 30 18:02:22 but that’s kind of old news Oct 30 18:02:33 80 char* Oct 30 18:02:48 But you don;t need the tablet screen shots Oct 30 18:03:21 TacticalJoke did you bring up app icons and sh*t yesterday ? Oct 30 18:03:50 Hey, tricknology. Yeah, StingRay_. Oct 30 18:04:00 How did you summon me? lol Oct 30 18:04:39 ah right…. TacticalJoke fk u!! for some reason after that… I started thinking, and all I done today is piss around with re-designs of my dam app icon!!! Oct 30 18:05:06 bahaaha Oct 30 18:05:28 I get a graphic designer to do that, not my forté Oct 30 18:05:42 I’ll try and bust some MS paint iconography Oct 30 18:05:52 I think I have gone metrosexual on it's ass….that is to say, android L :) Oct 30 18:06:09 Metro is in Oct 30 18:06:40 http://goo.gl/B94auV Oct 30 18:06:54 back one is old…front is where I am at currently Oct 30 18:07:04 jesus, I need to stop and do some work! Oct 30 18:07:38 Wow, nice work… Oct 30 18:07:39 what are you working on? Oct 30 18:09:27 my fking app Icon that I should not be…but TacticalJoke made me Oct 30 18:09:28 anyone here work with BLE? I am trying to get my service running Oct 30 18:09:47 I seem to have more power than I realise. Oct 30 18:10:00 *strokes cat* Oct 30 18:10:00 g00s is I think Oct 30 18:10:00 lol Oct 30 18:10:09 jareddic Oct 30 18:10:30 but he is not here.. Oct 30 18:10:31 thanks tricknology Oct 30 18:10:40 maybe in a few hours Oct 30 18:10:41 yep, ive spoken to him during night Oct 30 18:10:48 its morning for me Oct 30 18:10:54 I have BT exp but not BLE Oct 30 18:11:08 I got BT working, and trying to convert my code to BLE :( Oct 30 18:11:24 ah, from what I’ve seen and heard it’s quite different Oct 30 18:11:36 any way to ask the device if it is BLE capable? Oct 30 18:11:49 it is, but the difficulties im having is that i cannot start the service with bindService Oct 30 18:12:55 is onServiceConnected() being called? Oct 30 18:13:01 nope Oct 30 18:13:07 but i get no error Oct 30 18:13:24 you using the wrong intent? Oct 30 18:13:29 https://github.com/jareddlc/TurquoiseBicuspid/blob/master/TurquoiseBicuspid/src/com/jareddlc/turquoisebicuspid/SettingsActivity.java#L131 Oct 30 18:13:32 there is my code Oct 30 18:14:09 sorry, not well versed in services :/ I’ve used it once to listen to SMS Oct 30 18:14:30 yep, same here. no problem Oct 30 18:16:13 Dem anonymous classes tho. ;o Oct 30 18:16:30 on line 131, why not use new Intent(this,this)? Oct 30 18:16:37 haha TactivalJoke Oct 30 18:16:43 TactivalJoke* Oct 30 18:16:49 wahtever. Oct 30 18:17:13 im using a preferenceFragement, not an activity Oct 30 18:17:20 eclipse complained about using this Oct 30 18:17:42 hmm Oct 30 18:17:45 keep in mind im newish to android framework Oct 30 18:17:54 I’m newish to fragments Oct 30 18:18:17 I decided to do this way so i can avoid UI Oct 30 18:18:25 and just use the default settings view Oct 30 18:18:28 check this: http://stackoverflow.com/questions/16404827/binding-a-custom-preference-with-preferencefragment Oct 30 18:18:37 but looks like i made wrong decision Oct 30 18:19:03 oh you do this Oct 30 18:19:18 how do i recreate an optionsmenu which was defined in a Fragment ? Oct 30 18:20:05 and that guy has 5000+ downloads with a couple of pshoped pics of putin dead and russia destroyed. neat Oct 30 18:21:21 zylinx: call invalidateOptionsMenu which will call onCreateOptionsMenu again Oct 30 18:22:15 JakeWharton: i have hasOptionsMenu() in the onCreate() of the Fragment, and i have tried getActivity().invalidateOptionsMenu() but it does not work, i think it calls the Activities onCreateOptionsMenu which does not exist in my case Oct 30 18:22:17 or onprepare, right? Oct 30 18:22:23 onprepareoptinosmenu Oct 30 18:22:35 invalide calls create again Oct 30 18:22:43 not bad Oct 30 18:22:46 hasOptionsMenu(true) * Oct 30 18:22:55 "setHasOptionsMenu(true);"? Oct 30 18:23:06 yes Oct 30 18:23:07 sorry Oct 30 18:24:01 i have spent the good half of a day on stackoverflow trying to figure this one out :/ Oct 30 18:26:08 i am not using onprepareoptionsmenu, is that something i should look into ? Oct 30 18:26:43 You shouldn't need that. Oct 30 18:29:39 If you have "setHasOptionsMenu(true);" in Fragment.onCreate, and you're calling getActivity().invalidateOptionsMenu, I'd expect everything to work. Oct 30 18:30:59 :/ Oct 30 18:31:07 Maybe post code? Oct 30 18:31:29 yes, here. i cut out allot of irrelevant stuff Oct 30 18:31:39 https://www.irccloud.com/pastebin/owAmYraV Oct 30 18:32:35 There's no "invalidateOptionsMenu()" in that code. Did you forget something? Oct 30 18:33:09 yes sorry, inside if(req.getReturnCode() == 100){ Oct 30 18:33:13 at the bottom Oct 30 18:35:08 zylinx: Have you tested whether that code path is even being executed? It might help to use a few Log.d and check LogCat to see what's going on. Oct 30 18:35:16 Log.d calls* Oct 30 18:36:15 i use Log.d allot, invalidateOptionsMenu() is being called but onCreateOptionsMenu() is not Oct 30 18:40:52 I'd probably just comment everything out and verify that "getActivity().invalidateOptionsMenu();" works in the simplest of cases. Not sure what else to suggest. Oct 30 18:41:10 what happens if you use the super class and return super.onCreateOptionsMenu with your inflated menu? Oct 30 18:42:56 Is there any place that documents exactly what the OS does when an app crashes? Or is this too big of a topic due to different types of crashes? Oct 30 18:43:25 oh well ill get some sleep Oct 30 18:49:41 ugh my tablet died :s and the micro usb socket is so screwed on this thing i can't get it to charge without hours of fiddling. $60 for a replacement :( Oct 30 18:50:32 My nexus 7 is stuck at the google screen unlocked icon. I can’t get it to do anything. Any ideas? Oct 30 18:50:53 mylord, this is the dev channel Oct 30 18:50:56 go halves with zylinx Oct 30 18:51:07 mylord, reboot it? Oct 30 18:51:33 pifon1: doesn’t help. holding power just turns off screen. click power brings same up again. Oct 30 18:51:52 i was trying to upgrade to 4.4, doing fastbook, unlock boatloader, etc Oct 30 18:51:52 hold it down for longer Oct 30 18:51:53 lol Oct 30 18:51:58 uh oh Oct 30 18:52:12 Question about animation. If I use a simple AnimationUtils.loadAnimation to animate a view, why doesn't the view respond when I try to use it at the new location? Oct 30 18:52:40 I'm guessing it doesn't physically move, just appears to on screen Oct 30 18:52:44 mylord, http://www.itworld.com/article/2703455/mobile/force-restart-your-android-phone.html Oct 30 18:52:47 Anyway to get it to physically move? Oct 30 18:58:24 pifon1: that worked, thx: ) Oct 30 18:58:38 no problem, i am great Oct 30 18:59:26 this never finishes: fastboot flash boot system.img // just shows: sending 'system' (740284 KB)... Oct 30 18:59:49 define never Oct 30 18:59:57 LOLWUT Oct 30 19:00:00 linearlayout can show dividers? Oct 30 19:00:04 WHERE HAVE I BEEN LOL Oct 30 19:00:32 JacobTabek: waited about 20 min Oct 30 19:01:08 fastboot flash boot userdata.img // gives: FAILED (remote: (InvalidSize)) Oct 30 19:01:23 mylord, try reading/understanding before blindly following something that leaves you deviceless, asking for help in an app dev channel Oct 30 19:02:18 flash boot userdata? that makes sense Oct 30 19:02:22 its funny that i dev for android yet never have owned an android device Oct 30 19:02:48 pifon1: You steal them? :D Oct 30 19:03:00 thats classified Oct 30 19:03:10 emulator Oct 30 19:03:47 IMO, you can't get the same "app feel" on the emulator. Oct 30 19:03:52 Not sure how you do it. :) Oct 30 19:04:13 my sister owns an android i use that sometimes for testing Oct 30 19:04:19 i own an iphone Oct 30 19:04:37 from before i started android dev Oct 30 19:05:44 whatitis: trying to find some info on it Oct 30 19:05:50 is this a sensible command? fastboot flash system system.img Oct 30 19:05:59 why won’t it return (after 10+ minutes)? Oct 30 19:06:17 i just want to update to android 4.4 Oct 30 19:06:26 Do any 4.3+ devices exist which do not support BTLE? Oct 30 19:08:17 whatitis: i read and followed this: https://developers.google.com/android/nexus/images Oct 30 19:08:22 Is it sensible to make my own "Collections" class which (like java.util.Collections) contains "Collection utility" methods? I know it's possible, but is it good practice? Oct 30 19:08:37 I'm concerned that the reader might read "Collections.foo" and get confused about whether that exists in the JDK or not. Oct 30 19:11:04 Do any 4.3+ devices exist which do not support BTLE? Clarification: It may be due to megashitty OEM software or a hardware restriction Oct 30 19:11:29 TacticalJoke: in general, I would avoid naming collisions with standard classes like that Oct 30 19:11:39 I guess I could call it "MyCollections", but I hate the "My" prefix. Reminds me of an old VB6 book. Oct 30 19:11:41 I would tend to go with something like CollectionUtils or something Oct 30 19:11:42 K. Oct 30 19:11:55 guava used Collections2, iirc Oct 30 19:12:01 Oh, interesting. Oct 30 19:12:08 so Collections3 would be good Oct 30 19:12:11 lol Oct 30 19:12:11 O.o Oct 30 19:12:13 http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/Collections2.html Oct 30 19:12:16 Was just thinking that. Oct 30 19:12:43 Collections++; Oct 30 19:13:10 some area guy may already have Collections3 already; better be safe and go with Collections2000 Oct 30 19:13:15 Collections$ Oct 30 19:13:17 :) Oct 30 19:13:20 I sometimes get confused about when to use -Hlper and when to use -Utils. Oct 30 19:13:25 -Helper* Oct 30 19:13:34 (yes, $ is a valid character for classes) Oct 30 19:13:38 TacticalJoke you are obsessive compulsive :) Oct 30 19:13:40 thats ok, i am too :D Oct 30 19:13:48 g00s: It ru(i)ns my life. Oct 30 19:14:04 My code has to be completely perfect (as far as I can tell) before I rebase/merge/whatever with upstream. Oct 30 19:14:05 e.g. https://bitbucket.org/adamldavis/dollar/wiki/Home Oct 30 19:14:15 TacticalJoke whatever you decide, you can always change it later in refactoring ;) Oct 30 19:14:16 Every variable name has to be exactly right, etc. Oct 30 19:14:19 True. lol Oct 30 19:15:34 My current commit is being held back by my not knowing whether to call a View being returned by LayoutInflater.inflate "view" or "root" or "layoutRoot" or some combination. (As an example.) Oct 30 19:15:59 JesusFreke: God, that's scary. Reminds me of JavaScript. Oct 30 19:17:50 g00s: It's funny, though, because I do end up wildly refactoring "perfect" code weeks later. Oct 30 19:17:56 So I waste loads of time. Oct 30 19:18:17 But I literally could not sleep unless every variable name was perfect. Oct 30 19:18:42 yeah, i'm like that too i guess. i release the code when its beautiful. not very practical :) Oct 30 19:18:48 Right. lol Oct 30 19:19:09 I actually care more about the beauty of the code than that of my app. That concerns me, but I can't help it. Oct 30 19:19:45 i remember the old saying, "write code as if it would be maintained by a murderous psychopath who knew where you lived" Oct 30 19:19:59 g00s: lol Oct 30 19:20:11 just read this - http://blog.codinghorror.com/new-programming-jargon/ Oct 30 19:20:12 g00s: We will be among the few survivors. Oct 30 19:20:16 great read for that Oct 30 19:21:43 yeah thats great; A Report Oct 30 19:21:45 oops, A Duck Oct 30 19:22:11 I don't like how he copied that image from Code Complete 2. :[ Oct 30 19:22:16 Cannot unsee. Oct 30 19:22:20 there is also a blog post from the late 90s on how to write unmaintainable code Oct 30 19:22:28 (Cannot unsee the site's use, not the awesome book's use.) Oct 30 19:23:00 g00s, TacticalJoke: https://www.thc.org/root/phun/unmaintain.html Oct 30 19:23:04 this is pure gold Oct 30 19:23:50 i think i've seen that one Oct 30 19:23:57 God, Hungarian Notation. Oct 30 19:24:08 it's hilerious Oct 30 19:24:11 actually the OCD really gets me in maning my resources, like colors, IDs, etc Oct 30 19:24:16 i cried half way through Oct 30 19:24:25 g00s: I can't stand activity_main. Gotta be main_activity. :) Oct 30 19:24:33 type_thing or thing_type, etc lol Oct 30 19:24:37 TacticalJoke: WRONG! Oct 30 19:24:48 TacticalJoke yeah thats wrong, time to refactor Oct 30 19:24:53 lol Oct 30 19:24:53 :D Oct 30 19:24:53 must be a hierarchy Oct 30 19:24:59 Wouldn't it be "activities_main"? Oct 30 19:25:02 If it were a hierarchy thing. Oct 30 19:25:08 Activities.getMain(); Oct 30 19:25:12 if I want to output a debug string I can see with adb would I use System.out.println ? Oct 30 19:25:15 no no no no no Oct 30 19:25:29 ChrisUK: Log.v Oct 30 19:25:35 ChrisUK how did you miss the part about logcat Oct 30 19:25:49 thepoosh: But human readability. :[ Oct 30 19:26:00 stupid humans and their needs Oct 30 19:26:02 "Let's inflate activity_main." <-- fail Oct 30 19:26:05 does google now have a public-usable API? Oct 30 19:26:20 The0x539: For what? Oct 30 19:26:25 Oh. Oct 30 19:26:27 Google Now. Oct 30 19:26:31 TacticalJoke: reading and displaying cards Oct 30 19:26:31 No idea. Oct 30 19:26:37 oh Oct 30 19:26:38 lol Oct 30 19:26:39 :/ Oct 30 19:26:40 I thought you meant "Does Google yet have...". Oct 30 19:26:41 lol Oct 30 19:26:50 Nope! Oct 30 19:27:07 shame if it doesn't Oct 30 19:27:19 The0x539: no - http://stackoverflow.com/a/13221356/1056359 Oct 30 19:27:25 sure sorry I mean adb logcat Oct 30 19:27:39 I have only used it with adb so thought they were the same thing Oct 30 19:27:44 :) Oct 30 19:27:53 ChrisUK: why not ddms? Oct 30 19:27:55 thepoosh: not what I'm looking for Oct 30 19:27:57 aka monitor Oct 30 19:28:00 well Oct 30 19:28:02 :S Oct 30 19:28:09 that's write Oct 30 19:28:09 is that better? Oct 30 19:28:12 I just want to read Oct 30 19:28:30 g00s: I'm happy Oct 30 19:28:39 Robert Scoble gave us a good review Oct 30 19:29:54 thepoosh oh, link ? Oct 30 19:30:08 https://www.facebook.com/RobertScoble/posts/10152804452244655 Oct 30 19:30:44 he got my CEO drunk Oct 30 19:30:56 also, we are SO jewish Oct 30 19:31:08 never noticed how much until i wathced this Oct 30 19:31:13 *watched Oct 30 19:31:49 nice Oct 30 19:31:59 yep Oct 30 19:31:59 It's kinda irksome that the general Java convention uses THIS_STYLE for enum values. Oct 30 19:32:03 I hate that shouty thing. Oct 30 19:32:05 no, search engines, I do not want to make google now cards for my app Oct 30 19:32:11 I want to display them Oct 30 19:32:17 TacticalJoke: you're so classy Oct 30 19:32:18 Though I'm glad Java uses a decent bracing style. Oct 30 19:32:38 TacticalJoke: don't start that argument Oct 30 19:32:43 thepoosh so did you guys just launch ? Oct 30 19:32:46 i've been through it too many times Oct 30 19:33:01 g00s: yeah, android came out last June (a year ago) Oct 30 19:33:04 hey all Oct 30 19:33:20 Hay. Oct 30 19:33:28 hi Oct 30 19:33:47 I'm thinking of doing a name.endsWith('s') to add ' if user inserts a name that ends with an s, but what other letters are like that? I assume 'x'? Oct 30 19:33:53 i'm lusting after this Microsoft Band. suddelnly all the android watches look like crap Oct 30 19:33:56 So I dunno what to call my utility class. It contains static methods that do stuff with EditTexts. It's currently called EditTextHelper. Oct 30 19:34:02 in my tutorial books, it often refers to a widget by id (R.id.somthing) what does the R stand for? Oct 30 19:34:11 It contains methods such as "setTextAndFocusEnd". Oct 30 19:34:15 I cant figure out what to google to find out :) Oct 30 19:34:20 oh well Oct 30 19:34:30 TacticalJoke: why staticand not a singleton? Oct 30 19:34:35 static and Oct 30 19:34:53 There's no need for state, really. Oct 30 19:34:59 the follow-up question is how I should test for multiple characters instead of the endsWith('s') Oct 30 19:35:13 Just "EditTextHelper.setTextAndFocusEnd(editText, text);". Oct 30 19:35:18 hmmm Oct 30 19:35:47 "EditTextHelper.getInstance(Context ctx)setTextAndFocusEnd(editText, text);" Oct 30 19:35:51 much better Oct 30 19:35:52 :D Oct 30 19:37:27 That's scary. Especially because I hate singletons in almost all cases. :D Oct 30 19:37:51 why? Oct 30 19:38:46 They violate the SRP. They are messy biolerplate in an otherwise-clean class. It's hard to tell what is being instantiated, where, and in which order. This last fact can lead to various subtle bugs in some situations. Oct 30 19:38:51 boilerplate* Oct 30 19:39:14 hmmmm Oct 30 19:39:53 dunno, some things have to be a single instance Oct 30 19:40:04 In that case, my app just creates a single instance. :D Oct 30 19:40:12 Probably in a "Globals" class. As a static member. Oct 30 19:40:20 That's not perfect, but I prefer it, personally. Oct 30 19:41:20 private constructors are a must, especially when exporting apis Oct 30 19:41:23 I guess singletons (if done right) give you lazy loading. Oct 30 19:41:47 lazy loading is a good way of creating latancy Oct 30 19:41:51 i hate them Oct 30 19:43:52 thepoosh: Isn't it enough to say "Do not instantiate this class"? I dunno. Maybe sometimes this could be awkward. Oct 30 19:44:04 hmmm Oct 30 19:44:09 sometimes it's a must Oct 30 19:44:41 we have a broadcasting SDK and allowing more than one broadcaster will for sure not release the camera and crash the phone Oct 30 19:44:47 even force reboot Oct 30 19:45:11 What about a package-private constructor? Oct 30 19:45:33 aka protected? Oct 30 19:45:35 Though I'm not sure. I've not done this exact thing you're describing. Oct 30 19:45:39 what is the point? Oct 30 19:46:06 Protected is more limiting, isn't it? Oct 30 19:46:39 protected means package and inheritance visibility Oct 30 19:46:49 if i recall correctly the java Oct 30 19:47:55 yep Oct 30 19:48:16 yay for me Oct 30 19:48:22 wasn't sure about the package Oct 30 19:48:35 Wow, that's kinda unexpected. Oct 30 19:48:50 ? Oct 30 19:48:55 Though it explains why you can avoid synthetic accessors (relating to nested classes) by making members protected. Oct 30 19:49:13 thepoosh: I wouldn't expect 'protected' to give access to other classes in the same package. Oct 30 19:49:29 it doesn't work that way in cpp Oct 30 19:49:36 but java is weird Oct 30 19:49:45 I'll have to google this for an hour and see all the drama surrounding it. :D Oct 30 19:50:01 let me know what happened Oct 30 19:51:50 hello... I'm still stuck w/ updating sqlite. can anyone give me a hint on how to proceed? I'm using checkbox to update a value in the table, however, the value only updates when I restart the app. Oct 30 19:52:29 tried using notifyDataSetChanged(). But with (if value is 0, check), the box cannot be unchecked, since it just checks itself. I assume this is because the value hasn't update yet.. is there something I'm missing? I thought update is suppose to be immediate. Oct 30 19:53:31 hello guys, I have a switch in my app, the opens a facebook login, if the user cancel it, the switch stil on the "on" state, someone know how make it come back to off? a easyway Oct 30 19:54:14 PsciCOdeliXHAt: check for an existing session Oct 30 19:55:12 ok Oct 30 19:57:07 All the best SO questions get closed. Oct 30 19:57:24 Just like all the tastiest food is bad for you. Oct 30 19:59:48 TacticalJoke: the opinion based questions and questions that are used as upvote traps get closed Oct 30 20:00:50 hm.. no1 has any idea? Oct 30 20:02:14 I sometimes think an SO question could save humanity from extinction and still get "closed as not constructive". Oct 30 20:02:49 :S Oct 30 20:02:59 all it requires is three assholes Oct 30 20:03:11 so i know this is the wrong chan.. but.. im going to ask anyways in hopes you guys dont behead me.. please.. its for a lady whos son died Oct 30 20:03:12 Long story short, Samsung galaxy s3 i747(at&t), keypad is locked and son died - no one knows it. Tried on *nix box with heimdall with to no avail to flash recovery with Clockwork. Everything said it worked fine on the heimdall end, and the phone reboots. Device put back into recovery mode still loads android system recovery 3e.. the stock recovery Oct 30 20:03:27 flashed with odin.. but did not take either Oct 30 20:03:33 headrx 'you know this is the wrong chan, but fuck you guys anyhow" lol Oct 30 20:04:08 na man, its just that its important and im on time deadline to get it to her before funeral at 5 Pm !! Oct 30 20:04:18 your funeral ? Oct 30 20:04:22 her sons Oct 30 20:04:36 try #nadoird-root Oct 30 20:04:37 she wants the pics and vids to put some good ones for a slideshow Oct 30 20:04:41 #android-root Oct 30 20:04:43 im on there Oct 30 20:04:44 and asked Oct 30 20:04:47 oh well Oct 30 20:04:51 and no one seems to be alive Oct 30 20:04:55 g00s nadoird... how in the heck Oct 30 20:05:03 mattblang haha Oct 30 20:05:07 but okay Oct 30 20:05:10 thanks Oct 30 20:05:12 alright, basic question then: when I run sqlite update query, is the value update immediate? Oct 30 20:05:26 when was java 1.6 support added to android again? froyo? or eclair? Oct 30 20:05:31 i understand, im goin to stay anyhow, once this is over with , i think i could learn alot from you guys Oct 30 20:05:46 Az15 sure, for practical purposes Oct 30 20:06:45 do yall think it is better to maintain a cursor in an activity for child fragments to use, or pass an ID around for the fragments to do their own lookup in the database? Oct 30 20:06:59 so if i update a value, and i use notifyDataSetChanged(), the view should be displaying the new value? Oct 30 20:07:02 let the fragments do their own thing Oct 30 20:07:06 mattblang ^^^ Oct 30 20:07:23 Az15 after a requery, yes Oct 30 20:07:29 api9 Oct 30 20:07:35 g00s is a lookup by id not slow enough to really effect anything? Oct 30 20:07:35 gingerbread Oct 30 20:07:57 Az15 are you using content providers & loaders Oct 30 20:08:25 loader ftfw! Oct 30 20:08:55 Az15 this isn't a trick question Oct 30 20:13:40 bummer, camera update doesn't have HDR for n7 Oct 30 20:13:49 must only be n5/n6 Oct 30 20:14:48 my n7 seems to have a focus hunting issue anyhow; probably would be a readblock to exposure bracketing Oct 30 20:16:36 i used neither, i was using an adapter. should i be using loaders? Oct 30 20:16:38 hehe http://www.androidpolice.com/2014/10/30/google-turns-design-inconsistency-ten-latest-round-navigation-drawers/ Oct 30 20:16:52 man i thought they were onto the consistence thing long ago Oct 30 20:17:23 g00s keep telling you, dont try and copy, ignore and do your own thing :) Oct 30 20:17:45 having said that I some how am in the middle of updating my logo to be more L like :( Oct 30 20:17:52 Az15 thats up to you; but if you aren't then you have to requery to get the updated values, then call notifyDatasetChanged Oct 30 20:18:30 i used to hate Cards but now they have guidelines, i have an idea for what they envision them for. i put the first Card in my app \o/ Oct 30 20:19:05 i see, i'll take a look at it. Thank you! Oct 30 20:21:31 I've never been a huge fan of Cards. I'll have to look. Oct 30 20:21:40 a single instance object is not a problem. but the “singleton” pattern as commonly implemented in java is crap Oct 30 20:21:41 g00s so check this out. Here is my setup, a FooActivity which changes out FooFragment in a ViewPager, and FooSomethingFragment, FooElseFragment that are child fragments to the FooFragment. I was thinking that I shouldn't be doing a database call in every single one, but I'm having trouble figuring out a good solution to just keep it in one place Oct 30 20:21:43 esp for testing Oct 30 20:21:51 Did you all see that Reddit post about the Material update of that Reddit app? People were going crazy with the praise. Oct 30 20:22:14 TacticalJoke sheep Oct 30 20:22:21 I saw the screenshots; it used Cards and it really didn't look good. Oct 30 20:22:26 So much wasted space. Oct 30 20:22:43 card are fine in context, but not for things like rss or max info displays Oct 30 20:22:53 where space on a mobile device is a premium Oct 30 20:23:20 and in many google apps now, wasted space has gone from 20% ish to 40%+ Oct 30 20:23:28 I used a Card as a bag for heterogenous information Oct 30 20:23:32 good for some things, really really not for others Oct 30 20:23:33 looks good Oct 30 20:23:50 I like them for heterogeneous info. Oct 30 20:24:12 and if they have lots of actions Oct 30 20:25:07 well I can tell you what comes after material Oct 30 20:25:19 mattblang i'm not sure for that situation Oct 30 20:25:25 or the driving factor anyways :) Oct 30 20:25:45 g00s I was thinking maybe I could do an Otto producer for at least the child fragments to get the job rather than doing another lookup Oct 30 20:25:45 mattblang did you not decide on activity for that ? Oct 30 20:25:47 God, why are websites today so freaking laggy. Oct 30 20:26:01 My Google Chrome tabs are bringing down my computer again. :[ Oct 30 20:26:10 mattblang and then just updating the fragment instances with erm, some update(myInfo) Oct 30 20:26:12 Here's the Reddit app that was updated to Material: https://play.google.com/store/apps/details?id=free.reddit.news&hl=en Oct 30 20:27:51 StingRay_ here is my problem with that. I'm doing a ViewPager in the Activity for the FooFragment, so I am getting a Cursor there. The ViewPager will move the cursor around for the cached fragments next to it. I could probably pass a position to the fragments that can callback to the Activity and move the cursor temporarily, but then I wondered if keeping a cursor alive in the Activity was a bad idea Oct 30 20:29:23 StingRay_ the callback in the Fragment would do something like, cache current cursor position, move to passed in position (which was passed to fragment onc reation), then move back. but not sure if that is a good idea Oct 30 20:29:50 mattblang I think you are going to have to decide Oct 30 20:30:02 but keeping a cursor alive is not a bad thing Oct 30 20:30:06 inside the actvity Oct 30 20:30:11 activity* Oct 30 20:30:21 as long as you manage it properly Oct 30 20:30:24 StingRay_ would you rather do that, or just do a database lookup by ID in each fragment? Oct 30 20:30:50 I dont know, depends on how I would design it Oct 30 20:30:58 it's not a black/white thing Oct 30 20:31:31 StingRay_ yeah, but I do feel like this wouldn't be an uncommon situation. Activity lets you view page through fragments, those fragments have their own compartments (tabs or whatever) Oct 30 20:31:50 StingRay_ Ideally I could set the Job in the Bundle, haha Oct 30 20:32:01 StingRay_ Job = Foo Oct 30 20:32:24 StingRay_ I don't realy want to manage the cursor or do repeated lookups lol Oct 30 20:33:01 well no1 but you knows the design and requirements Oct 30 20:33:23 if you HAVE to do repeat lookups cause the data changes you HAVE to Oct 30 20:33:35 if not then you dont… depends how you design it Oct 30 20:34:10 StingRay_ it is a detail page, so data isn't going to change Oct 30 20:34:50 StingRay_ one though was to make the first fragment a producer, then I guess its children could subscribe to get the Foo rather than doing another call to database Oct 30 20:34:59 wasn't totally sure if that would work Oct 30 20:35:04 a producer using Otto that is Oct 30 20:35:21 dunno, but I dont get why you dont just update the fragments with method call on them Oct 30 20:36:33 StingRay_ to do that I need to keep the Job cached somewhere, which is fine, but that is my problem trying to figure out Oct 30 20:36:41 sorry, Foo Oct 30 20:36:52 cached ? job? Oct 30 20:37:10 I assumed this was just data from a row in a cursor ? Oct 30 20:37:33 besides with an eventbus same applies Oct 30 20:37:42 producer would still need the data Oct 30 20:38:25 StingRay_ it is data from a cursor that represents a POJO Oct 30 20:42:08 StingRay_ I'm using ORM anyway. I could probably just keep a List in my Activity and just pass a position in the viewpager. then all fragments could just callback with a position to the List in the Activity Oct 30 20:44:49 anyone use ion to load animated gifs before? Oct 30 20:44:56 can you disable the animation for a specific request? Oct 30 20:45:07 what's the difference between stopLoading() and cancelLoading()? Oct 30 20:50:47 how to compare 2 ImageViews by their resources? (check for matching image-resource) Oct 30 20:55:12 set tags, compare em? Oct 30 20:58:04 can you guide me how to set tags them? because the ImageViews gets random resources and I need to compare them Oct 30 20:59:09 when you set the image resource, set a tag on the imageview, like maybe the resource id you are loading Oct 30 20:59:12 read the docs? it's really pretty simple Oct 30 20:59:50 Thank you, I will try that now :) Oct 30 21:00:28 every View has .setTag() and .getTag() as well as .findViewWithTag() and android:tag="..." Oct 30 21:02:58 thanks ravilov :) works! Oct 30 21:03:52 no problem. next time always consult the docs first. Oct 30 21:04:35 http://hanhuy-acra.appspot.com/public/com.hanhuy.android.irc.lite/94a43d559362b6d9ef40718a417c872abf7fc049 Oct 30 21:04:40 does anyone have any clue what might cause that crash Oct 30 21:07:08 i hate those ; all native code Oct 30 21:07:19 or framework Oct 30 21:08:22 https://bugzilla.mozilla.org/show_bug.cgi?id=886421 Oct 30 21:08:28 firefox has encountered the same thing Oct 30 21:08:58 same device, too Oct 30 21:09:09 wow, all LG devices Oct 30 21:10:08 vendor forks OP Oct 30 21:10:25 the line numbers don't even correspond in aosp Oct 30 21:10:39 checked out 4.1.2 from aosp and the line numbers aren't even remotely close Oct 30 21:10:51 of course not Oct 30 21:11:09 http://stackoverflow.com/questions/26545062/application-crash-when-pressing-the-menu-button Oct 30 21:11:16 someone on SO has run into the same thing w/o answers as well Oct 30 21:12:10 of course, firefox has since fixed it, probably, but it was probably a random change that fixed it Oct 30 21:12:30 probably caused by appcompat v21 and/or linking actionbardrawertoggle Oct 30 21:13:21 pfn just a long shot, are you doing anything with MenuItems and not using MenuItemCompat or wtf it is Oct 30 21:13:54 !ping Oct 30 21:13:58 i got a NPE from that Oct 30 21:15:05 but i was in the stack :) Oct 30 21:15:28 PING 1414703734 Oct 30 21:15:45 what is this Oct 30 21:19:52 What did Mugwump101 just do? Oct 30 21:20:01 Why did it ping everyone? Oct 30 21:20:14 ? Oct 30 21:20:24 Didn't it ping you? Oct 30 21:20:29 !ping ? Oct 30 21:20:33 no Oct 30 21:20:36 Nah, ctcp ping. Oct 30 21:21:07 it pinged no one in particular, just the channel Oct 30 21:21:22 But what and how? Oct 30 21:21:27 And why... Oct 30 21:21:56 PING Oct 30 21:22:03 more important, who cares Oct 30 21:22:05 anyone know how to get a oneplus one invite? Oct 30 21:22:13 I would be alright if that never happened again. Oct 30 21:22:20 * ravilov wonders if this worked Oct 30 21:22:29 canadiancow I had one, didn't use Oct 30 21:22:36 they expire you know Oct 30 21:22:41 ravilov: It did, you can rest easy. Oct 30 21:22:44 canadiancow I just asked one of their marketing people Oct 30 21:22:47 yeah i know, but now i need one :P Oct 30 21:22:50 MaxVandervelde, cool Oct 30 21:22:53 flan3002, that's how ;) Oct 30 21:22:56 Chainfire, who are their marketing people? :) Oct 30 21:22:59 /ctcp #android-dev ping Oct 30 21:23:09 eh Oct 30 21:23:10 please don't do that Oct 30 21:23:19 PING 1414704216 214446 Oct 30 21:23:23 you know I've actually met them and I can't remember their names Oct 30 21:23:27 ... what did I just do Oct 30 21:23:54 canadiancow, I'm not doing it Oct 30 21:23:56 Oops. Oct 30 21:24:05 you told everyone how to Oct 30 21:24:16 and not everyone here is as knowledgable as you about irc :P Oct 30 21:24:17 I thought it's common knowledge Oct 30 21:24:19 you just pinged the entire room Oct 30 21:24:30 channel Oct 30 21:24:35 also flan3002, don't execute arbitrary commands given to you by internet strangers Oct 30 21:24:38 that's just a bad idea in general Oct 30 21:24:40 canadiancow, I apologize Oct 30 21:24:52 flan3002, sudo rm -rf / Oct 30 21:24:54 ravilov: I knew you could ctcp nicks, but not channels. Oct 30 21:25:01 canadiancow: It didn't look dangerous. :P Oct 30 21:25:12 oh wait Oct 30 21:25:13 anyway Oct 30 21:25:16 flan3002, /quit Oct 30 21:25:17 :p Oct 30 21:25:19 You're missing a --no-preserve-root, no? Oct 30 21:25:31 flan3002, isn't that the default? Oct 30 21:25:37 ravilov: Wouldn't help, ZNC. Oct 30 21:25:53 psh Oct 30 21:26:04 ravilov: --preserve-root do not remove '/' (default) Oct 30 21:26:11 yeah yeah Oct 30 21:26:12 just checked Oct 30 21:26:15 That's what my rm says... Oct 30 21:26:44 eh, try running that command anyway ;) Oct 30 21:26:59 it's totally safe :p Oct 30 21:27:48 Nah, let's not. :P Oct 30 21:28:00 I already broke enough stuff today. Oct 30 21:28:33 a friend had some quite nice fun with this particular command some time ago Oct 30 21:29:03 he was trying to fix his linux install but it wasn't working, so he got sick of it and was just like, eh screw it, let's just start over Oct 30 21:29:08 so he ran the rm -rf / Oct 30 21:29:28 unfortunately he forgot he had some other filesystems mounted on /data and elsewhere... Oct 30 21:29:51 it was many many years ago when rm wasn't so considerate Oct 30 21:30:02 and it was not even his computer, but his friend's Oct 30 21:35:10 thats why smart people have their immutable parts of the fs read only, and crap like /tmp or /var as read+write :) Oct 30 21:35:12 Shutdown and rescue what's left. Oct 30 21:36:19 canadiancow just call them up and say the cow needs a phone ? Oct 30 21:36:33 g00s, /data hardly seems like a place that's likely to be r/o Oct 30 21:37:00 flan3002, nah, he just let it run, it was too late anyway. luckily the other guy was reasonable enough so they settled it over a couple of beers. Oct 30 21:38:02 g00s, you have their number? :P Oct 30 21:38:28 Chainfire you know contrib ben from xda ? Oct 30 21:38:36 he has a few invites I think Oct 30 21:38:58 hey guys, in case you're not aware i released not so long ago: https://play.google.com/store/apps/details?id=org.quet.android.wear.watchface.voidness if you want to have fun, go on ;) this is not a promotional link of course, just spreading some fun until it fades out (quickly), cause i'm feeling tired of answering all thse comments ;) Oct 30 21:39:05 (hint: it's a joke) Oct 30 21:45:23 I was thinking of using the following naming convention for utility classes: if it's strongly related to a particular class, just pluralise the class name (e.g., EditTexts.handyEditTextUtilityMethod); if it's not strongly related to a particular class, use -Utils (kinda like Android's TextUtils). If a name I'm thinking of using conflicts with Java or Android (e.g., my own version of Oct 30 21:45:24 Collections or TextUtils) then I can use the "My" prefix (e.g., MyCollections or MyTextUtils). (Though I'm not a huge fan of "My", so I might revise that.) Oct 30 21:45:31 omg Oct 30 21:46:15 TacticalJoke then call everything in our app My :) Oct 30 21:46:29 MyMyMy Oct 30 21:46:30 :D Oct 30 21:46:58 BuffaloBuffaloBuffaloBuffaloBuffaloBuffaloBuffaloBuffalo.java Oct 30 21:47:05 Actually, I hate the "My" thing. It's too noisy. Oct 30 21:47:14 It stands out way too much. Oct 30 21:47:25 MyCollections.fooBar(); // urgh Oct 30 21:47:36 how else would people know you, like, own your code? Oct 30 21:47:37 :p Oct 30 21:47:40 lol Oct 30 21:47:47 oh well, g00s nope Oct 30 21:47:52 I like it, but I try not to make that clear in the code itself. Oct 30 21:47:53 the harder part is not to choose a convention, but to stick with it Oct 30 21:48:04 Yeah, it's hard to avoid future issues. Oct 30 21:48:15 StingRay_ no I don't... but I got the invite, my sister wanted one of these 1+1's.. not personally interested Oct 30 21:48:26 Collections_TacticalJoke.fooBar Oct 30 21:48:46 TacticalJoke: I always cringe too when I see people prefixing stuff with My. It just... hurts. Oct 30 21:49:09 Yeah. Reminds me of n00b VB6 programmers. Oct 30 21:49:18 "MyClass". Oct 30 21:49:52 Dammit. Wish Java had an "import x.y.z.Foo as Bar" thing. Oct 30 21:49:56 C# has that. Oct 30 21:50:17 yeah, java is dumb Oct 30 21:50:26 import aliasing has been on my wishlist forever Oct 30 21:50:57 I'm guessing Scala has something like that. Oct 30 21:51:09 it does Oct 30 21:51:22 i have a preferenceActivity in which i create a preferenceFragment. If i rotate the device and change a preference i can see in debugMode that onSharedPreferenceChanged gets called twice. i think its because my fragment exists twice. how can i avoid this? Oct 30 21:51:23 import x.y.z.{Foo => Bar} Oct 30 21:51:30 Nice syntax. Oct 30 21:52:41 yeah i have to keep checking to make sure i'm using the right support Fragment vs platform Fragment Oct 30 21:53:05 Eclipse intellisense seems to enjoy me mixing those. Oct 30 21:57:01 I could always use a 'z' prefix: "Collectionz". :D Oct 30 21:57:10 Though it's kinda jarring. Oct 30 21:57:18 you could do C0ll3ctions too Oct 30 21:57:22 lol Oct 30 21:57:37 Or just a leet S: Collection5. Oct 30 21:58:03 TacticalJoke do you use git or hg ? Oct 30 21:58:28 i'm using hg and we are still waiting for a simple "add to ignore" function in AS ;( Oct 30 21:58:30 Mercurial for life! Oct 30 21:58:35 yey Oct 30 21:58:45 TacticalJoke maybe you would like git better, knowing that you can rewrite history to your perfection Oct 30 21:58:54 Yeah, you can do that in Mercurial. Oct 30 21:58:57 rewritten history should be forbidden Oct 30 21:59:01 heh Oct 30 21:59:02 buit's possible with mq extension Oct 30 21:59:05 but* Oct 30 21:59:07 It's just as powerful as Git, minus octopus merging (which Mercurial's author is strongly against). Oct 30 21:59:22 Mercurial's upcoming Evolve is gonna make this even better. Oct 30 21:59:27 i like bisect in hg :) Oct 30 21:59:42 Evolve will enable safe mutation of published history. Oct 30 21:59:43 good for finding bugs quickly with dichotomia Oct 30 22:00:01 TacticalJoke, you know you can have many packages inside of your code, right? Oct 30 22:00:28 ravilov: Right, but I don't like the idea of the reader reading "Collections.foo();" and thinking that it's part of the JDK. Oct 30 22:00:32 com.example.whatever.MainActivity.java, but then also com.example.whatever.utils.Awesome.java Oct 30 22:00:48 you can always fully qualify it :p Oct 30 22:00:59 com.example.joke.Collections.foo(); Oct 30 22:01:00 lol Oct 30 22:01:14 Fully qualify all the things. Oct 30 22:01:20 That'd make for some awesome code. Oct 30 22:01:26 next best thing to pure smali Oct 30 22:01:30 Import statements are for weak typists. Oct 30 22:03:01 weak != lazy Oct 30 22:03:04 i'm lazy :) Oct 30 22:03:09 http://s3-ec.buzzfed.com/static/2014-10/30/10/enhanced/webdr09/anigif_enhanced-buzz-12479-1414680759-39.gif Oct 30 22:04:06 adq, I see... and your nick, it probably stands for "adequate" :p Oct 30 22:04:45 nop sorry ^^ initials Oct 30 22:04:55 I code for lazy readers. Oct 30 22:05:06 And thinkers. lol Oct 30 22:05:11 Or drunk or tired thinkers. Oct 30 22:08:04 TacticalJoke, takes one to know one? ;) Oct 30 22:12:01 can I build an app targeting version X of android, but setting minimun sdk req to (lower)version Y, and selectively not use features that are not available in X is running a lower one? Oct 30 22:12:14 yes Oct 30 22:12:16 Sure. Oct 30 22:12:43 ggVGc but make sure Y >= 16 :) Oct 30 22:12:44 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD) { Oct 30 22:13:03 MY GOD IF ADB INTEGRATINO DIDNT SUCK Oct 30 22:13:07 I would be so happy Oct 30 22:13:08 UGHHH Oct 30 22:13:18 that fucking thing ... yeah Oct 30 22:13:26 g00s: Woah, 16 is kinda high. Oct 30 22:13:39 i have intelilj and AS open Oct 30 22:13:40 i have to like Oct 30 22:13:42 lol ppl nick with vim command Oct 30 22:13:49 reboot to get my debugger to attach Oct 30 22:14:09 Mine's 14 but I'm thinking of using 15. Oct 30 22:14:13 love this Oct 30 22:14:13 http://cl.ly/image/191w342Y1t0e Oct 30 22:14:16 JacobTabak in AS my lolcat stopps working all the time, and the launch dialog loses the device Oct 30 22:14:31 yeah. like 20 times a day Oct 30 22:14:35 JacobTabak: does Build.Version really give the current runtime version of the app? It sounds like it would be the build version? Oct 30 22:14:44 it does what you asked Oct 30 22:14:48 okay Oct 30 22:14:48 and what you'd want it to do Oct 30 22:14:52 i'm waiting to have n logcat (at least 2) windows at same time Oct 30 22:14:54 weird thing is that, when i reatart adb it doesn't start working right away. i have to then do 'adb logcat' to poke it some, and then AS lolcat starts going Oct 30 22:15:39 yeah either restarting adb, unplugging and repluggin the device, restarting IDE , or just rebooting if you get sick of trying everything else Oct 30 22:15:50 g00s, you have lolcats in your system?? Oct 30 22:15:54 well that explains a lot... Oct 30 22:15:57 :p Oct 30 22:15:58 g00s: why >= 16? I am specifically want this because I want to support version 9, but I am using one feature from 11(that is not crucial) Oct 30 22:16:30 i also have a ton of adb crashreporter logs with Exception Type: EXC_BAD_ACCESS (SIGBUS) Oct 30 22:16:41 thats probably dereferencing a null pointer Oct 30 22:16:47 piece of shit Oct 30 22:16:54 adq: I run multiple logcat all the time? Oct 30 22:16:57 is it a problem for you? Oct 30 22:17:21 ggVGc, how did you do? Oct 30 22:17:26 ggVGc use whatever you like; only you know the amount of pain you can tolerate Oct 30 22:17:27 i mean, in AS Oct 30 22:17:28 not in sheel Oct 30 22:17:30 shell* Oct 30 22:17:37 adq: I just run adb logcat in multiple terminas Oct 30 22:17:40 terminals* Oct 30 22:17:43 I see Oct 30 22:17:48 well, I only use terminal Oct 30 22:17:53 yeah indeed, i need it in AS to be able to go to the line directly Oct 30 22:18:06 otherwise thanks, despite I knew this partial solution ;) Oct 30 22:18:15 so i am looking at https://developer.android.com/about/dashboards/index.html Oct 30 22:18:25 "Data collected during a 7-day period ending on September 9, 2014" Oct 30 22:18:29 whats going on here ? Oct 30 22:18:32 still not up to date Oct 30 22:18:37 did google stop reporting it ? Oct 30 22:18:40 happens each month Oct 30 22:18:52 the date interval of collection varies across month Oct 30 22:18:54 if you monitor it Oct 30 22:19:04 g00s: in my experience, the lower version you target, the lower the pain Oct 30 22:19:18 because old APIs are stable Oct 30 22:19:30 ggVGc well, then minSdk 15 Oct 30 22:19:36 14 was fucked up Oct 30 22:19:42 (and nobody has it) Oct 30 22:19:59 11 sounds totally cool Oct 30 22:20:00 :p Oct 30 22:20:05 and nobody has 3.x Oct 30 22:20:15 and only ravilov is hanging on to 2.3.x Oct 30 22:20:18 I am targetting 11 atm, since that's the lowest functionality I need. And so far I have found two people running android 2.3 on phones that could handle my game, so I want to support it Oct 30 22:20:43 g00s, believe it or not, I've seen some folks over in #android trying to downgrade their old phones to 2.2 Oct 30 22:21:13 I don't understand the point of targeting a minimum API higher than what you are actually using Oct 30 22:21:16 sounds like a great customer Oct 30 22:21:39 ggVGc thats something you have to learn the hard way then :) Oct 30 22:21:55 g00s, exactly my point, that is why I generally stick to very low API versions Oct 30 22:22:00 but people here never understand Oct 30 22:22:17 and are always ready to mock Oct 30 22:22:18 I think g00s is saying the opposite? Oct 30 22:22:26 ravilov you don't even have an app in Play ... you are oblivious to the ecomomics of this Oct 30 22:22:50 g00s, I'm not oblivious at all, I know how it works, it just doesn't apply to me ;) Oct 30 22:22:53 when your ass is on the line, like you are supporting youtrself with apps in Play, its a bit different :D Oct 30 22:23:13 yeah I don't think I'd ever get myself in such a situation Oct 30 22:23:17 but I guess you never know Oct 30 22:23:33 surviving off of money made on Play is... that's not a life Oct 30 22:24:07 g00s: I guess it's different is using the GUI elements of the android SDK. My whole app is just a thing java wrapper around a C core rendering with opengl- Oct 30 22:24:21 if using* Oct 30 22:24:39 ggVGc yeah, but if you are using opengl than you get to contend with shitty GPUs and drivers Oct 30 22:24:43 so SDK quirks don't apply as much I think Oct 30 22:25:08 g00s: well, as I said, I have now come across 2 people with phones running 2.3, and those phones would run my game well Oct 30 22:25:11 hardware-wise Oct 30 22:25:30 ggVGc sounds like its ok then Oct 30 22:26:19 the only thing I am using from api 11 is to keep the opengl context alive after onPause Oct 30 22:26:36 I am still struggling to get my toolbar to be transparent. Oct 30 22:26:37 but if that is not available the textures will just be reloaded upon onResume anyway Oct 30 22:26:51 so might as well support pi 9 Oct 30 22:26:54 api* Oct 30 22:28:32 that minSdk should be is a boring topic; like eclipse vs AS - i should vow not to get dragged into that again :) Oct 30 22:29:42 ggVGc, if you're only using a very little part of a newer API but are otherwise fine with an older one, then I would suggest considering using reflection to access that small part of the newer API Oct 30 22:29:49 that's how I generally do it Oct 30 22:33:29 wow, the newest p4merge is quite pretty. they must have updated the Qt theme or something Oct 30 22:33:49 * g00s <3 p4merge Oct 30 22:39:48 I use SourceGear DiffMerge, but I should give Perforce a look again. Oct 30 22:40:03 you can get p4merge by itself Oct 30 22:40:13 diffmerge was clunky, wasn't it java ? Oct 30 22:40:53 the nicest one i ever saw was http://www.araxis.com/merge/index.en Oct 30 22:41:27 Hmm, not sure. Oct 30 22:42:22 That doesn't look bad. Oct 30 22:44:45 I used to use KDiff3, but it does some weird merging sometimes. Oct 30 22:45:14 It was overactive, IIRC. Oct 30 22:45:34 Does the TimerClass create an actual thread? Oct 30 22:45:40 Timer class Oct 30 22:46:51 Has anyone update to android studio 8.14? Oct 30 22:47:44 cph_dk yes Oct 30 22:48:02 perlsyntax yes Oct 30 22:48:05 yes for all ! Oct 30 22:48:21 g00s,You get error message? Oct 30 22:48:32 AS always gives me error messages Oct 30 22:48:33 i hope they fix it. Oct 30 22:48:36 its generous like that Oct 30 22:49:08 i download the android studio 8.6 and then i try to update it then i got some error. Oct 30 22:49:18 just get the full install Oct 30 22:49:31 there was an issue with the patching tool Oct 30 22:49:41 Hey there! On my laptop gradle is saying that it can't "Failed to find Recyclerview", while on my desktop it is no problem. got any ideas here? - got the latest android studio Oct 30 22:49:44 ok i understand now thanks. Oct 30 22:49:45 if it doesn't come with SDk anymore, DL that too Oct 30 22:50:11 i found the zip file:D and it works this time. Oct 30 22:50:16 thanks Oct 30 22:50:18 :D Oct 30 22:50:31 the the exact message is Error:Failed to find: com.android.support:recyclerview-v7:21.0.+ Oct 30 22:50:48 g00s So I dont give each of my sprites a Timer :) I use a global Timer for my Drawable list class (no it is not derived from the APIs Drawable class) Oct 30 22:50:59 compileSDKversion and targetSDKversion is 21 Oct 30 22:51:04 g00s,Hope they fix it. Oct 30 22:51:55 Saabzero you have recyclerview as a dependency ? Oct 30 22:52:18 You yse linux it sounds like? Oct 30 22:52:27 wrong channel Oct 30 22:52:37 yeah, got compile 'com.android.support:recyclerview-v7:21.0.+' in my dependencies in build.gradle Oct 30 22:53:46 g00s: and yes the app should uses recyclerview, but my laptop refuses to sync with gradle. as i said on the desktop this works ... Oct 30 22:54:15 no idea :( Oct 30 22:54:29 okay, thanks anyway Oct 30 22:54:29 if it builds from command line, and AS refuses to sync, re-import the project maybe Oct 30 22:55:43 good idea to try it via command line, why didn't i think about this :D Oct 30 22:57:09 I might just go with "Collections2". Simply can't think of anything better. Oct 30 22:57:38 Though the 2 looks so weird. Oct 30 22:57:40 TacticalJoke Hey, remember me? Wanna see how far my Tetris clone has come? I have a short youtube clip. Oct 30 22:57:53 cph_dk: Hey! Was wondering where you'd gone. :) Oct 30 22:57:56 Sure. Oct 30 22:58:12 TacticalJoke I was sort of scared away by angry people. Oct 30 22:58:18 writing "quit" Oct 30 22:58:20 cph_dk: Your name is so unrecognisable. lol Oct 30 22:58:25 Aww. Oct 30 22:58:36 TacticalJoke https://www.youtube.com/watch?v=JBuE62sa2fE Oct 30 22:58:36 Any good guides on setting up robolectric on an existing gradle project? Oct 30 22:59:11 That looks really nice. Oct 30 22:59:14 TacticalJoke The blocks/tiles are rendered from scractch, there is not bitmaps or anything being loaded. Oct 30 22:59:30 I like how it's close to the original. So many Tetris clones don't look like Tetris at all. Oct 30 22:59:50 The pinks look different and work really well. Oct 30 22:59:54 TacticalJoke Yes, it is very simple, the piece rotates when you tap it. Oct 30 23:00:12 I'm trying to see if my build.gradle and ansroid studio is properly setup. I want to view the manifest of my .apk. Whats the best way of doing so? Oct 30 23:00:13 I like that there's no "guide piece", too. That always felt like cheating. Oct 30 23:00:29 TacticalJoke Actually, the tiles get a random color for each run. Oct 30 23:00:36 cryptojuice: I heard it's not very easy to set up. Oct 30 23:00:42 TacticalJoke I am actually working on a "guide piece" algorithm :D Oct 30 23:00:47 Oh, randomly determined RGB values? Oct 30 23:00:50 cph_dk: lol Oct 30 23:01:02 Make sure users can turn it off. :) Oct 30 23:01:10 Just my opinion. Oct 30 23:01:26 TacticalJoke I am having some trouble getting the touch control to work smoothly eebough to make game really playable. Oct 30 23:02:01 @TacticalJoke: the documentation could use some work thats for sure. Oct 30 23:02:05 TacticalJoke It is around 8000 lines of Java atm. Oct 30 23:02:24 That's a lot for such a short time. Oct 30 23:02:33 TacticalJoke Short time? Oct 30 23:03:03 cryptojuice: It's not official supported () but there is a plugin that might work (). That's all I know. Oct 30 23:03:15 TacticalJoke You mean short coding time of the length of the clip:D? Oct 30 23:03:21 cph_dk: Short coding time. Oct 30 23:03:25 Thanks Oct 30 23:03:42 TacticalJoke I code very fast, but that also means A LOT of debugging :D Oct 30 23:05:45 TacticalJoke I have written my own sinus function based on a 16 term Taylor polynomium and a look up table gpt "a" that makes said polynomium sort of dynamic, it is more accurate than the sinus in my ti-89 Oct 30 23:05:57 If the number of bugs coming out is equal to the number of bugs going in, things are going well. Oct 30 23:06:00 is there a way to set color on a range to an edittext? Oct 30 23:06:31 “This word is blue”, with only blue being colored blue Oct 30 23:06:32 Nice. Sounds like a fun project. :) Oct 30 23:07:21 TacticalJoke How do you import XML layout into your buttons and stuff without actually using setContentView(r.layout.main)? Oct 30 23:07:22 Sixmsj: First thing I found in Google: http://stackoverflow.com/questions/10242274/assigning-text-color-to-text-in-edittext Oct 30 23:07:39 your google skills must be better than mine TacticalJoke Oct 30 23:07:42 :] Oct 30 23:08:26 TacticalJoke My next project is to make a clone of the Doom 1/2 engine. I can use some of my 2d egine code as they use scaled 2d sprites back then¨ Oct 30 23:08:45 woa ! http://www.propublica.org/article/somebodys-already-using-verizons-id-to-track-users Oct 30 23:09:00 cph_dk: I'm not sure how else to do it. I think the layouts are changed at compile time for efficiency, or something, so I'm not sure how to custom-parse them. Oct 30 23:11:10 anyone know how to calculate 'int % int' in glsl110? Oct 30 23:11:25 TacticalJoke But I am using setContentView to display my SUrfaceView derived class GameView, but I gote addContentView() to work once, but i cant remember how. Oct 30 23:12:31 I want to create my own GUI control, but it would be nice to import the XML layout ¨¨¨ Oct 30 23:14:17 I don't know, but I'd guess that Activity.setContentView is just a convenience method for acquiring a LayoutInflater and calling LayoutInflater.inflate. Oct 30 23:16:59 TacticalJoke Do you do any custom graphics code? Oct 30 23:17:40 TacticalJoke Then it is not convienient at all, it gets in the way of you rendering stuff, Oct 30 23:18:08 TacticalJoke I am thikn about just writing my on GUI controls Oct 30 23:19:21 TacticalJoke I have alredady writen the base class for a Java version of windows 32 windowing system, and that was not OOP back then, so my that makes the job a lot easier. Wanna se the code? it is pretty neat Oct 30 23:20:14 TacticalJoke Is basically a large child/parent tree. Oct 30 23:23:11 TacticalJoke The base class forms the basis for all my GUI control. The windows 32 windowing system was written in plain C but in very OOP kind of way, as close as one can get to OOP in plain C, but it it is pretty clever, I wonder if the newer versions of windows still use it as their primary windowing system. Oct 30 23:24:01 TacticalJoke You can still run and write windows programs that use the old win32api, but that could just be a secondary backwards comptatibke thing Oct 30 23:24:36 xmls are compiled before they are included in resources, and android has a built-in parser for those, pretty easy to use too Oct 30 23:25:10 this is nothing a little googling wouldn't tell you Oct 30 23:26:10 it's ironic how people are so eager to use and dev for google's os yet they seem to be afraid of using google's search engine Oct 30 23:27:11 Hi Oct 30 23:27:30 it's not about access, it's about being in the mood to digest and learn new stuff Oct 30 23:27:31 ravilov I have googled quite a lot, I cant seem to find a way around setContentView(R.layout.main) and then findViewByID(R.id.MyButton) and that interferes with my custom grahics stuff. How to access "fill" a my button object with layout data without doing that? Oct 30 23:28:06 huh? Oct 30 23:28:23 ravilov Be nice. Oct 30 23:28:25 :) Oct 30 23:28:37 that aha moment where they say, ohhh I get it now Oct 30 23:29:18 ravilov I will help myself since you are reluctant to :) Oct 30 23:30:21 you can't decide you want to do coding but then "not feel like" reading docs, shmooz, and even worse, bugging others to do your research for you instead Oct 30 23:30:56 you don't get to "not be in the mood" if you want to do development Oct 30 23:30:56 ravilov Chill out. Oct 30 23:31:10 cph_dk, why? Oct 30 23:31:16 This channel ia all people asking questions. Oct 30 23:32:06 ok maybe not mood, but mode Oct 30 23:32:28 ravilov I actually did google it thoroughly, but I could not way a that did not interfere with my rendering stuff. Oct 30 23:32:41 cph_dk, I wasn't even talking to you Oct 30 23:32:53 ravilov So I am not so bad:)? Oct 30 23:33:40 I'm trying to see if my build.gradle and ansroid studio is properly setup. I want to view the manifest of my .apk. Whats the best way of doing so? Oct 30 23:35:11 no, but you could still use google some more. you'll have to too because I an in no position to hold your hand through this (xml parsing). I tols you how it works and what you have to work with, the rest is up to you. Oct 30 23:35:35 told* Oct 30 23:36:40 what happened to , 'Lean on me, when you're not strong, I'll help you carry on... Oct 30 23:37:32 ravilov I wrote my entire 2d game lib befor I found this channel, so I am a good guy ;D Oct 30 23:37:46 that goes for my wife, not for just any random person on the internet, shmooz :p Oct 30 23:38:00 shmoon_ I would love to help you, if you doing stuff within my niche, Oct 30 23:39:24 cph_dk, hint: res/layout/ stuff is for android layouting ONLY, you can use xml to layout your gui too if you want but you have to put it elsewhere, like res/xml/ Oct 30 23:39:42 ok my problem is I figured out how to theme the PreferenceActivity but the children dialogs have weird colors because of it Oct 30 23:40:01 ravilov I used a few weeks to learn most of the android API and also most of Java. Tho I was proficient in C++ before that, Oct 30 23:40:16 how do I setTheme on the pop-up choice lists and stuff within the PreferenceActivity Oct 30 23:40:16 ravilov I am actually doing my own custom gui based on the win32api Oct 30 23:40:34 yeah so I kee- hearing Oct 30 23:40:36 ravilov I think that the android gui is hardly optimized for game dev Oct 30 23:40:42 win32 this, win32 that Oct 30 23:40:43 :p Oct 30 23:40:50 ravilov Sorry, I talk too much. Oct 30 23:41:10 no, you just mention win32 too much Oct 30 23:41:11 ravilov Wanna se my base class? You will be able to appreciate it, Oct 30 23:41:24 ravilov I think win32api is neat. Oct 30 23:41:50 yes but not right now, I'm actually supposed to be asleep Oct 30 23:41:54 ravilov Do they still use a version of it as primary windows system? Oct 30 23:42:06 I tried getListView().getItemAtPosition(x). but it doesn't give me setTheme Oct 30 23:42:14 ravilov Ok, can I add you to my notify thingy? Oct 30 23:43:43 shmooz I dont really use the android GUI stuff, I write my own, I only use the API for hardware interfacing, so i cant really help you Oct 30 23:44:25 ravilov How do I add you? Oct 30 23:46:58 obviously you are in love with your precious win32, I see nothing special about it honestly. also this is the wrong place to discuss it really. what notify thingy? Oct 30 23:49:21 cph_dk: do you use WINE or something ? Oct 30 23:49:26 ravilov Ok, win32api if off limits :) I want to add you to my notify list so I can see when you are on irc. Oct 30 23:49:44 er, no thanks Oct 30 23:50:15 shmoonz No, I write my GUI from scratch, using only the Android API for basic interfacing witht the GPU. Oct 30 23:50:39 ravilov oK, i REALIZE now that is sounded gay :) Oct 30 23:50:53 I don't get it, you write Win32 API from scratch on android ? Oct 30 23:51:01 more like crazy stalker :p Oct 30 23:51:32 ravilov I have people I talk to on that list. nothing stalky, anyway.... Oct 30 23:51:33 shmooz, no one said anything about win32 api. read more carefully. Oct 30 23:51:59 cph_dk, that's cool, I'll pass anyway Oct 30 23:52:23 shmooz I know the architecture of that windowing system, and I am writing a version for android, optimized for game dev, like the menu system in a game. Oct 30 23:53:25 shmooz I only use the Android API the interface the device's hardware. Oct 30 23:53:34 The rest is my own code. Oct 30 23:53:44 the = to Oct 30 23:54:14 cph_dk: what is the advantage of going that route ? Oct 30 23:54:40 he is madly in love with it, that's what :p Oct 30 23:54:56 shmooz For one, you know how you code works, so you dont need to ask API related questions EVER.- Oct 30 23:55:21 ravilov Not just the win32 thingy, i prefer to write my own code for everything Oct 30 23:55:55 you should probably start making your own OS then Oct 30 23:56:06 cph_dk: I was in the shower. Sure, I'll check out the code. Oct 30 23:56:08 And then you can optimize it for gaming and I love coding. Oct 30 23:56:12 You can look at Android's source, for most stuff, BTW. Oct 30 23:57:05 TacticalJoke, what's that? didn't hear you the first and second time Oct 30 23:57:06 ravilov I really want to do that actaullt, first my own macro assembler, use that to write a C compiler, and then use that to write a c++ compiler and use all three to write my own OS: Oct 30 23:57:07 :p Oct 30 23:57:29 ravilov: I'm confused. lol Oct 30 23:57:42 Did I repeat something? Oct 30 23:58:15 cph_dk, good luck with that, but you'll have to find another channel to discuss that, this is about android api only Oct 30 23:58:47 TacticalJoke, apparently not, my client just thought you did for a while Oct 30 23:59:10 crazy thing, this Oct 30 23:59:32 TacticalJoke There are more classes, but this is my "skeleton code" for my windowing system: http://pastebin.com/Sv52KFnia Oct 30 23:59:56 ravilov Ok, got it. Oct 31 00:00:15 this paste has been removed Oct 31 00:00:16 ravilov I did not ever ask a non Android API question, did I? Oct 31 00:00:19 nice code there Oct 31 00:00:32 ravilov You mean my code? Oct 31 00:00:37 yes Oct 31 00:00:45 it is not tbere btw Oct 31 00:00:53 did you check the link? Oct 31 00:01:22 ravilov Sarcasm does not work on IRC, or on autistic peoople :) Oct 31 00:01:57 and no, you didn't ask a non-android question as of yet, but you do keep discussing things that don't necessary belong here Oct 31 00:02:23 http://pastebin.com/wsRqChRn Oct 31 00:02:39 The paste was removed for some reason. Oct 31 00:02:45 you're autistic? interesting. I'kl try to be more literal factual and less metaphorical and sarcasric then Oct 31 00:02:54 I'll* Oct 31 00:03:02 ravilov I am sort of autistic. Oct 31 00:03:31 does the paste work now? Oct 31 00:03:57 yes Oct 31 00:04:26 may I suggest using enums instead of clunky series of int constants? Oct 31 00:04:30 Is it mostly a skeleton class, but one can deduct the architecture from it, there are several more classes. Oct 31 00:05:06 ravilov That will not work, I need them be ints and have well defined values form low level purposes. Oct 31 00:05:38 ravilov For example my flags are bitwise combined Oct 31 00:07:46 ravilov The window style flags uses bits so you combine flags with the OR operator, you can see that in the code, as HAS_EDGDE included i 3D_EDGE Oct 31 00:07:49 ub Oct 31 00:07:51 in Oct 31 00:08:07 I know about flags, I was referring to other int constanta Oct 31 00:08:08 s Oct 31 00:08:47 like ONTOUH, ONRELEASE, DRAGGED etc Oct 31 00:08:59 TOUCG* Oct 31 00:09:02 ugh Oct 31 00:09:10 stupid touch keyboard Oct 31 00:09:25 ravilov Ok, sorry, I simply dont like enums, I never used them in C/C++ either, int constant are well defined by me, I am very low lever :) Oct 31 00:09:43 ravilov I dislike touch keyboars too Oct 31 00:10:36 your choice. ints are very clunky and can easily lead to errors though, I hope you are aware of that Oct 31 00:11:03 ravilov I do have an android Q, how do you create a library that you can use in different apps? Oct 31 00:11:33 by telling your IDE you are making a library and not an app Oct 31 00:11:48 ravilov enums are too ill defined for my liking, maybe i am just weird :) Oct 31 00:12:28 you are. you should also realize enums in java are much different than enums in your c/c++ Oct 31 00:13:01 ravilov I did that, and I placed to source in the source of my current project, as a kind of appendage to current project, I should be able to figure it out Oct 31 00:13:33 yeah I've never made a lib myself so can't help you there Oct 31 00:13:39 ravilov What do you think about the codes beside that? Oct 31 00:13:53 ravilov I have made a 1000 libs Oct 31 00:14:41 ravilov I often "invent" that is a complete waste of time just for the fun of coding, Oct 31 00:14:48 stuff Oct 31 00:16:00 ravilov Anyway the class is not done, and it is only the base class, but ALL other GUI controls will be derived from it, Oct 31 00:16:44 by overiding the onDraw and the eventhandlers Oct 31 00:16:48 methods Oct 31 00:16:50 the code looks interesting. hard to say anything beyond that until I can see it on something that is not a phone Oct 31 00:17:16 ravilov Thanks :) Oct 31 00:17:22 yeah I got tbat much, sounds like a good approach Oct 31 00:17:28 that* Oct 31 00:17:34 Yes, I will work well. Oct 31 00:17:45 it Oct 31 00:18:16 anyway Oct 31 00:18:19 off I go Oct 31 00:18:36 ravilov And most of it will be portable, it will isolate API/hardware specific code. Oct 31 00:18:41 it = I Oct 31 00:21:00 I dont know yet how I will handle redraws, as it is now the goal is the only redraw what has changed, never anything else, that is what the InvalidateRectangle method is for, when called for a window all control within the rect will also have theirs rects invalidated¨' Oct 31 00:21:27 Maybe the ought to be two version "forced" redraw or "redraw if you need to" Oct 31 00:29:44 I think I'm just gonna use plurals (e.g., "Collections") and worry about name clashes if and when they happen. It seems to be the lesser evil. Oct 31 00:30:08 Disambiguating with "java.util.Collections.whatever" isn't so bad, I guess. Oct 31 00:32:31 And if someone sees Collections.weirdMember and thinks this is part of the JDK, that's not a big deal either. If I do things right, the members should essentially belong to java.util.Collections anyway. Oct 31 00:35:30 are there any good recyclerview item animator libs? Oct 31 00:50:39 What does it mean to get a segfault form FinalizerDaemon? Oct 31 00:53:48 God, I wish we could regex-search Google. Oct 31 00:54:01 If we could, we'd be practically omniscient. Oct 31 01:02:49 g00s u here? Oct 31 01:03:02 hm, gotta do some stuff Oct 31 01:03:04 :( Oct 31 01:03:12 need to figure out how to emit items at a specified interval Oct 31 01:03:22 timeInterval isnt what i want Oct 31 01:03:30 hoping theres a built in method you'd know about Oct 31 01:07:00 ah, buffer is what i want Oct 31 01:08:51 Is it good practice to say "DialogFragment dialog = new FooDialog();" (rather than "FooDialog dialog = new FooDialog();")? Oct 31 01:15:04 I think so Oct 31 01:17:00 K. Seems to be consistent. Oct 31 01:17:55 I can't remember the exact principle, but it's something to do with only using the level of abstraction that you need Oct 31 01:18:16 so unless the calling class needs something in FooDialog, it should just use DialogFragment Oct 31 01:19:01 Yeah. I think it's "programming to an interface" or something. Oct 31 01:19:10 no i guess not Oct 31 01:20:38 that sounds about right :) Oct 31 01:21:08 oh throttle, derp Oct 31 01:23:37 gah not throttle either Oct 31 01:23:38 why is life hard Oct 31 01:24:05 hard or just tedious? Oct 31 01:27:27 well i'm failing at finding what i want to do Oct 31 01:27:30 andi 'm sure its possible with rxjava Oct 31 01:27:35 i have a list and i want to emit one item every 80 ms Oct 31 01:27:45 i found a stupid way to do it using map and thread.sleep() but there has to be a better way Oct 31 01:28:26 in effect that is what you would be doing even if you set off a service thread or something Oct 31 01:28:55 I don't see a problem with it Oct 31 01:29:35 afaik sleep is not a blocking call or anything Oct 31 01:31:08 but i'm like 99% sure rxjava can do it in one line Oct 31 01:31:11 and my code is like 5 Oct 31 01:31:13 and its driving me nuts Oct 31 01:31:22 heh Oct 31 01:31:52 put it in a sub-routine :) Oct 31 01:37:28 ok i give up Oct 31 01:37:31 ugly Oct 31 01:51:43 JacobTabak nothing comes to mind atm Oct 31 01:51:53 ya now its worse because i want an interpolator too Oct 31 01:51:54 c'mon rxjava Oct 31 01:52:19 i'm sure its doable, and nicely too Oct 31 01:52:23 i think i've seen this example Oct 31 01:52:27 i think i'd have to write my own operator Oct 31 01:52:40 which i think i will do Oct 31 01:52:51 80ms is pretty fast to add any effect Oct 31 01:53:56 it's slow in this case Oct 31 01:54:42 what kind of list, just fifo, or just popping off items on a clear/dismiss Oct 31 01:55:03 its not the speed, its just not authentic motion Oct 31 01:55:06 http://cl.ly/image/3w213p1V0f1j Oct 31 01:55:14 (this is just a test project to play with appcompat) Oct 31 01:55:19 im not actually making a reddit app lol Oct 31 01:55:43 ah ic Oct 31 01:56:01 I thought you were removing Oct 31 01:56:15 JacobTabak http://www.nurkiewicz.com/2014/01/turning-twitter4j-into-rxjavas.html?view=sidebar Oct 31 01:56:42 i plan on using the same interpolator for removing Oct 31 01:56:46 .scheduleAtFixedRate() ? Oct 31 01:56:54 whats that g00s? Oct 31 01:56:56 that link Oct 31 01:57:02 its java performance page that came up Oct 31 01:57:08 i hate blogspot with all that stuid js Oct 31 01:57:30 g00s that would be good if i could interpolate it Oct 31 01:57:38 yeah seems to be a bug so on the left hand side, look for 'twitter rxjava' Oct 31 01:57:48 have to scroll down a little Oct 31 01:57:59 is it a book? Oct 31 01:58:20 that page is broken Oct 31 01:58:21 wo Oct 31 01:58:22 wow Oct 31 01:59:16 look for "Turning Twitter4J into RxJava's Observable" in the sidebar Oct 31 01:59:29 its some stupid blogspot shit Oct 31 02:03:15 What causes the FinalizerDaemon thread to cause a segfault? I'm trying to debug some jni/java code that seems to be causing it Oct 31 02:04:32 JacobTabak, how are you doing the animations now? does recyclerview have same property as listview with setting animateLayoutChanges Oct 31 02:04:49 theres a whole class for animations Oct 31 02:04:52 itemanimator Oct 31 02:05:07 but gl writing your own, i think everyones copying the base from recyclerviewlib Oct 31 02:38:39 JakeWharton do you know what eric meant here ? https://twitter.com/headinthebox/status/525824074984206337 Oct 31 02:39:43 fucking twitter :| Oct 31 02:40:17 Anyone knows why my Nexus5 isn't recognized by Eclipse/ADB in any of my PCs? Neither in my W8 Desktop nor my W8 Laptop. I have the 4.4W2 SDK and thus the new USB drivers, I can see the data inside the Nexus5 and I also have the Developer Mode and USB Debugging enabled but nothing Oct 31 02:41:30 can you still browse the phone using explorer Oct 31 02:41:35 does it show up in my computer? Oct 31 02:41:50 yes Oct 31 02:42:10 weird Oct 31 02:42:57 my s5 wasn't recognized by eclipse Oct 31 02:43:08 then suddenly one day i tried it again and it worked Oct 31 02:43:15 so dunno Oct 31 02:45:21 wow, Andy Rubin is leaving google Oct 31 02:45:32 there we go Oct 31 02:45:37 and wat is this, Source code to OSX 10.10 ? Oct 31 02:45:38 I downloaded http://developer.android.com/sdk/win-usb.html and installed it manually Oct 31 02:45:40 * g00s head explodes Oct 31 02:45:44 is it? Oct 31 02:45:49 * dysoco opens HackerNews Oct 31 02:46:15 I thought it was just the GPL code they had to opensource like the Coreutils Oct 31 02:47:05 oh wait it actually includes the XNU Kernel Oct 31 02:52:23 g00s: It means composition is valued over specialized operators. Oct 31 02:52:46 ok thanks Oct 31 02:53:26 i wasn't sure if he was regretting that ... **** ENDING LOGGING AT Fri Oct 31 02:59:59 2014