**** BEGIN LOGGING AT Sat Jun 14 02:59:58 2014 Jun 14 03:02:10 DallasG I'm trying to use OkHttp and apparently it depends on Okio. I've added Okio, but still get "java.lang.NoClassDefFoundError: com.squareup.okhttp.internal.http.RetryableSink" Jun 14 03:02:34 I'd avoid using the RC Jun 14 03:02:40 Why? Jun 14 03:03:01 because it's an RC Jun 14 03:03:12 It's stable though... Jun 14 03:03:19 Which means it could be promoted to a proper release. Jun 14 03:03:35 I suppose it could Jun 14 03:03:36 And if you avoid it, you'll never know if it works or not. Jun 14 03:03:45 JakeWharton since you're here, could you assist? :) Jun 14 03:03:59 So you'll defer any problems and cause us problems having to fix things post release! Jun 14 03:04:22 I've added both jars and clicked to "add as library", but no dice. Jun 14 03:05:00 Don't think you've added them properly then Jun 14 03:05:04 I'd say I don't tend to use bleeding edge, but that's not really true… but generally I personally wouldn't use something that's an RC for my company's released product Jun 14 03:05:48 JakeWharton what am I doing wrong? Jun 14 03:05:57 I have no idea Jun 14 03:06:11 "Failed resolving Lcom/squareup/okhttp/internal/http/RetryableSink; interface 980 'Lokio/Sink;'" Jun 14 03:06:19 is clicking to add both as a lib the correct way? Jun 14 03:06:27 Well there's your answer, Okio wasn't included. Jun 14 03:07:06 I have them both in my deps: http://take.ms/rvm6f Jun 14 03:10:07 what does your build.gradle look like? Jun 14 03:10:23 lemme check. last time i did android dev, i wasnt using grale Jun 14 03:10:25 gradle* Jun 14 03:10:29 been a couple years :) Jun 14 03:11:05 you don't need to add each lib, btw, it looks like you're already including all *.jar from libs/ Jun 14 03:11:11 DallasG: http://take.ms/oTK0s Jun 14 03:11:30 DallasG yeah you're right I see fileTree(dir: 'libs'...) Jun 14 03:11:31 I don't use the GUI, so not 100% on how it works Jun 14 03:12:59 try removing the two .jar lines Jun 14 03:13:06 and then run Tools > Android > Sync… Jun 14 03:13:11 and then run Jun 14 03:13:30 I'm not sure off-hand how gradle might handle those duplicates anyhow Jun 14 03:14:14 DallasG looks like sync did the trick there. Thansk Jun 14 03:15:21 I don't know what might be the 'best practice' but I prefer to manually list each dep (instead of a filetree) as it makes the dep list more transparent Jun 14 03:16:48 per chance, did you happen to notice something like this at the top of your IDE? https://www.dropbox.com/s/yg9gt6c1tg769eg/Screenshot%202014-06-13%2023.16.28.png Jun 14 03:16:48 yeah that makes sense Jun 14 03:16:59 seems weird to me that AS wouldn't auto-sync using that GUI… Jun 14 03:17:00 nope, never saw that Jun 14 03:18:14 If you're using Gradle don't download jars! Jun 14 03:18:46 [unless you have to] Jun 14 03:18:54 hmm, this is a brand new project and getting exceptions about inflating xml files Jun 14 03:18:55 Well, yeah Jun 14 03:18:57 lol Jun 14 03:19:01 But we ship to central Jun 14 03:19:10 …and thanks for that Jun 14 03:19:18 oh right, i can use the maven artifact? Jun 14 03:19:33 Yeah. And it will resolve the transitive dependency for you. Jun 14 03:23:00 This the right way to do it? http://take.ms/Nr8AC Jun 14 03:23:09 oh i didnt need to add okio if i use gradle? Jun 14 03:25:05 right Jun 14 03:25:32 hmm, still NoClassDefFoundError Jun 14 03:25:34 yes, but i'd use the shorter syntax like the support library Jun 14 03:26:11 so theres two build.gradle files, which one am i supposed to be adding this to? Jun 14 03:26:56 why is my icon showing up as just the android guy? Jun 14 03:27:08 is it because I haven't signed my app? Jun 14 03:28:21 well, this sucks... Jun 14 03:30:39 LuxuryMode: the one for the app Jun 14 03:30:49 the one that has apply plugin: 'android' Jun 14 03:30:59 JakeWharton thanks. thats the one i did Jun 14 03:31:14 still getting that error. Any ideas on what else might be wrong? Jun 14 03:43:29 hello how could i go about deserializing a javascript object in java android ….. &data1=stuff&data2=stuffmore (not just parsing it on & but actual functions/libriaies used... Jun 14 04:09:54 jaspertheghost: what you've describe there are GET vars, nothing related to js or json Jun 14 04:10:52 JSON.stringify($(“form1”).serializeArray()) Jun 14 04:11:29 .serialize returns GET var type … the above lets me convert it the way i want too Jun 14 05:10:23 Leeds you around ? Jun 14 05:15:34 not for a WP user >:) Jun 14 05:16:33 ah Rust, yet another language to learn ;) Jun 14 05:17:16 lol, i thought he might have a suggestion for a good linux live cd. is knoppix still the bees knees ? Jun 14 05:18:06 hasn't been updated in a while Jun 14 05:24:02 capella the more i play with WP i notice missing features, but i bet a lot have been fixed in 8.1 Jun 14 05:24:23 i find its simplicity alluring though Jun 14 05:24:45 but, the clock app doesn't have a stopwatch or timer, for example … ugh Jun 14 05:25:21 there's a conflict with a servo lib and the x11/extensions .... but I don't see that I have glfw packages installed? Jun 14 05:25:24 craps Jun 14 05:25:35 I have been stuck on this problem for 2 days, and I still cannot solve my alarmmanger problem, I made post on stackoverflow http://stackoverflow.com/questions/24196890/android-schedule-task-to-execute-at-specific-time-daily and the guy who was helping me, I tried the piece of code he suggests, and I still cannot get it to work Jun 14 05:25:38 please help D: Jun 14 05:26:07 and I meant .header not lib :D Jun 14 05:50:38 well Servo for Android can build, package, install and run ... but there's a bug and I can't get it to hit the network !? Guess Chrome can relax :( Jun 14 07:18:22 I still can’t get over the testing stuff. Jun 14 07:18:38 Android is allergic to testing. Jun 14 07:18:57 Or at least allergic to its own testing. Jun 14 07:24:56 I don’t understand why Google doesn’t seem to give a shit about that. Jun 14 07:28:14 why is it allergic to testing? Jun 14 07:31:26 altcp: Have you ever tried testing anything on Android? Jun 14 07:32:05 I'm a beginner dev, a complaint I could make is that it's kinda hard to debug (more specifically, to see which line caused an error..) Jun 14 07:32:20 (using eclipse) Jun 14 07:32:29 Don’t use eclipse. Jun 14 07:32:38 what's the alternative? Jun 14 07:32:46 Anything. Jun 14 07:32:56 But the best one probably is IntelliJ Jun 14 07:33:22 best is to learn how to use and read logcat Jun 14 07:34:10 idd, most of the time I got the error out of that ;) Jun 14 07:34:20 marrrk: is that 100% free? Jun 14 07:34:28 Community Edition is. Jun 14 07:34:56 Has anybody tried Robospock? robospock.org ? Jun 14 07:35:14 ok thanks I'll look into it Jun 14 07:35:51 altcp: if your app crashes from an exception, the stacktrace in logcat tells you exact line #, so you just aren't utilizing your tools correctly Jun 14 07:36:41 I'd think so too, but sometimes I can't find any indiciation of my own code Jun 14 07:37:12 then i'm pretty sure using a different IDE won't help that. you have to learn debugging Jun 14 07:37:16 might be because I haven't looked hard enough.. :p Jun 14 07:37:55 logcat viewed on eclipse or anyother IDE will have the exact same outputs, unless you set flags to logcat Jun 14 07:38:00 Well the IDE will help with that since any line that stems from your code will be a hyperlink into your code, thus blue and easier to see. Jun 14 07:38:27 well the reason this conversation started is because testing would be hard.. Jun 14 07:38:29 or just learn to read logcat and not rely so heavy on blue Jun 14 07:38:49 you can filter etc...it's totally customizable to view logcat Jun 14 07:39:41 per process, per v/i/e/d/etc...can filter everything, or view everything. it's all there :/ but if it all looks like a garbled mess, then you need to learn the output of logcat Jun 14 07:40:41 altcp: What helps a great deal usually if you have a crash is to filter the logcat output to only display log level Error and above. Jun 14 07:41:32 or you can set it to filter only errors/logs associated with your app package etc... Jun 14 07:41:41 Yeah, that would be the next step. Jun 14 07:41:45 I see.. thanks for the help Jun 14 07:42:03 I suppose I've been 'spoiled' by visual studio regarding debugging :P Jun 14 07:42:26 You can do the same kind of debugging in IntelliJ, I think. Jun 14 07:42:37 If what you mean is setting breakpoints and stepping through your code. Jun 14 07:43:13 Probably also can in Eclipse. Jun 14 07:43:15 breakpoints isn't a problem in eclipse afaik Jun 14 07:43:30 Everything is a problem in Eclipse, just look at it. Jun 14 07:43:31 I agree Eclipse can be a pain in the ass, i've moved on awhile ago from it, but for your complaint about it it isn't necessarily related to Eclipse as much as not understanding Logcat. But maybe check out Android Studio, i've had WAY less errors with it Jun 14 07:44:00 Android Studio is just a stripped down, green version of Intellij. Jun 14 07:55:31 canvs2321: Can you actually help me to get any logcat output when running a test? Jun 14 07:58:24 Ah, now it works. Jun 14 07:58:27 weird. Jun 14 08:30:45 What kind of code is this `public class ListViewLoader extends ListActivity implements LoaderManager.LoaderCallbacks {` - I'm specifically referring to `` Jun 14 08:32:33 generics. Jun 14 08:36:42 will google that, thanks Jun 14 08:57:38 So is it still necessary to have two xml blocks in the manifest for instrumentation tests? Jun 14 09:29:10 what do you use guys to see the your app database? adb push its a long process Jun 14 09:30:16 gdrc: Why not pull? Jun 14 09:32:48 yes pull, my mistake Jun 14 09:33:08 is not a tool that automatize that? Jun 14 09:35:43 gdrc: Probably only if your device is rooted Jun 14 09:36:10 From what I understand, the place where the sqlite file is stored is not accessible from the outside. Jun 14 09:36:18 But is pull actually really so bad? Jun 14 09:36:23 What OS are you on? Jun 14 09:41:22 The testing is hard. Jun 14 09:47:18 Where exactly should I (un)register BroadcastReceivers in fragments? Jun 14 09:59:15 marrrk, note 10.1 2k14 Jun 14 09:59:21 i cant root it Jun 14 10:00:18 I mean couldn’t you just make a little script that just contains „adb pull /data/data…db.sqlite/ .“ ? Jun 14 10:01:26 gdrc Jun 14 10:03:32 yes that's what I'll will do probably Jun 14 10:05:01 marrrk, do you ever used play store private channel? Jun 14 10:05:20 No I haven’t. Jun 14 10:07:39 I have to distribute my app to 50 people ( 50 note 10.1 ). I'm looking for a way to install the app and guarantee updates. the fastest way is the URL to the raw apk for first instal Jun 14 10:07:47 lation Jun 14 10:10:26 any idea on when Nexus 6 comes out this year? I’m contemplating waiting Jun 14 10:12:30 gdrc: Why don’t you just put it on the play store? Jun 14 10:13:35 marrrk, che updates are not immediate and I dont want other people can download my app Jun 14 10:14:21 Yeah, I don’t know then. Jun 14 10:17:16 hi there. has someone tried to work with "OUTPUT_FORMAT_RTP_AVP" aka 7 with mediarecorder? Jun 14 10:17:27 i found this thread: Jun 14 10:17:27 http://stackoverflow.com/questions/13754806/possibility-of-a-rtsp-server-on-a-android-device Jun 14 10:17:49 and I've tried to figure out how this works Jun 14 10:20:12 but i failed to figure out how to control / start streaming Jun 14 10:20:39 he mentioned to setpro streaming.ip and streaming.port... i didn't find those properties Jun 14 10:27:35 Do you know maybe what is the format of image in method onPictureTaken(byte[] data,Camera camera) ? Jun 14 10:27:38 anybody willing to help? Jun 14 10:27:55 i also tried to find that property via adb root shell Jun 14 10:28:14 getprop didn't list something like streaming.ip Jun 14 10:43:48 any of you guys active? i got a question Jun 14 10:44:27 TIP: If you ever get NullPointerException, maybe sure you are not referring to an object that is null!!! Jun 14 10:44:35 *make Jun 14 10:45:01 took me like 4 hours to figure this out last nite Jun 14 10:45:05 hope it helps someone else Jun 14 10:45:15 So I'm making my own button styles. I've created a style just for buttons and set on the main apptheme to it. Everything is going fine, but I don't have any "pressed" styling capabilities it seems. Do I have to change the button to pressed programmatically is there some better way to change the style for pressed buttons? Jun 14 10:45:17 but it says in the name of the exception thats the problem Jun 14 10:45:23 nullpointerexception Jun 14 10:45:29 pretty obvious what the issue is Jun 14 10:45:37 LighterFluid: hmmm, interesting point Jun 14 10:45:45 LighterFluid: wish I had noticed that earlier! Jun 14 10:46:03 thinking usually works well Jun 14 10:46:11 I'm using gradle assembleRelease and it says: Error:Execution failed for task ':app:packageRelease'. Jun 14 10:46:11 > Failed to read key mykey from store "C:\Users\Yoav\Documents\pazam-android\pazam.keystore": Keystore was tampered with, or password was incorrect Jun 14 10:46:28 here's a tip from me Jun 14 10:46:31 here's another: Jun 14 10:46:32 when you get an error message, just google it Jun 14 10:46:35 TIP: If you ever get java.util.ConcurrentModificationException, make sure you do not modify same thing in multiple threads! Jun 14 10:46:45 chances are, someone else has encountered it before and a solution has been found Jun 14 10:46:47 I checked the pass using keytool and the pass if fine Jun 14 10:47:19 i seriously need help getting a livestream from device a's camera to device b. Jun 14 10:48:09 i manually set the property streaming.ip in the meantime... but this didn't helü Jun 14 10:48:10 p Jun 14 10:48:36 everyone needs help, but no one seems to be offering any Jun 14 10:48:43 :) Jun 14 10:48:43 what happened to my internet? Jun 14 10:48:50 back in the day, everyone was willing to help out Jun 14 10:48:50 i would help if i could ;) Jun 14 10:48:55 when forums were a thing Jun 14 10:49:10 nowdays you cant find help online, people just dont care Jun 14 10:49:19 culture in decline if you ask me Jun 14 10:49:29 thats no true... but you need to search harder ;) Jun 14 10:49:37 IRC has always been a toilet Jun 14 10:49:44 this is a particularly nice place Jun 14 10:50:03 im not referring to IRC Jun 14 10:50:10 oh ok Jun 14 10:50:30 just seems as though people are far less inclined to offer help nowdays Jun 14 10:50:38 stackoverflow is more helpful than any forum ever was Jun 14 10:50:50 <-crying Jun 14 10:50:57 ^^ Jun 14 10:50:59 yeah, but you cant open a thread for every dumb question you have Jun 14 10:51:03 and i have so many dumb questions Jun 14 10:51:17 ahh Jun 14 10:51:26 ^^ Jun 14 10:51:29 dumb questions are obsolete though Jun 14 10:51:35 thats what i hate about programming, i get high and envision what the app will look like and in my head is so simple and functional Jun 14 10:51:35 with the invention of Google Jun 14 10:51:51 but then you gotta deal with all these little things that end up putting me off from doing anything Jun 14 10:52:21 all programmers deal with that, patience is a virtue Jun 14 10:52:37 yeah, i know, thats when i realized that i might not be suited for this profession Jun 14 10:53:10 * flan3002 wants to know what the conversation was about. Jun 14 10:53:23 so many things... Jun 14 10:53:49 we tackled some serious issues human face during their lifespan Jun 14 10:54:06 Sounds interesting! Jun 14 10:54:19 at this point, it sounds repetitive to me Jun 14 10:55:17 LighterFluid android in particular has been 1 question mark after the next, sometimes issues go on for days or even weeks Jun 14 10:55:25 you stay committed, you work it out, you move on Jun 14 10:55:28 patience Jun 14 10:55:41 how can I update the build tool? Jun 14 10:55:42 im aware of this Jun 14 10:55:54 its just that im arrogant enough to convince myself that i'd be better off doing something else Jun 14 10:56:45 LighterFluid: Something else as in 'not programming' or something else as in 'not Android'? Jun 14 10:56:55 not programming Jun 14 10:57:04 i might end up a poker player Jun 14 10:57:45 The question must be where you end up one year after you became a poker player. Jun 14 10:58:23 at higher limits, hopefully Jun 14 10:58:29 making more cash than i did last year Jun 14 10:58:44 So it's only about money for you? O.o Jun 14 10:58:53 no, its about enjoying what i do Jun 14 10:59:39 So, you don't enjoy programming... Jun 14 10:59:51 That makes me wonder how Jun 14 11:00:03 MinApi:19 . I love it :D Jun 14 11:00:28 That makes me wonder how long you've been doing it and what you don't like about it specifically. Jun 14 11:00:37 well right now i have this issue and i dont know where to turn to Jun 14 11:00:42 i dont like being stuck constantly Jun 14 11:01:12 Oh, I had lots of issues. Sometimes I gave up and did something else and later came back to the issue. Jun 14 11:01:51 And there are always areas where nobody did something before and which you got to explore... Jun 14 11:02:10 But I don't know about the nature of your issue, so I can't really tell something about it. Jun 14 11:02:22 alright, ill try to put it into words Jun 14 11:02:26 pour my heart out Jun 14 11:02:40 Maybe just the topic? Jun 14 11:02:43 this is the main issue im having, the one im having right now Jun 14 11:02:48 i want to do something Jun 14 11:02:50 but i dont know how Jun 14 11:02:58 and i dont know who to consult Jun 14 11:03:09 Well, what do you want to do? Jun 14 11:03:29 i got a listview and i want to register onclicklistener to every item Jun 14 11:03:36 listview with arrayadapter Jun 14 11:03:43 And that's not working? Jun 14 11:03:52 i dont know how to do it Jun 14 11:04:05 what is the object to which im supposed to register the event Jun 14 11:04:16 its not the listview, it's its children Jun 14 11:04:17 the items Jun 14 11:04:22 but how do i access them? Jun 14 11:04:54 Have you googled that? Jun 14 11:05:05 honestly, no Jun 14 11:05:51 and i just found a solution Jun 14 11:05:53 You should have. There are tons of examples on the internet about such basic stuff. On StackOverflow, on GitHub, everywhere. Jun 14 11:05:56 the fuck is wrong with me Jun 14 11:05:59 Hey guys Jun 14 11:06:15 hey guy Jun 14 11:06:38 How exactly would I create an image which could be used as the background for all different android screen resolutions and sizes Jun 14 11:06:47 Surely they'd look different on every size Jun 14 11:07:05 as far as i know, you cant use the same one Jun 14 11:07:14 you got those folders in resources Jun 14 11:07:26 ldpi, mdpi, hdpi... Jun 14 11:07:32 make one for each, i think thats how its done Jun 14 11:07:43 but im not quite sure Jun 14 11:07:50 So, I'd create the same image, simply with different PPI? Jun 14 11:08:19 You can use one image that has a high resolution and use that for every density. It will work, but if you downscale it beforehand, it has the chance to look better than when Android downscales it. Jun 14 11:08:21 basically, yes Jun 14 11:08:37 Hello, is there any relationship between surfaceflinger sending signal to boot animation to stop, and launching Home screen ? Jun 14 11:08:38 what flan says Jun 14 11:09:05 Ok, in colors I've defined button_bg and button_bg_pressed, and I now have a selector in my drawables called "apptheme_buttons.xml" with a pressed and focused state set to button_bg_pressed, and an unfocused, unpressed set to button_bg. However my button's are showing button_bg color but not updating to pressed... Jun 14 11:09:17 Keestu: I know nothing about that stuff, but have you looked at the source? Jun 14 11:11:19 SinnerNyx: But you set the background of these buttons to that drawable, right? Jun 14 11:12:03 flan3002, yes, looking at the source code , but not getting the clarity. Jun 14 11:12:32 Keestu: Why do you need to know about it? Jun 14 11:13:30 i m understanding how the system works, so that i can reduce the boot time Jun 14 11:14:38 flan3002: correct. I know that works because changing the button_bg in color.xml changes the button color. Only the button_bg_pressed never gets set. Jun 14 11:15:11 SinnerNyx: Show me your drawable. Jun 14 11:15:46 Keestu: Seriously? Don't you think the AOSP engineers did a good a job about it? Are you working on your own ROM or why do you want this? Jun 14 11:15:48 flan3002, greeeeaaaatt. Just spent like 10 hours working on some graphics in 72ppi Jun 14 11:16:04 with the scaling with they look roughly the same, i.e whats shown on screen Jun 14 11:16:47 AllTuna: It's better if you downscale them, because it does make a difference if you got super detailed icons, but most of the time you'll get away just fine without them... Jun 14 11:16:59 Also, it saves some space for your .apk. Jun 14 11:17:43 How big should I be making these images Jun 14 11:17:45 flan3002, yes, i am working on board purchsed from http://www.e-consystems.com/ Jun 14 11:17:55 I meen, if I want a splash screen, how do I know the resolution Jun 14 11:18:05 flan3002 should I just paste it here? Jun 14 11:18:23 SinnerNyx: No! Please use gist or ix. Jun 14 11:18:29 * flan3002 prefers gist. Jun 14 11:18:59 flan3002, no doubt AOSP engineers did a good job only. But then, why not still learning it ? Jun 14 11:19:45 flan3002: https://gist.github.com/0sinner/ec8e5f561dc8d994cdec Jun 14 11:19:47 Well, why so? I can't/won't help you with that, but you're free to search for someone else... Jun 14 11:21:20 sorry to ask again, but still fighting with it: streaming video from one device to another via rtp using mediarecorder output format 7 (OUTPUT_FORMAT_RTP_AVP) Jun 14 11:21:46 somebody in here did that? Jun 14 11:22:23 AllTuna: Well, what about the highest solution you want to support? Of course, for a splashscreen you might get some serious issues if you try to load and downscale a 2560X1600 on a low-end device. Jun 14 11:23:58 Then how would I do it to support all resolutions Jun 14 11:25:35 AllTuna: We are speaking of a splash-screen? Jun 14 11:25:45 a splash screen, anything Jun 14 11:25:47 my whole app Jun 14 11:26:09 Is the goal not to support as many devices as possible? Jun 14 11:26:22 I dont want to not support high res screens Jun 14 11:27:17 SinnerNyx: I didn't find a mistake, tested it and it works... Jun 14 11:27:47 flan3002: Weird.. Does it make a difference that my minsdkversion is 8? Jun 14 11:28:03 AllTuna, maybe you will find your answer here http://petrnohejl.github.io/Android-Cheatsheet-For-Graphic-Designers/ Jun 14 11:28:09 SinnerNyx: My test layout file: