**** BEGIN LOGGING AT Wed Oct 05 02:59:58 2016 Oct 05 03:55:03 hi, using OkHttp - how do i know if a url load has timed out? Oct 05 04:00:15 you get an error Oct 05 04:01:04 alex_PP see the google announcements ? any thoughts ? Oct 05 04:01:12 yeah Oct 05 04:01:19 nothing too exciting Oct 05 04:01:30 doubt we'll be talking about oct the 4th 9 years from now... Oct 05 04:01:58 lol, yeah Oct 05 04:02:09 I like the blue pixel though Oct 05 04:02:19 still not too keen on the weird glass panel Oct 05 04:03:02 i wish we had some more affordable reference HW, may as well get an iphone now Oct 05 04:03:18 thats probably a better value too, being supported for 4 years Oct 05 04:03:18 but then you get iOS Oct 05 04:03:35 which I can't stand Oct 05 04:04:03 the latest update made it impossible to unlock the screen without clicking the home button, you know the thing that brakes on every single iphone Oct 05 04:04:16 oh noes Oct 05 04:04:26 wonder what pixel support will look like Oct 05 04:04:29 i was hoping they would get rid of that damn button Oct 05 04:04:32 that'll be interesting Oct 05 04:04:52 the button's different in the newest iphone Oct 05 04:05:06 capacitive or something, wasn't paying attenttion Oct 05 04:05:26 alex_PP after a while its all the same blah blah blah Oct 05 04:05:34 its a square rectangle :D Oct 05 04:05:39 oops lol Oct 05 04:05:45 a *rectangle* Oct 05 04:05:59 * g00s invented new geometric shape Oct 05 04:06:39 DxO reckon the pixel's camera is pretty good Oct 05 04:06:44 that's nice Oct 05 04:06:46 and a first for google Oct 05 04:07:08 alex_PP android supports DNG now right ? Oct 05 04:07:11 I've been using the camera on my sony a lot more the last eyar Oct 05 04:07:18 android's supported DNG for ages Oct 05 04:07:26 but the vendor has to support it too Oct 05 04:07:31 (sony don't :() Oct 05 04:07:40 doh Oct 05 04:10:01 pixel's got a hall effect sensor Oct 05 04:10:03 why? Oct 05 04:10:56 maybe some interface with the VR headset ? Oct 05 04:11:40 maybe Oct 05 04:11:48 though I doubt it Oct 05 04:12:39 I like that they have pretty much the same specs for the big and small one Oct 05 04:12:53 just screen and battery are different Oct 05 04:13:02 I hate when the small ones are crippled Oct 05 04:14:15 alex_PP yeah thats nice Oct 05 04:15:33 spent yesterday playing with kotlin Oct 05 04:15:44 pretty cool, innit Oct 05 04:16:14 [12:00] you get an error -------- I tried setting the timeout to 1 second as the instructions at https://github.com/square/okhttp/wiki/Recipes#timeouts suggest Oct 05 04:16:30 even though it takes more than a second to come through, the response are still loading perfectly fine Oct 05 04:16:54 how long? more than 3? Oct 05 04:17:03 some of them maybe 5 or 6 Oct 05 04:17:45 interesting Oct 05 04:17:51 pastebin? Oct 05 04:19:53 g00s: http://android.stackexchange.com/questions/56538/what-is-a-hall-sensor-and-what-is-it-used-for Oct 05 04:20:01 hall sensor seems to be to detect a case Oct 05 04:20:16 could be the vr doodah too Oct 05 04:23:53 @alex_PP: http://pastebin.ca/3725364 Oct 05 04:37:42 ir7466_: that's simple enough Oct 05 04:37:54 had a look at the okhttp code and it looks like the values are used Oct 05 04:38:41 ah ha Oct 05 04:38:42 http://square.github.io/okio/1.x/okio/okio/Timeout.html Oct 05 04:39:06 “Timeouts specify the maximum time to wait for a single operation to complete. Timeouts are typically used to detect problems like network partitions. For example, if a remote peer doesn't return any data for ten seconds, we may assume that the peer is unavailable.” Oct 05 04:40:17 so, your server is returning stuff fast enough not to hit time timeout on and any single read from the buffer Oct 05 04:40:26 ir7466_: Oct 05 04:42:28 heya guys, anyone here experienced with GreenDAO ? Oct 05 04:48:27 Tusker: tried it, disliked it Oct 05 04:49:47 alex_PP: what are you using instead? I'm having a ToMany relationship issue that I can't get my head around Oct 05 04:49:56 SQL Oct 05 04:50:15 directly ? Oct 05 04:50:26 pretty much Oct 05 04:50:34 SQL and AutoValue Oct 05 04:50:47 experimenting with sqldelight Oct 05 04:50:55 macos sierra update Oct 05 04:54:28 once I written reusable SQL code I don't need any other libraries :) Oct 05 04:55:07 Tusker: what is your issue? Oct 05 04:58:08 squ: well, I have an Entity, that has a ToMany relationship. which I am prepopulating over JSON before I can save it into the DB. Oct 05 04:58:54 so, entity.getItems() has an array of Entity, and parentId set appropriately in the join column Oct 05 04:59:07 I see Oct 05 04:59:11 when I do a .insert(parent), the id columns of the children don't get updated Oct 05 04:59:32 your data is stored in JSON format, there you have your entity Oct 05 04:59:33 so, I tried to insert the children before (and also after) the parent, and it complains about being detached Oct 05 04:59:43 and you want to convert it to sql? Oct 05 05:00:10 yeah, so far I have tried to annotate with GreenDAO 3, which works OK for a POJO Oct 05 05:01:00 and it seems to work fine if I build the object tree up manually (ie, the child entities don't come in the initial structure, but added after the initial structure has been inserted into the DB) Oct 05 05:01:45 when my whole structure comes in from JSON (ie, using Jackson or GSON etc) I can't seem to save that whole structure into the DB Oct 05 05:06:01 to put it into database you don't need to join it Oct 05 05:06:30 join is for selecting data to read it out of database Oct 05 05:06:59 put it in raw unsorted way Oct 05 05:07:31 squ: OK, and post insert all the parent/child relationships, and .update() ? Oct 05 05:07:51 if you want to normalize columns of the raw, that is another question and probably not for you :) Oct 05 05:07:56 of the row Oct 05 05:08:31 to insert just insert all the data with maximum data in database Oct 05 05:08:33 it's a recursive structure, and I don't really want to change the incoming data format Oct 05 05:10:27 @alex_PP, that doesn't make sense though. if i'm setting it to 1 second and it's taking 6 to complete, according to the okhttp logic shouldn't that count as a timeout? Oct 05 05:10:55 the time out means 1 second of inactivity, not one second to complete Oct 05 05:11:13 if your server doesn't send anything for > 1 second it will timeout Oct 05 05:11:29 but as long as your server keep sending stuff it wont Oct 05 05:12:49 hey , I am trying to send email in gmail app using asynctask, I press email button in my app and gmail comes and after sending the mail , control goes back to my app , and it should show progress dialog till the mail is being sent Oct 05 05:13:14 The progress dialog is howd but it doesn't stop on mail being sent Oct 05 05:13:22 howd->showed Oct 05 05:15:31 alex_PP: ah Oct 05 05:16:12 how can i emulate it timing out then? would setting it to 10 sec and going into airplane mode after 5 sec achieve it? Oct 05 05:16:27 ir7466_: yeah, that should work Oct 05 05:16:37 and what should I expect to happen next? Oct 05 05:16:47 would an exception be thrown or would the response just be an error? Oct 05 05:17:02 response.isSuccess == falex Oct 05 05:17:06 false* ha Oct 05 05:17:12 ok Oct 05 05:17:15 my hands are typing for me Oct 05 05:17:24 so i won't know that it timed out, i'll just know it failed Oct 05 05:17:33 or will it throw? Oct 05 05:17:37 been a while Oct 05 05:17:51 i am catching catch (IOException e) Oct 05 05:17:58 so if it throws that i'll know Oct 05 05:19:09 try it and see what happens Oct 05 05:19:24 I suppose throwing makes more sense Oct 05 05:19:36 as you don't get a response at all, rather than an error response Oct 05 05:24:10 Network errors throw Oct 05 05:25:07 Error responses (not 2xx response) has isSuccessful == false Oct 05 05:26:25 javax.net.ssl.SSLException: SSL handshake aborted: ssl=0x615e9788: I/O error during system call, Connection timed out Oct 05 05:27:29 so , is there a way to show progressdialog for email to show in my app (which is sent using my gmail and gmail is called by my app) Oct 05 05:28:18 If you're opening Gmail, then you're no longer in your app Oct 05 05:29:36 But sure, nothing should stop you from showing a progress dialog in your activity Oct 05 05:39:29 hi, looking for the simplest example of reading a database file and returning the contents, working in android studio trying to understand it Oct 05 05:41:00 Delphin: what type of database file ? Oct 05 05:41:28 Tusker: sqlite Oct 05 05:41:49 Delphin: like http://stackoverflow.com/questions/7331310/how-to-store-image-as-blob-in-sqlite-how-to-retrieve-it ? Oct 05 05:42:50 Tusker: ya, but instead of db = new DataBase I want to know how to put a filename in there Oct 05 05:44:00 Delphin: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#openOrCreateDatabase(java.io.File, android.database.sqlite.SQLiteDatabase.CursorFactory) ? Oct 05 05:48:10 too crazy to understand there :/ Oct 05 06:00:50 Delphin: http://www.tutorialspoint.com/android/android_sqlite_database.htm ? Oct 05 06:02:01 i am a java developer and wish to build my first android app for mobile for personal learning. i have a list of text that i wish to display as a carousel. the list needs to be spit in multiple pages of carousel. carousel page needs to have fixed height and width. the individual text string may have variable width. so each page may contain variable number of texts. Oct 05 06:03:12 i am not sure how to build such widget; i have been googling since last couple of hours but i am completely lost where should i start. i already have basic app up and running but can not figure how to build such component. Oct 05 06:04:22 mayb a viewpager with fragments Oct 05 06:05:01 theres also some projects on github Oct 05 06:05:33 yup i zeroes on viewpager but i am not sure how to give individual page a dynamic behavior Oct 05 06:06:13 each fragment has its own activity lifecycle Oct 05 06:06:52 i need to populate the pages dynamically and also make sure there is no clipping of those list items. Oct 05 06:07:54 whats preferred way of this channel to share screenshot? i am trying to replicate this feature from Toshl app that already has this functionality. i guess, it would be better if i just share the screenshot. Oct 05 06:08:55 not sure there is any pref' one Oct 05 06:09:06 thepoosh: hi Oct 05 06:09:12 hi hi Oct 05 06:09:18 what's new? Oct 05 06:09:22 how was holiday Oct 05 06:09:27 noice Oct 05 06:09:37 lots of kugel? Oct 05 06:09:51 nah, we are not the kugel type Oct 05 06:09:59 how was yours? did you manage to release? Oct 05 06:11:02 man Oct 05 06:11:06 still got like 2 weeks Oct 05 06:11:10 always 2 weeks. Oct 05 06:11:17 I thought you were aiming to sunday Oct 05 06:11:23 i was Oct 05 06:11:33 but im redoing a fuckton of layouts Oct 05 06:12:28 oh myyy Oct 05 06:12:33 why are you doing that now? Oct 05 06:13:13 unified uix and debuggin Oct 05 06:13:58 its gettin there though Oct 05 06:19:50 raoul11: http://i.imgur.com/ORlIfc2.png this is screenshot from toshl android app. this looks like a viewpager like you mentioned and individual page contains variable textviews. Oct 05 06:20:55 what i use for something similar is a viewpager+pageradapter+fragments Oct 05 06:21:23 FragmentPagerAdapter Oct 05 06:22:09 for the indicators at the bottom i use custom xml and a listener addOnPageChangeListener on the viewpager Oct 05 06:22:20 i see, i am still not clear about how to go on implementation. i need to display one huge string array, split in multiple pages. Oct 05 06:22:51 i suppose i need to provide it, what my page contents would be, right? for that to decide i do not know how many array elements will fit on a single page? Oct 05 06:23:18 id pre-assign it Oct 05 06:23:57 you can do that in the host activity and read from it inside the fragments Oct 05 06:24:03 Hi all. I want to use firebase in my project. But does somebody know if it's easy to switch gmail account? like changing the owner of the project? Oct 05 06:28:24 sorry, its still not clear to me how would i pre-assign it. i am completely new to android so dont know how the rendering will happen. like you said, i can assign lets say 10 items to each page and then layout will automatically split those in available space? Oct 05 06:29:16 no Oct 05 06:32:04 fragments have a lifecycle. so lets say you got 3 fragments, each need to host 10 items: on each fragment onCreateView (or later in the lifecycle) you can query the parent activity for the releavent items to that fragment by doing something like this: String[] items = ((ParentActivty)getActivity).getFragmentItems(1) Oct 05 06:32:08 something of the like Oct 05 06:33:15 pre-assign it on that parent activity (which loads sooner obviously) Oct 05 06:37:24 i am more concerned about how the layout will work out visually. lets say i fetch 10 items for a page now i wish them to display so that those occupy all avaible space, lets say 300dp x 300dp. Oct 05 06:37:53 what styles/attributes i need to achive that result? Oct 05 06:48:57 I'm trying to remember the name of that "sorting" algorithm that is reversible, used for compression? Oct 05 06:49:09 BSort? Oct 05 06:49:49 Ah, Googled "compression" "sort" and it's BWT. Oct 05 06:50:06 https://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transform It's not actually a sort. ;) Oct 05 06:50:17 In the sense that it's reversible Oct 05 06:56:17 raoul11: what i am looking is android equivalent of CSS float: left. Oct 05 06:56:38 gravity/layout_gravity Oct 05 06:57:19 or if you're in a relativelayout, alignParentStart/Left Oct 05 07:14:29 hi! Oct 05 07:17:06 zedz: hihi Oct 05 08:23:20 Hi all. How do you guys do dagger injection inside your custom views? Oct 05 08:35:54 Thats better. Oct 05 09:07:46 what's better to use a resource directly like R.array.array_name, or to use the Resources class? Oct 05 09:25:30 LOL welcome back Oct 05 09:25:31 alphamule: I already have the login activity. It's the Firebase login activity and it's complete. I'm wondering when and how Oct 05 09:25:46 So it's more of a style question? Oct 05 09:26:33 I'm seeing a lot of results from Google for "android" "session" "management" Oct 05 09:26:47 Need some video examples... heh Oct 05 09:27:02 I don't know exactly if I go directly to the main activity and then, if I detect that the user is not logged in, I should switch to the login activity Oct 05 09:27:15 or if I should display a Login button instead of the normal UI Oct 05 09:27:50 Or if I should check the login in the splash screen and do it from there and display the main activity only when the user is logged in Oct 05 09:28:09 I've seen apps detect if the login is not working, and automatically take you back to a "please relogin" screen. Oct 05 09:28:41 That seems convenient. Oct 05 09:29:20 Also, my brain is feeling like mud right now Oct 05 09:29:28 Hoping I'm getting what you want Oct 05 09:29:30 XD Oct 05 09:29:57 so when I should let the user press a button to go to the login activity and not presenting the login activity out of the blue Oct 05 09:30:09 I hope I understand correctly Oct 05 09:30:18 thanks for the feedback alphamule Oct 05 09:30:37 Ah, so if it pops down a two-line prompt... Oct 05 09:30:45 Fade/slide down Oct 05 09:30:51 I've seen interfaces do that. Oct 05 09:31:10 fade-in+slide Oct 05 09:31:41 Versus putting a full-screen prompt up. Oct 05 09:32:28 If the program doesn't always require login, then you obviously want no such annoying prompts. :P Oct 05 09:32:44 See: A lot of One-drive capable apps Oct 05 09:33:25 They remind you that they're kind of pointless until logged in, but you can use the limited local filesystem functionality. Oct 05 09:34:16 ok Oct 05 09:34:49 You also have (old school, Windows) programs to look at, like mIRC. Oct 05 09:34:58 Totally different ballgame. Oct 05 09:35:02 yeah but those are pop-ups Oct 05 09:35:09 But it's like I said: A solved problem Oct 05 09:35:28 The Firebase UI API only provides a login activity, AFAIK Oct 05 09:35:31 In fact, there's tons of variants that are unique and balanced for specific demands :P Oct 05 09:35:36 Anyway thanks Oct 05 09:35:37 Your nicks are very graphic. Oct 05 09:35:44 I'm more confused than before Oct 05 09:35:54 :D Oct 05 09:36:09 mIRC just has it in a menu or when you click on "connect" icon. But it's olllllld Oct 05 09:36:20 And designed for screens >14 inches :P Oct 05 09:37:52 You basically have to consider A) How important is the login (if mandatory) B) If super important, rather to go full-screen, require a button be clicked, or split the difference and fade a prompt down. Of course, you're using Firebase so... Not sure if it allows all of those. Oct 05 09:38:33 Out of my league, TBH. Oct 05 09:42:25 Neo_x5: whose nick is graphic? Oct 05 09:43:12 Sorry I have an extremely 'dirty' mind and I should work instead and not make comments not directly related to android programming. Oct 05 09:43:49 does somebody here use rxjava instead off callback interfaces for fragments | dialogs? Oct 05 09:44:07 no Oct 05 09:44:34 FrancescoV: I don't think you can change the owner of a Firebase project Oct 05 09:44:53 too many italians in this channels Oct 05 09:44:57 channel Oct 05 09:45:09 Melatonina, thanks, didn't find it either Oct 05 09:45:47 I'm not an Italian :) Oct 05 09:46:06 your name it is :) Oct 05 09:46:44 gdrc: why too many? That's not a nice remark Oct 05 09:46:56 I didn't choose my name :p Oct 05 09:47:18 your italian ma did Oct 05 09:48:12 gdrc: where are you from? Oct 05 09:48:19 nop :p Belgium it is Oct 05 09:48:38 italy Oct 05 09:49:39 ok Oct 05 09:49:46 gdrc: https://media4.giphy.com/media/135E47VKw6TM6A/200.gif Oct 05 09:49:59 yes lol Oct 05 09:50:25 Then there is one Italian too many: you Oct 05 09:54:12 First thing Melatonina ever told me was a lie. Oct 05 09:54:19 "That's not a nice remark" Oct 05 09:54:41 Stay clear boys. Oct 05 09:54:50 Neo_x5: I never told you anything Oct 05 09:55:15 I am not in the mood for quotes. Oct 05 09:55:26 NeoFrontier: What lie did I told you? Oct 05 09:55:29 tell Oct 05 09:55:47 Check the logs yourself. Oct 05 09:56:08 hullew Oct 05 09:56:20 Was it today or months ago? Oct 05 09:56:28 Odaym: hi Oct 05 09:57:36 Well I'm not in the mood for people who tell I'm out of place or for people who tells I tell lies I never told Oct 05 09:59:16 what did I walk into Oct 05 09:59:33 nothing Oct 05 09:59:56 someone picking on you here? Oct 05 09:59:57 disregard everything you read and ask your questions Oct 05 10:00:28 really forget it. Sometimes people just say random words Oct 05 10:00:35 It's not worth it Oct 05 10:00:44 cool Oct 05 10:00:55 :) Oct 05 10:10:02 the Firebase login activity sucks really bad Oct 05 10:28:39 Google video search for "login screen example" is nice. :P Oct 05 10:32:17 Hello everyone can anyone help me about this. I want to get elapsed time from this information "Sat Oct 01 00:19:33 GMT+03:00 2016" which is returned from a mongodb query. Is there any ready to use libraries for this? Oct 05 10:32:22 alphamule: the Firebase API provides a ready-made login activity and then a complete set of calls for managing the login. I was trying to use the ready-made activity but it's not very professional looking. I'm going to use it for a while and then I'll make my own login UI. Not everything can be resolved with google Oct 05 10:34:30 alphamule: I mean, I will look at login UI examples on google but login is a quite complex activity (it can fail, you can forget the password, you can login using different procedures, etc.). It's not just about the look of the login screen. And if you have a pre-made login screen you can customize it so much. Oct 05 10:34:53 If it's broken, it's broken. Oct 05 10:35:31 Firebase login activity does a little bit of appbar mess for my taste Oct 05 10:37:08 torak, search for how to parse with "SimpleDateFormat", and elapsed time is usually a delta between two dates anyway Oct 05 10:41:06 bpye: thank you Oct 05 10:41:17 bpye: sorry! wrong tag. Oct 05 10:41:30 bpe: thank you Oct 05 10:44:44 torak: Joda-time is a good library for this. http://joda-time.sourceforge.net/faq.html#datediff Oct 05 10:49:43 the_fog: there is an android version of this. Should i use it? Would it be better? Oct 05 10:49:49 the_fog: https://github.com/dlew/joda-time-android Oct 05 10:49:53 Yes Oct 05 10:50:18 The link was to highlight the 'between' methods Oct 05 10:50:30 the_fog: thank you :) Oct 05 10:50:42 It has a minutesBetween / daysBetween and so on Oct 05 10:50:50 np Oct 05 10:54:25 Google was just to show all the interfaces in action :) Oct 05 10:54:35 Also, for fun Oct 05 10:58:23 hithere Oct 05 11:09:27 wow - with new support libraries I can have customised Dialog Fragments Oct 05 11:10:12 on API < 21 Oct 05 11:10:38 :O Oct 05 11:16:30 alphamule: thanks, I appreciate the help :) Oct 05 11:20:19 yw heh Oct 05 11:24:01 bolovanos, uh... Oct 05 11:24:34 * Zharf is not sure what bolovanos means Oct 05 11:25:44 Zharf, :) sry - I was not able to change colors of check list and of Negative/Positive Buttons to theme colors Oct 05 11:25:55 aha Oct 05 11:43:47 I have some unchecked casts in my project I would like to eliminate them in proper way . I have read this on this topic http://stackoverflow.com/questions/2693180/what-is-unchecked-cast-and-how-do-i-check-it and reading this http://docs.oracle.com/javase/tutorial/java/generics/why.html Oct 05 11:44:01 still do not know why http://pastebin.com/bgVsVXCf Oct 05 11:45:23 http://pastebin.com/uL6zBuRq this would be better - without that redundat code Oct 05 11:47:08 bolovanos: aren't they the same code? Oct 05 11:47:22 hi Oct 05 11:48:16 Melatonina, u mean those pastebins? Oct 05 11:48:31 bolovanos: yes. They look the same to me Oct 05 11:48:40 https://github.com/TokTok/toktok/blob/master/src/main/scala/im/tox/toktok/app/main/MainFragment.scala#L134-L148 Oct 05 11:48:59 I'm getting "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?" Oct 05 11:49:29 Melatonina, almost first "List index = new ArrayList();" vs second "List index;" Oct 05 11:49:48 all online resources say "you need to pass the activity to the Dialog", but I don't have a dialog, and the context of my HomeSearch (which comes out of the layout inflater) is already the activity Oct 05 11:50:00 AS says that first is redundant Oct 05 11:50:46 bolovanos: no I'm comparing the two pieces of code in the second pastebin Oct 05 11:51:17 bolovanos: the code below is just the same as the code above Oct 05 11:52:52 bolovanos: if you are forcing a cast just make sure that the types are compatible. If you are taking the result of a function returning Object and you are casting to some type T because you suppose that the result should be compatible to type T, just check it at runtime with instanceof or using reflection Oct 05 11:52:54 Melatonina, it seems to but accordingly to lint second one have problem"warning: [unchecked] unchecked cast index = (List)input.readObject();" Oct 05 11:53:41 Melatonina, I will look at instanceof / reflection solution - thank you for that! Oct 05 11:54:13 bolovanos: I don't know about lint but you would have the same problem with the version above too (I'm assuming readObject() returns an Object). http://stackoverflow.com/a/2693301 Oct 05 11:54:36 but I am also curious why are those two examples being marked as the cast problem even they seem to be same... Oct 05 11:55:15 Melatonina, yes readObject() returns Object - in fact previously serialized List... Oct 05 11:55:36 guys, have you encountered this problem: i have viewpager and recyclerview in refreshLayout in each page Oct 05 11:55:51 when i swipe really fast, some fragments are blank white Oct 05 11:56:02 pull to refresh, scrolling seem have no effect Oct 05 11:56:15 yet they are clickable and in logs i see the actions Oct 05 11:56:20 just the fragment isnt rendered Oct 05 11:58:47 bolovanos: the problem with Java is that it erases the type parameters so ArrayList is indistinguishable from ArrayList at runtime. There is no way to check at runtime for that (in C#/.NET you can). If you create an ArrayList, add some ints, cast to ArrayList everything will work. But when you'll get() an item from that list and try to put it inside a String variable, you'll have an implicit cast that will fail Oct 05 12:00:00 bolovanos: in C# the cast from ArrayList to ArrayList will fail immediately. Oct 05 12:00:08 if you just want a string, you can do .toString, which is an Object method Oct 05 12:00:43 iphy: sure but after the cast you are allowed to write code that assumes that the object is an ArrayList Oct 05 12:02:54 bolovanos: I guess that is the origin of the unsafe cast in Java Oct 05 12:04:42 meh, no idea for my issue :? Oct 05 12:04:49 Melatonina, iphy : thank you - will look at it more closely :) Oct 05 12:05:01 right Oct 05 12:05:20 justJanne: hi! Oct 05 12:05:31 hi? Oct 05 12:05:38 no hi Oct 05 12:11:56 lo Oct 05 12:35:19 in android when we specifying colors in what colorspace they should be? Oct 05 12:36:39 usually ARGB or RGB Oct 05 12:36:58 vigilancer: they are in the RGB colorspace Oct 05 12:37:41 sRGB? Adobe RGB? Oct 05 12:37:47 anything else? Oct 05 12:38:12 right, RGB is a color model not a color space Oct 05 12:39:25 I've just bumped into situation when color code extracted from photoshop looks differently when I specifying it in colors.xml Oct 05 12:39:30 I'd say it's sRGB Oct 05 12:39:43 link pls? Oct 05 12:40:00 I would be strange if it would be Adobe but honestly it's just my guess Oct 05 12:40:09 ah, "I'd". well, maybe. I just not sure Oct 05 12:40:19 It Oct 05 12:45:21 vigilancer: it's a false question. If you google you'll discover that there are devices with displays using different color spaces. Android has nothing to do with it. Oct 05 12:47:07 devices have different screens, colours look different on them Oct 05 12:47:44 I am looking at my Google developer console at the user acquisition statistics of an app. Does installs from third party referrers in include something like a share link emailed ? Oct 05 12:47:46 I've noticed variance in phones and the blue shade we use Oct 05 12:48:32 Zharf: that's only (or mostly) because Android has no color management Oct 05 12:49:16 possibly, but developers shouldn't try to aim for color perfect because of it Oct 05 12:49:42 Melatonina, on the other hand, if it did, I'm sure samsung would find a way to mess it up Oct 05 12:53:08 Melatonina: don't get it. #e66770 (sRGB IEC61966) and #cb676f (Adobe RGB) is the same color. so which one shoud one specify in color.xml? Oct 05 12:54:41 probably sRGB then Oct 05 12:54:55 when I said ARGB i made a mistake and the A was not for adobe but simply the alpha channel Oct 05 12:55:23 vigilancer: the sRGB one. And then look for information about what color space your device is calibrated to. Point is you can't aim for color accuracy on all device with Android. Currently most devices work with sRGB but there are notable exceptions. Oct 05 12:55:58 all devices Oct 05 12:56:11 I'm using Adobe as example. Apple RGB, ProPhoto RGB, some customrgb, whatever Oct 05 12:57:26 s in sRGB stands for standard Oct 05 12:57:35 If you googled "android color space" you should have found this article: http://www.xda-developers.com/color-rendering-android-why-all-oems-must-offer-an-srgb-mode/ Oct 05 13:09:09 I'm always amazed at the amount of rude people that is allows to walk around Oct 05 13:09:25 allowed Oct 05 13:13:26 rude? Oct 05 13:14:49 Zharf: yeah but I wasn't talking about you Oct 05 13:15:30 is that oldpal arancio right there? Oct 05 13:16:19 raoul11: he was banned last week Oct 05 13:16:47 indeed he was Oct 05 13:17:22 not sure for how long though Oct 05 13:18:28 ad vitam eternam Oct 05 13:19:46 why do you guys hate this arancio so much? Oct 05 13:19:54 i suspect he rejoined under a diff nick. Oct 05 13:21:09 Melatonina, where do you see any hate right now Oct 05 13:21:18 and who was this rude ppl you don't name but shame in public Oct 05 13:21:22 s/was/were/ Oct 05 13:22:03 Desiring one to be banned "ad vitam eternam" is not a sign of love. Oct 05 13:22:17 i answered for how long Oct 05 13:22:31 which is eternity if you look the ban list Oct 05 13:22:59 ah ok. I don't know about IRC ban lists, sorry Oct 05 13:23:16 no worry Oct 05 13:44:45 has anyone here exer worked with an xmpp client (ejabberd)? Oct 05 13:47:53 Why do my Firebase value listened are always called 3 times? Oct 05 13:48:16 3 times when I add them and 3 times when I change the value Oct 05 13:49:33 i think its a bug Oct 05 13:49:53 http://stackoverflow.com/questions/37673616/firebase-android-onauthstatechanged-called-twice Oct 05 13:50:18 in your onDestroy, make sure signOut is called on the reference Oct 05 13:50:35 if you force stop your app, and then restart it, you should notice its only called once Oct 05 13:50:48 the new firebase sdk is weird Oct 05 13:52:16 Hi, if I'm using an Adapter with a ListView where the adapter's hasStableIds() -> true, do I need to do anything special when an item is removed, other than calling notifyDataSetChanged()? I'm having the issue where the ListView is trying to getItemId() higher than the number of items Oct 05 13:52:25 KukOrkan: thanks. Oct 05 13:55:36 emorris, your getCount should of course return the right value Oct 05 13:56:12 emorris, hasStableIds means that the underlying id maps to the same item every time Oct 05 13:59:15 recyclerview handles this better overall :) Oct 05 14:01:15 Zharf, yes, I am using consistent IDs, but items come and go in the adapter. I'm just implementing it with an ArrayList; getCount returns list.size() and getItemId returns list.get(position) Oct 05 14:01:47 interesting that it should do that then... Oct 05 14:04:53 Zharf, that's what I though. Someone yesterday suggested that it could be to do with different threads accessing the adapter, but I'm checking the current thread is the main thread in methods that change the data, and no issues there: everything is happening from the main thread Oct 05 14:05:29 it's almost as if the ListView is getting the count, and later trying to get the id without getting the count again, in which time the count/ids have changed Oct 05 14:08:58 emorris, you said "and getItemId returns list.get(position)", you'd better be sure it returns a unique identifier Oct 05 14:10:45 you did not provide much detail, so we cannot really guess what is going wrong, thus i would recommand you to go deeper in debug mode, be able to reproduce your issue 100% of time, then put some breakpoint and analyse what's going on, then fix it Oct 05 14:12:33 Hi guys! How can I make CollapsingToolbarLayout stick to the bottom and make it swipable bottom-up? Oct 05 14:13:08 adq, it's unique to the specific view, and there are/will be no duplicates. Interestinly, I log every time getCount is called, and I see it is called several times before the exception, always returning (for instance) 2, but then it runs getItemId for index 2, which is above the count Oct 05 14:14:09 hey all, i am still having trouble getting my app to receive a GCM push notification after it has been swiped away Oct 05 14:14:51 when it is running or in the background it works perfectly fine. But when I try to receive a notification and it is closed, I get nothing. I have Log.i and I see nothing in logcat Oct 05 14:19:41 where are you printing your log? in the GcmListenerService? Oct 05 14:22:31 GcmBroadcastReceiver Oct 05 14:22:34 and my IntentService Oct 05 14:23:07 all classes involved in the handling, such as it goes. I have confirmed that the notification does not cause a message to be printed to logcat from GcmBroadcastReceiver Oct 05 14:23:21 it has to be a permission or configuration thing. But I have checked over everything 4x Oct 05 14:26:07 https://github.com/googlesamples/friendlyping/tree/master/android Oct 05 14:26:30 i think you may be using the older stuff. is that intentional? Oct 05 14:31:40 xximjasonxx, do you have the GCM push set to high priority if you want to force the message? Oct 05 14:31:49 And are you testing on Android6+? Oct 05 14:39:45 dsardari: was that link for me Oct 05 14:39:50 Mavrik: testing on Nouget Oct 05 14:41:00 yeah it was Oct 05 14:41:19 k im looking through it now Oct 05 14:43:32 Hello guys, I can't retrieve location on emulator, even after telnet with geo fix or using the interface to inject coordinates... I'm always getting null Oct 05 14:44:02 dsardari: from the perspective of the Manifest the only difference is you give permission to access_network_state Oct 05 14:45:05 yeah, don't think that should matter Oct 05 14:45:12 agreed Oct 05 14:46:19 dsardari: for context, this is the tutorial i have been following: https://medium.com/@deividi/a-good-way-to-handle-incoming-notifications-in-android-dc64c29041a5?swoff=true#.kmelrw4e2 Oct 05 14:46:23 your backend is sending it as high priority? like mavrik mentioned? Oct 05 14:46:44 dsardari: i do not have visibility into the backend. I will say that when the app is running messages are received as you would expect Oct 05 14:47:14 the only case where i am not seeing message receive is after the app has been swiped out of the recents list Oct 05 14:47:15 Does using "android update sdk" in terminal ever work for anyone else? I always install it succesfully there, then go to check and it still shows up in "android list sdk" as an available option Oct 05 14:47:22 all other cases are working as expected Oct 05 14:49:08 dsardari: Let me ask this question, is it still a praticed convention to use the WakefulReceiver, or should I utilize the builtin GcmBroadcastReceiver Oct 05 14:49:14 will that fire if the app is closed? Oct 05 14:49:35 I extend GcmListenerService and it works fine for me Oct 05 14:49:57 in that tutorial he explains using version 8.3 and above should extend GcmListenerService Oct 05 14:50:36 i do have an extension of GcmListenerService in my app Oct 05 14:51:05 my expectation was that my GcmBroadcastReceiver would be the one to handle notifications coming when the app was closed Oct 05 14:51:09 is that not correct? Oct 05 14:51:18 should be Oct 05 14:51:43 let me try a different angle. Can I expect the OnMessageReceived method to be invoked in the Listener Oct 05 14:51:52 when the app is closed, if i use the built in BroadcastRececiver Oct 05 14:52:05 the GcmReceiver utilized in the sample code you sent Oct 05 14:53:35 dsardari: does my question make sense? Oct 05 14:53:38 yeah, the onMessageReceived callback is where you should be getting your notifications Oct 05 14:53:51 regardless of whether your app is open or not Oct 05 14:54:14 ok. let me try this other angle Oct 05 14:54:30 appreciate your help clarifying this. I am getting back into Android-Dev after 2yrs away Oct 05 14:54:33 much has changed :) Oct 05 14:56:36 yeah np. always changing :P Oct 05 15:04:37 im creating a simple method that swaps the first and last element in an array but I dont undertand why this line: nums2[0] = nums[last]; sets nums[0] and nums[2] to 4 if my original array is {1,2,3,4,}. see http://pastebin.com/kkbqvP9y Oct 05 15:05:42 droidace: this is a question for #java Oct 05 15:06:01 droidace: you don't need a second reference to the same array Oct 05 15:06:15 yes but Android is written in Java no ? i'll ask in java anyways Oct 05 15:06:17 droidace: just use a temporary variable to hold an element Oct 05 15:06:55 cool Oct 05 15:07:01 droidace: int temp = nums[0]; num[0] = num[num.size() - 1]; num[num.size() - 1] = temp; Oct 05 15:07:36 droidace: actually this is not even a question for #java. This is more like a question for #programming101 Oct 05 15:07:58 no offence Oct 05 15:08:17 everybody has got to start somewhere sometime Oct 05 15:08:23 none taken my friend Oct 05 15:08:52 sorry, num.size() -1 should be num.length Oct 05 15:09:00 it's your "last" Oct 05 15:09:16 num.length - 1 Oct 05 15:09:22 Well, you got it Oct 05 15:15:02 Can't I run two emulators with the same image? Oct 05 15:15:09 The second one is not starting... Oct 05 15:16:51 "could not open disk image C:\Users\me\AppData\Local\Android\Sdk/system-images\android-23\google_apis\x86\/system.img" Oct 05 15:19:24 hello Oct 05 15:20:17 imla: hello Oct 05 15:20:25 how are you? Oct 05 15:20:32 good Oct 05 15:21:03 I'm new to android dev, and need help Oct 05 15:21:29 We know Oct 05 15:21:45 be smart, don't start Oct 05 15:22:08 imla: shoot Oct 05 15:22:10 do you know the sorogban calculator!? Oct 05 15:22:30 I want to do an app for it Oct 05 15:22:54 you mean "soroban" Oct 05 15:22:59 yes Oct 05 15:23:24 it's a base 5 abacus Oct 05 15:23:34 japanese Oct 05 15:23:44 yes 4/1 Oct 05 15:23:58 That's a cool project Oct 05 15:24:20 myke: who should not start what? Oct 05 15:25:29 what you suggest? Oct 05 15:26:02 dsardari: so that seems to have worked. My next question, it doesnt appear that my app is creating the notification, rather the OS Oct 05 15:26:26 is there a specific way to handle the user starting the app from a notificaiton. I have two different paths i have to take when i get a notification Oct 05 15:26:49 imla: just familiarize yourself with Android Studio and try to make a visual representation of a soroban Oct 05 15:27:44 I did one project, now I do not know the best object to represent the bead "ball" Oct 05 15:28:43 imla: you could use a vector drawable or maybe just drawing the whole soroban in the onDraw() method of a custom view Oct 05 15:29:55 ok, if I did that can I handel deferent touch of the breads Oct 05 15:30:48 its not good to check where I clicke in the custom view!? Oct 05 15:31:28 imla: look https://play.google.com/store/apps/details?id=com.agilerabbit.roboban Oct 05 15:31:38 imla: https://play.google.com/store/apps/details?id=br.net.btco.soroban&hl=it Oct 05 15:32:14 the second one I have and it is excelent! Oct 05 15:32:28 I want to do like it Oct 05 15:32:34 looks ugly, but seems to do the job Oct 05 15:34:11 imla: I didn't understand your last questions Oct 05 15:34:20 imla: are you from Japan? Oct 05 15:34:25 no Oct 05 15:34:58 I want to code app like the second link you provide Oct 05 15:35:21 I know my english is bad Oct 05 15:35:51 is a surfaceview an option? Oct 05 15:36:27 We are not here to criticize your English. Just do your best to let people understand you. Otherwise they won't answer your questions Oct 05 15:37:00 thanks Oct 05 15:38:05 imla: you don't need SurfaceView. Just a normal View Oct 05 15:38:13 ok Oct 05 15:38:49 how I can represent a column or a single bead Oct 05 15:39:15 with the ability to detect the click Oct 05 15:40:03 hi. i'm using a content provider that queries a webservice. The webservice returns json. I create an object with this json. How can i pass this object to a cursor? Using the MatrixCursor's Bundle? Oct 05 15:40:27 you can draw a circle in onDraw() to represent a bead. A thin rectangle to represent a "column". You override onTouchEvent to handle touches Oct 05 15:40:31 Do i need to use the MatrixCursor's Bundle?* Oct 05 15:41:48 ok no problem here, but how can I detect the right bead that it is clicked , should I do it manualy? Oct 05 15:44:54 Bead extend view, OnDraw draw circle and onTouchEvent handle down right! Oct 05 15:49:44 hi. i'm using a content provider that queries a webservice. The webservice returns json. I create an object with this json. How can i pass this object to a cursor? Do i need the MatrixCursor's Bundle? Oct 05 15:53:08 Anyone knows what would be the cleanest way to retrieve a remote image width and height? Oct 05 15:57:51 download it, load it, and read the resulting data Oct 05 15:58:20 Anyway my webservice is a soap one Oct 05 15:58:33 so i'm using the ksoap2 library to call it Oct 05 16:07:06 dsardari: so, its working now, but the weird thing is, accordinig to logcat the Listener is never invoked when a notification comes in and the app is not running Oct 05 16:07:25 then that's because you don't have it setup as a manifest receiver Oct 05 16:07:28 so i am confused how I can respond to th e user clicking a notification to launch the app, since launcher activity is waht comes up Oct 05 16:07:42 clicking notification = launching pending intent Oct 05 16:07:45 nothing to be confused about Oct 05 16:08:32 pfn: but what is the pending intent? Oct 05 16:08:46 a pending intent is something you store an intent in to be executed later Oct 05 16:08:48 should i expect to see it in NewIntent on Launcher Oct 05 16:08:50 exactly what the name says it is Oct 05 16:09:00 no idea what you're talking about Oct 05 16:09:02 pfn: I get that if I create the notification, but the OS is creating this one Oct 05 16:09:12 the OS isn't creating it Oct 05 16:09:28 pfn: I am not seeing any of my code getting invoked that could create it Oct 05 16:09:35 i even commented out the one area where I did have them being created Oct 05 16:10:16 could it be something the default GcmReceiver does for you, if it determines the app is not open? Oct 05 16:14:17 it could be something gmsreceiver does, but *only* because you asked it to Oct 05 16:14:23 it has nothing to do with your app being open or not Oct 05 16:15:34 pfn: thats what i am thinking as well. Remove the super() call to see what happens Oct 05 16:15:38 *removing Oct 05 16:15:49 no idea what you're talking about there Oct 05 16:16:11 GcmReceiver is a built in class provided by Google Oct 05 16:16:22 it's not "built in" Oct 05 16:16:24 it's a library class Oct 05 16:16:32 semantics Oct 05 16:16:37 not at all Oct 05 16:16:43 it is a class provided to developers for free Oct 05 16:16:47 via google through a library Oct 05 16:16:58 eh, this is boring Oct 05 16:16:59 * pfn wanders off Oct 05 16:20:47 Zharf, adq, seemed to have solved my issue by ensuring no items were selected before removing them Oct 05 16:21:45 huh RethinkDb is no more Oct 05 16:23:25 anyoe know much about TextInputLayout from support? Oct 05 16:23:48 it's driving me nuts that I can't find many good official or community docs on it Oct 05 16:24:07 jesopo: think you should clarify what you are trying to do Oct 05 16:24:10 there isn't much about i Oct 05 16:24:11 t Oct 05 16:24:12 https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html Oct 05 16:24:18 the basic use case of the layout is pretty straightforward Oct 05 16:24:49 need to set the underline color, the hint text color (before it's shuffled upwards) Oct 05 16:24:58 anyone can help me with the content provider? I need to use it with a Web Service (using soap) Oct 05 16:25:02 hrmm i just did this Oct 05 16:25:06 let me see if i can pull source Oct 05 16:25:19 ty1 :+1: Oct 05 16:25:22 ty* Oct 05 16:25:23 i mean, i need to returns the data from the web service to a cursor Oct 05 16:27:16 jesopo: make sure you are setting ErrorEnabled Oct 05 16:27:22 that is what dictate error vs normal color Oct 05 16:27:35 also make sure you set the Error property for the Layout Oct 05 16:27:38 that should be all it takes Oct 05 16:29:42 im unsure what that has to do with it Oct 05 16:29:47 and google doesn't know either :O Oct 05 16:29:57 ErrorEnabled basically indicates whther the layout shows the error state or not Oct 05 16:30:02 and that will use different colors Oct 05 16:30:20 can that be done from xml? Oct 05 16:30:27 negative Oct 05 16:30:32 it is something you toggle from code Oct 05 16:30:33 yikes. Oct 05 16:30:44 since you would have to check if the input field contained within the layout Oct 05 16:30:52 is valid against whatever condition you are looking for Oct 05 16:31:37 https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html#attr_android.support.design:errorEnabled Oct 05 16:31:59 oh, dope Oct 05 16:32:01 can be xml Oct 05 16:32:05 * jesopo :tada: Oct 05 16:32:13 i must have misunderstood the question Oct 05 16:32:43 oh well Oct 05 16:32:50 * xximjasonxx goes back to the hell of gcm notifications Oct 05 16:34:08 maybe the question is, do i need a content provider, if i don't need to store the data returned from a webservice locally? I'm using a content provider because i'm loading the data in the UI using a Loader (before i was using an AsyncTak) Oct 05 16:35:11 You don't need a ContentProvider unless you want to share data with other apps Oct 05 16:36:36 SimonVT: ok. how can i take advantage of the Loader API without a content provider? So i don't use asynctask for loading data in my activities Oct 05 16:36:43 that might have indeed worked, the errorEnabled stufff. Oct 05 16:37:02 s/f//1 Oct 05 16:37:22 Implement a Loader that don't query a ContentProvider Oct 05 16:37:54 I assume you're thinking of CursorLoader. That's just a Loader implementation that queries a ContentProvider. You can implement your own Loader if you want Oct 05 16:38:06 SimonVT: oh good Oct 05 16:38:31 SimonVT: last question: is it better to use the Loaders API instead of AsyncTask? Oct 05 16:39:58 They're unrelated Oct 05 16:40:17 The Loader api helps you with lifecycle. You must still perform networking/io on a Thread Oct 05 16:40:33 CursorLoader uses an AsyncTask for this (by extending AsyncTaskLoader) Oct 05 16:41:59 If you want to implement a Loader you should just copy CursorLoader and change it to do whatever Oct 05 16:44:13 *sigh* and now the app wont receive gcm notifications at all Oct 05 16:48:30 lol i really cant win against android push notifications Oct 05 16:50:29 really shouldnt be this hard Oct 05 16:50:35 it isn't Oct 05 16:50:38 it's ezpz Oct 05 16:51:00 pfn: i dont know Oct 05 16:51:47 for example, i get told and i read that MessageReceived gets call whenever a notification comes in to the app. Ok. that makes sense Oct 05 16:51:57 then i run a test using logcat and I do not observe that behavior Oct 05 16:52:04 read and follow the docs Oct 05 16:52:31 i have, multiple times Oct 05 16:52:37 not random tutorials Oct 05 16:52:42 i have endless google searches where every site has been visitied Oct 05 16:52:49 i have been on the GCM setup page from Google for the last two days Oct 05 16:52:49 d.android.com Oct 05 16:53:51 again this isnt some short term thing, this is Day 3 Oct 05 16:53:57 SimonVT: now i've the same "problem" as before. I got an object that represents the data that comes through the webservice's API. How can i put it in a cursor? Do i need e.g. the MatrixCursor's setBundle (i think) method? Oct 05 16:54:13 well, you're doing it wrong Oct 05 16:54:16 clearly Oct 05 16:54:22 because the thousands of apps doing gcm/fcm are doing it perfectly fine Oct 05 16:54:26 Why do you need a Cursor, LucaS05 ? Oct 05 16:54:27 clearly Oct 05 16:54:30 pfn, you’re being an ass Oct 05 16:54:35 Make your own type Oct 05 16:54:45 pfn: i do not need to be told i am doing it wrong, the results speak for themselves Oct 05 16:54:49 what i need is, help Oct 05 16:54:54 cause clearly i am missing something Oct 05 16:54:56 if you follow the docs, it works Oct 05 16:54:56 SimonVT: because loadInBackground returns a Cursor Oct 05 16:55:01 that's all there is to it Oct 05 16:55:10 pfn: after three days, can you imagine how many times i have followed the docs? Oct 05 16:55:23 look i get it, ive been in your shoes many times before Oct 05 16:55:24 LucaS05: So make it return something else Oct 05 16:55:27 you've only indicated that you've followed random tutorials Oct 05 16:55:29 rtm is a common response Oct 05 16:55:33 but that hasnt helped in this case Oct 05 16:55:56 clearly there is a disconnect between the tutorials i have followed, the docs i have read and the reality that i have seen unfold in front of me Oct 05 16:56:10 random tutorials = wrong Oct 05 16:56:12 so, and I say this with respect, either offer some help o r ignore me Oct 05 16:56:13 SimonVT: if i change the method's signature than it will not be called Oct 05 16:56:18 maybe i've not understood Oct 05 16:56:26 but i think i can't change that Oct 05 16:56:27 simply saying read the docs to someone who clearly has read the docs Oct 05 16:56:27 You have Oct 05 16:56:31 You can Oct 05 16:56:34 is not helpful Oct 05 16:56:44 AsyncTaskLoader doesn't care what the type is, you tell it the type Oct 05 16:56:51 you haven't been helpful to yourself, you've not indicated anything at all of what you've done Oct 05 16:56:51 Search and replace Cursor Oct 05 16:56:54 except to point to a tutorial Oct 05 16:57:17 xximjasonxx: post your code. then pfn will either look at it and help, or shut up Oct 05 16:57:24 Why is a Nexus 5x API 24 emulator image so much smaller than a Nexus 5x API 23 image? Oct 05 16:57:25 s73v3r: will do Oct 05 16:57:35 that will end this “rtfm noob” nonsense Oct 05 16:57:48 pretty much ^^ Oct 05 16:57:55 posting it will take time, i have to strip out various NDA stuff Oct 05 16:57:58 SimonVT: ok i was not understanding what you mean by change Oct 05 16:58:01 sorry Oct 05 16:58:09 and pfn, next time ask for code earlier rather than just repeating “rtfm noob" Oct 05 16:58:27 nah, this is more fun Oct 05 16:58:36 for you maybe :) Oct 05 16:58:54 thankfully, ive been on IRC enough over the last 20yrs to know how to deal with the crap Oct 05 16:58:57 hi guys! Oct 05 16:59:39 anyone have run into a problem when setAdapter from recyclerView to an adapter and it Force Close on certain phone? Oct 05 16:59:59 at some phone its working but at some others its not Oct 05 17:00:10 Sure. I solved it by reading the stack trace Oct 05 17:00:14 omg Oct 05 17:00:23 they are sweeping code issues again, example: https://code.google.com/p/android/issues/detail?id=75788 Oct 05 17:00:32 same automated answer + not enough info Oct 05 17:00:50 even where there are enough info (otherwise it would be less funny) Oct 05 17:03:50 pfn: so here is the Manifest: http://pastebin.com/eQpGip24 Oct 05 17:06:14 and for simplicity: this is what i would like to get invoked when a mesage comes in: http://pastebin.com/rhQTZVdP Oct 05 17:07:03 as of right now there are two outcomes which occur: 1) the notification comes in when the app is running and is handled correctly 2) the notification comes in when the app is not running and a default notification is placed in the tray. I have no control over the creation of this notification. I need it. Oct 05 17:07:27 It should only display a notification for notification messages: https://firebase.google.com/docs/cloud-messaging/android/receive#handling_messages Oct 05 17:07:28 there's no such thing as ListenerService in manifest Oct 05 17:07:59 which line are you referring to Oct 05 17:08:07 look at your paste :P Oct 05 17:09:20 pfn: one thing to keep in mind is i had to change many of the names to protect the NDA i am under Oct 05 17:09:32 so if names dont match, dont worry so much, its probably something that i changed Oct 05 17:09:42 so fix your paste so that it matches Oct 05 17:09:45 ok Oct 05 17:09:54 and fix your code so that it matches as well Oct 05 17:10:26 http://pastebin.com/njj78y6A Oct 05 17:10:34 code is updated to match the pasted manifest Oct 05 17:11:22 SimonVT: I remember seeing that page and it didnt make total sense at the time Oct 05 17:11:26 pastebin the entirety of logcat Oct 05 17:12:06 pfn: it will take me quite some time to clean up the output to remove NDA stuff Oct 05 17:12:25 however, i think what SimonVT posted has made something click Oct 05 17:13:01 indeed Oct 05 17:13:04 SimonVT: based on the page, i can assume that my launcher activity will be initiated when the user taps the notification icon in the system tray Oct 05 17:13:14 funny thing is, i actually saw that page a couple days ago Oct 05 17:13:28 i thought i grasped it, but my experience since then has, evolved Oct 05 17:13:49 aren't you using gcm? Oct 05 17:13:51 and that the Extra data from the notification intent will be passed into the activity as part of the launch intent. Is that correct Oct 05 17:13:55 dsardari: i am Oct 05 17:14:06 i disregarded it because i though gcm and firebase were seperate Oct 05 17:14:09 *thought Oct 05 17:14:10 I would assume so Oct 05 17:14:16 they are Oct 05 17:14:30 Are there any good free IM chat GUI frameworks? Oct 05 17:14:36 truthfully, the notifications are coming out of azure framework Oct 05 17:14:43 so i assumed it was gcm, let me see if i can confirm that Oct 05 17:14:48 oh, right, gcm/fcm has the distinction of notification vs. data messages Oct 05 17:14:49 that's annoying Oct 05 17:15:11 They copied gcm, renamed a few classes, released as fcm Oct 05 17:15:15 Works the same Oct 05 17:15:48 everything i am seeing in our azure instance indicates this should be gcm Oct 05 17:16:02 gcm and fcm are the same thing for all intents and purposes Oct 05 17:16:08 ok Oct 05 17:16:47 so i want to try what SimonVT pointed out that the notification intent may be coming through the launch action Oct 05 17:17:20 the trouble is, the app has been finicky with regard to accepting notifiations when closed Oct 05 17:17:25 sometimes its working sometimes its not Oct 05 17:27:43 still attempting to test. for whatever reason, notifications come in a less than consistent fashion Oct 05 17:27:51 by which i mean, sometimes when the app is closed i do not get them Oct 05 17:27:53 other times i do Oct 05 17:27:59 think its the way we are managing the token Oct 05 17:32:26 just a quick question: what would be the recommended API for accessing hw video codec from a cpp daemon in android nowerdays? Oct 05 17:38:11 its only Oct 5, and i'm already starting to forget what google talked about yesterday Oct 05 17:39:40 oh yeah, some phones and its ambitious plan to own all personal data in the home Oct 05 17:39:57 * g00s goes back to coding Oct 05 17:42:04 all hail skynet Oct 05 17:42:46 skynet == internet (according to Terminator 3) Oct 05 17:43:10 in terminator genesys and T3 it was self aware AI Oct 05 17:43:13 skynet = google Oct 05 17:43:16 according to genisys Oct 05 17:43:24 s/genisys/objective reality/ Oct 05 17:43:46 my fiancee's brother works at Deep Mind Oct 05 17:44:03 says they get into some pretty cool philsophical conversations about reality and self awareness Oct 05 17:46:34 hey guys, i've a problem with my activity. It's a compile error: http://pastebin.com/LCqLW55c At line 38. Why? My class implements LoaderManager.LoaderCallbacks Oct 05 17:47:44 read the error Oct 05 17:49:30 LucaS05: it’d be helpful if you posted the actual error message, verbatim Oct 05 17:55:34 s73v3r: i'm building it again because Android Studio is giving me the error, but the project builds successfully. So i've cleaned it up Oct 05 17:57:27 s73v3r: anyway it says: wrong 3rd argument type. Found required android.app.LoaderManager.LoaderCallbacks Oct 05 17:57:58 but my activity implements that interface Oct 05 17:59:34 http://stackoverflow.com/questions/11155753/getloadermanager-initloader-doesnt-accept-this-as-argument-though-the-cla Oct 05 18:00:10 s73v3r: yeah found it. I need getSupportLoaderManager not getLoaderManager Oct 05 18:00:12 sorry Oct 05 18:00:29 anyway that error message is not so good Oct 05 18:00:46 actually, you might want to import the non-support versions of those classes Oct 05 18:00:53 depending on how far back you’re going Oct 05 18:01:19 this is most distressing. Now, the notifications never appear in the status bar Oct 05 18:01:31 yes it did at least once Oct 05 18:07:17 Hello. Are there any APIs or facilities in Android to determine system health? For example filesystem checks, number of bad blocks on storage, etc? Oct 05 18:07:46 s73v3r: i'm using the support versions because the guide says it Oct 05 18:07:58 anyway my minSdkVersion is 19 Oct 05 18:08:10 Or get these metrics for SD card health? Oct 05 18:08:44 LucaS05: you could go either way, I guess. if you’re already planning on using support, then keep on with that plan Oct 05 18:08:50 patarr, there aren't Oct 05 18:09:02 you would need too much priviledges for doing that anyway Oct 05 18:09:11 many* Oct 05 18:09:27 adq: I have root Oct 05 18:09:44 then you're in the wrong channel, and you have to ask ppl in #android-root Oct 05 18:10:14 didn’t know of that channel. Thanks adq Oct 05 18:10:20 no worry Oct 05 18:15:40 hithere Oct 05 18:18:17 "Replacement Samsung Galaxy Note 7 phone catches fire on Southwest plane" ugh Oct 05 18:18:48 "Southwest Airlines flight 944 from Louisville to Baltimore was evacuated this morning while still at the gate because of a smoking Samsung Galaxy Note 7 smartphone." Oct 05 18:18:51 from some time I am bit of scared of Lion batteries... Oct 05 18:19:00 you can't reliably find bad blocks on flash devices patarr Oct 05 18:19:10 bolovanos yeah ... me too. i had one explode, its bad news man Oct 05 18:19:21 missingno: I guess because the controllers hide that from you right? They automagically mask over them... Oct 05 18:19:22 by design they obscure the actual physical blocks, because flash blocks go bad all the time Oct 05 18:19:28 ppl are discovering ion-lithium is highly flammable lol Oct 05 18:19:34 Then maybe I’m looking for something like SMART stats. Or filesystem stats. Oct 05 18:19:39 soon they will discover it's "not green" Oct 05 18:19:45 later, the water is wet Oct 05 18:20:09 haven't really closely looked at how flash fails on android, but I think you just get mysterious unrelated errors Oct 05 18:20:14 no monitoring system exists Oct 05 18:20:16 (I rarely see ppl bringing ecology disaster with chemical stuff in battery surprisingly) Oct 05 18:21:45 g00s, I have bought fire prove sack for my aeroplane model batteries, but who knows if that added some safety - btw - I am always scared to leave my lion devices home attached to chargers Oct 05 18:22:32 bolovanos oh yeah, a lot of the RC guys like those fireproof sacks for their battery packs ... Oct 05 18:22:59 mine actually blew up in the flashlight though, not charging Oct 05 18:23:32 i probably should have used IMR version, i just had regular :P Oct 05 18:23:34 lions are great for their storage capacity, thanks to them we are able to see stuff like drones, mobo, etc but dense of energy is enormous ... Oct 05 18:24:12 its more about the dendrites forming along the electrodes from what i recall, there are a few attempts to solve that Oct 05 18:25:03 i always wonder what would happen if one of elon's powerWall things caught on fire though, or the house was on fire with one of those in it - i'd think evac the block would be good idea, HF is nasty Oct 05 18:25:19 g00s, mine first flight ended up by straight nose done flight - lipol was crushed too - I was scared to death because it crashed on grain field - no way to extinguish it... Oct 05 18:25:39 done == down Oct 05 18:26:26 g00s, ad tesla it has been there http://www.bbc.com/news/technology-37104753 Oct 05 18:26:35 after that , i also avoided any multiple battery configurations and just got lights powered by one battery. i think things get more dicey when they are in series / parallel Oct 05 18:26:54 and also one dead case https://electrek.co/2016/09/07/tesla-driver-dies-burning-model-s-hitting-tree-tesla-investigation/ Oct 05 18:27:06 death Oct 05 18:27:35 well , elon is trying to solve important stuff. meanwhile, dorsey is trying to save twitter Oct 05 18:27:50 "Jack Dorsey Is Losing Control of Twitter" today Oct 05 18:28:55 i saw they were floating bids this week Oct 05 18:29:33 g00s, http://newscenter.lbl.gov/2013/12/17/roots-of-the-lithium-battery/ interesting Oct 05 18:29:38 so ... with the AS SDK Updater plugin, i noticed if i set AS update channel to anything but stable, the SDK Updater ALSO pulls in and updates RC SDK stuff, but i don't want that. I was AS on beta, and SDK Updated on stable - any way to do this ? Oct 05 18:29:42 i heard Disney was thinking about buying them, but I couldn’t understand why they would want to deal with the toxic shithole of harassment and abuse that is some corners of twitter Oct 05 18:30:22 s73v3r yeah .. twitter never fixed the bullying stuff did they Oct 05 18:33:29 ol english fail; i want AS updated channel != SDK Updater channel Oct 05 18:41:10 Can anyone advise as to what the best way to show the current time inside an app may be? (Meaning, when the minute changes, so does the textview displaying the time) Oct 05 18:42:49 I guess i can just read the time every X seconds and update the textview Oct 05 18:43:01 but i'm wondering if there is a more elegant way to do it Oct 05 18:43:07 eemgr maybe https://developer.android.com/reference/android/widget/Chronometer.html Oct 05 18:43:47 if only we could subscribe to the system clock Oct 05 18:43:51 to get updates Oct 05 18:44:02 this is kind of a continuation to yesterday's question: if I get invited as a developer to a google dev console team, should I use my personal email or create a new one (as a team member) Oct 05 18:44:21 grekkos what part of the google blog did you not understand ? Oct 05 18:44:24 I'm thinking this could get out of hand if I'm on 3 separate dev teams and having 3 extra gmail accounts? Oct 05 18:44:30 oh wow Oct 05 18:44:31 https://developer.android.com/reference/android/os/SystemClock.html Oct 05 18:44:35 you can literally do that Oct 05 18:44:38 TIL Oct 05 18:44:52 g00s: because that's the avenue I'm heading down, 3 separate gmail accounts for 3 separate dev teams Oct 05 18:45:18 If I'm part of 3 separate organizations Oct 05 18:45:30 grekkos ugh - not sure, but i thought you can add accounts to dev console with permissions to do stuff Oct 05 18:45:35 yeah Oct 05 18:45:51 so as an owner I could see creating a new account to own the product Oct 05 18:45:58 i was going to put my dog in charge of my listing Oct 05 18:46:03 but then if I get invited to another dev team, which account would I use Oct 05 18:46:11 anyone know of a good ui pattern for the user to select a duration of time mins/hours/days from the current time? Oct 05 18:47:36 g00s: and if I created one for my own organization, would I invite my personal accoutn as a developer with dev permissions? Oct 05 18:55:59 it sounds like the answer to your question is yes Oct 05 18:57:20 Is your name suppose to be like "Oh Dayum" because thats how I always read it lol Oct 05 19:03:46 my first name is Oday, family name starts with m Oct 05 19:03:49 done, next Oct 05 19:04:13 still legit though Oct 05 19:06:36 you ever done a recyclerview with a gridlayoutmanager? Oct 05 19:06:47 the thing won't space the elements Oct 05 19:09:10 I don't get it, I'm trying to run my Android Studio app. It doesn't give any errors, but it doesn't start the device picker either. Oct 05 19:09:29 Odaym yeah, see lisa wrays latest video Oct 05 19:09:41 its kinda a PITA to do it right Oct 05 19:09:48 naive approach looks like shit Oct 05 19:11:16 that ItemTouchHelper post on reddit by Paul Burke.. Oct 05 19:11:29 I've had that exact piece of code in production for like a month, is he posting as if it's his own? Oct 05 19:11:47 nvm Oct 05 19:12:16 Kake_Fisk: Go to edit run configurations and make sure the "dont load apk if nothings changed" option isnt on Oct 05 19:13:36 I cannot find that video you're talking about g00s Oct 05 19:13:47 Odaym one sec Oct 05 19:13:48 all I see is a very attractive woman talking about data binding Oct 05 19:14:37 https://speakerdeck.com/lisawray/radical-recyclerview-droidcon-nyc-2016 Oct 05 19:14:47 orbyt_: It still did not work Oct 05 19:14:53 but thanks for the suggestion Oct 05 19:15:00 thanks! Oct 05 19:15:25 oh, nvm. There was an error, didn't see it. Sorry Oct 05 19:15:26 Kake_Fisk: well is it on...? Oct 05 19:15:34 I disabled it :) Oct 05 19:21:15 Hello everyone I have a question! Oct 05 19:21:52 ask it Oct 05 19:22:09 The problem was that I included a library twice and thus the dex method size was too large. I didn't know android studio included all libraries in libs by default Oct 05 19:23:12 I have a class with 2 constructors, one of them takes 2 parameters while other takes 3. So in this method i have an override. But i want to do different things in these overrides. I want to create different overrides of same function for both constructers. What should i do? Oct 05 19:24:04 Kake_Fisk: Should load your libs through gradles compile '' instead Oct 05 19:24:17 instead of sticking libraries in a libs folder Oct 05 19:24:28 What is the difference? Oct 05 19:24:36 I still need it in my libs folder? Oct 05 19:24:56 I mean I would still need it in my libs folder if I use compile? Oct 05 19:25:13 If i should give more detail, I have two different recyclerview and both are using the same onscroll listener. I wrote it to load more content automaticly. Oct 05 19:25:20 torak: can you rephrase the question or post the class to pastebin? Oct 05 19:25:30 Ashiren: sure i can Oct 05 19:26:17 Ashiren: This is the scroll listener. http://pastebin.com/UYdFy9FR Oct 05 19:27:15 Ashiren: as i wrote i want to have two different onScrolled override. I mean some part of it will be the same but there will be different parts about the third parameter. Oct 05 19:28:33 its simple. in onScrolled do: if (headerCard == null) { doOneThing(); } else { doOtherThing(); } Oct 05 19:28:36 I can use something like if(cardview==null) do something if not do other Oct 05 19:29:03 Ashiren: yes I was thinking the same but would it be efficient? I am thinking about this. Oct 05 19:30:09 I don't know if this is the best way to do it. Maybe there is some better way that i cant think of. Oct 05 19:30:10 the nullcheck isnt costly. you cant override the same method with the same parameters twice Oct 05 19:30:26 Ashiren: okay than let me go with that Oct 05 19:30:28 the way you described it Oct 05 19:30:38 Ashiren: thank you very much. :) Oct 05 20:08:27 Can I ask firebase questions here? Oct 05 20:10:56 Yes Oct 05 20:18:42 Kake_Fisk: we are waiting for your Firebase question... Oct 05 20:18:50 Melatonina: i think that was it :) Oct 05 20:19:01 Yeah, I just have to check something Oct 05 20:19:10 Ok :9 Oct 05 20:19:10 ;) Oct 05 20:19:12 :) Oct 05 20:19:14 And I'm having problems running my app now, so I don't get to check it Oct 05 20:19:46 Take your time, we are not going anywhere Oct 05 20:19:51 yey Oct 05 20:20:02 torak: my general rule of thumb when thinking about efficiency is to just try something, if you don't notice a problem then maybe there isn't one. yet. Oct 05 20:34:00 do you guys separate ios and android in your package naming? like com.something.android or com.something.ios? Oct 05 20:35:05 whoa, aosp is now built with jack? Oct 05 20:35:13 nice Oct 05 20:35:17 it's been built with jack since lollipop or marshmallow Oct 05 20:36:04 yeah I didn't bother checking up building aosp on mac until now Oct 05 20:36:20 last time I tried, it became too much effort compared to my ubuntu setup in 2012 Oct 05 20:37:56 grekkos: no. although I see that pattern quite often on the play store Oct 05 20:41:17 Which is more economic local variable or private? Oct 05 20:44:50 torak: Do you mean local vs instance variables? Oct 05 20:45:52 yiati: String something vs private String something Oct 05 20:46:20 torak: You can define String something in the same place as private String something Oct 05 20:46:26 i'm not the best at java but i don't think that changes memory allocation Oct 05 20:46:28 Sounds like you are askign about local vs instance Oct 05 20:46:33 final might Oct 05 20:46:39 local is good for saving stack space, and instance is good for avoiding thrashing heap. Both have pros and cons Oct 05 20:46:59 yiati: hmm. I see Oct 05 20:47:08 at the end of the day it most likely doesn't matter Oct 05 20:47:19 Unless you are allocating/creating massive objects Oct 05 20:48:11 torak: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html Oct 05 20:48:31 torak: http://programmers.stackexchange.com/a/65289/104698 Oct 05 20:48:59 ^ massive objects, or massive numbers of objects Oct 05 20:49:08 yiati: thank you for your time and help :) Oct 05 20:54:43 What causes the content of my CoordinatorLayout to go under the back/home buttons? Oct 05 20:57:54 The navigation buttons? Oct 05 20:58:16 A setting is enabled to disables the calculation of padding for that feature Oct 05 20:58:19 I would assume Oct 05 20:59:14 orbyt_: what do you mean? I don't understand you Oct 05 20:59:22 What part Oct 05 21:00:27 "A setting is enabled to disables the calculation of padding for that feature I would assume" Oct 05 21:00:41 Which is basically everything.. Oct 05 21:04:20 android studio listening on 63342 port (i think it's the one used by other jetbrain products to serve local files) Oct 05 21:05:13 Melatonina: eg `android:fitsSystemWindows` calculates padding for those system views Oct 05 21:06:26 Why there is not a document teaching how to place stuff in this kind of layouts? Oct 05 21:06:45 lol Oct 05 21:06:58 Melatonina you are supposed to read the sources ! Oct 05 21:07:15 google developers are too busy ... Oct 05 21:07:23 if they wrote docs nothing would get done Oct 05 21:07:32 /snark Oct 05 21:08:21 Did you google it? First results in google are fairly comprehensive. Oct 05 21:08:45 I googled for CoordinatorLayout tutorial before asking here. Now I'll google `android:fitsSystemWindows` Oct 05 21:08:49 thanks Oct 05 21:08:54 I'm not angry with you Oct 05 21:08:57 Has nothing to do with CoordinatorLayout though Oct 05 21:12:28 I copied the layout from cheesesquare but there it works, in my application it doesnt Oct 05 21:14:29 Anyone using https://github.com/Polidea/RxAndroidBle Oct 05 21:14:34 I need sleep. I'll check it out later Oct 05 21:14:53 Mavrik https://news.ycombinator.com/item?id=12646919 Oct 05 21:15:10 Awesome isn't it :) Oct 05 21:15:47 Apple learning from Google on how to do customer service :) Oct 05 21:15:49 still reading, can't believe this Oct 05 21:16:07 if they said any other app, i'd be like ok, but a documentation app O.o Oct 05 21:18:26 Im on windows currently so havent used dash..does it have to download all those api docs locally? Oct 05 21:18:59 that’s kinda the point of it Oct 05 21:19:21 Isnt that a fairly large download? Oct 05 21:19:38 you don’t have to download every docset, and it does so in the background Oct 05 21:19:41 Yes, but that's kind of the point. Oct 05 21:19:53 It's always there, immediately available no matter where you are. Oct 05 21:19:59 hmm, cool Oct 05 21:20:08 orbyt_ with some nice searching capabiltieis Oct 05 21:20:09 No waiting for load of chinese version of d.android.com Oct 05 21:20:20 Mavrik ha ! set your cookies bro Oct 05 21:20:20 god i hate when that happens Oct 05 21:21:17 i tried dash a little but with android at least, there was so much documentation outside of d.android.com Oct 05 21:21:27 Is it just me or does the custom lat/long in the extended controls for the emulator do absolutely nothing Oct 05 21:21:29 so i kept having to go to the browser anyhow ... Oct 05 21:21:59 Does it modify "real" location, or mock location Oct 05 21:22:30 g00s, I have it wired up to Alfred Oct 05 21:22:32 so it sucks that this happened to dash, but if they actually suspect fraud, this is what I’d want to have happen Oct 05 21:22:56 so when I see a random call I can just do Alt + Space + "d getNativeMem" and it just pops up Oct 05 21:23:06 s73v3r, why? Oct 05 21:23:07 Mavrik so thats eff'd up, he was trying to migrate his account Oct 05 21:23:09 That's stupid. Oct 05 21:23:18 If they suspect fraud, they should confirm fraud. Oct 05 21:23:21 And then kick you off. Oct 05 21:23:24 no Oct 05 21:23:26 This is just... ContentID level of crap. Oct 05 21:23:27 they shouldn’t wait Oct 05 21:23:39 and let the fraud keep happening Oct 05 21:23:47 What fraud? Oct 05 21:23:50 There's no fraud. Oct 05 21:23:54 It's an app. Oct 05 21:23:58 the fraud they suspect Oct 05 21:24:04 There's no fraud. Oct 05 21:24:10 you can’t say that Oct 05 21:24:12 "suspecting" doesn't mean there's a fraud. Oct 05 21:24:16 There IS NO fraud. Oct 05 21:24:20 "Yesterday I sent Apple a request to migrate my account from an individual one to a company one. " Oct 05 21:24:21 it doesn’t mean there’s no fraud, either Oct 05 21:24:21 They banned a person that didn't do anything. Oct 05 21:24:29 again, you don’t know that Oct 05 21:24:32 It means exactly that. Oct 05 21:24:35 no, it doesn't Oct 05 21:24:42 i wonder if his DUNS conflicted with another one Oct 05 21:24:49 that DUNS thing is a whole other scam Oct 05 21:25:01 g00s, tell me about it -_- Oct 05 21:25:27 s73v3r, there is no fraud. Not in this case. And they screwed someone over. Oct 05 21:25:35 That's not ok. Never. Oct 05 21:25:37 again, you don’t know that Oct 05 21:26:07 I know for a fact. Oct 05 21:26:13 you do not Oct 05 21:26:22 (Kinda know the person involved.) Oct 05 21:26:34 how well? Oct 05 21:26:40 The richest company on earth can afford to check their facts. Oct 05 21:26:51 which i guarantee you they are doing Oct 05 21:28:08 Oh? You do? :D Oct 05 21:28:09 yeah i have to agree with Mavrik on this; these fraud detection algorithms are detecting statistical outliers; they may or may not be real fraud. when the algorithm, which is biased (by its creator) incorrectly makes a judgement, the victim winds up in 'algorithmic jail' Oct 05 21:28:43 g00s, it's essentially the same as ContentID Oct 05 21:28:56 where corporations abuse it to ban people doing legitimate stuff Oct 05 21:28:59 (and legal stuff!( Oct 05 21:29:04 fuckers Oct 05 21:29:19 Just because they use s73v3r-style "let's fuck you over before we check anything" type of checking. Oct 05 21:29:33 they have a responsibility to more than just that one person Oct 05 21:29:38 Best case I've seen was Nintendo just plain stealing away a two weeks worth of Ad revenue. Oct 05 21:29:40 if all areas of society behaved like that we'd all be so fucked Oct 05 21:29:49 And when they proved they were wrong... they just said they'll not pay it back. :D Oct 05 21:29:52 if they allowed someone who was committing fraud to continue while they investigated, they’d be sued over it Oct 05 21:30:03 No they wouldn't be. Oct 05 21:30:07 They're not even liable for that. Oct 05 21:30:09 yes, they would Oct 05 21:30:13 Read the EULA. :D Oct 05 21:30:21 doesn’t stop people from suing Oct 05 21:30:31 and EULAs have been shot down before Oct 05 21:30:41 C'mon dude, where do they give out this corpo brainwashing like that :D Oct 05 21:30:45 Ah. Oct 05 21:30:58 So I need to accept EULA pushed down by Apple... which isn't legally binding? Oct 05 21:31:20 So why does Apple write in there "we're not liable for any fraud" (yes, it's in there) if Apple knows it's not binding? Oct 05 21:31:41 (The answer is pretty simple. :) ) Oct 05 21:31:43 that’s not what I said, and you trying to twist my words into saying that is absolutely dishonest Oct 05 21:34:21 Well, whatever you're saying is based on the notion that punishing people before a proof of misconduct is good. Which has been disproved in so many cases in last 100 years in all spheres of society, from legal, business and social perspective that it's downright silly. Oct 05 21:34:52 And it's incredible that we still have to even debate that. Oct 05 21:36:43 this is ridiculous but looks so cool http://newatlas.com/hennessey-performance-ford-velociraptor-6x6/45779/ Oct 05 21:36:47 * g00s wants one :D Oct 05 21:37:01 O.o Oct 05 21:37:13 no, i want the rear 2 wheels replaced by tank treads Oct 05 21:37:40 and the front two with ski blades? Oct 05 21:38:18 s73v3r actually nissan has that http://www.dailymail.co.uk/sciencetech/article-3405396/Who-needs-ski-lift-Nissan-reveals-SUV-swap-wheels-triangular-snow-tracks-drive-45-degree-slopes.html Oct 05 21:38:30 looks a little iffy though haha Oct 05 21:39:33 Mavrik do you use vpn client on your mac by any chance ... Oct 05 21:40:07 Yeah, the built-in one actually :) Oct 05 21:40:13 And Viscosity for OpenVPN Oct 05 21:40:57 ah yes, Viscosity. how do you like it? the PIA one is terrible, tunnelblick works ... sometimes Oct 05 21:41:17 It worked ok, but current VPNs I use are L2TP Oct 05 21:41:18 is the built in one just L2TP ? Oct 05 21:41:23 ok Oct 05 21:42:20 tunnelblick works fine for me Oct 05 21:42:44 it mostly does for me too, but sometimes it just doesn't reconnect Oct 05 21:42:54 like things get into a bad state Oct 05 21:42:58 are you sure it's a client side issue? Oct 05 21:43:08 when i shut it down and restart its OK Oct 05 21:43:16 g00s, some versions of L2TP and ipSEC Oct 05 21:43:24 PPTP was supported but they threw it out in Sierra Oct 05 22:00:54 so my problem with text input cursor focus problems now extends to the editor itself on a few occasions. seems like a problem between open jre and OS X Oct 05 22:01:34 god, I really want google to hurry up and publish shit to central... Oct 05 22:01:40 having stuff on jcenter is so annoying Oct 05 22:03:29 pfn what could be taking them so long, could they have forgotten ? Oct 05 22:03:36 probably forgotten Oct 05 22:03:50 I just use a custom MVN server Oct 05 22:03:51 because it's a single click to go jcenter -> central Oct 05 22:04:04 the problem is that everything besides gradle defaults to using maven central Oct 05 22:04:19 and having to use stuff on jcenter means having to add additional repo directives to everything else Oct 05 22:04:52 and for that matter, when google has stuff published to central properly, one only needs to add mavenCentral() into repositories {} in gradle Oct 05 22:04:58 and don't have to have jcenterRepo() Oct 05 22:05:09 (assuming one only needs artifacts from central) Oct 05 22:05:32 99% of the libraries I use are all from central, and I rarely need/want to use jcenter Oct 05 22:12:24 how is app renaming handled on play store does anyone know? Can I do it any time or is the app name tied to the current version in the store? Oct 05 22:12:41 what app name Oct 05 22:12:45 store listing has a name Oct 05 22:12:54 it has no relation to what your app says when run Oct 05 22:13:01 right Oct 05 22:13:02 the store listing Oct 05 22:14:09 my question was about renaming the app as it appears on the store Oct 05 22:22:12 grekkos: no, the name is not tied to anything Oct 05 22:22:23 it’s also common to SEO the title, Oct 05 22:22:30 and add other stuff Oct 05 22:22:52 yeah that's what I thought Oct 05 22:22:53 alright cool Oct 05 22:22:56 examples include "Öffi – Transit stops, Networks and co" Oct 05 22:23:00 and other stuff Oct 05 22:23:14 I'm doing ios and android at the same time, so I'm noting the differences here Oct 05 22:23:21 it’s better to keep the name identical to the app name, though Oct 05 22:23:43 Keyword stuffing is something bots don't like, so make sure it still makes sense Oct 05 22:23:55 yeah of course Oct 05 22:24:06 I don't think people would trust it if it was a bunch of nonsense Oct 05 23:04:02 grekkos google will ding you for keyword spam Oct 05 23:11:50 Hi guys! How can I make this http://imgur.com/X5AIH0P.gif working in a reflection? I mean, align it to the screen bottom and swipe it from bottom up? Oct 05 23:12:14 I'm reading through all the examples of CoordinatorLayout and can't find such example Oct 05 23:13:00 There are tons of Bottom Sheet behavior examples but I don't need a sheet, I need it just like with collapsing toolbar just being placed in the bottom Oct 05 23:17:52 Hi, Alex! Oct 05 23:44:12 is it possible to load the dev and market versions of my app side by side? I'm pretty sure changing the package id would work but is it possible to set up the build process in a way that debug builds have a separate package id so I don't have to refactor the entire app every time? Oct 05 23:47:43 yes, set applicationId in your buildType or flavor Oct 05 23:50:25 wow, preferences.xml renders in previewer now Oct 05 23:50:30 did it always do that ? Oct 05 23:50:53 hm, is there a way to scroll it ? Oct 05 23:55:43 ah okay cool thanks pfn Oct 06 00:01:51 man, i wish with preferences stuff, there would be a way to say "if this preference is enabled, disable this one' - i can only find 'if this is enabled, that should be too' Oct 06 00:01:55 via xml Oct 06 00:02:47 (android:dependency) Oct 06 00:05:03 huh, TIL android:disableDependentsState="true" Oct 06 00:18:19 huh, this is seriously weird... Oct 06 00:20:01 For heaven's sake, there are so much cool stuff you can do with CoordinatorLayout and AppBarLayout but there's no standard way to implement collapsing toolbar in the bottom of the screen? I can't believe it... Oct 06 00:25:39 AlexBerdnikov there are some libraries for that Oct 06 00:25:48 3rd party stuff Oct 06 00:26:45 g00s: So far I only found libs for custom BottomSheet behavior. But I don't need sheet behavior, I need collapsing behavior :( Oct 06 00:27:02 yeah there was one on reddit a few months ago Oct 06 00:27:26 g00s: If you can at least suggest any relevant stuff, you'll be my savior! Oct 06 00:27:30 it came about, because the material specs show the bottom nav hide when you scroll Oct 06 00:27:53 but there is nothing in support libs that does that Oct 06 00:28:46 maybe it will be in support lib when bottom nav is in support lib :P Oct 06 00:28:54 I don't understand, when I build with gradle, stuff from values-large-v4 and values-sw600dp-v13 is ignored, but if I build with sbt, stuff rom values-large-v4 and values-sw600dp-v13 is used... Oct 06 00:30:32 g00s: Dunno... IMO it's such a trivial stuff. I mean, they did all that stuff with CoordinatorLayout and other new layout things in Design Support Library to stop us suffeering from coding all the design\animation things and at the same time they did it so straightforward and hardly configurable Oct 06 00:42:56 orbyt_, i used rxandroidble Oct 06 00:44:12 bitkiller_: Is it stable? Oct 06 00:44:18 Or, stable enough? Oct 06 00:44:38 stable enough i would say Oct 06 00:44:58 Cool. I started implementing it and it looks great for my use case. Oct 06 00:45:12 android ble does not help Oct 06 00:45:42 ? what? Oct 06 00:45:58 my issues were mainly in the discovery and connection part Oct 06 00:46:14 not related to the lib Oct 06 01:08:08 Hello all, I am trying to do my first xamarin app for android. I am wanting to do a simple calculator to get familiar but am having difficulties trying to find a first how to. Can anyone recommend a few tutorials to get me started? Thank you in advanced Oct 06 01:17:48 Interesting way to learn c# Oct 06 02:03:39 "The Nexus devices have been the purest form of Android in the past. Pixel is the purest form of Google, which is Android plus a whole lot of other stuff like the Assistant, our VR platform and so on." - Hiroshi Lockheimer Oct 06 02:03:51 yeah, thats the problem. i want pure android without the other "stuff" Oct 06 02:04:43 * capella-5x about to purchase an additional Nexus 6 Oct 06 02:05:13 💝 ny 5x **** ENDING LOGGING AT Thu Oct 06 02:59:58 2016