**** BEGIN LOGGING AT Sun Jul 10 02:59:58 2016 Jul 10 03:00:13 i remember it being painful to install and you had to wire it in with eclipse and all kinds of drivers and other weirdness Jul 10 03:00:32 yep Jul 10 03:00:34 super easy now Jul 10 03:00:43 took em long enough :-P Jul 10 03:01:06 sweet tho, cant wait to check it out. installing now Jul 10 03:01:46 android studio is just based on intellij, with a few more perks Jul 10 03:02:03 you can use either for seamless integration, but intellij has licensing fees Jul 10 03:02:13 which, imho Jul 10 03:02:16 is superior to eclipse Jul 10 03:02:26 both? Jul 10 03:02:46 android studio Jul 10 03:02:58 wait, i have to pay a licensing fee to use android studio? Jul 10 03:03:04 also, iirc you can't get everything from android studio in bog standard eclipse Jul 10 03:03:05 er Jul 10 03:03:08 intellij Jul 10 03:03:15 you miss out on stuff like profiling tools Jul 10 03:03:21 svchost: no, it's free and always will be Jul 10 03:03:23 racial profiling? Jul 10 03:03:31 GPU/network etc. Jul 10 03:03:32 just kidding Jul 10 03:04:06 tx i dont see any difference if u are talking multidex thats gradle functions Jul 10 03:04:10 lol Jul 10 03:04:21 wat Jul 10 03:04:28 no, the tools built into android studio Jul 10 03:04:44 nothing to do with gradle Jul 10 03:05:12 idk about that Jul 10 03:05:24 instant run is build directly into AS Jul 10 03:05:32 so, to get the latest of that, use AS Jul 10 03:05:35 its also on intellij? Jul 10 03:05:46 yes yes it is Jul 10 03:05:49 Hardware profiling isn't able to be used with vanilla intellij. Jul 10 03:05:55 sasser a prior version Jul 10 03:06:02 android studio calls for 7u67 jdk but i only see 7u79 and 7u80 on the link they provided Jul 10 03:06:05 "Performance tools" is what the suite is called Jul 10 03:06:15 svchost: get the latest Jul 10 03:06:17 is it backward (forward?) compatible? Jul 10 03:06:19 yes Jul 10 03:06:26 if thats built in adb-tools then with intellij u still need sdk, so really, no different Jul 10 03:06:29 forward compatible, as long as it's the same major version Jul 10 03:06:42 No, it's a GRAPHICAL tool, built in to Android studio :p Jul 10 03:06:56 sasser isn't up to date :) Jul 10 03:11:55 i think AS 2.2 has a "layout inspector" which seems like old monitor hierarchy viewer Jul 10 03:12:22 maybe not as good yet, but glad i don't have to shut down adb and fire up 'monitor' :) Jul 10 03:12:56 and does android studio have a least a somewhat intuitive drag-and-drop style UI editor yet? Jul 10 03:13:05 something akin to .net windows forms? Jul 10 03:13:08 svchost the next gen of that is in 2.2 Jul 10 03:13:12 so 2.1 - no Jul 10 03:13:24 can you get 2.2? Jul 10 03:13:33 if you want to try 2.2 for ConstraintLayout, get the preview 5 Jul 10 03:14:30 what i'd love is if it were as simple to develop for mobile as it is to code php/mysql, with the added benefit of something like squarespace in regards to simple UI design Jul 10 03:15:08 well, this is java - so you can forget about that :) Jul 10 03:15:09 or something akin to windows forms Jul 10 03:15:24 at least something akin to c# .net with windows forms Jul 10 03:15:44 anyone mind helping with a probably stupid question/ Jul 10 03:15:56 or is there a channel set aside for that? Jul 10 03:16:15 depends how stupid it is Jul 10 03:16:15 bioemerl: if it's a stupid app dev question, ask it here :) Jul 10 03:16:54 I'm getting a fragmentActivity error when I try to create an activity from a onActivityResult class Jul 10 03:17:11 I haven't used fragments at all, so something weird is going on that I haven't learned about yet, I think. Jul 10 03:17:24 "Activity result fragment index out of range: 0xffffffff" Jul 10 03:17:25 pastebin the full error Jul 10 03:17:39 it's not an error, it's a full crash with a "blue" message in the log Jul 10 03:18:09 this is from me trying to use a file browser to let a user pick a path Jul 10 03:18:33 pastebin the full traceback Jul 10 03:19:08 what do you mean by traceback? Jul 10 03:19:39 I've got a logcat, nothing about traceback though. Jul 10 03:19:48 then pastebin the logcat... Jul 10 03:19:56 pastebin *something*, for the love of Rubin! Jul 10 03:20:46 sorry, that short error message is all I am getting on crash Jul 10 03:20:52 no errors, no nothing Jul 10 03:21:01 I can give you that full blue message Jul 10 03:21:13 unless you want build information output Jul 10 03:21:48 ok, I'm going to move on with my day at this point Jul 10 03:21:51 sorry Jul 10 03:22:16 "07-09 23:11:01.662 6946-6946/leroco.captioner W/FragmentActivity: Activity result fragment index out of range: 0xffffffff" is all I have. Jul 10 03:29:44 It's definitely starting an activity from inside of the onActivityResult function that is called so I can get the uri for an image. If I try to go to my other activity, which should just be taking in the bitmap and displaying it, it crashes with that message. Jul 10 03:30:54 can using an action_get_content mess with fragments somehow when I try to start another activity? Jul 10 03:36:25 how difficult would it be to implement my own ViewPager? Jul 10 03:37:04 the sideways movement could be handled by drag/swipe listeners... but what about rendering the content that's not on screen? Jul 10 03:37:13 I'm not totally sure how that works Jul 10 03:37:35 devs whats your solution for org.apache.http error in API23+ ??? Jul 10 03:37:51 there's a way to use that library Jul 10 03:37:56 add .jar or write your own code by manupulating licencing library Jul 10 03:38:05 a line you add to the build.gradle Jul 10 03:38:43 t2mkn, https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client Jul 10 03:38:57 or you could consider refactoring so you don't need to rely on org.apache.http Jul 10 03:39:07 android { useLibrary 'org.apache.http.legacy' } Jul 10 03:39:28 yes add that one line somewhere in the android{} block Jul 10 03:40:16 then whats the advantage. Android removed that from base, and we add to app ourselves Jul 10 03:40:22 why they do this Jul 10 03:40:30 take it as a hint that you probably shouldn't use that library Jul 10 03:40:56 why Google is not updating the licencing library Jul 10 03:41:06 if you read that paragraph, they suggest you to use HttpURLConnection Jul 10 03:41:09 they should do that before releasing API23 Jul 10 03:41:37 not sure what you're talking about. licensing for which library? Jul 10 03:41:52 Google Licencing Library Jul 10 03:42:42 class APKExpansionPolicy is using NameValuePair and URLEncodingUtils from apache.http Jul 10 03:43:21 in my code i use HttpURLConnection but i dont want to manupulate libraries provided by Google for GooglePlay Jul 10 03:43:45 my question is why Google is so late updating the code, for which they are talking in docs Jul 10 03:47:18 they have a way of rushing to release certain things Jul 10 03:47:23 and not updating dependecies Jul 10 03:47:31 but they should be up to date soon Jul 10 03:51:13 hope so Jul 10 04:13:02 the keyline for left margin to content is often 72dp here https://material.google.com/layout/metrics-keylines.html?authuser=3#metrics-keylines-keylines-spacing Jul 10 04:13:16 but i have to use 80dp to align with toolbar title Jul 10 04:14:12 oh maybe b/c 7" tablet, hm Jul 10 04:14:35 on /r/androiddev a few weeks ago, there was a project posted that had all these material dimensions, anyone remember that ? Jul 10 04:26:16 is it possible that a file explorer is giving me the wrong path, and is there a way to account for that? Jul 10 04:26:43 because I have an htc one m7, and I am trying to open a file. I get filenotfound exception when I use the default sense browser, but if I use amaze it works fine. Jul 10 04:26:54 amaze being a third party/seprate file browser Jul 10 04:58:28 just noticed the android support library standalone isn't in the sdk manager any more ... Jul 10 04:58:57 um, thats where i read all the xml resources from Jul 10 07:47:32 if my screen has 170dpi which category does it fall into? From table 120 dpi is low, 160 is medium, and 240 is high. Does it mean screens upto 160 are medium? the table doesn't say this Jul 10 07:48:51 how do companies like google map and such create their maps Jul 10 07:49:02 i want to create a map of a one floor storage Jul 10 07:49:18 and make an application using that map. how do I do that Jul 10 07:49:24 the higher the dpi the more detail the screen will show, thats why 170 is medium Jul 10 07:49:43 someone13: via statellite? Jul 10 07:49:52 someone13: get a floor plan from the building? Jul 10 07:50:34 I wish to create a vector map Jul 10 07:50:58 so i could perhaps develop a navigstion application to help people reach certain places Jul 10 07:51:31 wyrdtrtle: but it is below 160 dpi? Jul 10 07:52:03 you said, if my screen has 170dpi Jul 10 07:52:50 only in clintonian math is 170 below 160 Jul 10 07:53:39 yes but how can i know it is mdpi? http://iconhandbook.co.uk/reference/chart/android/ according to table mdpi is 160 Jul 10 07:54:13 which i think means upto 160 are mdpi? Jul 10 07:54:46 or does it mean greater that or equal to 160 are mdpi Jul 10 07:54:52 than* Jul 10 07:55:21 no table i found mentions a clear range Jul 10 07:56:00 There is no clear range, it's up to the manufacturer what they identify as Jul 10 07:56:47 200 dpi could be either mdpi and hdpi, depends what the manufacturer thinks looks best Jul 10 07:58:30 https://developer.android.com/guide/practices/screens_support.html#range Jul 10 07:58:48 There's some overlap Jul 10 07:58:59 I wish to create a vector map Jul 10 07:59:06 and get it inside andoird Jul 10 07:59:11 and create my own mini navigation system Jul 10 07:59:17 http://theground.jimdo.com/android/android-screen-size-ldpi-mdpi-hdpi/ Jul 10 07:59:18 how do i begin accomplishing said task Jul 10 07:59:46 oh, nvm didnt see you had the answers already Jul 10 08:02:50 vector map? Jul 10 08:03:06 show visual examples of what you want to do Jul 10 08:03:13 pictures speak louder than words Jul 10 08:03:31 SimonVT: looks best subjectively and not based on dpi? Jul 10 08:05:18 Both Jul 10 08:06:37 confusing so i guess the only way to know if it is mdpi, hdpi would be only programatically then Jul 10 08:07:38 will depend on the device, right and not any range Jul 10 08:07:57 Usually it's pretty clear Jul 10 08:08:01 But it's ranges that overlap Jul 10 08:08:13 Why care anyway? Jul 10 08:08:32 because i need to make a layout. Jul 10 08:08:47 You make layouts based on screen size Jul 10 08:10:36 i thought it was based on mdpi, hdpi etc. Jul 10 08:10:55 so its just in inches? Jul 10 08:11:42 Yes Jul 10 08:11:51 And then provide drawables based on density Jul 10 08:12:17 Density doesn't tell you if it's a phone or a tablet, screen size does Jul 10 08:13:04 like it says normal screens are at least 470dp x 320dp https://developer.android.com/guide/practices/screens_support.html#range Jul 10 08:13:51 if i convert dp to pixels i should get the size? Jul 10 08:15:04 generally screen size is in inches or cm but i don't see "inches" there Jul 10 08:15:10 https://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts Jul 10 08:15:21 160dp is roughly 1 inch Jul 10 08:17:57 theres a table here: https://developer.android.com/guide/practices/screens_support.html#testing Jul 10 08:24:49 hm to look into table one must know dpi as well.. Jul 10 08:26:09 how can one possibly know anyway? i'm a little confused Jul 10 08:38:25 how to use http injector? Jul 10 10:18:34 hi peeps Jul 10 10:19:55 is there a way to get a callback for when the user takes a screenshot? Jul 10 10:28:26 Hi. I'm implementing IAP at the moment and I would need a confirmation on the onCreate method. I was thinking of doing continous checking for purchases in the onCreate method like this: http://pastebin.com/0MmTaHbZ , so that when the user make a purchases I can immidiately make a graphical change in the same activity, showing that their product is ready for use. So, does the onCreate method work that way? Does it run through the Jul 10 10:28:26 code continously? So I don't have to re-create the activity to see graphical changes? Jul 10 10:29:06 Bernzel: nothing is visible to the user before onResume Jul 10 10:29:10 fyi Jul 10 10:29:29 and onCreate is not necessarily called Jul 10 10:29:36 only if the activity is being created Jul 10 10:29:56 ok so my idea wont work Jul 10 10:39:17 I remember Libgdx had a "render" method which was called continuously and I could therefor do if statements checking for changes during runtime. But vanilla Android sdk doesn't provide such methods then? Jul 10 10:40:19 That would be incredibly wasteful for battery and CPU Jul 10 10:40:28 So no, it does not. Jul 10 10:41:32 You need to notify / tell the OS when you want a change. Jul 10 10:41:43 is there a callback for "screenshot taken"? Jul 10 10:42:27 incredible spiderman, incredible battery lol Jul 10 10:42:38 :O Jul 10 10:42:43 battery: change your freaking nick already Jul 10 10:43:32 thepoosh, I don't think so. Jul 10 10:44:00 Mavrik, I see. Well, there's no callback for when a purchases has been succesfully made, only for when the purchaseflow has started. So there's a dead-end there Jul 10 10:45:58 Bernzel, em, of course there's a callback O.o Jul 10 10:46:07 You get into in onActivityResult Jul 10 10:47:40 Mavrik, oh right. But then there have to be a global resultCode for when a purchase has been made? Jul 10 10:48:22 nvm, found it! Thanks Mavrik Jul 10 10:54:06 hi, what is the latest version of play services? I have 'com.google.android.gms:play-services:9.2.0' and the debugging says "ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED..." Jul 10 11:05:30 I need to define my sdk.dir in the local.properties file, but I only have a gradle.propterties file, this isn't the same one right? If not, how do I create the real one? Jul 10 11:08:35 Just create it Jul 10 11:08:50 Or just use the project properties UI to set it. Jul 10 11:09:15 sponge-tmp, that's talking about the Play Services library on the device, not the client lib in your app Jul 10 11:09:18 Or that, I assume AS displays an error message and some buttons for you to click Jul 10 11:09:45 Mavrik: makes sense! just updating it atm Jul 10 12:50:29 Hi guys! How do you handle configuration changes in your apps? In the past I invisible used retained fragment for my network calls or complex db queries, now I use EventBus' sticky events which survive config changes and I check for them in onCreate\onResume, do things if some sticky event is there, and the remove it from the bus. Jul 10 12:50:59 But what is the most common and widely accepted way to do this these days? Jul 10 13:10:39 does anyone have example code for Firebase, just checking if user is logged in? Jul 10 13:55:14 How can I make an Stuff in a TextView clickable? I'm doing most of the methods that I've seen on StackOverflow and they just don't work Jul 10 13:58:26 Hello, can anyone please explain shortly diffrent between user and user-debug :) Jul 10 14:08:28 Goddamn it! I have to implement a OnClickListener for an in a TextView?! What the hell? Jul 10 14:10:46 lol, the solutions are so arbitrary and multiple. Wtf, Google?! Jul 10 14:12:30 Goddamn finally Jul 10 14:12:37 But the solution is so messed up Jul 10 14:26:27 I tried uploading a new Beta APK to google play, but got a warning saying it fell under "Malicious Behavior" and that they have sent out an email explaning it. How long does that email usually take?? Have been waiting for 3 hours now Jul 10 14:29:44 What was the exact message? Jul 10 15:07:23 hi everyone. how can i write a service to make work while app closed ? Jul 10 15:08:10 has anyone ever gotten the camera stub to work on an emulator using Espresso? Jul 10 15:11:52 piling, look for android background service Jul 10 15:16:48 hmm, i got a drawerlayout which works fine as it is, but its actually sitting infront of all other widgets - thus disabling buttons and other stuff Jul 10 15:16:58 not sure how to deal with it Jul 10 15:19:07 That's just how it works.. Content isn't clickable while drawer is open Jul 10 15:20:12 its closed Jul 10 15:21:39 Then you likely did something wrong Jul 10 15:23:37 this is the badpart: http://pastebin.com/MD1FEuhA Jul 10 15:27:09 That part seems fine Jul 10 15:28:46 i might not understand this part: To add a navigation drawer, declare your user interface with a DrawerLayout object as the root view of your layout. Jul 10 15:29:24 does that mean that instead of the relativelayout root widget i should use DrawerLayout? Jul 10 15:29:58 Just like you've done in that layout.. Then add your content to the FrameLayout Jul 10 15:31:25 thanks SimonVT Jul 10 15:46:25 interesting, buildTools 24.0.0 break tileMode="repeat" in sdk10 Jul 10 15:46:52 i wouldnt care about it normally, just my 1 project uses minsdk 10 Jul 10 16:29:09 bitkiller: okay thank you Jul 10 17:12:34 can anyone tell me why this piece of code gives me null pointer exception http://puu.sh/pWWvf/896454c30f.png Jul 10 17:14:17 On newer devices the stacktrace tells you what method you're trying to call when the NPE is thrown. Whatever you're trying to call that method on is null Jul 10 17:14:20 because it's null Jul 10 17:17:04 what do you mean that it is null Jul 10 17:18:25 this code is giving me null exception too http://puu.sh/pWWO3/1f20eec574.png Jul 10 17:19:26 jackhum: btn is null Jul 10 17:21:26 drose379: can you help me debug this issue please Jul 10 17:21:41 drose379: i am trying to figure out where i am wrong , but i cant Jul 10 17:21:58 jackhum: ? Jul 10 17:22:04 and don't beep everyone Jul 10 17:22:09 erev tov thepoosh Jul 10 17:22:22 good night friend Jul 10 17:22:24 thepoosh: are you mad at me / Jul 10 17:22:32 not yet Jul 10 17:22:34 :P Jul 10 17:22:36 what's up? Jul 10 17:22:43 g00s: how meh is today? Jul 10 17:23:01 thepoosh: nothing much , just trying to figure out why i am getting npe in my code Jul 10 17:23:11 http://puu.sh/pWWO3/1f20eec574.png Jul 10 17:23:13 well, stacktrace? Jul 10 17:23:15 The button most likely does not exist Jul 10 17:23:32 jackhum: pastebin the stacktrace Jul 10 17:24:15 thepoosh: by stacktrace you mean the logcat window ? Jul 10 17:24:22 yesir Jul 10 17:24:26 thepoosh: you want it verbose or error ? Jul 10 17:24:35 just the error Jul 10 17:24:57 thepoosh: no need to call me sir , i already feel too guilty to ask very silly questions on irc Jul 10 17:25:14 no worries Jul 10 17:25:17 just paste it Jul 10 17:25:21 thepoosh: sometimes i think i am lucky that mod have not banned me :_ Jul 10 17:25:34 jackhum: don't worry about that Jul 10 17:25:49 but be helpful in fixing your issues and paste the frikin' trace Jul 10 17:26:26 raoul11: we managed to push udink to AW Jul 10 17:27:30 thepoosh did u notice the influx in israelis here lately Jul 10 17:27:40 g00s: omg, I can't believe AW posted a blog abouot when to "not" use RxAndroid Jul 10 17:27:45 eg above ^^ Jul 10 17:27:58 Moshdev: are you a Hebrew? Jul 10 17:28:03 raoul11: they come and go Jul 10 17:28:14 bezeqint range thepoosh Jul 10 17:28:20 http://pastebin.com/4vfLh0yb Jul 10 17:28:21 i think Jul 10 17:28:23 oh myyy Jul 10 17:28:43 just ran whois on myself Jul 10 17:28:47 can confirm: bzq-79-179-187-41.red.bezeqint.net Jul 10 17:29:21 thepoosh: no Jul 10 17:29:23 thepoosh: i pasted it , look if it helps Jul 10 17:29:59 jackhum: LoginActivity line 21? Jul 10 17:30:08 Moshdev: you're not for israel? Jul 10 17:30:20 thepoosh: no... Jul 10 17:30:25 weird Jul 10 17:30:28 wait thepoosh Jul 10 17:30:35 could be orange jordan Jul 10 17:30:42 thepoosh: what do you want me to tell you again> Jul 10 17:30:43 thepoosh: are you? Jul 10 17:30:58 jackhum: what is the line 21 in LoginActivity Jul 10 17:31:05 Moshdev: yesir Jul 10 17:31:59 where are you from? Jul 10 17:32:21 palestine :P Jul 10 17:32:27 cool Jul 10 17:32:29 btn.setOnClickListener(new View.OnClickListener() { Jul 10 17:32:30 where from? Jul 10 17:32:34 thepoosh: btn.setOnClickListener(new View.OnClickListener() { Jul 10 17:32:40 jackhum: then btn is null Jul 10 17:32:50 can I see the full code for onCreate? Jul 10 17:32:56 i dont know how this could help you in development !! Jul 10 17:32:59 see you later Jul 10 17:33:11 :P Jul 10 17:33:14 no worries Jul 10 17:33:32 peaceinlemiddleast (: Jul 10 17:33:47 raoul11: should I feel bad? i think i scared him/her away Jul 10 17:34:20 thepoosh: http://puu.sh/pWXDw/1a20a5e40e.png Jul 10 17:34:23 nah Jul 10 17:34:46 jackhum: you must call super.onCreate and setContent Jul 10 17:34:55 findViewById returned null Jul 10 17:37:17 thepoosh: i already have super.onCreate Jul 10 17:37:20 thepoosh: http://puu.sh/pWXMK/69c64ce73c.png Jul 10 17:37:41 first line in the method super.onCreate Jul 10 17:37:49 second line in the method setContentView Jul 10 17:37:58 after that do whatever the hell you want Jul 10 17:38:46 jackhum: ! Jul 10 17:39:08 thepoosh: okay let me try that Jul 10 17:40:50 thepoosh: yeah, still npe Jul 10 17:41:01 layout.xml? Jul 10 17:41:18 of activity_login.xml Jul 10 17:47:30 Mavrik, sorry was afk. It says (translated to english) "Your APK file have been rejected since it shows security flaws which is contrary to the policy of Malicius Behaviour" , and that they have sent out an email to me describing in detail what the problem is Jul 10 17:50:59 How do I check the screen size "tag" (small, medium, large, xlarge) for 1080x1920 at 5.2 inch? so that i can choose a layout? I checked the table here: https://developer.android.com/guide/practices/screens_support.html#testing but my resolution is not there. Jul 10 17:52:30 depends on your model Jul 10 17:53:04 ahh, the size, not dpi Jul 10 17:53:45 yes not dpi, just size for layout Jul 10 18:02:51 I think it's most common to just have layouts for phones, 7" tablets and 10" tablets. With phone layouts being the default Jul 10 18:05:30 You can switch layouts depending on the device at runtime SimonVT ? Jul 10 18:06:18 Android select the appropriate resources for you at runtime https://developer.android.com/guide/topics/resources/providing-resources.html Jul 10 18:06:56 I have a recyclerview of images, i want those images to have a parallax effect when i scroll, how can i do that? Jul 10 18:09:07 My first guess was, in onScroll iterate over every child and get its position from top and and using some crazy math (not very crazy) set focus point of those imageviews. I can't figure out how to do the last part Jul 10 18:11:14 I think i have an idea, while typing it i kinda figured it out, but if anyone has already done something like this, I'd love to hear their solution Jul 10 18:13:22 there's item decorator and item animators Jul 10 18:13:39 you can do stuff to them based on scroll position Jul 10 18:16:29 SimonVT: Yes, I think I should start with small layout and change it as needed to support more devices. Jul 10 18:20:08 By default you support every device size, it just might not look very good Jul 10 18:27:47 Anyone that used Google Play Game Services Save Game? Is it possible to just have one save game and constantly overwrite? It does not make sense for my game to have several... Jul 10 18:57:28 Is there a way to handle a specific key in GSON myself? or maybe a way to postprocess object without writing fixModel(stupidModel) everywhere? Jul 10 19:09:20 purplex88, if your layout requires device to be of a certain resolution, you're doing it very wrong. Jul 10 19:09:42 Which you noticed, because there's a lot of resolutions out there. Jul 10 19:09:46 hm. Jul 10 19:09:52 And my IRC time is one hour off. Jul 10 19:09:55 -_- Jul 10 19:10:04 :p Jul 10 19:10:53 Mavrik: same goes for drawables i guess? Jul 10 19:11:12 Drawables you usually size with dp Jul 10 19:11:32 And then create images for each density :) Jul 10 19:11:49 you can use sp for drawables, which scales Jul 10 19:11:52 For example, an actionbar icon is always 24x24 dp Jul 10 19:12:02 http://stackoverflow.com/questions/2025282/difference-between-px-dp-dip-and-sp-on-android Jul 10 19:12:28 purplex88, for layouts you usually have cutoff sizes where you switch to another layout Jul 10 19:12:29 ahh makes sense but i thought sp was for text Jul 10 19:12:39 SP is for text yeah. Jul 10 19:12:42 but actionbar isnt always same size, therefor its scaled Jul 10 19:12:48 SP id DP with scaling factor applied according to accessibility. Jul 10 19:13:08 So if you select "show me large text" in settings -> accesibility then SP will be bigger Jul 10 19:13:13 If not, sp == dp Jul 10 19:13:46 ah i will experiment with it Jul 10 19:14:31 settings -> fonts sets dpi if im not wrong? Jul 10 19:15:07 no i think dpi stays same but things scale as you said Jul 10 19:15:29 it sets the size of sp unit. Jul 10 19:15:43 ah right Jul 10 19:16:15 so it shouldn't affect "dp" Jul 10 19:16:29 No, it doesn't :) Jul 10 19:29:52 * kbs still wishes android would use css style px Jul 10 19:31:51 Hey, can someone lend me assistance? I am having a really hard time figuring out why I cannot install a custom kernel to a VZ LG G3 Jul 10 19:32:41 Zeo: Wrong channel. #android-root Jul 10 19:41:56 do you use the ButterKnife library? Jul 10 19:42:22 I was kind of disapointed to read that it won't work with library projects Jul 10 19:43:09 Still learning RxJava. Curious as to why Subscription is an object? I was watching a talk... and they said that subscription is useful because you can call unsubscribe on it... but why wouldn't you want to take the observer and call unsubscribe on that instead? Jul 10 19:44:01 eghdk, because those are different things. Jul 10 19:44:14 There may be different subscriptions on a single observer. Jul 10 19:44:37 A subscription is a concept that describes the whole chain, an observer is just one component of it Jul 10 19:44:43 So an Observer can observe multiple Observables at the same time? Jul 10 19:45:05 I thought multiple Observers could observe a single Observable, but I guess that makes sense as well. Jul 10 19:45:50 @RustyShackleford: use the version on master Jul 10 19:46:23 eghdk, depends on type of observer. Jul 10 19:46:33 JakeWharton, did you implement that? I read a comment you left on one of the github issues where you said there were no plans to ever implement this Jul 10 19:47:01 i did not Jul 10 19:47:02 Gotcha. Ok. Will look into it more. Thanks Jul 10 19:48:14 jackhum: did you figure it out? Jul 10 19:48:52 JakeWharton, well what I meant to ask is if that was implemented by someone, not necessarily you personally Jul 10 19:49:06 yes. someone implemented it Jul 10 19:49:15 heh Jul 10 19:49:17 it will be in 8.2.0 Jul 10 19:49:22 https://github.com/JakeWharton/butterknife/issues/45 Jul 10 19:49:58 that is very cool. I'll have to try that out Jul 10 19:50:17 RustyShackleford, https://github.com/JakeWharton/butterknife/pull/613 Jul 10 19:50:30 a project I work on is split into 4 library projects. Would be really nice to use ButterKnife Jul 10 20:05:22 Hello! My loader is re-querying the database on configuration change, how can I prevent this? Jul 10 20:05:42 explodes: why would you want to prevent that? Jul 10 20:05:54 configuration change recreates the activity Jul 10 20:06:25 Ah, you know what. It is re-"setting" the cursor, but it is the same cursor - so it is working correctly Jul 10 20:07:41 wat Jul 10 20:08:14 explodes: configuration changes trigger a complete re-creation of the activity Jul 10 20:08:19 including new Loaders Jul 10 20:11:22 hey thepoosh Jul 10 20:11:46 g00s: https://github.com/chrislgarry/Apollo-11/issues/53 Jul 10 20:11:49 solve this Jul 10 20:12:21 :D Jul 10 20:14:15 heh, cool stuff Jul 10 20:14:41 thepoosh, em, no Jul 10 20:14:48 The point of the loaders is that they survive conf. changes :) Jul 10 20:15:18 Mavrik: if the activity implements LoaderCallbacks Jul 10 20:15:33 won't it trigger them again with reset and init after conf changes? Jul 10 20:15:42 It shouldn't. Jul 10 20:15:44 sounds weird Jul 10 20:16:06 Results are re-delivered to the callbacks but the Loader itself is not recreated Jul 10 20:16:07 Since that't the whole point of loaders - that the app doesn't lose current loading process and loaded data Jul 10 20:16:12 thepoosh the AW Fb post was pretty good Jul 10 20:16:24 have it open Jul 10 20:16:42 that explains what explodes was saying Jul 10 20:16:48 about having the exact smae results Jul 10 20:17:40 "They automatically reconnect to the last loader's cursor when being recreated after a configuration change. Thus, they don't need to re-query their data. " Jul 10 20:17:47 i learned something today... Jul 10 20:18:28 g00s: been watching "Silicon Valley" over the past few days Jul 10 20:18:35 sheesh that hit close to home Jul 10 20:19:24 thepoosh its a good show but some technical details are incorrect Jul 10 20:19:31 i know Jul 10 20:19:37 i expected more Jul 10 20:19:48 in that department, and the new season is BORING Jul 10 20:19:55 they obsessed about calling java methods "subroutines" Jul 10 20:20:06 who the fuck uses that term?! Jul 10 20:20:07 it had no influence on me Jul 10 20:20:13 The new season is perfect :) Jul 10 20:20:14 *brb going to work on video algorithm* Jul 10 20:20:34 "What do you mean noone knows how to use our software?" :P Jul 10 20:20:41 sasser: don't know where you work, but my workplace is very similar to that Jul 10 20:21:04 i work at home Jul 10 20:21:05 also, we were in TC disrupt and I had to get the android app out by then Jul 10 20:21:21 actually won 3 place Jul 10 20:21:31 and crowd choice Jul 10 20:22:22 Mavrik: in the middle of SE2 Jul 10 20:22:26 all i know is Hooli is just like Microsoft Jul 10 20:22:32 WUT Jul 10 20:22:34 no Jul 10 20:22:40 thepoosh i haven't watched any of that. truth is stranger than fiction :) Jul 10 20:23:02 fuck that is true Jul 10 20:23:15 g00s u might like the movie stranger than fiction Jul 10 20:23:20 it has will ferrell ;) Jul 10 20:23:22 my wife told me that this better not be so close Jul 10 20:23:36 Hooli is a mesh of things, but yeah, Microsoft + Amazon + FB influences are strong :P Jul 10 20:24:04 lol the head of hooli invests in all the wrong things, and thinks he is going somewhere Jul 10 20:24:07 thats microsoft Jul 10 20:24:16 SPOILERS Jul 10 20:24:16 he pays people to drink slushies -> microsoft Jul 10 20:24:37 sasser: http://www.seattletimes.com/business/microsoft-invites-bae-interns-to-get-lit-on-lots-of-dranks-then-apologizes-again/ Jul 10 20:24:51 thepoosh oh i'm going to like this "Android Industrial: Real-time data visualization" Jul 10 20:25:00 ?! Jul 10 20:25:03 probably could be called "how to get around java" Jul 10 20:25:22 from AW, at the bottom Jul 10 20:25:46 maybe ill hire a spiritual healer Jul 10 20:26:01 thepoosh earlier you mentioned the Rx article, i had to discontinue using that in a few places as well - just b/c of all the Notification objects that were being allocated Jul 10 20:26:04 this was my favorite: http://tomstechnicalblog.blogspot.co.il/2016/07/when-not-to-use-rxjava.html Jul 10 20:26:28 still haven't wrapped my head around it Jul 10 20:26:35 should probably start Jul 10 20:26:37 nah Jul 10 20:26:40 lol Jul 10 20:28:20 g00s: also this: https://redd.it/4s1ozf Jul 10 20:29:04 thepoosh lol yeah that was perplexing. they are asking how to become expert in any field X Jul 10 20:29:24 i agree with the iOS guy though haha Jul 10 20:30:01 'to all who became expert in X, how would you again become expert in X' :) Jul 10 20:30:05 g00s, developed any iOS things yet? Jul 10 20:30:12 Mavrik its been a while Jul 10 20:30:24 just wondering ;) Jul 10 20:30:42 yeah, i'm aware of the interface builder stuff changing everything Jul 10 20:31:16 i like the android layout system better in that regards, but preffered the iOS stuff in all other cases Jul 10 20:31:28 huh. Jul 10 20:31:29 :) Jul 10 20:31:37 i got productive in iOS in short order, only took a few months Jul 10 20:31:46 just found it easier, made more sense to me Jul 10 20:32:32 and that was learning obj-c on top of things, but - thats not a hard language . just ahve to know when you should alloc / init things, got confusing around ownership - but thats all in the past now with swift Jul 10 20:32:54 that was in the past with ARC, years ago anyhow Jul 10 20:34:19 It's as much in the past as worrying about memory leaks is in the past on Android due to GC :P Jul 10 20:34:39 Then again, XCode is getting really close to stability of AS with Switft support :P Jul 10 20:34:50 Mavrik i sense your /s :D Jul 10 20:35:09 Sorry, just had a fun week fixing that swift shit ČP Jul 10 20:35:20 But yeah, I agree, the newcomer experience is way better Jul 10 20:35:44 Mostly due to up-to-date documentation, XCode actually working out of the box if you do simple stuff and having a lot of good APIs. Jul 10 20:35:56 (Not all of them, did you see the bullshit that's CG namespace? O.o ) Jul 10 20:36:59 <_thom_> Does anyone here work with Bluetooth Profiles, particularly hands-free (HFP)? Jul 10 20:37:01 i hated all that XX YY prefix for namespace stuff in obj-c, that was so lame Jul 10 20:37:46 Having a single vendor for hardware also helps, since you're dealing with driver bullshit only once. Jul 10 20:37:46 and aesthetically, it seemed like the later language syntax was the way it was to make parsing easier :D Jul 10 20:38:02 Nah, ObjC just doesn't have support for namespaces. Jul 10 20:38:06 It's still just upgraded C Jul 10 20:38:13 yeah, so you had NSblah, etc Jul 10 20:38:16 It's a constant source of pain for us Jul 10 20:38:28 its the same problem we have with fucking theme attributes in aars :) Jul 10 20:38:36 Also breaking changes of UI APIs over iOS versions. Jul 10 20:38:47 Way worse than Android -_- Jul 10 20:39:42 but i think their IB stuff was good early on, because they went the NIB route rather than slurping / writing XML Jul 10 20:39:59 at least thats the way i remembered it Jul 10 20:40:07 Yeah went the binary way from the beginning yeah. Jul 10 20:40:18 Even though I don't know of devs that actually use IB to develop apps Jul 10 20:40:53 so modern iOS, is it all in code then? :( Jul 10 20:41:09 Most of devs I've talked to said they write UIs in code yeah Jul 10 20:41:24 Maybe for more trivial apps people use IB Jul 10 20:41:29 grr. i guess that could be OK if the DSL is expressive like anko Jul 10 20:41:35 or not, if it isn't :) Jul 10 20:43:00 thepoosh that seems like another vietnam; split UI into declarative only spec or intermingle code Jul 10 20:43:15 heh Jul 10 20:43:25 fine, sleep time for me Jul 10 20:43:30 thepoosh gnight Jul 10 20:48:24 rxjava 1.1.7 Jul 10 20:50:54 Mavrik that comment on /r/ about opening a file in xcode and it changing, i never saw that - but could it be that it was updating the blob based on new schema ? (maybe the file was old and got revised format?) Jul 10 20:51:29 i've seen it. there is an fromAsync something i haven't seen yet Jul 10 21:09:49 test Jul 10 21:11:31 Mavrik fun so far https://www.youtube.com/watch?v=QGqzJjJAhBU&feature=youtu.be Jul 10 21:12:53 Say i have a TextView which use font size "15sp". This font size will differ, depending on the size and density of the screen, correct? The actual text will be larger on a 10" tablet than a 4" phone, yes? And if this is correct, i assume there is no easy way to convert the font sizes to say, printed media/"normal" font sizes? Jul 10 21:14:50 The text will be the same size on all device sizes and densities Jul 10 21:15:25 (+/- because buckets) Jul 10 21:15:53 hmm really? Then why even use "sp" if it doesnt respect density? Jul 10 21:16:45 Same physical size Jul 10 21:17:43 Aha. I should have known this already... thank you Jul 10 21:17:45 sp is just dp with a user-defined scale Jul 10 21:18:58 right Jul 10 21:19:44 So if i open Google Docs and start using the same font, and set its size to 15, they should be of equal physical size? Jul 10 21:19:58 (assuming no user defined scaling) Jul 10 21:21:46 I don't know what the conversion factor between sp and google docs font size unit is Jul 10 21:23:25 I dont know anything about fonts or typefaces, but i'd assume that this factor is not limited to google docs, it would be the same for all "normal" word processors Jul 10 21:27:26 I believe the units are points (pt) Jul 10 21:54:34 anyone watch / see the droidconDE session "Android Industrial: Real-time data visualization" ? he mentions psycharts, or something like that, but i haven't found a project link Jul 10 21:54:57 interesting that they had to do it in c++ for performance reasons Jul 10 21:55:02 + openGl Jul 10 21:55:30 g00s, you mean this one - https://www.youtube.com/watch?v=QGqzJjJAhBU ? Jul 10 21:55:38 Was it for visualizing data per app. Or globally on the device? Jul 10 21:55:40 OpenGLES Jul 10 21:55:54 Ologn yeah, that was a good session Jul 10 21:56:28 it sounded like something was going to be released, not clear if it was open source or not, and what parts - just the chart, or the ring buffers too, etc Jul 10 21:56:46 The slides are here https://droidcon.de/en/sessions/android-industrial-real-time-data-visualization Jul 10 21:57:02 ok thanks i'll look them over, maybe they have links Jul 10 21:57:40 i'm struggling with similar stuff but its not 200hz, thats rough Jul 10 21:57:54 was also trying to stay in java land meh Jul 10 21:58:13 bbl Jul 10 22:38:09 Hi guys! How do you handle configuration changes in your apps? In the past I invisible used retained fragment for my network calls or complex db queries, now I use EventBus' sticky events which survive config changes and I check for them in onCreate\onResume, do things if some sticky event is there, and the remove it from the bus. Jul 10 22:38:23 But what is the most common and widely accepted way to do this these days? Jul 10 22:53:14 i have GameActivity which handles logic and DrawScreen -which extends view and uses Canvas to draw everything... GameActivity has setContentView(drawScreen); and I should also have drawScreen.setOnTouchListener(this); ? to handle input... this seems to work but i wonder if is best/semantic way? Jul 10 22:54:50 lesson learned, don't try to test libraries that aren't yours.... Jul 11 00:15:08 RustyShackleford: released Jul 11 00:15:49 JakeWharton, awesome thanks for the info Jul 11 00:16:06 I'll let you know how it goes Jul 11 00:16:06 that'll be $4.99+tax Jul 11 00:16:19 too late, its already on github :p Jul 11 00:16:27 damn you GitHub Jul 11 00:16:46 does Square use all these libraries internally? Jul 11 00:16:59 you guys publish an absolute ton of libraries Jul 11 00:17:29 yes Jul 11 00:54:25 Would it be bad practice to store the Activity's Menu instance in an instance variable? Jul 11 01:06:16 Hello Jul 11 01:06:42 Hi there Jul 11 01:06:44 I have two questions regarding to layout. Jul 11 01:07:30 Well actually just one but I'll go to the one that I need more help with. Jul 11 01:14:00 herro Jul 11 01:14:13 Dx UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Exception parsing classes Jul 11 01:14:41 launching on android tablet, eclipse IDE, libgdx framework Jul 11 01:14:45 help is much appreciated Jul 11 01:15:20 #libgdx Jul 11 01:18:07 can you help me Jul 11 01:18:08 hey svm Jul 11 01:19:33 Anyone here tried the Visual Studio (Hyper-V) Android emulator? Jul 11 01:19:44 trying to do stuff with the location service and i'm curious why it's saying that network provider is enabled if i've switched my wifi off and don't have a sim card in? Jul 11 01:19:48 Dx UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Exception parsing classes, need help Jul 11 01:19:50 apparently it's doing GPU acceleration, but it doesn't feel like it. Jul 11 01:21:55 i though hyper V was a cpu feature (not gpu) but i dont know much about it Jul 11 01:22:18 drose379 id say yeah Jul 11 01:22:36 generally speaking Jul 11 02:02:49 hi Jul 11 02:04:02 hi Jul 11 02:04:49 Hello. Jul 11 02:05:38 i want to develop an app Jul 11 02:08:33 ok Jul 11 02:08:40 canaperro, https://developer.android.com/training/index.html Jul 11 02:08:50 good to know Jul 11 02:08:50 start here, and read a lot Jul 11 02:10:03 is there a chance that i could develop an app in wich i can sync 4 tablets and 1 pc with windows for a pos system? Jul 11 02:10:42 it's do-able, but not as a first app Jul 11 02:11:01 still you can try, you will learn lot of things anyway Jul 11 02:12:05 ya know Jul 11 02:12:11 i was afraid of android Jul 11 02:12:48 since i fix a firmware problem by myself now i'm more confident about my skills Jul 11 02:12:51 :) Jul 11 02:16:04 canaperro: There are apps that do that already. Jul 11 02:16:08 What do you want it to sync? Jul 11 02:18:09 4 tablets via wifi with a pc, for printers Jul 11 02:18:44 or maybe a printserver just for the tickets Jul 11 02:25:04 i'm returning to android dev aftr 2 years Jul 11 02:25:22 is workin gon android studio very different from eclipse in any manner? Jul 11 02:26:07 Will coding in eclipse be a drawback? Jul 11 02:26:42 pifon eclipse is out Jul 11 02:27:06 Yeah I know Jul 11 02:27:17 of course, there will be some adjustment. for example, idea doesn't have workspaces, structured XML editor, etc Jul 11 02:27:28 well not bundled into AS anyhow Jul 11 02:27:44 gradle is new too Jul 11 02:27:51 probably the biggest adjustment is that absolute truth is your build.gradle file Jul 11 02:27:53 yeah Jul 11 02:28:31 pifon sadly, still, the incremental real time error reporting from eclipse / ADT is still not as good in AS Jul 11 02:28:42 so you'll ave to get used to doing a build until you see some errors Jul 11 02:28:55 but, there is instant run which is cool too Jul 11 02:29:51 also i think eclipse workspace was more logical, the idea tool windows have some weird focus behavior Jul 11 02:30:07 but you get used to these things ... Jul 11 02:30:34 alright ty Jul 11 02:30:46 seems like as uses a lot more ram too Jul 11 02:30:56 that is the case, with gradle **** ENDING LOGGING AT Mon Jul 11 02:59:58 2016