**** BEGIN LOGGING AT Tue Sep 03 02:59:58 2013 Sep 03 03:46:22 did it change automatically in a certain version of android from linear layout to relative? Sep 03 03:48:50 it? Sep 03 03:50:25 well im following a tutorial and done exactly the same as he has as far as starting a project but his is linear layout and mine is relative, so wondering if they changed it to start up in relative at some point automatically Sep 03 04:04:07 erm? maybe Sep 03 04:04:31 i think i need a little more context Sep 03 04:04:59 do you mean the default layout when you create an empty project in eclipse? Sep 03 04:05:09 / android studio Sep 03 04:10:56 yup Sep 03 04:11:38 i suppose they did, it it causing you trouble? delete the RL and put in a LL? Sep 03 04:11:44 *is it Sep 03 04:11:57 nah it's fine, just curious Sep 03 04:12:00 as to why it's different Sep 03 04:12:55 i suspect it's to encourage people to use Rl more, not abuse nested LLs Sep 03 04:25:36 http://www.reddit.com/r/WTF/comments/1llhcd/vasectomy_gone_wrong_graphic/ Sep 03 04:27:02 SFW? Sep 03 04:27:16 the link yes, the album after that, fuck no Sep 03 04:55:21 Can this be used in android? http://stackoverflow.com/questions/14436453/is-it-safe-to-use-apache-commons-io-ioutils-closequietly Sep 03 05:01:25 i can't use try with resources in android. when i try to close streams and sockets from finally{}, Eclipse complains that more exceptions can be thrown. so am i supposed to have a bunch of nested try/catch/finally? Sep 03 05:01:40 call the try/catch/finally again from the finally? Sep 03 05:02:21 it is try/catch{/catch Sep 03 05:02:29 it is try/catch{/catch}/finally Sep 03 05:03:19 or try to catch a more general exception Sep 03 05:03:25 Could just write a function that swallows the exception. Sep 03 05:05:20 Nilium -> write my own? IOUtils.closeQuietly(bw); Sep 03 05:05:40 Do you have that on Android? Sep 03 05:05:54 I asked earlier if i could do that from android Sep 03 05:05:59 Did you check the docs? Sep 03 05:06:23 Are you using a library that includes it? Sep 03 05:06:25 Did you try? Sep 03 05:07:35 Nilium -> i am not sure how to install that library Sep 03 05:10:36 This is probably sufficient → def closeStream(cl: Closeable): Unit = { try { cl.close() } catch { case ioex: IOException => Log.e(TAG, "Error closing Closeable", ioex) } } Sep 03 05:13:17 is that groovy? Sep 03 05:14:07 No. It's Scala. Sep 03 05:15:51 you Scala people are awesome Sep 03 05:16:15 those are called lambda expressions? Sep 03 05:16:36 ive seen something that looked similar in groovy Sep 03 05:16:50 When did I call it a lambda? It's a function. Sep 03 05:17:32 You should learn Scala. It's fun. Sep 03 05:17:42 Well, it's fun if you find Java as repulsive as I do. Sep 03 05:19:48 you hate Java, then program Python Sep 03 05:20:00 Scala is shooting at ones feet Sep 03 05:20:34 how long should android emulator take to load first time? Sep 03 05:20:44 aeons Sep 03 05:20:53 infinity Sep 03 05:21:04 maybe five mins the luckyest case Sep 03 05:21:17 wow. why does it take so long? Sep 03 05:21:35 its like when windows installs itself Sep 03 05:21:41 happens also with real cellphones Sep 03 05:21:47 ah Sep 03 05:21:52 sorta Sep 03 05:22:07 but not sure Sep 03 05:22:08 well, hrm. windows at least has that nifty trick that lets you play solitaire while you install Sep 03 05:22:34 The emulator's still slow as balls and such? Sep 03 05:22:39 no thats not tru Sep 03 05:22:42 I haven't actually booted it up for anything I'm doing Sep 03 05:22:58 is there an easy way to get my phone to take screenshots? Sep 03 05:23:07 Power + volume down. Sep 03 05:23:18 wut rly Sep 03 05:23:24 Unless your phone's a piece of crap. Sep 03 05:23:45 with a power laptop am being able to run the emulator some good (at werk) Sep 03 05:23:53 Nilium -> im more pissed off that i can't use java's try with resources in android and I need to close streams without the bitching Sep 03 05:24:35 Is that Java 7? Sep 03 05:24:38 that's android not keeping up to date with the jvm Sep 03 05:24:40 yes Sep 03 05:24:47 Does it require new bytecode? Sep 03 05:25:08 Or some implementation change? Sep 03 05:25:10 google should release a new Dalvik version Sep 03 05:25:40 If it doesn't require implementation changes or new bytecode instructions or whatever, you can probably use it. Sep 03 05:26:08 Nilium -> it is Java 1.7 Sep 03 05:26:12 yo kno arbeit made fry Sep 03 05:26:24 nothing appears to happen when i press those on my phone Sep 03 05:26:40 i have a kyocera hydro on boost mobile Sep 03 05:28:08 Hm, looks like you can't use try-with-resources from Java 7 'cause it requires an interface Android doesn't provide. Sep 03 05:28:52 Or at least doesn't publicly provide it. I don't know. Sep 03 05:30:15 https://github.com/jsuereth/scala-arm ← Nifty. Sep 03 05:30:50 i looked at the java 1.5 way of closing sockets and streams and it seems i can't use that either http://stackoverflow.com/questions/14436453/is-it-safe-to-use-apache-commons-io-ioutils-closequietly Sep 03 05:32:32 looks like i need a third party screenshot app in order to take screenshots on my phone Sep 03 05:32:38 Just write a function to swallow exceptions since that's what you want. Sep 03 05:32:51 hmm, neat, I guess I'll dick with 2 new-to-me things tomorrow Sep 03 05:32:58 writing a custom IME, and a global search provider Sep 03 05:33:14 Nilium -> how do you swallow an exception Sep 03 05:33:22 O_o Sep 03 05:33:35 start by looking up linda lovelace? Sep 03 05:33:41 maybe ask her for advice? Sep 03 05:33:44 * Nilium hands pfn $5 Sep 03 05:33:45 swallowing an exception is the same as this? Sep 03 05:33:50 no Sep 03 05:33:50 IOUtils.closeQuietly(bw); Sep 03 05:34:30 scala-arm or just write up a simple using() function in scala Sep 03 05:34:31 it's trivial Sep 03 05:34:44 you can do it pretty easily in java, too Sep 03 05:34:52 since there's Closeable, not so hard to make happen Sep 03 05:35:12 Nilium -> are you talking about having another try catch finally block from the finally block that potentially throws another exception? Sep 03 05:35:15 create an interface WithCloseable, and wrap its usage with try/finally/close Sep 03 05:35:16 http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java?view=markup ← Well, let's look at Commons IO Sep 03 05:35:22 I WONDER WHAT THEY DO. Sep 03 05:35:27 BullShark`, just always ignore the exception from close() Sep 03 05:35:39 there's generally absolutely nothing that can be done on IOE on close Sep 03 05:35:42 stupidest api ever Sep 03 05:35:48 pfn -> declare the methods with throws Sep 03 05:35:58 that doesn't help you in any way Sep 03 05:36:01 It's kind of like getting an error on malloc in C. What the hell do you do at that point? Sep 03 05:36:13 well, error on malloc, you crash or do with less memory Sep 03 05:36:20 error on close, you just ignore Sep 03 05:36:25 because there's absolutely nothing to do with it Sep 03 05:36:37 your close failed... boohoo, maybe your writes didn't go through, who knows Sep 03 05:36:42 The point is more that both are really weird situations. Sep 03 05:37:03 not really, errors on malloc happened all the time :p Sep 03 05:37:33 Sudden desire to play Doom 2... Sep 03 05:38:47 I like Chex Quest myself Sep 03 05:39:06 I remember when I got a copy of that Sep 03 05:39:15 Was suspiciously good for being in a box of cereal Sep 03 05:39:24 DooM total conversion = best cereal prize EVER .... in the history of everything. Sep 03 05:40:45 OK, so, if the installer for this freezes up ... what doe sthat say about my ability ot take screenshots of mah phone? http://ashot.sourceforge.net/ Sep 03 05:41:36 Dunno. Sep 03 05:41:41 Maybe that your phone is old. Sep 03 05:41:48 not that old Sep 03 05:41:52 it runs android 4.0.4 Sep 03 05:42:19 maybe its just racist cause my phone is asian Sep 03 05:43:22 wow, i'm impressed. skype looks beautiful on my droid-1 Sep 03 05:43:34 too bad it takes 1-2 seconds to respond to touches Sep 03 05:43:41 but otherwise, ;) Sep 03 05:43:53 It's beautiful! I can't use it, but it's beautiful! Sep 03 05:44:01 exactly Sep 03 05:44:26 I liked the Yahoo Weather thing that everyone got a stick up their ass about recently Sep 03 05:44:54 I mean, I liked the way it looked. I didn't like that its menu was basically a giant message from yahoo saying "We're desperate, please use our stuff" Sep 03 05:45:08 play store keeps trying to dl stuff and aborting saying the cert is bad Sep 03 05:45:13 s/dl/update Sep 03 05:50:50 I thought ics could take screenshots with pwr+voldn? Sep 03 05:51:10 well, it's a droid1 Sep 03 05:51:15 it's not expected to be usable anymore Sep 03 05:51:31 speaking of which, I should see what the most recent stable cm is Sep 03 05:51:40 I can't test keepass share in emulator :( Sep 03 05:51:52 I suppose I can if I install an armeabi+googleapis emu, but I don't want to Sep 03 05:52:43 i just put a new battery in my droid-1 and took of the screen cover, looks new , awww Sep 03 05:52:55 screen protector Sep 03 05:53:15 this thing did have a nice screen Sep 03 05:53:41 hah, they don't even have the droid1 in get.cm anymore Sep 03 05:53:53 a new battery in? Sep 03 05:53:58 * pfn boggles at good money after bad :p Sep 03 05:54:08 I guess you don't have a mobile phone plan anymore either, though Sep 03 05:54:31 oh, i had a new battery in storage Sep 03 05:54:35 "new" Sep 03 05:55:02 i wouldn't buy anything for it now ;) Sep 03 05:55:21 pfn what are you working on ? Sep 03 05:55:28 keepass share Sep 03 05:55:36 I'm writing a global search provider and a custom ime for it Sep 03 05:55:36 oh yeah, cool Sep 03 05:56:01 https://github.com/pfn/keepshare Sep 03 05:56:09 haven't even published it to play yet, but it's on github already Sep 03 05:56:15 some asshole better not steal my package name Sep 03 05:56:18 holy shit, wut "nokia acquired my ms" Sep 03 05:56:33 i haven't been on the internet that much this weekend :D Sep 03 05:57:24 that was great seen linus and stallman voted #1/#2 as the replacement MS ceo :D Sep 03 06:01:48 any rendersript devs here? Sep 03 06:04:30 How does this not result in infinite recursion or a stadk overflow exception? public static void closeQuietly(final Reader input) { closeQuietly((Closeable)input); } Sep 03 06:04:50 Could you help me with that : private class StoryListAdapter extends BaseAdapter implements LoaderCallbacks Sep 03 06:05:14 Nilium -> would you please explain? Sep 03 06:05:24 Why somebody would like to implements "LoaderCallbacks" Sep 03 06:07:05 bluesm_ you have to impl those if you wanted your Loader to work :P Sep 03 06:08:10 BullShark`, because it's a different method Sep 03 06:08:50 pfn. how do you ignore a checked exception. i have errors in my code if i don't have nested try/catch/finally or declare throws Sep 03 06:17:55 why the hell is the android emulator so slow anyway? Sep 03 06:18:07 You ignore a checked exception by catching it and ignoring it. Sep 03 06:18:11 g00s: Maybe from the start, why if I BaseAdapter I don't have to implements all abstract method ? Sep 03 06:18:31 BenMcLean: Because it's an emulator. Sep 03 06:18:43 I mean eclipse made me to implement getView getItemId getItem and getCount Sep 03 06:19:01 Nilium, OK let me rephrase. Why the hell is the Android emulator so damn slow compared to my Playstation 2 emulator which will run games at full speed? Sep 03 06:19:58 There is no way I could ever use this thing for serious development purposes Sep 03 06:20:05 You're not supposed to. Sep 03 06:20:09 You're supposed to test on devices. Sep 03 06:20:31 ok how do i take screenshots on devices Sep 03 06:20:45 when the device i've got doesn't do the volume down power button trick Sep 03 06:20:47 You can take a screenshot via ddms/monitor. Sep 03 06:21:12 Nilium, tried that, but when that's running, eclipse says it can't bind Sep 03 06:21:32 'Cause Eclipse is already running it? Sep 03 06:21:49 no, i started monitor first, then hit run on android Sep 03 06:21:52 er, on eclipse Sep 03 06:21:54 gaah Sep 03 06:22:01 i started monitor first, then hit run on eclipse Sep 03 06:22:05 You realize it's in Eclipse, right? Sep 03 06:22:14 where Sep 03 06:22:20 I don't know, I don't use Eclipse. Sep 03 06:22:23 BenMcLean, Qemu is always slow Sep 03 06:22:42 Way more accurate than PCSX2 in its core emulation though Sep 03 06:22:45 Sonicadvance1, android emulator is qemu based? Sep 03 06:22:48 yes Sep 03 06:23:06 is there a java version of aapt? Sep 03 06:24:55 Sonicadvance1, interesting. Sep 03 06:25:13 really wish i could play final fantasy dimensions on PC Sep 03 06:25:37 it needs a port badly. i cant read the text on my phone. too tiny Sep 03 06:25:47 PS2 JIT recompiler and Dolphin JIT recompiler both take shortcuts in their emulation to speed things up Sep 03 06:26:01 Qemu doesn't take any shortcuts Sep 03 06:26:02 you'd think Google would put out an official emulator for android games to encourage people to buy from the google play store more Sep 03 06:26:29 anyway, where's monitor in eclipse? Sep 03 06:26:33 Might as well as run bluestacks if you want that Sep 03 06:27:40 Sonicadvance1, bluestacks doesn't support final fantasy dimensions. DRM stops it Sep 03 06:27:53 haha Sep 03 06:27:56 i could root bluestacks and try it then, but i dont have the time for that Sep 03 06:28:00 Actually QEMU does take shortcuts, but PCSX2 emulates a 1) different architecture 2) with very specific weirdness involved 3) where insane majority of it is involved in doing the graphics anyway Sep 03 06:28:18 there is pirated final fantasy dimensions but only for root Sep 03 06:29:04 p_l, I'm not as familiar with qemu, does it take some at the expense of accuracy? Sep 03 06:29:05 Google isn't telling me much on running monitor with eclipse Sep 03 06:29:11 Isn't FF dimensions that terrible game where you just wait a bit and then tap a character to get it to attack? Sep 03 06:29:27 this channel is only place I've heard they're supposed to be integrated Sep 03 06:29:35 I know it doesn't support ARM's setend instruction Sep 03 06:29:50 Nilium, it's a new game in the style of Final Fantasy V from the 1990s Sep 03 06:29:57 Sonicadvance1: it's an emulator, not simulator (don't confuse with iPhone "simulator") Sep 03 06:30:00 New? Sep 03 06:30:03 It's from 2010. Sep 03 06:30:05 it can take shortcuts Sep 03 06:30:16 Nilium, really, i thought it was 2012 Sep 03 06:30:32 oh wait my bad, it was the android version that came out late Sep 03 06:31:01 p_l, I know. Does QEmu skip exception checking until the end of each block or with a counter, or does it check every instruction? Sep 03 06:31:08 Ah, I was thinking of All the Bravest Sep 03 06:31:16 AKA Square Enix's cash grab. Sep 03 06:32:00 Nilium, oh yeah. all the bravest sucked Sep 03 06:32:20 i'd pay erm .... seven bucks for all the bravest if it meant every character and weapon was unlokd Sep 03 06:32:28 just cause i love the old final fantasy stuff Sep 03 06:32:42 p_l do you know what version of qemu android tools use? the latest is 1.6.0 i think Sep 03 06:32:44 I wouldn't, because the entire game is tap, wait, tap, wait, etc. with nothing else Sep 03 06:32:45 but their buiness model is unacceptably horrible and too expensive Sep 03 06:33:08 Don't mistake me from not knowing the difference of a simulator versus an emulator. I'm the one that has done nearly 100% of the work on https://play.google.com/store/apps/details?id=org.dolphinemu.dolphinemu :P Sep 03 06:33:12 nilium, well, it's a phone game. i listen to audio books and do stupid stuff like that Sep 03 06:33:32 Audiobooks have plot and hours of contents. Sep 03 06:33:49 All the Bravest had a few seconds worth of gameplay and no story. Sep 03 06:33:59 lol thats crazy Sep 03 06:34:16 Nilium, yeah um, what i mean is: at the same time Sep 03 06:34:32 Oh, that reminds me. Napalm, you around? Sep 03 06:34:33 Seems like Angry Birds is a better investment. Sep 03 06:34:35 i listn to audio books (thats the main thing) and play some mindless game like tetris that desn't take up too much concentration at the same time Sep 03 06:34:53 prolly right. i've never tried all the bravest Sep 03 06:35:07 but it'd be fun to see all the FF characters together as old school sprites in a decent game Sep 03 06:35:26 like a retro version of dissidia ^_^ Sep 03 06:35:43 anyway, found the ddms in eclipse Sep 03 06:35:49 Reminds me, I need to get new Disgaea games. Sep 03 06:35:52 it's under windows > perspective > other > ddms Sep 03 06:37:47 Sonicadvance1: QEMU works on whole blocks unless something causes change Sep 03 06:38:01 g00s: no idea Sep 03 06:38:14 p_l, Yea, that's what most emulators do...unless you're MAME Sep 03 06:38:26 yeah um .......... how does mame even make sense Sep 03 06:38:42 i mean, don't all those arcade cabinets have completely different and unrelated architectures? Sep 03 06:38:46 MAME is filled with crazy devs Sep 03 06:39:20 Hi all, I'm doing something that's probably really not allowed/supported. I'm trying to impelment Google Play's In-App Billing inside of a Unity plugin for Android Sep 03 06:39:34 BenMcLean: They are usually composed of familiar parts, so what you need to do is wire them together Sep 03 06:39:36 MAME and scummvm ..... I don't understand how these projects even exist, given how widely different the range of platforms they pretend to be are Sep 03 06:39:43 Sonicadvance1: ive seen a gameboy emulator in javascript, some people are crazy like that Sep 03 06:39:59 And as part of the purchase flow, it launches Activity::StartIntentSenderForResult - I don't have an activity in my plugin (I pass in unity's current activity tot he function instead) - but the callback comes in on onActivityResult which I can't override... Sep 03 06:40:10 BenMcLean: SCUMMVM only emulates one platform, SCUMM :) Sep 03 06:40:12 Is there some way to hook into another Activity's onActivityResult or...? Sep 03 06:40:41 p_1, actually no. It emulates many different point and click adventure games, not all over which are based on scumm in any way Sep 03 06:40:48 clever, Yea, I don't think I could write an emulator in a language that doesn't support unsigned integers Sep 03 06:40:57 My cheek just cramped up while yawning Sep 03 06:41:03 This is officially the most painful thing Sep 03 06:41:20 BenMcLean: it emulates engines of them, not whole platforms. Much easier Sep 03 06:41:44 oh sure Sep 03 06:42:00 also, get yourself a better font ;) Sep 03 06:42:14 but still, why they are all part of scummvm doesn't make sense to me Sep 03 06:42:20 instead of being separate projects Sep 03 06:42:28 also, font? what font Sep 03 06:42:49 i'm using webchat.freenode.net Sep 03 06:43:02 on default settings. i don't choose any fonts Sep 03 06:46:11 I bought a font specifically for coding. Sep 03 06:46:38 My terminal font works pretty well :P Sep 03 06:48:55 uh, dumb question. in play store 4.3 (not sure if thats the latest) when I go to "My Apps" there are 2 tabs, "Installed" and "All" Sep 03 06:49:14 WTF is "ALL" i see stuff there i have, have had, and /// i dont think i have Sep 03 06:49:25 everything you've ever installed Sep 03 06:49:26 ever Sep 03 06:49:34 (ever) Sep 03 06:49:40 weird, i'm sure i have not installed some of these Sep 03 06:50:01 but even weirder, why is there an 'x' … i feel like i'm uninstalling them from the phone Sep 03 06:50:14 x on some of them Sep 03 06:51:02 removes it from history Sep 03 06:51:08 so if you have an app "adultery for dummies" Sep 03 06:51:13 you can remove all traces :P Sep 03 06:51:20 also the 'x' is definitely not 9dp :D Sep 03 06:59:30 BenMcLean: your font makes it easy to mistake 1 and l ;) Sep 03 07:07:26 canadiancow yeah, this is really confusing. or maybe a bug. its a froyo phone, and iosched 2013 isn't compat with it, but its listed in the 'ALL" section Sep 03 07:07:43 no worries Sep 03 07:08:45 this is the only phone i've ever had so, it couldn't be from anything else O.o Sep 03 07:17:41 When i'm using a content provider, is it possible to push multiple rows into a database in a batch Sep 03 07:18:42 like turning off auto commit on mysql Sep 03 07:26:32 Mrono yeah, see applyBatch Sep 03 07:27:37 and look for examples using applyBatch, which will show you how to get around the autocommit and do a few operations as one transaction Sep 03 07:27:49 its kinda awkward, but, not too difficult Sep 03 07:28:19 awkward enough to be difficult to describe in irc ;) Sep 03 07:37:36 Hi all, I'm using the Android Sip API. I have a broadcast receiver (for receiving incomming calls), inside this receiver, I start a new Activity, how can i pass my SipAudioCall object to the activity that is started? Sep 03 07:41:08 (NDK question) My project uses a static library(which i didn't compile), how can i build my project to only be one file? Sep 03 07:43:15 polomolo777: you need to modify the build scripts so that your output shared library is linked with the static one Sep 03 07:43:28 polomolo777: that should be all (objects from static library will be copied to shared one) Sep 03 07:44:32 p_l, I couldn't find the option in the Android.mk file to do so. Sep 03 07:44:54 -L Sep 03 07:44:59 it's part of linker options Sep 03 07:45:08 how is it set in Android.mk I have no idea right now Sep 03 07:46:07 p_l, Does it have to be lib.a? or could it be lib.so? Sep 03 07:46:21 polomolo777: .so is "shared object" Sep 03 07:47:06 .a is "archive", which is what is used for static libraries (they are essentially archives full of object files, like myfunc.o) Sep 03 07:47:37 you can't statically link code from one shared library to another program/library Sep 03 07:59:50 p_l, I get it, but is there a way to just add the blob that is lib.so into my executable and tell the linker to use that? Sep 03 07:59:50 polomolo777: ... so do you have a dynamic library or static library? Sep 03 07:59:50 if the latter, you need to package it properly, and iirc you'll have to manually invoke linker at runtime Sep 03 08:00:00 s/latter/former/ Sep 03 08:09:17 p_l, Thanks I got it working, i also used this for my answer http://stackoverflow.com/questions/5463518/android-ndk-link-using-a-pre-compiled-static-library Sep 03 08:17:47 Using the Sip API, can you create the incomming call (sipaudiocall) in your next activity instead of inside your broadcastreceiver? (for creating it, it uses the received intent from onReceive(context, intent) Sep 03 08:19:43 Morning all Sep 03 08:20:45 I'm looking forward to trying out all of these SIP applications people are making Sep 03 08:42:12 Hey, is it just me or did google didnt update the downloads stats in the android developer console for 2 days? Sep 03 08:42:59 It's not just you; last date is August 31 for my app as well. Sep 03 08:44:59 man, when you can't trust google... maybe the zombie apocalypse is coming... Sep 03 08:46:14 * g00s wonders if zombies will be using google services too Sep 03 08:46:31 it would be a great glass app; locate the brains Sep 03 08:46:53 google zombie services Sep 03 08:48:45 kjeldahl , i was saddened https://www.google.com/trends/explore?q=emacs%2C+%22sublime+text%22+%2C+vim#q=emacs%2C%20%22sublime%20text%22%2C%20vim&cmpt=q Sep 03 08:49:23 Are download stats /that/ vital to watch? Sep 03 08:49:55 ST is hot in russia ? O.o Sep 03 08:50:40 how do i intercept a NPE from findViewByID (although i know the element it is present in my layout)? Is there any need then? It's because android studio shows me that info in the code view Sep 03 08:50:51 Sonicadvance1 these aren't dl stats; just another signal that seems consistent to various polls i have also seen Sep 03 08:51:08 huh Sep 03 08:51:28 i was surprised to see ST used so heavily in a HN poll Sep 03 08:51:41 g00s: Well, the masses aren't always right.. ! Sep 03 08:51:47 \o/ Sep 03 08:52:17 kjeldahl when stallman becomes CEO of MS, he can bundle it with IE / Windows Sep 03 08:52:34 should give it a boost :) Sep 03 08:53:08 g00s: ST is the current "hip" editor ;) Sep 03 08:53:55 i used it a little and it was nice; but meh. maybe its plugin api is really good Sep 03 08:54:03 not really Sep 03 08:54:07 hehe Sep 03 08:54:12 well, maybe if you limit yourself to certain stuff Sep 03 08:54:26 configuration is ugly Sep 03 08:55:28 I'm thinking vim's numbers are inflated because it's so hard to use (the modal stuff is hard for the windows masses who never used edlin). Sep 03 08:56:07 What really irks me is how some modern linux distros don't include /bin/ed in core install Sep 03 08:59:32 Isn't that binary completely useless now Sep 03 09:00:16 alankila: what, /bin/ed? Sep 03 09:00:20 ye Sep 03 09:00:40 alankila: till you find yourself deep in shit and all your spiffy nice tools are dead :> Sep 03 09:00:51 Then I boot a cd Sep 03 09:00:53 best, it should be statically linked, too :> Sep 03 09:00:55 or usb stick as it may be. Sep 03 09:01:00 nano ! Sep 03 09:01:01 alankila: you can't always do so Sep 03 09:01:24 If this is your argument, then it would arguably be even better to include statically linked proper editor Sep 03 09:01:39 anyway, ed is useful. It's the kind of "lowest common denominator" you could have used to get yourself out of bind, and which was *scriptable* Sep 03 09:01:42 g00s: nano ftw Sep 03 09:01:53 though, thanks to the complexity of the matter it might not be so easy. termcap may be still needed. Sep 03 09:02:21 alankila: ed works even over broken Xen console line Sep 03 09:02:27 I think people script changes with tools like sed, awk, perl. Sep 03 09:02:34 * p_l had to reconfigure system once over one Sep 03 09:02:46 I am almost sure that no package on any modern linux system default install ever uses ed for file editing Sep 03 09:03:00 and no user launches it purposefully to edit anything. Linux-using kids are probably too young for ed. Sep 03 09:03:27 alankila: yes, the current hip choice is to use DBus (I wish I was joking, but it seems to really be the case...) Sep 03 09:04:43 p_l couldn't you just use vim in ex mode ? Sep 03 09:05:03 dbus sounds like it's better designed than pipes as intercommunication mechanism. They're putting changes into kernel to help it. I don't know much about this message technology though. Sep 03 09:05:16 g00s: I haven't ever learned ex mode enough Sep 03 09:05:30 which ex -> /usr/bin/ex Sep 03 09:05:33 g00s: /bin/ed is simple enough that I remember all basics well enough forever Sep 03 09:05:48 the criticism of dbus seems to be more akin "it's nice but slow", very few voices say it's un-unixy or breaks some tradition Sep 03 09:07:31 alankila: it's opaque to the rest of the system, IMO. Actually, the new extended sockets make it a bit better. But still, I think it should have been done with FUSE, instead of opaque binary protocol over random collection of unix sockets, all dependant on lucking out with getting correct "address" through environment variables Sep 03 09:08:21 I don't really find myself moved by this argument because I've never personally had any problems with dbus, or at least not any problems I could have recognized as arising from dbus Sep 03 09:08:23 alankila: voices that say it's non-unixy get "STFU, we do not care about unix" as answer Sep 03 09:08:58 at least that's what I got when I complained about general direction of changes to developers of my then-distro Sep 03 09:09:00 as to the implementation detail, I think unix is too reliant on clumsy abstractions like filesystems because unix people like files above all reason Sep 03 09:09:27 what they should do is user libraries and construct nice abstractions using whatever existing operating system technology they have, like sockets to a shared central process or shared memory or whatever Sep 03 09:09:37 alankila: it's because filesystem is a common api (mind you, filesystem, not just single files). *EVERYTHING* can access it, no matter what it's written in Sep 03 09:09:41 but clients use libraries, not files on filesystem Sep 03 09:10:13 Download stats updated to September 1st just now, still one day delayed though... Sep 03 09:10:17 alankila: If we had VMS-like Standard Calling Interface, that would be an option Sep 03 09:10:37 yes, I guess files are quite accessible. But pretty much any technology can make use of a shared object written in C provided someone writes a little bit of glue for that for their favorite environment. Sep 03 09:10:42 hahahaha Sep 03 09:10:56 alankila: there are wonderful things happening when you do FFI, believe me Sep 03 09:11:07 FFI? Sep 03 09:11:16 hei, has anyone here experiences with speeding up gradle? because just an ./gradlew tasks takes around 9s. Most of the time is spend in dependency resolution. So is there a chance to speed that up? Sep 03 09:11:52 at some point the least-crashy solution seems to patch linker table at runtime so that you can takeover some of the calls the shared object makes to make sure it doesn't kills your whole app Sep 03 09:11:56 hm, from the command line, make sure daemon mode is on timroes Sep 03 09:12:08 alankila: Foreign Function Interface Sep 03 09:12:08 but from AS, no idea, it seems to manage its own thing Sep 03 09:12:19 alankila: also, not everything is implemented on top of C Sep 03 09:12:34 g00s: might i ask how to turn on daemon mode? Sep 03 09:12:56 timroes you can from the command line, or put it in gradle settings file in ~/.gradle Sep 03 09:13:01 check the docs Sep 03 09:13:42 p_l kjeldahl alankila quick q; if android disappeared tomorrow, what mobile OS would you use ? Sep 03 09:13:44 alankila: VMS had standardized calling interface (windows actually has it too, especially when you don't use certain C++ extensions), and interface definition files that let you link anything with anything (as well as hierarchical, system-wide exception system, something that apparently got too hard for windows app devs, because MS introduced posix-like VEH for them) Sep 03 09:13:53 g00s: define "disappear" Sep 03 09:14:01 I haven't tried myself, but I believe most of those hacks aren't necessary any longer. Sep 03 09:14:37 p_l like, google spring clean it or something Sep 03 09:14:42 g00s: fork it? Sep 03 09:14:46 merge into chrome os Sep 03 09:14:55 g00s: iOS until somebody else got linux running on mobiles... Sep 03 09:14:58 g00s: chances for that are small... Sep 03 09:15:06 p_l yes yes, just pretend Sep 03 09:15:15 also, I could rip parts of existing drivers etc. and use good old mobile linux for a time Sep 03 09:15:28 kjeldahl yeah, me too Sep 03 09:15:52 I have had bad experience with iOS, it also doesn't fit me, and frankly speaking, prices Sep 03 09:16:19 i actually dont use phones; i just have an ipod touch with skype heh Sep 03 09:16:25 and my old droid-1 Sep 03 09:16:44 but this google services thing is worrying me Sep 03 09:17:08 seems like it updates behind your back, and can change its permissions without your noticing Sep 03 09:17:11 I don't really know what OS I would use. I don't really want iOS but I want a device that has a non-shitty web browser so maybe I would at least look into firefox OS for that reason Sep 03 09:17:28 g00s: you mean the services that didn't change since day one? :> Sep 03 09:17:36 if it's all browser, it follows it has to have the most memory to use for the purpose etc. Sep 03 09:18:17 honestly all I need out of a device is a browser. If someone gives me native apps to use on the device launcher and lockscreen then great but all I really need is the browser Sep 03 09:20:04 i just finished reading this http://arstechnica.com/gadgets/2013/09/balky-carriers-and-slow-oems-step-aside-google-is-defragging-android/ Sep 03 09:20:10 not so sure how i feel about it Sep 03 09:20:11 but if it doesn't come with a clock, music player, camera, and other essentials I guess I would probably switch to one that also has a decent browser and those apps. These devices are multipurpose, so they need the software to support that infinitely growing array of use cases Sep 03 09:20:32 yeah Sep 03 09:20:42 g00s: one question - did anyone write down just *which* permissions would have been "self-added"? Sep 03 09:21:04 p_l the article didn't say. i figure everyone knew except me Sep 03 09:21:12 g00s: I can't find any example Sep 03 09:21:58 install a 3rd party rom without gapps? Sep 03 09:22:34 anyway, "play services" existed since 1.0 Sep 03 09:22:47 p_l ? Sep 03 09:22:54 i never saw it as such Sep 03 09:23:10 my froyo phone only used to have 2-3 services running, one for maps Sep 03 09:23:16 g00s: name change Sep 03 09:23:25 i figured, that was part of the mapps application Sep 03 09:23:36 which got updated through play Sep 03 09:23:45 now its out of band Sep 03 09:23:56 g00s: not the maps application, but there was an APK that contained services etc. to access Google APIs Sep 03 09:24:24 well, there was the google apis APK Sep 03 09:24:30 again, afaik, that got updated via OTA Sep 03 09:24:50 let me know if i'm wrong though Sep 03 09:25:00 g00s: it was still a /system app, and thus could be modded to update faster, iirc Sep 03 09:25:34 i kinda like knowing what is getting updated on my devices and being able to control it Sep 03 09:26:07 perhaps it's time to start considering alternatives to all the google-related programs, then. I only use maps occasionally I think... Sep 03 09:26:18 if somebody says, heh, the latest play services has a weird back door, well, no way you aren't getting it Sep 03 09:26:39 yeah, i only use gmail atm Sep 03 09:28:01 p_l we need an open source baseband :P Sep 03 09:28:44 g00s: you won't get one Sep 03 09:29:01 heh, i /used/ gmail. its now crashing every time i try to open it Sep 03 09:29:05 actually, running unlicensed baseband is illegal in practically everywhere Sep 03 09:29:09 on my froyo device Sep 03 09:29:18 well, who needs baseband, why can't we make calls over wlan Sep 03 09:29:32 alankila: wlan also uses baseband :D Sep 03 09:29:53 p_l: well the relevant technology got to be simpler and some wlan stuff is actually open source Sep 03 09:29:54 (that's what the 'firmware' you need for the driver to load is) Sep 03 09:29:54 g00s: I disagree with that article about restricted profiles not being interesting. They're really handy to be able to give tablet or phone (I know no RP on phone yet) to a child. Sep 03 09:30:27 SpeedEvil i agree with you on that one Sep 03 09:30:30 g00s: knowing it can only now play angry birds. Sep 03 09:30:40 alankila: some wlan chips are simple enough that you can't break too much with modded firmware, yes Sep 03 09:34:55 alankila: you'd still need to be in range of WiFi and have a VoIP endpoint Sep 03 09:35:46 yes, all that is true. Wi-fis don't have the kind of coverage and it feels to me that they might eventually become pure corporate tech while consumers are all on nG where n is some large number Sep 03 09:37:03 because while there's wi-fi on my home that I control to the degree it is possible to control it, I rarely bother to connect my phone to it. Sep 03 09:37:31 i thought this was cool http://www.newscientist.com/article/mg21929294.500-meshnet-activists-rebuilding-the-internet-from-scratch.html Sep 03 09:38:12 g00s: yes, great way to be snooped (legally, even!) by NSA ;) Sep 03 09:39:04 Sonicadvance1: i am now Sep 03 09:39:19 compared to TEMPEST, snooping on wireless mesh network is like shooting a sitting duck equipped with concrete boots Sep 03 09:39:32 Napalm, Got your hands on that super sleek Snapdragon 800 device? ;) Sep 03 09:39:45 oh yes, sure Sep 03 09:40:30 oh cool. Lemme grab some links for you ;) Sep 03 09:41:09 Sonicadvance1: was it the Sony Xperia Z? Sep 03 09:41:30 Oh. The Sony Xperia Z Ultra :< Sep 03 09:44:30 I don't personally have much hope for these grassroots efforts to escape, err, commercial and governmental control. Sep 03 09:44:52 Napalm, Yea, Xperia Z and Xperia Z Ultra are different devices :< Sep 03 09:45:20 average citizens are not motivated enough, and the few canaries who acts as pioneers and report the feelings of suffocation are just too few and without proper resources Sep 03 09:45:38 hey sorry Sonicadvance1, just logging on from a diff location Sep 03 09:45:56 Sonicadvance1: not sure I have the ultra Sep 03 09:46:39 Napalm|wrk, The chance of you having the ultra is minimal, which is why I nearly exploded Sep 03 09:46:41 The central control probably works as long as average citizen is reasonably happy. And if you look at the sort of really nice services that companies like google can provide through automatically updating the software, the average citizen will see this as a value-add: his phone will get better over time, and not as a threat of further losing control of that type of important computing platform. Sep 03 09:47:03 Sonicadvance1: any other device that matches what you need? Sep 03 09:47:08 i have a ton Sep 03 09:47:38 Napalm|wrk, Less you have a Snapdragon device clocked at > 2Ghz, the chance is quite low Sep 03 09:47:42 it's not until someone grossly misabuses this trust and breaks this social contract that people will learn but I doubt they understand that central control and mechanisms that make it possible are bad, they will rather say 'that particular entity abused the power given to it' Sep 03 09:48:23 alankila: you should read "Little Brother" by Cory Doctorow Sep 03 09:50:18 Sonicadvance1: doesnt look like it, i might have to get one of those Ultra's on-order Sep 03 09:51:10 Napalm|wrk, Yea, I think it is the first available Snapdragon 800 device and I'm not sure if it is publicly available or not yet Sep 03 09:52:01 There are some helpful mechanisms though. Avoiding things like DRM means copying is possible which means you can get all sorts of things for free, rather than paying for them. People really like this sort of thing. I wonder if a successful anti-drm/tpm/control-movement shouldn't basically say that "this stuff forces you to pay things you ought to get free" whenever it comes to something that reduces user's control over a device. Sep 03 09:52:07 it needs those extra CPU cycles to help push all those damn pixels, theres a ton Sep 03 09:52:25 it's intellectually so lazy but it's easy claim to make and justify Sep 03 09:52:34 alankila: stop spamminh the channel Sep 03 09:53:04 Yeh got stuck in writing mode it seems Sep 03 09:53:57 Napalm|wrk, Yea, the new GPU in it helps a lot. The Adreno 330 is the most powerful mobile GPU until the Mali-T628MP6 gets released with the Note3 on Wednesday Sep 03 09:54:57 alankila :D Sep 03 09:55:24 i think in the US, its already been proven power has been abused Sep 03 09:59:39 Should I do the logic on the Fragment or on the Activity? Sep 03 10:00:19 zyngawow: fragment is encapsulating a collection of views and their behavior, so chances are you need logic on both fragment and activity. Sep 03 10:01:05 the fragment should take care of everything it autonomously can, but for instance if a different fragment needs to be displayed, it should call back to the hosting activity and inform it that a new fragment needs to be displayed, and let the activity choose how Sep 03 10:03:12 depending on the activity, it may have a single fragment in view and replaces it, or it could be some split-pane if the activity has chosen a tablet-like layout and so on. So that's the reason. Sep 03 10:04:26 how come google hasn't built in a pull down to refresh action Sep 03 10:08:35 So I have a semi-persistant bound service which handles a connection to a server. I also have an intent service, the intent service needs to make use of the connection, so to do this I have the intent service bind the bound service. Sep 03 10:09:20 The problem I have is that ServiceConnection.onServiceConnected hasn't necassarily run by the time onHandleIntent is called Sep 03 10:10:00 My solution is to do the equivelent of while(connectionServiceNotBound){Thread.sleep(1);} in onHandleIntent Sep 03 10:10:06 hi guys Sep 03 10:10:09 how to set spinner items if it is in an AppWidgetProvider? Sep 03 10:10:17 this does not feel right, is there a cleaner way to solve this problem? Sep 03 10:12:00 and let android handle the event loop Sep 03 10:12:40 (ok I had the solution but not the question ^^) Sep 03 10:12:48 ArrayList temp = data; temp.add(0, goldSteps); Would this alter the 'data' array? Sep 03 10:13:14 yes Sep 03 10:13:19 omg :( Sep 03 10:13:28 Kake_Fisk: it's referece passing Sep 03 10:13:32 not value passing Sep 03 10:13:40 Is it possible to make a new array from an other? Sep 03 10:13:42 so data = temp Sep 03 10:13:48 Completely new without reference? Sep 03 10:13:53 certainly, but I'm a python developper Sep 03 10:14:02 Ah Sep 03 10:14:17 I would say new_list = old_list[:] Sep 03 10:14:23 but in java I don't know Sep 03 10:14:23 Kake_Fisk: Yes http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html#ArrayList%28java.util.Collection%29 Sep 03 10:14:41 Referred to as a copy constructor Sep 03 10:15:07 I'll try that Sep 03 10:15:08 hoo clone Sep 03 10:16:04 note: if you use reference objects in your list, you may need even more precautions Sep 03 10:16:24 (ints are ok) Sep 03 10:16:46 So, who knows about services? :) Sep 03 10:16:54 So I'm here for my question: how to set spinner items if it is in an AppWidgetProvider? Sep 03 10:17:02 I do just a bit Sep 03 10:17:34 HI , I am getting this error message http://pastebin.com/PCUVyKyt , i have already logged in inside the app but while getting the images the above exception occurs Sep 03 10:17:43 Even if I cheated a bit for 2 way comunication throug binding Sep 03 10:18:34 http://bazaar.launchpad.net/~binwiederhier/+junk/android-service-example/view/head:/src/com/philippheckel/service/ Sep 03 10:18:38 I used this Sep 03 10:18:50 Djehngo: Sep 03 10:19:52 But I still didn't had your question Sep 03 10:19:57 ^^ Sep 03 10:20:51 So I have a semi-persistant bound service which handles a connection to a server. I also have an intent service, the intent service needs to make use of the connection, so to do this I have the intent service bind the bound service. The problem I have is that ServiceConnection.onServiceConnected hasn't necassarily run by the time onHandleIntent is called. My solution is to do the equivelent of while(connectionServiceNotBound){Th Sep 03 10:20:53 this does not feel right, is there a cleaner way to solve this problem? Sep 03 10:21:35 Mostly my problem is that binding a service isn't a blocking action and I can't move onHandleIntent into the serviceBound callback Sep 03 10:22:20 ScrollView is an irritating little bitch Sep 03 10:23:35 s/ScrollView/java Sep 03 10:24:45 can you send me link for learn android programming ? Sep 03 10:24:50 maybe ebok or tutorial ? Sep 03 10:24:56 no, it's really just scrollview, it never looks right, it never works right and now it's complaining that it has more than one child when I call removeAllViews and then add a view to it Sep 03 10:24:58 i don't need documentations Sep 03 10:26:36 Sorry, this is a VERY common question but I haven't seen it answered in a way that quite makes sense to me. I have three png files with transparent backgrounds that look like a button pressed, unpressed, and highlighted. I want to make this into a fairly large button in the center of the screen. I do not want the standard button background, nor do I want the image sliced up and treated like a skin for a standard rescalable Sep 03 10:26:36 button. What's the best way to do this? Sep 03 10:26:51 will Build.fingerprint ever change Sep 03 10:27:13 Djehngo: I think bound services just suck. I'm not sure what use case they can possibly serve but the fact is the connection may not exist by the time you need it and in general you need a way to defer work to future when it does exist Sep 03 10:27:32 Djehngo: unfortunately I haven't discovered any simple way to achieve that Sep 03 10:28:23 one of the key problems is that error handling must be translated from exceptions to error callbacks, so the entire code using this crap must be flipped into callback style Sep 03 10:28:39 the alternative of not using bound services is often much simpler option. Sep 03 10:30:51 Djehngo: in your case you could in theory take the intent you received and put it in some array to be re-sent after the service connection has been established Sep 03 10:32:14 I should clarify, I already know about how to start an Intent, my question is JUST how to get it visually looking right. Sep 03 10:32:21 so instead of waiting that intent, you just defer the work to a future point after the UI thread gets around of saying 'new FooService()'. That's really what kills me about services, the fact they are mostly local objects and you STILL can't bind them synchronously Sep 03 10:35:01 I've tried an ImageButton with an XML selector file, for example, and it just makes a really tiny standard button with no image visible at all in it. Sep 03 10:35:48 I think the image might be there but the picture of the button is round, so if the top left corner of the image is all that's visible, it would be all transparent pixels, I think. Sep 03 10:43:31 I think I may be close to a solution... default of "wrap_content" apparently does NOT make the button as large as the image displayed within it, which is the behavior the docs *sound* like they're describing. Will try a value of "512px" instead and see if that gets it working. Sep 03 10:45:39 Djehngo: why do we need to bind the services? can't we use them whithout binding (as we must do in app widgets) Sep 03 10:46:19 it's rather easy to check if the service is running Sep 03 10:48:14 Does anyone have any experience with security issues of your Android App distributed in the Play Store? I can get a Google User ID through Google Play ... but is there any way I can check this ID at Google somewhere online? so then I can have my app check through my own website php script or something if the ID is a valid Google ID. Sep 03 10:50:34 is ViewGroup.removeAllViews() asynchronous? Sep 03 10:50:51 because that's the only thing that would explain the problem I am having Sep 03 10:53:19 Learned about dp (which the compiler wants instead of px). 512dp was way too big, the button more than filling the screen. Found a converter but I don't grok what I'm converting from or to just yet. Trying smaller values experimentally. Sep 03 10:54:19 WarpZone: you're converting to inches Sep 03 10:54:40 192 dp gives me a button that seems like a reasonable size to display at least part of my image, but it's still blank. AFAIK I'm not scaling the content at all. Sep 03 10:55:34 Compiler doesn't complain about missing images. It DOES complain if I change the strings currently in my selector XML file, so I assume the images are in fact being compiled. Sep 03 10:55:53 So 192dp is 192 inches? Sep 03 10:56:06 nope 192/160 inches Sep 03 10:56:39 uhhh... one sec. Sep 03 10:57:52 WarpZone: there are 160dp (or dip) to an inch. Sep 03 10:58:43 My emulated device's screen resolution is 480 x 800. I'm trying to get a 512x512 image more or less centered on the screen. The converter I'm aware of is this one: http://coh.io/adpi/ Sep 03 10:59:38 alankila: This makes a lot of sense, storing the events in a queue to be drained when the service connects seems like the right solution Sep 03 10:59:52 It says hdpi. Sep 03 10:59:58 WarpZone: dp and dip are the same, dpi is different Sep 03 11:00:36 You you are right, a huge amount of my code now uses callbacks, but I am used to that style so I don't mind too much Sep 03 11:00:43 plus fuck checked exceptions forever Sep 03 11:01:06 WarpZone: dp are density independant pixels, dpi is dots per inch Sep 03 11:01:17 Okay um can you please just suggest a reasonable size in dp to make my 512x512 image show up on the screen? I am trying to rule out crazy scaling or button-sizing as the reason my image is not displaying. Sep 03 11:01:49 Crovax-31: I actually quite like bound services, I don't like that I can't do a blocking bind easily, but the ability to suspend a service when it's not needed and not having to worry about multiple instances of the same service is quite nice Sep 03 11:01:55 when using traceview, is it possible to filter things to a single thread? Sep 03 11:02:05 WarpZone: can't you just set it to fitXY and set the width to match_parent? Sep 03 11:02:12 BTW: 192 dp seems to make the button 1/2 as large as the screen width. Sep 03 11:03:12 oh it's a button Sep 03 11:03:14 I'll try that thanks. I don't remember what the default value was... I think wrap_content? Both match_parent and wrap_content sound like they SHOULD be big enough. I'll try it. Sep 03 11:03:19 It's an imagebutton. Sep 03 11:04:31 WarpZone: try setting it's height to ="?android:listPreferredItemHeightLarge" see how that looks Sep 03 11:04:33 I have 3 simple images depicting my button in up, down, and highlit states. I just want that simple image to be what the button looks like. I don't know if I'm *supposed* to be using imagebutton or button or some other kinda funky solution. All I know is I haven't seen an example of how to do it well that just works yet. Sep 03 11:04:39 Okay! Sep 03 11:07:43 error: error No resource found that matches the given name Sep 03 11:07:53 bummer Sep 03 11:08:32 I'll try match_parent Sep 03 11:09:17 tbh 512x512 is gigantic for a button Sep 03 11:11:08 824KB of RAM per button /is/ quite a bit Sep 03 11:11:44 Well it's an app that only does one thing. Press the button, get a little "YAY!" It's a pick-me-up for when your day is going bad. Sep 03 11:12:08 woops. math was wrong. 1024KB Sep 03 11:12:26 ah. Might as well as make it 2048x2048 then :P Sep 03 11:12:48 Anyway, I'm now getting a standard button that fills the screen, with NO image displayed within it. Sep 03 11:13:24 I need a multiple selection of items in a user form Activity along with other inputs. Currently I made a button that says "Select Items" which starts another Activity with selectible items, and returns them as an Intent back. Is this alright? Are there any other alternatives to prompt user for multiple items to select in a form Activity? Sep 03 11:13:30 So I guess this is an improvement. It doesn't cut off at the edge of the screen or appear too tiny. So we know it's a problem with how I'm referencing OR displaying the image, I guess. Sep 03 11:13:58 Is it a bad thing that GC_EXTERNAL_ALLOC has to free something all the time? Sep 03 11:14:10 WarpZone: why don't you create some standard size images and put them into your resource folders, there's no need for this button to be so big Sep 03 11:14:28 WarpZone: http://iconhandbook.co.uk/reference/chart/android/ Sep 03 11:14:35 What is the standard size? Oh. Thanks! Sep 03 11:16:06 any one used monkeyrunner. I need help identifying view using view id. I have question here http://stackoverflow.com/questions/18590566/monkeyrunner-easy-by-viewid. Sep 03 11:18:15 Okay I should clarify. When launched, the app fills the whole screen, and displays the button. When pressed, the button is going to change the image so it looks like it's being pressed, play a sound, and do whatever simple flashy graphical thing I can fill the screen with. Fireworks or confetti or something. It's not a tiny icon that fills maybe 1/24th of the screen. It's the main event. At the very least I'm thinking i Sep 03 11:18:16 should be as large as 1/4 of the screen. Sep 03 11:19:05 512 may be overkill, but these standard sizes assume some kinda complex UI like a chat client or a game with an interface. That's not what this is. Sep 03 11:20:19 Or are you saying the Button and ImageButton classes only work with standard sized icons? Sep 03 11:22:02 blah I hate random null pointer errors Sep 03 11:23:01 haven't touched the class at all and I get them, wtf Sep 03 11:23:19 Need help? Sep 03 11:24:26 Oh, hey, clarify one thing for me. The example code here: https://developer.android.com/reference/android/widget/ImageButton.html Does not seem to include the file type of the images. For example, png. Is this normal? Sep 03 11:25:09 WarpZone: Yes Sep 03 11:25:16 JinAnkabut: I'd love some but it'd be too complicated to get you up to speed atm Sep 03 11:25:34 Resources don't typically include the file type extension when referenced in code/xml Sep 03 11:25:42 i'm aparently getting a null in private NotificationManager mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Sep 03 11:25:47 why can't i use @NotNull in android studio project? do I have to import manually? I read that the android annotations package is added by default in android projects Sep 03 11:26:01 or dont they have this annotation? Sep 03 11:26:36 Djehngo: Does the compiler just look for ANY valid image file with that name? Sep 03 11:29:39 I believe so, I don't know how it handles duplicates Sep 03 11:30:27 It doesn't.. that is, you'll get an error. Sep 03 11:30:45 Can't have image.png and image.jpg in the same dir. Sep 03 11:31:01 WarpZone: I believe the rationale has to do with this http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Sep 03 11:32:47 Hi All Sep 03 11:32:49 Howdy Sep 03 11:33:26 I'm looking to use some preformatted text in my app, is it better to store in the strings.xml or in some other format? Sep 03 11:35:39 How do you mean preformatted? Sep 03 11:37:07 Mickey I think I've read some things that says strings.xml is always better than using string literals. No idea if there's a better format out there, but strings.xml seems tried and true. Sep 03 11:40:44 You know what? Just as a sanity-check, I'm going to try tossing in one of my pngs that are used as launch icons. These came with the SDK, so if they work, it means something is wrong with my png files. Sep 03 11:48:04 Does anyone have any experience with security issues of your Android App distributed in the Play Store? I can get a Google User ID through Google Play ... but is there any way I can check this ID at Google somewhere online? so then I can have my app check through my own website php script or something if the ID is a valid Google ID. Sep 03 11:51:23 Djehngo: your service can reply by sending back an intent Sep 03 11:51:59 (even if it break you method) Sep 03 11:52:00 No change. This is driving me nuts. I am literally using exactly the code they recommend, same filenames and folder names and all. It does not complain about the images being missing. (It DOES complain if I change the code to reference a filename I know to be incorrect.) Changing the code to reference the icons instead of the actual button images has no effect, it's still a big blank button with a standard background. W Sep 03 11:52:01 gives? Sep 03 11:52:23 how to set spinner items if it is in an AppWidgetProvider? Sep 03 11:53:17 Good morning. Sep 03 11:54:14 I have this weird issue that my WebView doesn't accept inputs on API level 8. So far I found nothing. Any ideas? Sep 03 11:54:15 WarpZone: stay calm, go drink a tea/chocolate, eat a peice of chocolate away from your computer and come back ^^. Sep 03 11:54:25 Good idea, thanks! :) Sep 03 11:55:58 The thing in the webview is definitely running. Also, I use some native Android buttons below the webview that call some javascript inside and that works, too. Sep 03 11:56:18 so the only thing that's not working is tapping or swiping on the webview, but only on API 8... very strange :/ Sep 03 11:56:41 http://developer.android.com/about/dashboards/index.html Sep 03 11:56:58 UnbertKant: you need to go below api 8? Sep 03 11:57:13 no, it's not working on 8 Sep 03 11:57:21 8 is the lowest I use, it works fine on 10 and up. Sep 03 11:57:57 and the javascript inside works as well, I can send commands in with native android buttons. Sep 03 11:59:13 hi, is it possible to trigger the init of application object from a BroadcastReceiver ? Sep 03 11:59:14 4% Sep 03 11:59:34 4% are under API 10 Sep 03 11:59:51 I mean below Sep 03 11:59:59 Since I find nothing like this online, it might not be related to the WebView itself. Is there some weird layout thing that might cause Views to not be clickable on API 8, but works from 10 on? Sep 03 12:00:05 Like. Is what I'm trying to do just unreasonable? It's just a button. One button. This should not be hard. Sep 03 12:01:10 Oh but hey, here's an interesting question. You said 512x512 image would consume a lot of memory. If the emulator had less memory than that amount, how would it fail? Sep 03 12:01:17 WarpZone: Usually when I do java, nothing works, simply because I love python and hate java. sice a few weeks I'm ok with it Sep 03 12:01:28 but when you get angry: nothing work Sep 03 12:01:40 +s Sep 03 12:01:45 hello, anybody know this error: Sep 03 12:02:04 Yeah, the plan is to either fix the webview issue or kick api 8. Sep 03 12:02:06 E/Netd ( 5291): Unable to create netlink socket: Protocol not supported Sep 03 12:02:07 E/Netd ( 5291): Unable to open quota2 logging socket Sep 03 12:02:07 init: untracked pid 5291 exited Sep 03 12:02:07 I/Netd ( 5306): Netd 1.0 starting Sep 03 12:02:07 E/Netd ( 5306): Unable to create netlink socket: Protocol not supported Sep 03 12:02:07 E/Netd ( 5306): Unable to open quota2 logging socket Sep 03 12:02:09 Honestly I'm not angry yet, just confused. Angry is when I know it should work and it doesn't. Right now... it hasn't worked once yet, so I have no idea where I stand. Sep 03 12:02:11 init: untracked pid 5324 exited Sep 03 12:02:13 init: untracked pid 5306 exited Sep 03 12:02:15 I/Netd ( 5326): Netd 1.0 starting Sep 03 12:02:17 E/Netd ( 5326): Unable to create netlink socket: Protocol not supported Sep 03 12:02:19 E/Netd ( 5326): Unable to open quota2 logging socket Sep 03 12:02:21 init: untracked pid 5326 exited Sep 03 12:02:23 I/Netd ( 5340): Netd 1.0 starting Sep 03 12:02:25 E/Netd ( 5340): Unable to create netlink socket: Protocol not supported Sep 03 12:02:27 E/Netd ( 5340): Unable to open quota2 logging socket Sep 03 12:02:29 pls help Sep 03 12:02:47 wh-hw Sep 03 12:02:56 pastebin Sep 03 12:03:24 sorry, but this is my first time do this Sep 03 12:04:03 you make all other person discussions go away, use a lot of space, make a lot of noises and have a less readable error than when using a paste service. Sep 03 12:04:20 most dev chans kick you when you do this ^^ Sep 03 12:04:32 (I tryed too when I was younger) Sep 03 12:04:35 Ran a beefier emulator with moar memories. No change. So I assume it's not just failing silently cuz the content's too big. I give up for now. Thanks for everything, guys. Sep 03 12:05:00 I didn't saw you code Sep 03 12:05:12 WarpZone: only you error message Sep 03 12:05:27 not an expert but I already made an image button Sep 03 12:05:34 which works Sep 03 12:05:37 ^^ Sep 03 12:05:38 Can I see your code? Sep 03 12:06:11 I was using the snippet here, same filenames and everything: https://developer.android.com/reference/android/widget/ImageButton.html Sep 03 12:07:16 in my code I use it in an app widget Sep 03 12:07:25 which is weirdly complicated Sep 03 12:07:42 Oh joy. What are the advantages of doing it that way? Sep 03 12:08:35 none, you just have it on you desktop insted of on your app Sep 03 12:08:59 not what you want Sep 03 12:09:10 Oh. Like the clock? Sep 03 12:09:15 indeed Sep 03 12:09:19 is it normal that you cant see this special tablet layout when you use PreferenceHeaders on a nexux7? Sep 03 12:09:27 Okay I gotcha. Yeah, don't need that. Sep 03 12:09:53 your link don't look like a guide Sep 03 12:10:55 you don't even need selector I suppose Sep 03 12:11:05 You don't? Sep 03 12:11:18 even if now I see it... it sound interresting Sep 03 12:11:25 Actually it was spliced together with another tutorial, hang on, let me find it... Sep 03 12:11:25 (I didn't used it) Sep 03 12:12:28 (I'm here for a question because I con't initialise spinner elements from AppWidget) Sep 03 12:12:33 Here Corvax: https://developer.android.com/training/basics/firstapp/index.html I got as far as adding the button, then tried to customize it to be an imageButton with different visual states. Sep 03 12:12:58 Yeah I don't know anything about spinner elements yet, sorry. Sep 03 12:18:53 So I'm getting my blue belt in services and activity lifecycles (including their interdependency). My service is sticky. So when I force exit my activity, the service gets closed and auto restarted after 5 seconds. When I then start the app/activity again, it hooks up to the running service just fine. Sep 03 12:18:56 why is the two-pane style preferencefragmentactivity not shown on nexus7s?? Sep 03 12:19:20 So the question; does the service always have to be closed down when I close the activity, or could it be told to hang around and just exit the activity? Sep 03 12:22:36 C0br4: make sure the correct layout is being set in your values- folers Sep 03 12:22:42 s/foler/folders Sep 03 12:24:28 its all correct :( Sep 03 12:24:53 it seems that the new nexus7 has com.android.internal.R.bool.preferences_prefer_dual_pane set to false. wtf why google Sep 03 12:29:17 hello Sep 03 12:29:27 are there any developers using IntelliJ? Sep 03 12:30:30 duo_: i am sure there are Sep 03 12:30:36 C0br4: looks like preferences_prefer_dual_pane is only set at sw720dp. The nexus 7 is sw600 Sep 03 12:31:32 timroes: i'm looking for a way to speed up compilation time of my project. right now it can take up to 3 minutes, occasionally throwing outofmemory exception Sep 03 12:31:44 timroes: i was thinking about splitting my project into libraries Sep 03 12:32:27 C0br4: I would guess Google thinks that the nexus 7 is not wide enough when it's held in portrait mode for dual-pane Sep 03 12:32:30 timroes: do you think it would do the trick? Sep 03 12:33:05 jamuraa: thanks for digging. interesting, i thought this was a feature for all tablets Sep 03 12:35:06 duo_: from my experience gradle is just slow. but you can google around for speed up gradle (and check if building from the console is the same slow). I have no experiences how the build time would change if you split it up more (though creating reusable libraries is always a good approach). But 3 minutes sounds pretty long if you are running a custom modern system Sep 03 12:36:18 timroes: im running on windows 7 / i5 with 4 gb of ram so i think it's modern enough ;] Sep 03 12:36:26 timroes, duo_: Based on my experience, all java-based build systems are slow. Sep 03 12:36:32 Hey guys. need some help with the adb reboot bootloader part of building android from source. Can anyone help out? Sep 03 12:36:53 timroes: there is not much classes that i would like to reuse, so splitting would only make sense if it would speed up compilation Sep 03 12:38:47 I like the eclipse build system for java Sep 03 12:38:51 timroes: and i dont even have that many of classes in my project. there are however lots of resources, but i dont't know if thats the cause of compilation time Sep 03 12:39:17 change, save, it's running over a debug link in less than second. Not on android, though. Sep 03 12:40:14 but at least IDE building saves from having to discover what is different because the IDE simply knows what file you just changed, so that's a benefit for extra rapid change-test cycle Sep 03 12:40:44 people don't seem to think like I do though Sep 03 12:41:14 and in any case android can't do this because it sucks and nobody cares about how hard it is to develop for it as long as it's possible somehow. :-/ Sep 03 12:42:20 eclipse really puts me off. but i decided to try to migrate my project to it to check if the compilation would be faster, but i had a lot of problems with java version and files encoding so i resigned :P Sep 03 12:43:17 A lot of the time spent "compiling" on Android is actually dex'ing, which I guess is a combination of packing resources and converting jvm bytecode to dalvik. Sep 03 12:44:01 yes, android has that step. I guess it's baked-in to the system so unless someone works out how to make incremental dex building very fast, it's probably always going to be just slow Sep 03 12:44:07 bummer. so i guess i have to just compile less often :P Sep 03 12:45:20 and I guess the zip + sign + transfer + install steps aren't quite negible either. Sep 03 12:45:39 a lot of effort that just basically gets done and undone Sep 03 12:46:09 would be nice if you could just send over the new dex file and skip the whole package manager stuff entirely, or something. Sep 03 12:46:50 I normally resist making special paths for optimization reasons but the fact is this stuff just takes annoyingly long Sep 03 12:47:10 I haven't tried to quantify what the time breakdown is, though. Sep 03 12:48:07 Fact that I've got a POS laptop make it take forever to recompile each time :< Sep 03 12:48:10 iirc the dex file must be validated before android trusts it, this is one of the things the package manager does. It saves some runtime work iirc, but it's another one of those things that just has to be done Sep 03 12:48:57 takes like 10s here, but still slow compared to normal builds Sep 03 12:49:26 * alankila is tempted to check if just sending the new 'dex' & killing & restarting app would give a faster deploy Sep 03 12:50:20 if it works you could definitely write a crude hack that does some kind of diff of the resources on device and on your build tree and then just sends the differences. Kind of like rsync, I guess. Sep 03 12:51:55 how to fix position of a view? Sep 03 12:52:18 yola: perhaps FrameLayout? If by "fix" you mean "give it position in absolute coordinates" Sep 03 12:52:18 hah.. Sep 03 12:52:21 viewVariable.setLeft() and setTop Sep 03 12:52:42 alankila: ok you got what I mean Sep 03 12:53:44 alankila, btw: there is an eclipse settings entry for speeding up Sep 03 12:53:52 preferences => android => build Sep 03 12:54:06 "skip packing and dexing until export or launch" Sep 03 12:54:33 is it enabled by default? Sep 03 12:54:51 alankila: the problem is I have a text view and a footer, then user will add text to the text view making it to overflow now to prevent this i used scrollview. Bu the problem now is the footer goes to the top when the text view is empty Sep 03 12:54:52 I guess eclipse normally does continuous build but of course with android it's kind of absurd because it takes so long to do Sep 03 12:54:59 alankila, doesnt seem so Sep 03 12:55:02 lemme double-check Sep 03 12:55:22 alankila, http://stackoverflow.com/questions/13335674/speed-up-android-project-build-time-in-intellij-idea Sep 03 12:55:24 check the chart Sep 03 12:56:00 alankila, enabled by default .. at least i dont think i changed it and its enabled Sep 03 12:56:15 AFAIK, Google are the ones providing the Android build stuff for both Eclipse and Android Studio. After they added incremental dexing to the latter, there shouldn't be any major differences in build times. Sep 03 12:56:29 Well, I think I want to keep it enabled. I've not spotted any problems from eclipse continuously building a project, though I wonder if it really makes a complete apk all the time in the background Sep 03 12:57:14 it seems to me that when I change & launch I have to wait for the build to finish so I thought it's not doing it. But maybe the problem is I don't wait 10 seconds after change so I get to see the automatic build's tail Sep 03 12:59:54 anyone know much about the facebook sdk for android Sep 03 13:00:08 I know how bad it is compared to the G+ APIs Sep 03 13:00:25 yeah that's something I've learned too Sep 03 13:00:44 hey CocoStorm.. hows the app Sep 03 13:00:49 hey Naish Sep 03 13:00:51 ahh Sep 03 13:00:56 hey nseidm1 Sep 03 13:01:06 Napalm|afk, still working on it :) Sep 03 13:01:11 Naish in the house :-) Sep 03 13:01:53 The facebook sdk usues an activity for auth, meaning the facebook activity causes you're activity to pause. A joy when a users network connectivity is borked. Sep 03 13:01:54 CocoStorm: Supposedly there's a new one out (which I haven't tested). Sep 03 13:02:19 kjeldahl, a new sdk? Sep 03 13:02:22 ya Sep 03 13:02:39 Every time they update their sdk I have to modify it again because how poorly is was architected Sep 03 13:03:19 https://developers.facebook.com/blog/post/2013/08/20/new-tools-for-android-developers--updated-sdk--share-dialog-and-more/ Sep 03 13:05:11 hey, another question, i have wrote custom ScrollView with autoscroll option, it scrolls it's content in given duration. now, when i want to resume scroll position after activity resumes it needs to know it's height, but in onResume method on my activity it's isn't yet displayed so the height is 0. how should i deal with that? is getViewTreeObserver the only option? Sep 03 13:05:32 alankila: image http://imagebin.org/269720 Sep 03 13:06:08 duo_: LayoutChangedListener Sep 03 13:06:54 yola: by the way for a footer you want a linearlayout with weight assigned to the flexible component Sep 03 13:07:22 and you should probably use a listview for whatever you have that isn't a footer Sep 03 13:07:23 is there an easy way to see where an xml file or any of its content is used? (eclipse) Sep 03 13:07:44 IntelliJ has a lovely "Find Uses" command :P Sep 03 13:07:52 scrollview has some use cases but generally it's not a good choice for displaying a list Sep 03 13:07:55 alankila: I am using scrollview now Sep 03 13:08:42 UnbertKant: probably write R.layout.foo is the xml file is a layout and then use the search option to find uses of the 'foo' symbol Sep 03 13:08:50 first is=if Sep 03 13:09:14 you'll find the use you just generated but other uses of the same integer value Sep 03 13:09:33 but also. Too. Damn. I've probably drank too much tea today Sep 03 13:11:40 the design is prefect when the page is full Sep 03 13:12:01 nseidm1: you mean like mScollView.getViewTreeObserver().addOnGlobalLayoutListener({ stuff to do on resume here }); -- right Sep 03 13:12:27 nope, I mean view.addOnLayoutChangedListener({stuff to do here}); Sep 03 13:12:41 still looks rather horrible :P Sep 03 13:13:16 why? You want stuff to do once the height is no longer 0. Makes sense. Sep 03 13:13:23 when is such stuff run exactly anyway? Sep 03 13:13:25 Use a listener waiting for the height to not be 0 Sep 03 13:14:55 i get it, thats how i did it, but it looks kinda hackish :P i would like to just write onResume() { mScrollView.scrollTo(0, savedY); } Sep 03 13:15:20 why do i have to care how and when layout is done xP Sep 03 13:16:07 alankila: please tell me the exact syntax Sep 03 13:18:32 nseidm1: wait, there is no .addOnLayoutChangedListener() on View class in my sdk version (10, i think) ;P Sep 03 13:18:41 11 Sep 03 13:18:49 + Sep 03 13:19:20 right, but i'm building for 2.3 ;( Sep 03 13:19:37 waste of time, target 14+ Sep 03 13:19:52 well, it's not for me to decide sadly Sep 03 13:20:18 hello Sep 03 13:20:54 you can extend your viewgroup and add a callback in onLayout, which is the same thing the OnLayoutChangedListener does Sep 03 13:21:22 yola: well, you have 2 kids for a linearlayout, a listview and whatever you use for the footer. The listview has weight="1" and height="0dp" because it will be ignored, the other has probably height of wrap_content Sep 03 13:22:20 alankila: I am using scrollview instead of listview Sep 03 13:22:20 nseidm1: hm, not bad idea, thanks Sep 03 13:22:25 shall I change it Sep 03 13:33:32 Im trying to create a widget which uses the RemoteViewsFactory. Would it be possible for me to use my app's adapter, inside my RemoteViewsFactory? My app has a very complicated adapter, which i dont want to re-implement. Can i use an adapter inside an adapter? Sep 03 13:35:53 I'm on an old eclipse and an old adt. Which one should I update first? (if it even matters) Sep 03 13:36:01 I guess eclipse, huh? Sep 03 13:36:03 You can use an adapter in an adapter. I've used an adapter in a adapter in a custom GridView header Sep 03 13:36:28 UnbertKant: correct Sep 03 13:37:52 Ok, but my real question is can i use an adapter as my source of data in RemoteViewsFactory? Sep 03 13:39:03 alankila: see my code if i can fix before change the scrollview to listview Sep 03 13:39:04 http://pastebin.com/v17TtswR Sep 03 13:41:49 how is android-studio going... is it ready for prime time yet? Sep 03 13:41:53 whats missing? Sep 03 13:42:29 ive been using it for some time now, it has its ups and downs. but lately its been real nice. Sep 03 13:44:11 I don't like it Sep 03 13:44:25 under: why not? Sep 03 13:44:50 It's not very user-friendly Sep 03 13:48:12 yola: I don't think I can just fix this. I'm just saying that a way to achieve what is known as borderlayout is to have a linearlayout with one item having weight and the other wrapping its content. Sep 03 13:48:43 so the one with weight receives all the other did not use, you can then compose whatever you want inside the one that has the weight set Sep 03 13:49:18 have any of you guy dabbled in any sort of indoor navigation? Sep 03 13:49:45 Hey guys, some time ago when I had a Nexus One, I tried developing an application to send custom SMS PDU's Sep 03 13:49:58 alankila: ok Sep 03 13:50:30 mainly to enable/disable indicators (voice mail/ fax/ email), however it seemed the radio on the device manipulated the PDU. Not the Android framework code or the radio interface Sep 03 13:50:47 Is the radio code for any android handset manufacturers available online? Sep 03 13:50:52 I'm having trouble finding any Sep 03 13:52:08 i have a few options avalable to me, WiFi, Bluetooth and the acceloromoter(least disirable method no so accurate), so far wifi looks the simplest but apparently nokia is using blutooth to do this http://www.youtube.com/watch?v=S2GALFBrtXk have no idea how they are getting accuare like that Sep 03 13:53:09 Damo2k: afaik no. There is but one open-source gsm stack and it's been used in an experimental setting to make a few calls afaik Sep 03 13:53:35 whats the best way to display a webview when using and android tablet? I'm using webview with normal settings for a phone but my app will also view the same pages on a nook hd Sep 03 13:54:29 I want tablets to display in landscape so I'm looking for the best way to present the web that way Sep 03 13:55:55 alankila: I'm nearly certain that manufacturers radio stacks are modifying the pdu Sep 03 14:02:39 Why there is no info (at the top) that BaseAdapter implements Adapter interface ... Sep 03 14:02:40 http://developer.android.com/reference/android/widget/BaseAdapter.html Sep 03 14:05:22 bluesm_, indirect Sep 03 14:06:29 serrghi, that would work fine, I've reused adapters for remote views a bunch Sep 03 14:14:04 hi i'm looking for a solution to develop applications for wide range of devices including android and ios (something like phonegap) what do you suggest? Sep 03 14:18:58 bluesm_ : Indirect ? Sep 03 14:19:02 yea phonegap Sep 03 14:19:04 dont forget Sep 03 14:19:29 lxsameer: a prayer? Sep 03 14:19:38 although youre goign to be using phone gap and developing for multiple mobile os's you still need windows and a mac to program on Sep 03 14:19:40 lxsameer: I've heard clenching really firmly makes a single app work on all platforms Sep 03 14:19:46 or just a mac.... Sep 03 14:20:07 basically you still need xcode... from my understanding of phonegap any wa unless they have changed their spec Sep 03 14:20:48 phonegap, um, fail? Sep 03 14:21:30 nseidm1: prayer ? Sep 03 14:26:02 Android and iOS have completely different framework structures, design patterns, and UI expectations. It's insane to thing a single app can work identically on both platforms. Sep 03 14:26:11 *think Sep 03 14:26:13 bluesm_, it implements adapter indirectly Sep 03 14:29:27 anyone? http://stackoverflow.com/questions/18594338/android-translate-animation-issue-when-rotating-device-video Sep 03 14:36:36 serrghi: question... is there a quick way in AS to open a new ACTIVITY from a button.. I am more of an IPHONE developer... Sep 03 14:37:22 IrishGringo: Do you mean startActivity()? Sep 03 14:37:53 I suppose... I just wanted to puch a button and transition to a new screen... so I guess it could be something other than an activity Sep 03 14:38:08 I am reading the docs about it nwo... looks like it woul dbe a view Sep 03 14:39:06 Yeah Sep 03 14:39:30 IrishGringo: in the click handler for your button use startActivity. Sep 03 14:40:02 IrishGringo: Say you have 2 activity classes, ActivityA and ActivityB. Within ActivityA's button, you want to make a new Intent that references ActivityB and they you startActivity(intent) Sep 03 14:41:01 IrishGringo: a simple example can be found in the button docs: http://developer.android.com/reference/android/widget/Button.html Sep 03 14:41:34 hi everyone, what about an error on ide time (android studio). Could be only a bad config? Sep 03 14:41:49 thanks... I will give this a look... I think the navigation back to the ActivityA is going to be interesting as well. Sep 03 14:42:20 IrishGringo: if you don't change anything the back button will work as expected. Sep 03 14:42:40 IrishGringo: if you start activity B from A then back will go back to A by default. Sep 03 14:42:58 another AS question... is there a simple way to force Portrait mode for a screen? Sep 03 14:43:11 IrishGringo: There's a setting in the manifest you can set Sep 03 14:44:33 JinAnkabut: its not possible to force Portrait in the Activity? Sep 03 14:45:15 Sure but I would still do it in the manifest Sep 03 14:45:22 So you have your IrishGringo: and you add android:screenOrientation="portrait" Sep 03 14:46:12 IrishGringo: and think long and hard before you lock orientation since it will in many cases annoy your users ;) Sep 03 14:46:14 IrishGringo: Docs are here for more stuff http://developer.android.com/guide/topics/manifest/activity-element.html Sep 03 14:46:50 the reason why I am asking stupid questions is becuase I assumed the AS would have right click and menu options to handle this stuff for me... just experimenting Sep 03 14:47:13 IrishGringo: It's ok dude Sep 03 14:48:10 So if anyone has an iPHONE dev question... I suppose I owe you one... ;) Sep 03 14:48:31 IrishGringo: I'll hold you to that :P Sep 03 14:49:23 IrishGringo: I'd also recommend reading the design guidelines and the tutorial stuff on d.android.com so you don't end up trying to force iphone practices and design into your android app. Sep 03 14:50:51 Hi everyone - I am using PhoneGap for my Android mobile application. I have GeoFencing working fine but when application is not ON, then geofencing doesn't work. Why? Sep 03 14:51:39 monsterco: I think #phonegap may be more helpful :) Sep 03 14:52:29 Back to the AS orientation question... I know what I am suppose to put... But I was really trying to find the way that AS helps to do it... I have tried Right Click... no joy Sep 03 14:52:33 IrishGringo: and if you're missing gui editors for a lot of things consider that AS is an early access preview Sep 03 14:53:07 ok... so its just not in there yet... cool Sep 03 14:53:09 IrishGringo: what's there now is the build tools, code editing and a layout editor basically Sep 03 14:53:17 as I've undestood it :) Sep 03 14:53:26 Hey guys, I'm using the facebook sdk and everything runs fine when I use the graph api with the path: me/home however if I use something like "search?q=sam smith&type=user&fields=name,picture" I get a null pointer exception. I believe I have the necessary permissions as everything works in the facebook explorer tool Sep 03 15:08:24 CocoStorm: I'm new to android, but maybe something to do because of the spaces like in "sam smith"? Is the url encoded with URLEncoder? Sep 03 15:08:50 skullcrasher, i've tried withuot spaces same result Sep 03 15:12:08 CocoStorm: Could you paste the stacktrace to pastebin please? Sep 03 15:15:12 Looks like I fixed it guys Sep 03 15:15:15 this helped me http://stackoverflow.com/questions/14928878/facebook-android-api-function-executegraphpathrequestasync-not-giving-expected-r Sep 03 15:15:43 I didn't know you couldn't add fields using 'executeGraphPathRequestAsync' Sep 03 15:15:52 the facebook docs are terrible Sep 03 15:19:37 thanks though guys Sep 03 15:20:16 hi, I have a SQLite table, with three fields: ID, Header, Content. I want to display the Header, Content in listview, which type of Adapter should I use? Sep 03 15:21:43 van7hu: ArrayAdapter will do :) http://www.vogella.com/articles/AndroidSQLite/article.html#databasetutorial Sep 03 15:22:23 JinAnkabut, I am reading it, but ArrayAdapter won't let it done Sep 03 15:22:40 van7hu: How comes? Sep 03 15:22:50 I mean a list "header1:content1", "header2:content2" Sep 03 15:22:54 ... Sep 03 15:23:29 header1, content1 are 2 difference textviews Sep 03 15:23:59 You'd usually use a CursorAdapter Sep 03 15:25:24 SimonVT, ok, will have a try. Sep 03 15:39:05 I am using phonegap and navigator.geolocation.watchPosition stops relaying once application is exited - is there a workaround for this? Sep 03 15:39:21 Hi all, does Google Drive app have to be installed for apps using drive API? Or can they talk directly to Drive in the cloud? Sep 03 15:41:08 jwm1, talks directly Sep 03 15:41:54 Awesome, one more thing to uninstall and free up space, thanks Sep 03 15:42:24 but being able to use GET_CONTENT and getting a drive content uri is awesome Sep 03 15:43:07 oh Sep 03 15:43:21 I'll have to see if any of the apps I use are doing that... Sep 03 15:43:34 it's uncommon Sep 03 15:43:40 basically a filepicking intent Sep 03 15:44:01 KeePassDroid does that Sep 03 15:44:41 but I'm more concerned about the other Google apps that integrate with it, like Keep and My Tracks Sep 03 15:45:03 you meen KeepAssdRoid? Sep 03 15:45:27 keepassdroid doesn't know how to handle the GET_CONTENT result from drive, I think Sep 03 15:45:46 It never did work right Sep 03 15:45:59 I'm planning on implementing it correctly in my app Sep 03 15:46:43 I think it doesn't correctly describe the filetype it needs, because it doesn't work correctly with the SkyDrive picker either Sep 03 15:49:02 Oh one more question, does Google+ Auto Backup still use the Picasa uploader, or does it do its own work now? Sep 03 15:53:38 Nevermind, tested empirically -- disabled Picasa Uploader and it still works. Sep 03 16:00:08 no, it's because keepassdroid doesn't know how to convert from a content uri to a path Sep 03 16:00:28 basically, need to download the file, then save the path to load Sep 03 16:02:00 in http://developer.android.com/training/basics/firstapp/starting-activity.html how does the activity sent by MainActivity get picked up by DisplayMessageActivity? Sep 03 16:02:29 there is no intent-filter for DisplayMessageActivity as shown in that page Sep 03 16:05:16 oh i see, it's an explicit intent new Intent(this, DisplayMessageActivity.class); Sep 03 16:07:48 back later Sep 03 16:15:54 where does one go about increasing AutoCompleteTextView result font size? Sep 03 16:16:26 in the drop down view resource Sep 03 16:16:32 just override getView in the adapter Sep 03 16:17:01 no way to set it up in the xml? Sep 03 16:21:44 nseidm1, can you point me to a sample code? Sep 03 16:24:15 not quite that simple Sep 03 16:26:22 http://developer.android.com/reference/android/widget/AutoCompleteTextView.html#setAdapter(T) Sep 03 16:26:25 use setAdapter Sep 03 16:26:31 to set a custom adapter Sep 03 16:26:59 yeah Sep 03 16:27:01 did it Sep 03 16:27:02 it works Sep 03 16:27:06 sorry for stupid question Sep 03 16:27:06 :> Sep 03 16:27:12 thanks! Sep 03 16:34:50 http://www.android.com/kitkat/ Sep 03 16:37:28 how i can simulate an version upgrade? Sep 03 16:37:51 upgrading an android app keep my application data Sep 03 16:40:59 hi, how can I exchange messages between services ? Sep 03 16:41:12 awesome Sep 03 16:41:16 that's the next version name? Sep 03 16:41:26 KitKat Sep 03 16:41:37 I <3 kitkats Sep 03 16:41:38 it's on android.com, so I would assume so Sep 03 16:42:07 * pfn goes back to figuring out how to write his own ime Sep 03 16:42:10 looking good... Sep 03 16:42:12 kitkat ? !! Sep 03 16:42:21 better than keylimepie Sep 03 16:42:24 that name was stupid rumor Sep 03 16:43:36 pfn +1 Sep 03 16:46:18 what's a popup keyboard? Sep 03 16:46:24 I do also love kitkat Sep 03 16:46:32 so will 5.0 not be key lime? Sep 03 16:46:51 says 4.4 Sep 03 16:46:56 who knows? Sep 03 16:47:05 yeah.. it would be weird to go from 4.4 Kitkat to 5.0 keylime? Sep 03 16:47:49 it doesn't match with the alphabet style, which is actually there for practical reasons as well as aesthetic reasons. Keylime isn't even after Kit Kat in the alphabet Sep 03 16:47:50 the question is : When?? Sep 03 16:48:08 jamuraa: right Sep 03 16:48:09 https://pbs.twimg.com/media/BTQIADeCUAAJ3WN.jpg Sep 03 16:48:13 kitkat statue Sep 03 16:48:15 csst0111: my bet is on Ocotber with new Nexus phones Sep 03 16:48:49 under: nice Sep 03 16:49:51 I bet KitKat will sell better in the near future Sep 03 16:52:29 papachan: install an old version of the app, sign in, snapshot the emulator Sep 03 16:52:47 I'm kinda new to Android's filesystem-- is there a reason why /storage/emulated/0 would exist on a physical, non-emulated device? Sep 03 16:53:03 but Google and Kit Kat have unveiled a new promotion with the chance to win a free Nexus 7 2013 or Google Play Store credit. Sep 03 16:53:03 wtf Sep 03 16:53:05 more and more of "android" seems to be going into a combination of support libraries and the play services [wondering when everything will just move into here, rather than "android versions."] Sep 03 16:53:19 JakeWharton: thank you i am trying to do this Sep 03 16:57:41 ScottishPig, /storage/emulated means it's emulating external storage Sep 03 16:57:46 ScottishPig, has nothing to do with a device emulator Sep 03 16:57:59 ScottishPig, i.e. pretending it's external storage when you don't have an sdcard slot Sep 03 16:58:10 * ScottishPig slaps his forehead. Sep 03 16:58:31 Thanks for clarifying, pfn. Sep 03 17:00:05 hi Sep 03 17:00:35 hello. if I see some character device on the system, is there an easy way to find out what functions specifically get invoked when I do open(), mmap() etc. on it? Sep 03 17:01:32 I've succesfully created a contextual menu, but when I select items, their background doesn't change. Why does it does this? Sep 03 17:11:24 hi, if i download android source code, compile and flash zImage to custom rom, should the version of the kernel be the same as the roms version? thanks Sep 03 17:15:47 anu one know a good wireless irc channel? Sep 03 17:15:53 wifi bluetooth etc Sep 03 17:16:14 so... what's a popup keyboard Sep 03 17:16:57 as in the popup keybaord on andorid? Sep 03 17:17:21 ACTION  Sep 03 17:17:23 when u tap a text input element the keyboard pops up? or are you talking about that new tech thats overlayed on screens Sep 03 17:17:41 no, it's separate from the normal keyboard Sep 03 17:17:44 I have no idea what it is Sep 03 17:17:47 new tech? Sep 03 17:18:01 http://developer.android.com/reference/android/inputmethodservice/KeyboardView.html#attr_android:popupLayout Sep 03 17:18:04 trying to understand what that's for Sep 03 17:18:17 https://www.youtube.com/watch?v=c35w1Pc4tcE ? Sep 03 17:18:58 doesn't seem relevant vis-a-vis the android attribute though... Sep 03 17:19:05 and wtf, why isn't android:keyPreviewHeight documented in KeyboardHeight Sep 03 17:19:41 well actually, I take that back. unsure Sep 03 17:20:03 hmmm i think it may be somthing to do with the kayboard having that button to put it away down the bottom left Sep 03 17:20:18 using the popup layout might allow u to put it away again Sep 03 17:20:29 rather than tapping another elemnt on screen ot pressing return Sep 03 17:20:44 http://i.stack.imgur.com/gkYiS.png Sep 03 17:20:49 see the botton Sep 03 17:20:55 button* Sep 03 17:21:23 only thing i can think of Sep 03 17:21:25 I don't think that's it either Sep 03 17:23:11 hi all. im having trouble understanding between public and private external storage. does private external storage mean the user cant see or access the files? Sep 03 17:26:57 no clue, external storage is implicitly public... Sep 03 17:28:32 here it says: Returns the absolute path to the directory on the external filesystem (that is somewhere on Environment.getExternalStorageDirectory()) where the application can place persistent files it owns. These files are private to the applications, and not typically visible to the user as media. Sep 03 17:29:11 im guessing it says not typically visible to the user because android devices don't have a file browser.... pretty confusing though Sep 03 17:29:52 yeah, it's just like /sdcard/data/Android/package.name/... Sep 03 17:29:58 it's browsable, but it's not really private Sep 03 17:30:10 it just isn't searched for media by default Sep 03 17:30:41 Android Studio question... I want to autoAdd a library... View to my Activity... I thought there was some fast Key combo that would do this? Sep 03 17:31:46 oh, popupLayout is when you long press a key and it brings up a menu Sep 03 17:33:28 canurabus: it's visible to the user, fwiw - for instance, when they connect via usb. Just -- not indexed in media database, as pfn says. Sep 03 17:35:08 also to note - it's read/write access by all other applications if they so choose; and so probably not correct to think of it as "private" in any significant way. Wish they hadn't used the word "private" here, maybe just "unindexed" public data or something Sep 03 17:37:14 serrghi: Is there a way to import dependancies with a fast key click... I thought I saw something like that... Sep 03 17:37:20 I am getting this error... Gradle: error: cannot find symbol class View Sep 03 17:37:37 kbs, thank Sep 03 17:37:39 *thanks Sep 03 17:39:34 IrishGringo, alt+enter Sep 03 17:40:06 there doesn't seem to be a way to just create a generic folder for persistant storage. There's the getExternalStoragePublicDirectory() to create a dir that isn't deleted when your app is, but you have to pass it a DIRECTORY_XYZ folder Sep 03 17:40:44 what's wrong with your external storage directory? Sep 03 17:40:49 my android device has quite a few app-specific folders along in the same directory as Music, Pictures, Movies, etc. Sep 03 17:41:00 its deleted when the app is removed Sep 03 17:41:12 that's because the app deletes it Sep 03 17:41:26 maybe Sep 03 17:41:34 pfn: thanks... perfect Sep 03 17:41:49 IrishGringo, it tells you the keyboard shortcut when it shows the error... Sep 03 17:41:57 if i pass null to getExternalStorageDirectory, ill get /path/to/stuff/com.package.name/ Sep 03 17:42:06 that'll be removed when my application is removed Sep 03 17:42:41 canurabus, does it... that's actually very nice Sep 03 17:42:53 IrishGringo, http://ezscreens.appspot.com/view/d4ec/intellij+showing+shortcut Sep 03 17:42:56 should read the tooltips :p Sep 03 18:01:01 I wonder if we will be able to purchase these android shaped kitkats Sep 03 18:03:50 Hi! Any one got a good tip for doing push messages on android (except goodgle cloud) :) Sep 03 18:04:06 found https://github.com/davidrea/Deacon/ but looks discontinued Sep 03 18:08:08 just use gcm Sep 03 18:08:12 anything else sucks Sep 03 18:08:25 http://waxy.org/random/images/weblog/leaked-android-release-deck-20130903-103549.png Sep 03 18:08:29 But then others cant build it from source Sep 03 18:08:37 build what from source? Sep 03 18:08:42 an have push work Sep 03 18:08:53 why can't others build it from source... Sep 03 18:08:55 works fine Sep 03 18:09:11 Yes put push will not work. Or am i wrong? Sep 03 18:10:16 *but Sep 03 18:10:57 You need to use an API key and thats tied to the SHA1 of the signing key Sep 03 18:11:02 so? Sep 03 18:11:06 everyone has a different signing key Sep 03 18:12:23 yes I know but then everyone needs there own backend server Sep 03 18:13:14 everyone needs that for any other alternative you want to use Sep 03 18:13:16 just use gcm Sep 03 18:13:30 I've succesfully created a contextual menu, but when I select items, their background doesn't change. Why does it do this? Sep 03 18:13:44 Jell-E, because your background drawable doesn't have a selected state Sep 03 18:13:52 or your item doesn't have a selected state Sep 03 18:13:59 ah ok thanks Sep 03 18:14:04 that was easy Sep 03 18:14:55 pfn: Ok thanks Sep 03 18:16:48 Anybody had success running an app with android:sharedUserId="android.uid.system" via eclipse? Sep 03 18:18:18 I'm getting "Package com.example.testapp has no signatures that match those in shared user android.uid.system; ignoring!" Sep 03 18:21:10 Andrew76: are you trying to put your package into a shared userid? Sep 03 18:21:46 You're not going to be able to run as system unless you're the one developing the OS Sep 03 18:22:10 Essentially I want the app to run as the system user so it has additional privileges. Yes, I'm the one developing the O/S so I have the various security pem/pk8 files. Sep 03 18:22:32 You need to sign the app with the same key as the system Sep 03 18:22:40 (Definitely not something that'd be out for wide release.) Sep 03 18:23:05 http://www.android.com/kitkat/ < w00t Sep 03 18:23:24 Yeah I'm trying to figure out how to do that signing. Messing with keytool and openssl now. Sep 03 18:24:40 is it possibel in android to get an app to wake up when internet comes back on? say you have a non-service app that wants to do stuff while offline but lets say it shuts down/dies/phone reboots.. any ermission/way to start it up and let ti know the internet is back? Sep 03 18:25:13 Andrew76: i believe you only need to use keytool Sep 03 18:25:55 Andrew76: and i think if you put the sources into the android source tree and make the right Android.mk, it should sign it for you, and build it right into the system image Sep 03 18:25:59 clever: Got any ideas/links regarding hte correct command format? Sep 03 18:26:17 Andrew76: i would look at how all the other system apps are being built into system Sep 03 18:26:41 Yeah but I don't want it as part of the system image. I want it as a separate user app I can load & debug via eclipse. That's the tricky part. Sep 03 18:27:07 ah Sep 03 18:28:16 let me have a look.... Sep 03 18:28:30 i dont think openssl command line tools play any part, just keytool Sep 03 18:28:46 and if you can find the keystore, you dont even need keytool, just copy it to the right location Sep 03 18:29:21 Is developer.android.com going ridiculously slow for anyone else? Sep 03 18:30:22 hey, i'm having some trouble running what i assume is an unsigned apk from a student of mine; adb install fails with the following message: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Sep 03 18:30:50 i assume that if i have 'unknown sources' enabled in the security preferences that it shouldn't need a certificate... Sep 03 18:31:12 diphtherial: Do you have a previous version of the app installed? Sep 03 18:31:14 It always needs to be signed Sep 03 18:35:58 JamoBox: i don't believe so, no, but i can check if i have anything similarly named on here... Sep 03 18:36:27 You can not installed unsigned apps Sep 03 18:36:28 hmm, this is going to be a pain to explain to them, then; i figured if they followed the 'hello, world' tutorial on the android developer site i wouldn't have a problem testing their APKs Sep 03 18:36:40 SimonVT: right, i saw you mention that earlier Sep 03 18:36:54 i suppose i'll have to figure out what this person's doing wrong, then Sep 03 18:36:59 diphtherial: SimonVT is probably correct, but I've noticed similar issues when debugging with a previous signed version of the app Sep 03 18:37:04 Just teach them to pull the debug apk from bin/whatever Sep 03 18:37:08 Andrew76: hmmm, inside a sample apk file i can see a CERT.RSA and CERT.SF, but it doesnt appear to be PEM or DER format Sep 03 18:37:17 Or, to sign it properly Sep 03 18:37:31 09-03 11:37:04.899: WARN/InputMethodManagerService(509): Ignoring setInputMethod of uid 10128 token: Token{43262018 ActivityRecord{429dbcb0 u0 com.hanhuy.android.keepshare/.ShareActivity}} Sep 03 18:37:33 huh, why Sep 03 18:37:36 SimonVT: How do they debug? Emulator? Sep 03 18:37:58 SimonVT: right, that's clearly preferable...i'm not even sure why they're turning things into me, considering that the lab isn't even complete :x this is starting to become a nightmare Sep 03 18:38:12 JamoBox: Huh? Sep 03 18:38:29 SimonVT: Sorry, that was meant for diphtherial Sep 03 18:39:18 clever: Yeah I found a keytool-importkeypair script somewhere (I think StackOverflow) and I've been trying the commands from there. No luck so far. I think I successfully imported the shared, superuser, and platform keys into my debug.keystore. Still no good. Sep 03 18:40:10 Andrew76: i think the build tools expect the key to have a certain name within debug.keystore Sep 03 18:40:34 hmmm, i think CERT.RSA is a pkcs7 file, *checks* Sep 03 18:41:55 Andrew76: openssl pkcs7 -in CERT.RSA -inform der -noout -text -print_certs Sep 03 18:41:59 clever: Yeah I'm in unfamiliar territory here. Sep 03 18:42:05 Andrew76: this will dump the cert, after you extract the file from an apk Sep 03 18:42:17 Andrew76: that could let you manualy compare the cert on 2 apk files, to verify things outside of android Sep 03 18:42:24 Yes, the debug key has to have a specific name and password Sep 03 18:42:34 By default, can probably change it somehow Sep 03 18:44:10 SimonVT: do you know anything about the keystore used to sign the system apps? Sep 03 18:45:59 nyahahahahahaha, I am so happy 4.4 isn't called Key Lime Pie :> Sep 03 18:52:31 oh this is bad Sep 03 18:53:12 I was looking forward to having an excuse to try some Key Lime Pie Sep 03 18:53:26 Also, not 5.0, but 4.4 xD Sep 03 18:54:09 p_l: continuing the insane name/number scheme Sep 03 18:54:56 Ankhwatcher: If you think that's insane you've clearly not seen many software versioning schemes. Sep 03 18:55:03 Especially Java's. Sep 03 18:55:19 "This is Java 1.5. It's also Java 5. Because reasons." Sep 03 18:55:25 people need to try tasting more desserts Sep 03 18:56:36 I tried doing the stuff here: http://stackoverflow.com/questions/2562051/listview-item-background-via-custom-selector, but when I do it, the animation for long pressing doesn't play animore Sep 03 18:56:44 ‘We realised that very few people actually know the taste of a key lime pie." - Android team Sep 03 18:57:08 louielouie: so they decided to contribute to the problem Sep 03 18:57:21 my bet was on "Klondike" Sep 03 18:57:29 Ankhwatcher: good point Sep 03 18:58:42 it's like ubuntu deciding that because people don't speak ancient african they're going to rename the distro 'Trevor' Sep 03 19:00:09 so does this mean that when devs refer to Kit Kat as a release they need to include the Registered trademark logo? like google did here: http://www.android.com/kitkat/ Sep 03 19:00:10 lol Sep 03 19:00:45 yea the registered trademark puts a damper on things - like making t-shirts and stuff Sep 03 19:01:16 RyanM: Java was quite normal for Sun... Sep 03 19:01:36 RyanM: I was wondering about that Sep 03 19:01:42 p_l: yea Solaris was like this never-ending series of point releases Sep 03 19:01:46 RyanM: compare Solaris 10 = SunOS 5.10 = Solaris 2.10 Sep 03 19:02:04 and SunOS 4.2 was, iirc, Solaris 1.4.2 Sep 03 19:02:23 p_l: That's awful @_@ Sep 03 19:03:06 RyanM: Windows was stuck on 4.x for a looong time Sep 03 19:03:31 remember when people tried to justify the number 7 for Windows 7 Sep 03 19:03:33 95, 95OSR2, 98FE, 98SE, Me = All 4.x Sep 03 19:03:50 Windows isn't as bad Sep 03 19:03:50 i think i first tried out SunOS 5.4 which was Solaris 2.4 and then the next rev was 5.5/2.5 Sep 03 19:04:00 though 6.1 for 7 is just confusing. Sep 03 19:04:49 since most of the 9x releases were clearly years. Sep 03 19:04:52 RyanM: I heard something about more shit breaking when they put 7.0. But in general, there weren't enough changes between 6.0 and 6.1 to warrant a major number increase, same for 8 and 8.1 (which is 6.2 and 6.3) Sep 03 19:05:12 p_l: Yeah, that's the reasoning, and it's sound. Sep 03 19:05:14 RyanM: because all 9x releases were 4.x Sep 03 19:05:26 tl;dr devs can't check version numbers properly. Sep 03 19:06:04 So what the next name going to be? Sep 03 19:06:14 RyanM: I once read a chapter in a book about writing good code, written by devs who were involved in keeping backward compatibility in windows, describing the crazy shit they had to pull so applications would keep working Sep 03 19:06:27 Android 4.6 Luncheon Meat Sep 03 19:07:55 Ankhwatcher: names are taken from sweets, so rather not that Sep 03 19:09:00 Lemon Meringue Pie? Sep 03 19:10:46 Licorice? Sep 03 19:11:52 i wonder if google had to give money to Nestle to use kit kat Sep 03 19:12:31 oh, nestle has a promo video too, heh Sep 03 19:12:42 i guess they are in this together :P Sep 03 19:12:43 g00s: or probably google will get money from Nestle Sep 03 19:12:52 yeah, seems mutually beneficial Sep 03 19:13:10 plus the Android team will get unlimited KitKat nom nom nom Sep 03 19:13:26 p_l: Raymond Chen mentions a lot on his blog "The Old New Thing" Sep 03 19:13:32 advertising goes meta Sep 03 19:14:13 we will name our advertising platform after your product so we advertise wile we advertise Sep 03 19:16:46 fwiw, not a money-exchanging deal, according to the beeb. http://www.bbc.co.uk/news/technology-23926938 Sep 03 19:20:43 Well crap. Found a way to sign the apk and now I'm getting the separate error "Cannot install platform packages to user storage". Sep 03 19:21:19 Android really doesn't want my user app to run as system. :) Sep 03 19:22:27 <|0xD34D|> Andrew76: if you have root, you can mount /system as RW and push your system signed apk to /system/app Sep 03 19:23:13 Yeah but my goal is to develop and debug this via eclipse as a user app. Sep 03 19:23:34 Makes me curious how system app developers debug their stuff. Sep 03 19:27:35 Hi fellow devs. I have an app-discovery app that has a main interface that shows the apps that could be discovered... so the main interface would be 10% this app, 90% yelp for example. Is this where I should ask about getting permission to showcase someone else's app? Sep 03 19:28:10 sup Sep 03 19:28:31 as in - would there be someone here that might want to do a no-cash KitKat type deal where I show what their app would look like in mine - on the play store screenshots? Sep 03 19:28:51 RyanM: i have Raymonds book, its very interesting Sep 03 19:28:53 speaking of kitkat, android 4.4 Sep 03 19:37:44 incognitto - the top half of that query is: I have an app-discovery app that has a main interface that shows the apps that could be discovered... so the main interface would be 10% this app, 90% yelp for example. Is this where I should ask about getting permission to showcase someone else's app? Sep 03 19:38:48 Ive having doubts understanding "singleInstance" and "singleTask" values for the launchMode attribute. Im reading https://developer.android.com/guide/components/tasks-and-back-stack.html#TaskLaunchModes but am having trouble understanding the wording they use. Sep 03 19:39:29 xmx I don't have a clue lol Sep 03 19:39:40 Im new to Android Sep 03 19:41:07 singleInstance means that activity is the only one in its task Sep 03 19:41:38 singleTask allows for more activities in that task (but only one of the one you're creating the intent for) Sep 03 19:42:11 most apps really shouldn' Sep 03 19:42:17 t need those particular flags Sep 03 19:42:26 Yeah I understand that but when they tell you that each Activity is its own regarding itself and its task, and so any activities that are started with this "singleInstance" value start in their own task. Sep 03 19:43:24 Oh so with singleTask I can have several ACtivities and with singleInstance I can only have one Activity per task, and for both I can only have one instance for that Activity? Sep 03 19:43:32 yep Sep 03 19:43:56 But why would they call it singleInstance? Sep 03 19:44:09 And why call the other one singleTask? Sep 03 19:44:20 question: if you are using google play services for geolocation, and you are instantiating your LocationClient in the Activity like so: LocationClient = new LocationClient(this, this, this); Sep 03 19:44:25 Is it singleTask because you only have one task to fit all Activities in? Sep 03 19:44:31 considering the activity implements all the required interfaces Sep 03 19:45:20 why do all sample code out there have an OnActivityResult in the same Acitivity? Sep 03 19:46:11 SpearThruster, because if you want to receive an activity result, you have to implement it Sep 03 19:46:11 incognitto - not sure, one may be older than the other and they didn't have good name choices left Sep 03 19:46:37 makes sense Sep 03 19:46:59 pfn, currently it seems like a magic to me Sep 03 19:47:15 can I handle it in AsyncTask + Handler let's say? Sep 03 19:47:45 SpearThruster, no Sep 03 19:48:04 SpearThruster, methods that are like "magic" are only called if they're defined in a superclass or interface Sep 03 19:48:17 SpearThruster, so, if it looks like it's called by magic, stick @Override on it Sep 03 19:48:27 if you get an error, you got the magic wrong Sep 03 19:48:32 It also states in the developer.android documentation for singleInstance that "he system doesn't launch any other activities into the task holding the instance" Sep 03 19:49:23 https://www.youtube.com/watch?v=OKOrkLxOBoY < oh dear Sep 03 19:49:31 KatKat advert for Android Sep 03 19:50:04 haha Sep 03 19:50:07 Napalm, you use keepassdroid? Sep 03 19:50:31 So if you start Activity A and there already is an Activity A in a different task, would that task not be brought forward to the foreground, but yet another task would start and use that instance for that new task? Sep 03 19:50:50 pfn: huh? Sep 03 19:50:55 Napalm, do you use it? Sep 03 19:51:03 Is that a real adver? Sep 03 19:51:04 oh your app? Sep 03 19:51:08 that passwordy one? Sep 03 19:51:19 pfn: ^ Sep 03 19:51:30 Napalm, well, the passwordy shit builds on top of keepassdroid Sep 03 19:51:46 oh Sep 03 19:51:51 well no i dont Sep 03 19:52:00 that's too bad Sep 03 19:52:10 incognitto - i think so for singleInstance, sounds like singleTask will allow 1 copy per task Sep 03 19:52:12 damnit, is this kitkat thing just marketing or are dev's getting something cool Sep 03 19:52:25 i'd just start prototyping with those flags and see what happens Sep 03 19:52:30 Is it possible to have an android Activity that runs in the background of another application? Sep 03 19:52:38 and try different versions (=ICS) Sep 03 19:52:48 is there a screencap-recording app for android? Sep 03 19:53:04 I wish to create a android plugin for Unity and can create a java class from Unity, but I'm wondering if that class can create an Activity or will that conflict with Unity's current Activity? Sep 03 19:53:19 need to record my app so I can explain how this shizzles works Sep 03 19:53:23 shit I forgot about measuring through ICS Sep 03 19:53:24 pfn: best to just screencap your app running on GenyMotion Sep 03 19:53:26 <.< Sep 03 19:53:35 Napalm, yeah, that's an annoyance Sep 03 19:53:40 I really don't want to run genymotion either Sep 03 19:53:49 doesn't work well on my pc at all because of my virtualbox conflicts Sep 03 19:54:06 pfn: does this work? http://droid-at-screen.ribomation.com/ Sep 03 19:54:13 should a droid-1 be able to access values-xhdpi? Sep 03 19:54:18 probable frame rate is too slow Sep 03 19:54:22 like most, its a bandwidth issue Sep 03 19:54:30 +1 droid@screen frame rate is/was slow Sep 03 19:54:32 hmm, can youtube convert flash videos? Sep 03 19:54:48 only real good way would be to use a mhl/hdmi adapter and record that stream Sep 03 19:55:01 install the haxm emulator images Sep 03 19:55:09 Hey guys, I'm calling setImageBitmap() and it works but it takes a while. It doesn't update the imageView instantly? Am I doing something silly? Sep 03 19:55:13 theelfismike, haxm emu doesn't have google apis Sep 03 19:55:13 although then you have to purchase more hardware, and some devices always force on hdcp :( Sep 03 19:55:14 if you get it right, native emulator can be faster than a native device Sep 03 19:55:27 my app uses google apis.... Sep 03 19:55:37 play store apk is available for emulators Sep 03 19:55:45 idk how legal that is, but it works on my emulator Sep 03 19:55:55 CocoStorm: you already have a Bitmap object? are you sure its not the decoding of the Bitmap before hand thats taking the time? Sep 03 19:56:08 pfn: and? Sep 03 19:56:14 pfn, can I use LocationManager instead of LocationClient? Sep 03 19:56:16 Napalm, haxm emu doesn't support it Sep 03 19:56:22 pfn: you can use google apis on the emulator Sep 03 19:56:27 is the former deprecitated or smth? Sep 03 19:56:28 Napalm, yeah, need to go third party hax Sep 03 19:57:07 some of the genymotion roms may have play services Sep 03 19:57:43 Napalm, yeah it decodes but I could wait for ages and the image doesn't appear until I click the button twice :S Sep 03 19:58:36 CocoStorm: click a button twice? sounds like something else is going wrong with your code Sep 03 19:58:41 g00s, yeah, I know Sep 03 19:58:45 I can't/won't use genymotion Sep 03 19:59:08 cool Sep 03 20:03:16 Guys: I have two activity. The app starts, I start the second. I rotate the device. I go back to the first activity. I get a black area during the animation. This is way I set android:configChanges="keyboardHidden|orientation|screenSize" in my activities. If I don't, everything works fine. How do I fix this? I know I have to implement onConfigurationChanged but I've no idea what type in. Thanks. Sep 03 20:05:19 Napalm, This is just a quick test app so I know the code is absolutely horrifying but if you're brave enough to look at it, this is the method that gets called when clicked http://pastebin.com/wSTUWNY8 Sep 03 20:06:14 CocoStorm: this is wrong on so many levels Sep 03 20:06:24 oy, I wish I could set IME when the user clicked on my notification, all I can show is the IME switcher :( Sep 03 20:06:36 haha I know Sep 03 20:06:37 yup Sep 03 20:06:54 pfn: what do you want to set it to? Sep 03 20:06:55 pfn: as a user, I would definitely prefer to have to show the IME switcher. Sep 03 20:06:57 i really think apps should be able to display their own IME without it being system-wide Sep 03 20:07:05 RyanM, my custom IME Sep 03 20:07:15 having to go through the ime switcher is extremely disruptive to my app flow Sep 03 20:08:15 CocoStorm: Uh, do you have any idea how threads work? Sep 03 20:08:16 custom IMEs for specific apps sounds like a nightmare of UX Sep 03 20:08:58 You start a thread to fetch a bitmap and put it in a variable.. Then the next line you set the bitmap on your imageview Sep 03 20:09:19 Do you expect thread.start() to block until its done ? That kinda ruins the point Sep 03 20:09:41 jamuraa, hangouts and facebook, etc all do it these days--or at least make it appear to be a custom IME Sep 03 20:09:42 ... this is what happens: http://www.youtube.com/watch?v=rg4DXb42urY Sep 03 20:10:03 but they have it easy, they are the main app context Sep 03 20:10:06 so they own any IME switches Sep 03 20:10:21 but I'm writing a "cross-cutting" app, so IME transitions should be as seamless as possible Sep 03 20:11:06 they don't show an IME, they show a custom window with buttons. this is quite different Sep 03 20:11:14 SimonVT, the UI seemingly runs alongside the thread so no it wont block until it's done Sep 03 20:11:27 Whats an IME? Sep 03 20:11:35 CocoStorm: Do you see the issue then? Sep 03 20:11:51 incognitto: Input Method Editor - i.e. a custom keyboard Sep 03 20:12:05 SimonVT, yeah, but I don't see the solution :) Sep 03 20:12:27 Don't set the bitmap until you actually loaded it Sep 03 20:12:28 jamuraa, it's effectively an IME Sep 03 20:12:29 by IME do you mean the soft keyboard? Sep 03 20:12:41 thats wicked Sep 03 20:12:45 where the heck does facebook use a custom keyboard? Sep 03 20:12:56 RyanM, messenger, stickers Sep 03 20:13:04 RyanM: the soft keyboard is an IME. Sep 03 20:13:10 facebook messenger isn't exactly a custom ime for stickers Sep 03 20:13:17 since they just take button clicks and send the images directly Sep 03 20:13:18 SimonVT, so how do I know it's loaded? Sep 03 20:13:24 but hangouts emoji is basically a custom IME Sep 03 20:13:30 SimonVT, cos you can't set it from the new thread right? Sep 03 20:13:33 without going through the global IME switcher Sep 03 20:13:36 does the operating system remove all broadcast receivers registered from my app when the app is killed? Sep 03 20:13:39 CocoStorm: BitmapFactory.decodeStream returns Sep 03 20:13:45 pfn: It's just a view Sep 03 20:13:50 SimonVT, I *KNOW* Sep 03 20:13:56 *OK* Sep 03 20:13:59 it just has a similar look, actually it doesn't look at all like my keyboard since I have a different IME Sep 03 20:13:59 jaynewstrom, because it's not a manifest receiver Sep 03 20:14:36 SimonVT, I'm sorry what/ Sep 03 20:14:38 but the point is, I think it should be hard for apps to change the keyboard of a user. it's a user choice that makes a big difference for UX Sep 03 20:15:02 apps can change the keyboard easily, currently Sep 03 20:15:06 as long as the app is in the foreground Sep 03 20:15:09 it can change it willy-nilly Sep 03 20:15:18 (in the foreground and has an IME showing) Sep 03 20:15:32 well, in the foreground and has an InputConnection Sep 03 20:15:36 CocoStorm: You know how when methods are done doing their stuff they return? Sep 03 20:15:41 Well, decodeStream does stuff Sep 03 20:15:44 ofcourse, omg this new NIN album is sick Sep 03 20:15:47 And then it returns a bitmap Sep 03 20:15:53 That's when your bitmap is loaded Sep 03 20:17:07 pfn: apps can change the IME on me without asking? news to me. Sep 03 20:17:15 jamuraa, yes Sep 03 20:17:32 jamuraa, e.g. press on the voice-input icon on a keyboard, you just switched IME to voice input without it asking Sep 03 20:17:52 basically, as long as you are the owner of the window token, you can request the IME be changed Sep 03 20:18:51 that's from the IME, not from the app, and it is not permanent. Sep 03 20:18:58 SimonVT, yes but if it would check whether it's null only once Sep 03 20:19:13 CocoStorm: What? Sep 03 20:19:28 jamuraa, the app can make the same corresponding call Sep 03 20:19:36 anyway Sep 03 20:19:39 enough of this discussion Sep 03 20:19:42 not productive for what I'm doing Sep 03 20:19:53 SimonVT, I still don't understand why it only sets the image when the button is clicked twice Sep 03 20:20:29 You set the image before the bitmap is loaded Sep 03 20:21:32 RecognizerIntent != changing your IME. anyway this is a tangent. I think it's a good thing to have to ask the user before changing the IME. Sep 03 20:23:23 yeah, it looks like the apps voice icons are dropping out of IME mode Sep 03 20:23:57 just tested the youtube one, and the option to change input method goes away after you touch the voice icon Sep 03 20:24:16 so what do I SimonVT Sep 03 20:26:28 CocoStorm: If you were to write a message to the log when the bitmap is loaded, what would you do? Sep 03 20:27:45 Log.d("check loadedBitmap", " " + loadedBitmap); Sep 03 20:27:50 Where? Sep 03 20:27:58 exactly Sep 03 20:27:59 where Sep 03 20:28:00 :D Sep 03 20:28:14 Well, where are you loading the bitmap? Sep 03 20:28:25 on the UI thread Sep 03 20:29:06 So the thread you're starting doesn't load a bitmap? Sep 03 20:29:36 oh I thought you meant set Sep 03 20:29:48 yeh on the new thread Sep 03 20:30:52 So, within the run method .. If you were to log when the bitmap is loaded, where would you do it? Sep 03 20:30:53 jamuraa, recognizerintent is not the ics IME Sep 03 20:31:02 Before BitmapFactory#decodeStream or after? Sep 03 20:31:06 after Sep 03 20:31:18 but you can't set the bitmap in that thread Sep 03 20:31:32 So if you were to set the bitmap after the it's loaded, where would you do it? Before BitmapFactory#decodeStream or after? Sep 03 20:31:43 That's a simple matter of posting back to the ui thread Sep 03 20:31:56 Either with a Handler or Activity#runOnUiThread Sep 03 20:32:15 Ah okay, well that's what I was confused about then Sep 03 20:34:02 jamuraa, ics voice input ime Sep 03 20:48:42 break me off a piece of that. Sep 03 20:49:33 break me off a piece of that 4.4 Sep 03 20:49:57 I feel as if that's Google's way of saying they are breaking away from their community :P Sep 03 20:50:04 ? Sep 03 20:50:08 whats up? Sep 03 20:50:17 Hi Antony Sep 03 20:50:23 hey :) Sep 03 20:50:53 i am glad some one out there can spell my name without a h lol Sep 03 20:51:25 i'll take a chunky bytes kit kat :) Sep 03 20:55:09 just interviewed a guy - if someone says that Asynctask is controversial but doesn't really say why beyond some hand-waving about Activity lifecycle, should I be wary? Sep 03 20:55:16 or am I being too hard on him? Sep 03 20:55:33 Rager, wary Sep 03 20:55:46 ok Sep 03 20:55:49 it's clear, if activity dies early, lots of references eat shit and die Sep 03 20:55:58 so the asynctask bites the dust Sep 03 20:56:01 just making sure I'm not a douche for unloading a few boxes of ammunition into him Sep 03 20:56:22 what kind of hand waving ? Sep 03 20:56:25 I mostly assumed that you've got issues with the asynctask not automagically getting canceled onCancel for the Activity Sep 03 20:56:37 that, and that you might have references maintained that keep GC from working Sep 03 20:56:52 he said "It's controversial, and if you do something like go to the home screen and come back, things might get out of sync" Sep 03 20:56:57 or something like that Sep 03 20:57:12 nothing about references going stale or memory leaks Sep 03 20:57:26 Is it true to state that one should only implement "singleTask" and "singleInstance" in an Activity that not only has both MAIN and CATEGORY Intent filters, but CATEGORY only? Or would having CATEGORY filter for an Activity mean that that very activity is to have a MAIN filter? Sep 03 20:57:43 Hi, I am trying to hack around on the dx tool, but it fails many of the unit tests when I clean checkout from the master branch of aosp. Sep 03 20:58:11 Rager, memory leaks are somewhat inconsequential to asynctask, imo, since the same occurs with any sort of threads, etc. Sep 03 20:58:13 The first one I notice is that --junit is not a flag to the dx tool. Sep 03 20:58:34 Are there any developers around that could help me get dx to pass the unit tests? Sep 03 20:58:35 mostly your state begins to misbehave because references are no longer really pointing to valid, visible views/context/whatever Sep 03 20:59:35 if he'd mentioned onCancel/onPause, I might have been a bit nicer on that point Sep 03 21:00:02 that stackoverflow post saying asynctask is harmful is a bunch of bullshit... Sep 03 21:00:03 imo Sep 03 21:00:08 you always have to code defensively Sep 03 21:00:16 regardless of the abstraction mechanism you use Sep 03 21:01:18 yesh Sep 03 21:01:37 so people that flatly say it's harmful... I think are full of shit anyway Sep 03 21:01:41 he also claimed to be using "IntentService" to schedule something every 30 minutes Sep 03 21:01:48 well... you could Sep 03 21:01:53 AlarmManager -> intentservice Sep 03 21:02:04 but alone? no Sep 03 21:03:18 But isn't using AsyncTask using a sledgehammer on a walnut? That's why I never use the support library. I'm a C programmer, and individually open walnuts with a knife. Sep 03 21:03:20 I think that might have been the one set of specifically named classes that he gave all interview Sep 03 21:03:43 he said that he created his own "safe" version of AsyncTask but didn't say what made it safe Sep 03 21:03:46 (sorry, couldn't resist. AsyncTasks are great, just don't be silly with them.) Sep 03 21:03:47 that was what really scared me Sep 03 21:03:47 sounds like you have an easy decision Sep 03 21:03:52 p much Sep 03 21:03:58 I'm just glad my boss had me in there w/him Sep 03 21:04:02 else, I'd have to actually work with im Sep 03 21:04:57 Rager: The only way you could make AsyncTasks safer would be to associate them with an Activity subclass that automatically cancels them when it stops. Sep 03 21:05:08 right Sep 03 21:05:11 Which is doable, but if he can't explain it, be wary. Sep 03 21:05:19 what makes me not want to work with him Sep 03 21:05:27 is that he didn't gleefully go into explaining the internals on all the things he built Sep 03 21:05:43 but instead gave vague answers about things and mostly talked about appearances Sep 03 21:05:58 who wants a new wallpaper? http://i.imgur.com/pyew2AG.jpg Sep 03 21:06:06 looks awesome on phone aswell Sep 03 21:06:30 how is the guy going to drink with his helmet on ? Sep 03 21:06:52 damn it, thats not the point Sep 03 21:07:02 good catch, g00s Sep 03 21:07:17 http://i.imgur.com/3eeRVJW.jpg Sep 03 21:07:21 that's alcohol abuse - I bet he's not going to get a drop before the stuff completely evaporates in the low pressure Sep 03 21:08:10 Napalm: what's that widget? Sep 03 21:08:23 PIxel Art Clock Widget Sep 03 21:08:27 its got lots of options Sep 03 21:08:30 and different decorations Sep 03 21:10:18 lol decorations Sep 03 21:26:22 <^cheeky> helllo, i am new to android development, and is it okay if i ask questions regarding and intent i am stuck on ? Sep 03 21:26:59 well Sep 03 21:27:01 :P Sep 03 21:29:09 ^cheeky: ask away and if people can/want to answer, they will :-) Sep 03 21:29:15 <^cheeky> sorry, :P i am trying to wrap my head around this was debugging all night and kinda stuck, dont wanna process in my learning till i figure this out, its to do with saving a picture i take with the camera .. the thing is once i snap the pic and take picture has the callback methods all executed .. i get the picture in my image view .. but when i destroy the app/ fragment and reload the app .. i dont see the pic again .. i know i save Sep 03 21:29:15 <^cheeky> json file .. and load it back again .. but i get a null point exception in the bitmap.recycle() i call Sep 03 21:30:33 <^cheeky> maybe i have too much caffeine in me and what u typed before does not make much sense, sorry for transmitting rubbish to the # Sep 03 21:33:46 ^cheeky, I don't get the json file part Sep 03 21:33:58 what are you saving exactly when fragment is destroyed? Sep 03 21:34:00 ^cheeky - have you tried writing the image to the sd card and displaying the saved copy? Sep 03 21:34:07 what do you put in onSaveInstanceState? Sep 03 21:35:47 If I enter a PreferenceFragment and then go back to the Activity I was in… what method in the Activity Life Cycle will fire? Sep 03 21:36:41 I've run into a peculiar behavior with locationmanager and a sychronizedList. Specifically, I'm tracking user location on a 1 minute interval which is reported to a server. When the server is not available the location object is added to a sychronizedList until such time as the server is available, at which time I iterate through the list and publish to the server. Sep 03 21:37:56 Here's the weird bit: while I'm writing to the sychonizedList it appears that all elements in the list are updated with the latest element: that is, if I have added a location and view the time, lat and long, then add another, the first entry is replaced with the values of the second such that the first and second are the same, and so on so that in the end all entries are the same value as the last entry added Sep 03 21:39:32 <^cheeky> Mavrik,theelfismike ok.. ill try to explain the archeture(nothing fancy ... ) .. of my app, so i have activity 1 ... which is a list view of objects .. then when clicked .. the object .. goes into the second activity showing the details of the clicked object .. there you can edit and one of them is taking a pic .. so .. when i take the pic .. it saves it at a location .. and then dispalys it when it gets back from the camera fragment Sep 03 21:39:32 <^cheeky> now the detail fragment displays the pic .. so in my onPause state ( i did this so that when activity is going to the list view activity1 .. it will save the file to the device file system as a json file(including the titile date, and the pic i took. Sep 03 21:39:39 I'm sychronizing my list both when I add a new element and when I iterate over the list to report the element values and finally when I remove an element (which, according to the docs is really the only time you need to sync). However, regardless of sychronizion the behavior is the same Sep 03 21:40:16 ^cheeky how do you save an image as json? Sep 03 21:40:55 theelfismike: I think he means the path to the binary data he saved Sep 03 21:41:02 or I hope he does Sep 03 21:41:43 well that explains why image dissapears Sep 03 21:41:57 IIRC you get a temporary URI from camera activity Sep 03 21:43:03 Hi, does anyone know if the vendor's RIL are modifying SMS PDU's ? Sep 03 21:43:06 <^cheeky> so i am thinking .. i have to save the image .. to the filename/ picture_file.jpg Sep 03 21:43:14 anyone here know much about viewpagers? Sep 03 21:43:21 I'm having a problem w/the slidey tab thing Sep 03 21:43:37 <^cheeky> i know the file is dissapearing coz when i call .. bitmap.recylce .. i get a null point exception Sep 03 21:43:56 <^cheeky> and i call the bitmap.recycle in my stopState(); to clear the image Sep 03 21:43:59 does that not just mean the bitmap is null ? Sep 03 21:44:04 as in the object Sep 03 21:44:08 irrelevant to any file Sep 03 21:44:23 fattire: this is an awesome library for "the slidey tab thing" Sep 03 21:44:24 https://github.com/astuetz/PagerSlidingTabStrip/ Sep 03 21:45:09 ookin' Sep 03 21:45:33 l^ Sep 03 21:45:45 <^cheeky> yeah i think it to where i have saved my file.. it has to be.. Sep 03 21:46:11 <^cheeky> thanks guys for respoinding .. its awsome to discuss helps me brain alotssss Sep 03 21:46:27 theelfismike: I wonder if this will fix m problems... I can get the sliding effect to work, but can't access any buttons inflated in the fragments... seesm they don't get inflated until after I call them (right after they're added to the TabsAdapter thing..) Sep 03 21:46:30 let me see Sep 03 21:46:34 <^cheeky> going to google more on how exactly to have object and inside its object another file location Sep 03 21:47:00 <^cheeky> fattire: in my app i did the page viewer options its slick !!!! Sep 03 21:48:06 ^cheeky: wait you did the "real" one or this one theelfismike referred to? Sep 03 21:48:23 <^cheeky> huh .. no no its different lol Sep 03 21:48:35 <^cheeky> nvm dont listem to moi Sep 03 21:48:36 yeah which do you mean Sep 03 21:48:37 okay Sep 03 21:48:43 <^cheeky> sorry Sep 03 21:49:59 yeah this looks liek what I need and what hte page veiwer thing is supposed to do.. Sep 03 21:50:49 but why is it better than the regular viewpager? (Maybe in that it will actually work..) Sep 03 21:51:20 fattire - i don't think the native one will do the sliding effect Sep 03 21:51:22 the thing is-- will those "cards" allow for buttons and other subviews? Sep 03 21:51:30 theelfismike: no it defitely does do it. Sep 03 21:51:32 definitely Sep 03 21:51:37 I have it sliding Sep 03 21:51:38 yeah, you can put whatever you want in the content area Sep 03 21:51:53 but then can your main activity access the buttons? Sep 03 21:52:05 that's where I'm getting stuck... the fragments don't inflate when I assumed they would. Sep 03 21:52:39 I thought you just add them to the viewpager and they'd inflate and you can do whatever.. but apparently they happen when they feel like it, so when I try to bind to a button, it hasn't been created yet. Sep 03 21:53:26 your fragments should be the only ones that know about those buttons Sep 03 21:53:39 so the fragment can lazy bind to buttons as the fragment is created Sep 03 21:54:08 theelfismike: Ideally you're right, but I'm sort of retrofitting an activity... Sep 03 21:54:32 I'm wondering if I can tell the adapter to instantiate the fragment so I can get to the button Sep 03 21:54:47 the activity I'm moving to fragments has references all over the place to the buttons and sliders and stuff... Sep 03 21:55:10 my 2 cents - refactor it "the right way" and it'll save you headaches over the long haul Sep 03 21:55:11 I figured I'd just use the fragment for the UI and keep the logic and stuff in the activity but reference the fragment's UI elements Sep 03 21:55:30 If I felt confident that I knew the 'right way' I would :) Sep 03 21:55:35 hehe gotcha Sep 03 21:55:40 <- clueless Sep 03 21:55:43 <- learning as I go. Sep 03 21:56:27 the best way to learn :) Sep 03 21:57:08 the most time consuming too :) Sep 03 21:58:51 hmm, so i have this apk of unknown signing status...it apparently won't install, leading me to think it's unsigned Sep 03 21:59:01 is there some way that i can sign it without having to have the source? Sep 03 22:04:11 KitKat Sep 03 22:04:13 interesting Sep 03 22:06:26 Hello, as I understand, android projects should use "com.mydomain.etc". Is it OK to use "net.mydomain.etc" instead of com if you only own a TLD using .net? Sep 03 22:06:55 I mean, if you only own a domain with a TLD of .net Sep 03 22:07:03 diphtherial: http://developer.android.com/tools/publishing/app-signing.html Sep 03 22:07:27 antiwire: yes, that's fine. Sep 03 22:07:37 RyanM: Awesome, thanks Sep 03 22:08:18 okay I'm going to try to do this "right".. sigh Sep 03 22:08:24 :) Sep 03 22:10:52 Could you explain me what "converter view" is in "public View getView(int position, View convertView, ViewGroup parent)" Sep 03 22:11:02 http://developer.android.com/reference/android/widget/Adapter.html#getView(int, android.view.View, android.view.ViewGroup) Sep 03 22:11:57 bluesm_ it's the recycled view from hidden end of the list view as you scroll Sep 03 22:12:04 read up on the "viewholder pattern" Sep 03 22:12:04 http://developer.android.com/training/improving-layouts/smooth-scrolling.html Sep 03 22:12:39 theelfismike: "hidden view" ? Sep 03 22:12:56 if you scroll down on a list, at some point, the top view in your list will scroll off the top of the screen Sep 03 22:13:14 when it's completely gone, they system will reuse it and insert that same view at the bottom of the list Sep 03 22:13:29 that recycled view will be in the convertView parameter of that method Sep 03 22:15:47 another, maybe better explanation: http://sriramramani.wordpress.com/2012/07/25/infamous-viewholder-pattern/ Sep 03 22:20:06 infamous hahaha Sep 03 22:22:53 theelfismike: So the items that are gone, could become new items with changed content? Assuming that every list in the is based on the same view... ? Sep 03 22:23:05 yeah Sep 03 22:23:26 theelfismike: The "convertView" is view that just disappeared ? Sep 03 22:23:29 that makes scrolling smoother if you reuse existing views rather than recreating them and doing findViewById() a bunch of times for each one Sep 03 22:23:36 yeah, if there's one available to reuse Sep 03 22:23:46 convertView will be null for all the first page Sep 03 22:23:57 theelfismike: I saw.. Sep 03 22:24:31 Its amazing. Sep 03 22:29:17 theelfismike: But what's bugs me, is why it just don't make views that are ahead. Sep 03 22:29:27 Why isnt onResume called on an activity when I've come back from a preferencefragment? Sep 03 22:30:38 bluesm_ - i think it tries to avoid that premature optimization - maybe not everyone wants it, and ideally listview views should be light enough that you can create them "just in time" or lazy load the content Sep 03 22:31:23 "lazy load the content" ? theelfismike ? Sep 03 22:31:36 https://github.com/square/picasso Sep 03 22:31:59 that will download and cache your images on a background thread, so you may see a loading image for a second, then the image will populate Sep 03 22:32:22 theelfismike: It Sep 03 22:32:24 you can also async load content from the internet or a database (altho i'm less familiar with doing that) Sep 03 22:32:32 theelfismike: It's called "lazy load" ? Sep 03 22:32:41 http://en.wikipedia.org/wiki/Lazy_loading Sep 03 22:32:59 theelfismike: Ok. thank you very much for information you've provided me and your time :) Sep 03 22:33:07 sure, no problem, good luck :) Sep 03 22:35:09 <^cheeky> Yay!!!! it works .. it was during the serialization .. when i was creating a new . Photo object and one of the class memeber took an jsob object.. and i was calling the toString() instead of the getString method of the json object :) Sep 03 22:44:50 if the next version of android is 4.4, i'm now even more curious what 5.0 might bring. must be a huge change Sep 03 22:45:03 maybe they'll get rid of java :D Sep 03 22:45:55 hah Sep 03 22:46:36 Maybe they remove touch input Sep 03 22:46:39 canadiancow i updated gmail on my droid-1 and now it crashes every time i start it:( Sep 03 22:46:47 WAT DID YOU DO Sep 03 22:46:47 droid1 lol Sep 03 22:47:03 so is that old gmail? Sep 03 22:47:07 like not ICS+? Sep 03 22:47:13 lemme see Sep 03 22:48:26 2.3.6 Sep 03 22:48:46 oh, i will try to delete cache Sep 03 22:49:24 that is before my time Sep 03 22:49:27 get a real phone Sep 03 22:49:31 hehe Sep 03 22:49:33 you had a chance to get a $200 n4 Sep 03 22:49:36 but they sold out Sep 03 22:49:41 man skype uses a hell of a lot of battery Sep 03 22:50:01 canadiancow for dev i'd rather get a n7 Sep 03 22:50:20 i don't use phones to call anyone. i'd get a candy bar for that Sep 03 22:50:42 not to call Sep 03 22:50:46 to have a computer in your pocket Sep 03 22:50:55 also as a dev, most of your users are probably on ~4" rather than 7" Sep 03 22:51:24 canadiancow nexus 5 eh eh? Sep 03 22:51:25 :P Sep 03 22:51:55 i hope it has an ambled screen... Sep 03 22:52:01 * jug6ernaut_ can't wait to drop his xperia zl Sep 03 22:52:08 i dont put anything in my pocket. i'd rather just carry 5" + in my pack Sep 03 22:55:16 is it possible to have you android app to contain nothing but a browser and the browser goes to a web page and the webpage is the app? Sep 03 22:55:36 its called a bookmark Sep 03 22:55:44 lol Sep 03 22:56:13 i see you're point, but rather than learning how to develop for android, i could just use my existing php skills? Sep 03 22:56:40 .. Sep 03 22:57:40 just make sure your php site works in android browser ? Sep 03 22:57:47 yea Sep 03 22:57:54 & mobile chome & android ff Sep 03 22:59:30 aw shit, skype put my contacts into the normal android phone contacts database - fucking damn it Sep 03 22:59:37 i was thinking of just using a web view Sep 03 22:59:49 aw man that happened to me Sep 03 23:00:00 hit syn by mistake Sep 03 23:00:09 i didn't even sync Sep 03 23:00:17 Is it possible to make a Time Format to convert the time from Time Pickers into HH:MM? Sep 03 23:03:23 Would SimpleDateFormat work? Sep 03 23:05:06 sory mark no clue Sep 03 23:18:06 anyone given any serious thought about tizen dev ? Sep 03 23:19:46 i haven't Sep 03 23:20:13 more interested in ubuntu phone Sep 03 23:20:22 you think that'll take off? Sep 03 23:20:51 Why would Toast.somthing() be underlined, just the toast part.. i take it i need to import somthing Sep 03 23:21:12 bankai_ probably not :( but i want a regular linux box on my phone / tablet :) Sep 03 23:21:17 I ignore Tizen on account of it doing absolutely nothing of interest. Sep 03 23:21:55 Jolla mobile is interesting enough for me to have put down cash. Sep 03 23:22:01 Anton2k: Depends on what underlining means in your case, 'cause, uh, underlining isn't a thing in code. Sep 03 23:22:05 would you be more interested if samsung 'actually' released a phone/tablet/tv with it ? Sep 03 23:22:16 I'd be interested if Samsung croaked. Sep 03 23:23:19 hi anybody around? I have what is probably a very easy question to ask, pardon my noobyness (I know java, but am new to android and eclipse) Sep 03 23:23:22 import android.widget.Toast; thats what i was missing Sep 03 23:23:38 IntelliJ just does auto-imports for me Sep 03 23:23:50 And thankfully asks me if something is ambiguous. Sep 03 23:23:55 how do I get this example zip file to work? http://developer.android.com/training/camera/videobasics.html Sep 03 23:24:48 Can't you just download it and build it with ant? Sep 03 23:25:22 At any rate, you probably want to start here: http://developer.android.com/training/basics/firstapp/index.html Sep 03 23:25:37 cheers Sep 03 23:25:40 already did, built it, but fails to explain how to get that source to work. Sep 03 23:25:51 yea i am just going through that stuff the now looking at the api and stuff Sep 03 23:26:07 What do you mean "how to get that source to work?" Sep 03 23:26:56 well I start with that example, don't make the text box and other stuff, all I want it to do is display the video preview on screen. So I copied that crap into my project folder, but no go. Sep 03 23:28:16 I'm used to examples working, and I was expecting a project file that just works that I could dig into and tinker with. Sep 03 23:29:15 preferably an eclipse project file, that way I could easily load it in working condition without having to fiddle to much to make it work... what is missing from this zip? Sep 03 23:30:36 these tutorials give code examples, but fail to mention the associated file names in the hiarchy. Sep 03 23:32:13 using actionbar sherlock, i'm trying to get the actionbar to show the back button indicator i'm trying to use getSupportActionBar().setDisplayHomeAsUpEnabled(true) but it's not working. Any ideas? Sep 03 23:33:36 uff why is the appwidget config phantom id bug open since.. 2009 (i found a fix with shareddprefs isconfigured true).. is there no better way ? the bug was in 1.5 and is even in last 4.3 Sep 03 23:36:56 the skype app i just uninstalled was 29mb - how the hell does something get that bloated Sep 03 23:37:07 * g00s wants to take it apart and see Sep 03 23:39:15 g00s: assets, video codecs, etc.? Sep 03 23:40:18 hey romainguy, cheers Sep 03 23:45:04 No resource found that matches the given name Sep 03 23:45:13 romainguy adobe taking their sweet time with a Lr update. i went back to 4.4.1 after a bunch of annoying bugs Sep 03 23:45:16 that's the error I get. Sep 03 23:45:25 g00s: LR5 works just fine for me Sep 03 23:54:01 http://stackoverflow.com/questions/18603074/include-custom-activity-inside-of-unity-android-plugin-without-overriding-unity anyone have any thoughts? Sep 03 23:55:19 romainguy i think the most annoying one was "Output Sharpening and Noise Reduction were not applied to exported images that were resized to less than 1/3 of the original image size." Sep 04 00:03:42 I can take input from android keyboard via a text input field and use that input to create an android toast and now I can open a new activity window. Baby Steps. Sep 04 00:06:08 ok compiles ok now, but presents 3 buttons, that says "cannot", lol! Camera is going through UVC kernel drivers. Sep 04 00:06:15 what gives with this tutorial example? Sep 04 00:08:50 "Microsoft is aiming to more than triple its current smartphone market share by 2018, from just over four percent today to 15 percent within five years." … that seems .. not very lofty Sep 04 00:11:07 Hey guys, does anyone know how to use this feature? https://developers.facebook.com/docs/reference/dialogs/friends/ Sep 04 00:11:25 if 6 people buy a windows phone: mission accomplished Sep 04 00:11:34 I'd ilke to add people Sep 04 00:12:17 g00s: 15% of 3 billion phones is still a good amount Sep 04 00:13:26 anyone? :D Sep 04 00:13:48 Xabster it was interesting to read MS made < $10 per nokia phone Sep 04 00:14:26 didn't know Sep 04 00:14:29 some apps detect the camera, some apps don't. What gives with this? Sep 04 00:16:37 i guess it depends on what camera you have and what you're talking about Sep 04 00:23:16 microsoft camera via UVC, think it might be permissions... checking that now Sep 04 00:23:22 it is connected via usb Sep 04 00:30:41 So glad I'm doing JNI, now manipulating pointers to pointers, blech... Sep 04 00:31:13 anyone have ideas on how to go about figuring out which regions of the display window are touchable? for example if there were a dialog window open with two buttons, how would i determine what the boundary quadrants of those interactive elements? sort of like how you can set the developer mode to draw a box around regions of the window that have been changed/updated, this would do the same only around regions that could be touched… Sep 04 00:32:29 sort of seems like it would be this: http://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#touchableRegion Sep 04 00:33:15 ok here's the problem I get "cubieboard not have framework config class" Sep 04 00:36:26 ok here's the description I pieced together, I can't find anything on google in english about this at all: ok got some problems with the camera now... UVC works tested out some apps, but now when I try to run http://developer.android.com/training/camera/videobasics.html, it does not allow any of the buttons to work. I've tested camera function with some apps in google play, those work Sep 04 00:36:27 fine, but I get the following in my logcat in eclipse: "cubieboard not have framework config class" Sep 04 00:40:50 who wants to try out my app? Sep 04 00:42:48 When I press the button which goes to the second activity, it works but I have to press the back button twice to get back to the first activity. Not sure if that is normal or I jacked up an onclick function Sep 04 00:44:06 SpaceJockey: you might have overridden onBackPressed() ? Sep 04 00:44:24 Hmm thanks I'll check that. Sep 04 00:45:10 or you could override onBackPressed() to do exactly what you want. Sep 04 00:47:55 how do I include search results in global search? Sep 04 00:48:02 dev guide is pretty vague Sep 04 00:51:15 hmm, so my searchactivity is launched in the globalsearch activity? interesting Sep 04 00:52:29 pfn: http://developer.android.com/guide/topics/search/search-dialog.html Sep 04 00:52:40 pfn, I've done it in the past, was some time ago now though Sep 04 00:53:07 I'll look at that again, thanks... Sep 04 00:53:28 you Sep 04 00:53:28 as i remember, you need an XML descriptor and a contentprovider Sep 04 00:53:30 er Sep 04 00:53:44 are you familiar with the CursorAdapter? Sep 04 00:53:57 yes Sep 04 00:54:12 that'll probably the hardest part, i'd say. Sep 04 00:54:19 sounds trivial then :) Sep 04 00:54:19 thanks Sep 04 00:54:44 * pfn head out & Sep 04 00:54:57 ya, just a matter of declaring an intent receiver and passing along query and then back some results... Sep 04 00:55:00 np Sep 04 00:55:07 https://github.com/pfn/keepshare Sep 04 00:55:09 my latest bit of magic Sep 04 00:55:20 need bpellin to merge my pull request for keepassdroid, though Sep 04 00:55:49 kewl Sep 04 00:56:36 never really used keepass… Sep 04 00:57:16 pfn: But what does it *do*? Sep 04 01:00:32 hi, I am going through the tutorials from the android site, and in this code http://pastebin.com/TRBwnzRq, I don't understand R.layout.main_activity. Specifically what is R? Sep 04 01:00:39 Anybody know where this framework config class is? Or how to make one? Can't find anything on google. :( Sep 04 01:03:01 pistolpete333: R is a generated class which holds integer IDs for resources Sep 04 01:03:46 http://knowledgefolders.com/akc/display?url=displaynoteimpurl&ownerUserId=satya&reportId=2883 it's explained here if you want, pistolpete333 Sep 04 01:05:56 Leeds, bankai_, thanks guys, Ill read up on it some more. Sep 04 01:06:13 any ideas? http://pastebin.com/sdda9073 Sep 04 01:12:27 any ideas what ? Sep 04 01:15:30 I've got ideas. I had this idea that it'd be really cool to have a tame dinosaur as a pet. Sep 04 01:16:36 t-rex? Sep 04 01:19:40 <^cheeky> v-Raptor for sure, heard they easier maintenance than T-rex Insurance is high and also the food costs and Vet costs .. raptor FTW .. only gripe is they need another .. very social and pack oriented creatures Sep 04 01:20:26 Hm, not sure how to clear focus on an EditText without causing focus to jump to something else Sep 04 01:23:04 What are some good tutorials for someone just starting out in android development. I am going through the tutorials on developer.android.com and they seem pretty good so far, I am just wondering if there are any better ones. Sep 04 01:25:17 pistolpete333 i guess you could look at the iosched 2013 code for study Sep 04 01:25:35 best practices, etc Sep 04 01:28:18 <^cheeky> g00s: thank you , i will download the app and the sources as well and check it out thats awsome !!!! Sep 04 01:30:01 kamoricks, it searches a keepass content provider to provide user and password info wherever you need it Sep 04 01:30:35 kamoricks, in Chrome or Firefox you share to it and it'll load up passwords for that site Sep 04 01:30:46 g00s, nice I will have to look into the app Sep 04 01:30:50 pfn: Ah, that's cool. Sep 04 01:31:03 once they're loaded up, it presents a custom ime for entering user and pass Sep 04 01:31:31 my last feature before it's ready to publish is global search Sep 04 01:32:24 kamoricks, oh, and it loads the keepass master password for my a double secret key, half on device, and half in Google drive private storage Sep 04 01:32:30 <^cheeky> blah i have so much to learn ... and so little time !!! and my add sucks .. Sep 04 01:32:39 from a double secret Sep 04 01:33:06 so you don't have to type in your password every day time Sep 04 01:33:07 double secret probation? Sep 04 01:33:19 <^cheeky> pistolpete333: hey i am not sure how good this advice is , but like create an app .. then go through the docs .. on how to build exactly what you want your app to do .. kinda what i am doing .. if anyone else have a better suggestions please i am all ears Sep 04 01:35:42 I'll enhance to add a pin or swipe protection eventually Sep 04 01:45:10 ^cheeky, so are you saying build your app, then go through the docs and fix/improve anything to make it better? Sep 04 01:46:18 what is what Sep 04 01:49:26 <^cheeky> pistolpete333: ,.. i am n00b in the android_world .. and in <3 with it .. just saying that way you will learn alot .. i mean like for starters read the api guides .. it will give you an overview of the building blocks of an android app .. like what are content providers .. intents , fragments and what not .. and then go ahead and try to build a test app just for practice .. and see what you need to learn .. Sep 04 01:49:36 when in doubt try catch it out.. gota love a try catch Sep 04 01:49:37 <^cheeky> also the getting started android app as well. Sep 04 01:50:43 I'm having trouble with the line private final static double a = Math. pow( a, steps); Sep 04 01:50:52 saying 'illegal forward reference' Sep 04 01:51:21 a is a another static final double pow Sep 04 01:51:31 steps is a static final short Sep 04 01:51:40 what am I doing wrong here? Sep 04 01:51:41 <|0xD34D|> and yet you define private static double a Sep 04 01:51:54 hey, I'm new to this whole 'java' thing Sep 04 01:52:02 ^cheeky: sweet ok, thats pretty much what I have been planning on doing. I have an app in mind that I want to try to make anyway. Nice to know that others are using the same strategy Sep 04 01:52:39 <|0xD34D|> atari2600a: if a is already declared somewhere you should use a different variable name for the private final static double a Sep 04 01:53:04 why there's only ' Sep 04 01:53:07 *1 Sep 04 01:53:21 <|0xD34D|> so is it declared prior to that line? Sep 04 01:53:40 yes Sep 04 01:53:49 what's your guys' preferred copypasta website Sep 04 01:53:57 <|0xD34D|> then ditch the private final static double part Sep 04 01:54:18 <|0xD34D|> I assume you want to reassign a to be equal to Math.pow(a, steps) Sep 04 01:54:43 oh Sep 04 01:54:44 fuck Sep 04 01:54:48 I just saw that thanks to you Sep 04 01:54:52 <|0xD34D|> np Sep 04 01:54:56 thanks for helping me catch that Sep 04 01:55:50 <|0xD34D|> no problem, sometimes all it takes is a second set of eyes to see what we overlooked Sep 04 02:03:01 i'm having issues getting the android emulator to run. it just stays stuck at the android logo Sep 04 02:03:29 billybobjoe: Wait for it. QEMU is accurate, not fast. Sep 04 02:03:40 Yeah, usually just takes forever. Sep 04 02:03:51 like, how long is forever? Sep 04 02:04:05 and is there a log to see what its doing? Sep 04 02:04:14 billybobjoe: i7-3960X boots it in a mere 3 minutes. Sep 04 02:04:15 <^cheeky> your virtual memory in the settings . should be lower than 768 mb .. that fixed it for me .. Sep 04 02:04:33 its been over 5 minutes and still nothing Sep 04 02:04:56 billybobjoe: Yep. Slower processor, longer boot time. 15 minutes is fairly common for i3s and i5s. Sep 04 02:06:34 billybobjoe: You may be better off targeting an earlier version of android, and setting the emulator to lower system settings. Sep 04 02:07:16 I'd recommend sticking to on-device testing only. Sep 04 02:08:55 how can you be certain your app will run properly on all devices though? That is something I have always wondered. Sep 04 02:10:06 pistolpete333, You can't, you've got to test all common configurations and hope someone doesn't have a obscure POS chinese phone that breaks it Sep 04 02:10:32 Or, if app comments are anything to believed, an HTC One X. Sep 04 02:10:41 Sounds like a Tegra 3 Sep 04 02:10:45 <^cheeky> pistolpete333: also you would have ti make use of supportedAPI to make your app back wards compatible Sep 04 02:11:07 Or be like me and just support a very limited selection of devices :P Sep 04 02:11:26 IE Nexus 10 Sep 04 02:11:37 you can use genymotion Sep 04 02:11:40 it's too fast though Sep 04 02:12:05 <^cheeky> Sonicadvance1: So .. for n00b @ android development .. would it better to learn to write code .. which is backward compatible or .. just learn the new api 11 and above ? Sep 04 02:12:15 It's also x86. Sep 04 02:12:23 testing on emulator is great if you can use the x86 image Sep 04 02:12:39 ^cheeky, I'm really a new person to Android development as well. So I'm not sure Sep 04 02:12:57 api 14 and above Sep 04 02:13:25 And my Application barely works on top tier devices so the supported devices list is minimal Sep 04 02:13:53 funkbox: why do you say genymotion is to fast? Sep 04 02:14:00 pistolpete333: because it is too fast Sep 04 02:14:20 it's faster than any device which can really hide performance issues you'll see when you ship yo app Sep 04 02:14:27 really? Sep 04 02:14:43 ahh ok. but it could still be useful for some things right? Sep 04 02:14:49 Oh cool Sep 04 02:15:08 funkbox, Does genymotion have a ARM emulator core it in somewhere for native libs? Sep 04 02:15:18 yes, i use it, but i also often test on an acutal device Sep 04 02:15:31 Sonicadvance1: no, it's virtualbox running an x86 image Sep 04 02:15:42 Ah. That's marginally disappointing then Sep 04 02:15:42 <|0xD34D|> you can build your native libs for different architectures Sep 04 02:15:47 pfn: what do you mean by testing an emulator is great if you can use the x86 image? sorry im pretty much a noob to all this as well Sep 04 02:15:57 |0xD34D|, Doesn't work well for a JIT recompiler :P Sep 04 02:16:00 The android emulator will also run an x86 image, and will use your processor extensions. It won't be as fast, since it's still qemu. Sep 04 02:17:09 Interesting, although not useful for my workcase Sep 04 02:17:54 there's three emulators that you can twerk x86, arm and some older APIs have MIPS Sep 04 02:18:01 oh, it's fast Sep 04 02:18:13 arguably faster than many consumer dwvices Sep 04 02:18:22 which is a problem Sep 04 02:18:28 twerk? Sep 04 02:18:37 Depends on the hardware running it really Sep 04 02:18:42 No, no twerking. Sep 04 02:18:48 plus different things are faster/slower on device vs emulator so you have to test on a device often Sep 04 02:18:53 If your dev tools are twerking, it's time to put them down. Sep 04 02:18:55 My craptop is miles slower than my ARM Chromebook with the Exynos5250 Sep 04 02:19:00 what does twerking have to do with all this ? Sep 04 02:19:23 <|0xD34D|> I think it has to do with your use of the term Sep 04 02:19:54 oh, i just scrolled up. that's a freudian slip Sep 04 02:19:59 So if you tested on a mainstream device like the htc 1 or galaxy s3/4, you should be alright for most phones? Sep 04 02:20:11 mainstream phones I mean Sep 04 02:20:34 pistolpete333, Get a tegra device in there to be sure in most cases :P Sep 04 02:20:57 pistolpete333: keep in mind both of those are faster than 90% of devices on the market Sep 04 02:21:08 well, the one and s4 are Sep 04 02:21:09 Well, GS3 isn't anymore Sep 04 02:21:15 i'd say nexus device plus S3/S4 should give you a lot of coverage Sep 04 02:21:19 s3 is probably above average. Sep 04 02:21:44 Sonicadvance1: is the tegra not so good? Sep 04 02:21:56 pistolpete333, If you stick in Java it is probably fine Sep 04 02:22:04 If you use any 3D rendering ever, watch out Sep 04 02:22:25 <^cheeky> in android studio, when i get compile error its only showd me the errors in gradle but not in my source code .. is there way to change it to show the error in source code itself >? Sep 04 02:22:44 Ok, so for the immediate future I see myself only using java, so I should be good Sep 04 02:22:45 also, get one for the lowest API you intend to support Sep 04 02:22:58 man this camera tutorial sucks. :( Sep 04 02:23:09 the app I work on continually adds unpleasant surprises when we drop down to gingerbread Sep 04 02:23:13 I only support API level 18 so woo Sep 04 02:23:20 lucky :-) Sep 04 02:23:46 RyanM, Ill keep that in mind Sep 04 02:24:29 Meh, not really lucky when it is /still/ broken :P Sep 04 02:24:46 I'm quite spiteful towards Adreno Sep 04 02:26:25 <^cheeky> hmm , when i click in android studio .. it takes me to R generated file .. isnt that supposed to be the place i should not be tampering with ? Sep 04 02:27:19 Well, you told it to take you there. Sep 04 02:28:26 You should be getting realtime errors with your Java code with IDEA. They might've messed something up with R studio - moving to standard IDEA may help. Sep 04 02:29:06 <^cheeky> oh man i have been using android studio all this time learning it .. isnt there a setting i can change Sep 04 02:31:12 ^cheeky: In IntelliJ IDEA? No, it's based on static analysis of the code. If you turned "Power Save Mode" on, that'd do it. Sep 04 02:31:41 nah, that's a setting you gotta enable and it makes things slower Sep 04 02:31:45 <^cheeky> kamoricks: ohh.. lemmme seeeeeeeeeee Sep 04 02:31:47 i code w/o it Sep 04 02:32:10 no difference between idea and android studio beyond the graphics and some defaults Sep 04 02:32:26 Based off of CE? Sep 04 02:33:17 yes Sep 04 02:35:33 kamoricks: Incidentally, Eclipse with ADT does the right thing when you click on R values. Sep 04 02:35:44 RyanM: What's the "right thing"? Sep 04 02:35:59 open the XML file it's defined in. Sep 04 02:36:01 chug along for 5 mintues, crash with OOM Sep 04 02:36:11 that's what AS/intellij do Sep 04 02:36:23 erm, open the correct xml file. the other thing was for eclipse Sep 04 02:37:45 mostly-unrelated: android platform internals are freaking complex. Sep 04 02:39:31 yeah, it's almost like it's an OS or something Sep 04 02:39:53 Weird. Sep 04 02:40:17 Yeah, you don't want to look at ActivityManagerService or PackageManagerService Sep 04 02:40:22 your eyes will rot out Sep 04 02:40:36 Alternately, for the stuff I'm looking at, it's almost like it's a very modular and optimized implementation of a large language spec. Sep 04 02:41:02 once you get rid of dvm and the java framework, a whole lot of complexity goes away …. :P :P :P Sep 04 02:41:04 ah, you've ventured into the land of dalvik Sep 04 02:41:39 I'm just trying to find the actual implementation of UrlConnection that HttpUrlConnections used on Gingerbread At this point I think it'd be faster to just find a GB device, debug, and look at the runtime type. Sep 04 02:42:34 i just point AS at the source Sep 04 02:43:02 One does not simply point AS at the entire android source tree :) Sep 04 02:43:15 ctags \o/ Sep 04 02:43:44 at least, not if one expects AS to finish indexing everything within their lifetime Sep 04 02:43:54 specifically, I suspect this line from the URLConnection docs isn't quite true: Sep 04 02:43:57 Some implementations (notably HttpURLConnection) include a mapping for the null key; in HTTP's case, this maps to the HTTP status line and is treated as being at position 0 when indexing into the header fields. Sep 04 02:43:59 JesusFreke: well i have the platfrom configured so that i can command click on android things and go into the source Sep 04 02:44:18 based on testing, it works on JB and doesn't work on GB. Sep 04 02:44:35 funkbox: all well and good until you're on the wrong version :3 Sep 04 02:44:47 target api19 Sep 04 02:44:52 * funkbox has a time macheen Sep 04 02:45:10 quick! Sep 04 02:45:15 go back and fix your typo! Sep 04 02:45:21 you'll have to go faaar into the future, when a sizeable number of people have 19 Sep 04 02:45:28 Hm, just had fun watching my Nexus 7 randomly act like I was tapping its screen over and over. Sep 04 02:45:29 like 2-3 years Sep 04 02:45:29 nah, i have much better things to twerk it for Sep 04 02:45:41 Why do you need a mapping for the status line? It is, by definition, comprised of the HTTP version, the protocol (which is "HTTP"), the respones code, and the RFC-defined message for that response code. Sep 04 02:45:42 Sometimes I think its insides might be interfering with the rest of the device. Sep 04 02:46:23 oh no. i thought the latest update was supposed to fix something like that Sep 04 02:46:34 both 2012/2013 n7 had those problems Sep 04 02:54:27 Any one able to tell me if when I get the wifi singal in this code if I am actually scanning? http://pastebin.com/NXdLE7M8 Sep 04 02:54:44 i am also getting some weird readings like 999 and 888 **** ENDING LOGGING AT Wed Sep 04 02:59:58 2013