**** BEGIN LOGGING AT Fri Jun 13 02:59:59 2014 Jun 13 03:00:01 /proc/net/dev doesn't give me cell stats, right? Jun 13 03:00:10 jamesson: obviously not or it wouldn't be crashing with a null pointer, would it Jun 13 03:00:20 jamesson: specifically, fragment transactions are asynchronous Jun 13 03:00:35 jamesson: you're assuming that fragment has to exist by the time you call debug - it doesn't. Jun 13 03:00:47 DammitJim: Depends on your platform. Most likely not Jun 13 03:01:05 but I can get cell stats through TrafficStats() Jun 13 03:01:06 DammitJim: sometimes LTE will show up as a usbX device b/c it's a simulated usb ethernet device Jun 13 03:01:29 dragorn: youre correct that I make this assumption. Is there some event handler that tells me the fragment is done loading? Jun 13 03:01:29 DammitJim: cell can present as a bunch of devices depending on the radio hw underneath, so yeah - use the android counters Jun 13 03:01:34 oh, that must be this device, then Jun 13 03:01:36 rmnet_usb0 Jun 13 03:01:39 'cause that's going up Jun 13 03:02:05 android counters as in Trafficstats()? Jun 13 03:02:11 jamesson: Don't recall. Generally don't make assumptions like that. At the very least, throw a if (... == null) in there and code defensively Jun 13 03:02:30 DammitJim: yeah; whatever android is doing to track cell data usage. Haven't done anything w/ that myself since I haven't had to care Jun 13 03:02:36 jamesson, onStart()? Jun 13 03:03:03 hee hee Jun 13 03:03:10 jamesson: if you're coding w/ the fragment paradigm in mind, you should only be modifying elements inside the fragment from inside that fragment Jun 13 03:03:24 jamesson: Don't point at elements inside a fragment layout from the main activity Jun 13 03:03:44 also if you're just trying to spit out debug info, Log.d("foo", "message") Jun 13 03:03:57 DammitJim: Under the android layer, cell can be multiple interfaces Jun 13 03:04:26 DammitJim: ppp via the baseband, ethernet to the LTE radio, etc. Lots of different counters. Let android do that work. Jun 13 03:04:27 oh ok, sounds safer Jun 13 03:04:47 but for wifi, I should use /proc/net/dev for wlan interface Jun 13 03:04:56 DammitJim: I'd suspect you'll see different network interfaces in < LTE mode on your hw, too Jun 13 03:04:59 yeah, no reason no tto Jun 13 03:05:00 not to Jun 13 03:05:12 i don't know if android bothers tracking wifi usage; there's not much need fo rit Jun 13 03:05:26 rit? Jun 13 03:05:34 for it Jun 13 03:05:37 dragorn: i may go the log route yet, but I get the strong impression that I will need to understand this later. Are you saying that the function call inside "fragment" is not what you mean by only modifying elements in the fragment from the fragment? Jun 13 03:05:39 my college! Jun 13 03:06:01 oh Jun 13 03:06:15 jamesson: you're expanding a view in a fragment then trying to modify that view from the activity Jun 13 03:06:27 jamesson: which breaks the whole fragment paradigm of being self-contained Jun 13 03:07:28 any pointers on easy parsing with java (for proc/net/dev).... I know how to do it in python Jun 13 03:07:31 dragorn: how so? I call the debug function from within the fragment, do I not? Jun 13 03:07:34 jamesson: either modify the view from inside the fragment and talk to the fragment (by adding new functions and tracking the fragment instance, which includes finding it again if you're resuming the activity and it already exists), or don't use fragments and just expand the view into main Jun 13 03:08:09 jamesson: you're calling debug() in your main activity, which assumes some variable in the activity is set to a view. The view is only part of the fragment. Jun 13 03:08:29 DammitJim: not offhand, I bet you can regex it out Jun 13 03:08:39 DammitJim: you also only need the interface name and the first field Jun 13 03:09:05 dragorn: sorry, I am lost. Line 82 is with in the braces of placeholder fragment, no? Jun 13 03:09:08 I'm doing total bytes (Rx + Tx) Jun 13 03:09:58 DammitJim if its a regular language you can use ragel Jun 13 03:10:07 hhmm Jun 13 03:10:44 jamesson: I don't have the window open anymore, but looked like you were calling it from your activity oncreate and not via your fragment instance, so no? Jun 13 03:12:13 dragorn: no, wait, you're quite right. Therefore I need to write new handlers for the fragment lifecycle as opposed to the view. Cue cartoon lightbulb. Jun 13 03:15:27 dragorn: in general (probably as a function of my ignorance) the whole ui makes me pretty sad. According to the tutorial I have, in order to do property animation of an image I must first create the main view, then create a separate view for the image, then create an inflater to load the resource, then place the image view on the main view, and finally rotate. Yeesh! Jun 13 03:16:07 jamesson: wait until you get into any sort of network management and have to make a dozen threads coordinating asyncronous events Jun 13 03:16:15 on the other hand, you get used to it. Jun 13 03:16:30 dragorn: Im there already, this app will require ble Jun 13 03:16:48 jamesson: then you'll enjoy learning services Jun 13 03:18:49 if you declare an annotation via "public @interface SomeAnnotation", then later annotate a class with @SomeAnnotation, does that class implement SomeAnnotation? Jun 13 03:18:50 dragorn: no I went through that already, I dont think its so bad. Some of it I think is kinda clever. But the UI stuff... my first "serious" code was actionscript. Never did I expect to see the day that I would be nostalgic for it. Jun 13 03:19:40 dragorn: the real blem with property animation is that nowhere in the official docs are the properties enumerated Jun 13 03:19:53 jamesson, actionscript was designed for manipulating graphics. Jun 13 03:20:29 josaphat: right, and it would have been a wonderfule example imho for anyone trying to make a ui. Which is to say, the least bad of all possible options Jun 13 03:21:00 Oh god... Jun 13 03:21:02 a ui system, thar is Jun 13 03:21:07 *that Jun 13 03:21:42 surely you do not contend that it is a good thing that I must make 4 objects to rotate one image? Jun 13 03:21:43 If android UI design was like that, it'd be like going back to the heyday of Flash websites. Jun 13 03:22:08 flash!!!!! w00t w00t Jun 13 03:22:21 slash screens, intro music... ahhh those were the days Jun 13 03:22:35 josaphat: but, look, the script was not the problem The performance and stupid coders were the problem Jun 13 03:22:49 $0.02 it's not really worth railing against the API. It's not like it's going to go away. Jun 13 03:22:49 slash - splash, got a bit excited, couldn't type properly Jun 13 03:23:00 jamesson, Exactly! Stupid Coders. Jun 13 03:23:26 There's plenty of god-awful design without making it even easier to make bad design. Jun 13 03:23:35 dragorn: oh, I completely agree, its just that most things Ive seen from Google arent as bad. Like I said, the net stuff is quite nice Jun 13 03:24:16 man, what is the proper way to poll stats every 5 minutes? Jun 13 03:24:26 a thread with sleep? Jun 13 03:24:33 or is there like a scheduler? Jun 13 03:25:02 rxjava is the answer Jun 13 03:25:03 DammitJim: I believe runnable, right guys? Jun 13 03:25:10 alarms? Jun 13 03:26:45 DammitJim, There should be a Timer facility that'll give your Runnable object a kick after some specified amount of time. Jun 13 03:26:50 DammitJim: postdelayed or timers Jun 13 03:27:24 if you're inside a service and fairly certain your service will survive, you can postdelayed on a runnable and fire regularly. For longer-term stuff you can set alarms w/ a pending intent to launch you Jun 13 03:28:46 the idea is to poll the stats every 5 minutes and save the data.... then submit it to a service every hour Jun 13 03:29:14 I am going to poll often so that if the device restarts, I'll just submit the last data saved before the reboot Jun 13 03:31:29 rxjava Jun 13 03:32:53 bankai_au lol Jun 13 03:33:11 there's a scheduler for this very task Jun 13 03:35:09 uses a scheduledexecutorservice Jun 13 03:35:18 (yes my shift key is broken) Jun 13 03:35:31 oh no Jun 13 03:35:41 call the shift ambulance Jun 13 03:36:03 bankai_au, talk to me? Jun 13 03:36:13 what would you like me to say ? Jun 13 03:37:28 google i/o is next week ? Jun 13 03:39:54 next next week Jun 13 03:40:02 is anyone on irc during google io? Jun 13 03:41:43 how i wish to come to io at least once.. Jun 13 03:44:35 hello how can i resolve this issue -> WebView.destroy() called while still attached! Jun 13 03:44:45 i'm bummed most of the interesting things are in developer sandboxes, which will not be recorded or anything Jun 13 03:44:52 there are only around 8 android sessions Jun 13 03:45:20 my ondestroy method for my activity is http://pastebin.com/nas45kdB Jun 13 03:46:09 IO routinely falls the week after I'm out in cali for another conference Jun 13 03:46:17 and i've never wanted to spend 2 weeks away from home Jun 13 03:46:20 do i need to move my code before the super.ondestroy method call? Jun 13 03:46:35 (never mind actually getting a ticket) Jun 13 03:48:50 jaspertheghost: you need to detach the webview first Jun 13 03:49:03 ok so call that stuff before the super.ondestroy Jun 13 03:49:06 ? Jun 13 03:49:32 jaspertheghost: http://stackoverflow.com/questions/11995270/error-webview-destroy-called-while-still-attached Jun 13 03:49:58 thats what im doing … Jun 13 03:51:08 jaspertheghost: no, your code doesn't have webviewPlaceholder.removeView(webview) Jun 13 03:52:17 thats becuase i dont have a place holder for it Jun 13 03:53:36 jaspertheghost: maybe try webview.getParent().removeView(webview)? Jun 13 03:53:53 webviews are the suck Jun 13 03:54:26 thats what u gotta use when your building a app insde of em Jun 13 03:54:39 removeView cannot resolve method when using getParent Jun 13 03:55:02 URLActivity.removeView cannot resolve either Jun 13 03:55:02 wat Jun 13 03:55:23 jaspertheghost: cast that to a viewgroup Jun 13 03:55:36 the get parent one? Jun 13 03:55:45 so ((ViewGroup) webview.getParent()).removeView(webview) Jun 13 03:55:45 yes Jun 13 03:56:29 required boolean found voice Jun 13 03:56:32 void* Jun 13 03:57:09 ? Jun 13 03:57:10 shit man, just *wrap your webview in another view* and use the stackoverflow code and be done. Jun 13 03:57:17 woops Jun 13 03:57:24 hahaha nopii Jun 13 03:57:24 its good sorry i had a question mark at the end lol Jun 13 03:57:25 life is short Jun 13 03:58:45 imagine nopii and jaspertheghost pair programming together Jun 13 03:59:06 i’ve never pair programmed Jun 13 03:59:21 not even rubberducky? Jun 13 04:00:25 lol when i hit a bug that i need to break down very carefully Jun 13 04:02:05 now i just gotta figure out my sqliteconstraintexception Jun 13 04:02:23 why its not getting calle even though im getting an error back from sqliteconstraintexception Jun 13 04:02:48 http://pastebin.com/Hb12ezCv Jun 13 04:03:24 insertOrThrow ahh Jun 13 04:05:30 anyone know off hand if sqlite helper has an update into (update on insert if already exist) Jun 13 04:07:06 IIIRC, I've used rawQuery in the past when I wanted to do that. Jun 13 04:07:38 whats IIIRC mean? and i was hoping to avoid that Jun 13 04:07:42 iirc* Jun 13 04:08:11 if i recall* ahh Jun 13 04:17:43 jaspertheghost: after looking at the docs you can do it with: insertWithOnConflict with CONFLICT_REPLACE as the conflictAlgorithm value, I think. Jun 13 04:18:25 sweet Jun 13 04:18:27 thanks Jun 13 04:34:44 regarding dependency injection - where would you draw the line between an object dependency and something that could simply be instantiated inside the class? Jun 13 04:35:22 hmm good question.. Jun 13 04:35:28 anyone? Jun 13 04:36:10 at the moment i'm dependency injecting all the things :D Jun 13 04:36:21 I think should use DI if you foresee that you wanna test that object Jun 13 04:36:35 for unit test Jun 13 04:36:43 I don't actually know what dependency injection is. Jun 13 04:36:49 but that’s just my thought. Jun 13 04:36:56 Mango_Man: what DI library you use in android? Jun 13 04:37:03 guice? Jun 13 04:37:26 programming in non-android java at the moment Jun 13 04:37:48 i'd probably use dagger in the future though Jun 13 04:37:56 ah i see. Jun 13 04:38:03 say it three times and you know who will appear Jun 13 04:39:55 lol Jun 13 04:47:59 hi Jun 13 04:48:27 anyone know how to edit apk files? Because, I am using Apex Launcher.. and it only detect "Dashclock Widget", I purchased "Better Dashclock Widget" from Playstore but Apex Launcher does not recognise it.. Jun 13 04:48:41 So I was wondering is there any easy way out to make Apex Launcher to accept the app I purchased? as it was identical.. but different name Jun 13 04:56:17 doesn't sound like appropriate banter for this channel Jun 13 04:57:53 Maziz: dont inject model classes Jun 13 04:58:07 inject - controllers, presenters, views, service, repository Jun 13 04:58:17 some helpers too Jun 13 04:58:35 but clear POJO models... I dont see the point] Jun 13 04:59:20 if you pass something through constructor, property -> you should inject it Jun 13 04:59:53 ah that should go to Mango_Man Jun 13 05:00:36 is anyone talking to me? Jun 13 05:01:27 gordon_: ah okay, thanks! Jun 13 05:01:45 i used to inject all the things … like 2007 i had a huge love relationship with DI Jun 13 05:01:53 now i hardly use it Jun 13 05:02:01 too cool for DI now ? Jun 13 05:02:05 yeah Jun 13 05:02:16 too much AS bitching to do, i'd imagine Jun 13 05:02:33 seems to work Jun 13 05:02:38 (AS, these days) Jun 13 05:02:47 back in my day it was never like that Jun 13 05:03:08 the secret to android dev is to use as few apis as possible, as few weird corner cases in APIS and build tools as possible, etc Jun 13 05:03:36 when you stay on the path its usually OK ;) Jun 13 05:03:46 when you go off the beaten path, hehe Jun 13 05:05:42 android api >= 4.x Jun 13 05:05:44 is fin Jun 13 05:05:44 e Jun 13 05:05:55 oh Jun 13 05:06:01 seems like android 5 is comming :> Jun 13 05:06:49 android 5 needs 2 things: new permission system, new update system for core components Jun 13 05:07:15 i have little hope for the former Jun 13 05:07:20 3: also a new programming language Jun 13 05:07:20 ART Jun 13 05:07:23 and scala ;P Jun 13 05:07:25 or the latter actually Jun 13 05:07:37 Not necessarily Scala. Jun 13 05:07:41 :( Jun 13 05:07:47 The language need not be JVM-compatible Jun 13 05:07:53 why Jun 13 05:07:59 that would be bad Jun 13 05:08:06 Depends on your idea of bad. Jun 13 05:08:14 since ART is there Jun 13 05:08:23 Not really a concern. Jun 13 05:08:37 i think we're in for a big shake up that way Nilium_ based on what duarte said, android 5 being upon us, polymer / quantum, etc Jun 13 05:08:39 and you want people to rewrite all the libs ? Jun 13 05:08:54 Could just deprecate the old runtime and maintain it while introducing new things via a new language, a new runtime, etc. Jun 13 05:09:08 Rewrite all the libs? No, I want a complete reboot. Jun 13 05:09:29 gordon_: thanks for the pointer Jun 13 05:09:30 :D Jun 13 05:09:31 Clean slate? Y'all cray Jun 13 05:09:38 Nilium_: no Jun 13 05:09:40 I'm going to bed Jun 13 05:09:41 Android's perfectly capable of pulling it off by just continuing to ship the existing runtime and a new one Jun 13 05:09:44 that's bad idea in my opinion Jun 13 05:09:55 Your opinion is wrong and made of bees. Jun 13 05:09:55 josaphat i think the current tech has ran as far as it can, too many weird design things holding android back Jun 13 05:09:56 they *could* get llvm Jun 13 05:10:06 bees ! Jun 13 05:10:09 Qt! Jun 13 05:10:14 oh shit Jun 13 05:10:33 and you'd simply give you support for old APIs Jun 13 05:10:38 with old compiler Jun 13 05:10:43 and the new llvm one Jun 13 05:10:55 With it still stuck at Java 6-ish with bits of Java 7, it doesn't make sense to be stuck in that sort of environment Jun 13 05:11:08 its kinda a handcuff Jun 13 05:11:22 I say move to C++11. Jun 13 05:11:25 Or C++14. Jun 13 05:11:28 lol Jun 13 05:11:29 Preferably 14. Jun 13 05:11:36 and I say no Jun 13 05:11:47 You're still wrong, bees mcgee Jun 13 05:12:14 c++14 and lambdas ;) Jun 13 05:12:38 C++11 has lambdas, C++14 just relaxes the restrictions on them (i.e., auto parameters) Jun 13 05:12:49 i know it has Jun 13 05:12:53 s/i.e./e.g./ Jun 13 05:12:55 because they are ugly as * Jun 13 05:13:47 That statement's mostly meaningless. Jun 13 05:13:59 "They're ugly" *uses Java* Jun 13 05:14:52 wanna compare java lambdas to c++ ones? ;) Jun 13 05:15:03 or if they keep using java, i'd like google to license a fully compat vm from oracle Jun 13 05:15:12 with full classpath Jun 13 05:15:22 chuck art and harmony out the window Jun 13 05:15:28 python ftw Jun 13 05:15:38 * Maziz runs Jun 13 05:15:46 hey g00s Jun 13 05:15:49 I've seen Java lambdas, they're not flexible enough for consideration Jun 13 05:15:50 * g00s sends the bees after Maziz Jun 13 05:16:01 hey XXCoder Jun 13 05:16:10 Nilium_: so why not scala then ? Jun 13 05:16:12 Nevermind that I'm just rabidly opposed to garbage collection Jun 13 05:16:14 dont look like my new lwp is a sccess lol Jun 13 05:16:26 Live wallpapers are never successful Jun 13 05:16:57 doesnt llvm work with GC ? ;) Jun 13 05:17:02 yeah but expected in least 3 sales lol since its visuals is so awesome Jun 13 05:17:16 I don't see what LLVM has to do with this.. Jun 13 05:17:27 XXCoder probably more a matter of findability Jun 13 05:17:41 so many … of these, getting found is like , ugh Jun 13 05:17:54 thats true Jun 13 05:17:55 Nilium_: so you wanna go *full* native with gc ? Jun 13 05:17:57 *gcc Jun 13 05:18:17 What do you mean by full native? Jun 13 05:18:23 I consider Dalvik to be fully native. Jun 13 05:18:27 native code Jun 13 05:18:36 You mean machine code? Jun 13 05:18:39 If so: yes. Jun 13 05:18:42 eh... but you compile to byte code Jun 13 05:18:51 davik runs on top of linux Jun 13 05:18:59 I don't consider that terribly relevant to the question of what's native or not. Jun 13 05:19:16 After all, you call an app native when it's written in Java instead of a web app Jun 13 05:19:38 Or is it just native-er? Jun 13 05:19:40 we are talking about nalguages now ;) Jun 13 05:19:45 *languages Jun 13 05:19:49 And C++ is native-er than the native Dalvik executable? Jun 13 05:20:25 for me -> yes Jun 13 05:20:38 since you compile to binary code, not byte Jun 13 05:20:41 In that case, calling it native's not useful Jun 13 05:20:45 Bytecode is binary. Jun 13 05:21:18 true, ok so call it 'code which doesnt work on VM' Jun 13 05:21:41 It _could_ work in a VM, though. Jun 13 05:21:57 You could compile to LLVM IR, ship LLVM with the OS, and then compile the IR on the fly. Jun 13 05:22:09 you really like playing with words ? Jun 13 05:22:14 My point here being that this idea of what's native is stupid. Jun 13 05:22:33 You're thinking too narrowly about it and assuming a language comes with burdens it doesn't have. Jun 13 05:22:37 we know what we're talking about so why all the talking what is native and what is not Jun 13 05:22:47 no i dont Jun 13 05:22:56 Because you think C++ means machine code. It doesn't. Jun 13 05:23:19 no I know it can run in vm on anything you want Jun 13 05:23:25 I could embed a C++ compiler/linker in an application and use C++ as a scripting language if I wanted. Jun 13 05:23:36 I can and have done that with a C compiler Jun 13 05:24:14 I know what I mean, and you know that Jun 13 05:24:22 and whole point is getting rid of jvm Jun 13 05:24:23 So to answer your original question: I want to go as native, but all that means is I want to use the OS platform and not a web browser as a platform. Jun 13 05:24:39 The JVM doesn't exist on Android. Jun 13 05:24:58 DVM Jun 13 05:25:03 are you satisfied now ? ;) Jun 13 05:25:25 The only thing I'm concerned with here is getting a new language and SDK where it can be stripped and done again without the cruft of backwards compatibility. Jun 13 05:26:01 C++ offers the most bang for your buck as far as I'm concerned because it offers you the best possible performance and allows you to do things as safely or unsafely as you want. Jun 13 05:26:51 I dont have anything against c++ I just dont like writing in it ;) Jun 13 05:27:14 templates are evil Jun 13 05:27:19 Templates are fine. Jun 13 05:27:32 and diamonds problems too ? ;) Jun 13 05:27:41 How often do you actually encounter that problem? Jun 13 05:28:05 in my code ? never Jun 13 05:28:06 At least with C++ you can choose to deal with it. Jun 13 05:28:32 ok, templates in C++ were evil, until I figured out Java and diamonds ... maybe the syntax conufused me back then :) Jun 13 05:28:34 In Java, that's a strict case of it not even permitting you the flexibility. Jun 13 05:29:55 I move to codding ;) Jun 13 05:30:01 language wars are not for m Jun 13 05:30:01 e Jun 13 05:42:01 NDK C++ stuff works fine, I've done plenty of it Jun 13 05:54:12 Ologn i've never heard of the NDK described as being nice to use; makes things possible yes … but Jun 13 05:54:39 If it had better access to a UI toolkit, it'd probably be nicer Jun 13 05:58:57 Hey guys, I need help rotating an imageview (a compass arrow) according to magnetometer data. I've reached a point where I get azimuth values between 0 and 359.9... The problem is that when starting at say, 350 deg, and you rotate a further +20 degrees (clockwise), the compass azimuth will be 10 degrees. Setting an imageview to rotate from 350 deg to 10 deg will cause it to go the long way around, rather than the short turn pas Jun 13 05:58:58 0. How can I fix this? Jun 13 06:00:04 When I run adb and get its default help message, is it output to stdout or stderr? I keep trying to do adb | less but it's getting nothing Jun 13 06:00:27 then it's prob STDERR Jun 13 06:00:33 you can redirect STDERR to STDOUT though Jun 13 06:00:35 hmm that's strange Jun 13 06:01:17 http://stackoverflow.com/questions/2342826/how-to-pipe-stderr-and-not-stdout Jun 13 06:01:30 was just looking at that lol Jun 13 06:01:53 yup looks like it goes to STDERR, that's weird Jun 13 06:03:01 yh Jun 13 06:05:47 Just wondering, when I do adb devices, what does the long string of characters represent exactly? I mean, I know it's a device connected via USB, but what does that string come from? Jun 13 06:06:58 http://developer.android.com/tools/help/adb.html# Jun 13 06:07:05 Go to "Querying for Emulator/Device Instances"\ Jun 13 06:07:18 "Before issuing adb commands, it is helpful to know what emulator/device instances are connected to the adb server. You can generate a list of attached emulators/devices using the devices command: Jun 13 06:07:18 adb devices Jun 13 06:07:20 In response, adb prints this status information for each instance: Jun 13 06:07:21 Serial number — A string created by adb to uniquely identify an emulator/device instance by its console port number. The format of the serial number is -. Here's an example serial number: emulator-5554 Jun 13 06:07:23 State — The connection state of the instance may be one of the following: Jun 13 06:07:24 offline — the instance is not connected to adb or is not responding. Jun 13 06:07:26 device — the instance is now connected to the adb server. Note that this state does not imply that the Android system is fully booted and operational, since the instance connects to adb while the system is still booting. However, after boot-up, this is the normal operational state of an emulator/device instance. Jun 13 06:07:27 no device — there is no emulator/device connected. Jun 13 06:07:29 The output for each instance is formatted like this: Jun 13 06:07:31 [serialNumber] [state] Jun 13 06:07:32 Here's an example showing the devices command and its output: Jun 13 06:07:34 adb devices Jun 13 06:07:35 List of devices attached Jun 13 06:07:36 emulator-5554 device Jun 13 06:07:37 emulator-5556 device Jun 13 06:07:38 emulator-5558 device" Jun 13 06:08:21 in this case it's the port the emulator is listening for commends on Jun 13 06:08:32 with a real device it's some serial number from somewhere Jun 13 06:08:49 as is what I just read Jun 13 06:09:00 probably changes by manufacturer Jun 13 06:09:15 which is neat, just wish there'd be a way to maybe setup and alias or something for devices from within adb or the server Jun 13 06:09:51 darn, seems I can't connect one emulator to another Jun 13 06:11:18 for playing with Android Wear I mean Jun 13 06:14:21 anyone know how to edit apk files? Because, I am using Apex Launcher.. and it only detect "Dashclock Widget", I purchased "Better Dashclock Widget" from Playstore but Apex Launcher does not recognise it.. Jun 13 06:14:27 So I was wondering is there any easy way out to make Apex Launcher to accept the app I purchased? as it was identical.. but different name Jun 13 06:17:18 tweetergal please read the topic; this is where we create apps, not reverse them ; Jun 13 06:17:49 tweetergal, try #android Jun 13 06:19:09 or if anyone would know a way.. PM me? think it's rare to find someone with that knowledge in #android Jun 13 06:21:51 Anyone want to take a crack at this please? http://stackoverflow.com/questions/24198901/android-issue-with-continuous-imageview-rotation Jun 13 06:25:12 amomchilov, i smoothed compas values like this Jun 13 06:25:13 https://gist.github.com/alex-richards/19a6239a12db05175866 Jun 13 06:25:18 *compass Jun 13 06:26:14 That's really out of context and doesn't tell me much Jun 13 06:26:29 what's in, what units, what interval? Jun 13 06:26:31 the floats are the values from the sensor Jun 13 06:26:32 "in" Jun 13 06:26:34 i save the last 12 Jun 13 06:26:47 then average them in a way that doen't got the wrong way round Jun 13 06:27:06 yeah, in is the latest one Jun 13 06:27:33 the important but is the sins and coss Jun 13 06:34:00 any1 hav idea about system overlay in android? Jun 13 06:51:24 for some reason this first intent/button works fine but adding the 2nd button breaks things http://pastebin.com/gaYB8Ase Jun 13 06:52:00 any1 hav idea about system overlay in android? Jun 13 07:07:50 any1 hav idea about system overlay? Jun 13 07:46:00 anybody have idea about overlay of window manager? Jun 13 07:51:15 N Jun 13 07:51:17 no* Jun 13 08:24:55 i wanna make a sliding darawer running on top of every app Jun 13 08:24:59 any idea? Jun 13 08:28:53 anyone got some problem when replacing fragment, screen goes black for a second ? Jun 13 08:30:04 nopr Jun 13 08:30:06 nope* Jun 13 08:33:04 Anyone here knows where I can find some more details on unlocking a SGS2 (I9100)? Unfortunately, my unsubsidized phone is locked to a company where I've never been a client and they do not provide unlock codes for "non-clients". I'm currently abroad and I'd like to use a local sim card. Jun 13 08:33:37 Not looking for exact step by step instructions necessarily, just some pointers. Jun 13 08:33:48 ldiamond: read channel topic, go to correct channel Jun 13 08:49:17 nobody knows about screen turning black for a second when replacing fragment ? Jun 13 08:51:00 you got a lot of stuff going on in onDestroy gordon_ ? Jun 13 08:51:06 or onPause Jun 13 08:52:05 no Jun 13 08:52:16 Is it an evil pattern to put tabs in a fragment? Jun 13 08:52:44 Estel: why? Jun 13 08:52:51 {[(Tab)(Tab) Fragment][Fragment]} Jun 13 08:53:12 ViewPager works like that Jun 13 08:53:27 then you're facing nested fragments Jun 13 08:53:30 and stuff Jun 13 08:53:57 Maziz: any other idea ? Jun 13 08:54:13 I'm thinking about on a tablet device where the tabs change the content of only a left-hand fragment Jun 13 08:57:34 hmm try profiling your fragment Jun 13 08:57:38 when you change it Jun 13 08:59:29 ah Jun 13 08:59:31 Maziz: I know the reason, talked with someone from team about it - not my code but I will refactor it so not need to replace the fragment Jun 13 08:59:31 what about the Jun 13 08:59:35 thanks about way Jun 13 08:59:40 hm? Jun 13 08:59:55 onCreate of the fragment that youve changed Jun 13 09:00:07 Maziz: it's after button click Jun 13 09:00:08 what is the reason anyway that cause it? Jun 13 09:00:12 like image picker or something Jun 13 09:00:16 uhuh Jun 13 09:00:29 I've been working with real-time audio processing on iOS; it has the 'accelerate framework' which I think is a customised BLAS. Does android have anything similar to this? Is it capable of performing to a similar level for real-time audio processing? Jun 13 09:00:43 guess I will just create it and change View.GONE, View.VISIBLE Jun 13 09:01:26 i see Jun 13 09:13:11 just got this, "One or more of your apps is running an outdated version of OpenSSL, which has multiple security vulnerabilities." Jun 13 09:13:39 yea...I think it's mail.jar Jun 13 09:14:23 it must use SSL right? Jun 13 09:14:28 to communicate with Gmail, Hotmail, etc. Jun 13 09:16:11 pi-: depends what you want. Android's support for /low latency/ audio is awful. Jun 13 09:18:44 Estel: that's unfortunate. I'm looking at the task of bringing low latency real-time audio IO to Kivy, which is an open source multiplatform Python compiler / engine. Jun 13 09:19:24 So far I have found 2 multiplatform real-time audio IO libraries; PortAudio and RTAudio, but neither seems to cater for Android Jun 13 09:22:26 pi-: it's a hardware limitation. Some newer devices are, I believe, 'okay', but it's not something that the framework specifies Jun 13 09:24:07 A year or so back it was consistently 150ms+ on every device, since JB it seems to be possible for devices to hit ~40ms Jun 13 09:48:35 That is indeed terrible Jun 13 09:49:46 pi-: everything is easy when you have only few pieces of hw and you design only for those Jun 13 09:51:39 I'm designing a musical training app where the user sings into the microphone and sympathetic resonance comes back through the headphones Jun 13 09:52:26 On iOS I can get this to within a tiny fraction of a second Jun 13 09:53:15 I'm guessing this is still a long way off on android? Jun 13 09:54:13 p_l: I don't even have to viewpoint to clearly see the difficulty. But I can imagine! Jun 13 09:54:19 pi-: it's more that you can do so on iOS because there's a few devices involved that are very tightly integrated and you won't ever get a surprising difference Jun 13 09:55:43 the real difference is in scale of how many devices there are and thus ways for firmware and hw developers to fuckup (or simply not have necessary features) Jun 13 10:19:53 Does anybody here use ScalaTest for Android testing? I would like to use a specs style approach. Jun 13 10:22:50 marrrk: for what tests Jun 13 10:22:51 ? Jun 13 10:22:57 robolectric / instrumentation ? Jun 13 10:23:03 Any tests if possible Jun 13 10:23:05 espresso ? Jun 13 10:23:28 Right now, the only test I have is an ActivityInstrumentationTestCase2 Jun 13 10:23:44 http://swiftkey.com/en/blog/test-driven-development-on-android-using-native-scala-mocking-and-dependency-injection/ Jun 13 10:24:00 So I guess it’s instrumentation, but I’m open for anything as long as I can use this spec syntax for it. Jun 13 10:24:30 That is three years old, so I’m not sure how much of it still applies. Jun 13 10:24:33 I was inspecting testing for a while now Jun 13 10:24:36 robolectric is nice Jun 13 10:25:02 well, what build system are you using ? Jun 13 10:25:10 I am using sbt for building Jun 13 10:25:20 so it should just work I guess Jun 13 10:25:29 Robolectric? Jun 13 10:25:30 doest scala test use junit ? Jun 13 10:26:40 I’m really not set on scalatest, robolectric seems to be using some kind of should … Syntax, that’s already quite nice. Jun 13 10:27:15 gordon_: To be honest, I’m not sure how junit and scalatest are related. Jun 13 10:29:03 dont know how sbt resolves classpath Jun 13 10:29:09 if you apply robolectric it might work Jun 13 10:29:31 The sbt plugin specifies this: jberkel has written a Suite trait to be able to use robolectric with scalatest rather than junit, see https://gist.github.com/2662806 Jun 13 10:29:40 https://gist.github.com/pfn/2503441 Jun 13 10:29:49 this is what google gave me now Jun 13 10:30:22 It’s all so old. Jun 13 10:30:52 Just having robolectric with junit might be fine for a start. Jun 13 10:32:20 yeah, that's old and don't work Jun 13 10:32:26 * pfn & Jun 13 10:32:46 a, pfn's gist :) Jun 13 10:32:51 pfn: what doest work ? Jun 13 10:32:54 *does Jun 13 10:33:50 pfn: What kind of testing would you suggest with your plugin? Jun 13 10:36:43 Hmm, now the searching around on the internet seems futile, with the omniscient master in the room. Jun 13 10:57:10 Hi there. Jun 13 10:57:59 Hello. Jun 13 10:58:10 I need to store some data and restore it on the next opening of app. What should I use? Is sqlite overkill for this kind of work.. basically I'll have a few tags and each tag will have some info like: date, amount, id_number Jun 13 10:58:28 frojnd: Do you know about shared preferences? Jun 13 10:58:35 marrrk: yes Jun 13 10:58:44 Why not use those? Jun 13 10:59:32 default layout is based on settings activity Jun 13 11:00:09 Ah, I think you can have multiple shared preferences files. Jun 13 11:00:26 frojnd: you dont need to have the settigns linked directly to a layout Jun 13 11:00:35 you can reference it through the SharedPreference object Jun 13 11:00:42 and then get your saved values :) Jun 13 11:00:42 ah ok Jun 13 11:00:52 I only used it in one app for some user preferences.. Jun 13 11:01:31 I guess I'll use that then :) Jun 13 11:02:05 gordon_: The JUnit Support section in here looks promising: http://www.hascode.com/2013/01/a-short-introduction-to-scalatest/ Jun 13 11:08:36 marrrk: if so, robolectric is worth trying Jun 13 11:09:52 gordon_: Have you used it? Jun 13 11:10:14 I don’t see yet what I would need from robolectric that the „standard stuff“ doesn’t give me already. Jun 13 11:13:46 Anyone here using appgyver/steroids? Jun 13 11:28:42 marrrk: roboelectric makes your unit test execution faster Jun 13 11:28:51 because you dont have to compile into dex Jun 13 11:29:03 run android stuff on jvm. Jun 13 11:30:13 Until now I have been using sharedpreferences for storing data in my app, but now I would want to store my app data under directory structures like $appdatadir/$n/$year/$month/. Is this possible with sharedpreferences or do I have to start looking into the other ways to save application data with android? Jun 13 11:31:27 A alternative would be to store it in the same dir with filename $n_$year_$month but that sounds harder for me to work with Jun 13 11:34:53 Does anyone have enough of a bird's-eye view to make any kind of prediction for what the future real-time audio on android might look like? Jun 13 11:35:56 Estel and p_l pointed out above that Android is significantly behind every other platform in terms of performance, and this is because Android targets a wide range of mobile devices Jun 13 11:36:07 a wide range of shit devices* Jun 13 11:36:30 Things would be so much easier if they set the most bare bones of standards for devices Jun 13 11:36:52 ah, thank you Maziz Jun 13 11:37:04 I don't see why this necessarily holds back latency for high powered devices... Jun 13 11:37:15 amomchilov: wouldn't matter that much, because what truly craps you out is variation between implementations Jun 13 11:37:46 pi-: random shitty drivers that unlike some other platform don't have all the workarounds coded in to make them seem performant? Jun 13 11:37:47 yeah that could be made more consistent Jun 13 11:37:51 On iOS you can specify the buffer length. On a weak device you need a bigger buffer, to avoid the overhead of audio interrupt calls Jun 13 11:38:32 pi-: I recall that there's a special feature you can filter for about access to low-latency audio APIs, but I haven't done anything in that area to test how good it goes Jun 13 11:45:02 Can I save sharedpreferences files to a specified directory or are they always saved into the default directory? Jun 13 11:45:32 (save and read sorry) Jun 13 12:18:21 Do you use the same keystore for all your apps? Jun 13 12:29:37 I don't even know what that means sorry. Jun 13 12:30:19 i took the froth and put it in the chai tea and oh mannnn Jun 13 12:30:28 I just wonder if I can specify a dir / path in the apps private storage where to save and read a sharedpreferences file Jun 13 12:30:29 everyone should try this Jun 13 12:34:56 Kake_Fisk: You can do that, but you dont ahve to Jun 13 12:35:05 I see Jun 13 12:35:13 has some advantages thouhj Jun 13 12:35:37 I'm having a bit of a problem generating a release apk. It says I'm uploading a debuggable version Jun 13 12:35:55 what ide are you using Jun 13 12:36:06 AS? Jun 13 12:36:07 Android Studio Jun 13 12:36:38 show me your build.gradle Jun 13 12:36:44 ill help you ouy Jun 13 12:36:46 out Jun 13 12:53:10 sigh, as soon as I find a way to remove nested fragments from one part of the app, there's a reason to introduce them at the other end :( Jun 13 12:53:16 Any way to invoke the NDK from android studio by chance? I might be blind but I can't find build options for it. Jun 13 12:55:37 hmm, I wonder why my onTouchEvent's event.toString says I'm doing ACTION_UP when I touch the screen Jun 13 12:55:57 and ACTION_DOWN when I release the touch Jun 13 13:01:11 ~. Jun 13 13:01:17 sry Jun 13 13:04:09 try again Jun 13 13:04:13 maybe logcat was delayed Jun 13 13:07:35 sometimes my logcat doesnt show in AS Jun 13 13:07:45 or seems to blank out Jun 13 13:09:06 is it just me, or android multitouch handling (with MotionEvent) is complicated? Jun 13 13:09:25 what with MotionEventCompat, MotionEvent.ACTION_POINTER_BLAH etc Jun 13 13:19:17 What lib do you recommend to create a xmpp chat? Jun 13 13:19:24 I'm thinking about Flowdalic/asmack Jun 13 13:21:02 hello, i have a general question about android audio routing, Is it possible to capture all android audio and stream it via wifi to pc? Jun 13 13:23:38 well this is interesting... NPE on dereferencing a final field which is initialized inline Jun 13 13:25:02 hey devs Jun 13 13:25:25 Anyone got 4.4.3 in Android Studio? Jun 13 13:25:30 Latest for me seems to be 4.4.2 Jun 13 13:25:37 After the recent android studio update in the canary channel, I am unable to edit my files Jun 13 13:25:43 I got 4.4.3 on my phone, but only 4.4.2 on Android Studio :( Jun 13 13:25:43 it says read only Jun 13 13:25:50 smallfoot-, there's no reason for you to have "4.4.3" in Android studio. Jun 13 13:25:56 although I have granted full permissiosn Jun 13 13:26:37 Currently I am on 0.6.1 Jun 13 13:27:46 Mavrik, why not? Jun 13 13:27:55 plz help Jun 13 13:28:04 smallfoot-, you tell me why yes :) Jun 13 13:28:17 I am a developer, I should have the latest version. Users have latest version, but developers do not! Jun 13 13:28:24 latest version of what. Jun 13 13:28:27 Android Jun 13 13:28:28 My app isn't really made for tablets. Google Play wants me to add tablet screenshots. Should I just exclude tablets? Jun 13 13:28:56 smallfoot-, and what does "Android Studio" have to do with what "Android" as OS do you have? Jun 13 13:29:15 Kake_Fisk, ideally you should make it tablet compatible Jun 13 13:29:24 Mavrik, my Nexus have have Android 4.4.2, but my Android Studio has Android in the emulator, but only 4.4.2 Jun 13 13:29:33 Kake_Fisk, but if you don't have tablet compatibility you should mark it as such in AndroidManifest.xml and NOT include tablet screenshots Jun 13 13:29:48 Okay, I'll try that Jun 13 13:29:49 Kake_Fisk, this will make Play STore add a "Designed for Phones" marking and hide it on tablets. Jun 13 13:30:27 You mark it as phone only by setting large and xlarge screens to false? Jun 13 13:30:28 smallfoot-, and what exactly would you gain by having 4.4.3 in emulator when none of the changes in 4.4.3 actually affect it? Jun 13 13:30:33 Kake_Fisk, mhm Jun 13 13:30:37 aight Jun 13 13:30:46 Kake_Fisk, even though... remember, Samsung Galaxy Note is a "large" device Jun 13 13:30:53 Kake_Fisk, so maybe use the sw parameter Jun 13 13:31:00 I see Jun 13 13:31:56 anyone messed with the nav editor yet http://tools.android.com/navigation-editor Jun 13 13:32:48 Mavrik, I don't know, but I think I want it maybe Jun 13 13:33:20 After the recent android studio update in the canary channel, I am unable to edit my files Jun 13 13:33:22 Currently I am on 0.6.1 Jun 13 13:33:34 it says read only Jun 13 13:33:37 plz help Jun 13 13:33:46 emotionull, downgrade it. Jun 13 13:33:52 there's a REASON why the version starts with 0. Jun 13 13:33:58 how? Jun 13 13:34:00 if you want a stable product use IDEA stable builds. Jun 13 13:34:18 Ya...just changed...but its late Jun 13 13:34:28 intellij! Jun 13 13:34:42 Android Studio is technically pretty stable, but it breaks backward compatibility a lot Jun 13 13:36:12 kya chutiyagiri h yaar Jun 13 13:47:37 I am not able to disable screen rotation with android:screenOrientation="portrait", why is that? Jun 13 13:47:38 marrrk, lately, only doing instrumented tests Jun 13 13:47:47 Okay Jun 13 13:47:59 I gave up on the rest and am doing that now, too. Jun 13 14:00:57 Is it bad practice to use raw queries for SQLite? Jun 13 14:07:00 marrrk, I'll figure out eventually, but haven't had time to look into features that are non-core to me Jun 13 14:07:33 That’s fine, I’m grateful that you are doing all this for free anyway! Jun 13 14:09:13 so jetlagged, got up at 2am and can't sleep... Jun 13 14:10:07 Where are you? Jun 13 14:16:10 home now Jun 13 14:16:26 does anyone here use guava? for some reason, my code hangs on ImmutableMap.copyOf() Jun 13 14:17:35 what is the correct ui object for switching a number of layouts sequentially? Jun 13 14:20:04 yikes, classnotfound Jun 13 14:20:36 jamesson: viewpager? Jun 13 14:20:41 jamesson: depends on what you mean Jun 13 14:20:47 Mango_Man, never hangs for me Jun 13 14:20:58 I don't use copyOf though Jun 13 14:21:00 pfn: yeah i think my imports are wrong Jun 13 14:21:26 imports are irrelevant... at least at runtime Jun 13 14:22:13 pfn: Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableMap Jun 13 14:22:19 :( Jun 13 14:22:23 Mango_Man: I need to have 3 screens. 1 has some text, 1 has some animated images, and 1 has a listview. To access the listview screen I need to click a button, whereas to access the text screen I need to swipe left. Jun 13 14:22:44 Mango_Man, clean build, guava didn't get included in your delta build Jun 13 14:23:48 jamesson: yeah use a viewpager Jun 13 14:27:50 pfn: mvn package after a mvn clean isn't working for me, what am i doing wrong? here's my pom.xml: http://hastebin.com/osukemimoj.xml Jun 13 14:31:52 looks ok to me, pastebin the build log Jun 13 14:32:18 one sec Jun 13 14:33:42 pfn: http://hastebin.com/gukapujebe.txt Jun 13 14:34:56 hi there, can i find out which class is allocating more than 20 mb in my app? ddms shows un hep: 1 byte array 24 mb. but i dont know where to start to find the source Jun 13 14:35:02 hmm, this stackoverflow answer says that guava might not be in my runtime classpath Jun 13 14:36:19 smart1: maybe look for the class that's working with bitmaps Jun 13 14:36:58 pfn, how does — exclude module: „httpclient“ — from gradle translate to sbt? Jun 13 14:37:37 excludes, or intransitive on the library dependency Jun 13 14:38:58 Mango_Man, the question is, how can i find out which class uses that much memory? the heap just shows how much i use, but not where. I only use images in imagebuttons Jun 13 14:39:45 ah didn’t get the s thanks Jun 13 14:39:57 Mango_Man, that's not an android build... Jun 13 14:40:17 pfn: yeah i'm working in non-android java at the moment Jun 13 14:41:41 smart1: i'd take an educated guess as to which class could be using too much memory / leaking memory Jun 13 14:42:12 smart1: i don't know of a tool that identifies memory-hogging classes for you Jun 13 14:43:15 there's a lot of memory auditing tools out there, but i haven't had to use any of them. Look at: http://android-developers.blogspot.com.au/2011/03/memory-analysis-for-android.html Jun 13 14:43:38 Mango_Man, then I have no idea what you're saying is broken, your log looks correct to me Jun 13 14:43:46 Mango_Man, if you're running with 'java' you must use -classpath Jun 13 14:53:55 you can use jhat, mat, memoryanalyzer, etc. Jun 13 14:54:00 pretty easy... Jun 13 14:55:42 MAT! Jun 13 15:03:00 fffff Jun 13 15:03:18 The best thing that Google could announce at IO is that they've completely redone the documentation to not be a ridiculous mess Jun 13 15:04:42 i'll take shitty docs over these stupid res folder any day Jun 13 15:05:13 like i have nothing better to do than export icons 4x each Jun 13 15:06:18 sabton: there's lots of scripts to do it for you. There's multiple plugins for gimp, and I'm sure someone has done a photoshop script Jun 13 15:06:23 Estel, but it isn't a mess, learn to read apidocs and it's awfully trivial Jun 13 15:06:28 any java developer has no problem with android Jun 13 15:06:32 of course, but it's still stupid Jun 13 15:06:44 sabton, don't export 4x icons then, I don't.... Jun 13 15:06:48 pfn: the API docs are fine Jun 13 15:06:58 I don't mind if my icons are slightly fuzzy at the middle resolutions Jun 13 15:07:03 i do Jun 13 15:07:10 then what do you expect Jun 13 15:07:17 vector support Jun 13 15:07:21 there is no way around it without exporting exact pixels sizes for each density you want Jun 13 15:07:26 vector support is /slow/ Jun 13 15:07:28 like terrislow Jun 13 15:07:34 dont tell that to the www Jun 13 15:07:44 pfn: I think the example I found the other day was that there were three separate training sections for the same topic each with pages that were last updated at various previous API versions Jun 13 15:07:45 svg is still rarely used online Jun 13 15:07:49 ppl are using icon fonts all over the place Jun 13 15:07:57 and it's awesome Jun 13 15:08:07 specifically, fontawesome Jun 13 15:08:23 i also know devs using fontawesome on android and it's awesome there too Jun 13 15:09:18 pfn, I don’t get it, I need two strings for exclude where there is only module: „httpclient“ in gradle. Can I put an asterix or something into one of the strings? Jun 13 15:09:33 marrrk, no, it's groupid+artifactid Jun 13 15:10:03 So I guess httclient is the artifactId. How do I know the groupId? Jun 13 15:10:14 httpclient, that is Jun 13 15:11:26 it's in your compile dependency... Jun 13 15:11:43 and if not, just show update, and look at httpclient Jun 13 15:11:48 and the group id is there Jun 13 15:12:01 show update? Jun 13 15:12:03 in sbt? Jun 13 15:12:29 woot, apparently i needed to assemble my jar with dependencies Jun 13 15:13:02 pfn: thanks for the help awhile back Jun 13 15:13:05 marrrk, or you can just search maven.org Jun 13 15:14:49 Ah cool. Show update and searching the central repository both led me towards org.apache.httcomponents as the culprit. Jun 13 15:16:16 The Intellij SBT plugin when used with the VIM plugin does not accept Return anymore and only places newlines. Jun 13 15:18:06 for this button design (http://mattblang.imgur.com/all/) would you recommend that I create one image, or a layout with different pieces and an icon? Jun 13 15:18:18 marrrk, insert mode Jun 13 15:18:37 Is it working for you? Jun 13 15:18:46 I haven't tried Jun 13 15:19:20 It doesn’t work in insert mode and trying to get out of it by pressing escape just takes the focus off the window. Jun 13 15:19:36 I’m just using the terminal for now Jun 13 15:19:37 mattblang: it says "images not publicly available" Jun 13 15:21:30 marrrk, reset your keybindings, etc. Jun 13 15:21:36 marrrk, ideavim is a little finicky in the sbt plugin Jun 13 15:21:38 hey I'm trying to dim the status bar on a kocaso tablet running Jelly Bean Jun 13 15:21:49 I can get it dim but I can't KEEP it dim Jun 13 15:21:57 I tried this --> http://pastebin.com/C0jTKt91 Jun 13 15:22:12 what am I doing wrong? Jun 13 15:22:25 Mango_man sorry about that. http://i.imgur.com/Yg8XVBW.png Jun 13 15:22:58 search for a job...heh i need this app :) Jun 13 15:23:18 mattblang: definitely use a layout Jun 13 15:23:38 that way it adapts to different screen sizes Jun 13 15:23:40 and resolutions Jun 13 15:23:40 Mango_Man haha! yeah, I am working on this for the department of employee services Jun 13 15:24:06 Mango_Man yeah, that is what I am doing right now. so wha tdo you think would be the best way to emulate the click effect that a list item has Jun 13 15:24:17 pfn: It happened on a clean install on a friend’s machine, I think it’s a bug, actually. Jun 13 15:24:32 mattblang: you mean a blue highlight? Jun 13 15:24:34 yeah, looks like ideavim's latest version does some stuff about the keymap Jun 13 15:24:35 Mango_Man yeah Jun 13 15:24:55 mattblang: easy, use a color state list for the foreground Jun 13 15:25:03 mattblang: one sec, let me find an example Jun 13 15:25:36 Mango_Man for the foreground... that sounds like what I'd need. Ive read about state list, but changing the background wouldn't work because the left icon area is on top of the parent linear layout Jun 13 15:26:17 mattblang: wrap your current layout with a framelayout, then set android:foreground on that framelayout Jun 13 15:26:42 in android:foreground, use a @drawable that refers to a state list Jun 13 15:27:05 Mango_Man yeah, with foreground I think I got it. had no idea that existed lol Jun 13 15:27:33 Mango_Man man, I feel like an idiot now lol Jun 13 15:27:46 haha Jun 13 15:28:17 Mango_Man so it looks like FrameLayout is the only one that has foreground Jun 13 15:28:40 you could probably extend other layouts and add a foreground attribute Jun 13 15:29:14 Mango_Man Ive thought about rolling my own layout just to try and simplify the xml a bit, since I have several of tehse buttons in all different qualified folders Jun 13 15:29:27 Mango_Man extending of course Jun 13 15:29:56 welp it's here if anyone feels like earning rep points --> http://stackoverflow.com/questions/24208948/how-do-i-keep-the-status-bar-dim-on-android-jelly-bean Jun 13 15:29:59 marrrk: sorry I was out Jun 13 15:30:22 gordon_: That’s okay, we have postponed the advanced testing for now. Jun 13 15:30:26 robolectric will remove famous 'stub! exception' Jun 13 15:30:31 lol Jun 13 15:30:37 dont do that Jun 13 15:30:41 marrrk, yep, newest ideavim fucks up sbt-idea Jun 13 15:30:43 write tests first Jun 13 15:33:32 I can write the basic android tests. Jun 13 15:34:24 Why is it actually necessary to prefix everything with „android“ in the xml files? Couldn’t that be defined as the namespace? Jun 13 15:35:31 anyone because you when you have own controls / colors then dont come from android ;) Jun 13 15:36:16 hehe, this is great http://digg.com/video/watch-the-daily-show-with-jon-stewart-glass-half-empty-online Jun 13 15:36:53 Well Jun 13 15:36:56 marrrk, https://github.com/orfjackal/idea-sbt-plugin/issues/92 Jun 13 15:37:11 Cool, pfn Jun 13 15:37:15 marrrk, you can call it a: if you want Jun 13 15:37:18 use use xmlns:a= Jun 13 15:37:21 rather than xmlns:android= Jun 13 15:37:32 ah that’s already less annoying Jun 13 15:38:21 hey guys, what would you do if you had an SDK that sends data to your server and has to be integrated by developers? I want to store data coming from the SDK in a central place on the web but I am not sure how smart it would be to have an open API that practiacally everyone could use. should I implement some kind of authorization mechanism? Jun 13 15:38:42 and if so, how would this mechanism look like Jun 13 15:39:35 are there any good memory saving papers? i always run into out of memory problemes. Jun 13 15:40:24 learn java memory basics Jun 13 15:40:34 there are loads of such papers online Jun 13 15:40:55 i look for android specific ones. Jun 13 15:40:55 smart1 here you go http://java-performance.info/overview-of-memory-saving-techniques-java/ Jun 13 15:41:01 the author is awesome, well known Jun 13 15:41:08 thx Jun 13 15:41:13 you don't need to really do anything android specific Jun 13 15:41:28 smart1, when I run into it it's always related to either bitmaps or downloading content from the web Jun 13 15:41:34 well, you should, eventually, but it's often not immediately necessary Jun 13 15:41:45 are you using an image loading library? Jun 13 15:42:20 btw trove4j is very nice :) Jun 13 15:42:26 I send data form our android apps. I just encrypt it with AES/ECB/NoPadding, Use ssl, and use specific keys for every deployed version of the app with basic http authentication with a specific password for every version of the app. That may not work for you. Jun 13 15:42:31 if you aren't, you should be. if you are, you should be changing the size of your cache to scale with device memory Jun 13 15:42:45 i rund into this problemes because of netty, a nio library. it need 15 mb in java. it's running 3 webservers for the device. http://oi61.tinypic.com/2dukr2h.jpg Jun 13 15:42:51 every app, not every version Jun 13 15:43:17 every device. there ya go :) Jun 13 15:43:59 don't use netty... Jun 13 15:44:40 well, yeah... that'd do it Jun 13 15:44:43 @pfn, why? i need spdy acces. just possible with netty in jafa afaik Jun 13 15:45:18 what are you using it for? Jun 13 15:45:45 why would you need spdy access... Jun 13 15:45:53 you need to run a spdy server on device? why Jun 13 15:47:11 like, if you're only making spdy requests, okhttp should do that. if you actually need to run 3 servers on your device, then you might need a smarter solution than just 3 desktop servers Jun 13 15:47:32 it's an emergency application. what happens if the internet goes down. or how you can share data without internet acces. i wrote a tool based on forban.to share data like bee's with polls. each device is a bee. after a handshake both are sharing the data. Jun 13 15:48:01 why spdy... Jun 13 15:48:03 spdy should reduce and enrypt the data for sharing Jun 13 15:48:14 you'll be doing this over a local network Jun 13 15:48:19 the bandwidth isn't really a constraint Jun 13 15:49:04 one device is a hotspot, the other is a client. thats my job for my degree :( Jun 13 15:49:24 so Jun 13 15:49:54 so hows the fam'? Jun 13 15:49:56 spdy is still irrelevant Jun 13 15:50:39 i know, thats why its a job at university ;) Jun 13 15:51:49 wouldn't ssl not work without access to the internet? verifying certificates and all that Jun 13 15:51:58 it would still work fine Jun 13 15:52:04 your thinking of CA Jun 13 15:52:06 you just have to manage your own key exchange and approval Jun 13 15:52:12 i wrote my own trsutmanager, so this isnt a problem Jun 13 15:53:00 the system is working, like i said, just to much memory usage. i try to reduce. would it help to resize my button graphics? Jun 13 15:53:16 learn to use memory analyzer tools Jun 13 15:53:18 mat, jhat, etc. Jun 13 15:53:21 all java-specific Jun 13 15:53:55 are there other memory analyzer tools for android? i use jvvm and jmc Jun 13 15:54:44 marrrk, you can fix the ideavim problem by assigning a keystroke to execute current statement in keymap, I assigned it to ctrl+enter Jun 13 15:54:49 enter is set by default but not working Jun 13 15:54:50 * pfn shrugs Jun 13 15:54:57 there are no /specific/ tools for android Jun 13 15:55:02 there is no need Jun 13 15:55:05 Hmm Jun 13 15:56:29 does porting from c to java count as 'modifying' Jun 13 15:56:38 ? Jun 13 15:56:43 nick9998, be specific Jun 13 15:56:51 "porting" does not circumvent copyright Jun 13 15:57:17 i ported an xscreensaver-gl module ,written in c, over to android/java Jun 13 15:57:21 Nice, pfn, I set it to cmd+enter Jun 13 15:57:29 marrrk, it's annoying, yes Jun 13 15:57:31 here are the license terms for that one: ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/LICENSES/xscreensaver.txt Jun 13 15:57:39 marrrk, but workable for now Jun 13 15:57:44 well it’s better than nothing for sure Jun 13 15:58:07 nick9998, porting does not absolve you of licensing/copyright concerns Jun 13 15:58:35 ah ok Jun 13 15:58:41 thanks for the heads-up Jun 13 15:58:42 I really have trouble liking this stupid jUnit testing. There is one trick I think where you can use ScalaTest with junit as the testrunner but then you still can’t extend „AndroidTestCase“ and „FlatSpec“ since they both seem to be classes. Jun 13 15:58:56 i will include the disclaimer with my software. Jun 13 15:59:00 marrrk, right, you can't use scalatest in instrumented tests Jun 13 15:59:03 they don't really work... Jun 13 15:59:45 Are instrumented tests only the ones where one simulates user interaction? Jun 13 16:00:26 instrumented tests run on-device Jun 13 16:00:41 that's the distinction Jun 13 16:01:05 Okay, hmm alright so there is more of a chance actually to get it to work with Robolectric. Jun 13 16:01:38 I haven't used robolectric in a couple years Jun 13 16:01:55 basically, if you want to make it work with scalatest, just look at their junitrunner, and apply the same to a scalatestrunner Jun 13 16:02:00 It seems like you’re not the only one. Jun 13 16:02:59 And then how would this ScalaTestRunner get invoked, do I have to tweak android:test ? Jun 13 16:03:14 Oh and I would place that inside „test“ somewhere, right? Jun 13 16:04:15 yeah, and what's up with your quotes Jun 13 16:05:34 ugh, this com.android.tools.builder refactor stuff is so annoying Jun 13 16:05:37 German quotes, automatic correction. Jun 13 16:06:11 I gave up on trying to teach my IRC client otherwise. Jun 13 16:16:41 https://play.google.com/store/apps/details?id=com.kakefisk.scriptquiz yay ^^ Jun 13 16:17:16 I like a script quiz Jun 13 16:17:30 my favorite game is playing "guess the language" with the you tubes Jun 13 16:17:41 You might want to put more description in there... Jun 13 16:18:04 I should put up instabram up today Jun 13 16:18:25 take a picture of someones face, choose a frame, have it inserted next to author bram stoker Jun 13 16:18:30 BRAM! Jun 13 16:18:37 ^_^ Jun 13 16:18:48 I'll try to work on the description Jun 13 16:27:41 ah, now google has their health app / framework Jun 13 16:27:56 Google Fit Jun 13 16:34:57 hi all Jun 13 16:35:23 I have a question or two about data, activity and fragments .. can someone assist? Jun 13 16:37:52 anyone using fast charge here? Jun 13 16:38:18 I have an activity that loads up data from SQLite .. the fragment then picks up the data and filters it according to what viewpager tab the user is on Jun 13 16:38:48 if the user removes an item from the arraylist, how can I get the adapter to refresh Jun 13 16:39:06 adapter.notifyDataSetChanged doesn't seem to wrk Jun 13 16:41:18 Hey guys... is there something analogous to modprobe.conf on Android? i.e. how do I get a kernel module to load on boot? Jun 13 16:43:38 gdogg: this is an app you're writing? Jun 13 16:44:05 Leeds no. Building kernel for specific hardware, need to load a driver on some variants Jun 13 16:44:20 and how is that an appropriate question for an app development channel? Jun 13 16:44:25 insmod in init.rc works, but isn't allowed by default selinux policy Jun 13 16:44:33 is there a kernel dev channel? Jun 13 16:44:34 read. bloody. channel. bloody. topic. before. posting Jun 13 16:44:52 this channel looks like it could use the activity Jun 13 16:47:58 there's a limit fo lines a dexfile can have - 65k, is there a way for me to check how many lines it currently has? Jun 13 16:48:38 i11usive: As long as the data your adapter uses to populate is valid&updated with the removed entry, then notifyDataSetChanged() should work. Jun 13 16:50:41 Yes - I did that within the adapter - it does actually remove the entry from the database if you exit the activity/fragment and reload Jun 13 16:51:45 i11usive: you need to make sure that the backing data ArrayList is updated with the new entries. And not modified off the UI thread Jun 13 16:53:23 so upon a removal, update your db file, and just do a simple .remove(Index#) on your ArrayList, then notifyDataSetChanged Jun 13 16:56:20 Ok - I'll double check .. what about adjacent viewpager fragments that preload the data - they sometime hold removed items too Jun 13 17:00:03 or should I load the data independently through the fragment and not via the activity Jun 13 17:00:20 java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536 Jun 13 17:00:47 This is the error I get. As far as I know that's cased by my project (+ libraries) containing to many methods? Jun 13 17:06:31 if it does, it shouldn't compile Jun 13 17:09:00 canvs2321 - thanks for your replies .. I'll check .. but have issues with adjacent viewpager fragments that preload the data - they sometimes hold removed items too .... should I load the data independently through the fragment and not via the activity Jun 13 17:10:48 Android Development Propaganda posters, really nice http://imgur.com/a/Br6Qn Jun 13 17:11:31 i11usive: if the data is already loaded, and only removing, just remove the item from your adapters ArrayList, then notifyDataSetChanged() Jun 13 17:12:08 you don't need to reload if removing an entry correct? so just remove the discarded items, and make sure all adapters are updated with the new listItems Jun 13 17:17:46 frankdoyle, indeed it doesn't, that is my problem. Jun 13 17:20:46 canvs2321 - and that will be reflected in adjacent fragments in the viewpager? Jun 13 17:21:35 if they are using the same adapter&data Jun 13 17:21:51 ok thanks for your help .. I'll try that :) Jun 13 17:22:29 i11usive: if you don't get it, pastebin some code next time Jun 13 17:23:16 IO is 12 days away Jun 13 17:23:19 very exciiiiite Jun 13 17:23:50 Will they announce the Goole Now API? Jun 13 17:26:25 canvs2321 - will do, much appreciated Jun 13 17:27:26 I am using the support library and for some reasons the menu item is now displayed in the action bar, although I defined :showAsAction="always" is there something else to be missed? Jun 13 17:27:56 Interestingly, if I leave showAsAction out, it is at least displayed as an option menu entry, but if I add it, even there it disappears Jun 13 17:30:43 I dont know, WantToCode Jun 13 17:30:50 if they do, life will change bro Jun 13 17:30:56 lol Jun 13 17:31:05 just found a need for it, 1 week ago Jun 13 17:31:16 Hehe me too. :P Jun 13 17:36:21 platzhirsch, showAsAction needs to go in your app namespace Jun 13 17:36:27 platzhirsch, assuming you're using appcompat-v7 Jun 13 17:36:35 pfn: just noticed I am using v4 Jun 13 17:36:39 I think I need v7 ;) Jun 13 17:36:54 well, if you hjave an actionbar Jun 13 17:36:55 already Jun 13 17:36:58 then you're on 3.0+ Jun 13 17:37:02 use android:showAsAction Jun 13 17:37:27 well target API is 19, but min is 9 Jun 13 17:37:32 then set min=11 Jun 13 17:37:36 why even bother setting min to 9 Jun 13 17:37:37 that's just dumb Jun 13 17:37:45 Because I need to support 9 as well Jun 13 17:37:51 but you don't :p Jun 13 17:38:02 what Jun 13 17:38:50 who says you need to support 9 Jun 13 17:38:59 it's a market that makes no money or any eyeballs Jun 13 17:39:02 Our user base, 10% of them are on Android 2.3 Jun 13 17:39:12 canvs2321 - that has worked thanks ... is it possible to filter the adapter and still work with the same positions etc .. for example, if the adapter has places and events, and I want one tab to only show events, can I filter the adapter loaded with both Jun 13 17:40:44 Can I find out the platform version pie chart per country somehow? Jun 13 17:43:29 canvs2321 - s'ok .. quick google search and I find "Modify the custom adapter so that it implements the Filterable interface" thanks so much for your help Jun 13 17:46:37 :) Jun 13 17:50:07 platzhirsch, pfn 15 percent of our user base is on 10-, which is right in line with the google dashboard. i wish we didnt have to support 10 still. Jun 13 17:52:14 Sicp plot twist, they announcer the swifter (notice the er) programming language Jun 13 17:52:24 Sicp *announce Jun 13 17:53:14 no shit Jun 13 17:53:17 really? Jun 13 17:53:29 oh ok I get it lol Jun 13 17:53:35 ^ LOL Jun 13 17:53:44 lolx2 Jun 13 17:53:46 haha Jun 13 17:57:06 where is android adb on osx, typically? Jun 13 17:59:39 mylord: is it not in the folder where you have extracted/dl'd the SDK? Jun 13 18:00:45 ../android-sdk/platform-tools/adb? Jun 13 18:12:12 can you qualify a drawable folder with api version? Jun 13 18:12:31 yes Jun 13 18:18:17 im using a framelayout foreground state drawable to make something emulate the click response that a list item has. is there an already defined state drawable I could use, or do I need to go find all the colors and make one from scratch. Jun 13 18:19:29 hi. my listview items become vertically centered if there are not enough of them for scroll Jun 13 18:19:36 how do i make sure they start at the top? Jun 13 18:19:51 i tried stackFromBottom with no results Jun 13 18:20:30 canvs2321 doen’t remember where that is anymore Jun 13 18:23:03 found the adt dir, but not adb inside that Jun 13 18:25:00 mylord: try a search platform-tools folder Jun 13 18:25:29 found, thx:) Jun 13 18:25:45 yep Jun 13 18:26:47 wayne: what's your xml look like? Jun 13 18:29:07 so what if 10% of your userbase is <10 Jun 13 18:30:22 canvs2321-: just a ListView with wrap_content for height/width + layout_gravity="center" Jun 13 18:30:33 i guess layout gravity="top"? Jun 13 18:30:37 * wayne might be an idiot Jun 13 18:30:52 or just remove the gravity if it's already top view Jun 13 18:38:27 Can a bound service keep itself alive by sending itself an intent, or is there a possibility it will be shutdown before the intent is received? Jun 13 18:39:23 man, as soon as I give a button a background color the stupid out of the box click feedback goes away Jun 13 18:43:57 yes, my lava lamp is done! finally! time to smoke a joint... Jun 13 18:45:51 is that a static method, Joint.smoke()? Jun 13 18:46:21 jaja Jun 13 18:46:33 Joint.smoke(CannabisType.MID_GRADE); Jun 13 18:46:36 Can't be... can only smoke one instance at a time. Jun 13 18:46:41 lol Jun 13 18:47:25 Maybe more if you use an executor, but it would be too greedy to smoke all possible joint instances. Jun 13 18:48:14 greymalkin: homer begs to differ: http://www.verbicidemagazine.com/wp-content/uploads/2013/07/smoking.jpg Jun 13 18:53:39 nick9998: Yeah, but we all know Homer's mouth is a massively parallel ThreadPoolExecutor. Jun 13 18:54:01 today, i have achieved the perfect unit test Jun 13 18:54:05 assertTrue(producer.getDelay(threadId) > 9000); Jun 13 18:54:13 greymalkin: can you test my app please, it would take a few minutes of your time Jun 13 18:54:26 it's over 9000!! :D Jun 13 18:55:30 nick9998: Sorry, I've got a historical sites app to finish up. Jun 13 18:55:43 ah ok no worries Jun 13 18:56:32 hey guys, could someone help me quick Jun 13 18:57:04 getting this "button1 cannot be resolved or is not a field" it is not detecting my button in my xml, though my id is right ? Jun 13 18:58:09 john3053: clean clean clean Jun 13 18:58:25 kill your bin and gen folders homey Jun 13 19:00:40 ah fixed thanks, just had to clean some folders and restart eclipse, shit was getting messy haha Jun 13 19:01:16 what environment do you guys work in ? Jun 13 19:01:23 i use vim Jun 13 19:01:28 vim, ant, shell Jun 13 19:01:39 yea Leeds knows whats up Jun 13 19:01:48 at some point, I guess I'm going to be forced to admit that gradle exists Jun 13 19:02:43 gradle isn''t that horrible haha Jun 13 19:03:12 nah, I'm sure it isn't - I'm just lazy and old-fashioned, and can't be arsed to learn new things :) Jun 13 19:08:00 do you fear change Jun 13 19:09:04 https://www.youtube.com/watch?v=1TtGQnyPZ6g Jun 13 19:10:07 i do, its super scary Jun 13 19:10:35 and on that, it's long past time for bed Jun 13 19:10:38 g'night :) Jun 13 19:10:42 see you Jun 13 19:10:48 RE-RE-RE-RE Jun 13 19:21:14 Can unopened upp receive gcm brodcast? Jun 13 19:21:19 broadcast* Jun 13 19:27:40 Can unopened upp receive gcm broadcast? Jun 13 19:28:08 *app Jun 13 19:30:35 yo yoavst Jun 13 19:30:41 \? Jun 13 19:34:03 yoavst: yes, that's the point of a broadcast receiver I believe, but there a limited amount of things you can do. If you need to do more stuff, combine it with a Service. See http://developer.android.com/reference/android/content/BroadcastReceiver.html Jun 13 19:42:08 if im having problems with my battery, what do I look for with betterbatterystats? Jun 13 19:43:48 Armag3dd0n24 please read topic ;) Jun 13 19:44:09 hey kjeldahl how are things Jun 13 19:44:22 i did but someone said join here Jun 13 19:44:54 Armag3dd0n24 this is app dev, not help desk :) Jun 13 19:45:17 :/ Jun 13 19:46:39 try to set it in bluetooth discoverable mode, Armag3dd0n24 Jun 13 19:47:13 I noticed Android's MediaPlayer slows down my game when a song is playing, is that to be expected? Jun 13 19:47:24 battery, bluetooth , huh ? baconology explain your logic :) Jun 13 19:47:48 Henry_Gale you are lucky if media player works at all, count it a blessing Jun 13 19:48:07 what you mean baconology ? Jun 13 19:49:45 g00s, it works fine, and plays the music flawlessly, but makes my game lag Jun 13 19:50:01 what do others do to resolve this? Jun 13 19:55:37 * Napalm yawns Jun 13 19:55:44 hey Napalm Jun 13 19:57:33 hey g00s Jun 13 19:58:07 late i know, i was updating my app for minSdk=15 / ics, wondering if i should wait to see whats in store for android 5 / I/O Jun 13 19:58:20 if they change design guidelines again, ugh Jun 13 19:58:47 g00s: ive already started to change mine Jun 13 19:59:03 like the circles for the overflow rather than squares Jun 13 19:59:08 hehe Jun 13 19:59:09 g00s: don't worry, it will take time before anyone gets android 5 devices ;) Jun 13 19:59:40 yeah, thats true … ICS is the new Jelly Bean Jun 13 20:00:17 curious about all the polymer / quantum paper stuff Jun 13 20:00:27 i think you meant new gingerbread Jun 13 20:00:44 p_l oh yeah :D Jun 13 20:02:32 g00s: pm Jun 13 20:07:21 can a soft keyboard activate the button at the end of a set of input fields? Jun 13 20:07:52 whet i get to the last field, i get a "done" button on the keyboard, it'd be nice if that could trigger something Jun 13 20:08:02 it can Jun 13 20:08:06 thats the point Jun 13 20:08:30 catphish: http://developer.android.com/reference/android/widget/TextView.html#setOnEditorActionListener%28android.widget.TextView.OnEditorActionListener%29 Jun 13 20:09:27 in your listener actionId will be EditorInfo.IME_ACTION_DONE you should also make sure you add the atttribute to the xml Jun 13 20:09:56 thanks, will look at that! Jun 13 20:09:57 android:imeActionId="actionDone" Jun 13 20:11:22 g00s: Hey, thanks, a bit busy but otherwise fine. You? Jun 13 20:12:01 kjeldahl oh stuck in indecision again Jun 13 20:12:40 Yeah, I hear you. My latest project is using Cordova/Phonegap. It's simple stuff but has to work on all kinds of devices. What's your difficulty? Jun 13 20:13:35 kjeldahl i prefer working on the business logic parts of the app; i've been doing more UI stuff but wonder if the effort isn't well spent in light of any big announcements coming up Jun 13 20:14:12 Clue me in pls. Jun 13 20:14:17 kjeldahl did you get iosched 2014 ? Jun 13 20:14:40 What do you mean "get"? Jun 13 20:14:52 download :) Jun 13 20:14:57 Oh, you mean they are changing everything again. Haven't investigate myself... Will do that now. Jun 13 20:15:46 actually the new iosched isn't a huge departure from anything Jun 13 20:15:57 you know what I hate about it Jun 13 20:16:10 no more multiple session selections per slot Jun 13 20:16:38 kjeldahl http://phandroid.com/2014/06/12/google-quantum-paper-android-ios/ Jun 13 20:16:43 g00s: Seems pretty standard. Actionbar, drawer, list. Jun 13 20:16:49 g00s: Ah, quantum, that I read about. Jun 13 20:16:51 if anyone happened to respond to my question about library forking, please repeat Jun 13 20:16:53 even if you could change your selection from the list.. nope.. you have to uncheck it and then go to another Jun 13 20:17:00 shitty AT&T keeps dropping my connection Jun 13 20:18:04 g00s: Doesn't seem too much of a change from my point of view. Except the fact that GUI programming sucks bigtime, and that goes both for Android and iOS. Jun 13 20:19:01 what if we find out its all a webview XD Jun 13 20:19:19 unlikely Jun 13 20:19:24 kjeldahl here was another article http://www.androidpolice.com/2014/06/11/exclusive-quantum-paper-and-googles-upcoming-effort-to-make-consistent-ui-simple/ Jun 13 20:19:53 He he, that would be very suprising indeed, but not entirely impossible. But it's probably not in Google's interests, but who knows. Jun 13 20:20:49 On the other hand, if they are unifying... Considering what they pulled off with GWT, there is the chance that they would offer HTML widgets to match their native Android ones, and if high quality it could be pretty nice. I think. Jun 13 20:21:06 Time will show. Jun 13 20:21:34 Also interesting what Apple is doing with Swift. Suddenly java looks very dated indeed. Jun 13 20:21:48 (compared to objective-c, java was pretty modern..) Jun 13 20:22:43 Here's hoping Google has something more than ahead of time compiler to announce later this month! Jun 13 20:23:24 yeah, i hope android gets a huge infusion of awesomeness Jun 13 20:38:58 hello guys. Any of you used the SQL Assets Helper? I have a question Jun 13 20:39:13 what's the proper attribute to center text in a TextView in api level 15? Jun 13 20:39:21 textAlignment seems to be 17+ Jun 13 20:41:36 gravity Jun 13 20:41:38 Wouldn't gravity do the job? Jun 13 20:41:53 kjeldahl, java looks dated? Jun 13 20:41:56 * pfn headscratches :p Jun 13 20:42:12 Beat me to it. super("crap") Jun 13 20:44:17 hey, how can i set the width between a drawable and the text for a textview using android:drawableLeft ? Jun 13 20:44:58 maybe a drawable padding Jun 13 20:45:01 I forget if there's such a thing Jun 13 20:45:45 maybe i should just use an imageview.. Jun 13 20:45:46 Hello all; complete newbie to Android development here Jun 13 20:46:00 CrossRiverGames, go learn java Jun 13 20:46:15 Already did Jun 13 20:46:23 then you're not a newbie to android development Jun 13 20:46:25 because android is all java Jun 13 20:46:34 I didn't even know that! Jun 13 20:47:41 Anyway, I'm having some issues with the emulator that comes with the Android SDK and I was wondering what settings I got wrong Jun 13 20:47:59 the emulator is horrible. dont use it Jun 13 20:48:09 Ah, so that's what I got wrong Jun 13 20:48:11 Thanks Jun 13 20:48:12 pfn: Absolutely, compared to the modern competition. :P But for Android I fear it will be with us for a long time. Jun 13 20:49:51 OTOH, assuming you know java (and by it JVM), there is a huge amount of alternatives available, as I know you know. Jun 13 20:49:56 Definitely use the x86 atom image if your really have to Jun 13 20:50:27 or genymotion Jun 13 20:50:35 Thank you so much for your help! Jun 13 20:50:37 If I spent as much time doing actual work that I spend bitching about java, I would be rich. Jun 13 20:51:24 richER, sorry. ;-) Jun 13 20:51:29 anyone here prefer intellij over eclipse for development? Jun 13 20:51:36 danijoo: I'm going to look into that. I'm so lazy I can't even grab my usb cable for my phone to emulate.... Jun 13 20:51:46 hi guys , i have disbaled some apps , now my voice writer in messages does not work , how to fix it Jun 13 20:52:03 unmgmt: intellij slaughters eclipse, with or without android studio Jun 13 20:52:34 birbeck: i appreciate the frankness of that opinion :-) thanks Jun 13 20:54:11 Eclipse is very good for postponing learning anything about how these java things _actually_ work. Jun 13 20:54:26 "build tools - what's that?" Jun 13 20:55:19 Well, I'm already a phpstorm user, so this might make my decision pretty easy Jun 13 20:57:52 does a custom notification need to be created if there is an actionable item in the collapsed view of the notification? Jun 13 20:58:09 or am I missing the proper method to sent the pending intent/action object? Jun 13 20:58:13 set* Jun 13 20:58:58 any solution to the "focus of edittext in listview item"? Jun 13 21:10:48 hi guys , i have disbaled some apps , now my voice writer in messages does not work , how to fix it Jun 13 21:12:39 guys, and of you used SQLite Assets Helper? I have trouble adding items to database Jun 13 21:16:26 do I need to upgrade the DB version of an existing DB to be able to insert items into it Jun 13 21:16:27 > Jun 13 21:16:28 ? Jun 13 21:33:15 My app name is "Script Quiz", why don't I find my app if I search for "Script Quiz". I have to write "scriptquiz", which is probably the packet name Jun 13 21:51:59 Kake_Fisk, how long has your app been published? Jun 13 21:52:15 not very long Jun 13 21:52:38 congrats Jun 13 21:52:49 publish or perish they say Jun 13 21:53:11 thats why Jun 13 21:53:16 thanks nick Jun 13 21:53:21 regreddit: ah, okay Jun 13 21:53:34 it will start showing up in a few more hours Jun 13 21:54:05 4-6 hours sometimes, it just depends on the cdn Jun 13 21:54:37 cdn? Jun 13 21:54:56 Content Delivery Network Jun 13 21:55:02 ah Jun 13 21:55:06 hello, i have a general question about android audio routing, Is it possible to capture all android audio and stream it via wifi to pc Jun 13 21:55:12 the play store is spread across the globe in google data centers Jun 13 21:55:13 hey guys Jun 13 21:56:12 yerb, a general answer is sure Jun 13 21:56:28 thats how the ptt apps do it Jun 13 21:56:55 regreddit, ptt apps? Jun 13 21:57:02 Push To Talk Jun 13 21:58:27 well i dont mean just my voice, but also music playing and other Jun 13 21:58:40 i'm looking for a library wich execute a query , parse the results and return a list of CustomClass Jun 13 21:59:01 yerb, sure, its just a stream of bytes Jun 13 22:04:07 does ddms screen capture not work on emulators? Jun 13 22:06:03 sigh. doesn't work with Host GPU. Jun 13 22:13:03 I have a spinner that has TextViews in it, created with an ArrayAdapter Jun 13 22:13:15 the textview layout i'm using for it has ellipsize set to true Jun 13 22:13:20 and it does ellipsize in the dropdown Jun 13 22:13:29 but not on the "unactivated" spinner Jun 13 22:16:17 when extending dialog framgment whats the differencebetween using: public View onCreateView, and public Dialog onCreateDialog Jun 13 22:30:13 I khev ze question Jun 13 22:30:30 which is more predominantly spoken in China? Traditional or Simplified Chinese? Jun 13 22:30:41 someone *must* know Jun 13 22:33:04 Sicp, em Jun 13 22:33:09 none. Jun 13 22:33:18 those aren't "spoken" and aren't languages Jun 13 22:33:24 wat Jun 13 22:33:26 aren't those just the systems of writing? Jun 13 22:33:30 yes. Jun 13 22:33:37 really Jun 13 22:33:38 it's like asking who speaks arabic numbers :P Jun 13 22:33:42 ohhh Jun 13 22:33:46 man, zzzero idea Jun 13 22:33:54 I just want to have a translation done and I dont know which language to pick Jun 13 22:34:05 which..system of writing Jun 13 22:34:28 Sicp, yeah, the thing about chinese writing is that it generally depicts objects/ideas Jun 13 22:34:40 so it doesn't matter what the user speaks when it sees a symbol showing a chair :) Jun 13 22:35:10 IIRC most china uses simplified version as official script Jun 13 22:35:24 and hong kong / taiwan / some other areas use traditional version Jun 13 22:35:30 Leeds would probably know more :) Jun 13 22:35:35 cant they read out loud? Jun 13 22:35:45 ugh, i'm gonna go with the ghetto fix for this Jun 13 22:35:55 dont, frankdrey !! Jun 13 22:35:55 i'll just set a height for the spinner Jun 13 22:35:59 you'll regret it later Jun 13 22:36:01 which will force it to chop off the extra text :p Jun 13 22:36:11 Sicp, any ideas on how ellipsize spinner text? Jun 13 22:36:20 implementing a style Jun 13 22:36:43 and overriding Spinner to have its content implement a stylable textview Jun 13 22:36:47 LIFE IS HARDDDD Jun 13 22:37:32 I think the above makes sense yes, that's how I would do it. when I wanted to do that I didn't really do it though, the spinner is still without custom font Jun 13 22:37:49 Sicp, read out loud? :)) Jun 13 22:37:55 mandarin is the common spoken chinese language Jun 13 22:38:06 yea Mavrik, I mean you're saying those shapes express ideas? Jun 13 22:38:11 so they cant read it to you? Jun 13 22:38:21 ohh..ok Jun 13 22:38:36 hmmm...I see dropDownSelector and popupPromptView...which should I try overriding? Jun 13 22:38:52 ah, dropDownSelector is a drawable, so not that :p Jun 13 22:39:21 cause I see a friend saying "xie xie" as "thank you" Jun 13 22:39:37 my god, it's like their language is a lisp Jun 13 22:39:40 mind == blown Jun 13 22:40:08 Sicp, they can read it... look at it this way: Jun 13 22:40:22 if I write "55" an american, french guy and a russian will be able to read it Jun 13 22:40:26 say it out loud Jun 13 22:40:29 yea Jun 13 22:40:33 even though they don't speak the same language Jun 13 22:40:40 the system is universal though Jun 13 22:41:27 chinese is simillar, it's closer to ☁ than "a" :) Jun 13 22:41:28 mhm. Jun 13 22:46:15 you can't style popupPromptView >-< Jun 13 22:47:01 doesnt a spinner usually have textviews inside of it? Jun 13 22:47:52 you create a style, a style has nothing to do with anything, it's just a style. Then you create the thing you want to have styled, you apply that style to it Jun 13 22:48:35 then you create a new Spinner type (overriding Spinner class) and have that class host an array of your newly styled element (the textview, the button, anything) Jun 13 22:50:16 so you have your SpinnerAdapter (or something I guess it would have to extend) and that adapter takes the layout of what each element is going to look like (same layout for all elements), that layout will have inside it Jun 13 22:50:33 you will then have a spinner hosting all textviews that have some special thing about them (the style) Jun 13 22:50:57 I can style the list of items in the spinner fine Jun 13 22:51:11 it's the prompt, or the "unactivated" view that i'm trying to style Jun 13 22:51:37 is it possible to remove all device contacts not sim card and application contacts ? Jun 13 22:51:49 onlygod can answer that Jun 13 22:53:10 Sicp: i can't answer that :P but i asking a way with android itself not with another application Jun 13 22:53:32 ask in #android, here is for development Jun 13 22:54:15 asked there there is no answer i thought android is not developed to do this work Jun 13 22:54:42 yea its primitive, they're waiting for you at Google to fix it Jun 13 22:54:54 huhu Jun 13 22:55:05 lol :P Jun 13 23:24:09 interesting, so the reason we don't have ubiquitous wireless charging in device is because of … carriers? Jun 13 23:26:43 Where can I advertise my app? Jun 13 23:26:55 (free) Jun 13 23:27:16 Kake_Fisk make a t-shirt :D Jun 13 23:27:19 wear it Jun 13 23:27:23 hehe Jun 13 23:33:46 njcomsec: they create very different things. onCreateView creates the view that the dialog holds Jun 13 23:34:18 onCreateDialog creates the whole dialog.. in that method you can ignore the view that you create in onCreateView if you want Jun 13 23:34:56 you should definitely override onCreateView, but you don't have to override onCreateDialog if you don't want to - it will just create a blank dialog and stick the view you return from onCreateView, into it Jun 13 23:35:19 ahh I see Jun 13 23:35:19 Hi everone, I have a problem, namely I have a method onPictureTaken(byte [] data,Camera), is YUV format of my image in byte[] ? Jun 13 23:35:37 Hi everone, I have a problem, namely I have a method onPictureTaken(byte [] data,Camera), is YUV format of my image in byte[] ? Jun 13 23:35:47 sn Jun 13 23:35:49 Hi everone, I have a problem, namely I have a method onPictureTaken(byte [] data,Camera), is YUV format of my image in byte[] ? Jun 13 23:35:51 if I have custom buttons, are the button listeners meant to be inside public Dialog onCreateDialog(Bundle savedInstanceState) { ? in the tutorials Iv seen it is, but I dont know why Jun 13 23:36:13 Hi everone, I have a problem, namely I have a method onPictureTaken(byte [] data,Camera), is YUV format of my image in byte[] ? Jun 13 23:36:33 wow. pawell, we heard you the first time. Jun 13 23:38:19 tophyr: sorry for that but irssi didn't show my message so I thought you didn't hear me first time : ) Jun 13 23:38:40 https://ideone.com/WUPASs , it's my code, is it ok ? Jun 13 23:38:42 ah k heh Jun 13 23:46:45 night Jun 13 23:47:08 but it's not even 8 yet Jun 13 23:55:36 here its 2 am :p Jun 13 23:57:03 i have many contacts dublicated this way > 44453121313 and one time 44-453-121313 how to remove second automatically ? Jun 13 23:58:00 onlygod: this is the dev-channel, for questions like this go to #andriod Jun 13 23:58:05 #android Jun 13 23:59:07 danijoo: yes thankss i know but seems they don't know ..asked here i thought you devs maybe know it Jun 14 00:00:00 i could write you a program that do that. :p Jun 14 00:00:21 thats what -dev is for :> Jun 14 00:06:52 danijoo: thanks i think awk can do it Jun 14 01:19:44 boys/girls loving rx-java+retrofit, how do I cache network results across configuration changes? Jun 14 01:31:14 Has anyone seen a situation where a FragmentTransaction replace doesn't delete the previous fragment inside a view? Jun 14 01:31:51 I've implemented a tab host inside my app that flips between multiple fragments, and keeps its own stack for each tab Jun 14 01:31:56 this works 99% of the time Jun 14 01:32:28 but in odd cases, sometimes after I've switched between tabs and go back, sometimes two fragments will display atop each other (the fragments are built on top of Relative Layouts containing FrameViews) Jun 14 01:32:54 or in rare cases, I will get an IllegalStateException that a fragment has already been added. Jun 14 01:33:18 since I am using replace, I find this bonkers, because isn't it supposed to maintain atomicity of the transaction and prevent such a thing from happening? Jun 14 02:05:40 This is sort of a silly question, but you know the "subtext" in android menus that describes in more detail what a settings item does? Is there a pre-made template for say, a title, subtext, and a checkbox? If not, I can do it myself but what color is generally used for that subtext? Jun 14 02:14:39 JavaDog: see https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/simple_list_item_2.xml Jun 14 02:14:42 Is Volley the library of choice these days for doing http requests (been out of android dev for a while)? Jun 14 02:15:14 OkHttp is my go-to HTTP client, but on top of that, I also use Retrofit (for REST-ish calls) Jun 14 02:15:19 LuxuryMode ^ Jun 14 02:15:33 DallasG thanks a lot Jun 14 02:15:55 im primarily going to be making requests to my API which is a completely RESTful Jun 14 02:16:06 I never really looked into Volley though, just because when I was looking, there wasn't much documentation Jun 14 02:16:18 Then I'd suggest considering Retrofit Jun 14 02:16:59 DallasG Volley still doesn't even to have publicly accessible artifacts. You have to download the source and jar it up yourself...weird. Jun 14 02:17:11 yeah Jun 14 02:17:12 retrofit is also from square? Jun 14 02:17:14 weird indeed Jun 14 02:17:15 yes Jun 14 02:17:23 yeah that is weird, even for google Jun 14 02:18:02 oh i see, retrofit is kind of like what was Restangular is for angular...interesting Jun 14 02:19:17 I can't speak to that Jun 14 02:19:21 sorry Jun 14 02:20:19 wasn't asking..im saying lol Jun 14 02:23:09 DallasG: thanks Jun 14 02:23:46 sigh. **** ENDING LOGGING AT Sat Jun 14 02:59:58 2014