**** BEGIN LOGGING AT Fri Jan 02 02:59:59 2015 Jan 02 03:00:17 alright Jan 02 03:00:32 we should get a dashboard update in the next week which will probably show 16+ start to approach 90% Jan 02 03:01:07 The colour difference between my tablet and my phone is amazing. Jan 02 03:01:22 My tablet's whites are way redder than my phone's. My phone's are pretty blue. Jan 02 03:03:02 Some text that looks almost pure white on my phone looks grey on my tablet. Jan 02 03:03:44 TacticalJoke: some roms hava options to fix this, right? Jan 02 03:04:08 I've heard something like that, yeah. But I still need to worry about this. :D Jan 02 03:04:15 I way prefer blues, personally. Jan 02 03:04:50 Red is nice for movies. Jan 02 03:05:05 Or improving people's appearances in Photoshop. Jan 02 03:05:10 blue is not that bad at all Jan 02 03:31:52 another fragments vs activities on /r/androiddev Jan 02 03:32:08 TacticalJoke you are right, reddit has been sucking Jan 02 03:41:44 I stumbled upon /r/nosleep tonight. Saw a really nice little story there. Jan 02 03:42:26 I'd better go. Have fun. Jan 02 04:05:03 What is the best way to show some type of progress spinner/bar for when my app does a call to my rest api? Jan 02 04:06:44 I have an if(Build.VERSION.SDK_INT >= 11) { .. switch to another activity .. } in my main/startup activity. Is there any way to move this to the manifest ? It seems to cause a delay on application boot Jan 02 04:18:08 t0astt: depends on your app Jan 02 04:18:23 if you are asking for style advice that is Jan 02 04:18:41 me, i have jewels spinning around an elephant Jan 02 04:24:49 Agamemnus: Not style advice, just what the most "material" way to do it would be... like a spinner? Jan 02 04:25:09 oh, yeah, no idea Jan 02 04:25:23 But also, a higher priority question: how come my app looks different in the android studio designer than it does on my phone? In AS, my button has a dropshadow, but on my phone it does not Jan 02 04:25:53 Also in AS the app does not have the "title bar", but on my phone it does Jan 02 04:26:05 both in the emulator and my phone Jan 02 04:26:15 Custom rom Jan 02 04:26:21 Perhaps Jan 02 04:26:30 Darklust: Nope. I'm running a Google Play Edition ROM on my phone Jan 02 04:26:35 and the emulator is stock Jan 02 04:26:44 different OS version? Jan 02 04:26:44 want screenshots so you can see what I'm talking about? Jan 02 04:26:58 I think you only get shadows after a certain version Jan 02 04:27:39 how can I check the version the android studio preview is using? Jan 02 04:28:14 dunno Jan 02 04:28:24 ok well my phone is KK Jan 02 04:28:35 and my emulator is Lollipop I believe Jan 02 04:28:44 yep, Lolli Jan 02 04:29:19 ah, I can see a VERY slight shadow on the emulator, but it's nothing like in AS Jan 02 04:30:32 Anyway, so for a spinning loading icon I'd want to use a ProgressDialog? Jan 02 04:31:38 t0astt you can use SwipeRefreshLayout maybe Jan 02 04:33:25 Thanks for the suggestion. Just looked it up but that's not what I need :/ This is for when the user hits "submit email" until the "email sent" text appears Jan 02 04:34:40 why even do that ? just submit the email, and when its done show a snack saying it was sent Jan 02 04:35:07 A snack? Jan 02 04:35:21 snackbar Jan 02 04:35:30 ??? link? Jan 02 04:35:42 http://www.google.com/design/spec/components/snackbars-toasts.html Jan 02 04:35:43 like that? Jan 02 04:36:11 yeah Jan 02 04:36:18 I like that... a lot more elegant than my solution. Nice. I'll take a look. Thanks! Jan 02 04:37:37 Actually... is that built in? Or do I need a separate library to do taht? Jan 02 04:39:31 you can use nispok snackbar Jan 02 04:41:16 Yeah, I just found that. So all I do is add the 'compile 'com.nispok:snackbar:2.7.3'' to my build.gradle and then sync? Jan 02 04:41:25 Apologies for the mega-noob questions :P Jan 02 04:41:31 i'd add 2.7.+ but yeah Jan 02 04:42:12 How do I know that I'm able to use it now? Just try using the code? Jan 02 04:42:26 heh, refresh your gradle project in AS Jan 02 04:42:40 I did Sync, is that right? Jan 02 04:42:42 then just use it ;) Jan 02 04:42:47 yeah Jan 02 04:42:55 oh wow Jan 02 04:42:58 Sweet! :D Jan 02 04:43:06 So did Gradle automatically download the library? Jan 02 04:43:09 yes Jan 02 04:43:11 Or how does that work? Jan 02 04:43:24 Gradle is f'in cool xD Jan 02 04:43:40 same w/ you g00s Jan 02 04:43:48 heh, thanks ;) Jan 02 04:44:04 this is my first android app ever and you guys are helping me a ton Jan 02 04:51:34 What is Gradle Jan 02 04:51:36 lol Jan 02 04:51:36 WOO! The Snackbar works great :D Jan 02 04:51:58 Does it like compile the app? Jan 02 04:54:12 Looked it up online Jan 02 04:55:05 g00s. that Snackbar library. You are a godsend. you win the internet for tonight! Jan 02 04:55:15 wohoo Jan 02 04:55:18 \o/ Jan 02 04:55:25 So admob got to $3.56 in ad revenues. Jan 02 04:55:34 And then it went down to $3.23 Jan 02 04:55:41 What gives? Does this happen often? Jan 02 04:56:05 I emailed Google but they didn't reply. Jan 02 04:56:57 dude, you really think Google are going to respond to a request about 30c with anything but an automated response? Jan 02 04:58:05 Leeds: (1) They didn't even give me an automated response. (2) It's hard to recognize sarcasm on the internet, I suppose. Jan 02 04:58:22 everything is estimated and malleable *at least* until they actually pay you... Jan 02 04:59:01 but i don't know how they figure that out.... do they like get a bid price but not THE bid price? (for the click) Jan 02 04:59:03 or WHAT? Jan 02 04:59:39 any thoughts? Jan 02 05:10:01 Ok, question time. SO I have this code(http://pastebin.com/H7sFfRfM). I want to call the same method that the code is executing in, however I wouldn't be able to pass it a View. What is the best way to do this? Jan 02 05:12:23 Agamemnus: I don't mean to burst your bubble, but you'll see the money go up and up, and before your payout, google shutsdown and bans your ad account for no good reason Jan 02 05:13:28 I would sue them if that is the case.. Jan 02 05:13:33 I have been extremely careful. Jan 02 05:14:37 A lot of the time I see people complaining about that on reddit, but then they realize there was a copyright issue Jan 02 05:14:50 All my images are either licensed, my own, or public domain Jan 02 05:15:20 Agamemnus i've read about apps using licensed material getting banned too. their bots don't know that you licensed it Jan 02 05:15:30 then i will sue google Jan 02 05:15:35 for 50 million dollars Jan 02 05:15:39 at least Jan 02 05:15:39 ^ Jan 02 05:15:57 better than having my app up ^_^ Jan 02 05:16:23 I wonder if anyone has actually tried to sue them. Jan 02 05:16:36 Because I never heard of it. At least as regards to the Play Store. Jan 02 05:17:32 anyone see this book ? http://www.amazon.com/gp/product/0674863216 ... wondering if it applies at all to your sense of location in an app Jan 02 05:17:36 I'm seeing so many violations of their so-called terms of service, it's laughable.. Jan 02 05:18:01 Sure I think so, g00s Jan 02 05:18:12 why not, it is all the same Jan 02 05:18:28 when I used to play Runescape, I had a very keen understanding of where everything was Jan 02 05:18:39 better than the real world.... Jan 02 05:19:51 Hmm. I just read a post on Reddit with a guy asking about IAPs Jan 02 05:20:01 I wonder how to handle reversals. Jan 02 05:20:27 Like, say, someone buys gems (or whatever) in an app.... then they use the gems to activate a feature.... and then they ask for a refund. Jan 02 05:20:30 What then? Jan 02 05:23:56 Give them more gems and position it such that they believe there's more value to them than the .99 cents they paid Jan 02 05:25:47 I don't understand Jan 02 05:26:08 When I say "ask for a refund", I mean they go to Google Play and click the "refund" button Jan 02 05:27:08 honestly I'm not 100% sure this is possible for IAPs Jan 02 05:27:10 IAPs don't have a refund button... Jan 02 05:27:44 Oh, that makes things easier... :P Jan 02 06:08:46 Toast.makeText().show() works from a worker thread? Jan 02 06:18:18 hey all, anyone around? Jan 02 06:20:28 i am here auser Jan 02 06:20:33 Mavrik, Thank you for pointing me at right direction Jan 02 06:20:51 Mavrik understands Jan 02 06:21:01 I got it working with startActivityForResult() Jan 02 06:21:10 pifon, ?? Jan 02 06:21:13 I am launching an activity from a broadcast. The activity’s sole purpose is to open, take a picture, and close. When the device is awake, it works just fine, but when the broadcast is received when it’s sleeping, the phone wakes up, but the activity doesn’t launch and no photo is taken Jan 02 06:21:49 nvm Jan 02 06:21:53 Awesome… I’ve been working on this for two days, trying various approaches to get the screen to load, delaying the execution, wrapping it in a secondary activity, etc. Jan 02 06:21:57 Isnt taking picture a user action ? Jan 02 06:22:13 ? Jan 02 06:22:35 Other words: Using camera without user action is not possible IMHO Jan 02 06:22:48 It works when the screen is on Jan 02 06:23:06 the problem isn’t user action, the issue is waking up from sleep to load the activity Jan 02 06:31:20 maybe you lack a permission Jan 02 06:40:48 Marlinski: me? Jan 02 06:46:03 okay, then another question.. why would an activity call `onResume()` and the next call would be `onPause` Jan 02 06:54:19 okay… I created a gist of what I’m talking about… perhaps that might help? Jan 02 07:17:54 I've used onResume practically by having an app update after a user hit back from a settings activity Jan 02 07:46:59 Hi, is anyone here familiar with the ShowCaseView library? (https://github.com/amlcurran/ShowcaseView) ; I can't find a sample that actually works; the library has recently been updated :( Jan 02 07:49:51 yea veryfatcat Jan 02 07:49:55 hi guys - has anyone built a photo upload app on Android ? I'm wondering if you guys have faced problems with using pre-signed urls to upload images to s3 directly. Jan 02 07:51:00 Odaym, could I PM you for assistance with using that library? Jan 02 07:51:31 I dont like to go to pm, talk here Jan 02 07:54:06 how do i debug android device though usb? i just wanna printout stuff. Jan 02 07:56:03 ok; So the new ShowCaseView library uses the "Builder pattern", I've tried using it in a fragment but I can't figure out how to get the overlay to work Jan 02 07:56:08 each system image in the sdk manager is a device you are targetting (preconfigured for the generics of that device) correct? Jan 02 07:56:12 monkeyisl: try this http://developer.android.com/tools/help/adb.html Jan 02 07:57:34 so the Intel x86 Atom and the x86 Atom 64 are emulator images of an Intel 32 bit android device and a 64 bit android device, correct? Jan 02 08:00:53 the overlay to work? Jan 02 08:00:59 when you do .show() on it, it'll show Jan 02 08:04:54 veryfatcat : thanks... btw. do i have to install android SDK to tester's PC? lol that's huge... Jan 02 08:13:15 http://developer.android.com/tools/help/monitor.html LOL Jan 02 08:13:25 btw still asks to install sdk though. Jan 02 08:13:52 yes, but don't need eclipse Jan 02 08:21:20 Hello! Jan 02 08:21:55 Sculptor : hello? ?? Jan 02 08:22:06 I've asked an Android question on StackOverflow - maybe someone here might know the answer: https://stackoverflow.com/questions/27663853/how-to-make-the-contextual-actionmode-bar-overlay-the-appcompat-v7-toolbar-but-n Jan 02 08:22:26 hello monkeyisl Jan 02 08:22:46 tl;dr How can I make the ActionMode bar overlay the appcompat-v7 Toolbar, but not the navigation drawer? Jan 02 08:22:55 Sculptor : are you the pro that i've known? ?? Jan 02 08:24:41 from efnet? Jan 02 08:24:55 Y Jan 02 08:25:18 #electronics? Jan 02 08:25:35 haven't seen you there lately Jan 02 08:26:30 Hi Jan 02 08:26:36 It's normal when you're urinating and you sneeze for blood to come out right Jan 02 08:26:38 Sculptor : indeed.. Jan 02 08:26:55 Sculptor : i was busy with stuff. Jan 02 08:27:19 that's good Jan 02 08:40:47 I said good day sir! Jan 02 08:45:06 There is no team in Axe! Jan 02 08:50:16 Darklust, depends did you urinate blood, or sneeze blood? Jan 02 08:52:08 we're not going to discuss that in here Jan 02 08:55:42 i see no rule preventing the discussion of urinating blood... Jan 02 08:56:02 the rule of discussing a specific topic is the same rule that prevents the discussion of any other topic Jan 02 08:56:11 go to #android-offtopic and speak about piss there Jan 02 08:56:28 but if its blood is technically piss... Jan 02 08:56:32 is it* Jan 02 08:56:40 what? Jan 02 08:59:52 well if what your saying true your not allowed to talk about how anyones day is Jan 02 09:00:01 is true ughh Jan 02 09:30:15 anyone can help me get genymotion to work on my pc Jan 02 09:36:06 Is there any way to use vim actions in Android Studio? I'm really lost without them :/ Jan 02 09:36:55 duncannz: have you tried https://plugins.jetbrains.com/plugin/164 ? Jan 02 09:37:06 duncannz: there's something called IdeaVim, not sure if it works with AS Jan 02 09:37:24 thanks JesusFreke Jan 02 09:59:55 Hi Jan 02 10:00:05 I have a live app on Google Play Jan 02 10:00:17 Is it possible to delete it from all devices? Jan 02 10:01:42 delete it? Jan 02 10:01:50 yeah Jan 02 10:02:01 delete it on the users' devices? Jan 02 10:02:07 yeah Jan 02 10:02:13 of course not Jan 02 10:02:24 :( Jan 02 10:02:32 I think Google have that ability... but you'd have to have a *really* good reason to get them to use it Jan 02 10:02:35 you cannot even delete it on the console, you can only unpublish it Jan 02 10:02:44 like a DMCA notice from a big company, say Jan 02 10:02:59 Leeds Jan 02 10:03:05 Malek Jan 02 10:03:10 I have a good reason Jan 02 10:03:16 haha Jan 02 10:03:20 the suspenmse is killing me Jan 02 10:03:22 It comes illegal in my country Jan 02 10:03:30 is it your application Jan 02 10:03:36 so is this keyboard Jan 02 10:03:38 Is that a good reason? Jan 02 10:03:44 if you mention illegal, it might get you further Jan 02 10:03:51 yeah, it's probably a good start Jan 02 10:04:25 MalekAlrwily_, asphalt 8? Jan 02 10:04:28 Odaym: How? Jan 02 10:04:40 Sculptor: no Jan 02 10:04:44 this is Saudi Arabia, presumably... Jan 02 10:04:51 can women play asphalt 8 in saudi arabia Jan 02 10:05:01 I dont know what Leeds is referring to, but if there is such a process, mentioning the law and something illegal will help you convince them how it shouldnt be on the store anymore Jan 02 10:05:26 why dont you just push an update with nothing in it :P Jan 02 10:05:36 the next problem would be getting the attention of someone at Google who could help... Jan 02 10:05:40 morph it back to a blank screen, everyone will uninstall it Jan 02 10:05:41 maybe it's not his app, Odaym Jan 02 10:05:56 he said it is Jan 02 10:06:00 oh ok Jan 02 10:06:01 Sculptor: games not illegal here Jan 02 10:06:19 driving games Jan 02 10:06:21 for women? Jan 02 10:06:23 Odaym: not everyone will necessarily update Jan 02 10:06:32 true Jan 02 10:06:48 what's the app do, brah? Jan 02 10:07:07 if this is a situation where the author is at risk of breaking the law and wants to remove it... seems like something Google should help with, actually Jan 02 10:07:13 unfortunately, it doesn't mean they will Jan 02 10:07:20 Sculptor: women can play games, FYI Jan 02 10:07:31 oh wow Jan 02 10:07:31 wow that game is 1.5 gigz Jan 02 10:07:36 lucky them Jan 02 10:07:41 they are given a lot of freedom it seems Jan 02 10:07:47 games....even car games..... Jan 02 10:07:47 Leeds: Thank you, you helped me a lot Jan 02 10:07:58 next thing they'll be playing angry birds! Jan 02 10:08:03 you gotta get that stuff under control! Jan 02 10:09:19 * Odaym mutters Jan 02 10:11:10 so Microsoft is making a new browser Jan 02 10:12:03 well, kinda Jan 02 10:12:22 they outta make a new OS Jan 02 10:12:27 haha Jan 02 10:28:53 Happy new yeaar Jan 02 10:31:03 old news Jan 02 10:58:00 hi, I would like to use this (https://github.com/amlcurran/ShowcaseView/tree/legacy) library; but i cannot get it to work in android-studio. someone please help. Jan 02 11:01:10 why do you need the legacy branch Jan 02 11:01:42 Odaym, Because I cannot find sufficient documentation of the main branch. Jan 02 11:01:49 I told that guy in one of the issues that his library was one of the worst that I've used Jan 02 11:02:17 Odaym, do you suggest/insist on using the master branch? Jan 02 11:02:20 I've changed most of that library to do things that it should offer out of the box Jan 02 11:02:39 I couldn't even import it and get it to run as a library, I took the classes as is and copied them into my project Jan 02 11:02:54 I just want to implement an Overlay animation in my application :( Jan 02 11:03:12 Odaym: yeah i was going to do the same thing right now -_- very frustrated. Jan 02 11:03:19 You couldn't add a Gradle dependency? O.o Jan 02 11:03:41 I did that; I got all the classes, all the values from the styles.xml, dimens.xml, the drawables, the works Jan 02 11:04:09 if you import it as a library you are at the mercy of what he is offering, which is basically all of what is not needed and none of what is needed Jan 02 11:04:17 Mavrik, its not that; I tried (almost) everything; I somehow cannot reference the library in my project. Jan 02 11:04:27 so I got the source and added support for custom dimensions for the two radiuses that make up the focus circle Jan 02 11:04:46 plus ton of other things, but Im not going to push them to him Jan 02 11:04:53 O.o Jan 02 11:04:57 Odaym, Ok i'll try doing it your way. Jan 02 11:04:57 Why? Jan 02 11:05:06 cause he did a half-assed job Jan 02 11:05:14 I mean, except for being an asshole... why wouldn't you contribute back to the project you use? Jan 02 11:05:25 When someone did most of the job for you? Jan 02 11:06:16 if I werent to go about the code and change it to work for me, it wouldn't have worked Jan 02 11:07:05 it doesnt make any sense, but Im very frustrated with it Jan 02 11:07:26 like that drag listview that Google dev bytes has, from Olshansky Jan 02 11:07:41 its so crap that I had to basically write another one, before I discovered dragsort-listview Jan 02 11:07:55 Odaym: i completely agree on the halfass view comment; I just did it your way (use the java sources, as is) and I am actually able to do something! Jan 02 11:08:34 what's worse is that he is under the impression that YouTube and other apps use his library Jan 02 11:08:44 because the output of both looks similar Jan 02 11:10:36 Oh the entitlement. Jan 02 11:10:41 lol Jan 02 11:10:45 Im a user god damn it Jan 02 11:10:56 I demand the best Jan 02 11:11:39 I have to shift into programmer when I want to use his library out of the box, I am no longer a satisified user Jan 02 11:15:20 Then don't use it Jan 02 11:16:12 this is all without the fact that I dont consider my code to be something anyone would accept to place online and would only generate more issues Jan 02 11:17:06 Hey all! Quick question: how can I make the ActionMode bar overlay the appcompat-v7 Toolbar, but not the navigation drawer? Jan 02 11:17:33 Not all libraries cater to your specific needs.. I've turned down many requests because I thought they were stupid, or I just didn't want to support it Jan 02 11:40:52 (Im new to Android development) I'm trying to use a Asynchttpclient get request to populate a ListView. I'm getting the json data, and then processing it in JsonHttpResponseHandler.onSuccess(), how do I tell my activity to update the Listview? Jan 02 11:45:37 untrothy: somethingsomething callback? Jan 02 11:49:40 veryfatcat, I really new to all this. Have any link on where and how I should be using a callback? Jan 02 11:50:42 anyone who knows gradle and ideas on this: http://stackoverflow.com/questions/27741366/usage-of-provided-sub-projects-with-android-gradle Jan 02 11:50:59 untrothy: you probably have adapter. do adapter.notifyDataSetChanged() Jan 02 11:54:09 Ashiren, non-static method notifyDataSetChanged() cannot be referenced from a static context... Jan 02 11:54:39 untrothy: you can easily solve that static context problem; keep at it. :) Jan 02 11:55:29 eeyup Jan 02 11:58:50 Ashiren, I was trying to notifyDataSetChanged() on my Adapter instance in my activity but I don't know how to call it AFTER the asynchttp request has finished. (That should fix the static context problem) Jan 02 12:01:58 hi Jan 02 12:02:28 how i can solve this error in Android studio: Error:Library projects cannot set applicationId. applicationId is set to 'com.atermenji.android.iconicdroid' in default config. ? Jan 02 12:02:56 Um, I think the error is pretty clear. Jan 02 12:03:02 i remove this line Jan 02 12:03:04 Libraries can't have applicationId in build.gradle. Jan 02 12:03:16 hmmm Jan 02 12:03:41 i will remove from all libraries, thanks Jan 02 12:05:52 t0th_-_: previously any applicationId in a library project was ignored. Android Studio 1.+ (or maybe the 0.9 release beforehand) make it an error. Jan 02 12:06:13 yes, thanks str4d :) Jan 02 13:00:30 :D Jan 02 13:00:41 Hi all. Anyone know if its possible to load native shared object files from the user's externalstorage/documents? Jan 02 13:42:24 hi Jan 02 13:44:07 i change my styles.xml to lollipop theme, and put the colorPrimary etc, why is not work ? Jan 02 13:44:17 why is not change the colors of my app? Jan 02 13:57:17 hi Jan 02 13:57:41 Hello guys Jan 02 13:58:23 I have 24x24 drawable and I would like to put it inside 48x48, but I would like this image to be aligned to right Jan 02 13:59:18 48x48 is mdpi I thik Jan 02 13:59:33 think* Jan 02 14:00:49 problem is I need smaller drawable inside bigger ImageButton Jan 02 14:01:04 and this drawable need to be right aligned Jan 02 14:03:36 I got a recycler view that's supposed to be populated by a list of a simple java object. However, the list never seems to be populated. code is here https://gist.github.com/rymate1234/bc08c36b956ec4652284. I've already checked that the list of java objects gets populated with values from the json, and it does. As far as I can tell though the methods in the Jan 02 14:03:37 adapter that populate the recycler view don't actually get called. Any help is appreciated! :) Jan 02 14:07:53 Is it possible to declare which activity starts as first/main for which android version ? Jan 02 14:31:22 I've a listview that presents a hierachal view to the user. If they push back btn, the listview is cleared and stepss up the tree. I had to intercept onscroll and onscrollchanged to prevent the listview being modified if the user hit the back button while scrolling. This works ok, but is there a way I can force the listview to stop scrolling from a keydown event? Jan 02 14:32:36 how can i use ProGuard on APK app which i dont have the source code of it ? Jan 02 14:34:24 hi, i create a directory values-v21 in res in android studio, but the directory is not showed, can help me? Jan 02 14:39:05 hi, why in styles.xml android:Theme.Material cannot be resovled.. Jan 02 14:44:11 any? Jan 02 14:51:13 I have 2 cases where I'm doing listview.getChildAt(), one of which always returns null and the other works just fine even before setting up the list's adapter Jan 02 14:51:30 how is this possible, both should not work and return null if the call is made before adapter is set Jan 02 14:54:31 ok they both fail, great Jan 02 14:54:50 the case where it wasnt failing had a case where it would naturally occur after the listview is populated Jan 02 14:55:14 so I did see this coming and I placed the call to childAt inside onPostCreate() Jan 02 15:01:16 Anyone able to help with my dilemma ? Jan 02 15:09:04 when I dynamically add rows to a tablelayout, where the rows have three columns each, the table seems to think all the columns are actually just the first column Jan 02 15:11:28 so the top row (header) has a really big first column, all the others pushed to the right, and each subsequent row has all three views stuffed into the first column... Jan 02 15:20:43 Question, Android uses typical init for the init system? Jan 02 15:23:16 no. Jan 02 15:24:15 oh what does it use than i guess i'm thinking typical linux Jan 02 15:27:41 it uses its own Jan 02 15:33:53 how i can change the color of drawer icon? Jan 02 15:38:12 I want to add progress bar and make it visible only for a specific event. Is it styles issue ? Jan 02 15:38:35 please house, how can i handle retrofit callback object... i'm not recieving full object parameters Jan 02 15:49:09 hi folks - i’m trying to be smart and SOLID about my web calls, but i’m coming over from iOS so probably not keeping best practices… i have an activity that when a button is pressed makes a web call, the call itself is handled within the manager and upon success i want the class to be able to start a new activity…. but i’m not sure this is a good way to do it: http://pastebin.com/TMuZbHWQ Jan 02 15:50:51 the style is sort of similar to block based calls in iOS/obj-c. but in the ‘success’ part of the code, i can’t say “Intent myintent = new Intent(this” because i am no longer within my activity, i’m encapsulated in one of the overrided methods from my custom interface… is this completely the wrong way to do things? getBaseContext() instead of ‘this’ in the constructor works but seems hacky. Jan 02 15:51:37 dbs_bruv, you chould really read at least a bit about basics of java Jan 02 15:51:50 YourActivityClass.this will give you the right this pointer you need Jan 02 15:53:17 well i studied it in college - it wouldn’t be v fresh in my mind though. :) Jan 02 15:54:07 that won’t work btw - the constructor needs (Context, class) Jan 02 15:54:24 And? Jan 02 15:54:27 also i’m looking for a specific instance of a class. Jan 02 15:54:58 I mean, you didn't really give enough code for us to give you more concrete example. Jan 02 15:55:16 You're creating an anonymous class and you need the instance of the current activity for animations to work well Jan 02 15:55:54 ok sorry. Jan 02 15:57:36 I got a recycler view that's supposed to be populated by a list of a simple java object. However, the list never seems to be populated. code is here https://gist.github.com/rymate1234/bc08c36b956ec4652284. I've already checked that the list of java objects gets populated with values from the json, and it does. Jan 02 16:00:11 Mavrik: I never understood how this can work it seems like "this" is static but it obviously can't be. Jan 02 16:00:20 if I'm inflating a ViewGroup subclass (e.g. TableRow) and I want to inflate it's layout from xml, I just call inflate(getContext(), R.layout.my_layout, this) in my custom init, right? Jan 02 16:00:53 marrrk, it isn't, it's automatically populated by compiler/VM to point to the current object instance Jan 02 16:01:13 if my layout has as the root element, it should just become the root of the CustomTableRow instance? Jan 02 16:01:27 marrrk, and note that non-static internal classes actually have a hidden "parent" reference that points to the object they're contained in Jan 02 16:02:56 that might be a little bit too much buzzwords -_- Jan 02 16:04:03 I see Jan 02 16:04:30 Interesting choice of syntax then. Jan 02 16:06:01 Hello everybody o/ Jan 02 16:06:18 In an app I'm making, I have to read a *BIG* JSON Jan 02 16:06:40 I have the following method which reads n characters from the inputstream Jan 02 16:07:02 http://pastebin.com/GGhk4LxY Jan 02 16:07:36 The problem is when I try to read the following JSON, it doesn't work (even if I set 10000 as len) Jan 02 16:07:46 http://binouze.fabrigli.fr/bieres.json Jan 02 16:08:29 I think a problem happens once I'm using the buffer Jan 02 16:09:40 Very nice mix of english and french Jan 02 16:09:58 check the return of your read for the actual bytes read Jan 02 16:10:44 marrrk, Hum? Jan 02 16:10:58 I'm actually coding using English but my data are in French Jan 02 16:11:28 "buveur" is one key and "name" another one Jan 02 16:11:58 marrrk, Oh Jan 02 16:12:15 marrrk, The JSON isn't mine Jan 02 16:12:15 Encrypt: Have you considered using a library for your JSON needs? Jan 02 16:12:15 That's the REST API my teacher made Jan 02 16:12:47 But you're right, it's really confusing to mix english and french Jan 02 16:12:54 marrrk, I'm using JSONObjetcs and JSONArrays to parse that Jan 02 16:13:30 ew, that's a huge json Jan 02 16:13:37 Encrypt, first of all, if you can, look at Retrofit Jan 02 16:14:00 Encrypt, other than that, use Jackson or Gson JSON libraries which have "stream" based parsing Jan 02 16:14:04 Mavrik, Yes, unfortunately :/ Jan 02 16:14:18 The teacher provides this JSON, another showing the categories Jan 02 16:14:28 But we haven't any other one Jan 02 16:14:44 So, I have to use this JSON to fill an expandable listview Jan 02 16:14:46 Is this an exercise? Jan 02 16:14:49 Yes Jan 02 16:14:52 About what? Jan 02 16:15:18 Because if you're supposed to write your own parser using a library would obviously be a bad idea. Jan 02 16:15:29 An academic work (which will be our semester mark on this lesson) Jan 02 16:16:02 marrrk, The work is to create an Android App using his REST API Jan 02 16:16:17 That's everything? Jan 02 16:16:19 No other constraints? Jan 02 16:16:32 It's a freestyle work :D Jan 02 16:16:44 We have to use 5 of the design patterns we saw in class Jan 02 16:16:51 Use his REST API Jan 02 16:16:57 And do a nice UI Jan 02 16:17:06 These are the only constraints we have Jan 02 16:17:37 That's a good assignment actually :) Jan 02 16:17:46 Anyway, check out Retrofit :) Jan 02 16:18:20 I don't like the part about the design patterns. Jan 02 16:18:48 Encrypt: I use this for json: http://argonaut.io Jan 02 16:19:27 Would you like to have a look at the app... Jan 02 16:19:28 https://github.com/Zencrypter/App_mobile/ Jan 02 16:19:36 :] Jan 02 16:19:41 marrrk, Thanks, I'll have a look :) Jan 02 16:20:07 whatitis, I did a System.out.println to see what the buffer returns actually Jan 02 16:20:15 And that's cut, as expected Jan 02 16:21:04 Nice error handling: catch (JSONException e){} :) Jan 02 16:21:16 It only reads 1550 characters Jan 02 16:21:20 marrrk, Yeah :D Jan 02 16:21:56 What are the design patterns you learned about? Jan 02 16:21:59 marrrk, As a friend of mine said, we're handling Java errors as firemen Jan 02 16:22:03 Well Jan 02 16:22:29 The Asynctask, the viewpager, the activity Jan 02 16:22:57 (I think "design pattern" is what he wrote but that's not that appropriate) Jan 02 16:23:26 Man, you'd be so paying for a round of beer if anyone found that in our companys git :P Jan 02 16:24:05 Are Futures only in Java 8? Jan 02 16:24:16 Mavrik, I know Jan 02 16:24:29 marrrk, depends on what do you mean by that. Jan 02 16:24:31 But on the internet, I find a lot of e.printstakstuff() Jan 02 16:24:37 Future as class exists from 1.5 or so Jan 02 16:24:37 So, that's not better Jan 02 16:24:44 Oh, I see. Jan 02 16:24:51 Encrypt, it is, at least you know when you tripped that Jan 02 16:24:59 otherwise you waste hours looking for errors on other side of app Jan 02 16:25:23 Anyway, nobody can beat C \o/ Jan 02 16:25:27 marrrk, but we now mostly use RxJava for that stuff Jan 02 16:25:45 Mavrik: Do you use Retrolambda? Jan 02 16:25:53 No. Jan 02 16:26:03 When I see all the Reader / Stream types in Java... it depresses me Jan 02 16:26:15 marrrk, for business projects it's not worth risking breakage on that level Jan 02 16:26:34 bytecode rewriting and all that Jan 02 16:26:52 Probably not. Jan 02 16:26:57 Encrypt: You can write your app in C++, I think. Jan 02 16:27:21 But we have to write it in Java :/ Jan 02 16:28:10 Ugh, no, please don't write your app in C++. Jan 02 16:28:22 It does not work. Jan 02 16:30:12 Aha! So there is another constraint. Jan 02 16:32:36 Encrypt: Where are you learning this? Jan 02 16:33:03 marrrk, What's the name of the school you mean? Jan 02 16:33:17 Well, I didn't want to assume it was a school, but yes. Jan 02 16:33:46 I'm a 4th year student at ESIEA Paris Jan 02 16:34:51 "It's a French school specialized in Embedded Systems and Information Technology, offering a five year degree comparable to a Master of Science" Jan 02 16:35:07 And next year, I plan to go to Plymouth University :D Jan 02 16:35:09 To get a double-degree Jan 02 16:35:11 comparable? Jan 02 16:35:21 what kind of degree is this? Jan 02 16:35:37 EPG, It's what is called in french "un diplôme d'ingénieurs" Jan 02 16:35:46 An engineering degree Jan 02 16:36:31 hmm, France still does pre-bolognia reform programs? :) Jan 02 16:36:37 It is said to be better than a "Master of Science" in France Jan 02 16:36:50 interesting, I thought there'd be only Bachelor/Master in France Jan 02 16:36:58 Nope :p Jan 02 16:37:25 And usually, to be accepted in our "Écoles d'ignénieurs", there is a preparatory class which lasts 2 years Jan 02 16:37:38 Anyone here had success with any of the real time messaging cloud platforms out there like pubnub, pusher or firebase? Jan 02 16:37:40 Called in French "Classe préparatoire aux écoles d'ingénieurs" Jan 02 16:37:52 During which we learn physics / math Jan 02 16:38:03 And that's really, really hard Jan 02 16:38:37 Tested out pubnub and firebase and they all have issues with phonegap on android Jan 02 16:39:19 France doesn't even call a Bachelor's a Bachelor's Jan 02 16:39:53 They don't give a toss about Bologna Jan 02 16:39:58 Hey. Do you have any suggestions for online ressources about app marketing and social media marketing? Jan 02 16:40:01 MetalHead77, I think phonegap is the problem there, not those services :/ Jan 02 16:40:50 Mavrik: Do you know of any real time messaging platforms that work with phonegap? Jan 02 16:41:04 Define realtime messaging. Jan 02 16:41:30 And I think the answer will be no, I'm avoiding phonegap as the plague. Jan 02 16:42:06 Mavrik: Real time messaging as in what we are doing now Jan 02 16:44:27 I am considering to throw out my ViewPager because I don't want swipe and a different animation for fragment changes. Does that sound insane or is it just fine? Jan 02 16:52:59 Where can I view the status bar icons a device running kitkat will display when 3g connected. Edge connected gprs connected etc... Jan 02 16:56:40 This 3g android tablet seems to get Edge speeds and not 3g even though its a 3g device. My samsung gets 3g with the same simcard in the same location.... Jan 02 16:56:53 I don't am not sure about the status bar icons of kitkat... Jan 02 16:57:00 A big G is appearing what that ? Jan 02 16:57:20 the phone signal. Jan 02 16:57:37 gprs ? Jan 02 17:13:08 why does every other view that subclasses a viewgroup inflate a layout with, but TableRow inflates a the layout inside of a TableRow? Jan 02 17:13:49 * inflate a layout with the same hierarchy as the layout * Jan 02 17:24:50 what is flavors? Jan 02 17:37:38 why would my app be ignoring system autorotate settings? It still rotates even when autorotate is disabled │ AlanLee Jan 02 17:37:50 oops Jan 02 18:02:31 hello Jan 02 18:03:08 Hello Jan 02 18:05:03 i have problem with android maybe you know where i can find file vold.fstab in etc folder i dont see i need this file to change sd card Jan 02 18:05:58 andoid 4.4.4 samsung ace 2 Jan 02 18:09:11 There's something I don't understand... Jan 02 18:09:13 http://pastebin.com/EjeU4zH2 Jan 02 18:09:27 Line 40 and 41 Jan 02 18:09:48 expandableListView is null :-( Jan 02 18:10:10 Encrypt: there aren't any views yet, because it's being called before setContentView Jan 02 18:10:33 Oh, right... Jan 02 18:10:45 could you show your DownloadTask? Jan 02 18:10:46 groxx, Thanks Jan 02 18:10:52 somaweb, groxx found the problem :) Jan 02 18:11:02 :-D nice to hear Jan 02 18:13:57 can someone tell me how to change sdcard1 to sdcard0 i find fstab file but idk what lines change. Jan 02 18:19:08 Hi, I am facing a proguard problem; here is the output while building, with proguard - https://bpaste.net/show/901e64840d6e, someone please help me out. Jan 02 18:23:59 veryfatcat, proguard can't find those classes in any of included jar files Jan 02 18:24:06 hey veryfact have a look at this Jan 02 18:24:06 http://stackoverflow.com/questions/8540905/proguard-and-android Jan 02 18:24:19 since those look like built-in classes, adding -dontwarn javax.naming.** should do the trick Jan 02 18:24:32 Mavrik, somaweb, I have looked at that; but I can't get -dontwarn to work. Jan 02 18:24:46 I have set my proguard.cfg file in the project setup as well. Jan 02 18:25:23 I don't know why, but for some weird, odd reason, it isn't "using" the proguard, I am not sure if my proguard.cfg is being used. Jan 02 18:25:40 I have a custom view which animates when pressed (via a ValueAnimator). This works fine. When I add two such views to my activity, and interact with them both, I sometimes see animation glitches/jumpiness (eg. the first view I pressed will not complete it's animation smoothly while the second view begins its own). Jan 02 18:25:44 Any ideas why this might be? Jan 02 18:26:10 veryfatcat, well, do check in your build script if you're editing the right file. Jan 02 18:28:44 Mavrik, could you please elaborate on that build script? I am using AndroidStudio, and I don't have any reference to proguard in my build.gradle file. Jan 02 18:29:38 release { Jan 02 18:29:38 runProguard false Jan 02 18:29:38 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' Jan 02 18:29:38 } Jan 02 18:29:38 However, in my project settings (android-studio); in the build - release, I have set my proguard file. Jan 02 18:30:23 runProguard true of course Jan 02 18:32:31 somaweb, Which file is the proguard configuration file? proguard-android.txt or proguard-rules.pro Jan 02 18:34:53 somaweb, this is my build.gradle file - https://bpaste.net/show/c02f07345519, It was generated by default. Jan 02 18:35:52 and how do u run proguard? Jan 02 18:36:02 show me the build.gradle from your app folder Jan 02 18:36:48 somaweb, this is my build.gradle from 'app' folder - https://bpaste.net/show/4c8793eadbda Jan 02 18:37:02 ah; didn't see it was in the app folder as well; why is there two build.gradle files? >_< Jan 02 18:37:10 oh no Jan 02 18:38:00 hmm... direct linking to the file Jan 02 18:38:03 can someone tell me what i must change in this fstab lines to set sdcard 1 as sdacrd 0 ( my phone dont have 2 partitions) Jan 02 18:38:03 defaults Jan 02 18:38:04 voldmanaged=sdcard0:8,nonremovable,nonemulatedsd /devices/sdi0/mmc_host/mmc1/mmc1 auto auto Jan 02 18:38:04 defaults Jan 02 18:38:04 voldmanaged=sdcard1:auto Jan 02 18:38:04 are u sure the proguard.cfg file is used Jan 02 18:38:33 halcyforn: Try #android-root, this channel is for app dev Jan 02 18:38:34 somaweb, No - i am not certain if the proguard.cfg file is being used or not; how do i know? Jan 02 18:39:09 this is si not app dev this is sustem file and there people cant answer me Jan 02 18:39:26 This channel is for app dev. Jan 02 18:39:47 ehh Jan 02 18:40:15 fucking phone and idiots what make custom rooms never repair this bug Jan 02 18:40:15 veryfatcat try to only link to the filename Jan 02 18:40:17 and leave it in the app folder Jan 02 18:42:24 somaweb, nope; still not working :( Jan 02 18:42:38 have u added -dontwarn javax.naming.** Jan 02 18:43:55 I tried just "-dontwarn" that didn't work, after trying "-dontwarn javax.naming.** ", it worked! Jan 02 18:44:26 thanks! somaweb :) Jan 02 18:44:44 frigging hell Jan 02 18:44:57 why the hell does Google use #include "path" in their public C++ libraries Jan 02 18:44:58 wtf Jan 02 18:59:02 In what instance will my canvas modification in a View's onDraw method not be reflected on the screen? I have a case where I clear the canvas in onDraw, but I still see the old canvas in the view. Jan 02 18:59:07 This is fixed the next time I touch another view in my activity. Jan 02 19:01:42 Are you sure that onDraw is actually being called at that moment? Jan 02 19:02:15 It sounds like it's not being called until you touch another View. Jan 02 19:02:25 TacticalJoke: Yes, I log it when it is called. Jan 02 19:04:18 Weird. Is there any code that could be posted? Jan 02 19:04:24 And when the correct canvas is seen on screen, there is no corresponding call to onDraw. Jan 02 19:09:49 TacticalJoke: It's a bit tricky to post code. By itself, the view drawing and animation works just fine. It's only when multiple views are operating at the same time that I can reproduce this. Jan 02 19:10:26 Each view is an item in a ListView, so I don't know if something complicated is going on inside the list view handling of the views too. Jan 02 19:23:03 hey all.. i cannot get gradle to stop complaining about a SDK build tools version even though I've set it past the required version. what am i missing? Jan 02 19:27:07 jobelenus: what's the error / warning? there's like a billion possibilities. Jan 02 19:27:42 yea.. groxx, im getting: "Error:The SDK Build Tools revision (19.0.0) is too low for project ':CordovaLib'. Minimum required is 19.1.0" even though I've set my application to target the 21.1.2 SDK Jan 02 19:27:53 there is nothing set to 19.0.0 Jan 02 19:28:43 jobelenus: build tools aren't the same as the target SDK. build tools are essentially the compiler & supporting tools, target SDK is the Android client-side frameworks you use. Jan 02 19:29:18 the gradle version is set to 2.2.1, the android plugin version to 1.0.0, and the compile sdk version is api 21, and the build tools version 21.1.2... Jan 02 19:29:18 hrmm Jan 02 19:29:41 jobelenus: in your app/build.gradle there should be a "buildToolsVersion" line. raise that to 19.1 or higher. Jan 02 19:30:02 yes.. that is set to: buildToolsVersion '21.1.2' Jan 02 19:30:03 jobelenus: you might need to download the newer version(s) from the SDK manager. they're listed near the top. Jan 02 19:30:54 and in the SDK manager: Android SDK Build-tools Rev 21.1.2 is marked as "Installed" Jan 02 19:31:21 is :cordovalib a separate module in android studio? Jan 02 19:31:30 there should be a build.gradle file inside the CordovaLib module. Check it’s settings Jan 02 19:31:41 its buildToolsVersion might be too low to build it (which would be a little weird, unless you modified it) Jan 02 19:31:47 genymotion sucks ... nothing but errors Jan 02 19:32:42 s73v3r: ahhh >< Jan 02 19:33:07 is there an updated version of Cordova available? Jan 02 19:34:18 i changed it to 21.1.2, but this is the most up-to-date version i know of (e.g. this is what the cordova tools generate when making a new project, and those tools are up to date) Jan 02 19:34:50 Guys, Intent.getExtras says it returns a "Map" Jan 02 19:35:06 Is there a specific way I gain access to that map? Jan 02 19:35:26 Is there a Cordova channel/forum? If this doesn’t work, they might be able to provide guidance Jan 02 19:35:35 drose379: it's returned to you, you already have it. Jan 02 19:35:51 yea, now im getting: "Task '' not found in root project 'android'." (my project is called 'android', again made by the tools) when doing gradle sync Jan 02 19:36:10 How do I access it? Jan 02 19:36:17 I passed a bundle with putExtras Jan 02 19:36:29 Now I need to get the array inside the bundle Jan 02 19:36:35 drose379: also, I suspect it's a "map", not a "Map". it's conceptually a key -> value store, but I think it's a Bundle, not a Map. Jan 02 19:37:03 Right, it is a bundle. and they key is "bund" Jan 02 19:37:24 I tried getExtras("bund") but thats incorrect Jan 02 19:37:27 s73v3r: ok i think im past it now.. thanks! Jan 02 19:37:28 jobelenus: You could try setting your project settings to match what is generated for Cordova Jan 02 19:37:55 drose379: there are a whole bunch more methods on Bundle: https://developer.android.com/reference/android/os/Bundle.html Jan 02 19:38:07 drose379: Why are you using getExtras and not getXxxExtra? Jan 02 19:38:37 I thought getExtras was used to return bundles Jan 02 19:38:38 Typically, people use stuff such as getStringExtra. Jan 02 19:38:42 And I passsed a bundle Jan 02 19:38:54 getBundleExtra? Jan 02 19:39:28 Leme check that out Jan 02 19:39:34 getExtras returns *everything* in one go. Probably not what you want. Jan 02 19:40:06 Right, so getBundledExtra("key") Jan 02 19:40:08 Cool, thanks guys Jan 02 19:40:46 BTW, drose379, I had an idea for your use case. Not sure whether it's a good idea, though. Jan 02 19:41:12 Instead of using Parcelable and passing the custom item, you could make the List global and pass the index (the int) to the Activity. Jan 02 19:41:15 Lay it on me, I actuallly changed the way I did it too Jan 02 19:41:42 The main downside is that your code becomes coupled with a global variable (which makes it harder to test, harder to understand, harder to change, easier to get wrong). Jan 02 19:42:02 Hmm, I decided to get all the data from the currentComputer object, throw it in a bundle, add it to the intent Jan 02 19:42:47 global + index is kinda likely to cause problems, unless you can recreate it identically every time :\ if the process dies and they go back to the app, you'll have an index to a list that doesn't exist. Jan 02 19:43:14 (if it's always the same / you can definitely recreate it identically: sure, that works.) Jan 02 19:43:30 groxx: True. I guess I'm assuming that the List will be auto-regenerated when the process is restarted. Otherwise, sanity checking would be needed. Jan 02 19:43:55 Although sanity checking might be impossible in some cases. Jan 02 19:44:07 so getBundleExtra returns a bundle, then I need to use that bundle to .getStringArray Jan 02 19:44:10 Then I can use teh array Jan 02 19:45:28 if that's how you put it together, yep Jan 02 19:45:52 Lets test her out then Jan 02 19:46:42 I got yelled at yesterday for being tooo help dependent so Im trying to be better at reading into everything before asking here about it Jan 02 19:48:14 that sounds like a pretty miserable place to work Jan 02 19:48:42 haha, not work. I meant someone on this chan Jan 02 19:48:44 I think that was in here Jan 02 19:48:54 Yeah it was Jan 02 19:50:29 which isn't nice. tbh though it's not _too_ far off, most of your questions are covered in the main tutorials on the android developers site. (which is a ton of reading, admittedly, and not the best organization) Jan 02 19:51:26 yeah. while we don’t want to basically be Google for you, we were all beginners once Jan 02 19:52:12 I received a crash report in my developer console with a "ClassNotFoundException: in loader dalvik.system.PathClassLoader". I never saw that happen with my app before. Do you know what could cause this only happening for one single user? Could it be something missing from my app or would it rather come from its device? Jan 02 19:52:20 Yeah, the guy had a point. I can find most everything on google but some stuff just doesnt make sense to me at first so I liked to ask people who know alot who can explain it well Jan 02 19:54:17 Morg0th: are you (ever) doing anything explicitly with ClassLoaders? Jan 02 19:54:36 Hello, I need to learn where can I find some logs or something helpful. I have an activity and the app sometimes crashes when displaying this activity. After some time, it doesn't matter if I do anything or not. ADB just tells me that the process has crashed. And so the activity quits along with it. There is no helpful info in the ADB before the crash. The first relevant message being that the process has crashed. I don't really Jan 02 19:54:38 know how to debug this. Are there any more interesting logs that LogCat or anything? Thanks. Jan 02 19:55:01 is there any native code in it? Jan 02 19:55:06 groxx: no, never Jan 02 19:55:23 i'll paste the whole thing Jan 02 19:55:37 Nohus: Do you get a stack trace? Jan 02 19:55:50 http://pastebin.com/L8JN2g34 Jan 02 19:56:09 Nohus: start-up crashes are sometimes logged to the "main" logcat. there's a way to remove the your-app filter in IDEs, otherwise you can just `adb logcat` from the command line to read everything. Jan 02 19:56:09 TacticalJoke: No, that'd be very nice. ; / Jan 02 19:56:54 groxx: It always starts nicely, but then after running for a few minutes the process crashes without any info in the LogCat other that it has crashed. Jan 02 19:57:39 Morg0th: I assume it's working normally for most people? Jan 02 19:58:09 groxx: yes it is, i was never reported such an issue before Jan 02 19:58:49 Nohus: sounds odd... by "crash" do you mean "process isn't running when I think it should be", or "shows an error dialog and quits"? Jan 02 20:00:39 Morg0th: fwiw I do occasionally see errors like that on flaky devices. (by "occasionally" I mean roughly "0.001% of installs"). it could be a user with a buggy system tweak of some kind, or sometimes Androids just have problems (like not being able to write to the internal cache dir. reboot -> fixed. wtf.) Jan 02 20:01:01 you'll never be 100% crash-free unless you turn off crash reporting :) Jan 02 20:01:02 groxx: On the device no dialog is shown, the activity just quits back to home screen. With "Process my.package.name (pid 1234) has died." Jan 02 20:02:02 Nohus: weird. I don't suppose you're calling System.exit() anywhere? Jan 02 20:02:31 Oh there actually is one error before that. "E/InputDispatcher﹕ channel '42b403a8 my.package.name/my.package.name.MyActivity (server)' ~ Channel is unrecoverably broken and will be disposed! Jan 02 20:02:45 But I have no idea what that even means. Jan 02 20:02:56 groxx: hehe ok, that's also what i suspected. i'll just drop that report if it does not show up again. thanks! Jan 02 20:03:20 groxx: No I'm not calling anything of this kind. Jan 02 20:03:38 Morg0th: I wouldn't totally rule out dev error, but if it's fine elsewhere, that is honestly my guess. Jan 02 20:04:24 groxx: ok thank you Jan 02 20:06:25 Nohus: that's a new one to me :\ is that immediately before, or e.g. a few seconds? I would _guess_ that that sort of thing would fix itself, but I could very well be wrong. Jan 02 20:08:47 groxx: Exactly the same millisecond. Usually it showed after the process died so I though it's irrelevant as it happens because he process died. Now it has shown up before in the log, like it could be a cause, but it probably just showed up before with luck because it was in the same millisecond... Jan 02 20:19:55 Nohus: Did you google that message? Quite a few results for that. Jan 02 20:20:29 Is there a way to set a notification on someone elses phone, either from a phone or from a computer Jan 02 20:20:44 Not a SMS Jan 02 20:20:44 Like a reminder type Jan 02 20:21:21 push notification? Jan 02 20:21:43 Creating a notification on my device, and pushing it to anothers Jan 02 20:21:54 Either from my device, or from a desktop web browser Jan 02 20:22:10 is there any of your apps on the others device? Jan 02 20:22:49 The person recieving the notification will have to have this app installed Jan 02 20:22:55 yes Jan 02 20:23:04 then just use google cloud messaging Jan 02 20:23:16 aka push notifications Jan 02 20:24:07 Ok Jan 02 20:25:40 TacticalJoke: I don't see anything solid, all the results feature other stuff happening which isn't happening for me. Jan 02 20:33:38 I wonder if that's the touch-system complaining about the process being dead, before it received its death-notifier call. might be unrelated to the cause... Jan 02 20:41:26 I might just need to comment out everything and binary-search-uncomment while waiting 10 minutes after every change... fun. Jan 02 20:42:11 Is there any code you could post? Input from others might help to narrow stuff down. Jan 02 20:42:45 soooo..... does Calculate offer a Gnome desktop? or is it strictly KDE and XFCE for the desktop isos? Jan 02 20:44:33 I am passing a string resource name from one activity to another via the intent's stringExtra. However when I get to the new activity I cannot retreive the string via getString() because I cant refer to the resource from its equivelant literal. Jan 02 20:45:06 You could pass the string itself. Jan 02 20:45:15 Or just allow the Activity to get it (since resources are "global" anyway). Jan 02 20:46:32 TacticalJoke, how do I let the activity get it? Jan 02 20:46:59 TacticalJoke, I am looking up the string based on the one passed from a previous activity Jan 02 20:48:14 http://pastebin.com/HtTTjHHN Jan 02 20:48:46 basically what I am doing is this: https://stackoverflow.com/questions/4025770/android-launch-activity-from-clickable-text Jan 02 20:48:51 Why not just pass the string, then? Jan 02 20:48:58 see the stackoverflow link Jan 02 20:49:00 The value, I mean. Jan 02 20:49:22 for each string clicked I want to look up the details of it (sort of like an annotation, or foot note) Jan 02 20:49:45 symptom: you can look up resources by name. google should be able to point you there. Jan 02 20:51:14 TacticalJoke: This activity is, like, huge. I'll narrow try to narrow it down a bit before posting. Jan 02 20:51:18 symptom: but if it's not a huge chunk of text, it is probably easier to just pass the string contents Jan 02 20:52:25 groxx Id have to look it up one way or another Jan 02 20:53:14 Hmm. What about passing the integer ID? I've never tried that, but I guess it works. Jan 02 20:53:48 symptom: I'm not quite sure what you mean, but https://stackoverflow.com/questions/3476430/how-to-get-a-resource-id-with-a-known-resource-name should help. basically you use the name to find the ID, then load the value "normally" (e.g. getString()) with that ID. Jan 02 20:54:05 hummm. Jan 02 20:54:17 I tried that but android studio says getIdentifier is not a static method Jan 02 20:54:38 probably because it's not a static method. Jan 02 20:54:45 ah Jan 02 20:55:00 it's an instance method on Resources: context.getResources().getIdentifier Jan 02 20:55:00 getResources().getIdentifier().... that seems silly since resources are global Jan 02 20:55:31 it's a little more complicated than "they're all global". resources are determined by e.g. your theme, your language, your screen width, etc Jan 02 20:55:31 Hey guys, So, I have simple multithread server/client tcp working, and now I am wanting to know how would I command from my server to my android phone (client) like for example I want to have my phone vibrate Jan 02 20:55:44 oh. ok. tahnks groxx Jan 02 20:56:11 so when you getResources, you're getting them from a Context that has already figured out which ones to look at. Jan 02 20:56:42 which is also why you don't want to save Context objects statically - if something changes, they won't be updated. e.g. it'll still point to the old language / the old layout / the old theme. Jan 02 21:03:27 any android studio users know how to do a git reset --soft ? Jan 02 21:05:40 have you tried "git reset --soft" :D Jan 02 21:06:18 tnzr: looks like VCS -> git -> reset HEAD -> change from "mixed" to "soft". or since you apparently know the CLI git, I'd say chuck the IDE's behavior and just do it on the command line :) Jan 02 21:06:36 good suggestion guys, screw the IDE :) Jan 02 21:07:02 I've never found an IDE git-integration that I actually liked. Jan 02 21:07:04 yeah, I don't use the git functionality much Jan 02 21:07:10 im in a weird workflow situation (currently on a windows machine and the terminal in Android Studio kinda sucks) Jan 02 21:07:12 with one exception Jan 02 21:07:17 handy for showing changes, totally screwy for _making_ changes. Jan 02 21:07:20 view history, and especially view history for selection Jan 02 21:07:33 view history for selection is freakin' awesome :) Jan 02 21:07:35 sucks because its windows, I love it on my mac because its just a bash prompt and all my git config stuff is all configured and respected Jan 02 21:07:44 nice Jan 02 21:07:45 like git blame on steroids Jan 02 21:07:48 haha Jan 02 21:07:52 aah. yeah, that would be annoying Jan 02 21:08:31 JesusFreke: yeah, that's pretty nice :) and way easier than figuring out and writing a line-range for git log Jan 02 21:08:56 what do you guys recommend for basic REST stuff in android? I used to use apache's HTTP stuff but now I think I'm gonna give OkHttp a shot..any caveats or pitfalls to watch out for? Jan 02 21:09:08 it's so nice you might keel over and die Jan 02 21:09:11 groxx: hah, I didn't know you could do that with git log Jan 02 21:09:18 I see the -L option. nice Jan 02 21:09:30 OkHttp is Android's core networking library now, it's stable and worth using Jan 02 21:09:41 Androids core networking library?? Jan 02 21:09:53 like officially? Jan 02 21:09:57 was it kitkat or lollipop when they started using it? Jan 02 21:10:01 KitKat Jan 02 21:10:03 wow, did not know that Jan 02 21:10:17 do I even need to include OkHttp as a dependency then? Jan 02 21:10:21 yes Jan 02 21:10:39 alright, thanks Jan 02 21:10:42 it only backs java.net.HttpURLConnection for Android Jan 02 21:10:48 and nobody should ever use java.net.HttpURLConnection Jan 02 21:11:04 cool thanks again jake Jan 02 21:11:11 btw, do you ever sleep? Jan 02 21:11:20 doesn't seem lik eit Jan 02 21:11:33 no. i am a robot Jan 02 21:11:42 beep boop Jan 02 21:11:44 I friggin' knew it Jan 02 21:13:00 groxx, alright why isnt this working then from inside the onCreate() method: http://pastebin.com/2zgpEX3g Jan 02 21:14:41 symptom: lowercase "string"? Jan 02 21:14:58 I think. been a while since I've used that. Jan 02 21:15:24 anyone experiencing choppy animation when using ViewAnimationUtils.createCircularReveal ? Jan 02 21:15:54 lol Jan 02 21:16:01 yup... that'll do it groxx Jan 02 21:16:03 thanks Jan 02 21:16:17 Anyone think they might know this? Jan 02 21:16:18 http://math.stackexchange.com/questions/1085316/find-the-area-and-perimeter-of-a-self-intersecting-polygon-using-out-of-order-co Jan 02 21:16:30 iirc it has to match the "R.[whatever]" exactly. so "anim", "layout", etc. Jan 02 21:16:40 people in #math don't know Jan 02 21:19:10 AndreYonadam: not sure why you'd ask in here, but: I'd say, find intersections, get rid of them by adding more vertices + splitting the polygon in half/etc, sum the pieces. Jan 02 21:19:18 so I'm going to try a chromecast app Jan 02 21:19:44 where can I find out more about streaming to a chromecast device? Jan 02 21:20:08 groxx: Because its from an android app. https://play.google.com/store/apps/details?id=com.andreyonadam.areaperimeter Jan 02 21:20:10 Guys, I have several crash reports: java.lang.IllegalArgumentException: Unknown URL content://com.android.calendar/calendars Jan 02 21:20:15 think something like netflix. The phone is the remote control, then you have a server that streams to the chromecast Jan 02 21:20:34 not sure how I'll stream video yet Jan 02 21:20:48 On devices > 4.0.. I do get them rarely.. (my ap has +/- 50k users, and just have some error reports) Jan 02 21:21:03 what could that be? Any hints? Jan 02 21:21:17 AndreYonadam: oh, heh. kinda related I guess :) Jan 02 21:21:19 tofra: Are they all on the same device? Jan 02 21:21:39 groxx: I think I found a way to prevent it from happening. Store all the points in an array and check for each pair (Side) if any point crossed. The problem with that is that it would prevent the user from intersecting which is good so I won't even have to figure out how to solve self-intersecting polygons. I'm not sure if I should use that approach. Jan 02 21:21:51 Can anyone help me with this section of the dev tutorial? http://developer.android.com/training/basics/actionbar/adding-buttons.html. Where is openSearch() and openSettings() defined? I tried ctrl+f but no matches apart from the invocation, and I tried a site: google search but only this page comes up. Jan 02 21:22:00 I guess I can just do that to prevent it. Jan 02 21:22:36 I wouldn't register the new cooridnate if it crossed a side. Jan 02 21:22:41 @s73v3r: nope.. Huawai, samsung, asus etc.. Jan 02 21:23:16 hrmm Android Studio can't figure out my java version even with JAVA_HOME set *and* its calling the correct jdk's java binary (which is set by update-alternatives on kubuntu). confusing Jan 02 21:23:20 well, basically what that’s telling you is that the URI is invalid. It could be that the calendar URI is different on those devices Jan 02 21:24:15 groxx: I'm still going to think about it a little more lol. Maybe Android has a way to get the area of a shape on a canvas. Jan 02 21:24:21 Is is possible to check if the uri exists? Or even better (so I can investigate) get a list of uri's on the device? Jan 02 21:24:35 But again I'm not sure if that takes in consideration the intersecting. Jan 02 21:24:36 I'll see Jan 02 21:24:38 Thanks Jan 02 21:25:04 anyone know how to tell (like you can in eclipse itself) what the JDK is to us, and how to tell that to a particular project? Jan 02 21:25:19 well, you could wrap the line in a try/catch, and that would probably tell you that it doesn’t exist Jan 02 21:25:25 gradle says it can't determine the java version Jan 02 21:26:17 ddd: heh, I had that problem a while back. I can't recall what I did to resolve it though :/ Jan 02 21:26:36 You might want to make sure you have the latest version of gradle, at least Jan 02 21:27:26 hello , any one have "dexprotector" i need to protect my app , and i can not afford to pay for it , any one can help with this ? Jan 02 21:27:52 beshoo: wait a second... let me get this straight Jan 02 21:28:06 you're wanting to pirate an anti-piracy program? Jan 02 21:28:20 ddd: does something like compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 } work? or targetCompatibility. Jan 02 21:28:32 beshoo: if you’re not willing to pay for the software of others, why should anyone pay for your software? Jan 02 21:28:56 no Hold please Jan 02 21:29:10 lol Jan 02 21:29:34 i can not pay 500$ for the actevation , so i want to ask any one who may have payed for it to help me to protect one app .. Jan 02 21:30:02 my app is a free app Jan 02 21:30:14 just want to protect it Jan 02 21:30:15 beshoo: that's still the same thing. but proguard is free, and does basic obfuscation, use that. Jan 02 21:31:18 i want to hide the api that i used , is that ellegal ? Jan 02 21:32:29 what is the best way to place button in specific location (x an y coordinates) Jan 02 21:32:51 slani: you don't want to use absolute coordinates Jan 02 21:33:09 android runs on many different screen sizes Jan 02 21:33:24 with many different resolutions and different densities Jan 02 21:33:54 you'll probably want to take a look at http://developer.android.com/guide/practices/screens_support.html to get an idea of how android deals with this Jan 02 21:34:38 * groxx puts on the Most Interesting Developer voice Jan 02 21:34:39 you don't always want to use absolute coordinates. but when you do, try a FrameLayout and/or layout_marginLeft="123px". Jan 02 21:35:42 Why not go full retard and use AbsoluteLayout Jan 02 21:37:00 groxx: sorry was off googling Jan 02 21:37:04 i'll look Jan 02 21:39:49 JesusFreke: I drawed a custom view. and I like put buttons on that view. so this must be independet of screen size, ... ??? Jan 02 21:41:52 slani could u just upload a picture of what u are trying, a little sketch drawing, so we can all discuss it further Jan 02 21:42:17 Crap.. I see it's not possible to get all available URI's on a device, so I can look which one is used for the calendar.. :( Jan 02 21:43:09 tofra: http://developer.android.com/guide/topics/providers/calendar-provider.html Jan 02 21:44:11 yeah, but when I get "Unknown URL content://com.android.calendar/calendars" I'm still in the dark what it should be.. Jan 02 21:44:12 :D Jan 02 21:46:47 Therefor I want to query the available URI's.. Jan 02 21:48:04 I have an activity which switches fragments. The initial fragment should not show the ActionBar, but the second one should. Before loading each fragment, we call supportActionbar.show() or hide() based on which one we are loading. But the action bar does not show on the second fragment Jan 02 21:50:20 somaweb: I drawed a playgorud. now I like to add button like black dots on picture (http://postimg.org/image/d5i1st9k3/ ). I will add buttons programaticaly too relative layout (http://paste.ubuntu.com/9661763/ ). Jan 02 22:01:10 slani, i would rather paint them on the playground and override its onTocuh Clabback and check the coordinates wether a "button"-area is tocuhed or not Jan 02 22:03:13 somaweb: but I need to change a positon. Then I need to redraw playground everytime?? Jan 02 22:05:52 which position? Jan 02 22:07:19 Umm, is Android NOT compatable with jdk1.8.0? Thats the jdk i have installed. Jan 02 22:07:38 yes. Jan 02 22:07:50 I'm using jdk 1.8 Jan 02 22:07:52 JDK 8 is fine Jan 02 22:07:53 yes its not compatable? or yes it is? Jan 02 22:07:57 ok cool Jan 02 22:08:45 thought i might have had to step down to 7. thank you :) Using Android Studio 1.0.2 and JDK 1.8.0_25. Just wanted to make sure everything was ok. Tutorial is wrong then. much obliged Jan 02 22:08:58 (I'm on Linux. Kubuntu 14.10 to be exact) Jan 02 22:11:30 somaweb: Buttons are not static. I just show one posible position at begining. Jan 02 22:14:26 JakeWharton: hey, thanks for your fantastic libs and speeches Jan 02 22:14:46 thanks for using and i'm glad they're useful Jan 02 22:23:58 Watching Hunger Games, I can understand why Reddit is obsessed with Jennifer Lawrence. She's very watchable. Jan 02 22:24:29 :) Jan 02 22:26:11 TacticalJoke: still, the first movie made me feel punch drunk due to drunken camera action :P Jan 02 22:26:42 Yeah, I'm noticing that. But it's kinda drawing me in (to the film, not JLAW obsession). Jan 02 22:27:10 TacticalJoke: on *big* screen it gets problematic Jan 02 22:27:22 Ah, yeah. Did you see it at the cinema? Jan 02 22:27:40 yep Jan 02 22:29:37 TacticalJoke: thefappening? Jan 02 22:29:46 That too. lol Jan 02 22:29:54 But they already idolised her. Jan 02 22:36:31 I'm unexpectedly seeing a custom View of mine changing (drawn differently) in my activity at a point in time. What methods of the View correspond to a visible change? I don't see onDraw being called at this time. Jan 02 22:38:22 does ActionBar visibility have to be set before onCreate returns? Jan 02 22:39:26 you can set it whenever you want Jan 02 22:44:38 for some reason, I’m getting a no view found error when I don’t set it in onCreate Jan 02 22:45:34 s73v3r: paste the code Jan 02 22:46:17 can’t. private code Jan 02 22:48:33 the line that gives error Jan 02 22:48:38 and its context Jan 02 22:49:09 Use Toolbar, then it's just the regular View api Jan 02 22:49:16 I’m trying to track it down Jan 02 22:49:31 Is Toolbar backwards compatible to 4.0? Jan 02 22:49:46 yes. Toolbar is a view Jan 02 22:49:52 But no, it might not inflate the ActionBar if you hide it from your theme, for example Jan 02 22:50:18 it absolutely will not Jan 02 22:50:18 Toolbar is in appcompat-v7 Jan 02 22:50:22 If I were to hide it from the theme, what line would I use? Jan 02 22:51:00 Man, some people's naming is insane. Reddit's API needs to give a user modhash. So what do they call it? "user_modhash" or something? Jan 02 22:51:02 Nope: "uh". Jan 02 22:51:15 umh? Jan 02 22:51:40 so space efficient Jan 02 22:52:16 True. But they're less stingy with field names such as "title". Jan 02 22:52:27 'uh' is probably less space efficient if you gzip Jan 02 22:53:48 maybe not Jan 02 22:54:00 depends on a million things Jan 02 22:58:43 hi Jan 02 22:59:04 why does the contact picker need "android.permission.READ_CONTACTS"? Jan 02 23:00:24 I have a FragmentA and I replace it with FragmentB (I also addToBackStack(null) ). But getBackStackEntryCount() gives me zero when I get the value from inside FragmentB . Shouldnt that be a one ? Jan 02 23:01:23 SimonVT: Toolbar works on Gingerbread (API 10). Jan 02 23:06:27 DOES IT? Jan 02 23:07:11 gdrc: correct Jan 02 23:20:56 damn you gotta have a monster machine for these emulater images to load quickly. 2.1GHz quad core with 4GB RAM and its taking forever to load up Jan 02 23:21:04 Hello again o/ Jan 02 23:21:21 where can I find out what setContentView actually does? Jan 02 23:21:30 I have a question regarding a progress ring Jan 02 23:21:40 I have two activities: Activity A and B Jan 02 23:21:54 On activity A, there is a button to launch activity B Jan 02 23:21:55 ddd: check you have VT-x enabled in your BIOS and the image should be running x86 or x64 depending on your machine.. if your trying to emulate arm on a x86 then it will be slow Jan 02 23:22:28 But my problem is that activity B is slow to launch (because it downloads and puts content in different arrays) Jan 02 23:22:41 So, I decided to add a progressring to tell the user the app is working Jan 02 23:22:50 Napalm: ahhh. ok yeah using the arm v7a Jan 02 23:22:56 will change. Jan 02 23:23:00 ddd 4G , the memory will be limitinng. i can't run AS and emu at the same time Jan 02 23:23:11 Is it correct to create a progressring before doing the intent? Jan 02 23:23:15 i can but its slower than molasses Jan 02 23:23:34 Because I can't really see the ring turning once I click the button Jan 02 23:23:35 shit, mac says service battery :( :( Jan 02 23:23:57 Maybe that's beacause all the processing power is being consumed? Jan 02 23:25:29 hey Napalm Jan 02 23:26:09 hey g00s Jan 02 23:26:43 hey fellas, if I wanted to send a text message from a standalone C program compiled with the NDK, what libs would I be lookin at? Jan 02 23:27:28 I'm looking to make an ncurses based text messaging program Jan 02 23:27:57 not sure if it's possible ha Jan 02 23:28:10 wechat :D Jan 02 23:28:29 fuuuuu , this is wrong. getting GATT_INSUFFICIENT_AUTHENTICATION with a bonded device not having authentication or encryption Jan 02 23:29:12 raypulver: No real reason why you cant call http://developer.android.com/reference/android/telephony/SmsManager.html#sendTextMessage%28java.lang.String,%20java.lang.String,%20java.lang.String,%20android.app.PendingIntent,%20android.app.PendingIntent%29 Jan 02 23:31:51 Napalm: so I can bring up intents from a C program? Jan 02 23:32:01 Does a contact picker NEED "android.permission.READ_CONTACTS"? Jan 02 23:32:14 Agamemnus try it ? Jan 02 23:32:18 Seemingly it doesn't but I'm not sure if I just messed up somewhere Jan 02 23:32:32 I intend to run it solely from Android Terminal Emulator Jan 02 23:32:44 as root Jan 02 23:32:53 does it? do you know? Jan 02 23:33:30 what header would I be including for this? Jan 02 23:33:34 jni.h? Jan 02 23:33:35 what is "contact picker" Jan 02 23:33:55 if all you're doing is firing an intent then no, you don't need any permissions Jan 02 23:34:01 like this http://stackoverflow.com/questions/18559574/android-contact-picker-with-only-phone-numbers Jan 02 23:34:31 you might need it to read the resulting contact Jan 02 23:34:39 raypulver: just use JNI yea Jan 02 23:34:42 ok trying this again. changed to x86 as a nexus 5 (closest to my Galaxy S5 Active it seems like) Jan 02 23:35:41 ok, thanks Jan 02 23:36:01 i don't think i need it although not 100% sure Jan 02 23:36:02 s73v3r: I think this is it: https://android.googlesource.com/platform/frameworks/base/+/master/policy/src/com/android/internal/policy/impl/PhoneWindow.java#362 Jan 02 23:36:08 i uninstalled, reinstalled without. works Jan 02 23:38:29 ok, can you shut down the emulators from within the emulator? doesn't seem to respond to clicking on the skin buttons so cant click and hold to select shutdown Jan 02 23:39:11 or is it just stop the Run from within the IDE? Jan 02 23:40:05 hey Jan 02 23:41:11 anybody know how do i get language files for voice reconigtion ? Jan 02 23:51:27 BTW, this is really cool if you like reddit: http://redditlist.com/ Jan 03 00:04:13 any Retrofit users present who may be able to explain this error? http://pastie.org/private/yjaseyokgucwzfeq9y5dig Jan 03 00:04:39 you are using mismatched OkHttp dependencies Jan 03 00:04:44 ooh Jan 03 00:04:59 ensure okhttp and okhttp-urlconnection are both pointing at 2.2.0 Jan 03 00:05:47 also, do not do not do not create a RestAdapter on every call! Jan 03 00:06:00 should that be a singleton? Jan 03 00:06:05 yes Jan 03 00:06:16 so should the result of calling create() Jan 03 00:06:22 awesome ok Jan 03 00:06:26 damn jake, you are on a roll Jan 03 00:06:29 make an IRestService once and use it everywhere Jan 03 00:06:47 will do, and that was it! thanks Jan 03 00:11:29 tnzr: how would that code work? network operation in ui thread Jan 03 00:12:57 he's using async invocation Jan 03 00:13:10 note the Callback Jan 03 00:13:33 never used that. does it use rx? Jan 03 00:15:47 it can Jan 03 00:16:00 you would return an Observable> in that case Jan 03 00:16:27 gdrc: if you want a crash course see https://speakerdeck.com/jakewharton/2014-1, video linked in description Jan 03 00:16:47 dumb question: what's rx? Jan 03 00:16:59 oh RxJava Jan 03 00:17:00 I already saw that video Jan 03 00:18:18 Retrofit is very old. Pre-dates RxJava by a few years. So v1 is all Executor-based. Jan 03 00:18:30 The RxJava support is very bashed in right now Jan 03 00:19:29 this is interesting Jan 03 00:19:30 v2 will be all async internally Jan 03 00:19:57 new version of okhttp as well? Jan 03 00:20:09 okhttp is already fully async internally Jan 03 00:20:19 well, that's kind of a lie Jan 03 00:20:48 the public API runs through fully async pathways Jan 03 00:21:11 ultimately it blocks on socket reads but if you are using SPDY/3 or HTTP/2 those blocking threads are hidden Jan 03 00:21:56 but Retrofit v2's async will push threading into OkHttp's async so that it can manage an efficient number of connections per-host, per-SPDY/HTTP2 stream, etc. Jan 03 00:23:50 JakeWharton: what do you think about using retrolambda in production apps? Jan 03 00:24:21 the value proposition of syntactic lambas and method references is not high enough that I would subject my build to bytecode weaving Jan 03 00:24:45 as far as using it in production apps, i'm sure it's fine Jan 03 00:25:56 hoping in java 8 in the next android release Jan 03 00:25:59 Hi everybody Jan 03 00:26:28 you all still on Java 6 while Androiding, yea? Jan 03 00:26:36 I have a question concerning AndroidManifest the android:name attribute in the is it possible to have multiple names ? Jan 03 00:27:23 Odaym: ask google Jan 03 00:27:42 google isn't really a human being Jan 03 00:27:50 it accepts different kinds of questions Jan 03 00:28:01 like "what's the latest version of Java" Jan 03 00:28:12 How can one draw nothing to the canvas in a custom implementation of a View's onDraw? When I do this, the view just retains the state of the previous canvas. Jan 03 00:28:24 Odaym: it's Java 6.5 Jan 03 00:28:29 unlike "are Android developers using the latest version of Java or are they still using Java 6?" Jan 03 00:28:36 ok, yea same Jan 03 00:28:36 there's some 7 language features and some APIs but not all Jan 03 00:29:44 I mean I have already android:name="com.orm.SugarApp" in my tag and I'd like to add a new name without remove that one but I don't know how to do that Jan 03 00:30:02 wathek: you can only have one application Jan 03 00:30:15 bro Jan 03 00:30:23 we heard you like applications, so we put an application in your application Jan 03 00:30:25 ok Jan 03 00:30:32 if you are using Sugar you can subclass it in your own application class and then use that for the name="" Jan 03 00:30:33 Odaym question about your BLE project, did your device use authentication or encryption ? Jan 03 00:30:34 JakeWharton, ok my problem is that I wanted to have the ApplicationContext accessible from everywhere in my app Jan 03 00:30:43 encryption Jan 03 00:30:46 so pass it around Jan 03 00:30:57 the devices are stamped with a serial number at the factory Jan 03 00:31:36 Odaym did you manually bond to the device using BluetoothDevice.createBond() or try to read a characteristic and get insufficient_encryption ? Jan 03 00:32:03 we read the characteristic and from it get the serial, do things to it, compare it with other things, etc. Jan 03 00:32:20 Odaym ok, did you do service discovery each time you connected ? Jan 03 00:32:25 yea Jan 03 00:32:40 hmm. did the framework appear to be caching that ? Jan 03 00:33:02 it never gets faster if that's what you mean Jan 03 00:33:07 ha Jan 03 00:33:10 yeah thats what i mean :D Jan 03 00:33:19 and in rare cases, sometimes in the past I used to see it not see any services or anything, jsut would go dead Jan 03 00:33:22 JakeWharton, hmm I'm not sure to able to do that because I'm using a SugarORM class Jan 03 00:33:31 even with Google's BLE sample app, it would go dead, you'd need to restart bluetooth on your phone Jan 03 00:33:42 which have a special structure Jan 03 00:33:44 wathek: extends Application and use it as singleton Jan 03 00:33:51 Odaym fffuuu Jan 03 00:33:54 yea Jan 03 00:34:05 Odaym did you ever have BLE knock out wifi ? Jan 03 00:34:38 I've heard of that happening but never went out to catch it Jan 03 00:34:55 it might've been happening without me noticing it Jan 03 00:34:56 gdrc, let me try that :) Jan 03 00:35:39 Odaym ok thanks Jan 03 00:37:10 wathek: like this https://ideone.com/iubBBZ Jan 03 00:39:44 Odaym oh one last question, whats the difference between BluetoothAdapter.getDefaultAdapter() ... and BluetoothManager.getAdapter() ... i thought they added the latter in case there were multiple adapters, but doesn't look like you have the ability to even select them Jan 03 00:40:12 i'm still using the older method .getDefaultAdapter() Jan 03 00:41:00 gdrc, yep I know how to create a singleton ;) Jan 03 00:41:03 I do getAdapter Jan 03 00:41:16 gdrc, thanks Jan 03 00:41:26 np Jan 03 00:41:33 dont knwo the difference honestly Jan 03 00:41:57 but the google code used getAdapter, so I did too Jan 03 00:42:09 it would be one thing if there was a .getAdapters() that returned a list or something Jan 03 00:42:11 yeah Jan 03 00:53:28 Odaym what were your biggest pain points between devices / incompatibility wise ? Jan 03 00:53:49 i dont have enough devices to test on, i'm just reading about bugs and anticipating them in my code :| Jan 03 00:54:01 Samsung. Jan 03 00:54:21 actually the samsung devices seem to behave better than nexus from what i've read so far Jan 03 00:54:23 never had any issues with BLE when going to different devices, the biggest issue was the pending command bug that dictated how we treated BLE on Android from when it was discovered Jan 03 00:54:44 oh, yeah you mean queueing them up or something Jan 03 00:54:50 yea Jan 03 00:55:11 Samsung once had a problem with not initializing BLE correctly, so I sent off that operation to Handler to do it on the main thread Jan 03 00:55:21 it was a shot in the dark but it never complained after that Jan 03 00:55:26 wtf O.o Jan 03 00:55:31 I have a vivo smart wich doesn't work well with my moto g Jan 03 00:55:56 well they have to have a good BLE chip too :P Jan 03 00:56:01 I test on Moto G daily Jan 03 00:56:14 Odaym personal or dev device ? Jan 03 00:56:18 dev Jan 03 00:56:21 personal is Nexus 5 Jan 03 00:56:39 you recommend getting a G for BLE dev / testing ? Jan 03 00:56:40 the BLE chip is the most costly in the production by the way Jan 03 00:56:44 3 - 4$ Jan 03 00:57:03 www.garmin.com/ble Jan 03 00:57:07 yea definitely, moto g is really good Jan 03 00:57:13 well they all are, I dont know Jan 03 00:57:34 you should see Nordic's chips :) Jan 03 00:57:50 yeah Jan 03 00:58:34 Odaym can you explain this initialization the the main thread thing ? Jan 03 00:59:07 the code that says .connect Jan 03 00:59:22 Samsung I've seen a lot of issues. Keyboard, attribues, MenuBuilder, etc.. Jan 03 00:59:29 you do it in the OK result of a scan, by doing just .connect there Jan 03 00:59:40 instead, say handler.sendEmptyMessage(CONNECT) and do it from there Jan 03 01:00:03 umm Jan 03 01:00:20 that sucks if its still a problem, my BLE state machine is running on a dedicated thread Jan 03 01:00:54 yea but it must be able to talk to the main thread after all Jan 03 01:01:02 so that you can do things when you've connected, for example Jan 03 01:01:15 oh yeah, no ptoblems there. i am amking an rxjava wrapper around the api Jan 03 01:01:29 yea probably not going to happen with you Jan 03 01:01:50 the way I did it was like 9 months ago, and maybe if I go over it now things would be a lot different Jan 03 01:02:10 i see Jan 03 01:03:38 i was writing a custom rxjava scheduler to put all the ble-rx stuff on, it just made sure they were called serially and blocking for the next to complete Jan 03 01:04:16 allrighty then Jan 03 01:09:57 rx ftw Jan 03 01:12:43 hey guys, anybody ever tried doing a scene transition in a view with a adapter (recyclerview, listview) etc? Jan 03 01:13:15 it's my understanding you need to have your transition name ready after onCreate Jan 03 01:13:34 but views with adapters don't seem to render directly on setAdapter Jan 03 01:14:21 so exit transitions are going fine but the enter transition is not happening because the adapter hasn't filled the view yet.. :( Jan 03 01:18:52 shiiiiiiiitttttttt Jan 03 01:18:56 you do need that permission Jan 03 01:19:31 g00s, JakeWharton: I was emailing myself, so I didn't need the permission. But to email anyone else, I do. Jan 03 01:19:39 It's a gotcha. Geez, I thought you were experts Jan 03 01:19:51 i have no idea what you are talking about Jan 03 01:20:04 why? because we all sit in a channel for android development so everyone in here is an expert? Jan 03 01:20:49 ddd: good point Jan 03 01:21:20 experts? they're on stackoverflow running their pentium cores on india Jan 03 01:21:50 JakeWharton: the contacts picker/chooser. Jan 03 01:21:59 hehe Jan 03 01:22:06 i told you the permission was needed Jan 03 01:22:15 No you said some technical junk Jan 03 01:22:27 which was the answer to your question Jan 03 01:22:35 But it's not needed if you message yourself, see Jan 03 01:22:44 It seemed like it was not needed Jan 03 01:22:45 so? Jan 03 01:22:54 so, I had a false positive Jan 03 01:23:02 gobbly gook Jan 03 01:23:13 you also had a sample size of 1 Jan 03 01:23:29 I don't like this. Jan 03 01:23:42 Why do I need this permission? It's the user who's getting the contact, not me. Jan 03 01:23:45 It feels stupid Jan 03 01:23:55 no, the user is picking a Uri for a contact Jan 03 01:23:59 you are reading the Uri Jan 03 01:24:22 is there some way to use the picker/chooser to just send the email instead of the URI? Jan 03 01:24:43 any ideas? Jan 03 01:25:30 or is it silly Jan 03 01:26:17 hmm, I need to read and pick a contact. that's protected by READ_CONTACTS permission. I'm the originator so I already have it, but I wonder why others can't when they don't. Jan 03 01:26:20 makes sense to me Jan 03 01:28:25 I'm not sure whether to show "next comment" / "prev comment" kinda buttons in comment listings for this reddit app. Jan 03 01:28:45 Comment listings are hard to navigate even with collapsing sometimes. But buttons are annoyingly in-the-way. Jan 03 01:29:25 I don't like the idea of swiping gestures, to be honest. Jan 03 01:30:03 ddd, that does make sense Jan 03 01:30:17 but why is it protected by the READ_CONTACTS permission? Jan 03 01:30:33 The program isn't reading the contacts, really. It's reading a contact picked by the user. Jan 03 01:30:34 Hmm. I guess a comment could have a "collapse entire tree/thread" context option. Jan 03 01:30:46 Is there something I am missing here? Jan 03 01:31:17 Or "jump to parent" or something. Jan 03 01:31:25 no, the user is picking a Uri for a contact Jan 03 01:31:35 you are reading the Uri Jan 03 01:32:01 never mind Jan 03 01:32:03 Hey, I've rooted my Nexus 9...I can run "su" from the adb shell, but i still can't use GDB because it says "adbd cannot run as root in production builds". Any ideas? Jan 03 01:32:06 i found something on stack overflow Jan 03 01:32:53 cjserio: try #android-root Jan 03 01:33:08 Ok SimonVT Jan 03 01:51:14 Agamemnus why does a jigsaw need access to contacts :P Jan 03 01:53:52 Is it just me Jan 03 01:54:00 or do TransitionDrawables have exactly double the opacity on lollipop Jan 03 01:54:10 when an alpha value is set Jan 03 01:55:24 here's my layout: http://i.imgur.com/K3Ta8ta.png Jan 03 01:55:33 on pre-lollipop, 0.3 is decent opacity Jan 03 01:55:45 on lollipop, I need to set the alpha to 0.15 to get it to look exactly the same as pre-lollipop Jan 03 01:55:57 running on a physical nexus 5 and moto g Jan 03 01:56:05 so not emulator issue Jan 03 01:59:48 hm. my project minSdk=18, targetSdk=21 ... but AS is saying Call requires API level 18 (Current is 16) Jan 03 02:00:01 project's AndroidManifest.xml Jan 03 02:00:22 what could be causing that ? Jan 03 02:00:30 gradle Jan 03 02:00:51 its not set in gradle. if it were, it would override but ... Jan 03 02:01:23 g00s: is it set in the manifest? I'm under the impression that those are ignored (because they're always overwritten) Jan 03 02:01:41 groxx yeah i only have it set in the AndroidManifest.xml Jan 03 02:01:57 g00s: yeah, remove it, and put it in gradle. ya gotta. Jan 03 02:02:05 wut really ? Jan 03 02:02:12 * myke makes a note Jan 03 02:02:18 there should be a warning that it's ignored, so yeah. Jan 03 02:02:19 groxx did that change ? Jan 03 02:02:41 g00s: I don't remember :\ Jan 03 02:03:07 seems like a bad design...why does it overwrite anything in the manifest? Jan 03 02:03:25 because lots of stuff is added / modified in the manifest in the new build tools Jan 03 02:03:34 doesn't AS tell you this? it's highlighted in IJ saying it'll be overwritten Jan 03 02:03:46 which lets e.g. maven resources add their own tags without you having to do it by hand Jan 03 02:04:02 also it makes multiple build flavors with different manifests WAY more rational than it was in Eclipse Jan 03 02:04:34 ok those are actually good arguments :/ Jan 03 02:05:42 ah shit, i see my mistake, i inherited the parent projects minSdk which overrrides my manifest minSdk Jan 03 02:06:51 not getting the new year started on a good note :( Jan 03 02:54:36 anybody who knows chromecast development? Jan 03 02:55:17 I'm reading through the docs but I'm not sure how these peices fit together **** ENDING LOGGING AT Sat Jan 03 02:59:59 2015