**** BEGIN LOGGING AT Thu Jun 18 02:59:59 2015 Jun 18 03:05:04 How did you stop the activity? Jun 18 03:12:57 called finish Jun 18 03:15:29 Hey, I am looking to do real time data transmission from Wear to my android phone. Jun 18 03:15:33 Currently I am using the Message API but it is very slow. Jun 18 03:15:37 Any advice? Jun 18 03:19:22 argyris: You're calling Activity.finish to work around a bug? Jun 18 03:19:48 You're simply creating a monster. Jun 18 03:21:15 Wrote a little app that gets any other app's string resources and grabs all the translations. Using it for a lot of common strings. Do you think I could run into any legal issues copying translations? Jun 18 03:23:17 Napalm: reading this helped https://developer.android.com/training/system-ui/immersive.html, didn't need a third party Jun 18 03:23:31 dude Jun 18 03:23:45 seriously.. you probably do want chris's code Jun 18 03:24:04 if you ever seal with SystemUi for multiple versions of Android you realise the issues Jun 18 03:24:10 *deal Jun 18 03:24:50 well it's doing what I want for now, I like to avoid libs Jun 18 03:25:45 shmooz: Here is what I do for an image viewer I wrote. I assume you are looking for something similar for your VideoView. http://pastebin.com/KUQrZA5J Jun 18 03:26:32 surf2b1: yes it's very similar Jun 18 03:27:38 above api 19 I like the IMMERSIVE and IMMERSIVE_STICKY modes for setSystemUiVisibility Jun 18 03:28:07 19 and above Jun 18 03:30:47 hey Jun 18 03:42:17 i'm trying to draw polygons from retrieved coordinates it shows the correct # of polygons at line 9 but only retrieves the tokens for the latest polygon at line 22 and draws it http://pastebin.com/y5dGAgQe Jun 18 03:46:43 Installation failed since the APK was either not signed, or signed incorrectly. <- how do i fix this Jun 18 03:46:46 google has no answers Jun 18 03:47:33 bubbely: sign the APK, or sign it correctly... Jun 18 03:47:42 Leeds: hm? Jun 18 03:47:54 Leeds: this came out of no where this error, i changed nothing and im new, how do i sign an APK Jun 18 03:48:20 you haven't actually told us anything about what you're doing Jun 18 03:48:30 trying to run my app Jun 18 03:48:57 ah, good, that's very unuseful information Jun 18 03:50:24 things like... are you building this app? how? where are you trying to run it? Jun 18 03:50:49 is there an auto signer Jun 18 03:50:58 im trying to run it in my emulator Jun 18 03:51:50 and... that's enough for me, bored now Jun 18 03:51:56 signingConfigs is blank in my gradle file, is that the answer? Jun 18 04:00:19 so, i tried generatin a signed apk, it didnt work Jun 18 04:05:59 bubbely: in what way didn't it work? Jun 18 04:06:16 Installation failed since the APK was either not signed, or signed incorrectly. <- still my error Jun 18 04:08:25 Textmode: help? Jun 18 04:09:18 I wouldn't know, perhaps someone else here does. Jun 18 04:15:35 Installation failed since the APK was either not signed, or signed incorrectly. <- Jun 18 04:15:35 help. Jun 18 04:17:10 no need to spam it, especially if no one else has been talking in the interum. its still on our screens. Jun 18 04:17:27 you still haven't actually answered the questions I asked half an hour ago Jun 18 04:19:24 eh, some people just don't want help Jun 18 04:19:41 If you deploy a debug apk, it should be automatically signed Jun 18 04:20:14 Leeds: asap, im going through google stuff, one second Jun 18 04:20:37 bubbely: that's fine, no answers, no help Jun 18 04:21:17 I don't seem to be finding any documentation on quick data transfer for android wear... Am I missing something or is this just not a thing yet? Jun 18 04:28:26 the debug build fixed it Jun 18 04:29:49 TacticalJoke still there ? Jun 18 04:35:01 whats wthat website with a search engine for android widgets Jun 18 04:35:20 oh, android-arsenal Jun 18 04:37:40 Yeah. Jun 18 04:40:24 TacticalJoke did uncle bob did SOLID in Agile Software Development? can't remember now. i'm wondering what other recent books came out with heuristics like that - always seem to get myself in a jam ! Jun 18 04:40:54 that book was 2002 ... loong time ago Jun 18 04:41:28 i think craig larman had some patterns in his book, but i don't have it any more Jun 18 04:41:49 or heuristics i should say Jun 18 04:48:14 Anyone who still listens to what Uncle Bob has to say should look at the source of Fitnesse. It will be quick. Jun 18 04:49:26 lol i guess CedricBeust doesn't like uncle bob :D Jun 18 04:50:05 seems like most of the OO books stopped around early 2000s Jun 18 04:50:41 bertrand meyers book comes with CD rom still :P Jun 18 04:51:23 I haven't read any programming books in years. I have no idea what's going around now. Jun 18 04:51:36 I think the last book I read was Clean Code. Jun 18 04:51:54 yeah thats his version of code complete Jun 18 04:52:01 Or The Pragmatic Programmer. Jun 18 04:52:04 That wasn't too bad. Jun 18 04:52:09 lol thats was a long time ago :D Jun 18 04:52:14 lol Jun 18 04:52:28 At least Code Complete is written by someone who knows something about software engineering Jun 18 04:54:59 g00s: You know you said you tend to use a single Activity with multiple Fragments (rather than multiple Activities) -- do things get complicated when you need to save state? (IIRC, Fragment.onSaveInstanceState doesn't get called whan a Fragment is replaced.) Jun 18 04:55:47 It can, doesn't require a lot of discipline to get right, though Jun 18 04:56:12 I tend to use that too: start with a lot of activities and when performance and transitions come into play, collapse all the activites into one with multiple fragments Jun 18 04:59:01 CedricBeust: What's the best way to handle saving a Fragment's state here? Just curious. Jun 18 04:59:04 I almost never use Fragments. Jun 18 04:59:57 As far as I remember, even stuff like a ListView's position won't be persisted. Jun 18 05:00:22 The activity can pass its bundle to each fragment. There are other ways too, no shortage of solutions Jun 18 05:00:45 This is easy to get right systematically. What's harder with this model is the back stack Jun 18 05:00:57 i hate the back stack Jun 18 05:01:27 Hmm, how would you persist a ListView's position here? Jun 18 05:01:40 Maybe I'm missing something obvious, but (going from memory) I think it must be really tedious. Jun 18 05:01:50 The activity calls its fragment and ask them to save themselves given the passed bundle Jun 18 05:02:24 I tend to have a public static MyFragment newInstance(args) method at the top of all my fragments as a pattern Jun 18 05:03:43 CedricBeust: So you'd manually track the ListView's position? Jun 18 05:05:00 I was thinking the solution might be "Call View.onSaveInstanceState for each view", but that method isn't public. Jun 18 05:05:45 TacticalJoke dont think i ever had to do that, but maybe i screwed up Jun 18 05:07:00 This looks so hacky: http://stackoverflow.com/a/3035521 Jun 18 05:08:48 Hmm, AbsListView.onSaveInstanceState is public. Jun 18 05:50:34 hellooo Jun 18 05:52:04 does anyone know it it's possible to intercept a cell phone call out and re-route it? say if I'm calling commissioner gordon from the approved bat-phone but I am calling from within the bat cave, it should dial the red bat phone, not commissioner cordon, incase I am a little boozed up from a party with bat girl and dont remember who I am supposed to be, batman or bruce wayne... Jun 18 05:57:43 I know.. I ask all the weird questions Jun 18 05:59:19 I fount it's possible to initiate a call programmatically but not intecept the Android native dialier Jun 18 05:59:29 was hoping the dialer sent a broadcast.. Jun 18 05:59:59 maybe it does under the hood but my dream of being Batman's personal dev is smashed. Jun 18 06:01:01 easier than to find a way to create that app is to stop drinking Jun 18 06:38:07 g00s: Jun 18 06:48:16 guys Jun 18 06:48:24 ive spend like an hour trying to figure out this simple error Jun 18 06:48:25 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.parse.starter/com.parse.starter.CreatePollActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference Jun 18 06:48:50 the image button is null right? Jun 18 06:49:19 liftedbronco: yes Jun 18 06:49:40 do you findViewById? Jun 18 06:49:43 no Jun 18 06:49:49 butterknife Jun 18 06:49:58 did you InjectView? Jun 18 06:50:00 http://hastebin.com/xoheyigume.avrasm Jun 18 06:50:06 yes Jun 18 06:50:16 the log out button works Jun 18 06:50:58 liftedbronco: why not use the @OnClick? Jun 18 06:51:10 this is easier? idk Jun 18 06:51:15 it seems like the injection is not synchronous Jun 18 06:51:22 yes, much easier Jun 18 06:51:53 how do I fix this stupid problem :( Jun 18 06:52:25 it works fine in all my other activities Jun 18 06:53:12 liftedbronco: try using @OnClick Jun 18 06:53:31 could it be that you have more than one layout file for this activity Jun 18 06:53:37 and one of them doesn't have this image? Jun 18 06:55:35 nope, just the one layout file right now Jun 18 06:55:42 ill change it to onclick Jun 18 06:57:00 same error Jun 18 06:57:01 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.parse.starter/com.parse.starter.CreatePollActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference Jun 18 06:57:18 layout file? Jun 18 06:57:26 http://hastebin.com/cimesefigu.xml] Jun 18 06:57:27 http://hastebin.com/cimesefigu.xml Jun 18 07:01:25 i dont even.... Jun 18 07:01:30 maybe i should just find view by id Jun 18 07:01:41 but i want my code to all look the same Jun 18 07:06:01 try doing that just to find the issue Jun 18 07:09:21 k trying it now Jun 18 07:09:40 doesnt work either Jun 18 07:09:53 same issue Jun 18 07:13:15 Alright, I just refactored my application using DataItem and the transfer rate is still very low. Does anyone have advice to speed up communication from a Wear device to an Android phone? Jun 18 07:16:48 ok thepoosh Jun 18 07:16:49 figured it out Jun 18 07:16:51 ? Jun 18 07:17:02 it was the dumbest shit Jun 18 07:17:09 what did you miss? Jun 18 07:17:10 the button was on the other activity Jun 18 07:17:18 sorry for wasting your time Jun 18 07:17:25 setContentLayout was for a different layout? Jun 18 07:17:30 no Jun 18 07:17:32 ? Jun 18 07:17:35 the exception was being thrown by the other activity Jun 18 07:17:42 it had a similar name Jun 18 07:17:49 the button on the other activity Jun 18 07:17:55 on the CreatePollActivity Jun 18 07:18:04 so the button actually worked Jun 18 07:18:16 its the button on the activity that the button started that threw the exception Jun 18 07:18:53 How could I make an animation that makes an "overshoot" effect BUT returns to the original scale Jun 18 07:19:15 So I'd like to make an object "bounce" when it is clicked but return to the original size Jun 18 07:21:41 When i do ninja -C out\Debug chrome && out\Debug\chrome.exe it says: ninja: error: loading 'build.ninja':. What am i missing to build the Chrome browser? Jun 18 07:22:34 Here it says: http://dev.chromium.org/developers/how-tos/get-the-code i have to apply ninja -C out\Debug chrome && out\Debug\chrome.exe but then i get that same ERROR. Jun 18 07:42:37 hey thepoosh Jun 18 07:42:55 capella-s3 http://techcrunch.com/2015/06/17/google-microsoft-mozilla-and-others-team-up-to-launch-webassembly-a-new-binary-format-for-the-web Jun 18 07:44:37 Ah, that's what I heard rumours about Jun 18 07:45:56 a JavascriptVirtualMachine ? Jun 18 07:47:00 i'm guessing its something like .pyc file ? Jun 18 07:47:19 except everybody agrees on the standard, and they give you .pyc files instead of .py files :) Jun 18 07:53:32 like JS bytecode ... Jun 18 07:53:37 this is scary as shit http://yro.slashdot.org/story/15/06/17/1931216/privacy-advocates-leave-in-protest-over-us-facial-recognition-code-of-conduct Jun 18 07:54:01 * capella been meaning to get around to asm.js ... gotta see how this fits in Jun 18 07:54:16 yah, been reading that stuff too Jun 18 07:54:37 "we don't need your permission, you have no reasonable expectation of privacy" Jun 18 07:57:53 capella next will be gait analysis Jun 18 07:58:21 g00s: amazing! Jun 18 07:58:31 "mind control ! "you can eat my pudding !" Jun 18 08:06:17 hi, i'm trying Retrofit, 2 years.. i used volley. In volley i create a threadpool executor and runnable... so.. what can i use with Retrofit? Jun 18 08:09:56 pepigno75: magic, it takes care of it for you Jun 18 08:10:19 thepoosh, i don' understand Jun 18 08:11:11 okHttp takes care of the network threadpool Jun 18 08:13:25 https://github.com/square/retrofit Jun 18 08:14:29 pepigno75: https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit/OkHttpCall.java#L51 Jun 18 08:23:30 is there a channel for android porting? Jun 18 08:23:48 or problems related to android source? Jun 18 08:29:46 Hello, does anyone have any good products you can reccomend to show LIVE user statistics from IOS and Android app on launch? Jun 18 08:33:03 Datasmurfen: are you talking about analytics? Jun 18 08:33:09 GA is good Jun 18 08:33:38 varad: there are multiple G+ communities Jun 18 08:33:59 thepoosh yes some kind of analystics tool to display for both IOS and Android. Next week i will launch a app, and will se live traffic Jun 18 08:34:15 Datasmurfen: there are many Jun 18 08:34:30 appboy, GA, appsflyer, flurry etc. Jun 18 08:36:01 crashlytics Jun 18 08:37:13 danijoo: that is just for crash logging no? Jun 18 08:37:21 thepoosh, no Jun 18 08:37:24 oh Jun 18 08:37:28 i didn't know Jun 18 08:37:38 they have (limited) analytics Jun 18 08:37:40 sec.. Jun 18 08:37:45 anywho, we're using a custom implementation with AWS Kinesis Jun 18 08:38:06 Thx thepoosh I will google them. Jun 18 08:38:12 np Jun 18 08:38:24 thepoosh, http://prntscr.com/7ic2je Jun 18 08:38:50 danijoo: that is a nice number of DAU Jun 18 08:57:09 good mornings Jun 18 09:00:40 I want to pass a model-object to a bundle. Any way of doing this? Jun 18 09:00:40 http://pastebin.com/zKqheqid Jun 18 09:01:56 Kanalia: HAI Jun 18 09:02:25 chrisaardal: you need to implement Serializable Jun 18 09:02:50 ok so MyModel implements serializable Jun 18 09:03:00 then putSerializable in my bundle? Jun 18 09:03:36 should work Jun 18 09:03:42 that is the exact use for this Jun 18 09:03:49 ah sweet :> Jun 18 09:07:24 thepoosh: hi Poosh :) Jun 18 09:08:12 hi hi Jun 18 09:18:55 If I just built an app in AS then closed the app. Is it possible to run the built app again without invoking Gradle (which spends 27 seconds realising that everything is up to date)? Jun 18 09:20:54 That's 27 seconds pegging the CPU as well :V Jun 18 09:21:48 SpaghettiCat: http://developer.android.com/training/basics/firstapp/running-app.html "Run your app from the command line" at the very bottom? Jun 18 09:22:21 and then maybe http://stackoverflow.com/questions/4567904/how-to-start-an-application-using-android-adb-tools Jun 18 09:22:39 Thanks for the pointer I'll look into that Jun 18 09:23:20 SpaghettiCat, enable offline mode in AS Jun 18 09:23:39 this makes it not checking for updated libs every build Jun 18 09:27:15 hi Jun 18 09:27:18 any experiences with automatic file encoding settings in Android studio on windows? Jun 18 09:27:46 danijoo: now it takes 31 seconds (this is debug mode if it matters) Jun 18 09:27:53 It is not for the first time I have to change it back to UTF-8 from windows-1250, this happenening on different occasions - this time on AS update Jun 18 09:28:23 bolovanos: Yes I keep setting all the encodings to UTF8 in settings, but they keep resetting back to Windows-1251 Jun 18 09:28:44 i am showing alert dialog on option item select menu but it appear for one second and disappear with this error http://paste.ubuntu.com/11734574/ Jun 18 09:28:49 any suggestions? Jun 18 09:28:54 SpaghettiCat, Settins -> Editor -> FIle Encodings Jun 18 09:29:16 danijoo: Yes, that's where I set it Jun 18 09:29:16 danijoo, really? Jun 18 09:29:28 Can someone quickly help me understand this bit of code --> http://pastebin.com/t4BzMnDT Jun 18 09:29:37 bolovanos, really Jun 18 09:30:04 SpaghettiCat, mmm, I havent foud any solution Jun 18 09:30:15 I dont get how you call a function and then create a function underneath the function call? Jun 18 09:30:32 bolovanos: solution to what? Keep setting it back to UTF-8 Jun 18 09:30:42 s9iper1, code? Jun 18 09:30:45 what is the use of that and how would you call the "done" function ? Jun 18 09:30:47 SpaghettiCat, yes, keep it the way i set it last time Jun 18 09:31:31 bolovanos: The IDE is 1.x but it feels like Beta. We have to remember this IDE is only 6 months old since 1.0 public stable Jun 18 09:31:55 encoding does not change back for me.. Jun 18 09:32:05 did you change all three values in File endcoding settings? Jun 18 09:32:22 of course I did Jun 18 09:32:26 many times Jun 18 09:32:41 danijoo, i am calling this method in opOptionItemSelected ... after this method i am calling this.finish. http://paste.ubuntu.com/11734588/ Jun 18 09:32:42 SpaghettiCat, yes - I will report that Jun 18 09:33:20 cart_man: is that what's called a closure? Jun 18 09:33:23 s9iper1, thats your problem Jun 18 09:33:32 you cant show a dialog and then finish() Jun 18 09:33:40 dialogs are bound to their activity Jun 18 09:33:59 ahm I have no idea...ive seen these functions around but I have avoided them...now finally I have to face it Jun 18 09:34:11 ok the problem is with finish danijoo Jun 18 09:34:13 ? Jun 18 09:34:16 SpaghettiCat,^^ Jun 18 09:34:31 what you are doing right now is showing a dialog and then immediatly finish the activity, which results in the dialog being closed as well Jun 18 09:34:45 yeah, Jun 18 09:34:46 the leak message is just telling you that you finished the activity before closing the dialog Jun 18 09:34:53 ok Jun 18 09:34:55 ahhhh Jun 18 09:34:58 it looks like a vanilla callback function ... like in javascript ... the method calls your function with the return value Jun 18 09:34:58 right Jun 18 09:35:23 i must close activit from the method i guess after Ok is pressed ? danijoo Jun 18 09:35:35 sorry I DCed Jun 18 09:35:43 did anybody say something to me in the last 30 secs? Jun 18 09:35:56 s9iper1, what do you want to do? close the activity when dialogs Button is pressed? Jun 18 09:36:08 Webview Android: Is it possable to listen for click inside a webview, and then add a parameter to the link f.eks userid ? Jun 18 09:36:23 yes when the user press ok than activity will be close i think i must call finish inside OK ? right ? Jun 18 09:36:38 cart_man: nobody said anything. I don't think that's a closure because it doesn't return a function object Jun 18 09:37:01 s9iper1, you have to callfinish in the onclicklistener then Jun 18 09:37:06 or in an onDismisslistener Jun 18 09:37:18 ok thanks :) Jun 18 09:37:21 cart_man: do you understand the concept of a callback? Jun 18 09:38:14 SpaghettiCat, Its when a fucntion returns to the function that called it? Jun 18 09:38:37 ^^ Jun 18 09:40:02 this dam internet seriously Jun 18 09:40:12 cart_man: .co.za ? are you from zambia? Jun 18 09:40:33 No from South Africa unfortunately Jun 18 09:40:51 Why unfortunately? That's better than Zambia :) Jun 18 09:40:52 its actually the old dutch way of saying South AFrica Jun 18 09:40:57 said it with a Z Jun 18 09:41:03 oh Jun 18 09:41:50 Anyway the purpose of a callback is so that, when a task is started in the background (like parse this text), the controlling routine doesn't have to keep polling the task to check if it's finished Jun 18 09:42:14 You should look up an example online which will help you understand Jun 18 09:43:33 SpaghettiCat, Thanks allot ! I will quickly check it out :) Jun 18 09:43:49 np) Jun 18 09:53:06 SpaghettiCat, u can bring your your small peace to the mill https://code.google.com/p/android/issues/detail?id=177486&thanks=177486&ts=1434621108 Jun 18 09:55:58 SpaghettiCat, What does one call this sort of callback function? Jun 18 09:56:02 bolovanos: OK, only 36,000 open issues, we just have to wait :) Jun 18 09:56:29 in Java atleast Jun 18 09:56:36 cart_man: i don't know of any sorts of callback function, sorry Jun 18 09:56:52 I just know it as a callback function. And a "background task" Jun 18 09:57:31 SpaghettiCat, I get allot of thme in other languages just searching for Callback fuctions.. but not 1 single Java one haha fml Jun 18 09:59:59 cart_man: just add "java" to the search terms Jun 18 10:04:22 bolovanos: you're still on Vista? poor fellow :( Jun 18 10:04:41 hey all. i have one of these http://www.favientertainment.com/collections/smart-keys-controls/products/favi-mini-keyboard-with-laser-pointer-black-fe01-bl and was wondering how hard it would be to develop an app that emulates the usb dongle. Jun 18 10:05:07 SpaghettiCat, tell me about that :/ Jun 18 10:05:21 i dont want win7 support to end :( Jun 18 10:06:24 Jesperhead: it's not just a standard bluetooth USB adapter? Jun 18 10:06:41 negative, this is 2.4 wifi Jun 18 10:06:55 but yes, generic i assume. Jun 18 10:08:01 they do make a "bluetooth" model for +$10 that appears to be dongle-less. but i already got this one for my pi's Jun 18 10:18:33 i guess i could just get a usb otg cable Jun 18 10:37:18 who is succesfully using this https://developer.android.com/training/gestures/movement.html implementation of VelocityTracker? Jun 18 10:38:07 by successfully I mean without this error http://stackoverflow.com/questions/26074907/velocitytracker-causes-crash-on-android-4-4 Jun 18 10:41:05 in RxAndroid, i have an observable that emits a List. Now I want to verify that all items in that list are valid, what is the Rx way of checking them all? Currently i have a method that takes the List and loops over the item, but i'm sure there's a more Rx way Jun 18 10:50:08 well.. obviously .flatmap().filter().toList() Jun 18 10:54:41 observable.filter(item -> isValid(item).subscribe(...) Jun 18 10:54:54 (missing a parenthesis) Jun 18 10:55:12 yeah something like that Jun 18 10:55:38 but now i would like to have another observable that emits the items that were lost in the filtering process Jun 18 10:56:06 and i'd prefer not to have 2 observables calling .isValid() for every item Jun 18 10:56:15 probably going to need two operations for that, or maybe you can group() / zip() them Jun 18 10:56:27 group, partition, forgot the exact name Jun 18 10:56:40 that will split them into 2 observables maybe? Jun 18 10:56:50 ah here: https://github.com/ReactiveX/RxJava/wiki/Transforming-Observables#groupby Jun 18 10:57:04 sorry here: http://reactivex.io/documentation/operators/groupby.html Jun 18 10:57:40 For example, if the key function returns a boolean, you'll get a pair of lists, those that filtered to true on the left and false on the right Jun 18 11:00:49 ok seems that is what i need.. not to figure out what to type ;) Jun 18 11:00:56 s/not/now Jun 18 11:01:08 Hello guys, i would like to know why i need to add a Credit Card for subscribe to a test subscription ? Jun 18 11:02:20 CrabeMan: how is that related to android? Jun 18 11:04:02 I would subscribe to a test subscription from the Play Store. Jun 18 11:10:08 osxorgate: http://pastebin.com/WDf5FCXx Jun 18 11:10:51 CedricBeust: i have a somewhat more complex situation Jun 18 11:12:31 I'm getting a weird result on my pastebin if the filter is it -> (it %2) == 0 though, not understanding Jun 18 11:13:08 using Retrofit how can I cast a an error response to a desired format Jun 18 11:13:09 ? Jun 18 11:14:55 CedricBeust: https://gist.github.com/xorgate/28b70f92b7d0feef8e4f Jun 18 11:16:07 currently too complex for my non-rx-adapted brain Jun 18 11:17:34 >> Which items end up on which Observable is typically decided by a discriminating function that evaluates each item and assigns it a key Jun 18 11:17:59 documentation not matching what it does in sample Jun 18 11:18:22 osxorgate: What is the type of ::isProper Jun 18 11:18:31 that's the type of your key (see my pastebin) Jun 18 11:19:05 CedricBeust: boolean Jun 18 11:19:16 Then my pastebin should be relevant to you Jun 18 11:19:43 but it is not doing what documentation say, no? Jun 18 11:20:04 squ: It is for the example I pastebin but not for another, hold on Jun 18 11:20:29 CedricBeust: ok so maybe i should define 2 observables and inside the subscribe you made, subscribe to them individually? Jun 18 11:20:40 CedricBeust: ‘(it % 2) == 0’ sample Jun 18 11:20:55 squ: http://pastebin.com/ggmxTrrK Jun 18 11:21:11 Not sure what's going on here Jun 18 11:21:28 what is going on is: documentation doesn't match results Jun 18 11:21:36 theory != practice Jun 18 11:21:53 Regardless of the doc, that output doesn't make sense to me Jun 18 11:22:04 algorithm seems to split results up to first match, and later Jun 18 11:22:15 mmh Jun 18 11:22:24 yes that would explain why the > example works Jun 18 11:22:35 yes Jun 18 11:22:43 replace it == 2 Jun 18 11:22:55 you will have 1st group of 0, 1 Jun 18 11:23:01 Indeed, nice catch Jun 18 11:23:10 So how do we get a real partitiion now Jun 18 11:23:23 did I said I hate java before? Jun 18 11:23:32 Not sure what Java has to do with that Jun 18 11:23:44 idk who to blame Jun 18 11:23:45 :) Jun 18 11:25:40 CedricBeust: can you print groupKey from within ‘" Items: " + group’ ? Jun 18 11:26:10 I already do, don't I? "group.getKey()" Jun 18 11:26:26 one sec Jun 18 11:26:29 I'll paste Jun 18 11:26:49 CedricBeust: i think i've got an idea how to do what i want, thanks Jun 18 11:27:11 http://pastebin.com/awHPdtuM Jun 18 11:27:23 CedricBeust: catch was with execution order Jun 18 11:27:51 they fell into groups as per docs, but execution of printf was sequential Jun 18 11:27:57 ok? Jun 18 11:28:34 oh interesting Jun 18 11:28:55 :) Jun 18 11:29:12 squ: http://pastebin.com/Wsb2p0Gi Jun 18 11:29:18 So individual items are partitioned correctly Jun 18 11:29:43 yes Jun 18 11:31:11 hello, im trying to populate a listview from a table in a database, i would like to get all data and populate the listview. Jun 18 11:31:18 I made an attempt but its gone wrong Jun 18 11:31:20 http://pastebin.com/Y2cpmdS8 Jun 18 11:31:45 as you can see im trying to populate it via asynctask hashmap Jun 18 11:31:52 here is the query code http://pastebin.com/bWsrF6hw Jun 18 11:32:09 the result http://i.imgur.com/eYu6qva.png Jun 18 11:32:14 squ: Would be nice to be able to query all the items belonging to a partition Jun 18 11:32:31 can someone help me to fix this.. Jun 18 11:33:50 CedricBeust: sorry I'm not that far in rx tutorial yet, just adapted your blog post ‘Easy sql’ yesterday Jun 18 11:34:05 squ: haha ok :) Jun 18 11:34:08 Hope it's working out for you Jun 18 11:34:20 yes it is wonderful, I'm very happy Jun 18 11:34:33 What adaptations did you make? Jun 18 11:34:52 one sec, I'll paste Jun 18 11:37:14 any ideas how i can fix? Jun 18 11:38:57 CedricBeust: my brain... ouch.. i get how the groupBy gives me 2 observables, but when i get them, i want to output the contents to a ConnectableObservable that others have subscribed to previously Jun 18 11:40:02 osxorgate: instead of a ConnectableObs, how about publishing them to a subject? Jun 18 11:40:12 CedricBeust: http://vpaste.net/ttMkM Jun 18 11:40:45 CedricBeust: i'm not sure. I depend on the .replay() of the ConnectableObservable to give me the same list for all subscribers, ever Jun 18 11:41:05 obs() is your makeObserver template Jun 18 11:41:11 osxorgate: A ReplaySubject sounds like the right approach Jun 18 11:41:38 CedricBeust: indeed.. i will read up Jun 18 11:47:23 osxorgate: http://pastebin.com/xLaPQ43b Jun 18 11:48:36 if you would tell how to simplify call of ‘favoriteAdd()’ with result of ‘favoriteCount()’ both off mainThread ? Jun 18 11:49:18 hey guys got a question i am tryign to build an android app using phone gap but when trying to build the program with phonegap i keep getting http://pastebin.com/KsLFUBwu any ideas would be greatly appreciated Jun 18 11:51:10 squ: First reaction is doing businesss logic in a catch is suspicious Jun 18 11:52:01 it is support fall back is for API without DatabaseUtils Jun 18 11:52:26 Then use an SDK constant Jun 18 11:52:45 if (build SDK < kitkat or whatver) { ... } else { ... } Jun 18 11:53:16 as for your other question, looks like these subscriptions are running on the computation thread, not main Jun 18 11:54:51 yes Jun 18 11:55:02 I'd like to add a favorite to the list in background Jun 18 11:55:11 based on background results of count Jun 18 11:55:28 so favorites have fancy name like Fav#1, Fav#2, etc Jun 18 11:55:38 I don't understand why people say use fragments instead of activities where you can. What can activities do that fragments can't? Jun 18 11:56:02 If you're adding to a list, that probably means adding to the adapter, which needs to be done on the main thread if I'm not mitaken Jun 18 11:56:28 gavit: fragments are smaller units that are more flexible to put in different layouts Jun 18 11:56:35 nono, it is adding to database Jun 18 11:57:03 i'm drawing polygons from retrieved data at line 9 i get the right number of polygons but it only retrieves token from last polygon line 24, 35, 48 twice and draws only that one http://pastebin.com/ab5jf2M3 not sue what am missing Jun 18 11:57:44 a listview too Jun 18 11:57:45 CedricBeust: you're telling me what fragments can do, but activities can't. I'm trying to understand the opposite of that. What can activities do that fragments can't Jun 18 11:58:37 If I add a for loop that loops through an arraylist of 200 elements each frame. Do you think that would make it slower? Jun 18 11:59:19 Hi, I'm trying to use android studio on mac Jun 18 11:59:45 my shortcuts for alt + shift doesn't work since mac will write alternate characters Jun 18 11:59:55 how can I disable that? Jun 18 12:01:19 hey. when I upload an app or game to the play store for beta testing and after 2 months release it, will it lose out on the chances for being listed in the "top new" categories? Jun 18 12:01:42 or does the time start only after a public release? Jun 18 12:06:36 CedricBeust: this seems to work https://gist.github.com/xorgate/e87b33c345f3767fd211 ... not quite sure when everything is executed though.. but i guess that's part of the complexity of Rx Jun 18 12:06:39 thanks for your help Jun 18 12:07:31 osxorgate: how you set up java 8 for android? Jun 18 12:07:54 CedricBeust: well rotation crashes the app ;0 Jun 18 12:08:20 squ: It's not Java 8, probably retrolambda Jun 18 12:08:35 it's both actually Jun 18 12:08:41 tell me how :) Jun 18 12:09:03 uhm download jdk8 and set it as jdk in AS, and use retrolambda Jun 18 12:09:07 gradle plugin Jun 18 12:09:16 there's tuts on the web Jun 18 12:09:27 osxorgate: Not sure if this is your final code but if it is and you are partitioning between valid and invalid, might as well skip partitioning and just filter() Jun 18 12:10:57 CedricBeust: but i want to use both kinds of items, for example if they are invalid, i want to make a note of it Jun 18 12:10:57 I suspect the crash you are seeing on configuration change is unrelated to this code(?) Jun 18 12:11:07 osxorgate: Thought so, that makes sense then Jun 18 12:11:15 yeh, it was due to some previous code.. but i still need to unsubscribe i think Jun 18 12:11:45 the thing is i have a fragment that fetches data, and when a new view is created, try to fetch the adapter to fill the listview Jun 18 12:11:56 so i want to only fetch the data and make the adapter once Jun 18 12:12:08 hence previously the ConnectableObservable Jun 18 12:12:16 and now the ReplaySubject Jun 18 12:12:39 so previously in onDestroyView() i unsubscribed Jun 18 12:12:49 CedricBeust: CedricBeust am I making sense? Jun 18 12:13:28 i have called measure(UNSPECIFIED, UNSPECIFED) method of view and the measuredWidth got wrong size. Jun 18 12:13:35 gavit: It's too long a question to answer here, there's a lot of documentation about the difference between fragments and activities out there Jun 18 12:13:40 the size i got is over my display size Jun 18 12:13:49 what's wrong with that? Jun 18 12:14:02 https://www.irccloud.com/pastebin/ito9I50i/ Jun 18 12:14:22 my maximum width of screen is 1440, but it returns 1532 Jun 18 12:15:22 crazy_rudy_, that's totally expected Jun 18 12:15:32 view doesn't know anything about the screen, it only knows about your measure spec Jun 18 12:15:43 if you want ti to be AT MOST 1440, then send a measure spec AT_MOST, 1440 :) Jun 18 12:16:47 Mavrik: you meat, call measure(AT_MOST, 1440)? Jun 18 12:16:56 meant Jun 18 12:17:29 the view i want to measure has match_parent property Jun 18 12:18:16 parent view is the viewpager, and i want to get child's width before atteching. Jun 18 12:18:20 parent view is the viewpager, and i want to get child's width before attaching. Jun 18 12:18:40 how can i do that? Jun 18 12:18:54 it must be measured before attaching to viewpager Jun 18 12:19:08 on the initiateItem method. Jun 18 12:22:22 danijoo, reading from database is syn or Asyn ? Jun 18 12:22:36 CedricBeust: well crikey i think we did it Jun 18 12:23:43 haven't had to think this hard since i *tried* to learn haskell Jun 18 12:24:05 anybody know reading from database is synchronous or Asynchronous ? Jun 18 12:25:50 crazy_rudy_: what you doing is asking a view "what size would you like to be?" Jun 18 12:28:20 icedp: yes, before attaching to viewpager. Jun 18 12:28:50 icedp: because i'd like to make a view's height as same as width. Jun 18 12:28:58 1:1 ratio Jun 18 12:37:04 crazy_rudy_, go read what measure accepts as a parameter Jun 18 12:37:32 crazy_rudy_, it's not a constant, it's a MeasureSpec which is created with MeasureSpec.makeMeasureSpec Jun 18 12:37:37 no wonder you're getting strange results :P Jun 18 12:39:43 crazy_rudy_: https://gist.github.com/JakeWharton/2856179 Jun 18 12:39:55 Do you think if I upgraded from dual to quad-core AS would become more responsive and Gradle faster? Jun 18 12:40:02 nop. Jun 18 12:40:21 guys, good day Jun 18 12:40:24 SpaghettiCat: allocate more mem in config Jun 18 12:40:36 osxorgate: more mem to the IDE? Jun 18 12:40:39 there's tuts to speed up AS as much as possible (which is not quite alot) Jun 18 12:40:41 SpaghettiCat: yes Jun 18 12:41:04 ~/.gradle/gradle.properties Jun 18 12:41:14 I'm using Android Studio 1.2.x, can I see you .gitignore file ? Jun 18 12:41:21 your* Jun 18 12:41:55 and ~/.AndroidStudio/studio.vmoptions Jun 18 12:42:27 osxorgate: Hmm interesting, I'll try that. But it already has 1.3GB commited, while I have 2.5GB RAM still free Jun 18 12:42:49 zoraj: gitignore.io is good if you need stuff to add Jun 18 12:42:57 that's a website btw Jun 18 12:43:26 i'm retrieving object from parse to draw i get the right count line 9, then iterate through but then i only get info from the last one and one that ones gets drawn line 45 http://pastebin.com/BjNiNkti Jun 18 12:45:28 how do i use move() http://pastebin.com/bWsrF6hw Jun 18 12:45:42 im trying to fetch all data and not sure how to use move Jun 18 12:45:59 im using getdata3 in another class Jun 18 12:46:46 SpaghettiCat, interesting link, thanks Jun 18 12:47:09 DarkChaoz, read the docs\ Jun 18 12:47:16 or ask a specific question Jun 18 12:48:38 SpaghettiCat, what gradle version? Jun 18 12:48:49 2.4 with plugin 1.2.3 is faster Jun 18 12:49:43 i did i just dont get it Jun 18 12:49:51 I have gradle 2.2.1 Jun 18 12:50:09 SpaghettiCat: update to 2.4 Jun 18 12:50:19 and android plugin Jun 18 12:50:44 But 2.2.1 is what's shipped with AS by default; i'd hate to mess something up. or to find some incompatibilities Jun 18 12:50:49 and your building process became blazing fast Jun 18 12:50:57 wow really? Jun 18 12:51:10 SpaghettiCat, its changing 2 numbers Jun 18 12:51:17 if it does not work for you, change itr back Jun 18 12:51:56 It's as easy as choosing the version in build.gradle right? Jun 18 12:52:05 yes Jun 18 12:52:07 SpaghettiCat: ssd + gradle 2.4 + gradle daemon + gradle parallel + android gradle plugin 1.2.3 Jun 18 12:52:23 xgearx, ssd makes a difference for you? Jun 18 12:52:37 yes Jun 18 12:53:00 interessting. i have an ssd but my android projects are located on a HDD ^^' Jun 18 12:53:06 maybe i should change that Jun 18 12:53:09 I have an SSD, but I think with Gradle it's the CPU that's the bottleneck. It pegs the CPU for 30 seconds when I build just to realise that everything is up-to-date Jun 18 12:53:19 i have only ssd and happy Jun 18 12:53:35 xgearx, then you cant say if ssd makes a difference Jun 18 12:53:40 because you cant compare Jun 18 12:53:56 but earlier i had hdd Jun 18 12:54:00 Why would there be big I/O? It's java so it will peg the CPU and have high mem requirements: that's the bottlenecks Jun 18 12:54:01 so how do i pass parameter to the function? then http://pastebin.com/AnF8eWN7 Jun 18 12:54:18 xgearx, did you run benchmarks? Jun 18 12:54:19 do i do a seperate function for count and remove getcount? Jun 18 12:54:44 DarkChaoz, a cursor is like an iterator Jun 18 12:55:02 danijoo: i cant compare because i chenged my laptop and pc on work Jun 18 12:55:16 you move to a row (moveToFirst() or move(position) ) and then you cann access values for that row Jun 18 12:55:39 c.getString( 1) to get the string value of first column for example Jun 18 12:55:43 danijoo: but subjectively looks faster Jun 18 12:55:44 ik know that but specifically i need to use a position i understand Jun 18 12:56:04 but im using a for loop so do i need to count all the results first then pass it to that function? Jun 18 12:56:14 by creating a seperate count function? Jun 18 12:56:14 dont get what you mean Jun 18 12:56:21 what do you want to cound? Jun 18 12:56:28 number of entries? Jun 18 12:56:31 yeah Jun 18 12:56:37 theres a function for that Jun 18 12:56:39 then pass it as move(position) Jun 18 12:56:43 as I said: read the docs Jun 18 12:56:44 getcount i know Jun 18 12:56:59 so what is the problem> Jun 18 12:57:09 use that function instead of moving arround Jun 18 12:57:13 but doesnt a cursor needs movetofirst or something in order to return results? Jun 18 12:57:20 no Jun 18 12:57:30 oh Jun 18 12:57:34 only if you want to iterate Jun 18 12:57:42 than you want to start at the first entry obviously Jun 18 12:58:01 so i need to remove the movetofirst to return all entries? Jun 18 12:58:16 since that only gets the first entry Jun 18 12:58:29 DarkChaoz, you said you want to count Jun 18 12:58:36 nothing about getting all entries.. Jun 18 12:59:06 could someone help me a bit with themeing? ... http://pastebin.com/wZ5BCfTt this is what I've done. I want to try to just change the actionbar's color... and I can't -.- .... I get an error telling me this: "java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity." ... wth? I'm using AppCompat from what you can see there :| Jun 18 12:59:14 i need to do both Jun 18 12:59:23 two different stories. Jun 18 12:59:33 oh Jun 18 12:59:35 the cursor always if "all entries" Jun 18 12:59:42 is* Jun 18 13:00:15 you can iterate over it and use it to display your data in a listview Jun 18 13:00:24 you dont have to make an array from it or something like that Jun 18 13:00:29 i see. Jun 18 13:00:37 i put it in a hashmap Jun 18 13:00:45 http://pastebin.com/Y2cpmdS8 Jun 18 13:00:50 but gone wrong lol Jun 18 13:01:11 really.. read the docs Jun 18 13:01:25 and the dev guidlines for databases Jun 18 13:03:17 so what i done isnt acceptable? Jun 18 13:04:05 you seem to have no idea what you are doing Jun 18 13:04:38 im reusing code.. from my other features.. I dont really have much experience with async task and databases Jun 18 13:04:58 tried looking for tutorials Jun 18 13:05:01 but no luck Jun 18 13:07:01 i dont have time to explain the whole concept behind cursors. Jun 18 13:07:03 sry Jun 18 13:07:15 ik Jun 18 13:13:14 http://imgur.com/hH8hGaC Jun 18 13:14:04 If I create an instance of a `DialogFragment` how would I pass to its constructor what text I want the dialog show? http://pastie.org/10246934#20 Jun 18 13:14:32 SpaghettiCat, setArguments() and getArguments() Jun 18 13:14:35 Haha I know that joke :) Jun 18 13:14:40 that lets you add a bundle Jun 18 13:15:01 Thanks dani I'll look into those Jun 18 13:18:55 SpaghettiCat, thats a pretty common pattern Jun 18 13:18:56 http://pastebin.com/ErdisEeb Jun 18 13:19:15 lets you to use it like MyDialogFragment.newInstance("some stuff").show(....) Jun 18 13:19:17 could someone help me a bit with themeing? ... http://pastebin.com/wZ5BCfTt this is what I've done. I want to try to just change the actionbar's color... and I can't -.- .... I get an error telling me this: "java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity." ... wth? I'm using AppCompat from what you can see there :| Jun 18 13:20:09 luci1093, for appcompat, use @yourcolor Jun 18 13:20:09 I need to use dialogue to confirm some action. A need to pass dialogue text to recycle dialogue for other confirmations with same choices yes/no. And I need Pass event back to Dialog Host. Jun 18 13:20:10 I found this http://developer.android.com/guide/topics/ui/dialogs.html. Have three questions 1) is it ok to extend Dialogue host class with AppComaptActivity instead of FragmentActivity? Jun 18 13:20:10 2) how can i Pass string to Dialog - I have created singleton class earlier, but maybe there is more straight forward solution Jun 18 13:20:28 dani, ooh that looks useful. I'll try to understand it and get it to work. Thanks :) Jun 18 13:21:17 danijoo, okay I'll try. But my problem is that even if I delete everything and let only the part that tells the app to use that Theme ... I still get that error idk why -.- Jun 18 13:21:28 hey gas how can i add object from parse query to arrayList? Jun 18 13:22:49 danijoo: in your paste it says `static MyDialogFragment.....` is that intended that you didn't define return type and visibility modifier of the method? Jun 18 13:23:50 returnt type is the fragment Jun 18 13:24:11 oh right, and the visibility? public, private etc.? Jun 18 13:24:24 whatever u need Jun 18 13:24:43 oh OK then I must add it I guess Jun 18 13:25:01 you can alsop leave it ouy Jun 18 13:25:02 out Jun 18 13:25:07 i like package-private :) Jun 18 13:26:00 Ah I guess that's the same as writing `private` Jun 18 13:26:11 no Jun 18 13:26:37 danijoo, well I've managed to make it not crash but still didn't manage to change the color of the actionbar :| Jun 18 13:26:50 Oh I see, I found everything here: https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html Jun 18 13:33:50 I've got a palette colored toolbar (from album art) and I want to place a fab on it. which color should be used for the FAB? Jun 18 13:35:20 accentcolor Jun 18 13:36:22 this is starting to annoy me , I am trying to change the actionbar color and when I put some color the actionbar pretty much changes color to some type of white on which I can't see text ... wth -.- Jun 18 13:36:36 yea but it may be the same/close to the toolbar's color Jun 18 13:56:10 how to save Fragment's state when activity configuration does NOT change e.g. I replace a fragment with another one? I'm currently saving state to arguments in onStop, then checking if we there is any saved state in onViewCreated Jun 18 14:11:57 Is there a way to make a radiogroup in java code? Jun 18 14:12:36 gavit: yes Jun 18 14:13:11 http://developer.android.com/reference/android/widget/RadioGroup.html Jun 18 14:25:52 thepoosh: I was hoping to do a myRadioGroup.add(new ReadioButton("myRadioButtonText") or something :( Jun 18 14:26:07 Hey all, I'm looking at the AOSP tags and builds here: https://source.android.com/source/build-numbers.html#source-code-tags-and-builds Jun 18 14:26:22 Is there any reason not to build the ones that support multiple devices? Jun 18 14:26:32 nvm, I see an AddView Jun 18 14:26:33 gavit: as you can see, it extends LinearLayout and therefore has the method addView(View view) Jun 18 14:26:49 thepoosh: yeah, found it :) Jun 18 14:26:52 ! Jun 18 14:26:58 Like android-5.1.0_r1 instead of android-5.1.0_r2 Jun 18 14:34:31 Hi guys, where do I need to put a file that I wish to deploy with my app (in that case, its a csv file) ? Jun 18 14:35:32 h3bus: assets Jun 18 14:38:23 I tried to put it in assets, but when I try to open it, file not found exception. Here is how I open it : String csvFile = getResources().getAssets() + "/export.tsv"; BufferedReader br = new BufferedReader(new FileReader(csvFile)); Jun 18 14:42:18 how do i use Distinct in query bloack ? as i do in raw query ? Jun 18 14:42:20 danijoo, Jun 18 14:42:24 any suggestions? Jun 18 14:42:31 block Jun 18 14:42:32 " Jun 18 14:43:32 Hello every body! Jun 18 14:43:49 the exact error is : java.io.FileNotFoundException: /android.content.res.AssetManager@210816d0/export.tsv: open failed: ENOENT (No such file or directory) Jun 18 14:43:49 guys, can someone help me with a theme problem? I want to change my action bar color to a custom one and I just can't. This is what I've done http://pastebin.com/EhaWRRCq but instead of the color I specified to show ... the action bar changes and looks like this ... http://imgur.com/0t8lfjM what could possibly be wrong? this is killing me >.< Jun 18 14:47:53 Can someone help me please, I have a issue i would like to make an intent between my class which extends a View and my PreferenceActivity, because if I make new Intent(this,myPrefrenceActivity.class) it send me an Eror message "Cannot Resolve Constructor" Jun 18 14:51:56 guys, can someone help me with a theme problem? I want to change my action bar color to a custom one and I just can't. This is what I've done http://pastebin.com/EhaWRRCq but instead of the color I specified to show ... the action bar changes and looks like this ... http://imgur.com/0t8lfjM what could possibly be wrong? this is killing me >.< Jun 18 14:53:01 Hey! Can I use Gradle to execute a shell script after a successful build? Jun 18 14:55:20 pehlert if you are using at least version 2.4 looks like u can Jun 18 14:55:32 https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Exec.html Jun 18 14:58:11 Uh, Exec is in there since like, 1.x Jun 18 14:58:37 Sloth514: Brilliant. You don't know how to hook this into Android's build process by any chance? Jun 18 14:59:02 I want to run it at the very end, it's for uploading the release build to a server automatically Jun 18 14:59:11 pehlert, so which build step exactly? Jun 18 14:59:24 do ./gradlew tasks --all to see which will run Jun 18 14:59:33 and figure out the one that makes sense for your usecase Jun 18 14:59:37 Mavrik: The last one, after the final .apk has been built Jun 18 14:59:52 Okay cool, let me check Jun 18 15:00:16 I'm afraid "the_last_one_after_final_apk_has_been_Built" won't be accepted by gradle ;) Jun 18 15:00:23 when you know that, add Jun 18 15:02:13 you'll probably want to hook after bundleFullRelease Jun 18 15:02:26 so make an Exec task that depends on "bundleFullRelease" Jun 18 15:02:34 err. "bundleRelease Jun 18 15:02:47 and make "assembleRelease" depend on your shell script task Jun 18 15:03:13 gradle.projectsEvaluated { tasks.assembleRelease.dependsOn YourShellScriptTask } Jun 18 15:03:16 that should do it Jun 18 15:03:59 let us know if htat works Jun 18 15:04:26 of course it does, that's how we deploy our betas. Jun 18 15:04:29 Can someone help me please, I have a issue i would like to make an intent between my class which extends a View and my PreferenceActivity, because if I make new Intent(this,myPrefrenceActivity.class) it send me an Eror message "Cannot Resolve Constructor" Jun 18 15:06:11 noureddine, "this" must be a Context Jun 18 15:07:44 yea Jun 18 15:07:55 Mavrik, I know is way I ask if someone know how to do that :( Jun 18 15:08:02 noureddine try getContext() Jun 18 15:08:40 instead of 'this' Jun 18 15:08:41 because I want imperatively to use my PreferenceActivity :( Jun 18 15:09:03 Mavrik, http://stackoverflow.com/questions/30919098/get-distinct-values-from-column Jun 18 15:09:19 O.o Jun 18 15:09:22 I also try it but same problem it send me same Error Jun 18 15:09:26 :) Jun 18 15:11:08 Mavrik, I also try it but same problem it send me same Error Jun 18 15:21:31 I have a fragmentstatepager with videoviews. problem is the offscreenpagelimit. It starts playing the video on the newest created fragment. Instead of the current. Any ideas on how to solve this? Jun 18 15:31:44 how would i allow the user to create their own title and snippet when creating a marker? Jun 18 15:31:47 in google maps Jun 18 16:11:45 Hello. Does Bluestacks strip debug info? Jun 18 16:13:05 I've already verified the debug info is there. But the stack trace says Unknown Source still. Jun 18 16:21:05 I have a fragmentstatepager with videoviews. problem is the offscreenpagelimit. It starts playing the video on the newest created fragment. Instead of the current. Any ideas on how to solve this? Jun 18 16:21:35 When do you actually start playing in the fragment? Jun 18 16:21:37 Nvm, I forgot to write the sourceFile. Jun 18 16:22:27 Sloth514, Mavrik: Many thanks! I was distracted for a while, but haven't missed your comments. Will try that in a minute! Jun 18 16:24:42 onCreateView atm. I know thats one issue but Jun 18 16:24:55 any ideas s73v3r ? Jun 18 16:25:22 I would look at the fragment lifecycle methods Jun 18 16:25:51 either that, or hook into when the fragmentstatepager switches, and tell the fragment to start playing then Jun 18 16:25:58 actually, that’s the better choice Jun 18 16:26:44 like a onPageSelected method? Jun 18 16:26:59 something like that. Jun 18 16:27:10 i don’t recall the exact method off the top of my head Jun 18 16:27:33 try finishUpdate Jun 18 16:30:08 Like if I could get a refrence to currentVisibleFragment inside my fragment Jun 18 16:34:19 no, I meant that in finishUpdate, your adapter would grab the currently visible fragment and then call playVideo() or something on it Jun 18 16:40:20 you may want to stop the previous fragment’s video in startUpdate() as well Jun 18 16:48:22 how would i make it so that a string variable "description" (part of my main activity) can be changed within that same main activity by another method? Jun 18 16:49:09 ex. every time i let the user create a google maps marker i want them to be able to input their own description using a addMarkerDesc method, but when called it allows user input but doesnt actually change the variable Jun 18 16:49:23 im guessing its got something to do with scope but cant figure it out Jun 18 17:00:54 you want to change it without actually changing it? Jun 18 17:02:39 Mavrik: That has worked, thank you! Do you also know by any chance how I can get a bit of information (the version that has been built, as set in AndroidManifest.xml) Jun 18 17:10:21 s73v3r no the second part of that sentence was what was actually happening Jun 18 17:10:54 the user can input a new description but even though the method returns their new description, it isnt changed when using title.(desc) to add the marker Jun 18 17:11:31 im guessing its because in my dialog the change the the description variable is only in the scope of the "im clicking OK" method Jun 18 17:11:51 so im wondering how i could make it change the description outside of that Jun 18 17:12:07 where is the button handler for OK? Jun 18 17:13:09 under a method called "addDesc". under the "add marker" method, i call "addDesc" if the user says "Yes i want to add the marker here" Jun 18 17:13:31 i just realized i guess i could force them to add a description without needing to check if they say "ok" or Jun 18 17:13:38 "cancel" but id rather give them the option Jun 18 17:13:43 I’d need to see code, but is this within the activity? Jun 18 17:13:50 the main activity? yes Jun 18 17:13:54 i could throw it up somewher Jun 18 17:14:01 pastebin is the site people use here right? Jun 18 17:14:19 pastebin, or pastie, i guess Jun 18 17:16:54 http://pastebin.com/ibnD7h8v Jun 18 17:18:37 you have the issue right; you’re setting description in the onClick of the inner AlertDialog Jun 18 17:18:59 Maybe move the addMarker call to in that onClick Jun 18 17:19:03 yeah, but i want to be sure they say "OK" before i change the description Jun 18 17:19:17 hmm alright let me try that Jun 18 17:19:35 oh wait i did already Jun 18 17:19:44 can they cancel on the description, and still create the marker? Jun 18 17:19:49 the problem with doing that was i use the parameter "userMarkerposition Jun 18 17:19:51 yeah they can Jun 18 17:19:58 which i guess is the next thing i should fix haha Jun 18 17:20:18 cuz right now canceling just does nothing Jun 18 17:20:54 but yeah the problem with just moving the addmarker call into the addDesc handler is the parameter userMarkerPosition is then out of scope Jun 18 17:21:14 (under onMapLongClick(final LatLng userMarkerPosition)) Jun 18 17:22:15 you could pass userMarkerPosition into the addDescription position Jun 18 17:22:40 or you could make your activity implement OnMapLongClickListener Jun 18 17:22:50 and then store the user position in an instance variable Jun 18 17:25:35 yeah i tried the implement longclick, but i get the "Main activity must be declared abstract or implement abstract method Jun 18 17:25:38 error Jun 18 17:25:56 by pass userMarkerPosition into addDesc do you mean make it a parameter of addDesc? Jun 18 17:26:21 How do I bundle a .so dependency in my .aar library? Jun 18 17:26:37 I've found hackish solutions in the past,but I want a clear supported means to do it Jun 18 17:27:02 you got that error because you weren’t implementing the methods Jun 18 17:27:07 yes Jun 18 17:28:16 ok lemme try implementing one sec Jun 18 17:29:51 if you put your cursor on the MainActivity line, which would be underlined red, and hit Alt-Enter, Android Studio should automatically add the method stubs for you. Jun 18 17:32:02 yeah that wasnt the problem Jun 18 17:32:16 i tried doing that way earlier but was getting all types of errors Jun 18 17:32:41 i just added the entire "add marker" thing to AddDesc, then made userPosition a parameter of both onMapLongClick and addDesc Jun 18 17:32:59 so the first thing you suggested Jun 18 17:33:03 but it works! :) Jun 18 17:33:06 thank you Jun 18 17:37:57 "Yesterday, news broke that Google has been stealth downloading audio listeners onto every computer that runs Chrome, and transmits audio data back to Google. " Jun 18 17:37:59 wtf ? Jun 18 17:38:10 "news broke" ? Jun 18 17:38:12 "ok google" much? Jun 18 17:38:59 this is on desktop Jun 18 17:39:02 "Without consent, Google’s code had downloaded a black box of code that – according to itself – had turned on the microphone and was actively listening to your room." Jun 18 17:40:11 yeah, on desktop Jun 18 17:40:14 chrome supports "ok google" Jun 18 17:40:19 so it listens for the trigger commands Jun 18 17:40:20 g00s, something like samsung did? source? Jun 18 17:40:28 'dunno about "without consent" you have to turn it on Jun 18 17:40:46 bolovanos https://www.privateinternetaccess.com/blog/2015/06/google-chrome-listening-in-to-your-room-shows-the-importance-of-privacy-defense-in-depth/ Jun 18 17:41:39 so the opting-out is a build-time flag ? Jun 18 17:41:56 thx Jun 18 17:42:04 no, it's "enable ok google to start voice search" Jun 18 17:42:08 and it's opt-out by default Jun 18 17:42:27 stupid sensationalist blogs Jun 18 17:43:56 I need to get to the bottom of this; the details are important to me Jun 18 17:44:04 anyone have a better source of information? Jun 18 17:44:27 according to what i read its not opt-out by default Jun 18 17:44:33 it's opt-out by default Jun 18 17:44:39 what you read is sensationalist bullshit Jun 18 17:45:26 you only opt-in if you enable ok google, or click the microphone Jun 18 17:45:35 man, g00s is so tinfoil hat Jun 18 17:45:46 and believes that the word gullible was taken out of the dictionary Jun 18 17:45:49 i have my microphone off; but voicesearch says: Microphone Yes; Audio Capture Allowed Yes Jun 18 17:46:00 that means nothing Jun 18 17:48:02 clickbait OP Jun 18 17:49:09 How do I bundle a .so dependency in my .aar library? I've found hackish solutions in the past,but I want a clear supported means to do it. Jun 18 17:58:22 https://github.com/alamkanak/Android-Week-View/blob/master/sample/src/main/res/layout/activity_main.xml <- why does "app:" <- returns 'not bound' Jun 18 17:59:07 Does someone know a good way of letting the user input weights? (g, kg, lbs..) Jun 18 17:59:12 hrm Jun 18 17:59:15 it wroks with RelativeLayout Jun 18 18:01:44 Muchoz: + a selector? Jun 18 18:02:34 groxx, it's not very user friendly or easy to use. Jun 18 18:03:02 Muchoz: decimal input, or the UI combination? Jun 18 18:03:31 Both I guess Jun 18 18:03:33 not that I'm disagreeing with you :) Jun 18 18:03:58 It needs to start from grammes for example and if you go higher, it needs to change with you Jun 18 18:04:07 see if Withings has an API, have them stand on the scale Jun 18 18:04:38 Withings? Jun 18 18:04:57 http://www.amazon.com/Withings-WS-50-Smart-Analyzer-Black/dp/B00BKRQ4E8?tag=duckduckgo-ffab-20 Jun 18 18:05:12 wifi / bluetooth scales :) Jun 18 18:05:16 groxx, lol. It's ordering for food Jun 18 18:06:08 so by "it needs to change with you", what are you thinking? type out "1000" -> automatically switch to Kg and set "1.000"? Jun 18 18:06:52 I don't know, a plus and minus might be easy but also slow for some stuff. Jun 18 18:08:25 Muchoz: a slider that changes between g/kg at some point along the path (with a visible notch for clarity), so 1kg would be the middle of the slider etc. Jun 18 18:08:29 I literally can't find a single thing about it on Google, no designs or anything Jun 18 18:09:00 doc_savage, that wouldn't be specific enough. Jun 18 18:09:10 what are you weighing Jun 18 18:09:12 Sometimes you need 50g, sometimes 1.1kg or 10kg Jun 18 18:09:13 doh lol that's all I had :) Jun 18 18:09:29 All kinds of food: cheese, beef... Jun 18 18:09:52 Muchoz: maybe put a scrollable list next to the input? e.g. like an iOS spinner. put them in increasing/decreasing order, then they can tap the next size, or drag to make a bigger change. Jun 18 18:10:00 is beef ever below 1kg, is cheese ever above 10kg, maybe break it down on scales of items Jun 18 18:10:18 voice input! Jun 18 18:10:23 Lol Jun 18 18:10:35 60 grammes please. "Did you say 600 grammes?" Jun 18 18:12:17 The iOS version has a + - way of doing it, it works but also takes some time to figure out that you can hold it to increase it exponentially. Jun 18 18:12:39 We're starting our testing phase very very soon. Jun 18 18:13:07 I'm gonna go have dinner right now, if someone has any cool ideas, I'd love to read them ;) Jun 18 18:14:09 what is 'R' Jun 18 18:14:14 Muchoz: something like http://cl.ly/image/2v0E3M1k3m2X is what I'm thinking Jun 18 18:14:22 groxx, btw about the scrollable list, when would you give a decimal option and when not? Grammes almost never needs decimals when kilogrammes definitely does. Jun 18 18:14:41 always. do you know when it's unambiguously inappropriate? Jun 18 18:14:44 That is how I would do it right now, but as I said? Jun 18 18:14:51 Oh right Jun 18 18:15:15 Well I guess I'll just use that idea for now and I'm gonna have dinner first. If anyone else knows something better or improvements, tell me! ;) Jun 18 18:15:35 if there's a discrete list of possibilities, then sure, disable decimal when it's not possible. otherwise, if they want 1.23793 grams of X, I don't see why preventing that would be beneficial Jun 18 18:15:58 I'll make my own sort of NumberPicker Jun 18 18:16:24 I'll open source it later like all of the other stuff in the app, perhaps open source the whole app when the private API (for now) is fully worked out too. Jun 18 18:16:37 Now I really need to go have dinner ;) Jun 18 18:16:53 groxx i like the ug option :D Jun 18 18:16:59 Hello, i have Android Java Application, and i have a onTouchEvent. I maked a TickCalculator and putted that into a event. Its returning 60TPS(Executes per Second), and its stable. so my question is, is possible to increase that? thanks Jun 18 18:19:18 g00s: sometimes you want only a few molecules of cheese, so you don't overpower the other flavors Jun 18 18:19:39 gamelaster: diff hardware has different max rates Jun 18 18:19:45 Cheese amplifies other flavors though, so more is better. Jun 18 18:19:55 groxx and sometimes you want a lot, for example bacon - so that should be in tonnes Jun 18 18:19:58 and I don't personally keep 3 year old gouda molecules handy, so I'd _have_ to order it if the recipe called for it... Jun 18 18:20:01 gamelaster: and over 60 hz, it doesn't really matter because you can't update the UI faster than that Jun 18 18:20:33 lasserix: oh.. so its not possible to get finger position faster? :/ Jun 18 18:20:52 gamelaster: just test it Jun 18 18:20:59 but i remember i couldn't get faster than ~ 60 hz Jun 18 18:21:00 one sec Jun 18 18:21:06 gamelaster: you might be able to. input data is batched if it's captured fast enough / the UI lags behind, check the history of the motion event. Jun 18 18:21:14 gamelaster: you can read this: http://www.masonchang.com/blog/2014/8/25/androids-touch-resampling-algorithm Jun 18 18:21:16 it depends entirely on the device though Jun 18 18:21:22 ^^ device dependent Jun 18 18:21:43 why is it when i switch aroudn my API versoin R becomes unrecognized? Jun 18 18:22:30 bubbely: Try cleaning your project. Jun 18 18:22:47 bubbely: if you're lowering your API version, it might not be building. R is generated from your project, so it doesn't exist until it builds other things correctly Jun 18 18:23:18 groxx: My only 'error' is R Jun 18 18:23:30 although, when i build, i get this: C:\Users\David\AndroidStudioProjects\MyFirstApp\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\values-v21\values-v21.xml Jun 18 18:23:33 check your gradle window Jun 18 18:23:55 bubbely: this trouble i got too. just check imports :-) Jun 18 18:23:56 or Messages might show it Jun 18 18:24:31 groxx, lasserix: huh, hmm. I tested this too at my Windows Phone device, and i got 58hz. Hmm, so its maybe not possible to get Raw Input from touch screen for get maximum of refreshrate of touch screen ? :/ Jun 18 18:25:28 gamelaster: they're entirely different systems, anything could be the cause Jun 18 18:26:08 groxx: i know ... But, i though at Android has been more possibly to get raw data from touch screens or its will be just faster :D Jun 18 18:26:30 gamelaster: also, on android, check the MotionEvent historical values. they're batched if the device captures faster than display (a fair number of devices do). but you're unlikely to get faster than 60hz display on anything but some of Samsung's weirder phones (and then you probably need to use their API) Jun 18 18:27:19 honestly, who fucked up the proguard config for google-play-services library?! Jun 18 18:27:37 Why are public classes obfuscated >_< why are arguments of public methods obfuscated >_< Jun 18 18:27:38 wtf Jun 18 18:28:12 is there a quick way to delete multiple imports? Jun 18 18:28:15 i mean, duplicate imports Jun 18 18:28:16 groxx: i will look that, thanks. But its maybe useless, couse i need it LIVE (all the data i sending into a PC, of course, local, i didnt get any TPS loss) Jun 18 18:29:10 bubbely: I'd probably recommend you go into settings, search for "optimize imports on the fly" Jun 18 18:29:17 that'll add / remove them as necessary Jun 18 18:29:19 bubbely: organize imports shortcut. Jun 18 18:30:21 Afzal: why would it matter if they are obfuscated? Are you using reflection or something? Jun 18 18:31:14 ok, so i organized imports and i still have R unresolve ='/ Jun 18 18:31:22 Cannot resolve symbol 'R' Jun 18 18:31:37 How do I bundle a .so dependency in my .aar library? I've found hackish solutions in the past,but I want a clear supported means to do it. Jun 18 18:31:49 bubbely: make sure R is being generated. If it isn't then you have some error with your resources Jun 18 18:32:24 Hi all. Jun 18 18:32:38 surf2b1 because I can't read the arguments of methods I'm overriding, it's annoying Jun 18 18:32:56 no, why would I use reflection on public things? Jun 18 18:34:46 Afzal: what class/methods? Jun 18 18:35:09 Check that your manifest contains the activity, bubbely. Jun 18 18:36:47 surf2b1 even GoogleApiClient.Builder has some methods with argument type O Jun 18 18:36:51 like, just O Jun 18 18:37:15 what's this zze zzmx() public method for? nobody knows Jun 18 18:38:01 a nvm that O is a generic :p Jun 18 18:38:12 Quick question: Jun 18 18:38:13 I made an app with Android Studio and listed it in the play store. There is some sort of problem that users with devices running API level 16 and 17 have. The app doesn't crash but it also doesn't work like it should. Is there a way to check for language discrepancies between the API levels that might be retarding it? I have narrowed it down to a static methods' library. Jun 18 18:38:14 Can I send anyone the sourcecode? Jun 18 18:39:52 is it possible to make notifications created by third-party apps uncancellable? NotificationListenerService provides access to the notification events, but it cannot cancel the events, it seems Jun 18 18:42:42 squirrel: What do you mean by uncancellable? Jun 18 18:43:48 barq: i want to deny google calendar withdrawing notifications Jun 18 18:43:56 i keep missing events and it's bugging me Jun 18 18:44:52 groxx, you seem knowledgeable. Can I bother you with a PM? Jun 18 18:45:06 squirrel: Is that a question related to development? Jun 18 18:46:02 barq: if you know a solution that doesn't involve any development, i'm all ears Jun 18 18:46:53 squirrel: no idea, but I'm sure that you would need root access :P Jun 18 18:47:32 Is it possible to get gradle to make the aar of an android library include the version #? Jun 18 18:48:15 UberLambda: well i can probably use NotificationListenerService to create a notification identical to the calendar's and then cancel the calendar's one, but it seems like a dirty hack Jun 18 18:48:18 no root tho Jun 18 18:48:41 squirrel: you can read other notifications without root? Jun 18 18:49:13 Greenify seemed to require xposed for that IIRC Jun 18 18:52:43 anyone ever use a calendar widget that worked nicely Jun 18 18:56:21 UberLambda: you can since api 18 Jun 18 18:56:49 bubbely: I've used https://github.com/flavienlaurent/datetimepicker Jun 18 18:57:43 quinnjn: can you select multiple dates with it Jun 18 18:57:51 and can u modify the color of certain dates Jun 18 18:58:02 https://github.com/alamkanak/Android-Week-View <- im trying to get this one working Jun 18 18:58:13 looks amazing doesn't it? Jun 18 18:58:43 what must i do for my R.layout to include my activity_my.xml ? Jun 18 18:59:27 squirrel: oh, I didn't know about that Jun 18 18:59:27 Hello folks! Jun 18 18:59:34 squirrel: is there a special permission for that? Jun 18 18:59:42 LordRatte: sure, I don't mind. if it's for this problem though, you're probably better off staying in here, so others might join / so you don't have to repeat yourself if I get busier :) Jun 18 18:59:55 UberLambda: yup, look up NotificationListenerService Jun 18 18:59:59 I am having this problem when trying to insert an item to a database : https://gist.github.com/anonymous/2d44eed6a28c98614215 Jun 18 19:00:08 If someone could help me please. Jun 18 19:00:36 ircfox_: one of your values is null, in a column defined as "not null" Jun 18 19:01:47 is there a way to space the text in the checkbox widget away Jun 18 19:01:52 groxx: yes, I did debug it and checked all the var are instantiated as expected. Jun 18 19:01:59 like match parent and check on the left and text on the right or vica versa? Jun 18 19:02:48 squirrel: I'll have a look :) Jun 18 19:02:58 :3 Jun 18 19:03:17 ircfox_: in case it's not directly related to that code: I'd _strongly_ recommend never using insert, and only using insertOrThrow. otherwise insert will silently fail. it might be hiding other problems. Jun 18 19:03:55 groxx: alright. Let me test it then. Jun 18 19:05:42 Here's the suspect file, groxx: https://goo.gl/yvZmai Jun 18 19:08:46 groxx: here is the full log, after using insertOrThrow method : https://gist.github.com/anonymous/25453dd3036671d9375d Jun 18 19:08:56 what must i do for my R.layout to include my activity_my.xml ? Jun 18 19:09:53 ircfox_: are there other columns in that table? Jun 18 19:11:21 DialogFraqment for app 4.0+ should i use support or no? Jun 18 19:11:40 groxx: not really, here is the head of my databaseHelper class : https://gist.github.com/anonymous/99f3d30d9be606d19ee6 Jun 18 19:13:19 ircfox_: `KEY_REVISTA + " INTEGER NOT NULL"` and you're not inserting a revisita value. Jun 18 19:14:21 LordRatte: do you really use the "IBM437" character set? though I kinda suspect the problem is that you're calling .toLowerCase() which will behave differently depending on the device's language. Jun 18 19:15:10 ah. actually, the IBM437 might be the problem. it's not guaranteed to be supported. Jun 18 19:16:57 groxx: it's for Dwarf Fortress: hence the charset. See, the issue is that it doesn't work on anything before KitKat. KitKat and up works fine. Jun 18 19:17:21 So how do I work around it? Jun 18 19:17:24 LordRatte: aah. well it's still not guaranteed to exist :) you may want to pre-process it, or build your own decoder. Jun 18 19:17:42 groxx: ok, got it! Thank you! :P Jun 18 19:18:48 LordRatte: iirc you can use Charset.forName("IBM437") to see if the device supports it. if it _doesn't_, you'll have to do something else :| Jun 18 19:19:28 ibm437 does look pretty simple, might not be hard to handle. I've never tried building a charset / translating encodings though. Jun 18 19:20:40 I do see some java charset files coming up in a google search, they might have friendly licenses. Jun 18 19:21:04 groxx, that's excellent help. You've pointed me in the right direction. Jun 18 19:21:39 What do you do for a living, if I may ask? Jun 18 19:22:00 LordRatte: also! consider hooking up Crashlytics or just allowing the exception to crash the app. unless you're collecting those error logs somewhere. otherwise you don't really know what's happening when things don't work. Jun 18 19:22:16 Android dev :) Jun 18 19:24:08 Woah, that sounds handy. Is Crashlytics a library? Jun 18 19:24:54 library + service. as far as _hosted_ crash reporting goes, it's probably the best out there now. Jun 18 19:25:41 if you want to host it yourself, ACRA seems like the main alternative. and of course Google has some tracking, but it's crap, don't rely on it - a) it has to crash the app, and b) the user has to hit "ok" _and_ then send the report, which they almost never do. Jun 18 19:27:04 when they _do_, google's crash reports are just fine. but people actually report things somewhere around 1% of the time or _less_. Jun 18 19:31:20 Awesome. And here I've been fumbling around in the dark. Jun 18 19:31:45 Anyone attend the Big Android BBQ last year? If so, is it a good conference to attend? Jun 18 19:32:00 and what was the bbq like Jun 18 19:33:56 I have to go now. Thanks again, groxx. Jun 18 19:34:02 np, and good luck :) Jun 18 19:37:04 is there a drawback for making a large activity stack? Jun 18 19:37:31 nb-ben: not too much. mostly: it could take a long time to "back" out of the app. Jun 18 19:38:52 well, I am facing the following problem: I am making a configuration "wizard", and honestly it appears to me that each of these screens belong in their own activity, however there will be up to 10 of them depending on the user's selection Jun 18 19:39:12 yeah from ux perspective its probably best not to go more than 2-3 leves deep Jun 18 19:39:31 well, backing out would require the same amount of backs with each approach Jun 18 19:39:32 nb-ben there are libraries for that, you can use things in a viewpager Jun 18 19:40:18 I see Jun 18 19:40:20 yeah, viewpager for wizards is pretty common. when it works :) Jun 18 19:40:40 I suppose that fragments would be a winning choice for implementing each of these screens Jun 18 19:40:47 then I can stick them anywhere I like Jun 18 19:41:14 nb-ben: otherwise, you can make sure your "main" activity is at the bottom of the stack, and then `startActivity(main, CLEAR_TOP | SINGLE_TOP)` to remove everything except the main activity from the stack Jun 18 19:41:35 nb-ben https://android-arsenal.com/search?q=wizard Jun 18 19:41:58 g00s: reading Jun 18 19:42:28 Sounds like we need some more wizards Jun 18 19:42:45 i guess roman nurik has one Jun 18 19:42:54 Reminds me of perlmonks for some reason Jun 18 19:43:13 I haven't looked at the available libraries at all Jun 18 19:43:36 so I am not representing any sort of lost individual looking for a quick solution that couldn't find one Jun 18 19:45:23 created a google app engine app. uploaded, entered payment credentials, instantly got suspended because they think im not the guy owning the credit card Jun 18 19:45:27 just wow.. Jun 18 19:45:40 you don't need to enter payment credentials to use appengine... Jun 18 19:45:47 at least unless you want to enable billing Jun 18 19:45:51 pfn, i want Jun 18 19:45:53 why? Jun 18 19:45:56 ;) Jun 18 19:46:09 i need more than 28 instance hours Jun 18 19:46:16 so why do they think you dont own the credit card, probably because your name is different than on the card? Jun 18 19:46:28 ktwo, nope it isnt ^^ Jun 18 19:46:29 no idea Jun 18 19:46:40 now had to send copy of my ID and credit card. ^^ Jun 18 19:47:04 danijoo_, you know that off the bat already? Jun 18 19:47:10 but really strange.. entered information, they got accepted, a few minutes later the suspended mail Jun 18 19:47:13 pfn, yes Jun 18 19:47:24 how? Jun 18 19:48:14 i routed a part of the traffic from my legacy server to app engine and evaluated what will happen if I route all of it Jun 18 19:48:37 ok Jun 18 19:55:05 aka "mining bitcoins" Jun 18 19:55:36 no Jun 18 19:57:19 can you really still make real money with mining on normal equipment? Jun 18 19:57:21 dont think so. Jun 18 19:57:43 damn configure plugins wont open wtf Jun 18 19:58:10 danijoo_: "normal" - not for quite a while now :) Jun 18 19:58:57 you need those mining cubes and they are useless after few month right Jun 18 20:07:10 eh, the consumer-style stuff has almost never been profitable. all the good stuff is built and used immediately, because it's more profitable for the company that makes them. _plus_ it's all located where power is dirt cheap or can be stolen :) Jun 18 20:16:08 ... why does onCreateView get called twice by a dialog fragment? Jun 18 20:17:54 i dont think it is Jun 18 20:23:00 Ugh. Using Bluetooth LE on 5 out of 7 devices crashes the android bluetooth manager, and requires a reboot of the device to get it running again. Awesome. Jun 18 20:23:18 indeed Jun 18 20:24:43 Bluetooth sounds like a complete nightmare. Jun 18 20:25:37 btle on android is pretty funky Jun 18 20:26:34 "pretty funky" is a funny way of saying "doesnt work. At all" :) Jun 18 20:27:19 it does work ... for the most part, with lots and lots of care & attention to weirdness Jun 18 20:27:49 but there are some crazy bugs, for example never , never, use autoConnect=true Jun 18 20:28:51 im honestly not sure what care i can take. Calling startLeScan() causes the device's bluetooth to die (not just for my app) in a matter of minutes Jun 18 20:29:07 i have tried calling it from different contexts, UI or background, doesnt seem to make much difference Jun 18 20:29:44 that is deprecated but should work; again a few bugs - sometimes only gets first advertisement packet, always messes up 128 bit uuids Jun 18 20:30:00 liefer get the Nordic Semi master control panel, its good to poke Jun 18 20:31:08 Thanks for the tip. I tried downloading a few popular bluetooth le apps from Play. All of them behaved in the same way, crashing the bluetooth manager, and requiring a reboot of the device Jun 18 20:32:11 Perhaps im unlucky with my sample-size of devices, but still? Not very comforting Jun 18 20:32:18 liefer what device ? Jun 18 20:32:34 one of the maddening things is that nexus and samung devices often behave differently with BLE ... Jun 18 20:32:49 and surprisingly, samusng gets it right a few times where nexus doesn't :( Jun 18 20:33:15 but they also have their own dipshit bug in 4.2 i think, where connectGatt has to be called on the main thread Jun 18 20:33:29 I dont have the list of devices at hand, unfortunately. I can handle different behavior, handling crashes of android components is much more difficult :/ Jun 18 20:33:41 yeah Jun 18 20:33:56 i have seen it happen even on lollipop devices :( Jun 18 20:34:07 on a few devices using ble causes wifi to drop Jun 18 20:34:11 lol Jun 18 20:34:17 yeah, i had that one too :D Jun 18 20:35:09 At this point im either gonna go with not supporting BLE at all, or have a whitelist of like, 10 devices, that i know for certain works with BLE. Anything else? Show the user that their device sucks Jun 18 20:35:53 does Play support whitelists? that would be kinda nice Jun 18 20:36:15 i had a problem with note 4 ; tried to blacklist that - turns out there are like 50 variants Jun 18 20:37:21 a soft launch could whitelist just a handful of devices, for example Jun 18 20:37:52 I dont think you can filter on devices on Play (?) - Only on features and minimum SDK version. I really really dont like going the whitelist route, but im getting desperate :/ Jun 18 20:38:10 you can Jun 18 20:38:23 you can definitely blacklist, but its not practical in this case Jun 18 20:39:07 I added an aar library to my project, and now uni tests won't run because it's trying to get the "testClasses" task in this aar module Jun 18 20:39:07 oh okay. Yeah, BLE is not absolutely essential to my app, so i'd probably have to whitelist in code. But yeah, again, that really kind of sucks too Jun 18 20:39:10 how do I make it stop? Jun 18 20:40:16 djMax cry "uncle" ! Jun 18 20:40:36 I've been yelling other things, but not that yet :) Jun 18 20:40:49 gradle is pretty much a disaster. Or android studio, or both, whichever Jun 18 20:41:14 I can reliably crash Android studio by typing a character in a gradle file at the right place. Jun 18 20:41:31 can anyone point me in the right direction for adding a 3D model importer/viewer to my app? I was looking at using OpenGL but was wondering if there were something better Jun 18 20:41:46 i have mixed feelings about that. we could say gradle is slow, groovy sucks, etc - but when you look at the android build itself, its insanely complicated Jun 18 20:42:12 djMax, cool :). Reminds me of a bug in MonoDevelop about a year ago, typing ´ anywhere, in any file, would crash it :D Jun 18 20:42:44 which kindda sucks if you have butter-fingers and accidentally hit it :P Jun 18 20:42:57 you learn to save often. :P Jun 18 20:52:37 Does anyone else organise their code by packages ? Say keep activities in one package, keep models in other package and any extra utility classes in helper package or something similar ? Jun 18 20:53:26 Basically every serious Java programmer uses packages to organise stuff. Jun 18 20:54:10 Personally, I don't put all activities together -- I tend to organise by theme (e.g., an activity and a related adapter might be in the same package). Jun 18 20:54:36 Though I think a lot of people put all activities together, all fragments together, all custom views together, etc. Jun 18 20:56:24 I tend to do adapters/profile/ProfileAdapter, activities/profile/ProfileActivity, etc. Jun 18 20:59:55 Has anyone hear when google test lab comeing out:D Jun 18 21:00:00 I'm trying to look up on some good Android related practices Jun 18 21:00:03 i thought i read like before aug. Jun 18 21:01:24 neredsenvy: There are probably a lot of SO answers on this topic. Try googling "java package convention". Jun 18 21:02:02 neredsenvy: this is a pretty neat guide https://github.com/futurice/android-best-practices Jun 18 21:02:45 Hm.m, "java package organization" gets better results. Jun 18 21:02:48 Hmm* Jun 18 21:05:26 if you have a view pager with 10 pages Jun 18 21:05:29 and you are on page 10 Jun 18 21:05:38 and you remove index 9 from your adapters dataset Jun 18 21:05:41 and then call notify data set changed Jun 18 21:05:45 https://gist.github.com/anonymous/6d0ff33af9abb559a01d Sample from my current app any hints what I could do better or improve or avoid doing or separate ? Jun 18 21:05:50 what is supposed to happen? Jun 18 21:05:55 ie, which page is it supposed to go to? Jun 18 21:06:01 or does it not change? Jun 18 21:06:48 good question. Jun 18 21:06:49 Run a test and find out Jun 18 21:06:51 find out Jun 18 21:07:10 you asked this yesterday. you could have easily written a small test app and found out by now Jun 18 21:07:14 ^ Jun 18 21:09:06 neredsenvy: Retrofit would take care of a lot of this for you. Jun 18 21:09:09 neredsenvy: Wow, that HTTP library needs a Context to call a method that does a POST? Seems weird. Jun 18 21:09:59 s7 i am using a view pager that has been modified Jun 18 21:10:23 i am asking because being busy, i was hoping someone would know Jun 18 21:10:26 I'm using OkHttp and can easily extra model classes that don't know anything about UI stuff or Contexts (or other Android-specific stuff). Jun 18 21:10:29 of course i an write a test Jun 18 21:11:12 Yea it's a bit outdated since it's still using the deprecated StringEntity and HttpEntrity and few others. Jun 18 21:12:47 neredsenvy: In general, I would say that that method is just too surprising. I give it an Activity and it might finish my Activity? Strange. Jun 18 21:12:56 The fact that I even have to give it an Activity is weird. :D Jun 18 21:13:08 ^ Jun 18 21:14:13 It'd be more sensible for the activity to finish itself, after some object has raised an event. Jun 18 21:14:23 It responds to the event and updates the UI (or whatever). Jun 18 21:14:38 Most people would just do what quinnjn said. Jun 18 21:14:44 neredsenvy: you should just use some callback instead. Connectivity.submit(toJson(), new Callback(){ success(){ ... }, fail(){ ... }); Jun 18 21:15:58 but yeah, don't reinvent the wheel. There are some super awesome libs out there that have it solid. Jun 18 21:16:06 I'd also say that "Connectivity" should become a real object, one with `register` and `unregister` methods. Then we can work with the Activity life-cycle. Jun 18 21:16:55 quinnjn, Good point Jun 18 21:17:05 I'll first avoid this lib it's bit outdated Jun 18 21:17:12 OkHttp is good. Jun 18 21:23:20 TacticalJoke are you using AS 1.3 ? (preview 5 i guess) Jun 18 21:23:40 Nah. Still on 1.2.2. Jun 18 21:23:46 ah k :D me too Jun 18 21:23:48 Hey guys, to get the context from a Fragment, just getActivity() ? Jun 18 21:24:02 or was it groxx who was the brave one Jun 18 21:24:17 I used to update to the latest AS until that one update broke unit testing. Jun 18 21:24:19 drose379 yeah. best not to cache it Jun 18 21:24:20 Now I'm too scared. :D Jun 18 21:24:45 g00s im having an issue where im trying to cast getActivity() to a callback interface Jun 18 21:24:51 are guinea pigs brave, or merely lemmings? Jun 18 21:25:01 TacticalJoke PTSD :( Jun 18 21:25:05 But Im getting an error where its sayin MainActivity cannot be cast to This interface Jun 18 21:25:10 getActivity() can return null Jun 18 21:25:19 before onAttach() Jun 18 21:25:30 hmm, I'm trying to use the new camera2 API to completely manually control the camera, but even though I turned everything off and set any values manually, the camera is still somehow changing the color/exposure as I can see when I move the view around a light source; what could that be? and how can I turn that off? :-/ Jun 18 21:25:58 I've been on all the previews so far, haven't noticed any problems. but my use is relatively simple in many areas :) Jun 18 21:26:08 danijoo_ im not sure if its null beacause its saying MainActivity cannot be cast Jun 18 21:26:18 then its not null Jun 18 21:26:18 Doesnt that mean it has an instance of MainActivity Jun 18 21:26:21 Right Jun 18 21:26:25 So what else could the issue be Jun 18 21:26:30 then you dont implement the interface you want to cast to Jun 18 21:26:39 Why? Jun 18 21:27:17 Its just a simple Callback Jun 18 21:27:37 yes but you must implement it. Jun 18 21:27:44 thats how java works Jun 18 21:27:49 I am implementing it Jun 18 21:27:57 In the Fragment Jun 18 21:28:10 The Activity has to implement it. Jun 18 21:28:13 The fragment is created in the MainActivity Jun 18 21:28:15 Ahhh ok Jun 18 21:28:28 That sucks, should I change my fragment to a FragmentActivity Jun 18 21:28:32 I have a fragment inside the MainActivity and I overrided the onOptionsItemSelected inside that fragment but it's not working. MainActivity extends ActionBarActivity and MyFragment extends Fragment. can I override onOptionsItemSelected inside MyFragment ? Jun 18 21:28:32 So it can have its own context Jun 18 21:28:57 TacticalJoke do you think if I extended FragmentActivity instead of Fragment it would work? Jun 18 21:28:59 you should learn java before doing android Jun 18 21:29:10 and fragment is something totally different of activity Jun 18 21:29:31 are you talking to me danijoo_ Jun 18 21:29:33 fragmentactivity is just the supportversion of activity Jun 18 21:29:35 yes Jun 18 21:29:53 Oh, alright cool Jun 18 21:29:59 Thanks for the help Jun 18 21:33:12 i literally have the most ghetto internet Jun 18 21:33:22 wrong channel Jun 18 21:35:56 danijoo_ instead of a callback interface im just passing an instance of the fragment to the class that needs it, then just calling the method directly from the class Jun 18 21:36:01 What you think? Jun 18 21:36:51 what's the callback? like a click event? Jun 18 21:37:16 No like a callback where a class that is working with some data needs to call a method inside an activity Jun 18 21:37:22 Calling back to the activity Jun 18 21:37:39 like a network call? Jun 18 21:38:06 Sure Jun 18 21:38:21 That would be something you would do in another class, then give the data back to the activity Jun 18 21:38:28 why do you want your fragment doing this? Jun 18 21:39:19 I would keep the fragment UI specific, calling the activity to let it know about UI events. Then the activity can delegate or manage what to do Jun 18 21:40:46 Im not having the fragment doing this Jun 18 21:40:53 Im doing this in a seperate class Jun 18 21:41:00 And giving the data back to the fragment Jun 18 21:41:31 why can't that separate class live in the activity? Jun 18 21:42:05 i think that approach is fine Jun 18 21:42:37 Mine? Jun 18 21:42:48 but if you need context, you have to carefully think about when getActivity() is available Jun 18 21:42:54 Ok Jun 18 21:43:03 ie its not available in onCreate Jun 18 21:43:13 only after onAttach is called Jun 18 21:43:22 correct Jun 18 21:43:26 it sounds to me that you're just getting data from SeparateClass -> Fragment -> Activity. I wanna know why we can't just talk to the activity directly? Jun 18 21:43:47 Activity has nothing to do with what im doing quinnjn Jun 18 21:44:05 i think the frragment displays the datas Jun 18 21:44:07 Just Fragment->Class->BackToFragment Jun 18 21:44:10 yes Jun 18 21:44:14 activity is just because he needs context\ Jun 18 21:45:42 Right Jun 18 21:45:51 And I dont even need the context anymore Jun 18 21:49:49 Working on nesting a listview inside of a each item in a listview :) Jun 18 21:52:35 that will suck Jun 18 21:53:45 why Jun 18 21:54:47 how should the device know which list to scroll on a scroll event Jun 18 21:55:24 They are lists inside cards Jun 18 21:55:42 You could use vertical LinearLayouts Jun 18 21:55:46 Not done yet, Im gonna see how it comes out Jun 18 21:55:49 it will suck. but go ahead ^^ Jun 18 21:56:23 Ok wanna bet? :) Jun 18 21:57:18 are the listviews orthoganal to each other? Jun 18 21:57:21 yes. i bet user experience will suck Jun 18 21:57:36 orthoganal? Jun 18 21:57:40 there was a pretty big newsreader app a couple years ago that did that Jun 18 21:57:54 as in, one is vertical and the other is horizontal Jun 18 21:58:03 No Jun 18 21:58:11 Gimme a few mins and it shud be done, and we can mess with it Jun 18 21:58:28 they had a listview, and each cell contained it’s own horizontal scrollview. The big cells were categories, the scrollview inside each cell was drilling down Jun 18 21:58:57 Thats kinda what im doing Jun 18 21:59:00 But both are vertical Jun 18 21:59:20 i wont mess with it Jun 18 21:59:29 its already a mess by definition ^^ Jun 18 21:59:29 what’s the point of doing both vertical? Jun 18 21:59:46 Let me just show you Jun 18 22:00:16 It shud be ready in a few mins Jun 18 22:01:24 drose379, use exandablelistview if you have content that does not fit in a smaller cell Jun 18 22:01:36 that will give a better exp. Jun 18 22:01:50 Looked like hell, I used to use that Jun 18 22:02:02 it depends on the look and feel you’re going for Jun 18 22:02:43 Want a quick screenshot Jun 18 22:02:58 Yes. Jun 18 22:03:11 Actually, I have one but its old, lemme just get what im working on done Jun 18 22:03:15 Then Ill show it Jun 18 22:10:55 Ok guys Jun 18 22:11:04 anyone wanna see it? Jun 18 22:12:40 FOR THE LULZ Jun 18 22:12:46 caps :/ Jun 18 22:13:17 http://i.imgur.com/cY9ecmk.png Jun 18 22:13:43 i won the bet Jun 18 22:13:47 imo, vertical linearlayout would still be better Jun 18 22:14:14 What do you mean vertical linearlayout? Jun 18 22:14:28 just using a linear layout, with vertical orientation Jun 18 22:14:39 Instead of? Jun 18 22:14:52 your nested ListView Jun 18 22:15:16 So you mean the card should just adjust to the height that the children take up? Jun 18 22:15:33 id use multiple activities Jun 18 22:15:45 multiple activities? Jun 18 22:15:53 categorry programming -> new screen with list of the stuff Jun 18 22:16:14 If the user wants to enter a subject, they click on it Jun 18 22:16:20 hmm yeah, depends how many categories you're going to have Jun 18 22:16:36 if you have more than 5 in your list, i would totally do danijoo_'s suggestion Jun 18 22:16:51 Why? Jun 18 22:17:12 lots of scrolling to get to next category. Jun 18 22:17:31 I changed the height of the card to wrap the children Jun 18 22:17:37 That will reduce scrolling Jun 18 22:17:46 And it will get rid of the nested scrolling issue Jun 18 22:17:49 if its less, use exapandable listview Jun 18 22:17:51 like what if you have 20 subjects Jun 18 22:18:10 You can scroll through Jun 18 22:18:13 category expanding to show the sub elements Jun 18 22:18:23 I had that before Jun 18 22:18:36 why did you change? Jun 18 22:18:40 yeah but that's a lot of wasted UI space before the fold. Jun 18 22:18:57 I got rid of it cause im re-writing the app and am upgrading the design Jun 18 22:19:47 not a good upgrade with this nested lists. Jun 18 22:20:00 OK Jun 18 22:20:08 Thanks for checking it out guys Jun 18 22:23:18 If I set the card height to wrap content it is only showing the first item in the list Jun 18 22:24:25 Cause the listview is wrapping it to the size of the first child Jun 18 22:24:34 Ok Jun 18 22:24:37 either match_parent or linearlayout Jun 18 22:24:54 So should I just create a LinearLayout and dynamically add to that Jun 18 22:25:03 that's what i've done in the past Jun 18 22:25:13 Ok Jun 18 22:25:14 removeAllViews() when recycling the card Jun 18 22:25:29 why? Jun 18 22:25:53 because you want to recycle it and not recreate it in getView() for performance Jun 18 22:25:57 the recycled ListCard or whatever you call it would keep the old views when your adapter recycles it Jun 18 22:26:13 Oh alright Jun 18 22:26:15 Thanks guys Jun 18 22:26:20 np Jun 18 22:26:29 Im gonna replace the nested ListView with a LinearLayout and see how that works out Jun 18 22:27:04 The colors look a bit boring to me, what you guys think Jun 18 22:29:06 yeah. grey is boring. Jun 18 22:29:14 most material apps use bright colors Jun 18 22:29:36 I used Material color generator Jun 18 22:29:42 Choose a base and then an accent Jun 18 22:29:45 Grey->Light blue Jun 18 22:29:51 Shud I try two bright colors? Jun 18 22:30:04 i would make the nested listview have a horizontal orientation. Jun 18 22:30:04 Why am I asking, Ill just try that Jun 18 22:30:09 i suck at chosing colors Jun 18 22:30:11 dont listen to me Jun 18 22:30:16 ok, me too :D Jun 18 22:30:23 s7ev3r how would that work Jun 18 22:30:31 if you have a website or a logo i'd base it off that Jun 18 22:30:31 you don’t have to scroll as much to get to the next section, but you can see all the subtopics Jun 18 22:30:42 Hmm Jun 18 22:30:44 Ill try both Jun 18 22:31:02 s73v3r, but as he said there are only a few categories per view Jun 18 22:31:12 your inner listview would be set up with a horizontal orientation. You’d likely have the inner things (JSON Syntax, Pythonx, etc) be squares rather than rectangles Jun 18 22:31:14 so youll end with half empty screen when doiing horizontal scroll Jun 18 22:31:27 no you wouldn’t. not if they’re sized properly Jun 18 22:31:52 ok. so half empty views or text in 30sp size :p Jun 18 22:31:56 and he’s already got mostly empy screen right now Jun 18 22:32:07 s73v3r, thats why we said he should remove that ;) Jun 18 22:32:16 yeah, im changing that now Jun 18 22:32:27 imagine that first category had 10 elements, though Jun 18 22:32:57 i still think expandable listview would be the best option Jun 18 22:33:10 for this, maybe Jun 18 22:34:08 Hey anybody want to RFC our new library? Hoping to announce it Monday morning: http://levelmoney.github.io/velodrome Jun 18 22:34:40 do we want to submit a proposal for your library? Jun 18 22:34:54 submit comments Jun 18 22:35:04 C = comments Jun 18 22:35:17 I agree that expanded, the acronym doesn't quite work with that sentence structure but nevertheless! Jun 18 22:35:45 asarazan: pretty cool idea! Jun 18 22:35:51 Looks cool asarazan Jun 18 22:36:06 2 cools in 30 seconds awwyeah.jpg Jun 18 22:36:30 haha nice job man Jun 18 22:36:51 wait asarazan Jun 18 22:36:57 You gotta check something out of mine Jun 18 22:36:58 hm. i never had more than one onActivityResult in an activity Jun 18 22:37:24 Well you handle it all inside that one method Jun 18 22:37:25 is this @aar thingy mandatory in gradle ? Jun 18 22:38:25 no i mean.. you usually dont have multiple different requests that could callback to actiivtyResult Jun 18 22:38:31 but thats just me :) Jun 18 22:38:32 Ok guys revices version, http://i.imgur.com/J1PtG6s.png Jun 18 22:38:38 revised* Jun 18 22:38:53 better Jun 18 22:38:54 So no more inner listview? Jun 18 22:39:00 but change the padding Jun 18 22:39:06 Right, its just a LinearLayout now Jun 18 22:39:09 Too much padding? Jun 18 22:39:10 what is this? 16dp? 32? Jun 18 22:39:11 and add a divider Jun 18 22:39:17 16 Jun 18 22:39:25 make 4 or 8 Jun 18 22:39:34 basically, make it look like a listview, but not be a listview :p Jun 18 22:39:35 Actually, its 20 Jun 18 22:39:36 and there is still a divider between your cards Jun 18 22:39:43 Right, there is Jun 18 22:39:59 or just make it look like a listview, and be a listview. By using expandable listview:p Jun 18 22:40:19 drose379 you're wasting like 80% screen real estate Jun 18 22:40:25 yup Jun 18 22:40:33 where Jun 18 22:40:37 Besides the padding Jun 18 22:40:38 way too much paddings. Jun 18 22:40:39 everywhere Jun 18 22:40:47 padding of inner list, padding of cards Jun 18 22:40:47 Besides the padding Jun 18 22:40:51 ultra large icons Jun 18 22:40:53 asarazan: is this trailing @aar mandatory? Jun 18 22:41:00 Ultra large icons? Jun 18 22:41:04 Seriously haha Jun 18 22:41:04 yes Jun 18 22:41:11 I got those fresh off the google site Jun 18 22:41:16 2nd smallest option Jun 18 22:41:32 icons in tablayout was an android holo thing Jun 18 22:41:41 nobody used that since android 3 Jun 18 22:41:47 These are just to enhance the view Jun 18 22:42:16 https://www.google.com/design/spec/layout/metrics-keylines.html# Jun 18 22:42:18 heNNa-: Yeah it appears to be. Doesn't import right without it. In theory I could probably distribute this one as a JAR though... Jun 18 22:42:20 Nah, there are Material Icons for use now danijoo__ Jun 18 22:43:05 drose379, you are right. Jun 18 22:43:10 danijoo_: How do you handle results from DialogFragments? Jun 18 22:43:10 asarazan: hmm I always tested it without it - never had a problem. Was wondering if there is a specific version where it fails Jun 18 22:43:12 then its just m,y opinion Jun 18 22:43:18 but still way too much space everywhere Jun 18 22:43:31 Ok, yeah thats a face Jun 18 22:43:33 fact Jun 18 22:43:36 I need to reduce padding Jun 18 22:43:43 asarazan, eventbus or callback interfaces Jun 18 22:43:57 Do the callbacks survive lifecycle events? Jun 18 22:44:04 The event bus would work though, I agree Jun 18 22:44:06 yep Jun 18 22:44:18 they get attached in onAttach Jun 18 22:44:40 if screen rotates, onAttach is called with the new activity which implements the callback as interface Jun 18 22:44:45 Oh I see Jun 18 22:44:56 you're casting the target as the interface Jun 18 22:45:59 Does the material design support library support FAB menus? Jun 18 22:48:11 JakeWharton, Why Google Apps doesn't use Square open source libraries? Jun 18 22:48:42 desmin88 just plain fab Jun 18 22:48:45 If a coding challenge says "Please do not ​use any third party libraries which don't come with the Android SDK", that would mean I can't even use Volley then, yeah? Jun 18 22:49:16 g00s: the design lib is trash Jun 18 22:49:42 i haven't used it yet Jun 18 22:49:52 i like coordinator layout though Jun 18 22:50:06 these things; gotta wait a few point releases for bugs to be worked out Jun 18 22:54:26 chihau: a couple use one or two Jun 18 22:55:13 JakeWharton, which? Jun 18 23:00:40 I haven't looked in over a year. Retrofit was used by at least one as I've emailed with devs about it Jun 18 23:04:20 How to tell if someone has a mac? Jun 18 23:04:23 JakeWharton chihau: Yeah I remember when all okhttp apps failed on L-Preview because it clashed with a bundled version Jun 18 23:04:28 That was fun times Jun 18 23:04:37 their IRC client will tell you :p JacobTabak has quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) Jun 18 23:04:55 danijoo_: lol wonder which client that is Jun 18 23:05:34 its the default in one of the bigger clients i think Jun 18 23:05:40 cant remember which one Jun 18 23:05:47 Yeah guessing search App Store for IRC and hit download Jun 18 23:05:50 For some reason when I try to add a 1dp divider to my linearlayout after I add the textview, its not behaving correctly Jun 18 23:06:46 Currently using KitKat status bar transparency to set my status bar to my primary dark color on api 19 devices. Its working properly on screens w/o nav drawer - http://gyazo.com/0b811d7958a5fb31eba0eed6ac3a6781 Jun 18 23:06:53 drose379, still working arround expandablelistviews? ^^ Jun 18 23:07:07 Yes, I had them before, dont wanna use again Jun 18 23:07:10 If I go to my view with a nav drawer, the toolbar is not fitted to system windows - http://gyazo.com/49d90f1eaf892463b4529253f9fa69c4 Jun 18 23:08:06 Both layouts have fitsSystemWindows="true" Jun 18 23:13:57 hey.. what does it take for my activity to be listed un R.layout Jun 18 23:14:22 bubbely: you need to give it an xml file in res/layouts Jun 18 23:14:56 R.layout does not list activities. it lists xml layout files. Jun 18 23:15:32 what about under R.id. Jun 18 23:16:07 same. Jun 18 23:16:16 activties are never in R.anything Jun 18 23:16:25 R.id is for ids. Jun 18 23:17:22 bubbely, http://developer.android.com/guide/topics/resources/available-resources.html Jun 18 23:17:49 is import com.example.david.myfirstapp <- supposed to haev a .R Jun 18 23:18:20 no idea what you are trying to import Jun 18 23:18:27 if you want to import R, then yes Jun 18 23:18:34 if not, then not.. Jun 18 23:19:03 well, i have my issue it is "Cannot resolve symbol 'R'" , google recommend com.example......R but doesn't exist Jun 18 23:20:49 bubbely, just put your cursor over that error and press alt+enter for autoimport in android studio Jun 18 23:21:27 but you wanmt to add R in this case. Jun 18 23:21:34 import com.example.david.myfirstapp>R Jun 18 23:21:39 danijoo_it doesn't have the 'import' Jun 18 23:21:40 import com.example.david.myfirstapp.R Jun 18 23:21:56 hey guys i'm drawing polygons by adding markers on map then clicking each one by one in order to draw the shape http://pastebin.com/38yA8mtH is there a way i can have it automatically draw the shape instead? Jun 18 23:22:00 Could be a build state error in Android Studio, if it hasn't genResource'd yet Jun 18 23:22:16 bubbely, you might have to rebuilt the app to make it generate the R.java Jun 18 23:22:22 ok Jun 18 23:24:25 strange Jun 18 23:25:02 heres one of the first error msgs: Error:(47, 21) No resource found that matches the given name: attr 'android:borderlessButtonStyle'. Jun 18 23:25:30 this error exists in 5 differnt values-V Jun 18 23:25:41 i think if i trace it down i can find why R isnt referenced Jun 18 23:26:07 what do u think danijoo_ Jun 18 23:26:27 i think I go to sleep ;) sorry Jun 18 23:26:45 2 am here Jun 18 23:26:59 oh,k Jun 18 23:27:00 wait Jun 18 23:27:01 nm Jun 18 23:27:18 anyone else maybe help me? Jun 18 23:41:37 Does NavigationView/Drawerlayout mess with system window drawing? I'm tinting the status bar on kitkat and my toolbar slides under the statusbar even though I have fitsSystemWindows=true Jun 19 00:01:09 omg the genymotion gradle plugin <3 <3 <3 https://www.genymotion.com/?utm_content=buffer05ade&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer#!/developers/gradle-plugin Jun 19 00:01:47 desmin88, if you tint the status bar, of course it'll slide under Jun 19 00:01:54 desmin88, that's what tinting the status bar does Jun 19 00:02:37 Compare this picture: http://gyazo.com/0b811d7958a5fb31eba0eed6ac3a6781 to this one http://gyazo.com/49d90f1eaf892463b4529253f9fa69c4 Jun 19 00:02:53 With the first one my toolbar is correctly padded to not slide under, the second one does slide under however Jun 19 00:04:38 Both layout files have only one "fitsSystemWindows=true" and its on the topmost view inside them, i.e DrawerLayout and LinearLayout Jun 19 00:08:46 snaggy so much better than gyazo Jun 19 00:09:26 Slides under status bar: http://pastie.org/10247871 doesnt slide under:http://pastie.org/10247872 Jun 19 00:12:43 Plus for some fcking reason on any activity other than my nav drawer one, the status bar gets colored to the background color of the first child in the layout and not my primaryDark Jun 19 00:16:39 Even though I have primarydark set correctly Jun 19 00:19:32 Nevermind, I figured it out. To have a nav drawer slide under the status bar you have to set the status bar color to transparent Jun 19 00:19:52 It works correctly when using the nav drawer, but any other activity w/o the nav drawer will get the transparent status bar color. Jun 19 00:20:18 anyone know a good solution to this problem? Jun 19 00:23:38 helo Jun 19 00:38:13 How would I set -source 7 for the build? I am having compilation errors and the errors say to set it to 7 Jun 19 00:41:38 Fixed it w/ custom per activity themes, normal theme for all non nav drawer activites Jun 19 00:47:43 what does it take R.layout.to contain my activity_my.xml Jun 19 00:48:01 putting your layout file inside res/layout Jun 19 00:48:22 what reason would it not show Jun 19 00:48:35 hey, how can I change the -source value? I am using android studio and an error is asking me to set it to 7 Jun 19 00:48:35 cuz i have my xml file in res\layout Jun 19 00:48:40 if your build fails and R.java file is not generated Jun 19 00:50:48 how do i generate R.java Jun 19 00:50:56 my build fails because of R not being resolved Jun 19 00:51:06 it is generated automatically when you build your project Jun 19 00:51:21 post the stacktrace Jun 19 00:52:13 why the heck is Android Studio not recognizing "import android.support.v7.widget.RecyclerView;" in my adapter import when it recognizes it just fine when I add it to layout XML? Jun 19 00:52:36 can some one please help with: Error:(357, 52) error: diamond operator is not supported in -source 1.6 (use -source 7 or higher to enable diamond operator) Jun 19 00:52:41 http://pastebin.com/tikitdie Jun 19 00:52:45 z3t0: christ man its been 4 minutes Jun 19 00:52:46 z3t0, the error is self-documenting Jun 19 00:52:59 indeed Jun 19 00:53:23 pfn: But I cannot seem to figure out how to set it to 7... Jun 19 00:53:34 it tells you right there in the error... Jun 19 00:53:37 -source 7... Jun 19 00:53:43 desmin88: what do you mean? Jun 19 00:53:44 z3t0: http://stackoverflow.com/a/19470405/1331240 Jun 19 00:53:52 pfn: right but I cant figure out where to put it Jun 19 00:53:57 z3t0, read the docs Jun 19 00:54:05 dex2goat: http://pastebin.com/tikitdie Jun 19 00:54:20 bubbely: I saw it, it is useless, post the whole thing Jun 19 00:54:38 http://pastebin.com/rpHW7Pna Jun 19 00:56:08 dex2goat: that fixed it but now it says compileOptions cannot be applied to groovy.lang.closure Jun 19 00:57:56 what do you think about split RetroFit services (using same endpoint)? for example one for login and another for consume resoruces Jun 19 00:58:17 resources* Jun 19 00:58:22 we use many service interfaces Jun 19 00:58:35 grouped semantically (e.g., UserService, TweetService, DirectMessageService) Jun 19 00:58:36 i managed to get it working thanks for your help Jun 19 01:00:09 uh Jun 19 01:00:12 can smoeone help me Jun 19 01:00:14 my R isn't resolvin Jun 19 01:00:44 Using the same RestAdapter? Jun 19 01:01:28 bubbely: fix build errors and clean your build Jun 19 01:01:48 desmin88: the only build error is R not resolved Jun 19 01:01:54 then clean your build Jun 19 01:02:26 build->clean project ? Jun 19 01:06:05 pfn: Did you see what I mean regarding the pictures? it only happens on my nav drawer activities, but i cant figure out why Jun 19 01:07:06 I understand that making the status bar translucent then tinting it should make your window content slide under, but I set fitsSystemWindows to (try) to alleviate that Jun 19 01:07:29 desmin88: how do i 'clean my build' build-> clena project? Jun 19 01:07:41 bubbely: www.google.com Jun 19 01:12:16 zhntr: yes Jun 19 01:14:07 hm, my xml isnt showing up under R.layout Jun 19 01:18:51 Well apparently fitsSystemWindows="true" just isn't working on api 19 and tinted status bars. I manually added the 24dp of padding and i got the same result but its not what i want to have to do Jun 19 01:21:25 JakeWharton: I was thinking in add the authorization header for the consume services using a RequestInterceptor, but I can't change the existing RestAdapter Jun 19 01:44:20 Hey all. Is there anyone here able to chat about SoC's, specifically Nvidia's X1 within the Shield Android TV? Just a few quick questions. Jun 19 01:45:25 wrong channel Jun 19 01:45:53 desmin88, it's regarding software dev and modding, on an android platform Jun 19 01:46:35 android application development? Jun 19 01:46:39 Hello, I am having trouble with an administration app. I have the following set with a policymanager: http://pastebin.com/Pg1JWTMY but I cannot find anywhere a list of that I could look through to find what I need in order to implement everything in the paste. If you know of a list or know of the correct xml tags, please let me know. Jun 19 01:47:04 x1_SoC: might as well just ask, in case someone here does know / can direct you somewhere more specific :) Jun 19 01:47:14 thanks groxx Jun 19 01:48:31 I'll start with the output / video question first; I need to have the Shield Android TV console, connect via hdmi to a QHD cell-phone display, the same screen the LG G3 utilizes. Really need assistance with this. I am willing to pay via PayPal, or bitcoin for assistance. Jun 19 01:49:49 definitely the wrong channel Jun 19 01:50:11 desmin88, you finished trolling yet? stop typing unless you're going to supply knowledge Jun 19 01:50:31 " No bots, and no advertising please, jobs or otherwise " Jun 19 01:50:38 x1_SoC, if you'd read the topic, you'd know you are wrong with 2 things Jun 19 01:50:54 "Android application development" Jun 19 01:50:59 wow. you guys spend so much time typing, but nothing beneficial Jun 19 01:51:01 for that, yeah, probably not going to find much here :) I assume the Shield has HDMI out, so you'd primarily be looking at hdmi displays, which isn't likely to be android specific in any way Jun 19 01:51:30 groxx: right; but in regards to coding.. is there a specific kernel to help with this? Jun 19 01:51:44 for running a display? Jun 19 01:53:08 either way, dunno. and too low level for an app-dev room. #android / #android-root possibly would know something, since they're more device / custom rom specific/friendly. Jun 19 01:53:10 for the hdmi to lcd Jun 19 01:53:19 ok thanks Jun 19 01:58:28 ... there's one. Jun 19 01:59:26 *key Jun 19 02:00:56 What do you guys think of this layout: http://i.imgur.com/AuQTDdX.png Jun 19 02:02:01 is there such thing as 'colors.xml' as value? Jun 19 02:02:18 drose379: it's ok Jun 19 02:02:43 What is "Kairos"? The app name? Jun 19 02:02:47 Might be Jun 19 02:05:46 Hello, I am having trouble with an administration app. I have the following set with a policymanager: http://pastebin.com/Pg1JWTMY but I cannot find anywhere a list of that I could look through to find what I need in order to implement everything in the paste. If you know of a list or know of the correct xml tags, please let me know. Jun 19 02:06:28 is multiple fabs on cards like material? Jun 19 02:07:12 Im not sure if its correct material design desmin88 Jun 19 02:07:15 what do you think of it? Jun 19 02:07:33 in this design what do these mini fabs do Jun 19 02:08:02 So the card is a category, and the children you see are the subjects, the + button will inflate a dialog to add a new subject to the category on which the button is clicked Jun 19 02:08:59 i like the current design minus mini fabs Jun 19 02:09:42 Ok, do you think I should keep the dividers or leave them? Jun 19 02:09:53 im neutral on them Jun 19 02:09:59 Heres what it looks like without Jun 19 02:10:05 http://i.imgur.com/J1PtG6s.png Jun 19 02:10:20 dividers are better imo Jun 19 02:10:23 OK Jun 19 02:10:28 And so no fabs? Jun 19 02:10:30 Maybe just one Jun 19 02:10:36 With the option to choose a category to add to Jun 19 02:11:00 sure Jun 19 02:11:10 Cool, thanks for checking this out Jun 19 02:11:25 What about the colors? boring? Jun 19 02:12:54 Hello, I am having trouble with an administration app. I have the following set with a policymanager: http://pastebin.com/Pg1JWTMY but I cannot find anywhere a list of that I could look through to find what I need in order to implement everything in the paste. If you know of a list or know of the correct xml tags, please let me know. Jun 19 02:14:18 id prefer the colors flipped Jun 19 02:14:26 blue grey is accent, light blue is primary Jun 19 02:15:08 Interesting Jun 19 02:15:15 Thanks desmin Jun 19 02:15:29 if i use Log.D does it appear in Messages? Jun 19 02:16:04 It'll be in LogCat. Jun 19 02:16:30 wheres logcat =/ Jun 19 02:16:44 =D Jun 19 02:16:50 Alt+6. Jun 19 02:17:11 I have to hit alt twice Jun 19 02:17:11 Most appropriate gfycat url ever: https://gfycat.com/MixedImmediateBug My first fragment transaction correctly displays my fragment. The second transaction removes the previous fragment but does not make the new one visibile. Jun 19 02:17:28 Been toying with this one for a while and I cannot figure out why the first one displays, but latter transactions do not. http://pastie.org/10247974 Jun 19 02:19:21 desmin88 what you making Jun 19 02:20:43 the app itself? Jun 19 02:21:08 Yeah Jun 19 02:22:10 just an app for a website Jun 19 02:22:20 oh, cool Jun 19 02:31:50 I am leaving, now. if anyone knows of a list of that covers all those in http://pastebin.com/Pg1JWTMY or can create such a list from their own knowledge and upload that list to pastebin, please memoserv msg me with the link Jun 19 02:34:10 "Big Data for Chimps" Jun 19 02:34:52 waiting for "Big Data for Geese" Jun 19 02:35:10 So I have a viewpager container fragment that I replace out in that pastie, apparently the second transction the viewpager doesnt create any of the fragments its supposed to show Jun 19 02:36:04 Might go with light blue and teal Jun 19 02:36:19 Teal is low key nice Jun 19 02:36:34 My blinds are teal. Jun 19 02:36:36 #randomfact Jun 19 02:36:40 haha really? Jun 19 02:36:42 Must be cool Jun 19 02:37:02 TJ you down for a screenshot in a min? Jun 19 02:39:35 I can look, but my brain isn't functioning. Jun 19 02:40:03 Perfect Jun 19 02:41:43 Ce n'est pas parfait. Jun 19 02:42:00 What Jun 19 02:42:11 it's not perfect Jun 19 02:42:31 oh Jun 19 02:44:53 Can someone take a look at fragment viewpager container fragment? http://pastie.org/10247993 For some reason after replacing a previous container fragment with a new one, the new fragment doesn't correctly even create the fragments in its viewpager Jun 19 02:47:25 desmin88: I always did it through newInstance method Jun 19 02:48:01 figured it out, was using the wrong fragment manager. I needed to use the child fragment manager. Jun 19 02:48:52 icedp: thats not necessary here but thank you Jun 19 02:55:37 is onCreate the first function called? Jun 19 02:56:55 bubbely: look up the activity lifecycle Jun 19 02:57:17 just did th Jun 19 02:57:18 thx* Jun 19 02:57:32 i dont know why my Log.d isnt logging , the oncreate of my main activity =/ **** ENDING LOGGING AT Fri Jun 19 02:59:59 2015