**** BEGIN LOGGING AT Mon Apr 04 02:59:58 2016 Apr 04 03:14:55 So no one can take a shot at the input question? This is really bugging me and I'm seriously tempted to just grab my screw drivers and disconnect the ribbon cable inside. Apr 04 03:39:04 build flavors are so slick Apr 04 03:39:29 I now have a build that mocks out all network connections Apr 04 03:39:42 I can work on this in the middle of the woods if I want Apr 04 03:40:43 what's a good websocket library for android that allow you to set cookies with your upgrade request? Apr 04 03:43:17 do you use the Android Studio git plugin? Apr 04 03:43:23 there seems to be no concept of staging Apr 04 03:43:47 RustyShackleford, me? Apr 04 03:44:20 sure. I posed the question to everyone Apr 04 03:45:56 RustyShackleford, oh ok, and no Apr 04 03:46:42 then again, I haven't been with android development for too long, so i might not be the right person :p Apr 04 03:55:12 RustyShackleford i have git plugin enabled, but just use it for status mostly Apr 04 03:55:28 i do everything by command line, or sourcetree for staging Apr 04 03:57:40 good man Apr 04 03:57:58 or women, or shim or ...... Apr 04 03:58:44 I remember the day where gender just used to be male and female, those were the much simplier days to write forms Apr 04 04:12:18 ' Apr 04 04:21:27 g00s: git support in AS is quite good Apr 04 04:40:15 anyone around that can help me with an rxjava question? Apr 04 04:40:33 i feel like it's a common task but i can't seem to find a way to do it in the docs Apr 04 04:48:43 just ask Apr 04 04:50:09 hmm ok Apr 04 04:50:23 so i've set up some sample code so it's easier to explain my problem Apr 04 04:50:24 https://gist.github.com/twig/2bf756f1acde3519ce702d0aaa53b5fe Apr 04 04:50:43 what i want to be able to do is get the user to click 3 buttons before they "pass" Apr 04 04:51:07 but the observable code sees it as "click any button to pass" Apr 04 04:52:31 twig: Try concat() instead of merge(). Apr 04 05:04:00 jaana: concat() produces the same result Apr 04 05:04:18 That’s surprising, concatenated observbles should kick in in sequence Apr 04 05:05:12 that's why im surprised why my code isn't working Apr 04 05:05:22 i must be doing something fundamentally wrong in order to mess it up this bad Apr 04 05:05:39 according to the docs and guides i've seen this should work Apr 04 05:05:55 unless i've misunderstood something along the way Apr 04 05:12:23 twig: question Apr 04 05:12:31 why is line 35 .all(new Func1() { ? Apr 04 05:12:40 aren't you looking for three items to complete, not two? Apr 04 05:19:43 Vainglory: merge() returns a stream which passes in 1 boolean as the result and the stream expects a Boolean as a result (hence 2 bools) Apr 04 05:20:06 alright, valid point. still combing through it :-) Apr 04 05:21:24 63/86, how are you returning these? Apr 04 05:21:31 all good =) Apr 04 05:21:34 rather, 63-86 Apr 04 05:22:26 im not sure what you mean Apr 04 05:22:48 well, i see they're void. i was curious how you were finding out they were false or true Apr 04 05:22:52 i thought calling onNext() and onComplete() would cause the PublishSubject to finish and trigger any subscribers Apr 04 05:22:59 oh right Apr 04 05:23:04 they're button event handlers Apr 04 05:23:16 the act of clicking it is considered "true" for this example Apr 04 05:23:32 hmm Apr 04 05:25:12 are you sure 39 is what you think it is? Apr 04 05:27:45 no it problably isn't Apr 04 05:27:57 it works the same even without the all() actually Apr 04 05:31:46 that might be an issue Apr 04 05:34:21 " Anyone familiar with Android so input subsystem? " I'm not sure how to block specific subsys IDs. Does Android have device driver blacklists for specific devices in composite device? Apr 04 05:35:37 OH hell, left Apr 04 05:35:38 nvm Apr 04 05:37:49 <3 Vainglory Apr 04 05:37:59 thanks mate, for some reason all() was causing the issues Apr 04 05:38:03 twig: ha! Apr 04 05:38:10 :-) Apr 04 05:38:26 i had to turn merge() into an iterator as well Apr 04 05:38:28 that was the missing peice Apr 04 05:39:20 well, that's great that i could steer you in the right direction Apr 04 05:40:15 much appreciated Apr 04 05:40:32 it's so much neater than the hybrid hack i was trying out lol Apr 04 05:43:48 so the sample code works ... Apr 04 05:43:54 now i know why my original code doesn't work Apr 04 05:44:03 bloody referenced the wrong observer Apr 04 05:50:38 need any more help let me know :-) Apr 04 06:10:25 hi Apr 04 06:15:56 ין Apr 04 06:15:59 yo Apr 04 06:16:54 haha my galaxy s5 seems tiny when I pick it up now Apr 04 06:17:00 gotta say, I'm loving this nexus 6p Apr 04 06:17:56 is there a command in gradle plugin (experimental one) to just create the apk? I do not want to recompile the ndk code. Apr 04 06:18:04 *I have a change to the assets Apr 04 06:19:03 how to create an app to monitor a camera on android? basically the camera is not straming picture but only a chunk of continous frame Apr 04 06:21:56 HunterD: what's wrong with assembleFlavour --config-on-demand Apr 04 06:21:57 ? Apr 04 06:22:21 craptalk: What have you tried? Apr 04 06:23:31 I tried 'assemble' Apr 04 06:23:37 but it still takes to much Apr 04 06:23:43 I have no idea what it is doing Apr 04 06:24:24 HunterD: so run it with the --profile flag Apr 04 06:24:31 and see what's taking the time Apr 04 06:26:11 the assmeble was doing the release build also Apr 04 06:26:18 assembleDebug worked Apr 04 06:26:35 but a folder is still not there. the assets folder is misisng from the apk Apr 04 06:26:51 where is the content of that folder configured from? Apr 04 06:35:12 where can I read more about the android related commands of gradle? Apr 04 06:35:26 like some basic documentation on the android plugin Apr 04 06:41:27 HunterD: Gradle is a black box. Apr 04 06:41:41 If you learn more about it, write a comprehensible blog post. I will will read it. Apr 04 06:42:34 Sounds like a challenge for certain types... Apr 04 06:43:53 is there already a blog like this? Apr 04 06:44:24 a simple list with the commands and what they do Apr 04 06:45:03 HunterD, you mean "gradle tasks --all" command? :P Apr 04 06:48:08 Mavrik: yes. but with some extra documentation. 2-3 words at least to describe what happens when the command is called Apr 04 06:48:54 You have that in stable plugin, but experimental one is (!) experimental and really not ready for any kind of production use Apr 04 06:49:01 That includes lack of documentation as well. Apr 04 06:49:32 but the stable plugin does not support nkd debugging Apr 04 06:49:38 from what I know Apr 04 06:49:46 *ndk Apr 04 06:51:35 Well :) Apr 04 06:56:00 There's just not many people investing in documenting a plugin which changes it's workings and semantics a lot as it's being developed. Apr 04 07:04:32 is there in the experimental plugin a command to only build the current (modified) cpp file? I have quite a lot of source files (around 2000) and when I press 'build' with just a few cpp files modifed the build process starts to rebuild all the cpp files . which takes quite a lot of time (really, a lot) Apr 04 07:07:57 That shouldn't happen. Apr 04 07:08:15 And as far as I know, CPP build is all a single command. Apr 04 07:08:29 Do you include a file into all your 2000 files that changes? Do you have timestamps messed up on your FS? Apr 04 07:09:45 i do not include a file in all the source files. about the timestamp I don't think there is a problem. How can I check? I use windows 10 and ssd drives Apr 04 07:19:14 Any idea on how can i change the phone number is being called? I would add a prefix to it automatically Apr 04 07:29:19 *passed to the compiller Apr 04 07:29:19 what is the flag -mandroid used for? Apr 04 08:30:45 Hello, Is there any tool to make android activity flow diagrams like https://cloud.githubusercontent.com/assets/200401/8201158/9c96aa96-14d6-11e5-937b-795624218676.png Apr 04 08:50:01 Hello, i am trying to use File.setLastModified function, but it always returns false Apr 04 08:50:05 http://developer.android.com/reference/java/io/File.html#setLastModified(long) Apr 04 08:50:37 We cant force the lastmodified date on android files ? Apr 04 08:50:43 Depends. Apr 04 08:50:53 Where are those files stored, but I'd strongly advise against it. Apr 04 08:51:55 They are stored on "Phone" folder Apr 04 08:52:27 Good morning friends! Apr 04 08:52:36 Good morning Number5 Apr 04 08:52:51 whats Apr 04 08:52:55 sorry Apr 04 08:53:00 Mavrik: on the external storage directory Apr 04 08:53:16 whats the correct way to add a prefix on any outgoing call? Apr 04 08:53:18 External storage on most phones doesn't support last modified attribute. Apr 04 08:53:52 Is it possible to send a notification at a specific time? Like 2 hours from now? Or by just passing a DateTime kind of object? Or should I use Alarm for that and from there on fire a notification? (I've never used Alarm). Apr 04 08:59:54 Number5: you have to use an AlarmManager or TaskManager for things like that Apr 04 09:01:10 thepoosh, aaah I see. I was checking the doc about Notification and saw nothing about setting a time to fire :) Thank you. Well, I guess I have to play with the Alarm for the first time in my life :P Apr 04 09:03:21 HunterD: Does you compiler have a separate "build" and "rebuild" menu item/button? It should be possible to make it only rebuild the changed files. :/ Apr 04 09:19:54 How may I make diagrams like https://cloud.githubusercontent.com/assets/200401/8201158/9c96aa96-14d6-11e5-937b-795624218676.png Apr 04 09:24:10 Besides the obvious pen and paper, there's FormTool. Apr 04 09:24:34 But most people use more modern programs. Apr 04 09:25:04 The key words you want are stuff like: "OOP" "form" "object diagram" Apr 04 09:25:17 Flow charts etc. Apr 04 09:26:22 Also called design analysis Apr 04 09:26:31 Depending on the college XD Apr 04 09:28:41 https://en.wikipedia.org/wiki/UML_tools Here's a start for software like that. Apr 04 09:32:35 https://www.gliffy.com/go/publish/image/4218693/L.png Ooo, that's a nice example of UML. Apr 04 09:32:48 Not that many people I know actually use UML. :/ Apr 04 09:33:37 I prefer something a bit more compact than that and usually on paper. XD There are drag-and-drop tools to make those diagrams. Apr 04 09:34:05 Functionally, it's just a list of your inputs, your outputs, and your methods. Apr 04 09:35:11 Hmm, Gliffy actually looks like a good one. Apr 04 09:36:51 If you get into digital logic, there are schematic capture programs with a similar interface (at least, visually). Apr 04 09:56:48 alphamule, thanks Apr 04 10:02:01 is this the right play to talk about Google's AdMob Android API? Apr 04 10:02:31 right place* Apr 04 10:02:48 LegendThinker: they are called wireframes Apr 04 10:03:01 LegendThinker: and google has a tool for that with stamps/templates Apr 04 10:03:30 LegendThinker: i'll see if i can find the name of it again Apr 04 10:03:30 Xanather: from developer's point of view Apr 04 10:04:43 Napalm, that will be really helpful : Apr 04 10:04:46 :) Apr 04 10:04:52 http://www.pixate.com/ Apr 04 10:05:03 Okay will I am trying to limit the amount of interstital's shown using AdMob's site, though calling InterstitialAd.show() seems to always show an advert no matter the set ad frequency Apr 04 10:05:06 was the one I was thinking of. but its more of a prototyping thing. Apr 04 10:05:13 there is another that has those templates however Apr 04 10:06:02 LegendThinker: ^ Apr 04 10:06:03 Napalm, thank you :) Apr 04 10:14:50 LegendThinker: i found it http://pencil.evolus.vn/Default.html Apr 04 10:15:19 It has a Android 4.0 (ICS) stencil pack Apr 04 10:15:49 LegendThinker: also there's always yEd https://www.yworks.com/products/yed Apr 04 10:17:31 Napalm, Cool. You saved me a load of time :) Apr 04 10:29:01 Hi guys, i need to use PreciseCallState in Android Studio but it doesn't allor me to use it Apr 04 10:30:05 TelephonyManager.EXTRA_FOREGROUND_CALL_STATE -> cannot resolve symbol Apr 04 10:30:22 Can u tell me if u have the same issue? Apr 04 10:37:20 where did you get that Apr 04 10:37:26 it doesnt exist in http://developer.android.com/reference/android/telephony/TelephonyManager.html Apr 04 10:39:14 check here: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/telephony/java/android/telephony/TelephonyManager.java Apr 04 10:41:28 so thepoosh have u idea on why android studio give me error? Apr 04 10:42:07 are there any annotations over the variables or over the @TypeDef annotation? Apr 04 10:44:29 Ashiren: have we finally encountered something you cannot solve? Apr 04 11:34:53 anyone here? Apr 04 11:38:23 I guess Apr 04 11:40:17 probably Apr 04 11:40:30 Eplebit: are you here? Apr 04 11:41:18 partly Apr 04 11:56:08 I create an Object in onCreate in an Asynctask and need to use this Object in onResume. If the AsyncTask hasn't completed I get Nullpointers. How can I make sure the AsyncTask has completed in onCreate before starting the operation in onResume? Apr 04 12:04:51 that's a huge pain in the ass Apr 04 12:05:29 we created our own async handler to take care of that Apr 04 12:07:17 or... the real problem we had was that callbacks on our async tasks were refering to actvities that had been destroyed, I guess Apr 04 12:11:04 Usually you can just start a new AsyncTask as they are executed sequentially, but we have them on the ThreadPoolExecutor, so they are executed in parallel. Apr 04 12:11:13 better to never use asynctasks Apr 04 12:11:18 imo Apr 04 12:11:25 Then you get ANRs Apr 04 12:11:36 If everything happens in the UIThread Apr 04 12:11:39 I didn't say never use threads Apr 04 12:11:49 just never use asynctasks Apr 04 12:11:50 What would you use instead of AyncTask? Apr 04 12:12:02 FutureTask and then do .get() in onResume after starting in onCreate? Apr 04 12:12:04 more trouble than they're worth Apr 04 12:12:29 the uri.getPathSegments() doesnt return first segment Apr 04 12:12:40 http://xxx.xxx/a/123456 - doesnt return a Apr 04 12:12:41 :s Apr 04 12:12:47 is this intended Apr 04 12:13:48 ok, not http but custom thing Apr 04 12:14:20 barq, there's multiple options, but in all of them you'll still have the problem that you can't really depend on the task completion before onResume is executed without blockin Apr 04 12:14:29 you need a different solution Apr 04 12:16:41 I can block in a thread, can't I? Apr 04 12:16:53 Check if the object is null and if it is start a thread that waits Apr 04 12:17:03 sure Apr 04 12:24:43 Ashiren: please write nsfw when pasting these kind of links :) Apr 04 12:33:48 holdsworth: wait, let me change my nick accordingly Apr 04 12:43:06 Hello Everyone. I have an Bug that I dont realy know how to Fix. Apr 04 12:43:22 "Caused by: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.support.v7.widget.SearchView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/action_search. Make sure other views do not use the same id." Apr 04 12:43:47 It apears on restoring state Apr 04 12:44:32 support lib version is 23.2.1 Apr 04 12:45:26 Only if the SearchView is expanded. Apr 04 12:53:56 hi! Apr 04 12:54:31 Hey all Apr 04 12:55:09 when using the gradle experimental plugin and compilling c++ code, is it possible to specify some defines and flags for some cpp files and some other defines and flags for other cpp files? Apr 04 12:56:08 something like, for all the sources from path A use defines ADefs and flags AFlags and for sources from path B use define BDefs and flags BFlags Apr 04 13:00:09 Make separate modules. Apr 04 13:01:30 Mavrik: and can I then have dependencies between them? Apr 04 13:01:44 where can I read more on how to make a separate module? Apr 04 13:39:31 I have registered a custom layout behavior on a FloatingActionButton. My custom layout behavior is triggered when click events are performed on view elements in the coordinator layout. However, when a recyclerView within the same layout is scrolled, the custom behavior's layoutDependsOn() is never called. Please any suggestion on why this may be happening? Apr 04 14:00:59 https://github.com/requery/sqlite-android < niceeee Apr 04 14:06:26 Napalm: interesting, dont know if it's ok or not ;) Apr 04 14:07:00 true Apr 04 14:07:08 i might use it in a side project and see Apr 04 14:07:22 it came from a comment on g00s' feature request https://code.google.com/p/android/issues/detail?id=202658 Apr 04 14:11:43 Hello everyone, what’s the best way to get json from URL in android Apr 04 14:15:17 google agronaut Apr 04 14:15:22 ah Apr 04 14:15:27 not this channel :P Apr 04 14:15:32 google okhttp Apr 04 14:15:37 or retrofit Apr 04 14:15:52 spykins: probably retrofit for you Apr 04 14:16:35 Napalm: Thanks Apr 04 14:17:33 Is there is no class that i can use to fetch data from Json in android Apr 04 14:18:25 yes Apr 04 14:18:45 but its not trivial to get right Apr 04 14:18:48 There is JsonReader but i don’t know how to get the handle to json url Apr 04 14:20:02 spykins: are you trying to create Java objects from JSON>? Apr 04 14:20:17 no Apr 04 14:20:24 so what do you want? Apr 04 14:20:33 just fetch a string from url? Apr 04 14:20:43 I am trying to access a url and fetch JSONObject from it Apr 04 14:20:55 spykins: try volley Apr 04 14:20:58 did you look at the constructors for JSONObject? Apr 04 14:21:02 there is good documentation for it Apr 04 14:21:07 JSONRequest Apr 04 14:21:12 Voley doesnt work on kitkat Apr 04 14:21:16 thepoosh: he doesnt want to use any libraries Apr 04 14:21:19 or any other networking library Apr 04 14:21:23 Volley was used in the previous code Apr 04 14:21:25 spykins: you're wrong Apr 04 14:21:28 Volley does Apr 04 14:21:33 infact all of them do Apr 04 14:21:48 spykins: whats your minSdkVersion your app is to run on? Apr 04 14:22:02 Napalm: that doesn't matter Apr 04 14:22:06 volley runs perfectly on other versions Apr 04 14:22:18 but it calls onFailure in kitkat Apr 04 14:22:23 unless his target is M and therefore he needs to manually enable HttpUrlConnection Apr 04 14:22:30 spykins: that is your server Apr 04 14:22:33 thepoosh: it does if he's trying to do it himself with URLConnection's lol Apr 04 14:22:56 Napalm: nah, the basic HurlStack is there Apr 04 14:23:37 thepoosh: lol, dont you remember the hassle of 2.x and HttpUrlConnection.. lol Apr 04 14:24:11 thepoosh: http://android-developers.blogspot.co.uk/2011/09/androids-http-clients.html Apr 04 14:24:20 Napalm: of course I remember Apr 04 14:24:25 URL.openCOnnection Apr 04 14:24:28 oh myyy Apr 04 14:24:33 yea Apr 04 14:24:35 lol Apr 04 14:24:38 history right there Apr 04 14:25:03 Napalm: just wait until someone has here Socket.open Apr 04 14:25:16 lol Apr 04 14:25:17 pfn probably still uses it when he writes in VIM Apr 04 14:25:21 haha Apr 04 14:25:33 pfn: sorry man, but that was funny Apr 04 14:25:36 sorry for the beep man Apr 04 14:26:12 I really don’t know how i can get volley to work Apr 04 14:26:13 Napalm: I'm considering teaching my kid programming by making her sit next to a PC with VIM open Apr 04 14:26:21 spykins: read their docs Apr 04 14:26:47 omg, i just realised I've been writing android apps for 6 fucking years Apr 04 14:26:50 :O Apr 04 14:27:22 Napalm: 4.5 years here Apr 04 14:27:42 mandatory party when you reach 5 Apr 04 14:27:45 :D Apr 04 14:27:48 So could someone clarify for me will lambdas be supported (without using something like retrolambda) on android versions < N? Do I just need to use the N build tools, and it will work back to whatever minsdk I have? Apr 04 14:28:06 yes and yes and yes Apr 04 14:28:10 hows that truckcrash Apr 04 14:28:11 spykins: http://developer.android.com/training/volley/request.html#request-json Apr 04 14:28:48 truckcrash: did you read this ? https://developer.android.com/preview/j8-jack.html Apr 04 14:29:07 The Android N bases its implementation of lambda expressions on anonymous classes. This approach allows them to be backwards compatible and executable on earlier versions of Android. Apr 04 14:29:14 In order to use the new Java 8 language features, you need to also use the new Jack toolchain Apr 04 14:29:19 so to clarify Apr 04 14:29:44 yes. you need to use the new tools. and yes it is backwards compatible. Apr 04 14:29:55 Ok great, Thanks! Apr 04 14:30:04 but as of now, the tools are still "preview" aka beta Apr 04 14:30:11 yes, indeed they are Apr 04 14:30:15 :) Apr 04 14:30:33 i've been using retrolambda for a few years now.. and it suffices for me Apr 04 14:31:20 hopefully soon, you wont have to suffice with it. Apr 04 14:32:37 Hey I have a form to fill out in a layout... when i click the edittext it blocks the form... Apr 04 14:32:51 what's the right way about getting the keyboard to block the edittext. Apr 04 14:32:58 what? Apr 04 14:33:00 lol Apr 04 14:33:05 block? Apr 04 14:33:39 Sorry. they keypad comes up and blocks the edittext. Apr 04 14:33:47 How do you guys deal with this? Apr 04 14:33:49 not blocks.. you mean overlaps Apr 04 14:34:32 best option. place your layout in a ScrollView (since its flagged with isScrollContainer) the Window will detect that and apply adjustResize to the softWindowInput flags Apr 04 14:34:40 got it? Apr 04 14:34:48 hey guys, Apr 04 14:34:49 simple around your layout Apr 04 14:35:07 Sweet Apr 04 14:35:15 Let me try that.. Thanks... Apr 04 14:35:43 TinFury: its only a suggestion to the UI. if you want to always force resize.. (i suggest so) add android:windowSoftInputMode="adjustResize" to your in your manifest also. Apr 04 14:36:12 inside an APK there is res directory (not compiled resources) and resources.arsc (compiled resources). why keep both? Apr 04 14:36:26 Napalm, Thanks.. Apr 04 14:36:54 bytefire: resources.arsc is only "values" resources. res/ dir contains files. Apr 04 14:37:09 TinFury: did it work for you? Apr 04 14:37:19 ah i see Apr 04 14:37:23 lol... I'm not even there yet Apr 04 14:37:28 I'll come back and let you know. Apr 04 14:37:43 I'm slow.... It'll take me a little bit Apr 04 14:39:22 Napalm, you led me to this http://developer.android.com/training/keyboard-input/visibility.html and it's perfect. Apr 04 14:40:29 TinFury: if you are doing a form you should add android:nextFocusForward and android:nextFocusForward at least to your fields. Apr 04 14:41:18 eh, I. don't get it but ok Apr 04 14:41:38 :D Apr 04 14:48:34 i am getting "Error while retrieving information from server. [RH-01] when i open Playstore, what to do? on samsung duos Apr 04 14:49:10 Hi guys, I perform several http requests in several fragments. Sometimes I perform same request two fragments. Is it a good idea to put the http request handling in a singleton? This way the fragments are a little bit shorter and more readable. What do you think? Apr 04 14:49:31 ovrflw0x: nothing, its not your problem. I suppose your could try clearing Play Store's app data from settings. Apr 04 14:50:49 Napalm, i cleared google playstore cache, data forced stop, also of google services framework, removed google account and readded but problem still persists Apr 04 14:51:18 ovrflw0x: then its obviously not a problem on your device Apr 04 14:51:25 do most of you guys here create a gradle configuration if you want to switch to using a local vs remote dependency? Apr 04 14:51:34 Napalm, then what to do? Apr 04 14:51:41 nothing Apr 04 14:51:50 Napalm, are you a troll? Apr 04 14:51:53 just wait for the servers to be fixed Apr 04 14:51:55 no Apr 04 14:52:16 Napalm, who says playstore server is down? Apr 04 14:52:27 "Error while retrieving information from server. [RH-01] Apr 04 14:52:34 thats all you've given us Apr 04 14:52:36 Number5, I'd say it's probably a better approach if you're duplicating your code. Also, look into reducing your business logic from your fragments. Apr 04 14:52:41 Napalm, have you googled that error? Apr 04 14:52:48 then you would know Apr 04 14:52:58 so your device cant access the server for whatever reason Apr 04 14:53:12 .. Apr 04 14:53:43 since you've cleared the app data and are also online.. its not your device Apr 04 14:54:00 so, its your connection or the servers Apr 04 14:54:22 Napalm, can you check if google playstore server is down or not? Apr 04 14:54:55 no, because its your nearest end-point that will be responding.. did you look at logcat? Apr 04 14:55:03 no Apr 04 14:55:13 *rolls eyes* Apr 04 14:55:18 dsardari, why is duplicating code better? My fragment is not that large by the way, it's just it doesn't feel good to duplicate code. I'm not really convinced. Apr 04 14:55:59 Number5, I missed a NOT in there, sorry :/ complete opposite of what I wanted to say. Apr 04 14:56:01 Number5: he said your idea was better Apr 04 14:56:34 Ooh hahaha, thnx :) Apr 04 14:56:45 dsardari: or a comma between "approach" and "if". Apr 04 14:56:56 dsardari: my mind added that when I read it Apr 04 14:57:19 yeah, i'm not functioning very well today. lol. Apr 04 15:00:17 I want to use adb over wifi, but use mobile data for internet? Apr 04 15:03:28 is there a generic (i.e. not app specific) way to intent a qr code scan? something like "this app intends to scan a qr code, provide/launch *any* suitable app for this"? Apr 04 15:06:30 BlessJah: good luck with that Apr 04 15:07:41 de-facto: the classic one every uses is zxing.. most of the QR respond to its implicit intents Apr 04 15:07:47 why you think this is impossible? is there kind of hardware issue, like shared radio or antenna for mobile and wifi? Apr 04 15:14:36 Napalm yeah i know, does that mean there is no generic way of doing qr scan intents (not app specific)? i guess you mean with implicit intents to hardcode the qr scanner app specifically (like zxing) Apr 04 15:22:34 no, zxing has a generic intent Apr 04 15:22:46 it is not app specific and any app can respond to it Apr 04 15:26:30 pfn do you talk about this here? https://github.com/zxing/zxing/blob/master/android-integration/src/main/java/com/google/zxing/integration/android/IntentIntegrator.java Apr 04 15:28:27 http://pastebin.com/6JUJdAun in this class, when fetching the url's and applying them to the imageViews I get an URL returned into the array, but picasso isn't doing anything with it. Do I need to specify which imageview the data from the url will go into? Apr 04 15:29:06 hey Napalm what are you up to Apr 04 15:29:34 g00s: did you get the notification of the comment on your support-sqlite feature req? Apr 04 15:29:40 that boilerplate... Apr 04 15:29:49 Napalm yeah i just saw that ... are you behind it somehow ? Apr 04 15:30:04 nope Apr 04 15:30:13 but cool all the same Apr 04 15:30:18 yeah :D Apr 04 15:30:31 i'm wondering how its different that the sqlite.org version Apr 04 15:30:44 i read the readme.md on the github page.. looks thorough Apr 04 15:31:32 yeah it seems they are using the aosp tests Apr 04 15:32:03 Napalm performance difference blows be away haha Apr 04 15:32:11 i guess thats 3.9.x for ya Apr 04 15:32:35 hey guys... can i simulate the pression of a dialpad button while in a call? Apr 04 15:34:46 Napalm is there a way, given some view container ID r.id.foo, to just tell the fragment manager to remove whatever fragment is attached to it ? Apr 04 15:35:13 erm. Apr 04 15:35:14 without knowing what is in there exactly atm Apr 04 15:35:18 findFragmentById and remove? Apr 04 15:36:31 yeah, brain fog lol. that will work :P Apr 04 15:42:21 g00s: HAI!!! Apr 04 15:43:00 thepoosh lol , the smell of napalm in the morning - clears the brain fog Apr 04 15:43:13 :D Apr 04 15:43:15 well, it's 18:45 here Apr 04 15:43:25 but still, I love me some Robert Duval Apr 04 15:43:44 it's 00:43 here :( Apr 04 15:43:56 gordon_ the night is still young ... Apr 04 15:44:02 yeah Apr 04 15:44:02 gordon_: you're in china? Apr 04 15:44:05 japan Apr 04 15:44:11 coolz Apr 04 15:44:34 that's why you're always awake when I get to work Apr 04 15:44:39 makes a lot of sense now Apr 04 15:44:51 I am *always* online Apr 04 15:44:59 that's your secret? Apr 04 15:45:02 yes Apr 04 15:45:14 gordon_ scala popular in japan ? Apr 04 15:45:21 not really Apr 04 15:45:29 scala.js is getting popular here Apr 04 15:45:52 well, they orginise biggest scala conference Apr 04 15:45:53 i think wasm will be great for all those .js things Apr 04 15:45:54 so yeah... Apr 04 15:46:06 scala.js is greate Apr 04 15:46:10 *great Apr 04 15:46:11 gordon_: found this for you Apr 04 15:46:12 http://i.memecaptain.com/gend_images/jV4XMQ.jpg Apr 04 15:46:16 for next time Apr 04 15:46:21 haha Apr 04 15:46:29 thank Apr 04 15:46:31 s Apr 04 15:46:37 it's all about the reference Apr 04 15:46:49 * thepoosh is waiting for a Cpt. america reference Apr 04 15:47:27 not now Apr 04 15:47:37 need to make dagger and android project to work Apr 04 15:47:56 and gradle is not helpful Apr 04 15:48:03 pfn im not sure if i understood you correctly. What i mean is having app X to intent scanning an qr code. Can app X have an generic intent for scanning qr codes (and therefore launch *any* qr scanner Y providing that functionality)? Apr 04 15:49:07 de-facto, IntentIntegration like you posted is basically that Apr 04 15:49:22 just remove the specific zxing context request Apr 04 15:53:53 pfn can you point me to a line for what you mean with context? it seems it uses that BS_PACKAGE = "com.google.zxing.client.android" on several places https://github.com/zxing/zxing/blob/master/android-integration/src/main/java/com/google/zxing/integration/android/IntentIntegrator.java#L121 Apr 04 15:55:04 de-facto, just use the action Apr 04 15:56:46 oh, that one is dumb, it doesn't do by action Apr 04 15:56:49 it goes straight to activity Apr 04 15:56:54 yeah, don't use that as an exmaple Apr 04 16:04:52 hey guys, any idea how to use 4:3 (640x480) aspect ratio for preview size on every android device, and app is locked landscape, I used TextureView and it is streched, I used matrix and set it on camera preview transform, but it doesn't work perfect, it is kind of wrong, can't explain exactly, do you guys have any idea? Apr 04 16:05:41 kinda but not exactly Apr 04 16:06:05 it is hard to explain how I see it :) Apr 04 16:06:16 printscreen will do the trick Apr 04 16:06:31 you will not be able to see what is wrong :D Apr 04 16:07:11 http://pastie.org/10785285 Apr 04 16:07:25 this is code that i use to scale textureview Apr 04 16:15:45 mbarisa, so what are you doing with cv? Apr 04 16:22:25 hey folks, quick question re : android studio 1.5.1 /gradle ... does the configuration in build.gradle, take precedence over the configuration information in the AndroidManifest.xml ? Apr 04 16:22:36 is it ok to have all the buying features on the website, and the android app simply has a link to the website like "Buy something" Apr 04 16:22:52 then you do all the shopping on the websi9te Apr 04 16:23:07 are you talking IAP stuff? Apr 04 16:23:11 for unlocking app features? Apr 04 16:23:39 well I mean, I can't do credit card stuff in my app, but can I still do that on my site and not break the agreements Apr 04 16:23:49 i don’t think so Apr 04 16:24:24 further, users will be more hesitant to give their info to your fly-by-night website Apr 04 16:24:50 well we already have the ecommerce website, that's how the customers buy services for their phones Apr 04 16:24:58 they’re going to go into it having a mind to give you money, and by throwing up hurdles, you’re eroding that Apr 04 16:25:01 they topup and buy pins etc Apr 04 16:25:30 once again, what are you asking about? Apr 04 16:25:38 is this IAP for unlocking parts of the app? Apr 04 16:25:40 or what is it? Apr 04 16:27:15 well wondering if it's 'against the rules' to sell things off app, but still have a link in the app which simply launches the android browser to our existing ecommerce site Apr 04 16:27:24 what kind of things? Apr 04 16:27:33 pins which give you minutes/sms/data Apr 04 16:27:33 if it’s physical things, then no Apr 04 16:27:41 no these don't exist anywhere Apr 04 16:27:44 it's like service Apr 04 16:27:58 for instance, we don't shipo Apr 04 16:28:09 they just get some cell phone service Apr 04 16:28:18 Well, some apps like eBay come to mind. Or "Buy NASCAR/NFL/etc." ads for sports titles? Apr 04 16:28:34 you might be able to get away with it Apr 04 16:28:37 reson i am asking is i was trying to have my projoct use holo dark, and I keep getting rendering errors, saying its not in the dependencies, when i google that error .. most of the answers tell me to "be sure to have imported right appcompat-v7 library in your project structure -> dependencies" ... not sure where that person is refering to ...http://stackoverflow.com/questions/29194479/android-studio-rendering-problems-the-following-classes-could-not- Apr 04 16:28:37 be-found Apr 04 16:29:01 hrm ok Apr 04 16:29:20 because it's not like the app is involved in the ecommerce experience or anything Apr 04 16:29:21 Now, if you have premium items in a Pay2Win... You'd damn well better make sure your app isn't going to get pulled for not using the App Store. Apr 04 16:30:43 Is it incorrect to assume that OnDestroy() will always be called ? Apr 04 16:31:13 (Otherwise people would be able to set price to $0, and then sell all game items with a 3rd party store - where is Google getting paid?) <--- Reason it's likely not allowed. Apr 04 16:32:09 I guess a link to the website is easy to remove later, so not a big deal Apr 04 16:32:14 Also, random app asks for my credit/debit card numbers? NOP Apr 04 16:32:17 cart_man: that is what's written in the documentation Apr 04 16:32:17 :P Apr 04 16:32:22 so yes, it's a mistake Apr 04 16:32:35 alphamule: we already ask for the cc # on the website, and people give Apr 04 16:33:01 Woot Apr 04 16:34:18 Anyone ever notice that if you have a bash-script that calls "./gradlew connectedCheck" in a loop, the first 3 times take 3 minutes, but subsequent times take 4 hours? Apr 04 16:35:20 ?? no one knows the answer to my question ? Apr 04 16:35:45 ghostD0g: if they did, they would have answered Apr 04 16:36:05 ghostD0g: Your gradle build file has nothing to do with your apps theme Apr 04 16:37:23 How do I handle multiple layouts that are almost the same. Apr 04 16:37:33 where is structure -> dependencies that is being refered to here http://stackoverflow.com/questions/29194479/android-studio-rendering-problems-the-following-classes-could-not-be-found Apr 04 16:38:01 is i diffrent in and Studio 1.5.1 ? Apr 04 16:38:06 is it Apr 04 16:38:33 ghostD0g: gradle can overwrite your manifest, yes Apr 04 16:38:50 ghostD0g: not sure about the actual problem you're having, though Apr 04 16:38:55 explodes: not for what hes asking Apr 04 16:39:17 ghostD0g: they're just talking about your build.gradle file, which lists all of your projects dependencies Apr 04 16:39:31 when i attempt to change the theme in the manifest .. holo doesnt exist Apr 04 16:39:37 ahh ok Apr 04 16:43:25 thank you Apr 04 16:55:00 pfn: sorry, was away, image tracking basically Apr 04 16:55:47 and I don't find OpenCV camera good enough, so wanted to use Android native camera.. Apr 04 16:56:09 and I need image 640x480 largest, smaller is fine, but 640x480 is great Apr 04 16:56:56 mbarisa, dunno about opencv camera,b ut yeah, using a preview image is easy Apr 04 16:57:00 that's what I'm experimenting with Apr 04 16:57:13 g00s: what do you think of this? Apr 04 16:57:14 https://redd.it/4d9zpi Apr 04 16:57:21 i use libgdx to show 3D model and scene above camera, and if i scale TextureView as said above, it is not shown perfectly on same position as it should, it translate to wrong position Apr 04 16:57:21 I have a bunch of activities... That are mostly basically the same... Apr 04 16:57:23 seems to me like a way to make AS way slower Apr 04 16:57:44 and i am sure it is camera issue, because if i don't scale it in it stays on good position, just camera looks so streched it is wrong :D Apr 04 16:57:45 What is it I create to share the similar parts so I don't ahve to rewire the code for each activity? Apr 04 16:58:31 pfn: i need small image, and don't want to lose time on resize, and then calculating where to position that in this camera size Apr 04 16:58:47 this way both my GDX viewport and camera are same size and it is easier to work with Apr 04 16:59:06 mbarisa, indeed Apr 04 16:59:08 what do you use? textureview as well? because SurfaceView cannot be scaled same way Apr 04 16:59:34 I'm just mucking with the surfaceview at the moment, but the end goal is that I will hide the surface beneath another view anyway Apr 04 16:59:40 i.e. don't show the camera preview Apr 04 17:00:52 i don't have a clue anymore how to get it right, and why when it is streched it is positioning right :D Apr 04 17:01:20 ah :D Apr 04 17:01:54 do you maybe have an idea how to get scaled 4:3 camera with TextureView differently then I posted? Apr 04 17:02:05 or surfaceview will be fine if it is doable that way at all Apr 04 17:02:33 I hate when I lose days on idiotic issues :D Apr 04 17:02:50 dunno, I'm just working off of FacePreview.java in the javacv examples Apr 04 17:04:02 thanks anyway :) Apr 04 17:04:34 pfn: it is much easier to prototype with OpenCV camera :) Apr 04 17:04:47 * pfn shrugs Apr 04 17:04:49 easier to draw dots, lines and stuff :) they provide that in their api Apr 04 17:04:58 not having much difficulty with screwing around with facepreview Apr 04 17:05:14 ok Apr 04 17:05:55 I'm having more problems with passing bad arguments to opencv and having everything stop afterward Apr 04 17:06:42 mbarisa, https://github.com/pfn/android-javacv-sample/blob/master/src/main/scala/com/hanhuy/android/vision/FacePreview.java Apr 04 17:06:46 :D Apr 04 17:06:48 just screwing around Apr 04 17:07:28 doesn't do much of anything Apr 04 17:08:06 is that faster way of getting image in YUV? Apr 04 17:08:50 and rgba? Apr 04 17:08:50 I haven't really benchmarked it, but it performs somewhat ok Apr 04 17:08:53 Mat mYuv = new Mat(480+480/2, 640, CvType.CV_8UC1); Apr 04 17:08:54 mYuv.put(0, 0, cameraData.data); Apr 04 17:09:05 i use OpenCV api for that Apr 04 17:09:13 Imgproc.cvtColor(mYuv, mGray, Imgproc.COLOR_YUV2GRAY_NV21); Apr 04 17:09:16 like that Apr 04 17:09:19 sorry for ugly paste :D Apr 04 17:10:01 I haven't tried to optimize anything yet since I'm just in the experimenting phase to see wtf it is I want to do Apr 04 17:10:08 :D Apr 04 17:10:48 I wanted to try handtracking, but there isn't any good algorithm, there's basic skin detection based on h/s values, but it's pretty shitty, etc. Apr 04 17:10:52 I am mostly done with the algorithm :D i have some drifting to fix and some other issues Apr 04 17:11:21 but basic functionality is here, and it is somewhere around 30fps Apr 04 17:11:49 * pfn just wants something cool to submit to androidexperiments for an IO ticket chance Apr 04 17:11:52 but looks like it won't happen Apr 04 17:11:58 but I hate iOS right now, their single core score on benchmarks destroys all androids :D and I can compare 2 images only on single thread :D Apr 04 17:12:29 Some algorithms don't lend themselves to multiple processors, as well. Apr 04 17:12:29 you can always watch online :) Apr 04 17:13:07 Android needs an easy way to use compute shaders like iOS can with metal Apr 04 17:13:47 mbarisa, still hitting random exceptions with protify? or did those go away Apr 04 17:13:48 fragmentation is going to kill us :D Apr 04 17:13:59 pfn: those went away :D Apr 04 17:14:06 nothing that try catch can't solve haha Apr 04 17:14:09 oh opengl es 3.1 has compute shader support! we've already go it! Apr 04 17:14:13 you shouldn't need to try/cache though... Apr 04 17:14:26 :D yeah, it was on only one place Apr 04 17:14:47 and can't figure out why when i run it with android studio directly it works fine, and when i use protify it breaks Apr 04 17:14:55 it is runtime exception Apr 04 17:15:10 so i have no idea how can that be related to protify Apr 04 17:15:24 got a stack of the exception? Apr 04 17:15:32 and i wasn't debugging it a lot, made it work and let it go, since i am not on that project Apr 04 17:15:39 I see Apr 04 17:15:45 hmm, i think i sent it on friday Apr 04 17:15:59 it was some runtime expection, don't know which one exactly Apr 04 17:16:04 i can send you in the morning Apr 04 17:16:12 but it speeded up the build Apr 04 17:16:25 yeah, it's much faster Apr 04 17:16:32 we migrated that project finally from IntelliJ Apr 04 17:16:39 60MB apk Apr 04 17:16:43 big apk Apr 04 17:16:58 all modules were manually there, a bunch of stuff outdated Apr 04 17:17:13 so it took a week for a developer to migrate and update couple of libs Apr 04 17:17:21 for example google play services 5.0 :D Apr 04 17:17:40 and it is an app that has around 500k users :D Apr 04 17:18:14 for us that is a lot :D so went to bite the bullet :D and clean that up a little :D Apr 04 17:18:29 indeed Apr 04 17:18:33 I woulda just stuck with intellij... Apr 04 17:18:47 thepoosh yeah i just saw that, i usually find those things with DaisyDisk Apr 04 17:18:48 it took 1.5 min to build each time Apr 04 17:19:07 now it takes around 20 secs on same machine Apr 04 17:19:19 so protify++ Apr 04 17:23:50 how do you clear a listview Apr 04 17:23:59 i keep trying the things on stackoverflow, but not working Apr 04 17:24:23 guideX: why do you use ListView instead of RecyclerView? :) Apr 04 17:24:49 I'm still trying to figure out how to get recyclerview's working Apr 04 17:24:55 I haven't figured them out yet Apr 04 17:25:24 clear adapter Apr 04 17:25:30 and notifyDatasetChanged Apr 04 17:25:50 this doesn't exist .. model.lvwPhones.getAdapter().clear(); Apr 04 17:25:58 the .clear part isn't present Apr 04 17:26:18 also tried this.. model.lvwPhones.setAdapter(null); Apr 04 17:26:48 i am not sure what you are doing :) but this model.lvwPhones.setAdapter(null); doesn't look promising Apr 04 17:27:01 wow, alphabet / nest are bricking purchased revolve devices - not just discontinuing support Apr 04 17:27:32 mbarisa: hrm ok Apr 04 17:27:45 well I'll keep looking around for a way to clear it Apr 04 17:29:03 Hi everyone, I'm new to Android development, and had got a question Apr 04 17:29:12 I'm a huge fan of Java 8 features and I want to develop for KitKat and later. Can I use Java 8 without relying on Retrolambda? Apr 04 17:29:31 wait 3 months then yes Apr 04 17:31:22 SHC not all language features are backported to kitkat, you'll have to compare Apr 04 17:31:37 SHC, nope. Apr 04 17:31:46 do you guys create a gradle configuration if you want to switch to using a local vs remote dependency? or some other method? Apr 04 17:32:07 dsardari, what do you mean local vs. remote? Apr 04 17:32:19 SHC and if you were new to android dev, i'd just say minSdk=21 for any future project and forget about kitkat :P Apr 04 17:32:23 Is FLAG_UPDATE_CURRENT not available in Android 4.4.4? The notification I’m updating on that version keeps disappearing and appearing again when updated. Apr 04 17:32:25 All I need are Lambdas and Method references, since those are what are supported in GWT (my app runs on desktop and GWT at the moment, with single codebase) and wanting to add android backend to it. Apr 04 17:32:25 Looks awful Apr 04 17:32:53 I think I can wait for three months, thanks guys Apr 04 17:33:04 lambdas might have been backported pretty far, but I wouldn’t count on it Apr 04 17:33:16 g00s: Unfortunately, I have an old device, Galaxy Core Duos running Kitkat Apr 04 17:33:32 I don't want to use my new One Plus X for development Apr 04 17:33:33 Mavrik, so we have a library on artifactory, but some times I need to modify and test that library with the android client. I want to be able to switch between using the local jar vs the one in artifactory easily. Apr 04 17:33:50 hmm, good question Apr 04 17:33:53 Install it to local cache_ Apr 04 17:33:54 ? Apr 04 17:33:58 With a snapshot version? Apr 04 17:34:05 That's what we usually did with Maven repos Apr 04 17:34:26 what do you mean by install it to local cache? Apr 04 17:35:40 @dsardari http://blog.james-carr.org/2012/03/14/gradle-deploying-an-artifact-to-the-local-cache/ Apr 04 17:39:43 hmm i see. yeah that might work. Apr 04 17:41:57 mbarisa, 20 seconds is still kinda long, shouldn't be that long with protify still, but I have another optimization in next release that will makei t a little faster Apr 04 17:42:13 there's a few seconds eaten up by copying class files around Apr 04 17:42:24 :D let me know when to test :P Apr 04 17:44:27 mbarisa, but you are running sbt in interactive mode instead of one-off, right? Apr 04 17:44:43 yes Apr 04 17:45:05 you mean interpreter style? :) Apr 04 17:45:06 mbarisa, can you eval sys.props("sbt.task.timings") = "true", run protify and pastebin the timings from that? Apr 04 17:45:10 yes, interpreter style Apr 04 17:45:50 sure thing, i'll inform you tomorrow morning :) don't have that project cloned on this machine :) Apr 04 17:46:22 you can set it back to "" afterward to clear the flag Apr 04 17:46:58 resource packaging can be slow in big apps, though, I don't have a solution for that Apr 04 17:47:09 yeah, i think that is the issue Apr 04 17:47:15 there is 50mb of images Apr 04 17:47:38 yeah, that is probably the slow part, there's some new support for res-apk splitting in M and stuff, but no idea how it works to figure it out Apr 04 17:47:50 and partial-apk uploads Apr 04 17:48:24 I have string-array in xml whose entries I have written in sorted order. But when a different language is selected, I want it to be sorted using that language's rules. How can do this? Apr 04 17:48:40 minas114, use a localization for that language specifically Apr 04 17:48:46 pfn, I am Apr 04 17:48:51 uh, but yeah, that wouldn't work Apr 04 17:48:54 pfn, can I localize an array? Apr 04 17:48:55 just sort after you retrieve it Apr 04 17:49:01 you can't localize the order Apr 04 17:49:36 pfn, Ok, but how do I sort it? Arrays.sort(getResources().getStringArray(..)) doesn't work Apr 04 17:49:46 sure it works Apr 04 17:50:21 pfn, Ok let me see if I'm doing something stupid Apr 04 17:50:23 anyone know why interstitial admob frequency capping is not working? I assume after calling InterstitialAd.show() enough times it should just start ignoring the call? Apr 04 17:52:43 pfn, http://pastebin.com/Qj8Fm9nc and the xml is: http://pastebin.com/9jRbmbuY Apr 04 17:57:17 Hi there, I need some help, I'm trying to build a custom view that will be something like this: https://gist.github.com/wviana/9a9ce5b8cb724009aae83c308057c5fa should I make it as Custom View, Apr 04 18:06:49 hi, I have a class that implements parcelable using @parceler Apr 04 18:07:44 how can I pass it to a method that accepts anything that implements parcelable? Apr 04 18:08:33 I tried something like myFunc() but of course it doestn work because it's implements and not extends Apr 04 18:08:42 just pass Parcelable into the method Apr 04 18:09:01 i'm getting nullexception when I do :( Apr 04 18:09:15 putParcelable(Bundle bundle, Parcelable p){ Apr 04 18:10:48 whats the NPE on? Apr 04 18:11:45 so I call the method like this Apr 04 18:11:46 putParcelable(bundle, (Parcelable) event); Apr 04 18:12:07 and p ends up null inside the method Apr 04 18:12:25 but if I dont cast it, the IDE wont compile Apr 04 18:12:47 does event implement Parcelable? Apr 04 18:13:24 type Event cannot be converted to parcelable Apr 04 18:13:40 I'm using the Parceler lib Apr 04 18:13:48 and anotating the class Apr 04 18:14:00 i'm having a fatal lint failure: 'Can't find API database; API check not performed' Apr 04 18:14:02 wait Apr 04 18:14:03 ah, no idea then Apr 04 18:14:04 what does their documentation have to say about it Apr 04 18:14:11 using retrolambda Apr 04 18:14:12 the annotation is gone Apr 04 18:14:13 lol Apr 04 18:14:21 :P Apr 04 18:15:11 ide still complaining after anotation but I will try a clean build Apr 04 18:16:12 How should I do a view that will be instantiated just through java code ? Apr 04 18:16:41 subclass View] Apr 04 18:28:40 bitkiller, your sdk probably isn't installed properly Apr 04 18:28:45 api-versions.xml is part of the sdk Apr 04 18:28:51 if you don't have it, you get that error Apr 04 18:29:49 pfn, i have one Apr 04 18:31:32 * pfn shrugs Apr 04 18:31:39 I never have that error, and I don't even write code in java Apr 04 18:31:51 (and I get NewApi errors) Apr 04 18:33:16 guys guys i discovered something so great. i added dexoptions { javaMaxHeapSize "4g" } and build time went from 1m30s to 30s Apr 04 18:33:19 weee Apr 04 18:33:31 now i can die happily Apr 04 18:36:45 Ashiren now all we need is android { maxCompileTime } :D Apr 04 18:37:04 i'll set that to 5 seconds Apr 04 18:37:09 protify Apr 04 18:37:11 problem solved Apr 04 18:42:25 If I have 5 different api calls I need to make, does that mean I need 5 different asynctask classes? Apr 04 18:42:42 Or is there a more effective and organized way? Apr 04 18:44:07 IggyGee you can look at rxjava for one Apr 04 18:45:13 but 5 asynctasks would be poor Apr 04 18:46:06 Hmm, alright, I'll check it out Apr 04 18:46:37 Could someone help me with it please? Idk why the expand method is not animating as it suppose to. https://gist.github.com/wviana/4f96eaea81136d86e4bdaf92dde4e4df Apr 04 18:58:58 Is by calling LayoutInflater.from(context).inflate(R.layout.layer_view, this); the right way to implement my custom view ? Apr 04 19:08:44 nice iconography work http://officialandroid.blogspot.com/2016/04/a-new-look-for-google-play-family-of-apps.html Apr 04 19:14:41 well, lint doesn't like retrolambda at all, but, the build is ok. thus, i'm skipping the lint error Apr 04 19:15:12 Those icons are gorgeous Apr 04 19:16:26 maybe if i update build tools to the latest, but this machine has 32-bit linux and the android team is not generating 32-bit builds anymore Apr 04 19:21:56 btw, i need to buy a new laptop, but brazilian market is just trash right now Apr 04 19:22:31 When is a good time to get LinearLayout measurements, I want to get it's child hight, but when trying to get it on constructor, the value is always 0 Apr 04 19:23:17 onMeasure Apr 04 19:23:38 wviana, What do you need the child measurement for? Apr 04 19:24:08 I'm going to animate on child, https://gist.github.com/wviana/4f96eaea81136d86e4bdaf92dde4e4df Apr 04 19:24:31 Oh Apr 04 19:24:47 Suppose fastest way would be to create a custom LinearLayout and override onMeasure Apr 04 19:25:03 NoirAvlaa: I've tried iin onMeasure, unsuccessful Apr 04 19:26:15 "Elevation of Privilege Vulnerability in Qualcomm RF Component" :/ Apr 04 19:27:01 I just found out about android studio databinding.... Do I use this to replace butterknife? Apr 04 19:29:08 NoirAvlaa: I'm doing it. Still getting 0. When I get it on expand method. It has the value that I want. But I need to read the initial value of it, not the value when called expand. Apr 04 19:29:32 Sec Apr 04 19:34:00 wviana, Apr 04 19:34:07 I'm throwing this together very fast, untested :P Apr 04 19:35:24 wviana, http://pastebin.com/mdE0Dr3Z Apr 04 19:35:35 Would something like that suit? Apr 04 19:35:52 May need to actually work with layoutmanagers for the height etc Apr 04 19:36:11 As I said, I threw it together quite fast Apr 04 19:36:25 ImageButton is the toggle to expand/collapse Apr 04 19:37:39 If the child height changes you might also want to use it to calculate duration Apr 04 19:44:59 Napalm yeah, what i was looking for was a way to remove all fragments attached to a container ID Apr 04 19:45:29 without knowing what their tags might be Apr 04 19:45:58 g00s, can't just clear the stack? Apr 04 19:46:23 NoirAvlaa hmm .. dunno, i didn't add them to the backstack Apr 04 19:46:49 yea? rinse and repeat Apr 04 19:47:27 whats happening here, if that I have a NavigationView that is basically a 'fragment switcher' in my main activity. However, some of these fragments that get put into the main container also have multiple fragments attached to the rightmost nav drawer Apr 04 19:48:03 and when i switch to a fragment that doesn't have any fragments to be in the rightmost Drawer, then I just want to clear out whatever was in there before habd Apr 04 19:48:07 *before hand Apr 04 19:49:10 lol the easies thing might be to have a DummyFragment and replace the rightmost nav drawer with that Apr 04 19:49:23 replace nukes everything that was there beforehand Apr 04 19:50:27 so its | left drawer | main content | right drawer (what i want to clear) | Apr 04 19:51:12 i wonder if some day they will annotate the APIs with @nullable etc Apr 04 19:54:46 FragmentManager.findFragmentById() should really return an array of Fragments Apr 04 20:31:50 http://android-developers.blogspot.fr/2016/04/a-new-method-to-measure-touch-and-audio.html Apr 04 20:46:24 Hello Apr 04 20:47:50 Sorry if this sounds silly, but how can I edit a Textview in a object class? Apr 04 20:49:50 I've tried using setcontentview but that keeps coming back with a null pointer error Apr 04 20:52:09 I'm trying to extend the main activity so I thought I wouldn't need to set the contentview but either way it's comes back with an error Apr 04 20:53:04 If I comment out sentcontentview it just points the error to(TextView) findViewById Apr 04 20:53:14 pastebin code Apr 04 20:55:52 http://dpaste.com/1FZCDAH Apr 04 20:57:41 I have two fragments that are displayed simultaneously, one that is inside a recyclerview. Apr 04 20:59:10 XML: http://dpaste.com/266KER1 Apr 04 20:59:13 When one of the elements inside the recyclerview is pressed it needs to notify the other fragment to show the data of that element. I have it wired up to do so through about 4 interfaces and that just seems terrible. Is it good/bad to cut that process down by going through the Activity Controller instead. Presently it goes -> -> -> -> Apr 04 20:59:40 think it would be cleaner to go -> -> Apr 04 21:00:08 I know the docs say use the Activity for all communication through fragments so don't want to shortcut it if its violating a major android principle. Apr 04 21:07:56 ViiBit: you do in onCreate() Apr 04 21:08:04 setContentView and views things Apr 04 21:08:18 you dont override Activity constructors, ever Apr 04 21:08:33 ViiBit: you are trying to extend Activity or mainactivity? If activity why? /me points at ashiren Apr 04 21:10:31 but you do override dialog constructors Apr 04 21:10:37 where you = google support lib Apr 04 21:13:16 Hey! Is there any framework for Java for cross-platform mobile development? Mostly interesting in supporting new OS-specific features and BSD-like license? Apr 04 21:14:28 Ashiren, I tried that also, and I get the same crash results Apr 04 21:14:42 Ping_2_Ur_Pong, just the main activity Apr 04 21:17:29 kitsu kotlin Apr 04 21:46:03 does anyone here use Xamarin ? Apr 04 21:48:45 kitsu: have a look at robovm. there's also been some work by the openjdk team to get java working cross-platform-ish Apr 04 21:50:18 wouldn't be surprised if MS just gave robovm the flick though. haven't been keeping up Apr 04 22:08:32 I used Xamarin to create an Android app and follow this site: https://developer.xamarin.com/guides/android/getting_started/hello,android/hello,android_quickstart/. I created an apk but when I copy it to my device, I get the error "There was a problem parsing the package" Apr 04 22:25:59 xamarin is nmot supported here Apr 04 22:26:01 read logcat Apr 04 22:31:10 can you register listeners with a fragment Apr 04 22:31:15 will it remember them on recreate Apr 04 22:46:38 is the "sign in with google" option I see for a lot of apps, built on the OpenID concept? Apr 04 22:46:48 or framework i should say Apr 04 22:53:20 Hi guys, i have been looking for a good tutorial to get the date when a sms was sent, any ideas? at this moment i found only outdated info Apr 04 23:03:43 what's wrong in this recyclerview implementation? onBindViewHolder is called only once, I couldn't figure it out. https://gist.github.com/kadfak/72010d74f61ec2376b24b28da2ab932c Apr 04 23:04:27 how large is your rows.size Apr 04 23:05:20 5 right now Apr 04 23:05:58 Is that what it says or what you think it is? Apr 04 23:06:07 I print it ouut Apr 04 23:06:12 k Apr 04 23:09:54 I'm implementing a gridlist with headers and sections using this lib https://github.com/TonicArtos/SuperSLiM Apr 04 23:11:34 kadfak: you dont need ot initialize List<> rows as an ArrayList. in your constructor just have rows = items or whatever param you pass in Apr 04 23:11:38 to* Apr 04 23:13:50 still the same Apr 04 23:20:34 kadfak: its only going to be called as many times as the number returned from getItemCount(), period. Apr 04 23:23:43 something's really wrong then since it prints the right size when printed in getItemCount() Apr 04 23:35:17 is getActionBar().setDisplayHomeAsUpEnabled(true); broken in 'com.android.support:appcompat-v7:23.2.1' i keep gettin a null exception Apr 04 23:37:13 my class http://pastebin.com/kKRu7cY9 Apr 04 23:37:37 kadfak how big are the item views? Apr 04 23:37:59 should all 5 fit within the viewport at the same time? Apr 04 23:38:41 nope Apr 04 23:41:35 gh0st Apr 04 23:41:42 ghostD0g: do you have an action bar..? Apr 04 23:42:02 does the com.android.support:design 22.2.1 have the TextInputLayout available? Apr 04 23:42:21 it isn't listed under the sources, and it seems v23 does have it Apr 04 23:43:44 orbyt : this is my xml http://pastebin.com/hR5y1XKt Apr 04 23:44:17 my theme is Theme.AppCompat.Light Apr 04 23:45:17 Isn't it `getSupportActionBar()`? Apr 04 23:45:59 Theres both but yea if your using the support bar^ Apr 04 23:46:02 Also, class names should be in PascalCase. Apr 04 23:46:46 That 'should' comes from the Java deities. Apr 04 23:57:55 yeah that is somthing i need to remeber to do .. capitalize class names Apr 04 23:58:10 here is my manifest Apr 04 23:58:11 http://pastebin.com/hCy0jcWj Apr 04 23:58:15 kadfak: it will only call bind view for the ones it is actually drawing right? so not necessarily all 5 of them Apr 04 23:58:20 forgot that might be relevent Apr 04 23:59:58 teasp00n, it seems to be a problem with the grid implementation, I made a quick list with linearlayout and it rendered every row Apr 05 00:00:03 I dont understand why i am getting a null pointer ... is it depreciated ? Apr 05 00:01:05 i am folling this http://developer.android.com/training/implementing-navigation/ancestral.html Apr 05 00:03:12 hey TacticalJoke Apr 05 00:04:27 ghostD0g: See what I said above. :s Apr 05 00:04:29 g00s: Hay. Apr 05 00:04:47 TacticalJoke have you done anything with CoordinatorLayout ? Apr 05 00:05:11 Nah, not yet. Apr 05 00:05:17 getSupportActionbar ? or the issue with my class name not being capitalized Apr 05 00:05:21 I haven't used all that fancy-shmancy stuff yet. Apr 05 00:05:32 ghostD0g: The former. Apr 05 00:06:37 trying it Apr 05 00:08:11 Roger that. Apr 05 00:08:14 TacticalJoke : same .. null pointer Apr 05 00:08:56 maybe it android studio Apr 05 00:09:00 its Apr 05 00:09:44 i am trying the example from that page Apr 05 00:09:55 to see if it borks on my system Apr 05 00:16:22 Hi Apr 05 00:17:10 I am trying to implement GCM and I don't know where in the code to tell the app to send the registration request to my server Apr 05 00:17:59 g00s: Have you not quit Android development in frustration yet? :D Apr 05 00:18:19 :') Apr 05 00:18:26 where's your reddit client TacticalJoke!? Apr 05 00:18:28 TacticalJoke on the side i'm reading about R and stuff Apr 05 00:18:35 just want to get this app done Apr 05 00:18:52 adq: I know; it's taking forever. It's the only reason I haven't quit Android development too. Apr 05 00:18:58 :p Apr 05 00:20:10 as far as i can tell i followed this tut making the FAB anchored to the bottom sheet, but it just sits on the bottom Apr 05 00:20:32 coordinator layout : spooky action at a distance (when it works) Apr 05 00:20:37 So did everyone move to Kotlin? Apr 05 00:21:08 everybody except me apparently Apr 05 00:21:27 Only the cool people. So far. But that will change when g00s migrates. Apr 05 00:21:33 I moved to Python Apr 05 00:21:50 cbeust :( Apr 05 00:22:39 you made him quit! Apr 05 00:23:11 Rage-quit. Apr 05 00:23:38 when i make it over to kotlin , i'm going to be like sloth in the goonies, "hey you guys!" https://www.youtube.com/watch?v=4Vv5CsP1pAg Apr 05 00:23:55 I need help guys Apr 05 00:24:09 Is that what you look like, g00s? :s Apr 05 00:24:15 lol Apr 05 00:25:21 Can you help me Apr 05 00:26:07 jvwjgames: w0bni can. (Name picked at random.) Apr 05 00:36:24 ugh wtf isn't this working app:layout_anchor="@id/bottom_sheet" Apr 05 00:36:24 app:layout_anchorGravity="bottom|end" Apr 05 00:38:20 ok kinda working now, but the bottom half of the FAB is under the bottom sheet Apr 05 00:55:07 g00s, yeah it's weird, even FAB on top it's below i noticed Apr 05 00:55:30 adq i had to set its elevation to higher than the bottom sheet Apr 05 00:55:44 ahh but elevation won't work on pre-lollipop? Apr 05 00:55:50 or only for the shadow maybe? Apr 05 00:56:01 hm, i dunno :( Apr 05 00:56:07 ffuuuu Apr 05 00:56:34 now if you have a button (maybe the fab) which hides and show the bottomsheet, try to spam click on it :)) Apr 05 00:56:41 enjoy the states being lost Apr 05 00:57:24 despite i handle show/hide only in onStateChanged Apr 05 00:57:42 adq coordinatorlayout would be so much more flexible if it could operate on children that are not direct children Apr 05 00:57:48 i had big issues with hiding the fab when showing the bottom sheet and vice versa Apr 05 00:58:46 need mutex & lock for hide/show soon -__-" Apr 05 01:00:36 adq seems everything is built on shifting sand Apr 05 01:01:04 well, as you discovered, when i found that to set the state the UI has to be visible Apr 05 01:01:12 i had bad feeling lol Apr 05 01:08:02 still on UI & UX here... despite i want to do other stuff Apr 05 01:08:24 g00s, http://imgur.com/KNjUH6n bottomsheet on the screenshot on right Apr 05 01:10:04 adq looks really nice Apr 05 01:10:29 i tried to follow the design guidelines for most part Apr 05 01:15:52 Anyone know if there's a comprehensive table or list of android versions (including patch level) and release dates Apr 05 01:15:58 Anyone know if there's a comprehensive table or list of android versions (including patch level) and release dates? Apr 05 01:35:10 Grrr, I still cant get this View to work. I can pass the application context but I can't figure out how to pass the attributes Apr 05 01:35:31 I think it's because I'm trying to pass the whole layout xml Apr 05 01:36:27 But I still don't know how else to do it because I don't need a completely custom layout, I'm just trying to edit I few of the objects from a class outside the mainactivity Apr 05 01:40:41 Am I over complicating it that much or am I really just not getting it? Apr 05 01:59:36 Anyone know if there's a comprehensive table or list of android versions (including patch level) and release dates? Apr 05 02:05:55 AlmightyA: https://en.wikipedia.org/wiki/Android_version_history Apr 05 02:06:01 seems pretty comprehensive Apr 05 02:10:34 oh yes , i guess we're expecting the new platform #s Apr 05 02:13:23 Grr, progress. I can access the TextViews but I still can't set the text Apr 05 02:15:45 ViiBit: what are you trying to do Apr 05 02:19:02 orbyt_: I'm trying to edit a few TextView text's from an object class that extends my main activity Apr 05 02:19:33 the elements are in the main layout, so I didn't think I would need a custom layout Apr 05 02:21:17 "Object class" makes no sense, but i'm assuming you mean you made a subclass of your main activity Apr 05 02:22:00 ^ Yes, sorry it's getting late I'm trying to do this before bed haha Apr 05 02:29:46 why would you subclass your main activity Apr 05 02:33:14 The class is used for other functions I'm planning on using outside of main activity which is why I separated it. It extends view, not main activity, sorry. But yeah, mainly for organization Apr 05 02:33:26 you don't ever subclass for organization Apr 05 02:33:28 doing it wrong Apr 05 02:35:10 So should I just create another activity for the functions or copy them every time Apr 05 02:35:14 *? Apr 05 02:36:04 use a utility class Apr 05 02:36:11 never use inheritance for re-using functions Apr 05 02:36:51 this applies to anything OO, not just android Apr 05 02:44:31 Ok Apr 05 02:55:42 hey all Apr 05 02:55:57 is it possible to determine distance from a bluetooth connected android to computer **** ENDING LOGGING AT Tue Apr 05 02:59:58 2016