**** BEGIN LOGGING AT Mon May 23 02:59:58 2016 May 23 03:00:09 what google /should/ be doing is what MS has done, unify all the things May 23 03:01:23 one tech / language / framework from desktop to phone May 23 03:37:35 g00s: still no android desktop May 23 03:37:48 multi window is probably 1st step May 23 03:54:26 CedricBeust you went to a sensors session, did you see https://play.google.com/store/apps/details?id=com.google.android.apps.forscience.whistlepunk May 23 03:55:18 No, thank for the pointer May 23 03:55:33 How did you know I went to a sensor session btw? May 23 03:56:36 <_xor> Hmm ok. So I'm writing an app for internal use at a company. It's not going on the Play store. I have a corresponding back-end server that I've written as well. I want to be able to push out updates to the app from the server. May 23 03:56:46 <_xor> I'm Googling for it, but figure I'd ask in here as well :) May 23 03:57:12 <_xor> Any suggestions on that? I mean could be as simple as just downloading the latest APK and then triggering an install? May 23 03:57:35 CedricBeust lol you mentioned it :D May 23 03:57:41 oh May 23 03:58:28 lol why does this sensor app ask for my bday May 23 03:59:04 Your phone doesn't have a birthday sensor I guess May 23 04:07:37 <_xor> Ok, another newbie question :) Any suggestions on a framework/plugin to use in order to track in-app usage? Be able to log & report things like which activities were loaded, buttons pushed, etc. May 23 04:07:48 <_xor> ...or should I implement that myself? May 23 04:08:24 _xor see the i/o session on firebase analytics May 23 04:09:30 <_xor> g00s: Ah, interesting. Looking at it now. I take it that it requires Firebase though? May 23 04:11:36 <_xor> I've been writing my own back-ends using Node.js (Koa + Redis + PostgreSQL + RabbitMQ + Celery). I haven't really messed with Firebase at all. I'll evaluate it, but I'm wondering if it'll provide the flexibility that I need. May 23 04:12:03 <_xor> Using Socket.IO right now for WebSockets, but might move to using WebSockets natively or SockJS as an alternative. May 23 04:36:39 If I have the email of who I want to send a hangouts message with, can I do that with an Intent? I'm looking online but it seems like it's not possible? May 23 05:18:54 is it possible to add tfs plugin in Android studio2.2 May 23 05:49:16 Hey so was wondering if anyone knows why I cannot use retrofit (async request) in an intent service through push notification ? Is there a way to make a request without the app being opened? May 23 05:50:19 how could i clean this up http://pastebin.com/3SGcrBeJ whats happening is the image is being set as the default pic, then loading a pic from facebook (as a square shape), then im rounding it and finally setting it again but rounded.. how would i clean it up so that you dont see it square but just rounded? May 23 06:05:42 hello fellas! May 23 06:07:05 Lonesoldier728: maybe because serivce ends before request comes back from netwrok ? May 23 06:09:11 so is there a way to stop that? May 23 06:09:47 I figured an alternative solution but yeah I guess that is the problem May 23 06:09:58 create normal service May 23 06:10:02 not intent service May 23 06:23:54 Lonesoldier728, block May 23 06:24:07 hm kk May 23 06:24:38 intentservice runs on its own thread, you can do synchronous stuff May 23 08:05:13 Im trying display a name pulled from Facebook graph JSON response. http://pastebin.com/j7LwZ0t2 it will display in logcat but crashes on the next line when i try to set it as a sting variable.. can someone take a look? May 23 08:10:43 thornekey: that makes no sense, can you please paste the logcat? May 23 08:11:24 sure May 23 08:14:01 thepoosh, http://pastebin.com/GizihJYZ May 23 08:14:17 Line 3 May 23 08:14:40 thornekey: SearchEvent.java line #346? May 23 08:15:04 thepoosh, 346 is the line Log.d() May 23 08:15:09 Is gradle-experimental still needed to build ndk projects? Or can we use standard gradle now? May 23 08:15:14 but its displaying it in the logcat.. May 23 08:15:29 it displays then crashes May 23 08:15:36 thornekey: so you crashed on the log meaning user is null or user doesn't have a name field May 23 08:15:58 oh May 23 08:16:11 but ive got a catch in there just in case May 23 08:21:51 thepoosh, so if(user.has("name")) { } would work? May 23 08:24:30 .pretty sure user is null because the exception says it's trying to do getString on a null reference May 23 08:26:16 thornekey: wither that or user.optString May 23 08:26:34 listen to Zharf May 23 08:26:41 why are you calling toString on a String anyway May 23 08:26:53 idk ahahha May 23 08:26:58 it was just some dirty code May 23 08:27:22 coming to think of it, name in the Facebook GraphObject is a JSONObkect not a string May 23 08:28:44 this is what i have right now http://pastebin.com/e63ShBBW May 23 08:28:58 oh wait May 23 08:29:01 i think i have it now May 23 08:29:02 derp May 23 08:29:26 yea, thanks guys May 23 08:29:29 it was just user was null May 23 08:29:29 :) May 23 08:29:32 cheers May 23 08:30:05 I hope you'll think twice next time you get an NPE, they're pretty much the most easiest things to debug May 23 08:30:18 I don't understand why people keep asking about NPEs on stackoverflow May 23 08:31:40 yea they always trip me up.. i know theyre not so hard but sometimes just cant see the wood for the trees May 23 08:35:11 Is anyone here using gradle for NDK projects? May 23 08:35:22 I have a public method defined in Base Activity (all other activities extend from this one) May 23 08:35:37 now in one of the activities i have Fragments, I want to access that public function from the fragment May 23 08:35:46 getActivity().thatFunction() doesn't resolve May 23 08:36:50 getActivity returns an Activity, not YourActivity, just cast it May 23 08:36:58 I felt so May 23 09:39:29 I feel like this is atrocious, but I just wrote it to try http://pastie.org/10848753 May 23 09:39:51 I get all the DataChart entries from the database, and for each one I create its view and add it to the parent May 23 09:40:03 this is inside onCreate May 23 09:41:07 Finally cross compiling with Java 8 with GWT, Desktop and Android, awesome!! May 23 09:43:58 SHC: libgdx ? May 23 09:44:21 gordon_: Nope, I'm writing my own engine for learning sake May 23 09:44:27 ah May 23 09:44:29 gordon_: https://github.com/sriharshachilakapati/SilenceEngine/tree/silenceengine-1.0.1 May 23 09:44:36 good luck! May 23 09:45:03 SHC: you know your streams wont work ? May 23 09:45:23 I'm using Light weight streams May 23 09:45:41 I think I know what you're talking about May 23 09:46:06 Java 8 stream alternative May 23 09:46:40 https://github.com/aNNiMON/Lightweight-Stream-API May 23 09:46:43 This one gordon_ May 23 09:47:01 yes I've been using that before May 23 10:01:32 so, funny story, I'm calling notifyDatasetChanged on my recyclerview but the UI hasn't changed May 23 10:01:36 waddup? May 23 10:03:36 testcase! May 23 10:04:08 Zharf: ?? May 23 10:04:41 impossible to say, need code that reproduces the issue to figure ito ut May 23 10:04:57 yeah, i wonder why that should happen though May 23 10:05:22 maybe you call notifyDatasetChanged on some other instance May 23 10:05:33 SHC: I would try something like this with scala May 23 10:06:04 Interesting, but I have never used scala May 23 10:06:26 scala's easy May 23 10:06:36 said nobody, never May 23 10:06:39 :D May 23 10:06:43 I have a AsyncTask within the adapter that calls notifyDatasetChanged in the onPostExecute May 23 10:06:43 I just said that! May 23 10:06:49 Zharf: :O May 23 10:06:50 Might be, but I'm self taught May 23 10:07:22 thepoosh, do you modify the adapter's data in doInBackground? May 23 10:07:29 yep May 23 10:07:34 don't May 23 10:07:37 well, I rearrange it May 23 10:07:40 I only know Java, C, C++, C#, Obj-C, Obj-C++, VB.Net, JS, Haxe, Kotlin, Rust and PHP. May 23 10:07:43 meaning sorting the data May 23 10:07:57 is that still an issue (i don't change the count) May 23 10:08:17 I got into an interesting issue guys, but I'm unable to solve it. May 23 10:08:34 SHC: what happened? May 23 10:09:00 SHC, you'll be better once you realise what's in common with those things and figure out how to use that knowledge to quickly absorb new languages... May 23 10:09:17 When I launch the app from IDE it runs fine, but if I close it on device, and reopen from the icon, it fails with a NullPointerException May 23 10:09:23 the "I know these languages" list is pretty useless for a competent developer May 23 10:09:32 ^this May 23 10:09:42 SHC: logcat? May 23 10:09:51 ^that May 23 10:09:59 Zharf: unfortunately, such lists are of importance to the poor word search system used by recruiter May 23 10:10:05 p_l, yeah May 23 10:10:07 private variables in my game class (which is a static variable in renderer) are getting null. May 23 10:10:12 thepoosh: Just a sec May 23 10:10:20 p_l: we need to create machine learning tool for recruiters ;) May 23 10:10:22 p_l: i regect that May 23 10:10:44 bad recruiters need an item list of many languages May 23 10:11:01 *reject May 23 10:11:06 thepoosh: http://pastebin.com/gEqVxxhP May 23 10:11:55 SHC: GLContext.java:104? May 23 10:12:03 what happens in that line in that file? May 23 10:12:11 Zharf: I know the list is useless, but my faculty advised me that I should list the languages, without which we can't even get into the interview. May 23 10:12:35 It binds the VAO May 23 10:12:36 vao.bind(); May 23 10:12:46 SHC: vao is null May 23 10:13:08 Yes, and that vao is a private field in the OpenGLTest class May 23 10:13:32 This is the test class, which is invoked from the GLRenderer May 23 10:13:42 and? May 23 10:13:45 yea and I know Scheme May 23 10:13:46 ;D May 23 10:13:46 it's still null May 23 10:13:50 lel May 23 10:13:59 Odaym: don't start me on prolog and clisp May 23 10:14:44 if I make an if condition and ignore the draw call, after half a second or so, I'm running the game successfully again. May 23 10:15:16 Seems like a render is triggered before I load the resources after the restart May 23 10:15:21 SHC: you have a crash because of that May 23 10:15:22 there's no such language as "clisp", only a certain (dubious quality at times) implementation Common Lisp called GNU CLISP ;) May 23 10:15:30 p_l: C-LISP May 23 10:15:40 it's LISP May 23 10:15:45 prolog... *shiver* May 23 10:15:48 my problem is more interesting http://pastie.org/10848804 May 23 10:16:15 I don't get an exception, but I get a long stacktrace after an "application has skipped (a lot) of frames" error May 23 10:16:25 Odaym: is your problem leaking the activity? May 23 10:16:29 Prolog is nice, though I'm mostly common lisp person ;D May 23 10:16:41 (too (me)) May 23 10:16:52 hm May 23 10:16:59 I don't know May 23 10:17:12 Sounds more like a clogged up main thread to me ^ May 23 10:17:19 definitely May 23 10:17:28 its the adding of views in a for loop, and the views are heavy May 23 10:17:56 Odaym: handler is to the main thread? May 23 10:18:06 if so, you're constantly sending messages to it May 23 10:18:12 which might cause this issue May 23 10:18:14 I constantly want to create new views May 23 10:18:15 I'm having a weird issue with my recyclerview, items inside it are showing as wrap_content width (xml has match_parent) when it first loads, but if I scroll those items out, new items are match_parent and when I scroll those scrolled out items back in view, they are match_parent too. May 23 10:18:20 based on how many results I get from the DB May 23 10:18:45 Odaym: sounds like a CursorAdapter May 23 10:18:48 Keep the UI stuff on the main thread, try to make the views less heavy, or only fetch the bare minimum of views May 23 10:19:07 thepoosh: What is the proper solution to this? I want to retain the state of the game between pause and resume, but on restarting, I want it to start from scratch May 23 10:19:22 SHC: you need to find out why this is null, and fix it May 23 10:19:44 if you're not supposed to run tests from an apk (which I'm pretty sure you're not) then you should avoid doing that May 23 10:20:03 also, that is what global variables are for May 23 10:20:24 thepoosh: The tests are just named that way, they are not unit tests May 23 10:20:44 and I need a context so I can draw OpenGL tests and verify them May 23 10:20:45 mmmkay May 23 10:20:54 so go back to my first response May 23 10:20:57 They are sort of samples May 23 10:23:08 what more truths are there! May 23 10:24:41 Odaym: ? May 23 10:25:13 nothin May 23 10:25:35 You can't handle the truth May 23 10:26:18 you guys gonna do the developer certificate thing? May 23 10:31:02 there we go, it was the leak May 23 10:31:45 I grabbed the reference to the activity inside onAttach and from it got the DAO, from there I referenced that whenever I needed, not ((Base_Activity) parentActivity).getDBHelper().getDataChartDAO().query..... every time May 23 10:31:47 stupid May 23 10:32:36 no it's actually still the same, but appears when more than 5 views are waiting to be added May 23 10:35:06 what if I have them in a list? May 23 10:46:12 Hey May 23 10:47:35 Is google working on any with android studio 2.1 sdk update site i see a red ! whatever that means? May 23 10:58:29 can I have a list adapter that accepts any type of object? May 23 10:58:42 Odaym: are you using greendao? May 23 10:58:48 ormlite May 23 10:58:49 and yes May 23 10:59:04 if you use ViewHolder extentions May 23 10:59:08 it should be ok May 23 10:59:24 I do use that May 23 10:59:54 are you talking about ListView or RecyclerView? May 23 11:00:02 ListView May 23 11:00:16 you make X item types May 23 11:00:24 and return them from getItemTypeCount May 23 11:00:28 I have several types of BarCharts that I need to add, BarChart, HorizontalBarChart, all from AndroidMPChart library May 23 11:00:36 mkay May 23 11:00:57 so what's the issue? May 23 11:01:18 haven't reached it yet, one moment May 23 11:04:49 let me know when an issue arrises May 23 11:04:53 Hey thepoosh,Are you getting a red ! in the sdk update site in android studio just make it not just me? May 23 11:06:23 just make sure it not me or google working on something. May 23 11:06:47 perlsyntax: seems like you are having a MITM or somthing May 23 11:08:04 thepoosh,I try install android studio on the other mac and the same prob. May 23 11:08:24 thepoosh,What MITM? May 23 11:08:35 Man In The Middle May 23 11:08:45 ok May 23 11:09:31 Thepooth,It tell me unknown error that all it tell me May 23 11:09:51 thepoosh,That all it tell me. May 23 11:10:06 what happens when you use wget? May 23 11:10:44 thepooth,What you mean. May 23 11:11:12 thepooth,All my link are work by only one of them are. May 23 11:11:21 sorry May 23 11:11:25 thepooth May 23 11:11:35 i said sorry type to fast. May 23 11:11:41 :) May 23 11:11:46 just type "thep" and then press TAB May 23 11:11:49 and watch the magic May 23 11:12:02 Odaym, Sorry. May 23 11:12:05 try May 23 11:12:28 thepoosh,I not sure what to do. May 23 11:12:56 perlsyntax: what OS? May 23 11:13:07 mac 10.9 May 23 11:13:39 thepoosh,Samething when i try mac 10.11.5 May 23 11:13:40 what happens when you run (from terminal) curl -v https://d.android.com/sdk May 23 11:13:41 ? May 23 11:14:42 where can i paste it? May 23 11:14:56 pastebin.com May 23 11:15:52 http://pastebin.com/xFsWgjxG May 23 11:16:03 thank for the link:) May 23 11:17:08 thepoosh, I think it odd working before google io 2016 but after it just stop working. May 23 11:17:14 perlsyntax: try this again on https://developer.android.com/sdk May 23 11:17:36 ok May 23 11:18:45 it look the same to me. May 23 11:19:50 http://pastebin.com/rQqsz7As May 23 11:20:17 thepoosh,I thought google was update something. May 23 11:21:14 perlsyntax: https://developer.android.com/studio/index.html May 23 11:22:30 ah I see what you meant with the viewType, I actually meant that I want to pass an ArrayList of different objects to the adapter May 23 11:22:51 can't be done May 23 11:24:17 yes it can be done actually if I dont specify the layout of these elements in XML I can just create them programatically with the data from the ArrayList of objects, then add to a linear layout or whatever May 23 11:24:21 http://pastebin.com/RkdzXBj0 May 23 11:24:30 it's just that I need the adapter to accept ArrayList May 23 11:24:47 what. May 23 11:25:46 thepoosh I need the adapter to accept any arraylist May 23 11:25:59 Man i tired. May 23 11:26:12 not just ArrayList because I have different chart types May 23 11:27:36 Well then make an interface for it. May 23 11:27:50 Accepting Object anywhere is awfully problematic code May 23 11:27:51 perlsyntax: the link i posted should work for you May 23 11:28:07 that the adapter will implement? May 23 11:28:17 thepoosh,It work for the gui May 23 11:28:45 thepoosh,So i take it only me have the prob? May 23 11:34:27 thepoosh,Not sure what to do. May 23 11:36:16 perlsyntax: did the link not work? May 23 11:36:33 http://tools.android.com/download/studio/ May 23 11:36:35 try this May 23 11:36:43 ok i try May 23 11:36:53 even better, this 2.1.1 May 23 11:37:01 http://tools.android.com/download/studio/builds/2-1-1 May 23 11:37:02 this May 23 11:37:13 yes it is android studio 2.1 May 23 11:37:39 have fun May 23 11:38:22 ? May 23 11:38:44 [solved] May 23 11:39:02 what was the prob? May 23 11:39:12 WAT May 23 11:39:17 what am i missing?! May 23 11:39:45 Odaym: do you have more views than you can put on screen at the same time? May 23 11:40:09 what do you mean? May 23 11:40:15 you can put 100000 at the same time May 23 11:40:21 thepoosh,Thank for help me out. May 23 11:40:22 it'll just crash May 23 11:40:28 np May 23 11:40:42 True, but what use does it have to put them all on screen if you can't see them all at the same time? May 23 11:41:19 they're like metric charts, you can add them into your "dashboard" May 23 11:41:26 so when you come back, these charts should be there May 23 11:41:33 thepoosh,But i don't understand what the prob was.:) May 23 11:41:42 right now I have a container element that hosts them all which I add to, I'm working on making it a list May 23 11:41:47 that accepts Object May 23 11:41:48 :D May 23 11:42:02 That wouldn't help making the app faster I think May 23 11:42:11 perlsyntax: it's probably something about the redirecting May 23 11:42:37 it isn't an issue of faster, it's simply crashing now after attempting to add like 5 May 23 11:43:28 What's the exact stack trace? May 23 11:43:40 thepoosh,You mean something to do with google i take it.:) May 23 11:44:11 something with your browser May 23 11:44:51 ok maybe i try a new brower May 23 11:45:19 http://pastie.org/10848976 May 23 11:45:23 i mean brower May 23 11:45:31 brb back latter May 23 11:46:06 it isn't even an error, it comes out as a log May 23 11:48:49 " Layer exceeds max. dimensions supported by the GPU (1080x7359, max=4096x4096)" May 23 11:48:58 it's calling the layout inflater and inflates the layouts like 9 times if you have 9 charts May 23 11:49:09 with 2 or 3 its fine May 23 11:49:21 I think I will just grab those as member variables beforehand May 23 11:50:04 I'd take a look at the opengl renderer you are using May 23 11:50:39 Are you implementing some kind of scolling view? Which might exceed the maximum size when adding too much layouts? May 23 11:50:49 it's a scrolling view yes May 23 11:51:35 Mavrik: what do you think of this? May 23 11:51:37 https://www.reddit.com/r/androiddev/comments/4kinr3/eli5_why_should_i_use_kotlin_over_java/ May 23 11:54:45 thepoosh: I need help, I think it is due to threading, the game object (instance of test class) is being created on the main thread, not the GL thread May 23 11:55:00 Can that be the issue? May 23 11:55:08 ;) May 23 11:55:11 it's the inflation part May 23 11:55:34 hell I bet if you just leave the inflate line and dont findViewByid on anything else, it'll do the same May 23 11:56:51 Odaym: Try putting some size limits on OpenGL backed views. Obviously they can't be of arbitrary size. May 23 12:01:16 And keep in mind that different devices will probably have different upper bounds for the dimensions of the OGL-layer May 23 12:01:45 SHC: I know nothing about gamedev May 23 12:02:23 thepoosh: I asked about the life cycle, but yeah, I got it to work May 23 12:02:40 All I had to do was to construct the game on the renderer thread May 23 12:03:12 Otherwise on second launch, only the gl thread is being resumed, and the game is being null, and of course it's contents are null too May 23 13:34:08 do i have to set a flag on PendingIntent.getBroadcast? May 23 13:37:12 i am trying to launch a delayed intent, no special flags will be needed, right? May 23 13:41:00 ? May 23 13:42:36 ؟ May 23 13:43:52 using alarm manager to fire a delayed intent May 23 13:43:58 not working, very puzzled May 23 13:45:18 i wish it was working May 23 13:46:32 https://gist.github.com/leviyehonatan/167db319efd56bb65b2c02c95d0d45cf May 23 14:21:12 omgomgomgomg May 23 14:21:17 that's it May 23 14:23:57 hallelujah! May 23 14:24:20 Leeds: HAI May 23 14:24:42 salaam May 23 14:30:15 how to i referece somthing by id in my mainactivity.java May 23 14:30:36 example i want to edit text in textView component May 23 14:31:21 it has id "statusText" May 23 14:31:44 how to i do exaple statusText.text = blabla now; May 23 14:35:19 yes this is a very newbie question i like it May 23 14:35:21 anyone May 23 14:35:31 yep i know its supper newbie May 23 14:35:53 i no exp in android i come from Unity3d May 23 14:36:01 Gnjurac, look at findviewbyid May 23 14:36:27 ok will try May 23 14:36:40 Gnjurac, that'll get you started. There's some good beginner tutorials on developer.android.com May 23 14:37:04 Gnjurac, i'd suggest checking those out for the basic lifecycle management stuff you'll have to do and how to find UI elements, etc May 23 14:37:41 https://github.com/codepath/android_guides/wiki/Working-with-the-TextView May 23 14:38:06 if you want you can have this to add to the confusion May 23 14:40:34 dumb question you will kill me why i cant do var something like in c# i use string blabla? May 23 14:42:57 newemind i just did TextView blabla = findViewById ... May 23 14:43:14 Gnjurac, different languages define variables differently. short answer, "because that's not how you do it in java" May 23 14:43:37 oh right this isent javascript May 23 14:43:38 my bad May 23 14:43:52 Gnjurac, I'd suggest starting at one of the beginning tutorials if your java experience is minimal, might save you pain later on May 23 14:44:30 i dont have none jave exp i come from c# but it has similarities May 23 14:45:55 so for id do i need to wirte it like this findViewById(statusText) or findViewById("statusText") ? May 23 14:46:16 C sharp to Java is straightforward May 23 14:46:38 considering it was a ripoff of java to begin with May 23 14:47:37 TextView statusT = (TextView) findViewById(statusText); May 23 14:47:44 statusText shows me red May 23 14:47:58 then fix it May 23 14:47:59 android:id="@+id/statusText" May 23 14:48:08 R.id.statusText May 23 14:48:12 oh May 23 14:48:14 sorry May 23 14:48:59 ok May 23 14:49:01 ty May 23 14:49:06 it works now May 23 14:50:57 i installed the android tool but i cannot find adb in AppData\Local\Android\android-sdk\tools May 23 14:51:01 shouldnt it be there? May 23 14:51:55 platform-tools May 23 14:55:17 there it is! thank you May 23 15:06:10 whatup whatup May 23 15:19:43 ugh, whats that google tool that replaced dex2jar May 23 15:19:55 the thing written in pythin May 23 15:20:03 >pythin May 23 15:20:11 sounds like a python script for mike tyson May 23 15:21:56 found it May 23 15:35:35 when i use the package "java.security.*" on android, is it going to be the same as on desktop JDK? only "android.security" is different? May 23 15:35:43 yes May 23 15:35:53 well, for the most part, yes May 23 15:35:57 ook, thanks pfn.. May 23 15:35:59 :/ May 23 15:36:09 you mean.. except hte underlying providers? May 23 15:36:40 yes May 23 15:37:26 ook! May 23 15:39:21 ugh, google is not updating tools/base at all, stupid aosp is always out of date May 23 15:41:52 To redeem the credits, click here and enter coupon code no later than 12/31/2016. After redemption, credits are valid for 60 days. May 23 15:42:00 seriously? have to use $500 of google cloud in 60 days? May 23 15:42:15 man, shitty discount May 23 15:45:07 gcp? May 23 15:45:14 id take 500.... May 23 15:50:56 g00s: What was the tool called? May 23 15:51:18 konk3r enjarify May 23 15:57:25 Merge attempt failed May 23 15:57:25 Base branch was modified. Review and try the merge again. May 23 15:57:26 wtf github May 23 15:58:31 GitHub is down. May 23 15:58:45 is it? May 23 15:58:45 Hence the erratic errors. May 23 15:59:09 that explains that, thanks May 23 15:59:40 https://twitter.com/githubstatus May 23 16:00:41 * pfn kicks aosp for not updating sources in a timely fashion May 23 16:00:54 I have no clue what to look at in tools/base to see current code :-/ May 23 16:03:09 pfn seems like a reoccurring problem there, did you talk to anyone at i/o about it ? May 23 16:03:31 can someone tell me about allowBackup flag in the manifest? The docs say data sync/backup only happens with a bunch of other code but I have a stock Galaxy S7 that has taken it upon itself to backup sharedPref in the cloud for my app May 23 16:03:34 no, didn't cross my mind while I was there May 23 16:03:46 I had other things to ask about, mostly about the future of jill, java8 and scala support May 23 16:04:04 basically, "we want to support as much as we can" May 23 16:04:23 speaking of, need to try the new preview jill and see how it works, since they added some java8 support there May 23 16:10:38 https://code.google.com/p/android/issues/detail?id=210922 May 23 16:20:14 Hi, Why would some devices use the correct image from the drawable-___dpi folders and some not ? Have any of you noticed that ? May 23 16:21:15 it always uses the correct image May 23 16:21:16 My tablet uses the image from the drawable-mdpi folder even though it should use the xdpi image. I noticed the same thing with a tablet emulator. While the Nexus 5 use the correct image. May 23 16:22:33 * pfn wonders what to do with opinion rewards credits May 23 16:25:18 The tablet emulator has a screen resolutin of 600x1024, the same as my tablet. Both these devices are using the mdpi image. May 23 16:25:43 But that is at least hdpi correct ? May 23 16:27:09 s73v3r did you see the monument valley story ? May 23 16:27:18 NeoFrontier: resolution != dpi May 23 16:27:20 I didn’t. I only just got to wokr May 23 16:27:54 NeoFrontier: It has just as much to do with screen size as it does with resolution May 23 16:28:59 So is it correct from these two devices to use the mdpi image and not the hdpi ? Both are 7 inch screens with 600x1024 pixels. May 23 16:29:09 for* ( not from ( May 23 16:31:04 https://design.google.com/devices/ May 23 16:32:18 NeoFrontier: The Nexus 5 isn’t a 7 inch screen May 23 16:33:19 That is correct. May 23 16:33:23 sqrt(600^2+1024^2)/7 = 169 dpi.. Closer to mdpi (160 dpi) than hdpi (240 dpi) May 23 16:33:39 mmm May 23 16:35:35 So that is how it works. May 23 16:35:40 Thanks SimonVT. May 23 16:35:45 :) May 23 16:44:35 I was thinking of this the wrong way around. I'm not trying to make the image appear the same size on all devices. I want it to appear bigger on devices with bigger screens. May 23 16:44:59 Without stretching. May 23 16:51:41 whats the best resource for learning android development? paid is fine. done objc programming for some years now May 23 16:52:00 teamtreehouse is great May 23 16:52:03 always recommend it May 23 16:52:29 cyanide there is also an official udacity course May 23 16:53:44 will check out both, thanks! May 23 16:54:36 guys quick general java question: I have a class whose constructer takes a username and password to authenticate api calls. I'm thinking about making this class a singleton May 23 16:55:05 now usually I would have a public static method called getInstance that returns the instance May 23 16:55:34 but i dont want to require you to enter credentials into getInstance() everytime you want an instance May 23 16:55:40 so what would be the best way to handle this? May 23 16:55:55 have them get an instance and then create a .authenticate() method or something? May 23 16:56:02 i see orbyt_ is using Singleton View Controller architecture :) May 23 16:56:07 do wha May 23 16:56:09 what May 23 16:56:26 its the new thing on android May 23 16:56:32 or the new old thing May 23 16:56:53 really not sure if /s or not May 23 16:56:55 orbyt_: If you’re going to have it be configurable like that, it’s probably not good to make it a singleton May 23 16:57:07 s73v3r: what would u suggest May 23 16:57:14 why do you want it a singleton in the first place? What benefit would you get over having just a regular object May 23 16:57:24 to access the instance anywhere May 23 16:57:27 is really the only reason May 23 16:57:45 If only one user can be authenticated at a time, a singleton makes sense. Use Dagger to manage it, though, not static May 23 16:58:34 yea its just basically attaching the auth credentials to the api calls May 23 16:58:44 each partner has their own creds May 23 17:06:13 Writing out DAGs for the flow/structure of data creation is helpful to iron out the best way to do it all May 23 17:07:38 hello all. If I have two APKs in production, a new APK targeted for Android SDK 17+ and an older APK that is for 16+, if a user has Android 16 installed on their phone, they should still be able to install the APK for 16+ right? May 23 17:07:48 Can't wait till a video is up for http://360andev.com/sessions/200-dependency-injection-made-simple/ May 23 17:07:56 by Dan Lew May 23 17:08:20 I'm trying to confirm that by uploading the new 17+ APK i didn't prevent the 16 api level users from being able to uninstall and reinstall they version of the app that they had before. May 23 17:17:52 Why did it say "Mode: +cnrtf #android-unregistered" when I joined this channel? May 23 17:18:05 Am I talking in #android-unregistered or #android-dev? May 23 17:18:26 Can anyone see my messages? First time using IRC. May 23 17:23:33 vbampme wee see you May 23 17:29:48 vbampme: the last bit is a redirect if you aren't identified with NickServ May 23 17:30:12 okay thanks. i wasn't sure if i was redirected or not May 23 17:33:03 crap i really didnt want to use dagger in this project ='( May 23 17:36:29 orbyt_: I wouldn’t really use your user thingy as a singleton May 23 17:36:47 s73v3r: your suggestions are welcome May 23 17:36:47 just create one instance and give it to your API May 23 17:37:07 uh what May 23 17:37:31 basically in the current constructor it uses the creds to create the retrofit api object May 23 17:37:42 the user object does? May 23 17:37:59 http://stackoverflow.com/questions/37397014/implementing-the-singleton-pattern-for-accessing-an-object-anywhere May 23 17:38:30 so api in that code is my retrofit api service May 23 17:38:51 but the object thats made from the contructor is the one i need May 23 17:39:06 as it has various other functions (its basically a god object for the program) May 23 17:39:11 so yea May 23 17:46:38 <_xor> Newbie question: How do I send an already running activity a message? The only thing I can find is startIntent with setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), & then handle the intent in onNewIntent() in the activity. May 23 17:46:44 <_xor> Is that right? Doesn't seem like it's correct. May 23 17:47:51 Don't send messages to an Activity. Have the Activity subscribe to listen to something May 23 17:48:40 one question. does anyone have experice at debugging on a rockShip android table? May 23 17:48:47 <_xor> Ah ok, so BroadcastReceiver or something? May 23 17:48:52 The SDK version on those tablet looks strange May 23 17:49:51 _xor: That's definitely a good option yes May 23 17:50:58 <_xor> yiati: Wait, will an activity that's setup to receive messages like that get them if the activity is not in the foreground? May 23 17:52:26 _xor: http://stackoverflow.com/a/7282739/1229735 May 23 17:52:43 Making a small test project to toy around with this is always super helpful May 23 17:52:59 <_xor> Yeah, doing that now. May 23 17:53:08 nice May 23 17:53:09 <_xor> I'm just trying to hack this together really quick. May 23 17:53:34 <_xor> I'd use RxAndroid, but I don't the time to figure out the API and get it going. May 23 17:54:24 <_xor> I have a class that acts as a network listener on a socket. When a message comes in on that socket, depending on the message, I want to send a certain activity a message with some data. May 23 17:54:42 <_xor> I'm sure it's not the best way to go, the way I'm doing it right now, but I'll figure out the right way later tonight & tomorrow. May 23 17:59:18 results of some BLE testings i did yesterday : MotoX (Android 5) connecting to Moto G (6): about 350bps; reverting the roles: 4kbps May 23 17:59:48 BLE isn’t really what you want to use for high bandwidth May 23 18:00:22 s73v3r, yep, i see May 23 18:01:00 but i thought the rate would be a little higher May 23 18:01:13 you could use BLE to connect the two through a direct wifi connection May 23 18:01:35 in fact, 10 times higher than the highest i'm getting May 23 18:03:04 Is it possible to have two APKs in production, where one is targeted to 16+ SDK and another is 20+ SDK level, and if a user goes to the Play Store with an Android device that only has 16+ they will be able to install the older SDK that is 16+ and if a user comes that has Android 21 installed, they will get the new 20+ SDK version of the app? May 23 18:03:10 I created a stackoverflow question here as well: http://stackoverflow.com/questions/37396804/targeting-different-android-api-levels-with-two-different-apks-in-production May 23 18:03:20 yes May 23 18:04:07 Is it possible for a user to change his rating of an app ? May 23 18:04:14 yes May 23 18:04:14 ( on the play store ) May 23 18:04:21 good. May 23 18:04:26 they won’t, though May 23 18:05:10 interesting, so my AS hangs when computer wake-up - but if i adb kill-server and wait about 1 minute it recovers. I just wasn't waiting long enough ... May 23 18:05:27 g00s: you on windows? May 23 18:05:47 OS X May 23 18:05:56 it has to do with adb + USB on OSX May 23 18:06:13 i guess AS is blocking the main event loop waiting for it to recover May 23 18:09:32 anyone still use genymotion May 23 18:09:48 yuh May 23 18:09:54 i had to stop using it cause I needed something with Bluetooth May 23 18:10:00 and I haven’t really done any projects at home May 23 18:12:14 g00s, https://app.illustrio.com May 23 18:12:19 pretty cool for non designers May 23 18:12:49 g00s: are you talking about 100% cpu on OSx? May 23 18:13:12 thepoosh i haven't seen that often .. i think this is different May 23 18:13:23 i have seen 100% cpu, but on different occasion May 23 18:15:03 every time i clean and checkout to a different branch all hell breaks loose May 23 18:16:38 hmm, i'll have to keep my eye on that - maybe i just didn't make the connection May 23 18:17:13 <_xor> Can registerReceiver() be called within onCreate? May 23 18:17:25 <_xor> It looks like I almost have this, but my receiver isn't getting the intent. May 23 18:18:55 s73v3r: to confirm you were responding to me, if I have version 109 of my app in production that is 16+ and version 123 that is 20+, all android users with SDK 16 through 19 will still be able to install version 109 of the app? May 23 18:19:19 i believe so. May 23 18:19:34 i know you can separate APKs based on SDK version May 23 18:20:05 vbampme, yes. unless you remove version 109 manually May 23 18:20:36 danijoo: great thanks May 23 18:20:43 s73v3r: thanks May 23 18:27:35 Hey guys I have a small problem, I have two activities that listen for DataInputStream, but when I execute my second activity my inputstream goes to my main activity instead, is there a way to switch between the two DataInputStreams? May 23 18:28:21 remove the listener when changing activities May 23 18:29:26 thepoosh do you use floating activities at all? i'm trying to give mine a elevation / shadow but can't seem to get it working May 23 18:29:41 some, we have shadow May 23 18:29:52 even in iosched they have no shadow, so i thought maybe its not possible May 23 18:30:05 thepoosh so you are using a floating activity then ? not dialog, etc May 23 18:30:15 video player May 23 18:30:19 hm May 23 18:30:26 s73v3r, I have my listener in a while loop with a switch/case, and I had it send stop loop command (just simple byte) would that be sufficient? or do I need ot use DataInputStream.close()? May 23 18:30:38 btw thats on the main activity, not the second. May 23 18:31:05 actually, it’d probably be better if you were to take that stuff out of the activities altogether May 23 18:31:19 quite frankly, that isn’t something that should be in an Activity May 23 18:31:32 g00s: we use a View with a semi transparent black drawable May 23 18:31:42 s73v3r, make a separate class, like asynctask, and listen for inputstream? May 23 18:31:53 maybe more like a service, but yeah May 23 18:31:58 get that out of the Activity May 23 18:32:44 ok, then would I use close() top that particular inputstream or will that close all inputstreams? May 23 18:33:17 well, you wouldn’t have to worry too much about closing it when you switch activities, I don’t think May 23 18:34:04 Well, my second inpustream is in a asynctask, too. Not actual activity. May 23 18:36:23 Hey I am having issues with scrollToPosition on a recycler view with setReverseLayout and setStackFromEnd - http://pastebin.com/R0tSbsdj Anyone know a way to get the view to scroll to the bottom? May 23 18:36:52 thepoosh what are you up to today ? May 23 18:41:19 do you guys use assertions in your regular dev work? May 23 18:44:13 literal assert? no, but I'm a firm believer in defensive coding where every function should do its best to insure that its inputs are sane May 23 18:44:29 assert is one route to that of course May 23 18:45:00 only of any use in development May 23 18:45:10 and even worse, you never know what the behavior of the failed assert will be in production May 23 18:45:20 data corruption, crashes, fail ui May 23 18:45:32 most assertions are turned off in production, no? May 23 18:45:36 it's good if you need to "run at all costs" May 23 18:45:51 assertions violate DRY for that reason May 23 18:46:05 (er, not "run at all costs" but previous reasons) May 23 18:46:24 yeah, i suppose there's that. like I said, I don't use assert :) But agreed, the important thing is consistent behavior May 23 18:47:00 if your inputs are garbage all you can do may be to blow up and crash, but at least you crash for a reason rather than mangle the system with junk May 23 18:47:08 outside of explicitly testing production builds with assertions turned off, and exercising the failed code-paths, assertions are generally a bad idea May 23 18:51:01 If I had a dependency in my local artifactory repository and then published the same library with the same name and version, how would gradle know which to use? May 23 18:52:03 It looks in the first repository, then the second, then the third, .. May 23 18:52:37 Checking the local cache first May 23 18:53:00 SimonVT, so depends on the order I have in my top-most build.gradle file? May 23 18:53:29 Yep May 23 18:53:34 could somebody be so kind and take a look at my logcat? i cant see what exactly went wrong http://pastebin.com/raw/Fcrd4znf May 23 18:53:35 alright, thanks May 23 18:53:52 the playstore crashes after accepting the terms May 23 18:55:34 hollusion, what device is this on? May 23 18:55:38 can anyone point me to a google app with master / detail beside gmail ? May 23 18:55:52 surf2b1, samsung gt-s5300 May 23 18:56:11 i flashed it with the stock rom and did a fatory reset May 23 18:57:54 hollusion, the most you can do is decompile com.android.vending and try to find the crash. No one here will know what's really going on just by looking at the stacktrace. May 23 18:58:13 just solved a super annoying but where some of my resources werent loading in the turkish translation of my app May 23 18:58:51 hollusion: If you need help with your device, try #android May 23 18:59:06 guess whats wrong with this: resources.getIdentifier(ctx, "drawable", someResourceName.toLowerCase()) and localization :P May 23 19:00:24 Hi guys May 23 19:01:22 Always supply locale to tolowercase :) May 23 19:01:55 I believe you can enable that as an inspection in intellij if that helps. May 23 19:02:46 yawkat, yeah ^^ May 23 19:02:49 has anybody got any advice for reading MIDI files? May 23 19:03:17 it made "ıtem" out of "Item" instead of "item" May 23 19:03:42 Yea it's really annoying May 23 19:04:20 I starred at the debugger and was like "IS SAYS item! Why is my resource id 0 ?? " May 23 19:05:04 dofidum: https://www.youtube.com/watch?v=ZXsQAXx_ao0 May 23 19:05:44 SimonVT, helpful... May 23 19:06:04 g00s: you mean the Monument Valley article on r/androiddev? May 23 19:08:09 dofidum: MIDI is on the list of supported media formats, so.. May 23 19:08:21 s73v3r yeah May 23 19:08:33 reading it now. May 23 19:08:51 SimonVT, supported in what sense, though... May 23 19:09:02 I am sure there will be no shortage of people on /r/android saying they felt justified in pirating it because they “neglected android”. May 23 19:09:11 Hi, I'm getting a java.io.IOException: setDataSourceFD failed.: status=0x80000000 when executing MediaPlayer.create(context, soundURI); The file type is "audio/ogg; codecs=opus" May 23 19:09:39 Hi, I'm getting a java.io.IOException: setDataSourceFD failed.: status=0x80000000 when executing MediaPlayer.create(context, soundURI); The file type is "audio/ogg; codecs=opus" May 23 19:09:49 such people, I believe, could be removed from existence, and there would be no negative consequences May 23 19:09:55 SimonVT, I don't actually want to play it... May 23 19:10:09 Then ask a real question May 23 19:10:44 pretty good article on future power saving stuff May 23 19:10:46 http://www.xda-developers.com/how-android-n-will-improve-battery-and-memory-management/ May 23 19:11:08 as long as i can still have a foreground service .... May 23 19:14:17 SimonVT, you're a bit of a hostile responder? i was just looking for libraries to read MIDI files and wondered if anybody here has any experience with any... May 23 19:14:29 Read them and do what? May 23 19:15:03 FileInputStream can read any file type May 23 19:15:37 SimonVT, and process the MIDI events... May 23 19:16:02 anyone know any way to make a scrollToPosition work with the recycler view - I tried by calling the layout manager or putting it directly on the recycler view and it does not scroll... not sure if it has to do with the fact that I am using reverse and stackFromEnd on the layout... May 23 19:17:54 dofidum: it helps to be very specific regarding explaining your intentions May 23 19:18:57 dofidum sounds like some kind of intestinal bacterial ... May 23 19:19:49 oh i was thinking of Bifidobacterium May 23 19:19:57 g00s, he said intentions, not intestines :P May 23 19:28:12 dofidum, since you don't want to treat it as media, you'd likely open it like any other file and either decode the data yourself or use some java midi library May 23 19:28:26 it'd be independent of the OS supporting it as a media file May 23 19:30:51 dragorn, ok, thank you :) May 23 19:31:24 the only exception to that is if there are midi processing libraries shipped with android - in which case they'd be listed in the supported APIs on developer.android.com May 23 19:31:48 sometimes android ships third party APIs for useful stuff May 23 19:33:11 dragorn, i can't find any if there are... May 23 19:35:02 dragorn, there's good java support for MIDI with javax.sound.midi meaning that there's little need for java MIDI libraries (but javax.sound.midi is not included in android) May 23 19:38:23 sorry I got pulled away before, yeah what I meant about assertions is that I wanted to put like one or two in there to help me test some things. assertion should never really happen in production anyway May 23 19:39:12 just to help find some possible bugs quicker during dev May 23 19:40:24 you can read Coders at Work, it's filled with programming heros using only assert and printf to debug May 23 19:49:40 do I need to check GoogleApiAvailability with Firebase Messaging? May 23 20:01:23 Is there a way to sort network traffic by PID using DDMS or something similar? https://developer.android.com/studio/profile/ddms.html#network May 23 20:40:15 hey all May 23 20:40:19 does anyone know if this is normal? May 23 20:40:20 http://pastebin.com/rGAE3TZL May 23 20:40:27 looking at you g00s :P May 23 20:40:46 Ive never seen that behavior before but then again, I look at my logs with filters May 23 20:41:10 looks like normal English to me May 23 20:41:21 reads like a book May 23 20:53:18 tricknology: output the rssi aswell as those other params.. so you know if its signal level related May 23 20:53:45 yeah but I was wondering if it’s normal for a device to conenct and disconnect to often May 23 20:54:58 tricknology: whats nornmal when dealing with RF? the magical ether has crazy effects.. output the rssi and you'll be able to know for sure May 23 20:55:12 ah ok thanks :) May 23 20:55:36 sadly on the br/edr device i use no way to get rssi May 23 20:55:43 thats only ble May 23 20:56:01 tricknology but you should dump the HCI logs May 23 20:56:29 no way to know really, maybe somebody next to you started using their wireless mouse :P May 23 20:56:42 you need lab equipment ! May 23 21:01:03 tricknology this was for work, right? maybe i'm confusing you with somebody else May 23 21:01:29 haha yeah still same project May 23 21:01:36 we have quite a few BT mice around here.. May 23 21:01:57 tricknology time to tell your boss to get off his ass and stop being a useless shit, and get you the stuff needed to unblock your progress May 23 21:02:00 but the device is righ tnext to the phone so I doubt (but it’s not impossible) that it’s signal strength May 23 21:02:37 haha there are a lot of things that need to happen May 23 21:02:44 btu I’m in contact with the HW vendor every way May 23 21:02:48 every day* May 23 21:03:05 I guess I could ask them but I was wondering if oyu’ve seen that behavior before May 23 21:03:13 nop May 23 21:04:02 you havent seen it? May 23 21:04:09 they aren't going to be able to help without more info May 23 21:05:12 tricknology: just because the BT device is right next to the phone doesnt mean anything May 23 21:05:21 true May 23 21:05:23 interference May 23 21:05:28 nope May 23 21:06:37 counter intuitive i know but its actually bias in the antenni May 23 21:06:44 i forget the exact name May 23 21:06:53 you get the same thing on transmission lines May 23 21:07:15 Napalm crosstalk ? May 23 21:09:48 dont think it was that May 23 21:23:59 dumb nobbie question, how to edit string in .java . So i have string R.string.testBut but i cant to R.string.testBut = "blabla" , duno it says i can do R.string.testBut = some int May 23 21:24:23 because that is an int May 23 21:24:26 i want to change value of string itself May 23 21:24:32 so change it in the XML May 23 21:24:44 i want to change it on button in my app May 23 21:24:51 so change the string in the XML May 23 21:25:18 otherwise, get a reference to the button element, and call setText() on it May 23 21:26:31 Gnjurac: the R class is particular, and you can't change its values May 23 21:26:36 duno if i am bad in asquing question or what, i want to have a string in what i will store vaule that can change, so example i have a button and i want on click to change TextView to some string. So atm i worked out that May 23 21:26:52 quelqun_dautre: that what i wanted to change xD May 23 21:26:55 so call setText May 23 21:27:09 you’re not going to change the value of the R string May 23 21:27:19 ok so if i cant change R class how do you make strings that pass bewing voids May 23 21:27:31 CALL SET TEXT ON THE VIEW May 23 21:27:53 dude set text of what May 23 21:27:59 Gnjurac read the docs ! May 23 21:28:05 statusT.setText(R.string.testBut); May 23 21:28:11 THE VIEW YOU’RE TRYING TO FUCKING CHANGE WHAT STRING IT’S DISPLAYING May 23 21:28:39 statusT.setText(R.string.testBut); changes my text to f string i define but i want to be able to change f string May 23 21:28:51 need a string that will pass betwin functions May 23 21:28:53 read the fucking docs May 23 21:29:23 either define a new string in your strings.xml for this purpose, or just put a string in setText May 23 21:29:25 you are really helpfull May 23 21:29:48 you have not done the slightest bit of work to solve your own problem May 23 21:29:54 and you have ignored everything that has been said May 23 21:29:56 so i cant make functions that change strings on click May 23 21:30:06 you have been told several times how to do it May 23 21:31:05 no you told me zilion times to use SetText and quelqun told me R class cant be changed May 23 21:31:20 yes, you ahve been told how to do it May 23 21:31:38 on button click, you’re gonna call setText on the view you want to change, and pass the string you want to change it to in there May 23 21:31:56 you’re not going to change the existing string, because Java Strings are immutable May 23 21:32:22 go read the docs May 23 21:33:26 Gnjurac you have to setText, and R can't be changed May 23 21:33:32 :D May 23 21:34:57 so i guees workorund for me is to make an ivisible TextView and set text for it and then read it from other function? May 23 21:35:05 no May 23 21:35:25 happy people xD May 23 21:35:57 if you honestly want to go that way, why the fuck would you use an invisible TextView instead of having a String member variable in your class? May 23 21:37:34 cuz duno i am asking how to do that all time, in unity3d i just declere string BlaBla; May 23 21:38:04 but here as i see strings are stored in strings.xml May 23 21:39:18 well, Android isn't Unity May 23 21:39:26 but you could have guessed that May 23 21:40:06 i thinked i must defined it in xml May 23 21:40:10 that confused me May 23 21:41:14 was there anything said in google io about the data binding api? May 23 21:41:39 no recorded talk i've found May 23 21:43:07 they didn’t say anything that i’ve heard May 23 21:43:32 why i cant now do numberCount = R.string.dog; May 23 21:43:45 i defind numberCount as a string May 23 21:44:25 Gnjurac: because R is basically immutable. May 23 21:44:26 whatewer i dont need to use R.string.dog anyway i will just tupe dog May 23 21:44:53 but i am not trying to change R i just want to reed it May 23 21:45:33 probably should google definition of immutable May 23 21:45:41 cuz i duno what that means May 23 21:45:48 you should probably read up on how the resource stuff actually works May 23 21:46:14 immutable means it can’t be mutated, or changed May 23 21:46:46 so R.string.dog is always going to point to the same ID that it always does. That ID is going to be used to look up a string that will always say the same thing in that run of the app May 23 21:47:40 ty for explaing May 23 21:48:18 hey tricknology May 23 21:48:30 tricknology: check this out.. i found it.. took me awhile https://www.youtube.com/watch?v=DovunOxlY1k&feature=youtu.be&t=1m40s :) really good May 23 21:49:04 haha thanks May 23 21:49:23 I;d rather have a standing wave when it comes to BT May 23 21:49:25 :P May 23 21:49:56 wave reflection May 23 21:52:17 s73v3r, i've found there was a talk titled Advanced Data Binding, but no video May 23 21:52:35 https://events.google.com/io2016/schedule?sid=61d80842-c8f6-e511-a517-00155d5066d7#myschedule/61d80842-c8f6-e511-a517-00155d5066d7 May 23 21:52:39 bitkiller: yea it wasnt recorded :( May 23 21:52:47 should have been.. May 23 21:52:51 data binding is awesome May 23 22:02:36 so what causes an indeterminite progress bar not to animate? May 23 22:03:24 it’s wrapped in a linearlayout, and setVisibility is called on that linearlayout, instead of on the progressbar itself May 23 22:04:05 it’s also not showing the proper Material spinner, but I don’t know if that’s connected May 23 22:05:43 has anyone tried out constraintlayout? May 23 22:06:05 about 4 people on reddit are saying it doesn't work well. May 23 22:06:51 i played with it on the codelab project, and it seemed to work ok May 23 22:06:57 what were they saying was going wrong? May 23 22:07:12 It is also kinda alpha/beta, so problems are to be expected May 23 22:09:04 as with most things on reddit, people bitch but no actual details. May 23 22:09:10 https://www.reddit.com/r/androiddev/comments/4kqarg/what_are_your_thoughts_after_using_the_new/ May 23 22:09:21 one thing that was said, is if you edit the xml it would freeze May 23 22:11:42 weird. That’s definitely not my experience at all May 23 22:13:42 s73v3r, the only time i've seen progressbar not to animate was when i had something hijacking the ui thread May 23 22:14:01 that's the first answer that came to mind May 23 22:14:16 hmmm, this is a Dialog May 23 22:15:03 let me try forcing the part that shows/hides the view to run on the UI thread May 23 22:20:43 nope, still not animating May 23 22:28:50 s73v3r, it wouldn't animate if you have the wrong theme/style set May 23 22:29:28 I have traced the spawning activity’s theme back to Theme.AppCompat May 23 22:30:41 the default theme for the app also goes to Theme.AppCompat May 23 22:31:25 https://github.com/danielzeller/Depth-LIB-Android- May 23 22:31:45 I have got to look at the source on this, supposeduly all done in a Canvas May 23 22:39:53 So I was able to replicate a bug that is coming up for my mobile website on a Samsung S3 device using Amazon Device Farm. How can I inspect the browser while testing using Amazon device farm, so I can see if I can figure out what is causing the error? May 23 22:43:25 pfn: What would the correct theme/style be for animating an indeterminate progress bar? May 23 22:44:19 Widget.ProgressBar.Small works May 23 22:44:28 or .Large May 23 22:46:16 what if it’s just using Widget.ProgressBar? May 23 22:46:29 well, android:Widget.ProgressBar? May 23 22:47:11 although I now see that the v21 of the style isn’t inheriting from anything May 23 23:05:28 setting the style to Widget.ProgressBar.Small or .Large didn’t help. Still no animation :( May 23 23:05:44 is there something about putting it in a Dialog that’s making it not work? May 23 23:15:18 s73v3r: are you extending AppCompatDialog? May 23 23:15:28 no, just Dialog May 23 23:15:36 try it May 23 23:15:49 when did AppCompatDialog come in? May 23 23:15:55 since day 1 May 23 23:16:28 I did notice that with some of my fucking around, another screen that had progress bars how I wanted them now shows them how this thing I’m trying to fix shows them May 23 23:23:30 AppCompatDialog didn’t appear to help May 23 23:23:54 How do I go about programatically changing all TextView instances' textColor property that's in my current Activity to say... Color.ORANGE? May 23 23:34:09 I was able to replicate a bug that is coming up for my mobile website on a Samsung S3 device using Amazon Device Farm. How can I inspect the browser while testing using Amazon device farm, so I can see if I can figure out what is causing the error? May 23 23:43:43 I had gotten the progress bar to spin, but now it’s not spinning again May 23 23:44:15 and there are other progress bars on that same activity that are looking the way I want them to May 23 23:47:52 s73v3r: well sounds like your using the wrong context during inflation someplace May 23 23:48:07 possibly May 23 23:48:28 I do also set some window params when inflating the dialog May 23 23:48:35 but that’s mainly to set the size May 23 23:49:20 I use the view’s getContext() method. I would guess that’d be the activity context, but I could be wrong May 23 23:55:35 s73v3r: so your getting the wrong spinner drawable right now? May 23 23:55:53 wait, I just looked at the construction of the dialog, and I am setting a theme May 23 23:56:53 so I’ve spent the majority of the afternoon looking at themes, and I’m pretty sure I was looking at the wrong themes :( May 24 00:00:03 right now, I’m passing in android.R.style.Theme_NoTitleBar_Fullscreen. let’s try passing in one of my app’s themes which inherits from Theme.AppCompat May 24 00:01:57 thats your problem May 24 00:02:22 that did it May 24 00:02:45 dammit, I need to get rid of this theme in the constructor May 24 00:03:09 well thats easy enough May 24 00:03:31 go look at the properties of the Theme.NoTitleBar.Fullscreen theme by ctrl+clicking it May 24 00:03:40 then follow to the parent Theme.NoTitleBar and get those May 24 00:04:16 now create a