**** BEGIN LOGGING AT Fri Oct 17 03:00:00 2014 Oct 17 03:00:54 I believe they are just rendered bitmaps. (https://www.dropbox.com/s/9e4xquvydlnssy5/Screenshot_2014-10-16-22-28-03.png?dl=0) Oct 17 03:01:22 so if oyu can go into the code Oct 17 03:01:26 try and find how they are drawn Oct 17 03:01:39 then they will probably have some corresponding Rect object or position Oct 17 03:01:44 which you can use to build you mapping Oct 17 03:03:23 lasserix_ I have the apk, but I don't have the source code. Oct 17 03:03:54 ahh you're probably screwed then Oct 17 03:04:24 unless you decompile it etc etc Oct 17 03:04:54 lasserix_ Is there a way for me to emulate mouse press through mappings? Oct 17 03:05:06 I can always connect a mouse to the android device Oct 17 03:05:48 idk Oct 17 03:08:16 i just had a stupid issue with butterknife, I have a screen with a really simple UI and no injected views, but I had an @OnClick annotated method and it took me about 5 minutes to realize I forgot to call ButterKnife.inject(...) Oct 17 03:08:24 i suppose there's no helping that much stupidity Oct 17 03:08:28 since it's a compile-time annotation Oct 17 03:13:29 Is it possible to map a keycap key to a mouse press? Oct 17 03:17:17 JakeWharton on a scale of one to ಠ_ಠ how much do you disapprove of this to wrap my dependencies with spies in my test module? http://pastebin.com/361knXaD Oct 17 03:18:21 so all my other modules just return wrap(dependency) with a static import Oct 17 03:18:59 sounds like you are testing at the wrong level Oct 17 03:19:09 :\ why do you say that Oct 17 03:19:23 spying on everything seems excessive Oct 17 03:19:32 far too white box Oct 17 03:19:56 hmm, well so far i've used it for stuff like account manager, google auth helpers, etc Oct 17 03:20:07 i want to skip some background API calls Oct 17 03:20:10 that are irrelevant to my test Oct 17 03:20:13 without providing a whole mock API Oct 17 03:20:36 i don't know. i don't want to guess at what your implementation looks like Oct 17 03:20:54 but i was thinking, this use case for a static injection Oct 17 03:20:57 solely within the context of the module Oct 17 03:21:07 would not really be too terrible Oct 17 03:21:26 had never done it before, wanted to see how it would work, and it seems meh Oct 17 03:21:28 well, it works Oct 17 03:21:52 i just feel like every time i want to test something its so much work to add a new injection to my test module Oct 17 03:22:11 and i hate to maintain all these separate modules Oct 17 03:22:16 test, debug, release Oct 17 03:22:45 my concern with a mock service is that it will always return the same thing each time for each implementation Oct 17 03:22:54 and really i need to change it on a per-test basis Oct 17 03:23:09 i mean i probably won't spy on 60% of my injections Oct 17 03:23:26 but i'm weighing if the boilerplate elimination and convenience is worth the overhead Oct 17 03:24:30 sorry for spamming the chat, just talking out loud and hoping someone will tell me this is a terrible idea Oct 17 03:24:39 it's a terrible idea! Oct 17 03:24:43 its probably a terrible idea ! Oct 17 03:24:45 -.- Oct 17 03:24:52 tell me whyyyy Oct 17 03:25:39 its not really a dingleberry Oct 17 03:25:44 since my app wont depend on it, just my tests Oct 17 03:25:57 and its not like im investing time taking this shortcut, maybe i'm indebting myself Oct 17 03:29:16 should i use custom URI schemes http://stackoverflow.com/questions/15408110/how-to-use-intents-for-android-custom-url-schema Oct 17 03:29:36 oh man you're doing phonegap too? Oct 17 03:29:49 no Oct 17 03:29:56 i just want a neat url to share though whatsapp Oct 17 03:30:00 heh Oct 17 03:30:06 oh sure, i thought that was your question Oct 17 03:30:15 but it wont work if they dont have your app installed Oct 17 03:30:48 i might have ebola again Oct 17 03:31:22 in fact i'd better learn objective c instead phonegap websites. i dont know Oct 17 03:31:31 if i want apps for android and ios Oct 17 03:31:35 I'm trying to use Android studio for a project between myself and my partner, but its killing me in GIT. How did you guys set up your gitignore files? Oct 17 03:31:44 eghdk theres a stackoverflow Oct 17 03:31:49 or look at any open source project Oct 17 03:34:52 lmk if u have specific questions Oct 17 03:35:17 hey jacobtabak Oct 17 03:35:28 don't suppose you know anything about webgl? Oct 17 03:35:56 i dont know anything about anything in a web browser Oct 17 03:36:21 JacobTabak: I saw the stack overflow one but the git ignore was ignoring .gradle files... but isn't the point to have the same gradle files? Oct 17 03:36:26 what about just opengl, then Oct 17 03:36:46 Because then stuff like build.gradle with my product flavors wouldn't be available to my team member Oct 17 03:37:45 https://github.com/timehop/sticky-headers-recyclerview/blob/master/.gitignore Oct 17 03:38:46 .gradle is a local cache, don't check it in Oct 17 03:42:59 JakeWharton: Then how do I make sure my flavors are available to my team? Oct 17 03:43:24 they are defined in the build.gradle Oct 17 03:44:30 JakeWharton: Oh. shit. I thought Build.gradle WAS a .gradle file. Oct 17 03:44:33 Is it not? Oct 17 03:44:39 no Oct 17 03:44:50 build.gradle != .gradle/ Oct 17 03:44:50 damn. Then what the hell is it? Oct 17 03:45:22 but .gradle is just a filetype... no? Just like .java? Oct 17 03:45:23 so, I'm a little confused by pending intents, at what point are they persisted? Oct 17 03:45:28 no Oct 17 03:45:35 they're globs Oct 17 03:45:45 *.java is all java files Oct 17 03:45:52 *.gradle is all foo.gradle files Oct 17 03:45:57 .gradle is a literal Oct 17 03:46:15 eghdk the git book 2e is coming out soon :) Oct 17 03:46:34 just .dir means "dir" is a directory that is hidden/probably none of your business Oct 17 03:46:36 but even the 1e has good description of gitignore Oct 17 03:46:56 see also, the entire internet Oct 17 03:47:10 yes , the entire internet should be gitignored too ! Oct 17 03:47:48 JakeWharton: Oh okay, I was misunderstanding *.gradle and .gradle Thanks. Oct 17 03:48:07 Now time to look up globs Oct 17 03:48:56 so, are pendingintents persisted when I do PendingIntent.get*? Oct 17 03:50:21 hmm, looks like the answer is yes Oct 17 03:55:58 pfn cyrilmottier gave a talk on that ... i think Oct 17 03:56:20 https://speakerdeck.com/cyrilmottier/deep-dive-into-android-state-restoration Oct 17 03:56:41 hm, maybe not Oct 17 03:58:46 oh wells Oct 17 04:02:33 so everyone, update on my story Oct 17 04:02:40 i'm not doing that for everything, just a few things as needed Oct 17 04:02:42 it's pretty convenient Oct 17 04:05:27 man forgetting annotations (like singleton) is teh wurst Oct 17 04:05:34 no syntax error, you just end up with 2 different objects when you want one Oct 17 04:05:40 really hard to debug Oct 17 04:10:08 oh one thing Oct 17 04:10:18 so Oct 17 04:10:26 i forgot if i asked here Oct 17 04:10:30 that new mac mini has a wimpy cpu :( Oct 17 04:10:44 whats the appeal of a mac mini Oct 17 04:10:45 Is there any way to get a google play unique user ID? Oct 17 04:10:48 cheaper than a macbook pro? Oct 17 04:11:00 I know there's an advertising ID but that can be reset Oct 17 04:11:20 Agamemnus use the account manager to get the gmail address? Oct 17 04:11:25 I also know there is a player id but isn't that opt-in? Oct 17 04:11:25 associated with the device Oct 17 04:11:47 can't gmail addresses change, and won't it ask for permission? Oct 17 04:11:57 no and yes Oct 17 04:11:58 I just need an identifiable user ID Oct 17 04:12:17 I want to store important user settings Oct 17 04:12:33 is there no way Oct 17 04:12:34 ? Oct 17 04:12:51 ? Oct 17 04:12:58 this is the use case for social service login Oct 17 04:13:00 A user ID (number) that won't change Oct 17 04:13:09 you need an identity provider Oct 17 04:13:22 google, facebook, etc Oct 17 04:13:35 so google play won't give me that? Oct 17 04:13:54 it does, through google play services Oct 17 04:14:05 ok, well, you said email address Oct 17 04:14:19 Anything else that's permanent? Oct 17 04:14:30 and won't ask for permission. Oct 17 04:14:51 do you mean permissions in the play store Oct 17 04:14:54 or in app Oct 17 04:14:59 Once you load the game Oct 17 04:15:10 email address is a play store permission Oct 17 04:15:11 not in-app Oct 17 04:15:18 I see Oct 17 04:15:26 its like 'read accounts' Oct 17 04:15:47 ok, but all I need is an ID. Like facebook provides an integer ID. Oct 17 04:16:04 JacobTabak are you talking to yourself ? Oct 17 04:16:10 :| Oct 17 04:16:12 :D Oct 17 04:16:13 lol Oct 17 04:16:20 hes not nearly as bad as the other one :P Oct 17 04:16:23 g00s__ Oct 17 04:16:34 do you really have him ignored? Oct 17 04:16:38 (agamamnus) Oct 17 04:16:40 hahaha Oct 17 04:17:14 Someone on stack overflow mentioned player ID, but I don't think that's it. It's a string and I don't think everyone has it Oct 17 04:17:14 i was like, wth is JacobTabak talking about! Oct 17 04:17:30 thats a google play games thing? Oct 17 04:17:31 So there's nothing other than the email address? Oct 17 04:17:33 not familiar with it Oct 17 04:17:40 yes, it is Oct 17 04:17:52 im sure they'd need to sign in for that Oct 17 04:17:56 http://stackoverflow.com/questions/26413589/get-a-user-id-from-google-play-services Oct 17 04:18:10 This request requires authorization with the following scope https://www.googleapis.com/auth/games Oct 17 04:18:15 I'm really frustrated with this Oct 17 04:18:16 so, they'd need to give in-app approval Oct 17 04:18:27 I don't understand why there's no user ID generated by Google Play Oct 17 04:18:27 why because you can't easily spy on your users without their permission? Oct 17 04:18:38 But all I need is a number Oct 17 04:18:39 there is, they just need to use google login first Oct 17 04:19:04 It's for the level packs Oct 17 04:19:15 If it's paid, ok. That can be stored. Oct 17 04:19:24 But if you get it for emailing your friends or whatever Oct 17 04:19:35 How am I supposed to store it? It's free. Oct 17 04:19:45 just show a dialog that lets them choose their email from the accounts on the device Oct 17 04:19:47 or enter a custom one Oct 17 04:20:04 when they unlock their first pack Oct 17 04:20:05 That just seems horrible Oct 17 04:20:09 hey - in case you lose your device Oct 17 04:20:17 give us your email so you can get your level packs Oct 17 04:20:20 Yeah but you still have an account. Oct 17 04:20:27 I don't need to know their email address. Oct 17 04:20:45 ok, so show a google login prompt Oct 17 04:20:50 where all you get is an ID Oct 17 04:20:56 its just as easy either way Oct 17 04:21:01 minus the google play services dependency Oct 17 04:21:31 So I can get an ID if they log in to ... what? G+? Oct 17 04:21:37 yeah Oct 17 04:21:53 I don't want to force users to have to log in to G+. Oct 17 04:21:53 use this https://developers.google.com/games/services/web/api/players/get Oct 17 04:22:01 oh my god Oct 17 04:22:03 Ok Oct 17 04:22:05 then provide 3 social logins Oct 17 04:22:12 facebook twitter or g+ Oct 17 04:22:29 have you ever used an app before? lol Oct 17 04:22:32 this is how everyone does it Oct 17 04:22:48 yes, i always skip that shit and never log in Oct 17 04:23:01 it is intrusive Oct 17 04:23:18 getting a gamer ID is intrusive? Oct 17 04:23:32 No, forcing someone to log in to a social network is. Oct 17 04:23:35 just dont show the logni button until they unlock their first lvl pack Oct 17 04:23:39 and make it optional Oct 17 04:23:46 if they want it backed up Oct 17 04:23:51 Ok I got what you're saying Oct 17 04:24:04 or give them a CODE Oct 17 04:24:08 like the old school games did Oct 17 04:24:11 when you beat a level Oct 17 04:24:11 hahahaha Oct 17 04:24:20 But it seems ridiculous. Users are already connected to Google Play, why the hell can't you just get their ID? Why didn't they set it up like that? Oct 17 04:24:26 privacy Oct 17 04:24:35 why should you be able to track users between devices without their permission Oct 17 04:24:45 Fine, make it a permission, whatever Oct 17 04:24:52 ... it is a permission Oct 17 04:24:52 But it's just a freaking number. Oct 17 04:25:05 Yeah but you're saying the permission gets the EMAIL Oct 17 04:25:12 I don't wany the EMAIL, I just want the ID Oct 17 04:25:33 Is there a permission that only asks for an ID? Does it even exist? Oct 17 04:25:41 the player ID Oct 17 04:25:44 that we were just talking about Oct 17 04:25:49 https://developers.google.com/games/services/web/api/players/get Oct 17 04:26:03 But does everyone with a Google Play account have a player ID? Oct 17 04:26:18 probably? Oct 17 04:26:34 everyone with g+ Oct 17 04:26:50 The guy on Stack Overflow mentioned https://developer.android.com/reference/com/google/android/gms/games/Player.html Oct 17 04:27:03 tahts the same shit dude Oct 17 04:27:06 So it's dependent on G+? Oct 17 04:27:11 omgggg Oct 17 04:27:13 google play services Oct 17 04:27:14 * Agamemnus tears his hair out Oct 17 04:27:21 im done dude Oct 17 04:27:23 u have all the answers Oct 17 04:27:25 google play services isn't G+ Oct 17 04:27:29 wait wait Oct 17 04:27:40 teh great JacobTabak has spoken! let it be so Oct 17 04:27:43 but the player ID is a string Oct 17 04:27:50 How is it a string? Oct 17 04:27:54 g00s__ is he still muted Oct 17 04:28:04 fuck yeah Oct 17 04:28:09 might rejoin that club Oct 17 04:28:14 ._. Oct 17 04:28:22 im honestly trying to work Oct 17 04:28:24 and i like to be in here Oct 17 04:28:37 but when you engage me in conversation its very distracting Oct 17 04:28:41 I see Oct 17 04:28:45 MY BAD... Oct 17 04:28:59 its not you its me Oct 17 04:29:27 by the way, tell g00s his celebration of him ignoring him will land him with tons of negative karma Oct 17 04:29:40 g00s__ he says you're goign to burn in hell for ignoring him Oct 17 04:29:43 ignoring me* Oct 17 04:30:02 hmm, that isn't what I said, but close enough. Oct 17 04:30:06 haha Oct 17 04:30:10 decent price to pay Oct 17 04:30:37 I'm just going to try this string ID. I'm pretty sure that's not the right thing to do, but probably nothing is. Google Play Services is more messed up than Facebook. Oct 17 04:30:55 email is a better route Oct 17 04:31:15 quick favour from a USian please? is the N9 up on the play store yet? Oct 17 04:31:26 What is an N9? Oct 17 04:31:26 it wont be for a while Leeds Oct 17 04:31:28 "late october" Oct 17 04:31:34 ie, after L release Oct 17 04:31:37 should be pre-order today Oct 17 04:31:43 'today' being Friday, where I am Oct 17 04:31:44 maybe i'm wrong Oct 17 04:31:48 not what i read though Oct 17 04:32:01 it's up on Amazon for pre-order... Oct 17 04:32:05 ah indeed Oct 17 04:32:20 JacobTabak: could you do me a quick favour and actually look? Oct 17 04:32:25 its on amazon Oct 17 04:32:32 oh play store Oct 17 04:32:35 * g00s__ is still bummed there is no <= $200 nexus device Oct 17 04:32:44 Ok Oct 17 04:32:48 g00s__: sure there is - the player :P Oct 17 04:32:49 its not on there Oct 17 04:32:54 I don't want to do this g00s Oct 17 04:32:55 JacobTabak: thanks Oct 17 04:32:56 Leeds :D Oct 17 04:32:58 g00s__ want me to buy you one Oct 17 04:33:03 or do you want my nexus 5 Oct 17 04:33:05 :P Oct 17 04:33:06 but if you really put me on ignore I have no choice but to ignore you too Oct 17 04:33:33 there, done Oct 17 04:33:40 honestly, its just for testing. if the n9 sells as well as the n10, no point Oct 17 04:34:34 putting people on ignore is passive agressive shit. just punch them through the internet if you really think they deserve it. Which honestly I don't think I did Oct 17 04:34:43 ^ Oct 17 04:34:54 now how can i not agree with that Oct 17 04:35:02 got a guy complaining that he can't see a pre-order link in Australia - there are no Play Store pre-orders *anywhere* yet Oct 17 04:36:09 oh poor bankai_au Oct 17 04:38:54 anyone get gms on new genymotion? Oct 17 04:44:51 i would love to punch people through the internet Oct 17 04:45:00 or punch myself backwards in time Oct 17 04:48:57 Hi lasserix_ Oct 17 04:51:56 hi niru !!!! Oct 17 04:52:11 hi JacobTabak Oct 17 04:52:20 thread.getUncaughtExceptionHandler().uncaughtException(thread, ie); Oct 17 04:52:26 wtf O.o Oct 17 04:52:45 uncaught exception handler!! Oct 17 04:52:48 looks perfectly reasonable to me Oct 17 04:52:49 thats common Oct 17 04:52:57 i didn't know you could do that :) Oct 17 04:53:05 haha Oct 17 04:53:11 JakeWharton got blundell all worked up about it a bit ago Oct 17 04:53:37 yeah. he was advocating idiotic beahvior. Oct 17 04:53:42 https://twitter.com/JakeWharton/status/520670783622754304 Oct 17 04:53:46 unforgivable Oct 17 04:53:48 he got all butthurt at your response Oct 17 04:54:07 yeah i was shocked when he advocated for that Oct 17 04:54:12 lets let the app continue in who knows what state Oct 17 04:55:02 oh! catch and swallow :D Oct 17 04:55:18 catch and choke on it Oct 17 04:55:22 i dont like blundell because he ignored my tweet Oct 17 04:55:24 how dare he Oct 17 04:55:38 i told you what to do Oct 17 04:55:43 :\ Oct 17 04:55:50 still dont have a good solution Oct 17 04:55:58 what's still broken? Oct 17 04:56:08 cross-module refactoring Oct 17 04:56:23 and the gms dependency breaks all the time, i have to readd the lib to classpath Oct 17 04:56:26 why? both are active source sets in AS Oct 17 04:56:40 i think because because i don't have an explicit dependency on the android module Oct 17 04:56:43 just the classpath Oct 17 04:56:48 ah Oct 17 04:56:49 it should be something i can fix Oct 17 04:56:50 hmm Oct 17 04:56:55 but i haven't spent time on it Oct 17 04:57:22 there should be a way toa dd it as a dependency without doing a release build... Oct 17 04:58:46 maybe i can make a custom configuration Oct 17 05:00:21 JacobTabak: https://gist.github.com/JakeWharton/15fe9d6d17fbf991fe0a Oct 17 05:00:51 oh nice, valueanimator thing Oct 17 05:00:56 and more Oct 17 05:01:00 window animations Oct 17 05:01:06 yea that one i pulled form the espresso docs Oct 17 05:01:23 ah Oct 17 05:01:32 the value animator one was already in u2020 Oct 17 05:01:32 and i'm re-setting the window animations in the finish() method of my test runner Oct 17 05:01:44 hm Oct 17 05:01:50 i'm not sure if it is wired up Oct 17 05:02:21 https://github.com/JakeWharton/u2020/blob/6162331b13c301535c15c2ff76c541cfe6990e54/src/debug/java/com/jakewharton/u2020/ui/debug/DebugAppContainer.java#L506-L513 Oct 17 05:02:28 oh i see Oct 17 05:02:48 derp, for some reason i wasn't expecting the logic to be right in the app container Oct 17 05:02:53 and i wasnt expecting it to be 2 lines Oct 17 05:03:11 i was trying to figure out where that preference was used Oct 17 05:03:11 i should swallow that exception Oct 17 05:03:15 wouldn't want to crash! Oct 17 05:04:00 it might not be re-applied across app restarts in u2020 Oct 17 05:04:08 man it was pretty funny when you were trying to show that animation in slow motion at the afterparty at droidcon Oct 17 05:04:19 yeah... doesn't use value animator Oct 17 05:04:23 oh well Oct 17 05:04:42 i do it all the time now, try to grab the debug drawer when it's not there Oct 17 05:04:44 i bugged romain about a way to slow down the main thread looper but could never figure a good way out Oct 17 05:04:56 nor could he Oct 17 05:05:19 an interesting idea though Oct 17 05:05:23 wanted to build my own os image with that feature but could even figure it out inside of Android Oct 17 05:05:27 Hi. What is a good place to learn android? I tried the docs once, and it was actually fine, but it seemed kind of superficial. It seems it's targeted at people who want to get something working fast. Oct 17 05:05:32 I was looking for more detailed explanation that doesn't worry about building a background of concepts before going on into doing something useful. Oct 17 05:05:36 Any clues? Oct 17 05:05:45 i think that's something i should take on, trying to build android Oct 17 05:05:53 it's pretty easy Oct 17 05:06:08 yea just never really had a practical reason to, but I think it would be very useful Oct 17 05:06:13 brew install like 2 things, repo clone, lunch, mmm -j16 Oct 17 05:06:15 or something Oct 17 05:06:30 phao check out the coursera classes Oct 17 05:06:36 or ... the other one Oct 17 05:07:10 udacity Oct 17 05:07:20 THe one by Douglas Schmidt? Oct 17 05:07:25 sec Oct 17 05:07:29 ill link you the one i did for fun Oct 17 05:07:38 He's the patterns guy =) Oct 17 05:07:39 https://www.coursera.org/course/android Oct 17 05:07:42 it was pretty alright Oct 17 05:07:59 i've done others and i think this one did a pretty good job Oct 17 05:08:04 the problem with teachers is that they're teachers Oct 17 05:08:07 they don't do android for a living Oct 17 05:08:08 they do teaching Oct 17 05:08:18 Hehehe Oct 17 05:09:01 I think my problem is that a book like K&R only exists for C Oct 17 05:09:09 also books for android are useless Oct 17 05:09:19 because nobody agrees on the right way to do things Oct 17 05:09:20 And I keep expecting there will be things like K&R for other technologies too. Oct 17 05:09:30 and paradigms shift month to month Oct 17 05:09:44 hehe Oct 17 05:10:25 does anyone have any idea when devices are going to be getting L? I know the image will be available today, but when will nexus 5 get OTA? Oct 17 05:10:33 books also are out of date instantly upon publishing Oct 17 05:10:40 i just need to re-test my app on the L emulator i guess Oct 17 05:11:13 i think the current version of our app has hero transitions and some ripples Oct 17 05:11:54 i should probably do an update and remove that stuff Oct 17 05:11:56 :O Oct 17 05:12:23 not sure what i was thinking at the time Oct 17 05:13:31 JacobTabak punch yourself back in time Oct 17 05:13:38 i should Oct 17 05:13:49 if they change the api everything will break Oct 17 05:13:59 and i'll most certainly get fired Oct 17 05:17:45 i'm confused Oct 17 05:17:55 nevermind Oct 17 05:18:29 hmm Oct 17 05:18:39 seems like i can't spy on a retrofit service created with a restadapter Oct 17 05:19:01 why not Oct 17 05:19:07 Cannot mock/spy class $Proxy7 Oct 17 05:19:26 when i do mock(restAdapter.create(MyService.class)) Oct 17 05:19:37 why would you do that Oct 17 05:19:41 mock(MyService.class) Oct 17 05:19:58 or, even better, just implement the interface on a test object Oct 17 05:19:58 i guess, because the services is injected into my activity Oct 17 05:20:07 and i wanted to only override one method Oct 17 05:20:38 Mockito cannot mock/spy following: - final classes - anonymous classes - primitive types Oct 17 05:20:55 i mean there are clear workarounds Oct 17 05:20:59 but its kind of a bummer Oct 17 05:21:21 just inject `new MyService() { … }` that no-ops for the methods you’re not interested in? Oct 17 05:21:36 thats some boilerplate right there :| Oct 17 05:21:56 but, i'm gald we had this talk guys Oct 17 05:22:03 i can just mock the whole thing i guess Oct 17 05:25:59 create a proxy for MyService which delegates to the rest adapter-created instance Oct 17 05:26:46 and does whatever you want for your method Oct 17 05:26:48 that's a good suggestion, but it running into this just made me realize the approach was naive Oct 17 05:27:05 i really should just be mocking the whole thing for tests Oct 17 05:27:33 the issue i'm running into now is i can't override the service twice Oct 17 05:27:52 ie, the real thing is in my main module, the mock implementation is in my debug module, and i want a mock in my test module Oct 17 05:28:00 like an actual mockito mock Oct 17 05:28:26 Hey, I did ----> String destPath = getString(R.string._data_data_) + getPackageName() + "/databases/life"; File f= new File(destPath); but problem is f.exists checks for the "life " folder but I am checking for life database. How can i check for life database? Oct 17 05:28:47 don't start your resources with _ Oct 17 05:29:27 someone asked this question a bit ago, was it you? Oct 17 05:30:49 No Oct 17 05:31:32 why do you need to check if the database exists? Oct 17 05:31:51 sqliteopenhelper calls onCreate when the database doesnt exist Oct 17 05:33:42 At startup app checks whether database exists or not (First time it runs) , and copies it from assets to databases Oct 17 05:34:28 ok , got it Oct 17 05:34:31 thnx Oct 17 05:35:37 you did? o.O Oct 17 05:36:34 Just came up with something that should work Oct 17 05:36:40 cool, what was it Oct 17 05:38:19 Should check for a folder if that does n't exist then copy from assets , otherwise not Oct 17 05:38:50 nice nice Oct 17 05:42:13 In the emulator, when I use this folder check method , the folder is always there even if i update the database , or update the app code , so copying doesn't take place Oct 17 05:42:47 DDMS doesn't have the option to delete the folder Oct 17 05:43:15 use android device monitor Oct 17 05:43:47 http://developer.android.com/tools/help/monitor.html Oct 17 05:46:00 nevermind killer its the same thing Oct 17 05:46:06 u can probably do it with adb Oct 17 05:53:08 JacobTabak: I have a compound view. I want to include some static buttons at the bottom of the compound view and a heading at the top of this compound view Oct 17 05:53:18 adb shell is your friend ;) Oct 17 05:53:25 killer: ^ Oct 17 05:54:27 niru this is not a questino for me its a question for everyone pls dont single me out! Oct 17 05:55:20 I just read from stackoverflow , adb shell rm /apth/to/file , Oct 17 05:55:24 ah sorry Oct 17 05:55:39 its for everyone Oct 17 05:57:22 when u say compound view, do u mean viewgroup? or compoundbutton? Oct 17 06:06:31 sometimes... Oct 17 06:06:44 i wish i went outside once in a while Oct 17 06:06:47 or slept Oct 17 06:09:21 Sometimes I wish I was an gobysan Oct 17 06:09:29 i dont even know what htat is Oct 17 06:09:34 darklust you're so mysterious Oct 17 06:09:44 I mean Viewgroup Oct 17 06:09:48 you always offer things at strange times and they're always strange contributions Oct 17 06:09:53 rewind niru Oct 17 06:09:58 rephrase your question in a way that i can understand Oct 17 06:10:04 im not all that smart y'know Oct 17 06:10:47 I have a viewgroup and a heading and a set of buttons.I want to merge the three so that they dont overlap Oct 17 06:11:20 what do you mean by merge Oct 17 06:14:19 I have right now a layout file(compound view which has some labels and texts) and separate button layout xml file. When I see the output labels and texts of one layout are under the buttons....while scrolling.... Oct 17 06:15:10 how are you showing the two separate layout files at once? Oct 17 06:16:02 I am calling a listview and the listview is inturn calling the button layout file Oct 17 06:16:05 like this Oct 17 06:16:12 dont paste in here Oct 17 06:16:13 careful Oct 17 06:16:15 use pastebin Oct 17 06:16:29 com.example.Button_Control Oct 17 06:16:35 inside tags Oct 17 06:17:23 im having a hard time understanding you, what do you mean by calling the button layout file? Oct 17 06:17:29 the listview adapter is inflating the layout? Oct 17 06:20:01 yes JacobTabak I am getting the results right now....thanks.... Oct 17 06:34:34 what time is google likely to release the lollipop sdk? Oct 17 06:35:00 sometime in the next 24 hours Oct 17 06:35:00 i'd guess 10am PST Oct 17 06:35:09 right Oct 17 06:35:28 between 10-2PST Oct 17 06:35:41 10:00 - 14:00 :D Oct 17 06:35:44 JacobTabak nay 10am too early, they are still sleeping Oct 17 06:36:02 lol hardly Oct 17 06:36:09 10am PST is 1PM EST Oct 17 06:36:15 west coast ppl have to get up earlier Oct 17 06:36:34 relatively earlier* Oct 17 06:44:29 hey guys, can you give me System.currentTimeMillis() output please Oct 17 06:44:45 i have the hiccups for the first time in several years Oct 17 06:45:00 AGGGY Oct 17 06:45:07 hey, have you seen stingray? Oct 17 06:45:11 we do not get up earlier Oct 17 06:45:13 I haven't seen him in a while Oct 17 06:45:22 ya you do! Oct 17 06:45:29 nobody shows up at our office til 10:30 Oct 17 06:45:44 hello Oct 17 06:45:50 i don't show up at my office till 11 usually, myself Oct 17 06:45:53 anyone Oct 17 06:45:54 (ie: my computer) Oct 17 06:45:59 hello, squ Oct 17 06:46:22 Agamemnus: can you run the Log.i … System.currentTimeMillis() and give me the output please? Oct 17 06:46:34 squ that is a ridiculous request Oct 17 06:47:09 http://docs.oracle.com/javase/7/docs/api/java/lang/System.html Oct 17 06:47:20 Returns the current time in milliseconds. Oct 17 06:47:42 the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. Oct 17 06:48:03 you might be having timezone issues Oct 17 06:49:34 Agamemnus: can you run System.currentTimeMillis() and show the output please ? Oct 17 06:49:40 kickbannnnn Oct 17 06:50:23 hiccups are brutal Oct 17 06:50:47 JacobTabak punch yourself in the stomach Oct 17 06:51:05 he're i;ll do it for you ... Oct 17 06:51:09 hey g00s__ can you give me that java long integer please ? :) Oct 17 06:51:17 Sorry, that would take me too long. Oct 17 06:51:34 uh Oct 17 06:51:52 g00s__: we are parsing youtube tag which is added for each .mp4 Oct 17 06:51:56 yea g00s__ get him that long integer Oct 17 06:52:06 i just wanted to tell stingray that i'm making good progress on improving the look and performance of my game Oct 17 06:52:18 there is mini-debate is it epoch in seconds or millis or micros Oct 17 06:52:21 i dont have AS running Oct 17 06:52:28 need to shutdown stuff, not now Oct 17 06:52:32 it is milliseconds Oct 17 06:52:41 okey, nevermind then Oct 17 06:52:49 Agamemnus: can you run the Log.i … System.currentTimeMillis() and give me the output please? Oct 17 06:52:57 oh my fucking god Oct 17 06:52:58 what a troll Oct 17 06:53:00 is squ a bot? Oct 17 06:53:07 i think it is a bot Oct 17 06:53:08 currentTimeMillis ... i'm guessing its in millis Oct 17 06:53:14 just a hunch ! Oct 17 06:53:15 g00s__ you're wrong go punch yourself in the face Oct 17 06:53:24 * JacobTabak (jerk) Oct 17 06:53:52 jacobtabak, so I saw one jigsaw game where the piece kind of moved into place instead of snapped Oct 17 06:53:57 if the positioning wasn't exact. Oct 17 06:54:03 What do you think? Yea or nay? Oct 17 06:54:12 i think its a jigsaw and im not 4 yrs old Oct 17 06:54:28 :P ok, but what's your professional opinion? Oct 17 06:54:37 g00s: can you give me that initial value for boolean fooBar? Oct 17 06:54:41 :p Oct 17 06:54:48 or is that it? Oct 17 06:55:03 Agamemnus i think it depends on whether you can implement a fast, non annoying animation Oct 17 06:55:15 I recognize that bot, it comes in once inna while and talks nonsense Oct 17 06:55:15 if the animation ever gets in the way or prevents me from making my next move, then that sucks Oct 17 06:55:32 it won't prevent you from making a next move, no Oct 17 06:55:37 not if I code it right. Oct 17 06:55:37 im in a bad move because i have the hiccups Oct 17 06:55:40 bad mood Oct 17 06:56:04 hickups are like an observable stream Oct 17 06:56:14 but I have to split up my code into a timer and a callback if I implement it Oct 17 06:56:31 onNext(hickup) Oct 17 06:56:42 u never know when it will hit Oct 17 06:56:50 seriously it must have been 3 yrs since ih ad hiccups last Oct 17 06:56:53 its unbearable Oct 17 06:57:02 I see Oct 17 06:57:08 when your'e a kid you get them all the time Oct 17 06:57:19 "Some causes of hiccups include: Eating too quickly and swallowing air along with foods. Eating too much (fatty or spicy foods, in particular) or drinking too much (carbonated beverages or alcohol) can distend the stomach and irritate the diaphragm, which can cause hiccups." Oct 17 06:57:28 i need a book to teach me how to think in rx. i get the basics but i feel some problems - there must be a way, its all streams and stuff flowing - but i can't put it together Oct 17 06:57:35 Stop eating air. Oct 17 06:57:36 g00s__ im in the same boat Oct 17 06:57:39 Silly. Oct 17 06:57:44 just tell me when u figure it out Oct 17 06:58:32 you're like the guy with the porn app Oct 17 06:58:34 right now i'm looking at the sources for Scheduler and i'm confused about all these inner and parent subscriptions Oct 17 06:58:37 i can eat air if i want Oct 17 06:58:46 air sandwich ! Oct 17 06:58:47 and i dont want you to email my wife when i do Oct 17 07:00:50 JacobTabak do you understand how that app works really? i mean, lets say you want to quit smoking. so you have a buddy that agrees to punch you each time you smoke. the 2 people agree to this as an accountability thing. knowing your budy will punch you should reduce the probability of the behavior Oct 17 07:01:05 i still don't see anything wrong with it Oct 17 07:01:07 hehe Oct 17 07:01:10 HEHE. Oct 17 07:01:28 i just can't imagine why any man would have a problem with himself viewing pornography Oct 17 07:01:37 its' religious bullshit and that's clear from his website Oct 17 07:02:13 but thats not the issue; its not about religion, values - they can practice whatever they want. its a simple app idea; the idea has been there for a long time before apps, phones, etc. Oct 17 07:02:30 its just accountability and consequences Oct 17 07:02:39 why dont' they just kill a cat every time the guy wanks off Oct 17 07:03:48 bankai_au halp Oct 17 07:04:03 you are the only person i know who wrote a scheduler and lived Oct 17 07:04:37 why do you have to write a scheduler Oct 17 07:04:39 and why is it hard Oct 17 07:05:26 it might not be hard, but i dont understand the impls i looked at Oct 17 07:05:51 g00s__: what's up Oct 17 07:06:09 bankai_au here ... https://github.com/ReactiveX/RxAndroid/blob/0.x/src/main/java/rx/android/schedulers/HandlerThreadScheduler.java Oct 17 07:06:27 what is going on lines 79-80 ? Oct 17 07:10:10 Hey , how can i run a function only when app run for the first time or the app run after an update ? Oct 17 07:10:27 save the current app verison code to shared prefs every app launch Oct 17 07:10:32 and compare it to last time Oct 17 07:10:47 i believe the composite subscription 'add' method is adding unsubscription behaviour Oct 17 07:11:14 shared prefs , cool Oct 17 07:13:02 bankai_au i thought that was line 73; scheduledAction.add(Subscriptions.create(new Action0() { .. remove from handler ... } Oct 17 07:13:09 al lthese fucking subscriptions Oct 17 07:14:16 Hi, how can hide my application from main menu ? Oct 17 07:14:21 it unsuscribes to itself? Oct 17 07:15:15 goddamn android Oct 17 07:16:16 after renaming file, media store loses track of it, next time I start my player it mediastore doesn't see the file Oct 17 07:16:46 shmooz just tell the mediastore about the renamed file Oct 17 07:16:56 I tried that Oct 17 07:17:52 it was also not keeping track when I delete the file but I solved that with sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(myfile))); Oct 17 07:17:55 JacobTabak dont forget to hiccup Oct 17 07:18:02 f u man Oct 17 07:18:04 its been 40 minutes Oct 17 07:18:07 and still once every 5 seconds Oct 17 07:18:30 but that line doesn't work when I rename, hmmm Oct 17 07:18:37 have you heard about spooky hiccups ? Oct 17 07:18:43 nope Oct 17 07:18:48 or spooky hiccup from a distance ? Oct 17 07:20:02 this is so unfair Oct 17 07:20:04 i just want to finish this Oct 17 07:20:06 and go to boed Oct 17 07:20:07 alskdfjlj Oct 17 07:20:15 I also tried MediaScannerConnection.scanFile(... Oct 17 07:20:24 JacobTabak are you still working on that unit testing stuff ? Oct 17 07:20:29 no Oct 17 07:20:38 stripping out androidannotations Oct 17 07:20:40 want to do a release tomorrow Oct 17 07:20:44 and its breaking everything Oct 17 07:20:50 my massive dingleberry Oct 17 07:21:12 you waited to long and the dingleberry hardened Oct 17 07:21:23 this is true Oct 17 07:21:31 now its more of a tumor Oct 17 07:23:17 Hello... anyone know where to get the latest lollipop image yet? Oct 17 07:23:22 just wondering.... thanks :) Oct 17 07:24:08 7-11? 759? Oct 17 07:24:43 769 ;P Oct 17 07:24:55 dck28: the Californians are asleep - probably nothing will happen until overnight, our time Oct 17 07:25:44 ObrienDave: 759 is a shop :) Oct 17 07:25:52 oh LOL Oct 17 07:26:21 which mostly sells snacks and sweeties... Oct 17 07:27:47 7-11, stop and go, AM PM. gotcha Oct 17 07:28:01 stop and frisk in NYC Oct 17 07:28:18 g00s__ you're in nyc ya? Oct 17 07:28:21 vango Oct 17 07:28:35 stop and rob in L.A. ;P Oct 17 07:28:45 JacobTabak no - omg i would die there Oct 17 07:28:49 oh Oct 17 07:28:53 sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()))); works but slow, and doesn't work on kitkat Oct 17 07:29:05 * g00s__ loves nature Oct 17 07:29:06 stop, drop, and kick the crap nowadays here Oct 17 07:29:11 i can't be in a concrete jungle Oct 17 07:29:31 i cant be near too much nature Oct 17 07:29:36 g00s__: don't go and visit dck28 anytime Oct 17 07:29:37 concrete jungle ftw Oct 17 07:30:30 shmooz sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(imageAdded))); Oct 17 07:30:33 stackoverflow is strong Oct 17 07:30:36 pifon: *do* go visit dck28 sometime Oct 17 07:31:10 Leeds... ?? I'm confused.. am i missing some reference? Oct 17 07:31:19 dck28: possibly Oct 17 07:31:30 JacobTabak: that worked for when deleting but not renaming Oct 17 07:31:46 delete and re-add? Oct 17 07:31:57 https://github.com/dck28 Oct 17 07:32:01 nice place Oct 17 07:32:22 JacobTabak: that doesn't sound efficient Oct 17 07:32:39 pifon: I was thinking more literally, given that dck28 is in Hong Kong Oct 17 07:32:39 what if it's a big file? you can't hold it in mem Oct 17 07:32:47 shmooz Oct 17 07:32:50 ah Oct 17 07:32:50 delete from content provider Oct 17 07:32:55 not teh file Oct 17 07:32:57 oh Oct 17 07:33:00 will do Oct 17 07:33:10 ok, I gotta figure out that Oct 17 07:33:15 shmooz Oct 17 07:33:17 also you can try Oct 17 07:33:23 updating the content provider DATA field Oct 17 07:33:25 it's also messing up the thumbnails Oct 17 07:33:47 gotta update all the columns of mediastore myself sigh Oct 17 07:33:52 50 minutes of hiccups Oct 17 07:33:59 no1 knows my misery Oct 17 07:34:16 * Leeds sneaks up behind JacobTabak and BOO! Oct 17 07:34:35 next ill hang myself upside down naked and have my dog lick my nose Oct 17 07:34:51 JacobTabak Oct 17 07:35:24 want to try the new effect in a moment? (I'll link you to the web page) Oct 17 07:35:35 no Oct 17 07:35:39 im trying to sleep Oct 17 07:35:45 and finish this fking thing Oct 17 07:35:50 oh Oct 17 07:35:50 im so tired of 18 hr days Oct 17 07:36:17 man Oct 17 07:36:21 I tried it many times Oct 17 07:36:31 coding too long in a day is just useless Oct 17 07:36:50 well ive been doing it for over a year Oct 17 07:36:58 just switch between projects and its fine Oct 17 07:37:01 just count the dingleberries jumping over the fence, sleep should come fast Oct 17 07:37:02 I tend to make many more mistakes if I am tired Oct 17 07:38:11 g00s__ that's a hapy thought Oct 17 07:38:26 Agamemnus i amke more mistakes when im drunk but that doenst stop me Oct 17 07:39:53 Error:(86, 16) error: strings in switch are not supported in -source 1.6 Oct 17 07:39:53 (use -source 7 or higher to enable strings in switch) Oct 17 07:40:03 this is true Oct 17 07:40:27 either change your compatibility version to 7 or dont use a switch Oct 17 07:40:30 trying to use a switch statement in a project in android studio, should i avoid using a string with a switch or am i using an ancient java version? Oct 17 07:40:43 there should be a quick fix to update your source compatibility to 7 Oct 17 07:40:50 and yes you should do that Oct 17 07:41:22 JacobTabak, i'm using linux mint. i have installed open jdk 7 but its not using it i guess. Oct 17 07:41:33 AS should have a quick fix Oct 17 07:41:36 for that Oct 17 07:41:43 u need to set up a java 7 jdk probably Oct 17 07:41:51 in the project structure dialog Oct 17 07:42:09 james0r: just something I noticed: Oct 17 07:42:32 When I compile with Java 8 I had the switch/string problem (problem with toolchain?) Oct 17 07:42:36 But I am using Cordova Oct 17 07:42:39 Java 7 was fine Oct 17 07:42:46 are you using AS Agamemnus Oct 17 07:42:54 and do you have your sourceCompatibility set in your build.gradle Oct 17 07:43:05 No clue Oct 17 07:43:11 JacobTabak think we'll see any big tools update ? like java 8 stuff :) Oct 17 07:43:15 What is AS? Oct 17 07:43:38 android studio Oct 17 07:43:48 I don't think I'm using gradle Oct 17 07:43:51 no, just command line Oct 17 07:43:54 g00s__ would be nice, clearly they can backport java 8 features like they have with java 7 Oct 17 07:43:58 I'm not using gradle Oct 17 07:44:00 (retrolambda) Oct 17 07:44:10 Agamemnus, i see. i'm trying to stick with android studio. i'm really newb but Eclipse ADT was a nightmare for me. Seemed riddled with bugs. i'm sure lots of user error too Oct 17 07:44:35 we dont permit people to imply eclipse is a good thing here Oct 17 07:44:45 please ignore any comments from the peanut gallery Oct 17 07:44:49 you aren't using cordova are you? Oct 17 07:44:54 james0r Oct 17 07:45:05 Eclipse is awesome Oct 17 07:45:23 ravioli: https://www.youtube.com/watch?v=Fe936b83NIQ Oct 17 07:46:09 i am very happy that I am finally coming home Oct 17 07:46:23 :D Oct 17 07:46:57 O: Oct 17 07:47:48 i don't think that music will let you sleep Oct 17 07:47:53 you should drink some tea Oct 17 07:48:02 can anybody tell me, how to hide our application from the main menu? Oct 17 07:48:02 i need to finish this work first Oct 17 07:48:06 since tea will dehydrate you at night Oct 17 07:48:12 it will make you sleep :X Oct 17 07:48:12 mhsam, main menu? Oct 17 07:48:25 yeah Oct 17 07:48:26 launcher Oct 17 07:48:27 he means Oct 17 07:48:33 goodnight Oct 17 07:49:05 no....from mobile main menu Oct 17 07:49:22 oh my bad, i'm wrong Oct 17 07:49:24 * JacobTabak derp Oct 17 07:49:31 * JacobTabak not derp its called the launcher Oct 17 07:50:25 what is mobile main menu? Oct 17 07:50:57 Mavrik y u troll Oct 17 07:51:13 um, I genuinely don't know what he's talking about Oct 17 07:51:20 Android has no "main menu" Oct 17 07:51:26 he means launcher Oct 17 07:51:36 yes... Oct 17 07:51:54 mhsam, remove LAUNCHER intent filter from your activity Oct 17 07:52:10 Hello! Is there any possibility to load “extensions” in application? For example i want to load new home screen widget (code resources) after application was installed. Oct 17 07:53:15 Yauhen90 yep check out dashclock (open source app) for an idea of how to create a pluggable app where you can download extensions from google play and plug them in Oct 17 07:53:17 As i know it is possible load additional jars and dinamicaly load them. But what about parts of application with resources? Oct 17 07:54:32 Mavrik: i want to open this app from another application...so if i remove launcher then i think it will not launch the application Oct 17 07:55:48 you are wrong. Oct 17 07:55:57 I suggest you read documentation on intent filters. Oct 17 07:56:22 k..fine Oct 17 07:58:10 k fine Mavrik Oct 17 07:58:19 thx 4 nothing Oct 17 07:59:38 *sigh* I still don't know why people think reading documentation is optional when programming. Oct 17 08:03:36 'imma wing it' Oct 17 08:04:06 damn Oct 17 08:04:14 im gonna have this badge icon in my app store on my mac Oct 17 08:04:23 until i install this new versino of osx Oct 17 08:07:30 :) Oct 17 08:13:11 documentation? why? there's irc people to bug with questions! Oct 17 08:40:50 Hello. Any open source projects/app using Volley for networking? Thanks :) Oct 17 08:58:52 Anyone know if twitter will automatically shorten URL's? Going to include a play link in my tweets Oct 17 08:59:00 need to know if I have to hook up a shortener or not Oct 17 09:12:00 knapper_tech, from what I've seen, yes, it does (using t.co), but it still counts the characters of the original URL Oct 17 09:12:14 poo Oct 17 09:12:52 can I t.co before posting? I'm trying to avoid having a temporary URL or requireing a 3rd party service Oct 17 09:13:05 that i have to have an account for etc Oct 17 09:13:54 no idea Oct 17 09:14:07 I guess there is a channel for twitter stuff here in freenode Oct 17 09:14:27 /MSG alis list *twitter* Oct 17 09:14:33 there are a few Oct 17 09:15:01 how is this android dev related, except a passing mention of the play store? Oct 17 09:31:56 can I have adapters even to display a simple textview? Oct 17 09:32:11 a data adapter kind of.. Oct 17 09:35:30 can I implement this on a view? http://misha.beshkin.lv/android-swipe-gesture-implementation/ Oct 17 09:36:08 I dont want my whole activity to implement SimpleGestureListener, I want to be able to detect swipe on certain views Oct 17 09:45:46 is it possible to fill in a phone number with contact by an app? even when the contact is not existing? Oct 17 09:46:11 gurke_: https://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL Oct 17 09:46:11 so the user just need to press call? :P Oct 17 09:46:16 Seems like it. Oct 17 09:46:21 Just try it. Oct 17 09:47:16 Odaym, you can implement this wherever you want Oct 17 09:47:33 well how would I do it on like an item of a listview? certain items Oct 17 09:47:48 right now i'm working with this instead, cause I found it simpler http://twigstechtips.blogspot.com/2013/02/android-detecting-gesture-swipes-and.html Oct 17 09:48:06 create a custom view that implements it and then use that view Oct 17 09:48:08 Im in the adapter of that listview, with that class implemented and the onTouch set on the viewholder (the whole row is what I want) Oct 17 09:48:40 use that view that the view for each row in the listview that I have? Oct 17 09:48:57 isnt what Im doing correct too? Oct 17 09:49:40 dunno, I'm just saying how I'd do it Oct 17 09:49:49 can't look at links right now Oct 17 09:49:57 ok Oct 17 09:50:09 well what I'm doing was just described above Oct 17 09:50:34 in the adapter of the listview setting the ontouch listener over certain views that I want (setting it on that view while its being built) Oct 17 09:51:12 well it worked, but that darn drawer is stealing the swipe gesture! Oct 17 09:51:16 still same problem! Oct 17 10:17:52 Node.js Auth for Email/Google/Facebook on Web/iOS/Android with Eskimo http://niftylettuce.com/posts/nodejs-auth-google-facebook-ios-android-eskimo/ Oct 17 10:21:43 hi there, i have a question about getting sensor data on a separate thread Oct 17 10:22:58 i initially asked on #android if that was the right place to ask a question, but they just got annoyed i asked to ask. haha so i figured i'd be more direct here. anybody out there who can help ? Oct 17 10:24:03 so i'm using sensormanager to get some sensor data. i'm requesting location updates and passing in a handler Oct 17 10:24:03 in the onsensorchanged method, i then write this data to the sqlite db on the device. Oct 17 10:24:03 so the stuff inside onsensorchanged, how can i ensure it is thread safe? Oct 17 10:25:27 haha yes, thank you Oct 17 10:26:14 like I said, just ask. Oct 17 10:27:08 Publishing an app in a Chinese app store, is Google Translate they way to go with the language barrier given through the developer portals? Oct 17 10:32:54 So are they gonna release the 5.0 SDK in Hawaii Time? Oct 17 10:36:14 I don't imagine they go to work at 3am Oct 17 10:47:10 They might just be finishing work Oct 17 10:50:22 i have a problem launching a project from eclipse Oct 17 10:50:24 https://www.dropbox.com/s/vpg1tnhcv2g6xik/Screenshot%202014-10-17%2012.50.00.png?dl=0 Oct 17 10:50:48 i can see usb attached device with "adb devices" Oct 17 10:50:56 and also in Device tab (in eclipse) Oct 17 10:51:09 but when i launch application, it doesn't find any device Oct 17 10:51:11 why ? Oct 17 10:51:26 device not configured properly Oct 17 10:51:27 most likely Oct 17 10:51:38 though i just read what seems like half of your convo Oct 17 10:51:39 so Oct 17 10:53:14 jvrodrigues: happens since I updated osx to yosemite Oct 17 10:53:18 yesterday it workd Oct 17 10:53:33 ah, never used mac so i can't help you Oct 17 11:11:58 Good. I would like a tab bar with one tab (the center one) having a special meaning (i.e. it launches another activity) a TabHost must however return some Fragment. Should I make that an empty dummy fragment or just not use the regular FragmentPagerAdapter implementation? Oct 17 11:15:19 morning Oct 17 11:28:31 Am I missing something or is this issue still a problem? https://code.google.com/p/android/issues/detail?id=72931 Oct 17 11:36:24 Why the hell does every client wake up on one day to pester me? D: Oct 17 11:40:56 Conspiracy Estel Oct 17 11:42:29 It must be Oct 17 11:43:02 Hi all.. SDK 5.0 is out! you can update if want/ Oct 17 11:45:37 superlinux-hp I don't see it yet Oct 17 11:46:04 that's what they say on the developer site. Oct 17 11:46:14 it's today. Oct 17 11:46:25 so by "its out" you mean "it isn't out". good stuff Oct 17 11:46:34 you know californians live in the past right? Oct 17 11:46:38 What do I do now? java.lang.OutOfMemoryError: GC overhead limit exceeded Oct 17 11:46:41 nothing is likely to happen til 9 AM Cali time Oct 17 11:46:49 at the earliest Oct 17 11:47:03 anyways... in my calendar is't 17th october. Oct 17 11:47:35 good for you Oct 17 11:48:07 anyways.. it's good to remind others. Oct 17 11:48:15 gtg Oct 17 11:51:05 it's out today but later in the day Oct 17 11:51:06 ... Oct 17 11:56:05 That be 12:00 my time. Oct 17 11:57:37 So with the android sdk 5 this will be the final one? Oct 17 11:59:34 :) Oct 17 12:02:08 Grecko,I get to start on my android l today when the update come out:) Oct 17 12:09:41 It will be final if you exclude all the ones that come after it... Oct 17 12:11:11 as if it'll run out if you don't grab it in the first minute or something Oct 17 12:16:33 ravilov, we were so worried about you Oct 17 12:22:08 When I view a ListViewItem xml file, the preview shows it full screen and with a black background Oct 17 12:22:14 is there a way to tell it not to do this? Oct 17 12:23:02 I'm trying to have a listview where I can add elements and edit them (edit text) once. I do this by adding a "" string to my list and notifydatasetchanged(). when building the view via the adapter I check for "" and request focus in that case, however that doesn't seem to work. Oct 17 12:23:07 http://pastebin.com/75DWVbjj here is my code. Oct 17 12:42:46 VnM, oh Oct 17 12:42:47 ? Oct 17 12:43:09 Not seen you for ages! Oct 17 12:43:19 yeah been away Oct 17 12:43:35 Many Eclipse/Android Studio conversations without you Oct 17 12:44:27 lol Oct 17 12:45:00 can't have them all Oct 17 12:50:15 Hi, someone here ? Oct 17 12:51:12 We're all hibernating Oct 17 13:01:46 In onTouchEvent I'm capturing MotionEvent.ACTION_POINTER_UP How can I get the index or the ID of the pointer that went up? Is event.getPointerCount() - 1 equal to the index of the pointer that went up? Or is it equal to the pointer's that are still down? Oct 17 13:06:45 http://developer.android.com/reference/android/view/MotionEvent.html#getPointerId%28int%29 Oct 17 13:09:27 ravilov: Yeah, so what is the index of the pointer that has most recently risen in a MotionEvent.ACTION_POINTER_UP ? Is it event.getPointerCount() or event.getPointerCount() + 1 or event.getPointerCount() - 1 ? The doc for the function you linked says only "accounting for pointers going up and down since the start of the current gesture" this is ambiguous to me Oct 17 13:10:07 each event can carry multiple pointers, you should go through all of them Oct 17 13:10:49 ravilov: Are you even reading what I'm asking? Oct 17 13:10:49 if there are multiple pointers in an UP event, that means all of them went up at the same time Oct 17 13:11:05 ohhh!!! Oct 17 13:11:08 duh Oct 17 13:11:12 ravilov: Sorry, sorry. I see! Thank you! Oct 17 13:11:22 The event types carry different pointers for different reasons! :P Oct 17 13:11:40 i.e. in ACTION_POINTER_UP the event will carry all the pointers that went up! Oct 17 13:11:45 Not all the pointers total! Oct 17 13:12:55 When there are 2 views combined in 1 screen with a multi pane layout, should the action bar show the actions of both views ? or only the active view whatever that means Oct 17 13:17:48 is there a developer here ? Oct 17 13:18:12 GeekOnTrip: just ask your question. Oct 17 13:23:59 GeekOnTrip, are you trolling? Oct 17 13:24:08 i have a device like the S3 (same SOC) but the battery and the camera are different....can i take a S3 rom and modify it ? Oct 17 13:24:35 He's probably tripping Oct 17 13:25:14 GeekOnTrip, how does that have anything to do with development? Oct 17 13:25:33 yeah looks like he's on some bad acid Oct 17 13:26:35 no one else helped me, they all told me it is need to be to complie/develop a rom for the device so i thought that's the room to take advise in Oct 17 13:26:48 ... Oct 17 13:27:14 please take a look at this channel's topic Oct 17 13:28:52 Custom Roms ?! Oct 17 13:29:00 i see Oct 17 13:29:02 ok Oct 17 13:29:04 thanks Oct 17 13:30:14 http://www.sciencedirect.com/science/article/pii/S0306460314003153 Oct 17 13:32:51 ravilov: It seems that the event is carrying two pointers, even if only one went up ( MotionEvent.ACTION_POINTER_UP ). I'm using event.getPointerCount() for several different events (ACTION_DOWN, ACTION_POINTER_DOWN, ACTION_POINTER_UP) and always it seems to return the total number of pointers on the screen not the total number that pertain to the event. Am I doing something wrong? Oct 17 13:33:59 For example, If I place my first finger, wait, then place a second, then wait, then place a third, when the third is placed "ACTION_POINTER_DOWN" is fired, and event.getPointer() will be three, not one. Oct 17 13:35:18 Anybody? Oct 17 13:35:35 ha, looks like I missed one thing: http://developer.android.com/reference/android/view/MotionEvent.html#getActionIndex%28%29 Oct 17 13:36:02 mmmm, ok Oct 17 13:36:06 either way, nothing that couldn't be answered by looking at docs, it's even on the same page Oct 17 13:37:16 hello, is this the place to ask questions about android ndk? Oct 17 13:39:01 sure Oct 17 13:40:43 I want my shared library to build for all those architectures: armeabi-v7a, x86, armeabi-v7a-hard, arm64-v8a and x86_64 Oct 17 13:41:16 which ndk .tar.bz2 do I need? ndk32 one? ndk64 one? both? (but I think they both untar to the same android-ndkr10b) folder and have common files Oct 17 13:41:18 it's a bit unclear Oct 17 13:42:27 hey guys i grabbed latest maps demo, put the key in etc, but map is still blank.. 3 hrs of this ;/ Oct 17 13:42:37 god damn it, why does my "|" separated string get split by ""? Oct 17 13:43:11 I'm doing return mystring.split("|"); but every single character is returned Oct 17 13:43:39 it's a regex Oct 17 13:43:50 escape it Oct 17 13:44:33 guardian, I believe any ndk can build stuff for all the architectures Oct 17 13:45:16 Syzygy_, because String.split() actually uses regexes, and "|" is a special character for those Oct 17 13:45:30 I place the first finger down, I place a second finger down, I raise the second finger, getActionIndex returns 0 (it should return 1 right?) Oct 17 13:45:35 ravilov, so I can't use '|'? Oct 17 13:45:40 ravilov: ^ Oct 17 13:45:56 Syzygy_, plain and simple, even says so in the docs: http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#split%28java.lang.String%29 Oct 17 13:46:04 Syzygy_, who says you can't? Oct 17 13:46:55 deadmund, uh, no idea. I suggest making a test app that captures and dumps/logs all onTouch() events Oct 17 13:47:07 might have misunderstood you ravilov Oct 17 13:48:05 final String blah = "what|ever"; final String[] parts = blah.split("\\|"); Oct 17 13:48:07 my issue is that "skittles|smarties".split("|"); returns (,s,k,i,t,t,l,e,s,|,s,m,a,r,t,i,e,s) Oct 17 13:48:12 ah ok Oct 17 13:48:16 that might help Oct 17 13:48:20 I suggest reading about regexes ASAP Oct 17 13:48:38 ravilov: doesn't look like so, e.g. Only in android-ndk64-r10b/prebuilt: android-arm64 Oct 17 13:49:17 guardian, dunno, there might be an issue with building 64bit on 32bit and/or vice versa Oct 17 13:49:52 all I know is, my x86 ndk happily builds armeabi, armeabi-v7, mips and x86 libs Oct 17 13:50:05 ravilov, technically I know that stuff, but since I use regex so rarely I keep forgetting it. especially since I didn't think in the context of regex till just now :/ thanks for the help in any case Oct 17 13:50:19 hehe, that's okay Oct 17 13:50:44 guardian they split the NDK into two pieces because (I kid you not) their download server is limited to 512mb files Oct 17 13:51:05 if you want to build for all targets, 32 and 64 bits, in a single go, you have to download them both, and copy the contents of one into the folder of the other Oct 17 13:51:11 I agree the decision to interpret the separator as a regex in String.split() is quite random and unintuitive Oct 17 13:51:28 especially when there are other, proper classes to deal with regexes, like Pattern Oct 17 13:51:43 they could've just added a String.split(Pattern pattern) variant Oct 17 13:52:17 maybe inspired by AWK :) Oct 17 13:52:31 Chainfire, don't they have full control over their own download server? Oct 17 13:52:42 ravilov honestly, I don't even want to know Oct 17 13:52:46 this is ridiculous even for Google Oct 17 13:52:46 lol Oct 17 13:53:05 they also didn't include the instructions on doing this, but I have, and it works for me, to build to all targets in one command Oct 17 13:54:37 so on to my next problem :( Oct 17 13:56:45 you say that as if it's a bad thing Oct 17 13:58:33 guys...I have a problem. How can I modify a database entry? db.update() doesnt work properly ... it just creates another entry. I also tried raw SQL and it does the same thing ...I seriously dont know what to do -_- Oct 17 13:59:50 really? Oct 17 14:00:45 Chainfire: I untared only ndk64 and it seems I'm able to build for armeabi-v7a, I'm going to test on device Oct 17 14:02:54 luci1093, that's literally impossible, something must be broken on your end Oct 17 14:04:39 what is considered an editorAction? Oct 17 14:05:02 so ... my raw SQL or update() is made wrong? Oct 17 14:05:09 or could it be another problem? Oct 17 14:05:30 that would depend on a lot of factors Oct 17 14:06:08 hard to tell without any piece of code Oct 17 14:10:25 hi Oct 17 14:10:41 i have a fragment with onOptionsItemSelected but when i click, is not go to click, why? Oct 17 14:10:52 so based on ID I am acutally filling some edit texts from the db so I dont have to write all the entry's data all over again if I want to update just one thing from that entry. And I tought that I should modify the entry based on ID ... am I doing it right? ... db.update(table, cv, "id="+id, null); Oct 17 14:16:11 luci1093, looks good, not sure why it wouldn't work as expected Oct 17 14:16:35 So I have a listview with elements that contains an edit text. I dynamically add an element to the edit text (on button press) and give it focus, however that doesn't seem to work. Oct 17 14:17:08 luci1093, although personally I'd prefer db.update(table, cv, "id=?", new String[] { id }); Oct 17 14:17:15 can anyone suggest why my google maps app works on genymotion but not on my real device? Oct 17 14:17:23 let me try that really quick Oct 17 14:17:47 luci1093, it probably won't help with your issue, it's just a nicer and safer way to do the same thing Oct 17 14:17:58 the params are probably object... so you don't need to create a string[] =) Oct 17 14:18:11 here is my code http://pastebin.com/KMvB5MPB Oct 17 14:18:15 asfdd, http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#update%28java.lang.String,%20android.content.ContentValues,%20java.lang.String,%20java.lang.String[]%29 Oct 17 14:18:43 ok =) Oct 17 14:18:44 hm, I forgot to mention my ID is an int ... would that be a problem? Oct 17 14:18:52 no Oct 17 14:19:07 if the compiler complains, use String.valueOf(id) Oct 17 14:19:44 yes, I was just asking Oct 17 14:23:31 Hello Oct 17 14:24:00 Chainfire: so building for armeabi-v7a with android-ndk32.xxx.tar.bz2 or with android-ndk64.xxx.tar.bz2 produces different binaries... great... Oct 17 14:24:35 so guys Oct 17 14:24:49 I am working on drag and drop stuff. To make it simple, i start dragging an element when i do a long click on it (setOnLongClickListenner -> startdrag) Oct 17 14:24:50 different how? maybe it's just the internal compile timestamp or something Oct 17 14:25:22 good point Oct 17 14:25:53 from what point its best to query the database to get data instead of making one query and keeping it in memory? Oct 17 14:26:01 but it works only with longclick. I tried to implement it with simple click, not working.. Like if with simple he doesnt has time to strat the drag. Because i did make it work with a simple OnClick, but it was in debug mode... Oct 17 14:26:57 my english hurt my own eyes ^^ Oct 17 14:30:30 guardian tbh I wouldn't be surprised if the NDK is updated later today or next week Oct 17 14:30:42 so might be something to worry about next week instead of today Oct 17 14:33:27 when my edit text receives focus, the softkeyboard doesn't always open. any idea what i could do to force it open? also, sometimes the text I type isn't displayed (but the string is updated later on, so it works). Oct 17 14:37:51 has anyone done a complex registration form before? Oct 17 14:44:50 never Oct 17 14:57:07 I need to test a friend's app (I don't have a phone) Oct 17 14:57:20 and on virtualbox it says "this device does not work with an emulator" Oct 17 14:57:32 how can I get around that Oct 17 14:57:41 javnut: try it with genymotion Oct 17 14:58:11 cezium: does it work on ubuntu? Oct 17 14:58:38 Yes Oct 17 14:58:46 https://cloud.genymotion.com/page/doc/ Oct 17 14:59:37 ok, downloading. thanks Oct 17 15:12:27 Hello Oct 17 15:12:46 What should i use for Vendor in CM when ro.product.maufacturer is unknown? ro.product.brand? Oct 17 15:15:19 Hi all. I got a question about building an intent that launches another app with some paramaters. For example, iOS the launch line will have these parameters ?action=setPickup&pickup[latitude]=37.775818&pickup[longitude]=-122.418028. Oct 17 15:15:40 So I create a new intent, use setAction(Intent.ACTION_SEND);, but how would I then add the paramaters? Oct 17 15:22:40 ThomQ: why did you use ACTION_SEND? Oct 17 15:23:41 ThomQ: to add extra information to an intent, you can use Intent.putExtra(), but it would be better if you discussed what you were actually trying to do Oct 17 15:23:51 Are you trying to open google maps? Oct 17 15:24:37 also if that's how you do it on ios, that's very unfortunate Oct 17 15:24:42 Estel: no the Uber app. Oct 17 15:25:00 yeah that's the only documentation they give you Oct 17 15:25:30 ThomQ: I suspect you can open the Android app in exactly the same way Oct 17 15:26:03 Ahhh, so they open it by URL? Oct 17 15:26:30 uber://?action=setPickup&pickup=my_location is the way to open it on iOS. Oct 17 15:26:46 Yes, I think you can do the same on Android Oct 17 15:27:17 Ahh k cool. I'll use a uribuilder then, thanks Oct 17 15:27:33 pretty dumb of me, should have spotted that Oct 17 15:27:48 guess my contempt for iOS once again made me ignore it :P Oct 17 15:28:14 :D Oct 17 15:47:53 can someone help me with this Oct 17 15:47:53 http://stackoverflow.com/questions/26367706/mediametadataretriever-getframeattime-return-first-frame-only Oct 17 15:56:04 How can I unit test parsing of custom xml variables for custom compound views? Oct 17 15:58:32 any good open source captcha libraries? Oct 17 15:58:57 sorry, wrong channel Oct 17 15:59:15 but if you do know one still let me know :P Oct 17 15:59:35 It's still not released? Oct 17 16:02:26 JacobTabak: Shouldn't L be released by now? Oct 17 16:02:36 i estimated 10 PST Oct 17 16:02:43 bvetween 10-2 PST Oct 17 16:03:52 Okay. Oct 17 16:04:09 5.0 sdk is out? Oct 17 16:04:15 Didn't see any news about it :/ Oct 17 16:04:27 good grief. everytime I go to #java I say im never going back. Oct 17 16:04:43 Is it out? Oct 17 16:04:47 mattblang: lol Oct 17 16:04:52 mattblang: The admins are terrible. Oct 17 16:04:53 Final API is out Oct 17 16:05:00 http://developer.android.com/about/versions/android-5.0.html Oct 17 16:05:30 cezium: Nice. Oct 17 16:06:02 TacticalJoke, SDK manager says yes Oct 17 16:06:02 TacticalJoke I go over there to ask if anyone has a recommendation for a java capcha library. dude starts talking about that Google thing. I look up and find recaptcha, a google web service that is free. I had mentioned that we want to keep it internal, so I mention that. he is like, no I meant you can go look yourself on Google. like wtf, I am doing that I just thought someone here might have a suggestion Oct 17 16:06:06 freaking ridiculous Oct 17 16:06:24 Yeah, they're terrible. Oct 17 16:06:42 The admins have the emotional age of the typical five-year-old. Oct 17 16:06:49 It's pretty much an insult room. Oct 17 16:07:00 looks like there are new preview system images Oct 17 16:07:15 So is everyone moving from ListView to RecyclerView now? Oct 17 16:07:25 yup HashBasedTable Oct 17 16:07:26 ugh Oct 17 16:07:29 yup: http://developer.android.com/preview/index.html Oct 17 16:08:03 Is RecyclerView gonna be more pleasant to use than ListView? Oct 17 16:08:10 blasphemy! The preview image link doesn't work! Oct 17 16:08:21 there we go, it works! Oct 17 16:09:17 I had to Ctrl+Shift+R http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#LOLLIPOP to get the new page. Oct 17 16:09:48 Oh, wait, maybe not. It just goes gray for some strange reason. Oct 17 16:10:39 Should I set targetSdkVersion to 21 even if I'm not gonna be able to test on Lollipop in a long time? Oct 17 16:11:17 they should have made it 22 Oct 17 16:11:24 and no, TacticalJoke Oct 17 16:11:29 can't download the documentation from sdk manager? Oct 17 16:11:33 but then again do you even have a production app ? :P Oct 17 16:11:39 It's not released yet. Oct 17 16:12:04 The thing is, if I don't set it high, people on new devices might have compatibility mode. *crowd groans* Oct 17 16:12:19 s/have/have to put up with/ Oct 17 16:12:37 JacobTabak: Can you give me one reason not to do this? Oct 17 16:12:47 I'm guessing it's "You need to test first". Oct 17 16:12:55 yeah that's not even worthy of a response Oct 17 16:12:58 its called compatibility mode for a reason Oct 17 16:13:02 haxm x86 (64) emulator? Oct 17 16:13:14 If I test with the emulator and it works, can I set targetSdkVersion to 21? Oct 17 16:14:04 JacobTabak did you ever go to sleep ? Oct 17 16:14:14 i woke up with the hiccups Oct 17 16:14:22 and still have them Oct 17 16:14:23 lol Oct 17 16:15:22 so i guess https://developer.android.com/about/versions/android-5.0.html Oct 17 16:15:44 The new emulator will have AOT compilation and ART, right? Oct 17 16:16:24 i can't get the documentation etiher, got a 404 in the sdk manager Oct 17 16:17:59 sigh Oct 17 16:18:03 only preview images Oct 17 16:19:02 the preview images are updated though? Oct 17 16:19:21 soi'm still confused what api 20 is - thats just for your watch component right ? Oct 17 16:19:27 4.4W yeah Oct 17 16:19:42 only the part of the project that runs on the watch Oct 17 16:19:43 i need to decide if im gonna install this on my phone Oct 17 16:19:56 no, it is its own API level Oct 17 16:20:01 it is complete Oct 17 16:20:26 i thought 20 was only the wearable apis Oct 17 16:20:29 * ravilov sits back and gets ready to watch this new frenzy Oct 17 16:20:36 no documentation sucks Oct 17 16:21:03 ravilov i was going to take it easy today, and then just ask JacobTabak about it later on Oct 17 16:21:13 hello Oct 17 16:21:15 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels Oct 17 16:21:20 suddenly mac stopped detecting my nexus 4 Oct 17 16:21:20 5.0 -> api21 Oct 17 16:21:31 i dont know why anyone ever faced something similar ? Oct 17 16:21:43 i am in a bad situation now :( Oct 17 16:21:45 shmoon what protocol... Oct 17 16:21:55 jug6ernaut: let me check Oct 17 16:22:19 jug6ernaut: um how do i get that info ? :P Oct 17 16:22:24 -_- Oct 17 16:22:31 really sorry Oct 17 16:22:32 shmoon when u say not detecting Oct 17 16:22:35 in what sense Oct 17 16:22:37 usb Oct 17 16:22:37 with what Oct 17 16:22:43 in android studio as well as android file transfer Oct 17 16:22:47 adb Oct 17 16:22:49 so adb Oct 17 16:22:54 ok Oct 17 16:23:00 go to a terminal and just do adb kill-server Oct 17 16:23:02 (that was supposed to be a simple question with a simple answer :p ) Oct 17 16:23:03 adb devices Oct 17 16:23:08 one sec Oct 17 16:23:16 ravilov lol Oct 17 16:23:29 shmoon, or just reboot your computer Oct 17 16:23:39 (works for windows, so...) Oct 17 16:23:41 If I run my app on the 21 emulator and it works, can I set targetSdkVersion to 21? Oct 17 16:23:42 i did, i thought maybe its mac's fault so i upgraded to yosemite Oct 17 16:23:43 aint no body got time for that Oct 17 16:23:52 TacticalJoke, yes Oct 17 16:23:53 it was mavericks before Oct 17 16:23:56 Okay. Oct 17 16:24:06 shmoon, in that case get a proper computer :p Oct 17 16:24:34 mac is not proper ? i spent a lot on this devie :( Oct 17 16:24:44 of course you did Oct 17 16:24:46 btw i am really orry for this stupid uestion but where is adb ? Oct 17 16:24:49 mac is an overpriced toy Oct 17 16:24:50 :p Oct 17 16:24:52 oh Oct 17 16:24:56 shmoon: In the SDK directory somewhere. Oct 17 16:24:58 my friend said its great for development Oct 17 16:25:01 Probably under platform-tools Oct 17 16:25:02 . Oct 17 16:25:03 mac is not computer Oct 17 16:25:21 gordon_: What is it? Oct 17 16:25:22 shmoon, it's great for graphics and video editing. development? hardly Oct 17 16:25:28 unless you're developing for ios Oct 17 16:25:42 found in platform-tools Oct 17 16:25:43 Loads of developers use Macs. Y'all be trippin' or some such. Oct 17 16:25:54 TacticalJoke, that doesn't make it good Oct 17 16:26:07 Some of the Android Studio developers use Macs, I think. Oct 17 16:26:14 lots of people eat fast food, so it must be healthy and good for you Oct 17 16:26:24 ./adb devices Oct 17 16:26:27 TacticalJoke: only thinkpad :P Oct 17 16:26:29 That's not the same argument. This is an argument from expertise. Oct 17 16:26:32 says list of devices attached and nothing after that line Oct 17 16:26:37 Experts use X while being all experty. Therefore, X is good. Oct 17 16:26:38 TacticalJoke, uhhuh Oct 17 16:27:03 (Or at least "X enables one to be an expert".) Oct 17 16:27:03 TacticalJoke, oh sorry, that last argument made it all believable so it must be true then :p Oct 17 16:27:08 ./adb kill-restart give me set of options Oct 17 16:27:18 kill-restart? where in the world was that mentioned? Oct 17 16:27:19 i am really scared, is my computer screwed? it'll delay my developent Oct 17 16:27:30 someone mentioned Oct 17 16:27:33 ok its kill-server sorry wait Oct 17 16:27:40 ...yes, your computer is totally and permanently fried because of a simple software problem Oct 17 16:27:45 Kill all the things. Oct 17 16:27:50 burninate Oct 17 16:27:51 with fire Oct 17 16:27:56 ok ./adb kill-server gave no output Oct 17 16:27:57 can someone help me with this Oct 17 16:27:58 http://stackoverflow.com/questions/26367706/mediametadataretriever-getframeattime-return-first-frame-only Oct 17 16:28:01 Or, as JacobTabak would say, *destroy* all the things. Oct 17 16:28:03 TacticalJoke: i wouldnt get it too seriously ;) Oct 17 16:28:10 took the usb out, plugged again, still not detected :s Oct 17 16:28:10 I use mac at work Oct 17 16:28:12 what are you talking about TacticalJoke Oct 17 16:28:15 and I hate it Oct 17 16:28:15 :D Oct 17 16:28:30 The whole kill/destroy distinction. Oct 17 16:28:32 if I could I'd just get thinkpad keyboard and install ubuntu on it Oct 17 16:28:38 wtf is this google helpouts spam banner blocking the documentation? Oct 17 16:28:41 delete[] things; Oct 17 16:28:45 or whatever linux distro Oct 17 16:28:57 i'd really appreciate if someone could help me fix this thing Oct 17 16:29:08 shmoon: Tried different USB cables? Oct 17 16:29:09 shmoon: what thing Oct 17 16:29:16 TacticalJoke: yup 2 of them, same problem Oct 17 16:29:18 gordon_, I've heard linux will run on just about anything, but on a thinkpad keyboard... Oct 17 16:29:30 reboot your phone? Oct 17 16:29:31 shmoon, what do you think people are doing? Oct 17 16:29:33 gordon_: my mac suddenly stopped detecting my nexus 4 in android studio as well as android file transfer Oct 17 16:29:35 And reboot Mac. Oct 17 16:29:37 ravilov: apple likes some weird wifi cards Oct 17 16:29:39 don't be ungrateful Oct 17 16:29:50 ravilov: sorry Oct 17 16:29:59 The level of help isn't enough. We need to upgrade to Professional Mode. Oct 17 16:30:03 gordon_, yeah but good luck installing a linux distro on a *keyboard* Oct 17 16:30:03 documentation is working now Oct 17 16:30:04 fyi Oct 17 16:30:12 shmoon: in apple conference they describe it as 'amazing' Oct 17 16:30:22 not detecting android? Oct 17 16:30:29 hi. I am joining here because nobody on the main channel could help me. I am trying to run https://code.google.com/p/androidscreencast/ on debian wheezy, to recover stuff from my broken device. I am getting the following error messages on executing "javaws androidscreencast.jnlp": http://paste.debian.net/127340/ looks like it can't connect to the android debug bridge?! Oct 17 16:30:36 Anyone able to download the latest image for Nexus 5 on http://developer.android.com/preview/index.html# It's just not doing anything for me. Oct 17 16:30:38 i did ./adb kill-server, let me restart mac, brb Oct 17 16:30:38 shmoon: maybe you're holding it wrong ? Oct 17 16:30:39 ;) Oct 17 16:30:49 so the thing is, the phone is getting charged Oct 17 16:30:52 gr8, nobody can help you here either, you're in the wrong channel. head over to #android-root Oct 17 16:31:12 could it be some filesystem issue, not sure Oct 17 16:31:15 ravilov: huh? Oct 17 16:31:18 dont get it Oct 17 16:31:29 gordon_, nevermind, I guess it went over your head :p Oct 17 16:31:30 ravilov: m( ok thank you Oct 17 16:31:31 (the keyboard part) Oct 17 16:32:05 Do I need Android SDK Build Tools #21? Oct 17 16:32:11 Hi everyone :) Oct 17 16:32:15 God, I'm praying Eclipse doesn't simply die when I do all this. Oct 17 16:32:20 dude, filesystem issue? you're just shooting in the dark, aren't you Oct 17 16:32:35 I'm totally new to Android dev, started today Oct 17 16:32:42 setup eclipse and stuff Oct 17 16:32:42 good for you Oct 17 16:32:55 dont use eclipse Oct 17 16:32:55 ALL THE STUFF Oct 17 16:33:00 Do use Eclipse. Oct 17 16:33:04 Because Android Studio sucks right now. Oct 17 16:33:06 dont ue eclipse Oct 17 16:33:07 eclipse++ Oct 17 16:33:13 Install all the Eclipses. Oct 17 16:33:18 eclipse will never die Oct 17 16:33:20 hi Oct 17 16:33:21 (AS might) Oct 17 16:33:22 and die opening xml Oct 17 16:33:31 support v7 21 make my project not compile Oct 17 16:33:35 am I the only one here? Oct 17 16:33:46 you're certainly the only one here talking about this, yes Oct 17 16:33:48 Android Studio: "Wanna do unit testing? Okay, maybe we'll implement that next year." Oct 17 16:34:08 the error is http://pastebin.com/YvKxmKYc (Android studio) Oct 17 16:34:09 TacticalJoke: what unit testing ? Oct 17 16:34:12 android unit testing ? Oct 17 16:34:15 gordon_: JVM unit testing. Oct 17 16:34:21 nuclear unit testing Oct 17 16:34:28 someone told you yesterday that he did that Oct 17 16:34:41 Someone jumped through hoops to get it working, yeah. And that might break at any time. Oct 17 16:34:58 as everything ~ Oct 17 16:35:02 hoopz Oct 17 16:35:06 anyway Oct 17 16:35:12 everyone's a basketball these days Oct 17 16:35:14 you can use normal android project in AS Oct 17 16:35:15 so... Oct 17 16:35:22 you dont need to use gradle Oct 17 16:35:33 what's that have to do with unit testing? Oct 17 16:35:40 so someone has a seuggestion how to fix that? Oct 17 16:35:43 So I would like you guys to recommend a book for me to learn more about Android development. I'm looking for an up to date book covering 4.0 and above. I did find video tutorials, but they're REALLY outdated, and I prefer books anyway. I do have Java experience, however no android experience. Recommed a book? Oct 17 16:36:16 I feel like Android is changing too quickly for a book to be worthy. Oct 17 16:36:20 yoavst, if someone did, don't you think they would speak by now? Oct 17 16:36:27 Oh. Oct 17 16:36:37 GreatBlitz: don't know about books, but you can filter by freshness on google search Oct 17 16:36:38 Then what should, be my resource? Oct 17 16:36:43 I could be wrong, but that's my impression. Oct 17 16:36:45 GreatBlitz, so you're one of those that prefer ancient paperbacks? Oct 17 16:36:48 Not sure. I just learned as I went, really. Oct 17 16:36:58 GreatBlitz, the answer is d.android.com Oct 17 16:36:58 The Android Developers site, I guess. Oct 17 16:37:00 ravilov, is that wrong? Oct 17 16:37:10 GreatBlitz: click search tools > any time > past year Oct 17 16:37:15 wrong? no. inconvenient and outdated? definitely Oct 17 16:37:27 BTW, Eclipse Just Works™. Oct 17 16:37:32 "inconvenient"? Why? :P Oct 17 16:37:36 you can't hit ctrl+f in a book Oct 17 16:37:43 books are bulky, big and heavy Oct 17 16:37:44 It takes ages to read books. Oct 17 16:37:54 nope nothing Oct 17 16:38:01 this is really strange Oct 17 16:38:04 So looks like we don't really have a reader community here do we :P Oct 17 16:38:08 suddenly it stops getting detected without any changes Oct 17 16:38:17 i restarted both phone and mac, still not detecting. but phone charges. Oct 17 16:38:25 If you're not new to programming, it shouldn't be too hard. Just realise that your Activity (i.e., screen) is destroyed and recreated every time the user rotates the screen. And every time Android gets low on memory and your app is running in the background. And so on. Oct 17 16:38:28 GreatBlitz, that is not true, everybody in here reads... just not paperbacks Oct 17 16:38:33 TacticalJoke: java devs are divided into two groups.. those who use intellij and those who dont use intellij *YET* Oct 17 16:38:47 I'll be happy to move to Android Studio once it stops being bad. Oct 17 16:38:58 this irc channel is divided in 2 groups. the groups chatting and the groups frantically rereleasing their apps for 5.0 :O Oct 17 16:39:13 JacobTabak: would like to use 5. Oct 17 16:39:14 0 Oct 17 16:39:14 JacobTabak, what about permanent idlers? Oct 17 16:39:20 but... galaxy nexus :( Oct 17 16:39:29 gordon_, once upon a time, in a land far far away. I used NetBeans. Then I switched to intelliJ. Then I made the heavenly switch to Eclipse. Oct 17 16:39:47 Is Eclipse gonna fail after I update build-related stuff? Oct 17 16:39:50 they say intellij is now far better Oct 17 16:39:50 hi Oct 17 16:39:52 I don't believe a word Oct 17 16:40:01 TacticalJoke, probably Oct 17 16:40:05 better make a backup of everything Oct 17 16:40:10 ravilov: yes... Oct 17 16:40:14 eclipse and it's plugins Oct 17 16:40:19 and best hibernate support Oct 17 16:40:23 and spring support Oct 17 16:40:34 gordon_, I use (and much prefer) eclipse Oct 17 16:40:36 just fyi Oct 17 16:40:40 I can't stand AS/intellij Oct 17 16:40:41 and launching project.. going for coffee... drink it Oct 17 16:40:52 and eclipse is still building workspace Oct 17 16:41:00 What do you guys think about open-sourcing apps? Oct 17 16:41:00 I have a mediaplayer that is on in the first activity. if I want to turned on or off in other activities how do I do? I dont want to make new mediaplayers again and again. Oct 17 16:41:02 what os are you using, gordon_? Oct 17 16:41:03 Oh, gawd, there's an ADT update for October. Oct 17 16:41:09 onces you intend on generating ad revenue from? Oct 17 16:41:15 I've heard people having problems with eclipse on anything not linux ;) Oct 17 16:41:30 or mac, ravilov Oct 17 16:41:37 oh nice support library got Toolbar Oct 17 16:41:43 TacticalJoke, is that surprising? Oct 17 16:41:45 Okay, I guess I have that. Oct 17 16:41:53 i work on linux. the latest updates I got , on eclipse was terrible. so I changed to Studio Oct 17 16:42:03 It says "This version of ADT is designed for use with SDK Tools r23.0.2". I'm at 23.0.2 now. Does that mean I shouldn't update SDK Tools? Oct 17 16:42:04 whatever works for you Oct 17 16:42:19 TacticalJoke: no Oct 17 16:42:36 TacticalJoke, I'd use common sense there if I were you, at least as a first attempt :p Oct 17 16:42:39 TacticalJoke: if you love ant so much Oct 17 16:42:46 you can use it with intellij too you know ? Oct 17 16:42:59 guys Oct 17 16:43:05 can you help me with this instead? Oct 17 16:43:07 (I'm aware common sense often times fails with google) Oct 17 16:43:22 My, my. gordon_ you sure are, an ardent supporter of intellij. Oct 17 16:43:32 peyam, right now everybody is too busy with upgrading to the latest and greatest SDK Oct 17 16:43:38 GreatBlitz: no, I reminded my previous job Oct 17 16:43:46 you what? Oct 17 16:43:52 newest updates are always has some problems Oct 17 16:43:58 I always wait Oct 17 16:44:00 save file and... building workspace Oct 17 16:44:09 tell it to the rest of local humanity Oct 17 16:44:13 *remembered Oct 17 16:44:16 I don't really love Ant. Oct 17 16:44:19 I just like that Eclipse works. Oct 17 16:44:29 Hell, I don't even like Maven. Oct 17 16:44:32 I'll wait for Gradle to Just Work™ before moving to Android Studio. Oct 17 16:44:41 Ant and Gradle too, forget it for me. Oct 17 16:44:49 Yeah, Gradle is slow as anything. Oct 17 16:44:55 you must be an incurable optimist :p Oct 17 16:44:55 is there someway to connect mac to android over wifi rather than usb to get around this? Oct 17 16:44:56 but im a newbie in android but love the editor . remember when I wrote in QtCreator it went so slow Oct 17 16:45:02 to "just work", hah Oct 17 16:45:03 shmoon: with root Oct 17 16:45:17 hm no idea how thtas done Oct 17 16:45:19 :/ Oct 17 16:45:26 shmoon, yeah you need root, but I doubt that would help any Oct 17 16:45:29 peyam: qtcreator and android ? Oct 17 16:45:35 TacticalJoke: I'd say it's there. A year ago, not so much. Oct 17 16:45:43 you mean NDK or qt on android ? Oct 17 16:45:46 gordon_, no when I wrote c++ but yes they had android sdk too Oct 17 16:45:56 ok Oct 17 16:45:59 i know they have ;) Oct 17 16:46:15 gordon_, never wrote any java in qt. only c++ with qt Oct 17 16:46:15 jjnye: It doesn't allow us to unit-test stuff. :[ Oct 17 16:46:20 Nor is it very fast. Oct 17 16:46:51 life is tough Oct 17 16:46:52 so guys. do you know how I make only one object of Mediaplayer and turn it off and on in the whole application? Oct 17 16:46:54 TacticalJoke: you mean unit test directly from the IDE? Oct 17 16:46:55 unnecessarily Oct 17 16:46:59 Yep. Oct 17 16:47:08 shmoon: Did you solve your problem? Oct 17 16:47:17 nope, its not solving Oct 17 16:47:23 TacticalJoke: my old coworker wrote this: https://github.com/evant/android-studio-unit-test-plugin Oct 17 16:47:29 restarted everything, disabled enabled that MTP thing in storage in phone Oct 17 16:47:38 i just dont know what has gone wrong Oct 17 16:47:54 Was there a Mac update? Oct 17 16:48:09 nope, i was on mavericks when it stopped working 2 days back Oct 17 16:48:14 jjnye: Interesting. Wonder whether it'll stay working. Oct 17 16:48:15 today i thought maybe i need to upgrade to yosemite so i did Oct 17 16:48:18 still not detecting Oct 17 16:48:39 TacticalJoke: yeah, i'll grant you that the plugin/apis have been a moving target Oct 17 16:48:41 peyam: sorry I havent used mediaplayer Oct 17 16:49:21 TacticalJoke: but we're using gradle to great effect with a complex project structure + flavors + build variants. it's made life very good for us Oct 17 16:50:14 I badly wanna move to AS. Just need unit testing and fast building. Sigh. Oct 17 16:50:31 I am able to break free of my Stockholm Syndrome and change IDE. Oct 17 16:50:51 And develop it all over again. Oct 17 16:51:44 Tbh I really like intellij idea Oct 17 16:51:45 TacticalJoke you aren't writing any tests for anything as long as your flapping your lips here! Oct 17 16:51:46 If IntelliJ is as good as everyone says, I will learn every single keyboard shortcut. Everything there is to know about it. Oct 17 16:52:24 TacticalJoke: our build time is dominated by two build steps that are are dependent and not parallelizable at the build tool level: proguard and dex Oct 17 16:52:37 TacticalJoke: you won't learn every keyboard shortcut Oct 17 16:52:45 i've been using it for years and still learn new things Oct 17 16:53:07 TacticalJoke: but that doesn't mean you shouldn't switch :P even if you won't switch to gradle Oct 17 16:53:13 I was never motivated to learn the keyboard shortcuts in Eclipse. Always kinda sucked. I knew a lot in Visual Studio and Borland Delphi. Oct 17 16:53:36 Eclipse is terrible Oct 17 16:53:38 hi, I'm trying to import a gradle project in eclipse ADT, and getting this error: "Could not find any version that matches com.android.support:support-v4:19.0.+.", but Android Support Library is installed Oct 17 16:53:41 I kinda feel like Gradle is *the* way of doing Android development in Android Studio. Feels weird not using it. Oct 17 16:54:08 TacticalJoke: AS might strong-arm you into it, IntelliJ is more flexible Oct 17 16:56:44 setViewName is gone Oct 17 16:56:49 what happened to that Oct 17 16:58:27 TacticalJoke, Robolectric works pretty nicely with AS once you get it to work :) Oct 17 16:58:35 please stop Oct 17 16:58:40 "As Ice Cream Sandwich rolls out to more devices" ... i guess things aren't updated completely Oct 17 16:58:44 :) Oct 17 16:58:49 Is it safe to update Eclipse? I'm using the ADT plugin separately. Oct 17 16:59:02 It always seems a risky proposition to update eclipse Oct 17 16:59:18 What also concerns me is that ADT itself has updates. :[ Oct 17 16:59:31 Every update is basically "This could be the end of Android development". Oct 17 17:00:37 Going to take a while to get my head around/into new support Oct 17 17:00:38 oookay, time to backup everything and install the updated preview awesomeness! Oct 17 17:00:41 Hi everyone Oct 17 17:00:46 a stabler OS here I come! Oct 17 17:01:01 Wazzup? Oct 17 17:01:22 I was looking at some code in my friend's app, and he had this class defined named App extends android.app.Application Oct 17 17:01:24 hi. how can I know the package ID of an apk I have? Oct 17 17:01:26 where the fk is the setViewName method?? Oct 17 17:01:51 I sometimes wish I were one of those noob programmers who didn't know about unit testing. Oct 17 17:01:56 don't* Oct 17 17:01:58 and else where in the code, he was using App app = (Application) App(); Oct 17 17:02:03 I ALWAYS WISH YOU WOULD STOP TALKING ABOUT IT Oct 17 17:02:06 what does this method actually do?? Oct 17 17:02:27 JacobTabak, who are you talking to? Oct 17 17:02:30 emacster: What is "App()"? Oct 17 17:02:33 TacticalJoke of course Oct 17 17:02:38 emacster, casting getApp to Application is reduntant :) Oct 17 17:02:43 You don't want him to talk about unit testing? Oct 17 17:02:49 he doesn't talk about it Oct 17 17:02:54 he bitches about how it isnt supported teh way he likes Oct 17 17:02:55 non stop Oct 17 17:02:58 oh lol Oct 17 17:02:58 its the only thing he ever talks about Oct 17 17:03:07 Hey. getApp() gets an instance of your application Oct 17 17:03:11 I want to move to Android Studio. This is stopping me. Oct 17 17:03:17 Didn't notice that. Yeah TacticalJoke, I work with CircleCI and Robolectric and AS Oct 17 17:03:22 so your argument is invalid Oct 17 17:03:25 someitms you need it for context stuff Oct 17 17:03:27 tricknology_ ohh Oct 17 17:03:28 Robolectric works wonderfully with AS Oct 17 17:03:28 I think it was a bad idea to delete .gradle folder Oct 17 17:03:32 ok Oct 17 17:03:35 :/ Oct 17 17:03:44 Afzal: O rly? Oct 17 17:03:50 yesrls Oct 17 17:03:51 rly* Oct 17 17:03:56 MikeWallaceDev what should be used instead? Oct 17 17:04:12 TacticalJoke, here: https://github.com/JCAndKSolutions/android-unit-test Oct 17 17:04:13 emacster, just getApp() is fine... Oct 17 17:04:19 ok Oct 17 17:04:28 but he might want to cast it to his implementation of Application Oct 17 17:04:29 Ah, a plugin which might suddenly stop working one day. Oct 17 17:04:36 wow...are you serious? Oct 17 17:04:43 emacster: see here http://stackoverflow.com/questions/3826905/singletons-vs-application-context-in-android/3827166#3827166 Oct 17 17:04:46 so can it be used in any other class other than the App class itself? Oct 17 17:04:55 emacster: I think it's cleaner to use static variables in an Application subclass. Oct 17 17:04:59 Avoids all that casting ugliness. Oct 17 17:05:12 Afzal: In Eclipse, I *know* that unit testing works and will continue to work. Oct 17 17:05:15 well.. Oct 17 17:05:17 TacticalJoke hmmm Oct 17 17:05:20 classes that are in the scope of you app Oct 17 17:05:22 that's what I thought Oct 17 17:05:24 can you stop? Oct 17 17:05:41 TacticalJoke, yeah sorry you're just talking nonsense now. The plugin is open source and you can fix it if it stops working. Do you want to be spoonfed? Oct 17 17:05:58 I use it to house my wrappers Oct 17 17:06:10 Uhh, I just want the IDE to work. I don't want to have to fix it when it breaks. Oct 17 17:06:17 emacster: makes it easier to get them, just pass mApp around Oct 17 17:06:20 okay cool. Oct 17 17:06:29 I disagree with you there Afzal , wanting to use a tool doesn't mean that I want to fix it Oct 17 17:06:36 tricknology_ yeah Oct 17 17:06:56 I just want you to stop talking about it Oct 17 17:07:02 there are so many *interesting* things to talk about Oct 17 17:07:08 android L was just released Oct 17 17:07:18 MikeWallaceDev, not even the point Mike, the tool works right now. He's talking about a hypothetical scenario where it would suddenly stop working. There is nothing currently to make it behave unexpectedly right now Oct 17 17:07:20 yet you bring this issue up and argue with it about ANYONE EVERY SINGLE DAY Oct 17 17:07:51 I'm trying to send an http patch request via apache http client Oct 17 17:08:02 Afzal, I didn't say that I didn't agree with the overall idea, just that particular point :) Oct 17 17:08:02 JacobTabak, use the ignore command :) Oct 17 17:08:13 there's no such method defined Oct 17 17:08:15 oh okay Oct 17 17:08:18 Afzal its even more annoying seeing people arguing with him when i cant read it Oct 17 17:08:22 and then I found http://stackoverflow.com/questions/12207373/http-patch-request-from-android Oct 17 17:08:37 lol sorry, I didn't realize he did that every day :/ Oct 17 17:08:37 some peoples toxicity extends beyond their own words Oct 17 17:08:43 Imagine the day when Android Studio implements first-class support for unit testing. Oct 17 17:08:46 I will go strangely silent. Oct 17 17:08:51 Oh, come on. Oct 17 17:08:51 but there's no NotThreadSafe to be found anywhere in org.apache.http!! Oct 17 17:08:52 TacticalJoke will you please stop ! Oct 17 17:08:52 I'm not toxic. Oct 17 17:08:58 jesus christ, anough with this ! Oct 17 17:09:04 g00s: With what? Talking about unit testing? Oct 17 17:09:12 for fuck sake yes Oct 17 17:09:15 lol Oct 17 17:09:27 ./thread Oct 17 17:10:13 tricknology, bash: permission denied: ./thread Oct 17 17:10:32 ugh, it's tricknology_ Oct 17 17:10:40 -bash: ./thread: No such file or directory Oct 17 17:10:45 g00s: The topic continues only because everyone says "Zomg why don't you use Android Studio?!". Oct 17 17:10:56 I don't keep bringing it up. I keep getting battled about my use of Eclipse. Oct 17 17:11:00 alright fine, I at least gave you the file :p Oct 17 17:11:31 Hi Afzal Oct 17 17:11:49 what's up tricknology_ Oct 17 17:12:00 I use Eclipse, TacticalJoke, you’r enot the only one Oct 17 17:12:04 for many reasons Oct 17 17:12:10 tricknology_ noooo Oct 17 17:12:12 I am glad I'm not the only one. :D Oct 17 17:12:19 i just got this error maybe i should switch to eclipse Oct 17 17:12:20 Error:Error: In DataSet 'main', no data file for changedFile '/Users/jacob/AndroidProjects/timehop-master/app/src/main/res/values-v21/themes.xml'. This is an internal error in the incremental builds code; to work around it, try doing a full clean build. Oct 17 17:12:23 it’s annoying sometimes but I kind of like it Oct 17 17:12:31 JacobTabak, nooo1 Oct 17 17:12:39 Don't I need Android SDK Build-tools version 21 if I'm targeting 21? It seems to work while targeting 19. Weird. Oct 17 17:12:50 It’s like those funky old pair of shoes that fit your feet so well. Even though they leak water in the rain and smell like hell Oct 17 17:13:04 lol tricknology Oct 17 17:13:05 TacticalJoke, I thought build-tools was related to gradle Oct 17 17:13:06 +_ Oct 17 17:13:15 Oh. Oct 17 17:13:24 :D Oct 17 17:15:58 We should form an Eclipse Users support group. Oct 17 17:16:03 It's tough in these Android Studio times. Oct 17 17:16:09 The scale option for the AVDs is completely wrong :/ Oct 17 17:17:51 Afzal: the SDK build tools contains stuff like dex and aapt, not the gradle plugin or anything Oct 17 17:18:07 Estel: genymotion Oct 17 17:18:09 Afzal: the gradle plugin might require certain versions of the build tools, but that's separate Oct 17 17:19:12 TacticalJoke technically that would be adt-dev google group, but i think they are mostly discussing gradle / AS these days XD Oct 17 17:19:15 gordon_: just booting the L image for a look Oct 17 17:19:22 goddamn my keyboard doesnt work in the L emulator Oct 17 17:19:32 any fix? Oct 17 17:19:34 i have to use the soft keyboard Oct 17 17:19:39 the new avd manager is shit Oct 17 17:19:52 JacobTabak good shit or bad shit ? Oct 17 17:20:24 bad Oct 17 17:20:29 yay most of my stuff i did for l preview still works Oct 17 17:20:34 I like it, find it easier to do what I want Oct 17 17:20:36 can’t set it to hardkey? Oct 17 17:20:40 i can't figure out how Oct 17 17:20:47 Anyone on fedora able to get a emulator running? Oct 17 17:20:47 i dont want to dick around with it right now Oct 17 17:22:00 I’m wearing a fedora right now Oct 17 17:22:23 sry, it’s Friday Oct 17 17:22:25 great im getting crasehs on the render thread Oct 17 17:22:29 fucking Oct 17 17:22:35 sry language Oct 17 17:22:37 ughhhh Oct 17 17:22:53 Fatal signal 4 (SIGILL), code 2, fault addr 0xb731e37c in tid 2509 (RenderThread) Oct 17 17:23:10 JacobTabak do you think a dingleberry exploded ? Oct 17 17:23:21 I enjoy seeing the apps still in the emulator that were built for API3 or something. Still looking just as bad :D Oct 17 17:23:23 g00s this is pure stock lollipop lovelieness Oct 17 17:23:48 Estel music player :) Oct 17 17:24:28 Search and gallery too :) Oct 17 17:24:51 well 5 years from now we'll probably be looking at material stuff and saying, omg that was so lame Oct 17 17:26:10 If I wanna back up before updating "Android SDK Tools" and "Androi DSK Platform-tools", do I just back up sdk-dir/tools and sdk-dir/platform-tools? Oct 17 17:26:13 Android* Oct 17 17:26:23 Maybe, but at least there's a design team doing it; iirc there basically wasn't a single designer working on Android until ~2.3. Or it certainly seems it... Oct 17 17:27:38 I like the idea of apps changing the status-bar colour to suit. Oct 17 17:28:36 Estel: I feel like Android is a university student's pet project. Oct 17 17:28:47 Well you're wrong. Oct 17 17:29:13 Hey guys. For your studio projects, do you keep .iml files in version control? Oct 17 17:29:21 Okay. Thanks for letting me know, Estel. :D Oct 17 17:29:27 :D Oct 17 17:29:35 zambo no Oct 17 17:29:39 zambo: I do Oct 17 17:29:46 why? Oct 17 17:29:50 They recommend that you do, but tbh I don't know why. Oct 17 17:29:56 makes no sense Oct 17 17:29:59 It's a pain, but only a minor one Oct 17 17:30:03 theres 0 benefit Oct 17 17:30:18 can’t run the project from a clean checkout? Oct 17 17:30:31 you can, just import it Oct 17 17:30:36 rather than open Oct 17 17:30:45 JakeWharton http://www.gizmag.com/bottleloft-beer-fridge/34289/ Oct 17 17:30:56 There's a big discussion on stackoverflow somewhere Oct 17 17:32:14 Estel: Do you think that Android's API is well designed? Oct 17 17:32:26 Generally speaking. Oct 17 17:32:38 stop trolling TacticalJoke Oct 17 17:32:39 please Oct 17 17:32:42 just leave and never come back Oct 17 17:33:19 JacobTabak: You're the troll in here. You are also obsessed with me. Oct 17 17:34:26 you only ever come here and pick fights about how much you hate android and all the tooling Oct 17 17:34:37 you haven't contributed one thing ever Oct 17 17:35:00 I come in here to vent about how much the Android API and tooling, in general, sucks. Yes. Why is that controversial? Oct 17 17:35:11 You guys all use it, and you're generally knowledgable. Oct 17 17:35:28 Why is any single thing I say even remotely controversial? It's bizarre to me. Oct 17 17:35:36 knowledgeable* Oct 17 17:35:46 because we're trying to get shit done and you just bitch Oct 17 17:35:50 and nobody cares Oct 17 17:35:53 so just stop Oct 17 17:36:11 i'm here to help people and talk about relevant issues to android Oct 17 17:36:18 not here you provoke people into defending the tooling Oct 17 17:36:21 hear* Oct 17 17:36:25 every single goddamn day Oct 17 17:36:52 Nah, I'm not trying to get people to defend it. That's the complete opposite of my motivation. Oct 17 17:37:09 Okay, then put me on ignore, JacobTabak. Oct 17 17:37:11 Do it right now. Oct 17 17:37:13 I’ll be back in a couple hours when this shit cools down Oct 17 17:37:13 Never speak to me again. Oct 17 17:37:21 my issue is with you provoking other people Oct 17 17:37:25 and then i have to listen to them argue with you Oct 17 17:38:21 Hi guys Oct 17 17:38:58 is there any way to download sdk 23.0.5 ? without getting the old one and updating it ? Oct 17 17:39:00 JacobTabak: I'm sick of how much you complain about me. My god. I can barely type a message without you poking fun at me in some way. Oct 17 17:39:03 And then you encourage everyone else, too. Oct 17 17:39:31 TacticalJoke let's compromise Oct 17 17:39:47 when is android L comin? Oct 17 17:39:51 its called lolipop? Oct 17 17:39:52 You two should do this in PM :P Oct 17 17:39:56 good call Estel Oct 17 17:40:01 sorry everyone Oct 17 17:40:15 I'd rather just not talk about anything. Oct 17 17:40:56 shmoon: That or Lemon Drops Oct 17 17:41:30 can i upgrade right away? maybe that might fix my device not detecting problem in mac Oct 17 17:41:52 JacobTabak, thanks for your help yesterday about how to request some setting to be provided by Android app to your Android library Oct 17 17:42:41 shmoon: upgrade your device? OTA rollouts aren't until next month Oct 17 17:43:38 I have another concern regarding Android library development: I need to make HTTP requests from my library, those are just a "fire and forget" network calls so I would like them to be async Oct 17 17:43:44 hm ok Oct 17 17:43:59 kluyg make an intent service Oct 17 17:43:59 there is a nice android library already available for that: http://loopj.com/android-async-http/ Oct 17 17:44:19 JacobTabak so that is the common approach? Oct 17 17:44:34 yes, you want to avoid usign 3rd party libraries in your sdks Oct 17 17:44:38 as much as possible Oct 17 17:44:46 yes, that was my concern Oct 17 17:44:47 intent services is a queue that always runs in a background thread Oct 17 17:44:52 so you dont need to worry about threading Oct 17 17:44:57 and it handles one request at a time Oct 17 17:45:01 cool, that works, thanks a lot Oct 17 17:45:05 did you guys notice, "samples for sdk" is missing for 21 ? Oct 17 17:45:58 g00s: backed Oct 17 17:46:08 all my L stuff broke Oct 17 17:46:16 getting native crashes on scene transitions Oct 17 17:46:18 :( Oct 17 17:49:18 ok Oct 17 17:49:29 so if my android mounts on windows then that could mean its a mac issue but not android? Oct 17 17:49:36 like i want to understand which side te issue persits? Oct 17 17:49:40 persists* Oct 17 17:53:33 shmoon: is this a development issue? Oct 17 17:54:36 shmoon: Did your Mac update recently? (I didn't see an answer before, so I'm double checking.) Oct 17 17:56:54 the problem has persisted for the past 2-3 days. today i restarted and upgraded my mac from mavericks to yosemite. still not working Oct 17 17:57:07 2-3 days back it just suddenly stopped detecting nothing had changed back then iirc Oct 17 17:59:18 JacobTabak, I'm reading the docs about inten services and I'm confused, you said that it always runs in a background thread, but the docs say that the service runs in the UI thread Oct 17 18:00:18 kluyg: onHandleIntent() is on a background thread Oct 17 18:00:24 Which is where you do the work Oct 17 18:01:05 Estel, thanks, maybe I'm reading the wrong docs (http://developer.android.com/guide/components/services.html) Oct 17 18:01:33 I followed the link from IntentService page http://developer.android.com/reference/android/app/IntentService.html Oct 17 18:01:34 kluyg: https://developer.android.com/training/run-background-service/create-service.html or http://developer.android.com/reference/android/app/IntentService.html#onHandleIntent(android.content.Intent) Oct 17 18:02:15 An IntentService is a special example of a service that invokes a worker thread to do the work Oct 17 18:02:16 Estel first link is very helpful, thanks! Oct 17 18:02:47 s/special example/subclass Oct 17 18:05:06 http://storage.googleapis.com/androiddevelopers/finalpreview/hammerhead-lpx13d-preview-f7596f51.tgz is the system image for nexus 5, if anyone else can't get chrome to work, like me. Oct 17 18:05:10 does this new Runnable () {} thing run in a background thread? Oct 17 18:06:51 "An IntentService also needs an entry in your application manifest." - should I ask the users of my SDK to add my IntentService to their manifest? Is there any way to hide that implementation detail and just provide a simple facade class which hides the details about how I do async calls? Oct 17 18:07:22 where's build.prop? I'm looking through monitor and I can't find it Oct 17 18:08:28 shmoon a runnable does not run in any specific thread Oct 17 18:08:38 you can do new Thread(runnable).start() Oct 17 18:08:49 which is a naive way to start the runnable in a different thread. Oct 17 18:10:54 JacobTabak: basically i am getting this error and dunno whats wrong Oct 17 18:10:54 The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(2131427330, class android.widget.ListView) with Adapter Oct 17 18:11:11 https://chris.banes.me/2014/10/17/appcompat-v21/ Oct 17 18:11:12 did you call notifydatasetchanged? Oct 17 18:11:19 thanks g00s Oct 17 18:11:23 is it because of notifyDataSetChanged in parse's findinbackground method or what i wonder Oct 17 18:11:41 ;) Oct 17 18:11:48 i am JacobTabak http://pastie.org/private/crtka8tkileymg7grrkrq Oct 17 18:11:51 is a snippet from activit Oct 17 18:12:05 yeah you cant do that in a background thread Oct 17 18:12:11 call runOnUiThread() when you update teh adapter Oct 17 18:12:53 you mean replace line 33 with http://pastie.org/9656963 ? Oct 17 18:16:56 Nexus 9 in store Oct 17 18:18:58 what about 6 Oct 17 18:19:21 That's not being made available for a couple of weeks Oct 17 18:20:00 Nexus Player has a price but isn't listed as available in the UK... Oct 17 18:21:32 Oof. Nexus 6 is surprisingly expensive. Oct 17 18:21:44 read a good article about why Oct 17 18:21:48 and im' happy that it is Oct 17 18:21:54 because the nexus 5 had a trash battery and a trash camera Oct 17 18:22:07 and i'd rather not have a dev phone + a personal phone Oct 17 18:22:16 and that would be more expensive anyway Oct 17 18:22:29 JacobTabak: Heh. We’ve got more hardware than we can handle here. :-) Oct 17 18:22:35 google is going to have to work hard with the carriers this time :) Oct 17 18:22:39 to sell those things Oct 17 18:22:57 So an expensive Nexus device is just a PITA for us. Granted, we’re an edge case in that regard. Oct 17 18:23:14 JacobTabak: ami right? Oct 17 18:23:31 man this lollipop build is nice Oct 17 18:23:36 shmoon yes, add the data to the adapter and call notifydatasetchanged in the same runnable Oct 17 18:23:46 you want those to be run at the exact same time Oct 17 18:24:03 if you add the data to the adapter on the background thread and call notifydatasetchanged on UI thread you will have a problem Oct 17 18:24:04 sometimes Oct 17 18:24:44 jfpoole i feel like you need to have all devices from all mfgers or just 1 nexus phone and 1 nexus tablet, being somewhere inbetween doesnt help much Oct 17 18:25:10 maybe 1 sense, one touchwiz too Oct 17 18:25:19 and whatever the motorola one is Oct 17 18:25:24 is there a simpler way to update map camera on initial page load besides using ViewTreeObserver? Oct 17 18:25:34 i guess 5 would be the ideal device pool for me but that would be expensive to maintain Oct 17 18:25:46 So this is unfortunate. I bought a Mac Mini from Amazon to be my dev machine so I could do iOS ports if needed. Literaly two days after I received it Apple announced the new one. I wonder if I could return it, lol. Oct 17 18:25:54 JacobTabak: We’ve found having a device with each of the major SoCs is incredibly useful. Oct 17 18:26:15 e.g., we’ve found bugs on an Intel or MIPS device that didn’t occur on an ARM device. Oct 17 18:26:19 i suppose, depends what you're doing Oct 17 18:26:23 native libs, for sure Oct 17 18:26:28 or hardware-level stuff Oct 17 18:26:33 I'm guessing that apps running on pre-21 Android won't be able to change the status-bar colour. Right? Oct 17 18:26:33 mattblang: Amazon’s return policy is fairly generous. Oct 17 18:26:55 mattblang: Did you get a quad-core or dual-core mini? Oct 17 18:27:02 TacticalJoke there are ways in 4.4 Oct 17 18:27:07 JacobTabak: oh then i should have something like this http://pastie.org/9656988 ? change is runuithread inside the parent runnable ? Oct 17 18:27:17 jfpoole the dual core. it was the $599 one before. now it is $499 with the newer gen processor Oct 17 18:27:31 no shmoon that doesnt look right Oct 17 18:27:47 whats the appeal of mac mini? Oct 17 18:27:50 i dont follow their products Oct 17 18:27:57 is it less expensive/moderately powerful? Oct 17 18:27:59 JacobTabak cheapest way to do ios dev Oct 17 18:28:09 JacobTabak: Small, power-efficient, reasonably powerful. Oct 17 18:28:09 JacobTabak no screen, no peripheals, just the computer Oct 17 18:28:11 cool, how does it compare to a macbook pro Oct 17 18:28:27 JacobTabak: Depends on the MacBook Pro. :-) Oct 17 18:28:37 JacobTabak: then how ? previously i just had notifydatasetchanged in the runuithread Oct 17 18:28:42 Performance is competitive, especially if you get an SSD. Oct 17 18:28:54 TacticalJoke: https://github.com/jgilfelt/SystemBarTint -- as low as 19. Oct 17 18:29:15 JacobTabak I bought one, and literaly two days after receiving Apple announced the new generation with updated processor and new OS. Haha, talk about bad timing Oct 17 18:29:17 Okay. Oct 17 18:30:53 mattblang: always check macrumors.com before buying mac products :) Oct 17 18:30:58 shmoon something like this http://pastebin.com/yut0spHF Oct 17 18:30:58 puzzle quest doesnt work on lollipop >_> .. there goes my commute Oct 17 18:31:11 ananth123_ yeah, I'm a Mac noob lol Oct 17 18:31:24 macs are for hipsters Oct 17 18:31:55 mac store usually let u exchange... i guess amazon might be generous too... tried asking them ? Oct 17 18:33:22 ananth123_ the live chat people couldn't tell me much, going to try calling Oct 17 18:33:36 mattblang: you could probably get away with returning, though dunno which country you're in Oct 17 18:33:42 mattblang: good luck :) Oct 17 18:33:45 Estel US Oct 17 18:34:05 TachyonDevWrk yeah, but contract form a doctor who wants an iOS component is not for hipsters ;) Oct 17 18:34:16 TachyonDevWrk *from Oct 17 18:34:31 You had a contract from Doctor Who? xD Oct 17 18:34:50 Estel lol!! Oct 17 18:35:19 ananth123_ thanks, I will let you know how it goes if I call them Oct 17 18:35:20 mattblang: can you just select Return on Amazon? Oct 17 18:35:29 i see thanks a lot JacobTabak Oct 17 18:35:31 I can automatically return pretty much anything I've bought in the last month Oct 17 18:35:44 I need to push a file to a avd I made with genymotion, I have the android sdk and everything but don't know how to do it Oct 17 18:35:50 mattblang in US you can easily return the Apple product you just bought and get a new one, if you want. So bad timing doesn't really apply Oct 17 18:35:55 shmoon so the takehome is dont touch your adapter data outside of the main thread, and always call notifydatasetchanged immediately afterwards Oct 17 18:36:01 I get this error in monitor Failed to push selection: Read-only file system Oct 17 18:36:13 Estel I can, but I have no idea what the return policy is. They mention unopened, and they mentioned damaged, but they don't mention opened but not damaged Oct 17 18:36:15 cool thanks bud Oct 17 18:36:27 Estel And I probably wouldn't even return if they adjusted the price Oct 17 18:37:16 kluyg well, I bought from Amazon not Apple Oct 17 18:37:36 mattblang same thing, AFAIK Oct 17 18:38:03 should I had child directly to the toolbar for extended header? Oct 17 18:41:49 hey guys.. what are some reasons why someone wouldn’t be able to find an app on the app store? Oct 17 18:42:06 if you're a tablet Oct 17 18:42:12 and require camera or telephony features Oct 17 18:42:13 tricknology_: searching on device or on the web? Oct 17 18:42:19 country limitations Oct 17 18:42:20 on the device Oct 17 18:42:25 A million reasons Oct 17 18:42:36 if the android developer option is not enabled and i connect i via usb to the computer it Oct 17 18:42:36 it’s an asus padfone Oct 17 18:42:38 x Oct 17 18:42:40 phone will still charge? Oct 17 18:43:07 shmoon: uhhh, yes Oct 17 18:43:23 ok Oct 17 18:43:39 i really wonder why phone suddenly stopped getting detected by android filte transfer Oct 17 18:44:19 JacobTabak and Estel, not a tablet: http://www.asus.com/us/Phones/ASUS_PadFone_X_US/specifications/ Oct 17 18:44:21 becaues yosemite? Oct 17 18:44:24 has everythign other devices do Oct 17 18:44:35 I updated and now this person can’t find the app in the store.. Oct 17 18:44:39 was not working in mavericks either since a past few days Oct 17 18:44:42 2nd ASUS padfone Oct 17 18:44:45 tricknology_: what's in your AndroidManifest? Oct 17 18:44:46 lets try to debug this shit Oct 17 18:44:52 minSDK 3.0 Oct 17 18:45:01 uses-feature bluetooth Oct 17 18:45:02 is the runtime option important i mean does it matter ? currently its dalvik the other option is ART Oct 17 18:45:04 only things I changed Oct 17 18:45:07 does it require arm chipset tricknology_ ? Oct 17 18:45:09 that has an intel cpu Oct 17 18:45:18 hmmmmm good question Oct 17 18:45:28 I can run it on HAXM x86 emulator.. Oct 17 18:45:36 tricknology_ did you put required=true | false ? Oct 17 18:45:42 false Oct 17 18:46:07 i did that because there was in issue with an HP tablet that didn’t have bluetooth whatsoever Oct 17 18:46:14 but they were able to at least see the listing Oct 17 18:46:17 but couldn’t download Oct 17 18:47:21 so.. tell me about this processor problem becuase that may be it.. even though it can run on HAXM x86 emulator.. Oct 17 18:47:34 seems to be the only variable that is different from all the others Oct 17 18:48:22 I’m pretty sure there is no C code in there but who knows with the SDKs I have Oct 17 18:48:29 i dont know man just guessin Oct 17 18:48:38 anyone able to launch an avd from android studio's stupid avd manager/ Oct 17 18:48:44 i can only launch it from the choose device screen when running Oct 17 18:48:52 ^reasons why I don’t use AS yet Oct 17 18:48:59 you still have access to the old tools Oct 17 18:49:14 this is just a feature Oct 17 18:49:17 that's in beta Oct 17 18:49:48 The new AVD manager isn't even in Beta, it's a canary release.. Oct 17 18:50:48 JacobTabak: the run button worked for me in WIndows, but it's proving more fickle in OSX. Oct 17 18:50:54 thanks for the useful answer Oct 17 18:51:50 it’s beta, shit happens and you spend hours tryign to figure out if it’s you or the prog.. Oct 17 18:53:38 i was reading the first answer here http://www.reddit.com/r/nexus4/comments/1k1akl/nexus_4_not_showing_up_as_a_media_device/ Oct 17 18:53:42 where is the device manager? Oct 17 18:54:42 shmoon: this is the wrong channel Oct 17 18:55:12 :/ Oct 17 18:56:21 i ask android dev questions only, suddenly my mac stopped detecting my nexus 4 so am trying to troubleshoot the issue Oct 17 18:57:06 when I open activity and then back, my Toolbar which set as actionbar disaper Oct 17 18:57:07 why? Oct 17 18:57:15 disappear* Oct 17 18:57:33 aah Oct 17 18:57:37 check this out guys: Oct 17 18:57:41 http://docs.apportable.com/publishing Oct 17 18:58:21 may not be relevant Oct 17 19:02:31 um, is there going to be an AS release today ? Oct 17 19:02:50 i changed my build tools to 21 and keep on getting internal ide errors :) Oct 17 19:03:05 Hello, someone know how fix, java.io.IOException: SERVICE_NOT_AVAILABLE when try do GCM Register ? Myabe my account is blocked Because i run alot request for test my app. Oct 17 19:04:19 is it an emulator Oct 17 19:15:22 I've noticed a significant number of HTTP 502's being retured from GCM recently. There are no header suggestions returned, just generic HTML with the famous "Error 502 (Server Error)!!1" Oct 17 19:15:45 how do I get material to work in my app on kitkat? Oct 17 19:15:50 it uses PreferenceActivity Oct 17 19:18:37 phao, so, maybe is problem in GCM ? Oct 17 19:18:42 and not in my app ? Oct 17 19:21:24 upmauro do you have google play services on the device? is it an emulator? Oct 17 19:22:10 JacobTabak, yes, i have. I using both, 2 hours ago my app works, but now stopped. Oct 17 19:24:08 anyone gotten Lollipop yet? Oct 17 19:24:26 I'm sure this is the first time this question has been asked today right :P Oct 17 19:25:38 btw about my mac not detecting android Oct 17 19:25:43 does re-downloading adt help? Oct 17 19:27:39 over adb? does the phone and cable work w/ other systems? Oct 17 19:27:56 it's probably either a) a charge-only cable. f those. or b) permissions issue Oct 17 19:28:14 'dmesg' should work on a mac (might need 'sudo dmesg', not sure). Look to see if you get a USB device enumerated. Oct 17 19:29:45 it charges Oct 17 19:29:49 shmoon you could try deleting ~/.android Oct 17 19:29:52 it was working till 3 days back Oct 17 19:30:12 Is there some Google USB Driver thing you can try? Oct 17 19:30:28 it should just work Oct 17 19:30:58 i will try deleting Oct 17 19:31:10 hope it doesnt have any important dtaa Oct 17 19:31:50 avds Oct 17 19:31:56 done Oct 17 19:31:58 unless you put stuff in there Oct 17 19:32:10 and your debug key, which isn't important Oct 17 19:32:24 how do I show the ic_drawer in the new toolbar? Oct 17 19:32:36 hm Oct 17 19:32:47 plugged out and in android file transfer still says no android devie found Oct 17 19:33:26 https://stackoverflow.com/questions/26432160/service-not-avalaible-when-call-register Oct 17 19:34:16 dragorn: i get a lotof msgs on dmesg Oct 17 19:34:17 who uses android studio on windows? is there a way to fight the aliasing of the text? Oct 17 19:34:45 turn on cleartype? Oct 17 19:34:57 next? Oct 17 19:35:29 shmoon: plug in the phone and look at the last dozen. but if you say it worked a few days ago, it's probably not a cable or permission issue unless you also updated osx or osmething Oct 17 19:35:36 but i don't use osx, so i'm a bad debug example Oct 17 19:37:13 dragorn: i get msgs like these http://pastie.org/9657120 Oct 17 19:38:19 hey g00s Oct 17 19:38:56 hi there Oct 17 19:40:43 Is there a new guide for the new toolbar? Oct 17 19:40:43 *good guide Oct 17 19:40:43 Does anyone else get "aapt.exe has stopped working" when using appcompat 21 ? Oct 17 19:41:18 darken: yea, I fixed it Oct 17 19:41:22 use build tools 20 Oct 17 19:41:34 that's not the solution i was hoping for :D Oct 17 19:41:50 yoavst: guide for what exactly? Oct 17 19:42:08 Napalm: Drawer icon, Spinner Oct 17 19:42:13 everything you could do with actionbar Oct 17 19:42:29 it already already has an implementation for it Oct 17 19:42:39 the one thats deprecated Oct 17 19:42:59 Napalm: you mean I need to setSupportActionBar and then deprecated methods? Oct 17 19:44:02 yoavst: if you just want ActionBar stuff use ActionBar Oct 17 19:44:02 lol Oct 17 19:44:06 what would a dropping of API Level 15 give me, anything good? Oct 17 19:44:26 hey mattblang Oct 17 19:44:32 Napalm: Well, I want to use the new toolbar, which for now seem unfeatured. Oct 17 19:44:34 dropping as in making v16 your min? Oct 17 19:44:41 Napalm hey man! yeah Oct 17 19:44:42 pff Oct 17 19:44:46 yoavst: looks fine to me Oct 17 19:45:10 Hey guys, if you don;t knwo.. you should check out TestFairy.com Oct 17 19:45:11 Napalm luckily, think I convinced management to let me drop Level 10. Level 15 is still a tad too high I think, but it is getting lower every week. Curious what dropping it would do Oct 17 19:45:17 i remember being at IO when 10 was announced and we got those shitty tablets Oct 17 19:45:22 It’s the successor to TestFlight Oct 17 19:45:22 Napalm: so beside title and menu, what more you can do with it? Oct 17 19:45:36 yoavst: just create a class that extends Toolbar, super the constructors.. and call setSupportActionBar Oct 17 19:45:39 and it is AWESOME.. and free Oct 17 19:45:47 try hairyfairy.com too Oct 17 19:46:00 mattblang: we now set our minSdkVersion to 14 Oct 17 19:46:04 ICS+ Oct 17 19:46:21 risky click TachyonDevWrk Oct 17 19:46:21 we are 10+ Oct 17 19:46:33 TachyonDevWrk thankfully, I think I convinced management to let me drop 10 Oct 17 19:46:34 tricknology: yeah no idea where that goes Oct 17 19:46:37 HairyFairy is for sale if anyoen want it Oct 17 19:46:41 lol Oct 17 19:46:41 I do now.. lul Oct 17 19:46:47 TachyonDevWrk usage dipped below 5 percent last week Oct 17 19:47:03 hey TachyonDevWrk Oct 17 19:47:06 long time Oct 17 19:47:11 yeah well when ever user is paying you like 5/mo .. we cant drop it Oct 17 19:47:13 Napalm, yeah seriously Oct 17 19:47:28 I hope your updating your app with Material theme in appcompat Oct 17 19:47:35 hey Napalm Oct 17 19:47:41 whome? Oct 17 19:47:43 Napalm: I don't understand. I already set it as ActionBar. But beside the menu stuff, to do things like in the "old actionbar" you need to use the deprecated methods for actionbar? Oct 17 19:47:48 TachyonDevWrk oh yeah, no doubt. what percent level 10 users do yall have? Oct 17 19:48:05 mattblang, we arent representative because we are B2B Oct 17 19:48:12 yoavst: yes Oct 17 19:48:24 Napalm: so why are them deprecated? Oct 17 19:48:38 TachyonDevWrk oh yeah, I know. that is why Im curious Oct 17 19:48:51 because the idea is to move over to Toolbar Oct 17 19:49:16 does anybody from slack or cotap hang in here? Oct 17 19:49:21 cheers, any name of design pattern Google uses in eg. Maps, to pull up search results from bottom of screen? Oct 17 19:49:28 Napalm: But if you fully move to toolbar, you lose a lot of functionallity Oct 17 19:49:37 yoavst: like what? Oct 17 19:50:13 App bar drop down Oct 17 19:50:16 as in the guidelines Oct 17 19:50:37 yoavst: not sure what you mean.. can you link me to a pic? Oct 17 19:50:46 navigation modes are deprecated Oct 17 19:51:00 http://i.imgur.com/BTDizQO.png Oct 17 19:51:02 yoavst: What do we lose? Oct 17 19:51:06 g00s: yea, but you can just extend Toolbar and implement it.. its not diff Oct 17 19:52:10 how do you use Drop down navigation with the new toolbar, for example Oct 17 19:53:07 ugh the L emulator is so ugh Oct 17 19:53:30 super fast? Oct 17 19:53:30 :p Oct 17 19:53:36 soooooooo fast Oct 17 19:53:49 I didn't found a drop down navigation in the toolbar class, but it is described in the guidelines. so How can I implement it with the toolbar? Oct 17 19:54:12 do you understand me Napalm ? Oct 17 19:55:04 yoavst: yes, are you trying to use AppCompat? Oct 17 19:55:16 sure Oct 17 19:55:17 huh? do you? DO YOU?? Oct 17 19:59:06 so then is build-tools 21 busted with appcompat 21 ? Oct 17 19:59:46 g00s, i can't get it to work =/ Oct 17 20:00:20 is it even documented design principle or just Google way of doing things? pulling up "list results" shows the list, but you can also drag it down, kind of similar to google music design Oct 17 20:00:32 hmyeah i guess it was dumb of me to update this stuff. this always happens Oct 17 20:00:50 cannot find that design patter in guidelines Oct 17 20:02:35 darken ahh https://code.google.com/p/android/issues/detail?id=77629&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Oct 17 20:02:45 oops https://code.google.com/p/android/issues/detail?id=77629 Oct 17 20:02:54 So my app works on 5.0. *fireworks hit the skies* Oct 17 20:03:35 darken are you using windows ? Oct 17 20:03:42 g00s, yeah, thx for the link Oct 17 20:03:55 i should know better by now, never play on patching day... Oct 17 20:04:13 TacticalJoke congrats :) Oct 17 20:06:30 Thanks. :) Oct 17 20:08:00 darken but thats kind of weird, basically they didn't test aapt on win 8.1 64 bit Oct 17 20:08:12 g00s, win 7 64bit <- Oct 17 20:08:15 anyone having aapt.exe crashing problems after updating to 21? Oct 17 20:08:23 Yes, there's a bug report Oct 17 20:08:25 mattblang, welcome to the club Oct 17 20:08:39 darken ahh, I see now Oct 17 20:08:58 darken does this club have an open bar? Oct 17 20:09:13 i wish Oct 17 20:09:16 Bah, Windows has completely broken and the start menu has disappeared :( Oct 17 20:09:22 Jon Skeet still answers question every day. Oct 17 20:09:30 But I can't restart because one application is using just the right JVM that it took a day to configure Oct 17 20:09:32 I remember him from the C# newsgroups, years ago. The guy is so efficient. Oct 17 20:09:50 Shame he's not doing Android development. He used to be the go-to guy for any question about anything in C#. Oct 17 20:10:07 made a stackoverflow post, but i guess the solution will be "wait for an update", http://stackoverflow.com/questions/26432658/ Oct 17 20:12:00 I love these exciting days where you can Google an XML attribute and there isn't one single result on Google Oct 17 20:12:29 when exactly do I see a layout? it's in onCreate, yea? Oct 17 20:12:31 not onStart() Oct 17 20:12:45 Odaym: if it's an activity, yes Oct 17 20:12:46 well of course god damn it, setCOntnetView is inside onCreate Oct 17 20:13:26 anyone seeing this: "appcompat\res\drawable-hdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited" Oct 17 20:13:30 what about onResume Oct 17 20:13:41 is that considered also as "where I see the layout"? Oct 17 20:14:10 Napalm how did you do that :) Oct 17 20:15:11 ah i know Oct 17 20:15:33 PATH update Oct 17 20:15:52 Odaym: what are you trying to do? Oct 17 20:17:45 g00s: what platform you on win 8.1? Oct 17 20:20:04 how do you suppose to redistribute your SDK for Android? So far looks like library project can't be distributed as a JAR, but most SDKs I saw (for Android) are distributed like jars... Oct 17 20:21:46 Napalm, yep since the new sdk i believe Oct 17 20:22:06 Does anyone know a trick to get screenshots of all locales ? Oct 17 20:24:20 Napalm OS X 10.7.5 Oct 17 20:25:12 So if you have 40 languages, i have to make 120 screenshots? for phone, small tablet, big tablet? then drag drop everything into google play? Oct 17 20:25:33 by the time I'm done with that android 6.0 is out with a new ui... Oct 17 20:27:23 hmm, NapalmOSX... sounds interesting Oct 17 20:27:40 ravilov :D Oct 17 20:27:52 g00s: did you say you were having problems with AAPT? Oct 17 20:28:03 Napalm no i was just following the bug tracker Oct 17 20:28:42 i had AS do 'internal error' a few times but i didn't look into it Oct 17 20:29:08 Has anyone had issues with HAXM on OSX with Yosemite? Oct 17 20:30:18 emacs 24.4 rc1 :) Oct 17 20:30:39 darken: it should be possible to generate the screenshots in automated manner... Oct 17 20:30:58 yea ive done that Oct 17 20:31:07 i had an app with 50 different flavors with different color schemes etc Oct 17 20:31:40 some code (instrumentation? Monkey?) to get you to chosen locations, probably with faked data, + call for screenshot and save it Oct 17 20:32:06 i would have thought AS can do it, as it does already allow you to screenshot previews and allows you to preview all languages Oct 17 20:38:17 darken: depends how far are you going with some stuff Oct 17 20:38:43 dynamically generated views (for example some kind of dynamic drawing done by app/user) won't show in preview Oct 17 20:38:52 but it's definitely automateable Oct 17 20:39:31 does the new AVD manager not work either? Oct 17 20:41:13 doesn't seem to work from AS, works when using it directly Oct 17 20:44:49 man I just had an android test on hackerrank Oct 17 20:44:55 found it difficult Oct 17 20:45:28 stuff that you need to have seen first hand Oct 17 20:45:54 no way Oct 17 20:45:58 they're gonna know I googled Oct 17 20:48:33 fucking yes Oct 17 20:48:34 yes Oct 17 20:48:34 yes Oct 17 20:48:34 yes Oct 17 20:48:40 g00s Oct 17 20:48:42 finally Oct 17 20:48:45 guess what Oct 17 20:49:02 check out \platforms\android-21\data\res\drawable-nodpi\platlogo.xml Oct 17 20:49:11 <.....> Oct 17 20:49:15 vector drawables! Oct 17 20:49:23 yussssss Oct 17 20:49:26 what's that even mean!! Oct 17 20:49:37 Napalm cool ! Oct 17 20:49:37 TachyonDevWrk Oct 17 20:49:52 I have to see if this works in the new L Preview Oct 17 20:49:53 !! Oct 17 20:50:03 you should take such a test, JacobTabak Oct 17 20:50:05 is there any changelog for the 21 build tools ? Oct 17 20:50:10 im sure it would make you feel humble :P Oct 17 20:50:14 ? Oct 17 20:50:16 i am reinstalling everything now Oct 17 20:50:21 hackerrank Oct 17 20:50:26 from android studio to eclipse to adt to everything Oct 17 20:50:33 wit the hope that mac will detect my phone :D Oct 17 20:50:35 I applied somewhere and they said I had to take this test Oct 17 20:50:40 i'm not a good programmer Oct 17 20:50:43 hi Oct 17 20:50:54 i am on fragment, how i can acces the viarble from activity? Oct 17 20:51:04 it's generally a bad practice t0th_-_ Oct 17 20:51:09 they asked a LOT about fragments Oct 17 20:51:11 the point of fragments is to be decoupled Oct 17 20:51:16 how long did it take? Oct 17 20:51:20 60 min Oct 17 20:51:32 whats is the best partice? Oct 17 20:51:33 1st question I think was passing arguments to fragments, in what shape should it be Oct 17 20:51:36 I answered bundle Oct 17 20:51:43 parcelable Oct 17 20:51:47 ? Oct 17 20:52:04 that wasn't part of the choice, there was static and bundle and one other thing Oct 17 20:52:13 oh yeah bundle for sure Oct 17 20:52:20 i thought you were implying that you goti t wrong Oct 17 20:52:26 so what was your score Oct 17 20:52:31 they dont say Oct 17 20:52:35 its for the company Oct 17 20:53:01 so all these new design things like cards and all in android L will be backward compatible to android 4 and above? Oct 17 20:53:12 so if i code for android L it will look the same from 4-5 ? Oct 17 20:53:24 If you use the appcompat library, yes Oct 17 20:53:25 any? Oct 17 20:53:27 whats is the best partice? Oct 17 20:53:32 i thought there would be more to the CardView; its just a framelayout with fancy bling Oct 17 20:53:46 thats cool ma Oct 17 20:53:57 t0th_-_ what type of variable? Oct 17 20:54:03 object Oct 17 20:54:07 what type of object Oct 17 20:54:13 t0th_-_: are you trying to access the fragment's object from the activity class? Oct 17 20:54:20 maybe i made a big mistake by upgragint to yosemite, now i am doing so much work upgrading shit Oct 17 20:54:28 i didnt know it got released yesterday only Oct 17 20:54:31 elsewouldnt have don Oct 17 20:54:33 t0th_-_ the suggested way is to pass a fragment argument into the fragment Oct 17 20:54:43 ok Oct 17 20:54:45 i undestarnd Oct 17 20:55:29 hi g00s ;) Oct 17 20:55:35 Freaking finally have HAXM working Oct 17 20:55:37 hey gdrc Oct 17 20:56:30 shmoon: is a mistake upgrade? Oct 17 20:57:00 its always a mistake to update too much crap at once :) Oct 17 20:57:01 ya upgrading Oct 17 20:57:04 Estel: what was your problem? Oct 17 20:57:44 they dont have a test for android on there Odaym Oct 17 20:57:49 must have been a private one Oct 17 20:57:59 gdrc: it doesn't install on Yosemite because of unsigned kernel libraries, or something Oct 17 20:58:40 I use genymotion at work on mac Oct 17 20:58:58 can i make the app store icon for yosemite go away Oct 17 20:59:04 i hate badge icons Oct 17 20:59:09 JacobTabak: are you on yosemite? Oct 17 20:59:14 no Oct 17 20:59:16 i dont want to upgarde right now Oct 17 20:59:25 ya dont make that mistake i think Oct 17 20:59:52 my android phone stopped getting detected on mavericks and i upgraded to yosemite :/ Oct 17 21:00:21 At home I don't use OS X anymore because of AoE 3 HD Oct 17 21:01:46 That's a good reason Oct 17 21:05:22 why does the new io.reactivex:rxandroid had dependencies on the support library ? Oct 17 21:07:05 yea I guess private Oct 17 21:07:16 Im upgrading right now Oct 17 21:07:44 can't wait for the new old shit Oct 17 21:29:00 Hi there...I've been trying to run an AVD for the last days. I always get the infamous "Could not open" error. I've tried to install (Ubuntu 64bit) Eclipse+ADT and Android Studio and I always get the same error. I've googled, tried a lot of different solutions and still...I can't figure out how to run a AVD. Added the paths to the bashrc file but it doesn't work. I think it might be something related to permissions.Anyone willing to help? Oct 17 21:29:57 hm? Oct 17 21:30:12 how do you run avd Oct 17 21:30:46 anyway, standard android emulator is slow, you might want to try genymotion Oct 17 21:32:38 ok...i'm a newbie with android-dev and all that, maybe I'm saying something wrong.On Eclipse or Android Studio when I open the AVD manager I can create one virtual device but I get that error when try to run it. Oct 17 21:33:13 ok that's interesting...so I could basically use eclipse or android-studio for everything else and test whatever I need to test with genymotion? Oct 17 21:33:36 yes Oct 17 21:33:46 Everyone here agrees the AVDs are shit. Unless you have real need, it's way easier to setup Genymotion instead Oct 17 21:34:14 avd is not eclipse or android studio exclusive Oct 17 21:34:19 its separate thing Oct 17 21:35:05 nope absolutely not...I'm just trying to get started with android-dev and that AVD error is giving me headaches...ok I get it now. I'l totally check it! Oct 17 21:35:43 anyway...Eclipse or Android Studio? Oct 17 21:35:57 * Ashiren grabs the popcorn Oct 17 21:36:41 :) Oct 17 21:36:55 If you've no experience with either, go with Studio :P but some disagree Oct 17 21:37:44 rena_: Android Studio doesn't support unit testing on the JVM. If you need that, go with Eclipse. Oct 17 21:38:25 Oh really, you should have said earlier :P Oct 17 21:39:19 lol...ok I get it it's one of those questions...no problem I'll try both :D Oct 17 21:39:28 thank you guys Oct 17 21:40:01 It's a holy war, basically. Oct 17 21:40:03 Though it shouldn't be. Oct 17 21:42:27 fucking atm fraud Oct 17 21:47:28 man they didnt' fix the duplicate c2d permission bug in L Oct 17 21:47:47 if you have a .dev and a regualr biuld Oct 17 21:47:49 cant install them both Oct 17 21:48:22 you can add a facet so that you can test on the jvm Oct 17 21:48:32 android studio doesn't support it automatically Oct 17 21:48:33 JacobTabak: I haven't had that issue and I'm using .dev .jenkins and release Oct 17 21:48:40 but you can add a facet to your project to make it a java project and testable Oct 17 21:48:45 and i'm not on L Oct 17 21:48:52 its an issue with the L emulator Oct 17 21:48:54 at least you can on intellij, should work the same on android studio Oct 17 21:48:55 or L devices Oct 17 21:49:24 But was fine on previous versions? Oct 17 21:50:52 yes Oct 17 21:51:09 you can't have 2 apps register for the same C2D permission Oct 17 21:51:14 Oh Oct 17 21:51:17 maybe its a feature Oct 17 21:51:18 you want the same versions Oct 17 21:51:29 like same package name? Oct 17 21:51:31 yea like before i'd get pushes on both my debug/release builds Oct 17 21:51:44 i think only 1 app can get them now Oct 17 21:51:45 update the package in the manifest Oct 17 21:52:02 for the registered permission. Oct 17 21:52:04 im sure i can find a workaround, just annoying Oct 17 21:53:43 JacobTabak: use ${applicationId} to fix that Oct 17 21:54:00 yea no worries Oct 17 21:54:02 just annoying! Oct 17 21:59:08 when is the final image gonna be ready Oct 17 21:59:12 im super souped to install it Oct 17 21:59:20 cmon googs babe Oct 17 22:05:01 hey people Oct 17 22:05:08 happy Caturday Oct 17 22:05:12 how do you fix this Oct 17 22:05:16 (gif uploading) Oct 17 22:05:22 http://g.recordit.co/nygSaqAN55.gif Oct 17 22:05:27 see how it jumps over the actionbar? Oct 17 22:05:37 in an activity shared element transition Oct 17 22:05:40 and i mean the navigation bar Oct 17 22:05:46 i want that mofo to stay behind the navigation bar Oct 17 22:07:50 JacobTabak: its probably a issue with your theme having the navigation transluenct theme and/or setting it in code so theres a delay between activities Oct 17 22:08:13 anyoen versed on building x86 compatible applications? apparently those with x86 arcitechture cannot see my app on the store Oct 17 22:08:16 yea the photo detail screen has a translucent nav bar Oct 17 22:08:29 i just can't figure out how to fix it Oct 17 22:08:33 and it happens for the actionbar too :| Oct 17 22:09:36 and man Oct 17 22:09:37 JacobTabak: dont set it in the theme, instead set it on the Window attributes in code. Oct 17 22:09:49 hmm Oct 17 22:09:51 whats the difference? Oct 17 22:09:53 tricknology: are you using any NDK/jni librarys? Oct 17 22:09:58 tricknology_, you need to compile your native code for x86 as well or play store will filter it. Oct 17 22:10:15 also Napalm seems like after i do too many transitions i get out of memory errors Oct 17 22:10:29 i'm only holding on to one bitmap in memory and i remove it as soon as the animation is done Oct 17 22:10:35 :\ Oct 17 22:11:06 JacobTabak: the theme is used in the TYPE_APPLICATION_STARTING window (fake activity window) whilst the activity loads Oct 17 22:11:31 meaning for a split section the activity has translucent nav Oct 17 22:11:35 ahhh Oct 17 22:11:39 thanks! i'll give it a shot Oct 17 22:11:45 *second Oct 17 22:12:00 but i mean i intentionally haev it that way because i dont want the actionbar to show up on the FTUE Oct 17 22:12:02 while its loading Oct 17 22:12:08 bummer Oct 17 22:12:23 but it may be worth it Oct 17 22:12:24 in this case Oct 17 22:12:33 JacobTabak: you can set FLAG_TRANSLUCENT_NAVIGATION in code on the Window Oct 17 22:12:54 JacobTabak: loading is only for a split second.. then it loads the image whilst the activity is in a resumed state Oct 17 22:13:13 JacobTabak: your better off removing it from your theme and doing it in code Oct 17 22:13:17 ok, thanks! Oct 17 22:13:27 want a function for it Oct 17 22:13:30 got one around here Oct 17 22:13:37 sure, if it's not obvious Oct 17 22:14:05 man, i'm almost sure there's a memory leak with the shared element transitions Oct 17 22:14:16 it even happened in the material witness app Oct 17 22:14:54 JacobTabak: https://gist.github.com/slightfoot/41fe61a9327615ecf392 Oct 17 22:15:10 and when do you call that in teh activity lifecycle? Oct 17 22:15:19 Napalm. I am not, Mavrik: I am aware of this now btu I would liek some documentation on how to build an x86 compatible app. Oct 17 22:15:34 …hoping I don’t have to rewrite the thing. Oct 17 22:15:40 uh. Oct 17 22:15:43 tricknology_: all apps are x86 compatible if your dont use JNI/NDK Oct 17 22:15:44 There is no documentation. Oct 17 22:15:54 Anything you write in java is x86 compatible. Oct 17 22:16:13 anything that uses native code needs to also build x86 executables Oct 17 22:16:51 ok. Someone has worked on the app before me. It is poissible that it does use JNI/NDK.. could that be the resolt of using some SDK that contains support or something else? Oct 17 22:16:52 and mips Oct 17 22:17:00 p_l thanks, how do I go about doing that? Oct 17 22:17:01 (yes, there are android devices running on mips) Oct 17 22:17:20 hmm Oct 17 22:17:31 zinx, do we know of any actual phones or tablets out there? Oct 17 22:17:33 they aren't very popular though :P Oct 17 22:17:41 tricknology_: if you use NDK for anything, consult the NDK docs (sparse as they are) on NDK build system, there were instructions on setting arches to build for Oct 17 22:17:44 tricknology_, what do you mean "it is possible"? GO AND CHECK! Oct 17 22:17:52 Mavrik: i think they're internal company stuff tbqh Oct 17 22:17:59 there's libs/ folders around Oct 17 22:18:11 zinx, yeah, I've never seen any in the wild at alla Oct 17 22:18:14 I didn’t do it personally so I’m not sure. And I guess I would have no idea where to look Oct 17 22:18:17 not even wierd chinese stuff. Oct 17 22:18:19 Mavrik thanks Oct 17 22:18:24 Mavrik: because you have to port it yourself Oct 17 22:18:29 there are some MIPS tablets that don't pass CTS in India, etc. etc. Oct 17 22:18:38 the port i'm aware of is to a device that doesn't even have an mmu (!!) Oct 17 22:18:48 :) Oct 17 22:18:59 yeah, we don't build MIPS binaries atm Oct 17 22:20:02 MIPS could be a good "canary" build, however, for checking if you have architecture specific code Oct 17 22:20:32 as in, build only "reference" code that doesn't use any assembler or anything like that, to verify you didn't miss something run it on MIPS emulator Oct 17 22:20:55 ah, I use x86 for that Oct 17 22:21:03 and just gearing up for ARM64/x86_64 builds Oct 17 22:21:14 considering the barf of errors I got from NDK 10c it's gonna be a fun ride Oct 17 22:21:40 W about x86 and emulators.. Oct 17 22:22:07 Q: the app runs on a HAXM x86 emulator.. should it not? Oct 17 22:22:21 or is there something completely different going on? Oct 17 22:22:38 does the emulator emulate an ARM processor? Oct 17 22:23:12 haxm is pretty much a (comparatively lobotomized) equivalent of KVM/VMware/VirtualBox Oct 17 22:23:56 gotcha Oct 17 22:24:26 on linux, the emulator uses KVM Oct 17 22:24:34 Mavrik, abotu this /libs/ Oct 17 22:24:57 are you referring to the project/libs/ folder? Oct 17 22:25:04 technically, it means it should be possible to run hw-accelerated emulator on some ARM running linux... good luck finding an ARM device you won't kill yourself dealing with ;) Oct 17 22:26:13 tricknology_, yes, that is where native code is usually stored in subfolders by architecture Oct 17 22:26:23 Raspberry Pi is one Oct 17 22:26:33 yeah there is none.. Oct 17 22:26:46 jsut support .jars Oct 17 22:27:12 let me rephrase.. the app is visible to everyone but those with x86 processors Oct 17 22:27:36 tricknology_: RPi is... not that great ;) Oct 17 22:27:50 tricknology_, if you have no native code, then x86 is not the issue Oct 17 22:27:55 look for the problem elsewhere Oct 17 22:27:59 haha well.. there’s one at least. relatively easy Oct 17 22:28:13 for starters, check your store listing and see what the store detects as required features. Oct 17 22:28:17 gah, Mavrik. That is the only think I can think of that’s listed on the filters page Oct 17 22:28:19 tricknology_: there's some way to check 'badging' of an APK using tools in SDK Oct 17 22:28:22 and see which devices are excluded. Oct 17 22:28:35 this is not Oct 17 22:28:37 I have done that Oct 17 22:28:52 RPi is also ARMv6 while IIRC Android 4.x+ runs only on ARMv7 Oct 17 22:28:54 this device has everything.. it came out like last week Oct 17 22:29:05 Mavrik, I see Oct 17 22:29:28 tricknology_, checking play store listing you get on APK details is what the store uses for filtering Oct 17 22:29:31 p_l i will look into this.. what am I looking for? Oct 17 22:29:33 so that's by far your best bet. Oct 17 22:29:39 Mavrik I havem I’m on the page now Oct 17 22:29:46 http://developer.android.com/google/play/filters.html Oct 17 22:30:01 I’ll scrutinize it a bit more though, thanks Oct 17 22:30:06 Mavrik: Android 4.x can run on v6. The bigger problem is that RPi's pitiful CPU can't run KVM/arm ;) Oct 17 22:30:59 is there a list somewhere on the dev console that shows me which devices are excluded and why? (if not there should be) Oct 17 22:31:05 does force close call onDestroy? Oct 17 22:31:43 jab416171, no, it kills the process. Oct 17 22:32:04 Mavrik, thanks, that's what I thought Oct 17 22:32:15 this kills the process Oct 17 22:32:21 8< Oct 17 22:33:41 hey Mavrik playing with the new toys :D Oct 17 22:35:34 here is the uses/permission/feature/sdk portion of my manifest: http://pastebin.com/y2rmqyuL Oct 17 22:35:44 nothing in there should exclude this phone Oct 17 22:35:49 err hybrid? Oct 17 22:36:19 After I updated ADT (in Eclipse), Eclipse lost all the update sites. Did that happen to anyone else? Oct 17 22:36:21 shucks you cant use ternery in toString Oct 17 22:36:23 http://www.att.com/cellphones/asus/padfone-x.html#fbid=dm3uTCn2OoJ Oct 17 22:36:25 tricknology_ i'd remove the uses-features for bt Oct 17 22:36:33 need that Oct 17 22:36:45 there is like 1 or 2 devices that don’t have BT Oct 17 22:36:48 a HP tablet.. Oct 17 22:36:54 is the default false ? Oct 17 22:37:03 because the permission implies those Oct 17 22:37:13 yeah, it is not required to use the app Oct 17 22:37:27 tha app checks for BT when using features, yada yada Oct 17 22:38:13 i think i see the problem :) Oct 17 22:38:20 oh lawd Oct 17 22:38:30 external storage? Oct 17 22:38:35 you have a permission in your uses-feature Oct 17 22:38:41 uses-feature android.hardware.bluetooth Oct 17 22:38:46 LOL Oct 17 22:39:00 :D Oct 17 22:39:07 thanks g00s Oct 17 22:39:11 yw ;) Oct 17 22:39:40 weird that it runs fine on the emulator.. and other devices Oct 17 22:39:41 ffff Oct 17 22:39:44 they still havent fixed it Oct 17 22:39:45 so i guess you would correct the first uses-feature, remove the second Oct 17 22:39:54 Napalm aapt ? Oct 17 22:40:02 g00s: Drawable.createFromXmlInner still doesn't support custom drawables Oct 17 22:40:12 but just that one device is having this issue. so I don’t need BLUETOOTH_AMIN? lul Oct 17 22:40:33 tricknology_ thats not a valid feature :| Oct 17 22:40:38 you can have it as perm Oct 17 22:40:57 worrrd Oct 17 22:41:25 android.permission.BLUETOOTH_ADMIN: Allows applications to discover and pair bluetooth devices Oct 17 22:41:44 so.. if the device has no bluetooth… the permission doesn’t matter? Oct 17 22:41:48 well that one anyway? Oct 17 22:41:58 or does BLUETOOTH hardware uses-feature override that? Oct 17 22:42:17 then i would put uses-feature bluetooth required=false Oct 17 22:42:26 but , you may have to try :D Oct 17 22:42:37 emulator will be good for that Oct 17 22:42:41 sm break Oct 17 22:47:40 If I ran my app in the 5.0 emulator, does that mean I've verified that my app works on ART? Oct 17 22:47:59 s/If I ran my app/If I verified that my app works/ Oct 17 22:54:14 Hmm. The page about Material Design says "The material theme is only available in Android 5.0 (API level 21) and above. The v7 Support Libraries provide themes with material design styles for some widgets and support for customizing the color palette". Oct 17 22:54:27 Only some widgets. Oct 17 22:55:28 idk Tactical, I ran my app on an emulator and this guy can’t see it… sooo.. Oct 17 22:55:38 Who can't see it? Oct 17 22:55:42 I would say that emulator is not a good representation of what happens IRL Oct 17 22:55:48 a client Oct 17 22:55:51 Oh. Oct 17 22:55:58 has this http://www.att.com/cellphones/asus/padfone-x.html#fbid=dm3uTCn2OoJ Oct 17 22:56:02 can’t see my app Oct 17 22:56:09 thought it was that is has x86 Oct 17 22:56:21 g00s thinks it might be my whack ass permissions Oct 17 22:56:42 What's he using? 4.4? Oct 17 22:56:45 yes Oct 17 22:56:52 4.4.4 Oct 17 22:57:15 aah no 4.4.2 Oct 17 22:57:52 I would say that emulator is not a good representation of what happens IRL Oct 17 22:57:59 actually an emulator is a great representation Oct 17 22:58:51 then maybe I’m doing it wrong JakeWharton? Oct 17 22:58:55 Is everyone gonna update their apps to use Material Design pre-Lollipop? Oct 17 22:59:01 no Oct 17 22:59:03 everyone will not Oct 17 22:59:04 I wonder whether MD would look weird Pre-Lollipop. Oct 17 22:59:12 pre* Oct 17 22:59:25 not really Oct 17 22:59:31 most of the concepts already existed Oct 17 23:00:21 JakeWharton: If you don't mind my asking, are you gonna make your apps use "material design" (whatever it means) when running below Lollipop? Oct 17 23:00:34 i don't have any apps Oct 17 23:00:38 Not a lot of changes on android.. Pretty much just ripples Oct 17 23:01:05 and our apps at work are mostly agnostic to google's design language Oct 17 23:01:23 Okay. Oct 17 23:01:42 My app uses Holo right now. Not sure whether to "upgrade" to whatever the latest thing is. Oct 17 23:01:44 i'll change my action bar to 56dp Oct 17 23:01:57 does that count? Oct 17 23:02:07 *gasp* Oct 17 23:02:25 JakeWharton confirms, 56dp the new black Oct 17 23:03:03 I wish I knew more about Android design. There's so much to learn here. Oct 17 23:03:10 JakeWharton, god man I'm your biggest fans friend Oct 17 23:05:06 I am a web dev, started doing android 2 weeks, and I already heard your name thousand times maybe from him and web.. Oct 17 23:05:21 "After making sure your current apps work with Android 5.0, now is the time to enable the Material theme in your app with the AppCompat support library". Oct 17 23:05:30 web dev is fun, i miss it Oct 17 23:07:02 lol we got an internet celeb in here. Oct 17 23:08:19 we use DI so easily(in web frameworks), but I don't still understand how DI works in android/java, gotta be more mature, trying to understand your lib butterknife Oct 17 23:08:21 According to Reddit, using the Material Design theme pre-21 means inheriting from ActionBarActivity. Oct 17 23:08:49 Ah, to hell with it. After 10,000 questions have been asked about using MD pre-21 on SO, I'll worry about it. Oct 17 23:09:15 #holoyolo Oct 17 23:09:49 In wish android had frameworks like rails :P Oct 17 23:12:12 DYNAMIC DISPLAY SWITCHING!! Oct 17 23:12:18 I think that’s what’s up Oct 17 23:13:12 … anyone have experience? Oct 17 23:15:45 got to be a dev guide somewhere... Oct 17 23:16:17 https://www.youtube.com/watch?v=Hly6ODkAlnM Oct 17 23:16:41 “pretty much any 3rd party application you can get right now will not work.. I can assume that not all the gogle apps are goign to work” Oct 17 23:16:46 gmail doesn’t even work.. Oct 17 23:16:59 well.. as of may 2012 Oct 17 23:17:14 she was in Taiwan though Oct 17 23:17:27 IIRC it came out thsi month in the US Oct 17 23:18:02 comment from the video: “Basically all applications support Dynamic Switching. You just need to enable Dynamic Switching for all applications in ASUS settings which you can find in the android settings. Unfortunatly, Google doesn't let us have this option enabled as default. ” Oct 17 23:18:06 well there we go... Oct 17 23:20:54 it might have been a conversation of several people. Oct 17 23:22:34 ... huh. I loaded 5.0 x86-64 image, enabled host gpu... and for the first time, ever, using host gpu didn't mean blurred crappy graphics! Oct 17 23:22:55 JakeWharton when using io.reactivex:rxandroid, its using -rc.6. do you typically override it so its using the latest (-rc.7 now) Oct 17 23:23:07 If host gpu works, it's quite awesome Oct 17 23:23:08 i don't use the android module Oct 17 23:23:09 but yes Oct 17 23:23:44 Have been using it for more than a year, smooth animations on stock emulator Oct 17 23:25:03 JakeWharton orly? so you don't use AndroidSchedulers.xxx ? thats all i was using. if i can just rely on "core" rxjava i would do that Oct 17 23:25:05 SimonVT: it was smooth for me, but the *quality* of end-effect was crap Oct 17 23:25:07 what exactly happens when i switch language on my phone. that seems to kill my app as some vars arent initialized Oct 17 23:25:45 so the system will destroy my app but still want to recover last state.... Oct 17 23:25:51 not even necessary Oct 17 23:26:00 Sure, just save state (onSaveInstanceState) Oct 17 23:26:27 ok ty simon will try Oct 17 23:26:31 p_l: My previous pc messed up with host gpu as well Oct 17 23:26:48 How is the currency of the "price" detail of IAB-items decided? Oct 17 23:26:56 I seem to be getting pretty weird values Oct 17 23:27:10 My macbook air and new desktop works perfectly, 60 fps on animations Oct 17 23:27:23 i.e US dollars for my phone that is set to swedish language, and located in croatia Oct 17 23:28:17 g00s: copy/pasted it Oct 17 23:28:46 ah, good idea Oct 17 23:29:50 we also changed it so that if you submit on the main thread it runs synchronously rather than posting Oct 17 23:29:54 not sure if that made it upstream Oct 17 23:30:10 SimonVT: I didn't change PC in the meantime, so... :) Oct 17 23:30:26 p_l: I did :p A few times Oct 17 23:31:02 Either the emulator sucks, or it works better than a device Oct 17 23:51:38 yeah now the app resists config changes Oct 17 23:51:52 hmm, if I have a library that has a Service, is there any way to get an instance of that service? Oct 17 23:51:54 cliffreich_: What do you mean? Oct 17 23:52:02 i.e. it's started by 3rd party code not under my control Oct 17 23:52:26 oh i just had an issue when the system destroyed my app Oct 17 23:52:46 if some settings change like lang Oct 17 23:53:20 not an important thing Oct 17 23:53:22 I think it destroys only Activities, not the entire app. I could be wrong, though. Oct 17 23:53:33 pfn: Nope Oct 17 23:54:09 yes, activities i mean if you want to be specific :) Oct 17 23:54:16 SimonVT, yeah, that's kinda what I thought Oct 17 23:54:19 SimonVT, sucks Oct 17 23:54:27 Sure, cliffreich_. There's a huge difference. :) Oct 17 23:54:59 pfn: Libraries that provide Services is kind of ... Oct 18 00:01:17 g00s: https://sites.google.com/a/android.com/tools/recent/androidstudio0813released Oct 18 00:01:33 ah thanks TacticalJoke Oct 18 00:03:23 shmoon: Is this you? http://www.reddit.com/r/androiddev/comments/2jjxk8/eclipse_users_on_os_x/ Oct 18 00:03:36 Oh, wait. Never mind. That's just Eclipse. Oct 18 00:05:17 SimonVT, kind of what? they're a dime a dozen Oct 18 00:05:55 SimonVT, manifest merging exists because of libraries that provide android components that need registration in manifest Oct 18 00:19:41 In terms of memory, what is opposite of compact? Oct 18 00:20:15 i have some stuff based on shorts/bytes and the same class based on integers, if the short/bytes is CompactClassClass what's the word i'm looking for for the integer based? Oct 18 00:22:49 sparse? Oct 18 00:23:21 sparse Oct 18 00:27:27 pfn, open up the lib and copy it? Oct 18 00:31:40 tricknology, yeah, only option is to reimplement the service Oct 18 00:37:27 sucks when that happens :/ I have a peripheral that runs on a timed while loop, no flag to stop it if you want to. This was in the lib, so I had to open it up and set a flag, basically override the whole class and add a setter + global var. Oct 18 00:44:04 what tools have you guys found helpful in prototyping whole apps? i've been looking at facebook origami, but i'd prefer not to use something that's mac-only Oct 18 01:02:07 Hiya! Oct 18 01:04:27 I can't seem to find the sources for Lollipop. Are they not there, or am I missing something? Oct 18 01:05:36 where, sdk manager? Oct 18 01:11:18 sources aren't published until images are released Oct 18 01:11:30 can I use GNU gettext with Android and still count for having translation strings? Oct 18 01:11:54 well, it's gonna be a pain in the ass Oct 18 01:12:04 but if you're doing ndk, your only option is gettext, probably Oct 18 01:12:46 Aight. What I might do is just put dummy strings in to get it listed as translated and use .po's internally Oct 18 01:13:04 what's the way to determine which langauge the user prefers? Oct 18 01:13:27 by checking resources/configuration Oct 18 01:13:38 you're doing this purely from ndk, right? Oct 18 01:14:47 yeah, #kivy Oct 18 01:14:53 kivy python-for-android Oct 18 01:15:04 we build a lot of ndk modules Oct 18 01:15:53 pfn thanks! Oct 18 01:16:02 ? Oct 18 01:16:05 oh Oct 18 01:16:11 I have a very simple translation job anyway. not more than 100 words. Oct 18 01:16:37 https://play.google.com/store/apps/details?id=org.knapps_apps.reduce Oct 18 01:28:18 I noticed that on some devices, the flashing for LED notifications doesn't work. What could be the issue? Oct 18 01:30:18 For example, on my Nexus 5, I set a notification for led to turn on and flash green Oct 18 01:30:21 but the light never shoes Oct 18 01:30:28 *shows Oct 18 01:55:04 wut is dis https://helpouts.google.com/partner/landing/provider/googledevelopers Oct 18 01:59:53 "We just push version 21.0.1 of the build tools with the fix. It'll be live in about 1hour (8PM PST)" Oct 18 02:01:50 because you didn't turn it on? Oct 18 02:02:43 I did turn it on... Oct 18 02:03:25 wow that easy share feature isn't good... why would it populate options without appropiate permissions? (like share to gmail) Oct 18 02:03:47 wait, do I need to turn on the camera? I only want to flash the led Oct 18 02:03:57 or share to terminal heh Oct 18 02:04:38 how do i limit my ShareActionProvider Oct 18 02:07:23 the led belongs to the camera Oct 18 02:08:50 oh setintentfilter Oct 18 02:08:53 ok I will add code to turn on the camera. That might be it. Thanks XD Oct 18 02:30:27 nah i dont like that class with the filter... there is no way to avoid soem options with ShareActionProvider? Oct 18 02:30:43 i dont need gmail nor terminal share options... Oct 18 02:50:56 is there any way to do a service-alias somewhat akin to activity-alias? **** ENDING LOGGING AT Sat Oct 18 02:59:59 2014