**** BEGIN LOGGING AT Sat Jul 21 02:59:58 2012 Jul 21 03:06:23 how would you implement double dpads? Jul 21 03:16:33 Hey, do you know if the WiFi Sleep Policy is permanent (if it will continue active after the first time, and even after power cycling the phone)? Jul 21 03:17:20 Hello? Jul 21 03:17:28 Hello, Simran Jul 21 03:17:40 I'm needed some help with an app of mine Jul 21 03:17:56 I don't know if anyone would be able to help? Jul 21 03:18:07 Just ask Jul 21 03:18:25 Simran, everyone here accepts paypal payments P Jul 21 03:18:35 lol Jul 21 03:18:43 No PayPal monies right now :P Jul 21 03:19:04 Anyways, I compiled a litecoin miner which is coded in C to android Jul 21 03:19:13 you need to tell us what you actually want help with... it's a bit hard for us... ooookay Jul 21 03:19:22 and it works fine if I run it in adb shell or terminal emulator Jul 21 03:19:25 This is what happens Jul 21 03:19:48 http://i.imgur.com/nuMK3.png Jul 21 03:19:52 It's all good Jul 21 03:20:15 So I decided to make a gui for it simply by using runtime.exec and just read the output Jul 21 03:20:25 Simran: people will generally help particularly if it is interesting, no money needed Jul 21 03:20:41 However I get no output unless I tun the --help command Jul 21 03:20:46 Other than that Jul 21 03:20:57 I get nothing printed in my textbox xonsole thing Jul 21 03:21:06 *console Jul 21 03:22:39 Oh to mention, it exits with the exit value of 1 Jul 21 03:22:44 Not sure what that means Jul 21 03:22:55 But I just want that to work :\ Jul 21 03:23:09 oh and I'm running it in a thread, because if I don't well.. the app freezes Jul 21 03:24:52 and it throwing an errors 0_o Jul 21 03:24:54 Any ideas? Jul 21 03:25:39 No idea here, you might try asking later when @romainguy is around Jul 21 03:26:27 Okay Jul 21 03:26:57 er, no Jul 21 03:27:10 what does a litecoin miner do anyways? Jul 21 03:27:18 mine litecoins Jul 21 03:27:27 another type of cryptocurrency besides bitcoins Jul 21 03:27:39 what does the mine part mean? Jul 21 03:28:17 for whatever reason i get the image of an 8-bit character in minecraft with a digital pick axe mining a litecoin vein ;p Jul 21 03:28:31 lasserix: wastes energy to generate cryptographic strings which represent a made up 'currency' Jul 21 03:28:35 hashes Jul 21 03:28:38 Hard to explain Jul 21 03:28:52 basically, you exchange a certain amount of computing power for a unit of 'currency' Jul 21 03:29:05 ^^^ Jul 21 03:29:28 but the computing power isn't *used* for anything apart from doing complex crypto to generate the 'currency' - it's not like it's a reward for folding@home or something Jul 21 03:29:46 a particularly insane thing to do on a portable battery-powered device Jul 21 03:29:59 litecoins are cpu friendly Jul 21 03:30:16 unlike bitcoins which requires a lot of gpu power Jul 21 03:30:20 might be useful in areas of the world where all you have is a solar powered smart phone ;p; Jul 21 03:30:31 Prolly Jul 21 03:30:47 hmm interesting, seems a little bit weird to me, like a broker who trades on their own accounts Jul 21 03:31:00 anyways gota go brb goodluck simran Jul 21 03:31:08 Thanks, man. Jul 21 03:31:45 if you stick around romainguy can probably point you in the right direction, usually he is active around 12-2am pst Jul 21 03:31:56 Hey all. Jul 21 03:31:58 That's too late for me Jul 21 03:32:03 parents will get man >.> Jul 21 03:32:07 *mad Jul 21 03:32:13 Question, has any of you ever managed to install adb INSIDE android? Jul 21 03:32:30 oh, for fuck's sake Jul 21 03:32:35 Doesn't android already have an adb binary? Jul 21 03:32:37 Lars_G: that makes *no sense* Jul 21 03:32:45 Has anyone used maven for your android project? Jul 21 03:33:02 Leeds: No? really? so then I can't access adb shell on my android phone, from my android tablet? Jul 21 03:33:20 just open a fucking shell if you want a fucking shell Jul 21 03:33:28 adb is a fucking remote debug tool Jul 21 03:33:31 argh Jul 21 03:33:33 * Leeds away Jul 21 03:33:39 Leeds: Why are hyou so fucking pedant? Jul 21 03:33:54 bad mood? Jul 21 03:33:54 Leeds: It's hard to open a shell to a nexus one in recovery... you know, no keyboard and all.... Jul 21 03:35:48 How old you guys? Jul 21 03:36:34 Simran: You're absolutely right, thank you Jul 21 03:36:52 ? Jul 21 03:36:54 Simran: I guess the morons at google didn't consult with Leeds to knwo what makes sense and what not. tyvm dude Jul 21 03:37:17 I just asked how old you guys were 0_o Jul 21 03:37:20 Simran: About there being an adb binary on the android system already Jul 21 03:37:42 Oh lol Jul 21 03:37:54 this is perfect Jul 21 03:38:12 I'm 15 :) Jul 21 03:38:16 it means if one dev goes down on the road, I might be able to fix with the other one. which means I can sub my laptop for my tablet Jul 21 03:38:19 I'm 35 Jul 21 03:38:23 btw Jul 21 03:38:46 Why most devs so old? Jul 21 03:39:26 I didn't mean you're old Jul 21 03:39:29 err, this is a lifetime job, not like sport Jul 21 03:39:31 hahaha Jul 21 03:39:41 hoangtran: Yes, but some people do start young Jul 21 03:39:43 I see. Jul 21 03:40:04 I hope I can make the GUI for this C binary Jul 21 03:40:10 hoangtran: Yet, as the raspberry pi creator said in a podcast i listened to today, less and less kids are getting interested in programming/hacking etc Jul 21 03:40:15 Lars_G: yeah, I mean they don't leave early Jul 21 03:40:41 Was a bitch to cross compile it for ARM devices to begin with Jul 21 03:40:42 >.> Jul 21 03:41:23 Simran: Cross compiling is complicated.... btw android devs do not have X11, so idk how if at all you can make a gui for a C code in an android platform Jul 21 03:41:25 Lars_G: maybe they should count synthetic biology as programming to keep the numbers up Jul 21 03:41:52 Lars_G: regarding kids' interest, ipad for them is like a desktop for us (the days we were young), so no supprise that programin is not the most interest :) Jul 21 03:41:56 Simran: If you NEED to use C, MAYBE you could make the gui in java (android java) and hook into your c code via the ndk, but idk enough ndk to tell for certain Jul 21 03:42:22 Utopiah: I think saddly biology did not progress quickly enough to gain a foothold onto an era before nanotech came to displace it Jul 21 03:42:37 Lars_G, all I need to do is run the binary and read it's output, and idk how to use NDK, I find it too complicated Jul 21 03:42:46 Oh Jul 21 03:42:51 Yes I'm coding the GUI in Java Jul 21 03:43:10 I'm just having the issue of reading the output of the binary Jul 21 03:43:14 hoangtran: Yes, but in general there is an apliance-ification process for computing tech, and in that ambiance it's less common to see younglins become interested in programming the stuff Jul 21 03:43:42 I've been coding since I was 12 Jul 21 03:43:44 Simran: if you did the code, check out the ndk, it might be better to call the C code as a library than as a cli you need to parse/screen-scrape Jul 21 03:44:15 Lars_G, I didn't code the binary, I do have the code, but I'm not that good with C that is Jul 21 03:44:25 hmmm ok Jul 21 03:46:07 Sweet, doing "complicated" stuff late at night is not the best of ideas... I was trying to shove the sd in the hdmi port Jul 21 03:46:09 sigh Jul 21 03:47:33 I've been trying to figure this out all day Jul 21 03:47:36 0_o Jul 21 03:47:46 I wonder if there are people doing on-device compiling, for on the road coding. Like there was in the palm days with onboard-c Jul 21 03:48:29 I know of people who compile with some toolchain on their android phones Jul 21 03:48:44 sl4a might be more efficient for testing stuff on the road, but i guess those scripts are harder to convert into a full android app for market Jul 21 03:50:10 AIDL is one of them Jul 21 03:50:37 Maziz: Of these persons? Jul 21 03:50:41 I'll ask him latter Jul 21 03:50:54 i mean tool Jul 21 03:50:55 lol Jul 21 03:50:58 Ah, thanks Jul 21 03:51:01 I shall google Jul 21 03:51:23 Sorry, I'm tired Jul 21 03:52:05 Can someone guide me on how to add android support v4 to Maven? Jul 21 03:55:49 Maziz: AIDE, not AIDL Jul 21 03:57:31 aidl sounds interesting as well Jul 21 04:02:21 AIDE is perfect, tyvm Jul 21 04:10:58 checksum: I'm also learning about maven and its usage in android project, so you have it working already? Jul 21 04:12:00 hoangtran: I installed maven-android-sdk-developer, but can't get the support library even though it's supposed to be included.... Jul 21 04:20:45 checksum: you mean maven-android-sdk-deployer? https://github.com/mosabua/maven-android-sdk-deployer/ Jul 21 04:21:01 hoangtran: yes Jul 21 04:23:20 yeah that Jul 21 04:23:22 sorry Jul 21 04:32:13 Has anyone here added android support library to their maven? Jul 21 04:32:34 How do you shut down an AVD via CLI? Jul 21 04:32:50 bonus points if you can do it purely through ddmlib Jul 21 04:32:52 Back on my tab Jul 21 04:33:34 Oh and i figured what the problem is Jul 21 04:34:16 Since the miner is running and doesn't exit unless i close it, i won't get an output until it's closed Jul 21 04:34:42 I have to see how terminal emulator works Jul 21 04:35:00 I might have to copy a few functions or just see how it's done Jul 21 04:41:29 Hey JakeWharton, I see you're a contributor on maven-android-sdk-developers. Do you have a minute? Jul 21 04:41:37 sure Jul 21 04:41:59 I think you mean fighting-a-losing-battle-by-using-a-real-build-system-developers Jul 21 04:42:20 lol. I'll query you. Jul 21 04:42:27 lol Jul 21 04:42:47 apparently build systems (and anything that does work for you) is frowned upon in the Android world Jul 21 04:43:00 we like manual arduous processes Jul 21 04:44:18 Is this from your experience with ABS and trying to promote Maven for ABS? Jul 21 04:44:34 JakeWharton: I usually cut wood with an axe before coding Jul 21 04:44:54 JakeWharton: what kinds of things do you mean by manual and arduous? Jul 21 04:45:05 dependency management (or lack thereof) Jul 21 04:45:07 ant Jul 21 04:45:23 both are horror shows in the Android world Jul 21 04:45:34 ..yeah :/ Jul 21 04:45:35 and both are problems that have been solved elegantly in the Java community many times over Jul 21 04:46:03 wot's a 'dependincy'? Jul 21 04:46:17 ..you should talk to some Googlers about this :) Jul 21 04:47:51 how imma make double dpad? Jul 21 04:47:51 I have. I'm not even the most vocal or the one who is doing the most lobbying on the behalf of a build system that's actually a build system. Jul 21 04:48:05 iphone i had to make 2 transparent views and add swipgesturehanndlers to each Jul 21 04:49:20 Maven is neither elegant nor solved. On the other hand, the current mess isn't better Jul 21 04:49:31 JakeWharton: may I pm? Jul 21 04:49:41 though I think Eclipse is partially responsible :) Jul 21 04:49:55 tmandry: if you'd like Jul 21 04:50:08 p_l|backup: Maven is more elegant than ant. At least you tell it *what* to build rather than *how* Jul 21 04:50:57 not to mention you can depend on pure-Java modules rather than having to have everything set up as a library project Jul 21 04:51:30 both suffer from abuse of XML... Maven doubly so with 2nd normal form everywhere, iirc Jul 21 04:51:35 I don't really care what I use as long as it's a build system and not a scripting language (especially one that's just bash bastardized into XML) Jul 21 04:51:56 I would again side with Maven since it's declarative about what over how Jul 21 04:52:18 FYI if anything changes ill be pissed off Jul 21 04:52:34 i'm sure Google will take you being upset into consideration Jul 21 04:53:20 AFAIK google takes into account "maven doesn't work with our build system, so there's little push even for external projects" Jul 21 04:54:11 so is a fling like a pan on iphone? Jul 21 04:54:37 Maven could work find with their ant scripts Jul 21 04:54:48 or, more specifically, the Maven central dependencies Jul 21 04:55:38 Xav and Tor have mentioned proper dependency management for quite some time (even at their talk at I/O) Jul 21 04:55:59 I don't care what they do but the fact that users have to juggle .jars around is unacceptible Jul 21 04:56:02 JakeWharton: the other way around Jul 21 04:56:35 ant is called, I think, from whatever they have internally Jul 21 04:57:13 well I know that a decent amount of their apps just compile against the internal AOSP tree using make Jul 21 04:58:35 I don't know. I'm 99% certain I can get a Maven build compiling with the same output structure as what ant does Jul 21 04:58:48 All of my projects are set up using the directory structure that ant/Eclipse uses and compile fine with ant Jul 21 04:59:05 I'm pretty sure it's as simple as changing the compile dir from target/ to bin/ Jul 21 04:59:42 even that's not solving the real problem, I don't care if they keep ant but they need to make Ivy a first-class citizen and deprecate the practice of including .jars in the libs/ folders Jul 21 05:02:51 JakeWharton: a beginner question, as I've just started learning maven for a few days: Do you have to create a acrchtype for this? Jul 21 05:03:19 I've never messed with archetypes. I usually just copy an existing pom.xml and modify it to fit my needs. Jul 21 05:04:16 ok, thx, reading maven doc made me think I need an archetype for this android specific project structure Jul 21 05:04:57 you can use an archetype to get a ready-to-go project set up Jul 21 05:05:46 Romainguy here? Jul 21 05:06:42 there're some of them, on github Jul 21 05:26:23 Simran: romainguy is never here. Sometime, however, romainguy_ is. Jul 21 05:29:46 my razr running ICS discharged from 100% to 5% over 14 hours. With probably 20 minutes of active use. Wtf Jul 21 05:30:02 and it just died Jul 21 05:30:04 play Angry Birds less Jul 21 05:30:20 i haven't touched the phone all day except for 20 minutes where I was using it to read engadget Jul 21 05:30:38 what shows as the highest consumer of battery in your settings? Jul 21 05:30:58 my app using the fluffy lib is taking 7% of battery over the 14 hours -- I"m going back and forth with the developer about this but it doesn't look like thats the issue just yet Jul 21 05:31:16 screen @ 38% -- but the phone has been sitting here idle most of the day 13+ hrs Jul 21 05:34:58 adb runs a server on my pc listening to a port, hmm Jul 21 05:35:12 It's been working so well so long I didn't even notice it Jul 21 05:35:49 QubeZ: maybe it was updating your apps, 3g in my phone take my battery Jul 21 05:36:10 i had one app update today google+ and my phone is on wifi only at home Jul 21 05:36:25 its a 4g phone yes but I have my verizon carrier tied to my iphone at the moment Jul 21 05:37:04 razr is simply a dev phone for now, so it sits around all day and I use it to test my app at times but today, 14 hr and it dischaged from 100% to 5% with only about 20 mins of use Jul 21 07:01:17 I'm having a derp moment. If I'm tiling a background, for ldpi do I scale it down or crop it smaller? Jul 21 07:01:42 *should I Jul 21 07:18:32 themirror, I generally scale down Jul 21 07:18:45 sup guys Jul 21 07:20:42 Ologn, thanks. Makes sense cuz otherwise it would look scaled up I presume. Jul 21 07:34:13 Hey, I am trying to connect to rmtp stream, but rtmpClient.connect(host, port, app, callback); never fires callback event. any suggestions? Jul 21 07:50:48 tornike: pastebin Jul 21 07:52:22 hey, is this the best # to talk in regarding the use of particular apps? Jul 21 07:52:51 Aspiegal: depends Jul 21 07:54:11 multicon doesn't seem to work properly on my galaxy note, that or i'm doingitwrong. I add the widget to a screen, then it says to tap on an icon to edit it, but that just results in me being able to move the widget around the screen/s Jul 21 07:54:32 Aspeigal: yeah not the right channel Jul 21 07:54:51 ta, recommend any? Jul 21 07:55:36 maybe #android Jul 21 07:55:59 nah, they referred me here Jul 21 07:56:06 oh well, will keep googling :) Jul 21 07:56:38 Aspiegal: #android is the right place, don't listen to StevenCodes22 Jul 21 07:57:06 lol ta :) Jul 21 07:57:16 prolly just asking my questions wrong Jul 21 07:57:45 Which design do you guys think looks better for the Google Play Feature Graphic? http://sphotos-b.xx.fbcdn.net/hphotos-ash4/382426_505715299444051_1516723559_n.jpg Jul 21 07:57:52 lol Leeds oh well Jul 21 07:59:41 anybody?? Jul 21 08:00:44 I'm leaning on design #3 Jul 21 08:03:21 #1 and #3 are nice. Jul 21 08:03:38 flameshadow: thanks for your vote! Jul 21 08:06:38 hmm, i'm trying to add the gnustl_static to the JNI part of my project.. Jul 21 08:06:50 Application.mk has APP_STL := gnustl_static Jul 21 08:06:58 but still the string header isn't found... Jul 21 08:10:17 argh, ok.. Application.mk has to be in jni/ too :D Jul 21 08:16:15 dlaroche #3 Jul 21 08:16:37 Knossos: thank you also for your vote it helps greatly!! Jul 21 08:16:44 What do I win? Jul 21 08:25:29 dlaroche: i like 2 the most. 1's font is unattractive and 3 feels stale tbh Jul 21 08:26:06 themirror: what about taking design #1's font and putting it on design #3 Jul 21 08:27:52 dlaroche: to clarify, what makes 1 bad are the fonts. the first looks like disney and the other is rough around the edges. the font in 3 is good. 3 is actually probably best, but when juxtaposed with 2 it looks less spectacular Jul 21 08:27:56 so i wouldn't Jul 21 08:28:19 ok Jul 21 08:28:20 thanks Jul 21 08:29:30 i would try rounding the edges or put the glossy panel effect in there, but not sure Jul 21 09:13:12 anyone know how emulators are created beyond the emulator binary? Jul 21 09:13:44 ddmlib allows interfacing with existing apps through java Jul 21 09:31:21 if anyone wants to use the Synthesis Toolkit in an android project: i integrated it into a toy project of mine.. Jul 21 09:31:28 sadly it's too damn slow to use for me ;D Jul 21 09:31:37 https://github.com/fps/android_camsynth/tree/master/jni Jul 21 09:31:46 anyways, if someone's interested.. Jul 21 09:31:53 tapas, im trying to make some shit now just bored got any ideas Jul 21 09:32:14 StevenCodes22: what's your interests? Jul 21 09:32:33 Well i'm working on IR, but really anything to do with home automation Jul 21 09:32:35 and gadgets Jul 21 09:33:10 Question: after creating a Toast and displaying it, if I cancel it, and replace the toast variable with a new toast (makeText), the second show() does nothing Jul 21 09:33:25 StevenCodes22: sorry, my brain is just filled with audio stuff atm ;D Jul 21 09:33:35 StevenCodes22: what was the last thing yuo worked on? Jul 21 09:34:06 lol tapas Working on an 3.5mm audio infrared emitter Jul 21 09:34:09 :p Jul 21 09:34:27 StevenCodes22: lolwut? :D Jul 21 09:34:34 3.5mm jack? Jul 21 09:34:40 or wavelength? ;D Jul 21 09:34:48 Yup lol uses sound files to control pulse Jul 21 09:34:50 though i'm not sure 3.5mm wavelength is IR Jul 21 09:34:56 XD Jul 21 09:35:35 so you can encode audio over IR? Jul 21 09:35:39 pulse modulation? Jul 21 09:35:48 Nah i use the audio jack to power the IR diode Jul 21 09:36:08 ah ok.. Jul 21 09:36:12 crazy :D Jul 21 09:36:30 i hope it doesn't toast the amp stage of the audio jack.. Jul 21 09:36:32 yeah not working too lol Jul 21 09:37:28 Nah not even enough power Jul 21 09:40:09 amazing how little cpu power my LG p500 has :D Jul 21 09:40:51 hi Jul 21 09:56:50 damn google, their emulator is still shit Jul 21 09:57:04 after so many years and promises it stil the same crap :( Jul 21 09:59:22 you're clearly not using GPU or the Intel images Jul 21 10:00:15 enlight me Jul 21 10:00:59 read the official documentation Jul 21 10:01:11 stop bitching before you do. Jul 21 10:06:00 Mavrik, it is still slow Jul 21 10:25:21 Does anyone know of a simple REST client library? Jul 21 10:26:01 Hmmm restlet has a client lib I think, not sure how useful it is on Android (or in general). Jul 21 10:26:07 I've only used it as a server. Jul 21 10:28:42 ive always just used a htp client Jul 21 10:29:05 I guess I was looking for something that could handle xml Jul 21 10:29:50 Normally I use a small wrapper I wrote around httpclient to get the data as string, then I use Jackson or Xstream to map to objects. Jul 21 10:30:09 I mostly use json, but for XML I would probably do it with Xstream. Jul 21 10:31:24 ahhh, I use json Jul 21 10:31:33 and gson Jul 21 10:31:45 can they handle xml? Jul 21 10:32:03 no, gson handles json Jul 21 10:32:11 Jackson has some support for XML nowadays, I think. Jul 21 10:32:13 its "kinda" like xml Jul 21 10:32:29 but its not what you want if you are returning xml Jul 21 10:32:36 yeah Jul 21 10:32:57 I use androuid to call .net wcf restful services Jul 21 11:18:07 anyone know how to invalidate the current views in a listadapter? basically i want to force getView to be re-executed for each visible item Jul 21 11:18:20 might be easiest to re-apply the dataset Jul 21 11:22:48 notifydatasetchanged Jul 21 11:41:09 I connected my android phone to usb port. And, I clicked Run on eclipse. I get: "Launching New_configuration". Path for project must have only one segment. Jul 21 11:41:19 USB debug mode is on on the phone Jul 21 11:41:51 phone runs 2.2. target is 4.1, minimum is 2.2 this is default project that eclipse creates. Jul 21 11:43:59 oh project name was missing Jul 21 11:44:22 but the phone's version isn't recognized. so i can't launch app on the phone Jul 21 11:45:46 ah http://developer.android.com/tools/device.html#setting-up Jul 21 12:00:17 I suddenly seem to have Eclipse Juno, are there any compat problems with the ADT? Jul 21 12:05:12 Hi all Jul 21 12:10:01 yay hello world app works on my phone Jul 21 12:19:16 how can I stop application? Jul 21 12:19:24 finish() Jul 21 12:19:29 press the back button :) Jul 21 12:19:47 i mean, from eclipse, I clicked Run.. and the app runs on the phone. can I disconnect my phone? Jul 21 12:20:16 there is no stop button in eclipse Jul 21 12:20:29 sure Jul 21 12:20:44 thanks. i wasn't sure if it'll break anything Jul 21 12:20:45 u can disconnect phone, no need worry about it Jul 21 12:28:06 SimonVT, re: notifyDatasetChanged does force getView to be called, but my calls to setTypeface are not being displayed in the ListView :/ Jul 21 12:28:24 not affecting the displayed ListView^ Jul 21 12:28:56 somewhere there is caching taking place Jul 21 12:29:37 Then you are probably doing something wrong when setting the typeface Jul 21 12:29:41 ill try ensuring my BaseAdapter is limited to 1 View incase that is the cause Jul 21 12:33:17 i have a utility class for applying typefaces with a boolean to toggle whether the cached font should be used or if it should be reloaded, and a similar boolean in my BaseAdapter to specify when the utility class should be called to apply a new typeface Jul 21 12:36:08 yep, seems ListView is using more than 1 view for the list items, so when I reset the boolean in my BaseAdapter, the subsequent calls to getView dont apply the new typeface and still have the old one in use Jul 21 12:36:40 sorry, i mean BaseAdapter is using more than 1 View for the list items Jul 21 12:37:56 Of course it is Jul 21 12:38:03 1 for each row, as well as any cached views Jul 21 12:38:17 aha, I thought it reused a single View for each teach Jul 21 12:38:19 sup guys,rob Jul 21 12:38:20 each type^ Jul 21 12:38:35 hi steve Jul 21 12:38:50 hows life Jul 21 12:40:04 acceptable, trying to correctly apply changes to this apps properties Jul 21 12:41:46 robb_www, Which app ? Jul 21 12:41:53 i will pm Jul 21 12:44:41 SimonVT, sorry that had really thrown me off, im used to the way Swing works, assumed it was a similar approach Jul 21 12:48:14 Swing is much nicer API wise than the Android UI APIs Jul 21 12:49:46 honestly, I miss the WYSIWYG form designer I used to use in Delphi, long time ago now though Jul 21 12:49:50 should I set up a new layout-tree which contains match_parents where `old layouts` use fill_parent? Jul 21 12:49:57 or is this unnecessary work Jul 21 12:50:54 It's unnecessary work to go through all your layouts just to change to match_parent Jul 21 12:51:04 If you happen to be working on a layout anyway, might as well change it then Jul 21 12:52:41 okay Jul 21 12:52:49 why did they rename/changed it anyway? Jul 21 12:53:25 People read the name and assumed it worked like weights Jul 21 12:53:35 Lots of wrong was happening Jul 21 12:54:37 whats some cool stuff for noobs I could make my android phone into a gadget Jul 21 12:57:52 i never found it confusing :o Jul 21 13:00:03 People assumed it FILLED the remaining space in the parent, instead of MATCHING its size ;p Jul 21 13:00:12 It's a fair mistake Jul 21 13:03:01 ^^ Jul 21 13:07:24 yeah that bit me several times as well :) Jul 21 13:08:28 hi, need some help Jul 21 13:08:34 i`am tray to connect my android (4.0.4) to hands free on sterio radio, Jul 21 13:08:40 http://www.milion.com/details.aspx?pro_id=1183&product_no=D2223B Jul 21 13:08:45 but don`t connect,the info says its for iphone phones Jul 21 13:08:48 is there any way to synchronize Jul 21 13:09:10 mdpt this chan is for app development.. try #android Jul 21 13:09:49 ok tks Jul 21 13:30:09 Why are some drawables restricted ("non-public")? To force developers to make manual copies for every single version? Jul 21 13:30:29 who has a nexus 7? Jul 21 13:31:25 <3 Nexus 7 <3 Nexus <3 Google Jul 21 13:31:27 What would cause a NullPointerException when instantiating InputStreamReader with a FileInputStream (where the FileInputStream is reading from my apps cache dir)? Jul 21 13:32:45 This is driving me crazy Jul 21 13:32:53 Is it even the correct way to be reading a cached file? Jul 21 14:05:07 i'm trying to compile https://github.com/AndlyticsProject/andlytics . Using IDEA i set its sdk version to 15 (4.0.3) but ABsherlock (which i've also set to 4.0.3) complains about not knowing about FragmentActivity. Anything I'm overlooking? I have no exp with abs Jul 21 14:05:59 You didn't add the support library to dependencies Jul 21 14:06:04 how should i implement double dpads? Jul 21 14:08:43 SimonVT right.. thanks Jul 21 14:08:55 well ill start w fling gestures Jul 21 14:09:10 on iphone after i did first version didnt work and needed to add split subviews Jul 21 14:10:13 the opengl opengles 2.0 cubemap texture also still fails on android (works on iphone, osx, windows) Jul 21 14:12:16 /join #ios Jul 21 14:13:52 i have both iphone4 and nexus7 plugged in, running both xcode and eclipse simultaneously :) Jul 21 14:13:56 Hi all! anyone know any statistics about users their screen sizes? Jul 21 14:14:02 hmm, is there any way to compile against non public classes in eclipse? Jul 21 14:14:10 im trying to compile the JB launcher Jul 21 14:14:38 Im having a hell of a time making my app suitable for all devices Jul 21 14:15:11 i do everything in shared c++ code except i have 1 objc file, and 1 java file that are the banes of my existence Jul 21 14:23:34 I got 9 buttons on screen. They all fit correctly in different screens, from 2.7 through to 4.7 screens.. From 5.1 to 10.1 all icons are too small, etc, so I need a new layoutfile for those Jul 21 14:23:50 hi guys Jul 21 14:24:10 so I made the layout-xlarge folder, but that only works on a 10.1 screen Jul 21 14:24:24 can someone help me here with setting up a volume seekbar? Jul 21 14:25:19 I know up from 3.2 there are newer ways to set different layouts, But, my question: How would I set a different layout for 5.1 to 7.1 screens of devices that Don't run 3.2? Jul 21 14:25:51 guess nobody is around Jul 21 14:27:08 ThomQ: -large Jul 21 14:27:13 Hello. Anybody know HTTP library that's robs (has retries function and all)? Jul 21 14:27:15 http://developer.android.com/guide/practices/screens_support.html Jul 21 14:27:19 What's the best way to do automatic upgrades of an app database based on the current date being greater than some date in the database? Jul 21 14:27:32 I'm already pulling an sqlite dump from a web service Jul 21 14:28:11 How do i implement a seekbar for Volume control? i tried a few methods but wont work my code till now: http://paste2.org/p/2079171 Jul 21 14:28:50 Bacta ur wanting to replace a whole local copy with an extrenal one? Jul 21 14:28:56 Yep Jul 21 14:29:10 do u have a db file, or just access to the db Jul 21 14:29:31 It's a TV listings app. If the tv listings are old the app needs to pull a new schema down from an external web service Jul 21 14:30:06 does the whole db need replacing Jul 21 14:30:10 Yep Jul 21 14:30:30 But I don't want to have to redeploy the app in order to bump the db version number Jul 21 14:30:59 layout-large? Jul 21 14:31:05 Thanks simon! Jul 21 14:32:07 Anyone here got a moment to have a look at my code for seekbar volume control ? http://paste2.org/p/2079171 Jul 21 14:34:26 can I force android:src to draw from a certain drawable map? Jul 21 14:41:57 ThomQ: if u dont have drawable for ur dpi it will get from normal drawable (mdpi) and scale it Jul 21 14:42:09 or from nodpi and not scale it Jul 21 14:42:21 Bacta, i would just maintain a sqlite version of the db on ur server, and then when the app needs to be updated just have them download the new version and swap the file out Jul 21 14:42:54 Where will the sqlite file be stored? Jul 21 14:43:18 in this way u can store at application data folder Jul 21 14:43:26 on internal or external device Jul 21 14:43:43 So I can't use onUpgrade? Jul 21 14:44:24 ixc: the problem I'm having is that 3.7 screens And 5.x screens draw from the mdpi folder. Wich works out fine for the 3.7 screens, but the icons are too small for the 5.something screens (and up). I got the correct folders for larger screens set-up, but now I have to or scale up the mdpi images, but I'd rather use hdmpi images Jul 21 14:44:33 i think that Jug6ernaut said, not this way, u just use external database after copy Jul 21 14:45:24 ThomQ: use -sw -w -h folders Jul 21 14:45:55 that's only for 3.2 and up, right? Jul 21 14:46:15 i think yes Jul 21 14:46:42 but its not resolv ur problem, i wrote when read ur text first part :) Jul 21 14:46:53 :P no problem Jul 21 14:47:15 Bacta just create a db on ur app and see where its at :P Jul 21 14:47:17 I already have them set up, and the xlarge & large folders for <3.2 devices Jul 21 14:47:21 hell ill look 1 sec Jul 21 14:47:38 hey Jul 21 14:47:47 if i change the app icon in Google Play control panel, Jul 21 14:47:57 would the game downloaded have the new icon as well? Jul 21 14:48:03 no Jul 21 14:48:09 ixc: thanks! Jul 21 14:48:14 Bacta its under "yourappdata"/databases Jul 21 14:48:15 for change launcher icon, u need change in manifest Jul 21 14:48:19 so it's just for Google Play? Jul 21 14:48:23 yes Jul 21 14:48:26 I could ofcourse use the hdmpi images, rename them. put them in the mdpi folder, and then call them.. Jul 21 14:48:28 ah...! Jul 21 14:48:43 does anyone have idea how to make a seekbar work? Jul 21 14:48:43 But that's a bit unnecisary use of space.. Jul 21 14:48:59 ThomQ: i not really understand what u want do :) Jul 21 14:49:00 lazy to update the whole package :P Jul 21 14:49:14 adicool123 what do u mean work? You just add one to ur layout and attach a listener... Jul 21 14:49:37 ya ddid that but get force close errors Jul 21 14:49:47 here is my code: http://paste2.org/p/2079171 Jul 21 14:49:50 Jug6ernaut: Everything is hidden Jul 21 14:49:52 No idea where it is Jul 21 14:49:54 and what was the exception? Jul 21 14:50:00 Bacta its under "yourappdata"/databases Jul 21 14:50:07 adicool123 errors? Jul 21 14:50:18 Bacta: basicly /data/data/ur.package.name/databases Jul 21 14:50:39 no compile errors just force close Jul 21 14:50:41 logcat says unable to start activity Jul 21 14:50:44 btw im not sure about u can read/check this database on real devices without root Jul 21 14:50:52 Should I be able to find it in my file browser/manager on Windows? Jul 21 14:50:56 adicool123 pastebin stacktrace Jul 21 14:51:03 (and yes I know I shouldn't be using Windows) Jul 21 14:51:04 Bacta no probably not Jul 21 14:51:08 ok a min Jul 21 14:51:14 Bacta there is nothing wrong wiht windows ;) Jul 21 14:51:28 use that u like :) Jul 21 14:51:31 Jug6ernaut: It's a bloody pain for de work Jul 21 14:51:34 *dev Jul 21 14:51:40 I just can't be assed booting into Linux Jul 21 14:51:41 Bacta works fine for me Jul 21 14:51:42 :PI'll put in other words: mdpi is being used by smaller screens and larger screens. The mdpi images are correct for the smaller screens, but too small for the larger. I got a different layout.xml file set up for the larger screens, so now I need to either scale up the mdpi pics, wich are automaticly chosen, or I need to call the pics from the hdpi map Jul 21 14:52:00 The last option seems the best, as upscaling will mess with the quality.. Jul 21 14:52:07 only time i wish i was on linux is when i wanna compile binaries, which is slim to never Jul 21 14:52:23 Is an SQLite file just a SQL dump? Jul 21 14:52:30 no Jul 21 14:52:31 So provide larger -large-mdpi resources Jul 21 14:52:34 its the whole database file Jul 21 14:52:39 ThomQ: u can combine -large-ldpi etc Jul 21 14:52:45 Your -mdpi drawables should be the same physical size on any device Jul 21 14:52:49 (~) Jul 21 14:52:51 yourdb.db or somethin Jul 21 14:52:58 Ah ok Jul 21 14:53:10 I've got a Python script on my server generating the SQL dump Jul 21 14:53:14 This sounds like a bit more work Jul 21 14:53:42 @ ixc: You mean besides a large-layout folder for the xml file, I can make a large-mpdi folder for the images as well? Jul 21 14:53:52 well the only work is maintaining a sqlite db, ether retroactively or when u need to update Jul 21 14:54:00 etherway i shouldnt be much of an issue Jul 21 14:54:20 how many rows we talking? Jul 21 14:55:01 Simon: physical size as in kb's? Jul 21 14:55:12 As in centimeters, inches Jul 21 14:55:30 miles Jul 21 14:55:38 ahh, yeah sure they are Jul 21 14:55:42 feet, yards Jul 21 14:56:04 but since they are the same on a 3.1 screen and a 5.1 screen, that means a lot of extra empty space on the 5.1 screen Jul 21 14:56:40 Then you either use 9patches and stretch, or like suggested, provide more resources Jul 21 14:57:11 ThomQ: u should read the article on the d.android.com about support multiple screen sizes Jul 21 14:57:19 and try it with some simple demo Jul 21 14:59:27 ixc: That's exactly what I'm doing now :) Thanks guys, now I won't be trying to call the images from the drawable-hpi folder, I'll provide more/ copy them Jul 21 15:00:43 Using resources from a different bucket would require you open up the apk, and manually decode them.. Jul 21 15:02:48 hey! Jul 21 15:03:20 Good morning guys Jul 21 15:03:21 i have appended the title of the paid version of my game with "Donation" Jul 21 15:03:26 do you think it would help Jul 21 15:03:27 ? Jul 21 15:06:21 mobilegamelabs, just name the regular version "game name free" and the paid one "game name" Jul 21 15:08:24 Simran: it's not so good so far.. Jul 21 15:08:39 mobilegamelabs, why? 0_o Jul 21 15:08:51 Simran: the market told me Jul 21 15:09:00 i got 0 download for the paid version Jul 21 15:09:00 WHat it tell you? Jul 21 15:09:32 i have been investigating solutions to promote games Jul 21 15:09:36 well Jul 21 15:09:40 i will try Facebook ads Jul 21 15:09:41 what is the different between free and paid one? Jul 21 15:09:52 and i will tell effective its later on Jul 21 15:09:58 *how Jul 21 15:10:12 ixc: ? Jul 21 15:10:43 is there any shane Google Play will have better support to developers about app promotion and marketing? Jul 21 15:11:17 What is a shane? Jul 21 15:11:36 ? Jul 21 15:11:44 u can promote ur application; and if its so good than they should put to home screen :) Jul 21 15:11:50 I'm the one doing the ?'ing around here. Jul 21 15:12:16 Do adwords Jul 21 15:12:17 ad mob Jul 21 15:12:18 ixc: by the way, is Quick Fix a selectable category? Jul 21 15:12:41 quick fix for what? sorry im lost Jul 21 15:12:44 rking: what are you doing?? Jul 21 15:12:57 mobilegamelabs: we dont know what means 'shane' Jul 21 15:13:00 Simran: how effective is it? Jul 21 15:13:05 Jug6ernaut : here u go :http://paste2.org/p/2079215 Jul 21 15:13:19 mobilegamelabs: You're the one that said, "is there any shane". Jul 21 15:13:19 Quick Fix 5 Minutes games Jul 21 15:13:24 or 15 Minutes i forgot Jul 21 15:13:48 mobilegamelabs, I guess they're alright. Never used them besides getting mney from my apps that I put ads on. Jul 21 15:14:10 Jug6ernaut , u here ? Jul 21 15:14:11 oh i said shane! Jul 21 15:14:13 adicool123: fix ur nullpointer problem Jul 21 15:14:17 sorry auto complete typo Jul 21 15:14:21 i meant "chance" Jul 21 15:14:24 how do i do that ixc? Jul 21 15:14:36 first check it what is nullpointer, and why it is Jul 21 15:14:56 smt wrong in ur settings.java line 48 Jul 21 15:15:04 brb i have some todo in kitchen with my lunch Jul 21 15:15:11 If your game is good Jul 21 15:15:14 People will like it Jul 21 15:15:20 Their friends see Jul 21 15:15:23 they download it Jul 21 15:15:29 and the chain reaction goes on Jul 21 15:15:33 by the way, i made #apppromotion to talk about this App Promotion off-topic Jul 21 15:15:49 If your game is shit Jul 21 15:15:52 please feel free to join there to continue the discussion Jul 21 15:17:35 ixc : this is my line 48 Jul 21 15:17:38 : audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,progress,0); Jul 21 15:17:41 Simran: but how can their friends see it? Jul 21 15:17:54 Because they see them playing? Jul 21 15:17:59 ah ! Jul 21 15:18:03 i got it. Jul 21 15:18:07 well Jul 21 15:18:15 mobilegamelabs, idk why you seem so stressed about it.... Jul 21 15:18:21 it's a good way to spread Jul 21 15:18:25 Like you're having an anxiety attack Jul 21 15:18:33 yes…. you are right... Jul 21 15:18:39 Come to my place Jul 21 15:18:40 because i got less than 200 els in a month Jul 21 15:18:42 dls Jul 21 15:18:47 We can smoke this good weed I have Jul 21 15:18:48 :D Jul 21 15:18:52 Simran: your place? Jul 21 15:18:59 Well Jul 21 15:19:01 My parents Jul 21 15:19:05 I 15 Jul 21 15:19:07 haha! Jul 21 15:19:26 you are 15? Jul 21 15:19:46 I am 13 Jul 21 15:19:50 ok, just kidding Jul 21 15:20:35 adicool123: what if u try replace in this line audioManager to Settings.this.audioManager Jul 21 15:20:38 ? Jul 21 15:20:48 if still wrong, try to resolv why null Jul 21 15:20:52 Omfg Jul 21 15:20:56 ok let me try that real quick Jul 21 15:21:00 My main app has 23k downloads Jul 21 15:21:01 :o Jul 21 15:21:09 is nice Jul 21 15:21:19 mobilegamelabs, yes I'm 15. Jul 21 15:23:32 ixc no luck same error and same logcat trace Jul 21 15:24:15 yes Jul 21 15:24:19 i just now check ur code Jul 21 15:24:34 u wrote private AudioManager audioManager = null; and its never got value Jul 21 15:24:56 oh Jul 21 15:25:05 shall i remove null ? Jul 21 15:25:21 u should add audiomanager instance to ur variable :) Jul 21 15:26:54 (its first line in audiomanager document) Jul 21 15:28:17 Alright , well Jul 21 15:28:28 Idk if someone wants to help me? Jul 21 15:29:20 Simran: just ask your question :D Jul 21 15:29:33 Hi guys, noob questions here, which eclipse package do I get "Eclipse IDE for Java EE Developers" OR "Eclipse for Mobile Developers" Jul 21 15:29:42 Alright well Jul 21 15:29:51 Naish: just take the eclipse for java editors Jul 21 15:29:56 and install the ADT Jul 21 15:29:57 Thanks Jul 21 15:30:02 don't use the EE version Jul 21 15:30:07 I want to print what a binary is printing into my textbox Jul 21 15:30:08 at least not right now.. Jul 21 15:30:16 Etc like runtime.getruntime.exe() Jul 21 15:30:17 it has a nasty bug when starting yuor project while in an xml editor Jul 21 15:30:28 Oh right, ok thanks for the heads up Jul 21 15:30:33 But it won't return anything because the process doesn't finish Jul 21 15:30:45 Until the process finishes and exits is when it prints something Jul 21 15:30:55 An output that is Jul 21 15:30:56 Simran: sorry, i don't understand your questions Jul 21 15:31:04 aaah Jul 21 15:31:12 ok, you want to have your app name in a textbox? Jul 21 15:31:18 No no Jul 21 15:31:25 I'm running an external binary Jul 21 15:31:41 and you want to capture its output? Jul 21 15:31:44 Yes Jul 21 15:31:47 But here's the problem Jul 21 15:32:04 I won't get an output until the binary finishes/exits Jul 21 15:32:08 and I don't want that Jul 21 15:32:18 what method do you use to run the bianry? Jul 21 15:32:22 binary Jul 21 15:32:24 u get binary ur its ur native code? Jul 21 15:32:31 runtime.getruntime.exec Jul 21 15:32:38 It's coded in C Jul 21 15:32:47 I'm basically making a GUI for the binary Jul 21 15:32:58 Like I was saying before Jul 21 15:33:02 u should write a library and use them methods from java Jul 21 15:33:02 Unless the binary exits Jul 21 15:33:17 I won't get an outpu Jul 21 15:33:21 *output Jul 21 15:33:31 what is runtime? using http://developer.android.com/reference/java/lang/Process.html? Jul 21 15:33:40 But if I run it in terminal emular, it prints the output in live time Jul 21 15:34:20 Let me try that tapas.. although if it's anything like processbuilder, it won't work Jul 21 15:34:40 ProcessBuilder is a class to help you build a process.. Jul 21 15:35:00 [and start it] Jul 21 15:35:14 Let me try that Jul 21 15:37:51 ixc : all sorted out Jul 21 15:37:55 thanks a lot Jul 21 15:38:38 Simran: what app? link? Jul 21 15:39:05 Hold up Jul 21 15:40:11 https://play.google.com/store/apps/details?id=com.simran.recmanager Jul 21 15:40:14 mobilegamelabs ^ Jul 21 15:41:21 cool! Jul 21 15:45:39 tapas, while process give me an output once the binary exits? Jul 21 15:45:43 *will Jul 21 15:46:29 Simran: i guess you have to try.. i didn't find anything about it in the docs.. but you get a stream for stdout.. so it mightbe worth a try Jul 21 15:46:59 Alright Jul 21 15:52:26 My nexus 7 arrived yesterday, so far it hasn't failed to impress Jul 21 15:52:40 i want one, but once again the offerring is really limited :/ Jul 21 15:53:12 what do you mean? Jul 21 15:53:19 Sorry! Devices on Google Play is not available in your country yet. Jul 21 15:53:21 \o/ Jul 21 15:53:23 I just went to the website and ordered it .. Jul 21 15:53:24 oh Jul 21 15:53:28 that exactly Jul 21 15:53:40 sorry to hear that :) Jul 21 15:53:43 and google play only offers apps here Jul 21 15:53:47 they really need to up their game Jul 21 15:53:49 the Transformer TF700T isn't shipping yet either :\ Jul 21 15:53:49 let me take what I said back, it's horrible, you aren't missing out on anythin :P Jul 21 15:54:08 i have the tf101 which is great, but the 10" is a bit much Jul 21 15:55:02 10" is perfect for me, I just need something to replace my ipad :P Jul 21 16:02:06 I am getting The constructor FragmentPagerAdapter(FragmentManager) is undefined. what does it mean? Jul 21 16:02:34 u dont have this constructor :) Jul 21 16:03:30 ixc, I am doing this tutorial http://developer.android.com/reference/android/support/v4/view/ViewPager.html Jul 21 16:03:35 but it has that error Jul 21 16:11:34 what does this line do? super(activity.getSupportFragmentManager()); Jul 21 16:12:02 calling superclass constructor with SupportFragmentManager as param Jul 21 16:12:38 hello, i am using the following code to get the running application package name Jul 21 16:12:38 http://stackoverflow.com/questions/7608173/android-how-to-get-the-name-of-apk-file-programmatically Jul 21 16:12:57 with String packName = ai.publicSourceDir; at the end Jul 21 16:13:37 I am getting /data/app/com.myapp-2.apk and sometimes /data/app/com.myapp-1.apk Jul 21 16:14:11 any ideas where those -1 and -2 are coming from ? Jul 21 16:25:56 Have you tried ActionBarCompat sample on a JB target? It doesn't recognize a "home" tap, while Eclair does. Jul 21 16:32:43 could someone tell me why i cant see a "perspectiveM" function in my Matrix class? =/ Jul 21 16:36:42 anyone have some code that turns on the camera LED on a Nexus S running 4.0.3? Jul 21 16:45:42 did anyone here had do a patch action in order to compile android? Jul 21 16:59:05 anybody know of some good resources (books/articles/blogs) for building custom Android UIs? Jul 21 17:01:21 zackilla, this should be your holy grail: http://developer.android.com/design/index.html :) Jul 21 17:02:41 thanks Mavrik :) Jul 21 17:04:39 0xB16B00B5 Jul 21 17:17:32 hey guys, I just published my first app to the market, how long it takes to appear in search? Jul 21 17:18:45 some say it appears immediately, some say it takes around 2 hours. but I still can't find it, can someone tell me how long exactly does it take to be approved? Jul 21 17:19:30 I'd say a couple of hours Jul 21 17:19:50 stiggpwnz: no exact time though, just wait patiently Jul 21 17:20:05 thank you guys Jul 21 17:20:26 stiggpwnz: also, easier to find it by package name, rather than search at the beginning Jul 21 17:21:38 There's no approval time, it just takes a while before it propagates to all of googles servers Jul 21 17:26:26 hello Jul 21 17:26:55 any one experienced with delvik kernel modification Jul 21 17:45:36 * lut4rp yawns Jul 21 17:45:59 * hackkitten Zzz~s Jul 21 17:55:46 hey guys i am having a problem called Jul 21 17:55:47 android.view called from wrong thread exception Jul 21 17:59:47 pallavagrawal: i'm not familiar with that, but i think a hadnler is the correct way to update the ui from a background thread Jul 21 18:00:37 f2prateek: so a thread + a handler, right? Jul 21 18:02:03 pallavagrawal: i guess, i havent really worked with those before so I can't be sure, you might wanna check the documentation for the handler Jul 21 18:02:16 thanks anyway! Jul 21 18:12:07 Umm Jul 21 18:12:21 Is it possible to run a binary in the r.raw folder Jul 21 18:12:22 ? Jul 21 18:16:47 .... Jul 21 18:21:35 http://eondev.blogspot.com/2012/03/after-following-nice-code-sample-from.html Jul 21 18:21:38 hm i think im hitting this too Jul 21 18:22:12 is there anyway to turn off the crazy apk packing compressing Jul 21 18:22:40 <[SP]JESTER> hey guys Jul 21 18:26:47 OccultPaparazzi: i guess you could change the ant build.xml script and use that.. Jul 21 19:10:20 so, i'm fixing an app to work on 4.1 on a nexus 7, and the menu, when opened, is so far to the right that i can only see the first few letters of each menu item Jul 21 19:10:35 i'm pretty new to android dev... mind pointing me in the right direction? Jul 21 19:11:56 in the action bar? Jul 21 19:15:09 http://digg.com/newsbar/topnews/nexus_7_sees_incredible_demand_sells_out_at_major_retailers_zdnet Jul 21 19:15:22 oops Jul 21 19:15:25 http://www.zdnet.com/nexus-7-sees-incredible-demand-sells-out-at-major-retailers-7000001292/ Jul 21 19:19:05 looks like my local store doesn't have nexus 7 in stock Jul 21 19:19:09 was gonna pick one up :( Jul 21 19:19:49 i would wait a few weeks and get it from play, to let the bad ones move out of the channel Jul 21 19:19:58 the ones with defective displays, etc Jul 21 19:21:24 * g00s is excited about the canon eos m Jul 21 19:23:09 i received my nexus 7 yesterday; so far, no glitches. very happy with it Jul 21 19:23:15 f2prateek: yes, the action bar Jul 21 19:23:20 in my country cant buy :( Jul 21 19:28:31 lucasoman: could it be there's not enough space so its truncating the menu item strings? Jul 21 19:31:38 how do i clear all action bar items? Jul 21 19:31:42 i want to remove all Jul 21 19:37:13 f2prateek: just to be clear, it's in the menu that expands downward from the horizontal menu at the top Jul 21 19:37:26 i think ti's basically an overflow menu for the items that don't fit in the horizontal menu bar Jul 21 19:37:59 but it's like the top-left corner of this vertical overflow menu is attached to the position of the overflow menu button Jul 21 19:38:11 so it ends up that most of the text is off the screen Jul 21 19:38:50 lucasoman: do you have icons? i thought there was some weird bug with items not having icons Jul 21 19:39:55 seems to have both, with android:showAsAction="ifRoom|withText" Jul 21 19:40:03 i assume that means it only shows the text if there's room Jul 21 19:40:29 so there are a couple buttons (it's big, i'm in the middle of converting from small to big screen), then the overflow menu has text, from what i can see Jul 21 19:40:44 a couple buttons on the horizontal menu, that is Jul 21 19:41:06 i just can't find anywhere that defines how that overflow menu opens or how big the text on that menu should be Jul 21 19:41:17 again, please pardon my noobness Jul 21 19:41:30 my android dev experience is about... 2 days :) Jul 21 19:42:18 lucasoman: that means that if there soom in the aciton bar, it will show up there, otherwise it goes in the overflow menu Jul 21 19:42:25 can you give a screenshot? Jul 21 19:42:53 My phone has a `options menu` button, is there a way to ignore this setting and show all action bar items at the top? (via dropdown) Jul 21 19:44:29 So Jul 21 19:44:45 Umm is it possible to run a bonary from R.raw? Jul 21 19:45:15 spobat: if you enable the action bar it should show the action bar? Jul 21 19:45:40 it is shown. Jul 21 19:45:43 but only a few items at the top Jul 21 19:45:50 the rest appears only if i open the context menu Jul 21 19:46:05 Are they all ifRoom? Jul 21 19:46:13 yes Jul 21 19:46:16 spobat: no, you cant force the overflow menu on devices with menu button as far as i know, but actionbarsherlock has a theme for this Jul 21 19:46:29 What's the theme's name? Jul 21 19:47:00 spobat: i think it ends with .ForceOverflowItem or something Jul 21 19:47:04 its in their demos Jul 21 19:47:18 okay Jul 21 19:47:31 Do you also know how I can delete all action-items? Jul 21 19:47:45 I tried getSupportActionBar().removeAllTabs() but it doesen't seem to work Jul 21 19:47:50 do i need to invalidate the view somehow? Jul 21 19:48:00 remove all tabs removes the tab, not action items Jul 21 19:48:12 ah Jul 21 19:48:46 so what is the correct method, then? Jul 21 19:49:35 u can remove, reinflate them Jul 21 19:49:37 menu.removeItem(item id) Jul 21 19:49:40 after it u need invalidate Jul 21 19:49:43 So Jul 21 19:49:47 Is it possible? Jul 21 19:50:15 f2prateek: http://lucasoman.com/images/menuCutoff.png Jul 21 19:50:37 lucasoman: wow no idea what happened there, that is weird Jul 21 19:50:37 f2prateek I don't have any menu instance here Jul 21 19:51:09 spobat: remmber it when you create the menu i guess then, form onCreateOptionsMenu Jul 21 19:51:15 If you're using abs, call supportInvalidateOptionsMenu() and don't supply any items in onCreateOptionsMenu Jul 21 19:51:28 If you're not, call invalidateOptionsMenu Jul 21 19:51:32 f2prateek Well, the action items are partially ALWAYS visible Jul 21 19:51:35 ... Jul 21 19:51:38 so oncreate/prepare wont be called Jul 21 19:51:52 spobat: listen to SimonVt, he's at better at this Jul 21 19:51:57 f2prateek: well bummer :P Jul 21 19:52:15 is there a good channel for android OS dev? Jul 21 19:52:23 #androidr-oot Jul 21 19:52:25 android-root Jul 21 19:52:25 thanks Jul 21 19:53:26 \q JakeWharton Jul 21 19:53:42 Cool, I don't even need to change the oncreate method this way Jul 21 19:53:46 derp Jul 21 19:53:50 (already written `that` dynamic :> ) Jul 21 19:53:55 SimonVT #working :D Jul 21 19:53:58 thanks Jul 21 19:54:09 Does anyone know how to include android support library into maven? Jul 21 19:54:39 checksum: copy/link it to libs directory? Jul 21 19:55:13 I am trying to programatically create a surface view but i get: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare(). any suggestions? i am writing a PhoneGap plugin and i need to create a surface view to get the camera rolling properly Jul 21 19:55:28 checksum: You could check the pom file for abs, see how it's done there Jul 21 19:56:46 f2prateek Interesting, im already using .ForceOverflow Jul 21 19:57:15 spobat: and it still doesnt work Jul 21 19:57:16 ? Jul 21 19:57:30 well the funny icon with the 3 vertical dots doesent appear, right Jul 21 19:57:36 ForceOverflow only works on And imo, you shouldn't use it Jul 21 19:57:50 -all- items are ifRoom Jul 21 19:57:57 SimonVT Ah, okay Jul 21 19:58:14 yeah.. it somewhat destroys the expectations Jul 21 19:59:15 I sometimes wonder if Admob detects the surroundings color as it sometimes really fits perfectly in terms of design and color Jul 21 19:59:19 sometimes. Jul 21 19:59:21 It deviates from framework behavior Jul 21 19:59:34 yep Jul 21 20:01:11 SimonVT: Do I have to add the dependency to all pom files (ones inside directories) or just the primary pom file? Jul 21 20:01:24 f2prateek: found the problem! Jul 21 20:01:28 checksum: I don't know, I don't use maven myself Jul 21 20:01:33 targetSdkVersion="3" :P Jul 21 20:01:37 changed it to 7 Jul 21 20:01:44 the whole display is 10x better Jul 21 20:01:47 Please change it to >=14 Jul 21 20:01:52 Change the targe to... yeh Jul 21 20:01:56 i just picked 7 out of a hat Jul 21 20:01:57 just to test Jul 21 20:02:03 but will do Jul 21 20:02:04 why? Jul 21 20:02:09 ixc: Do I have to add the dependency to all pom files (ones inside directories) or just the primary pom file? Jul 21 20:02:12 You get free benefits Jul 21 20:02:23 It gets rid of that horrible compat menu button on devices without hardware keys Jul 21 20:02:24 .e.g? Jul 21 20:02:38 checksum: i dont know maven, just was a tip :) Jul 21 20:02:41 ah ok Jul 21 20:03:46 android 3.0 introduced the actionbar right? Jul 21 20:03:53 i believe so, yes Jul 21 20:03:58 d.android.com will tell you easily Jul 21 20:03:59 yes Jul 21 20:04:12 Someone... help.. please? Jul 21 20:04:18 i think was some changes at 3.2 (fixme) Jul 21 20:05:42 Simran: run a binary from r.raw? Jul 21 20:05:48 Yes Jul 21 20:05:59 I want to embed a binary into the apk Jul 21 20:06:04 and be able to run it Jul 21 20:06:26 hey, is it just me or does the robo font sometimes look really ugly? Especially on low-dpi (monitor) devices Jul 21 20:06:26 https://dl.dropbox.com/u/6559846/uglyrobo.PNG Jul 21 20:07:24 spobat: for me its ok Jul 21 20:07:51 hm.. strange Jul 21 20:08:19 spobat: font rendering is a mysterious world, there are about a dozen layers of issues that can rear their head Jul 21 20:08:41 oh, full agreement :} Jul 21 20:09:28 roboto was designed particularly for hdpi though, I thought... Jul 21 20:09:55 Estel, is it possible? Jul 21 20:10:21 Estel easy said, but in real life it looks more difficult I think :) Jul 21 20:10:31 why u want add a binary app? just make a library or do it with ur code :) Jul 21 20:11:24 ixc, I just want to be able to run the binary from a folder >.> Jul 21 20:11:27 Even then Jul 21 20:11:48 Is it possible to extract or download the binary and be able to execute it? Jul 21 20:11:50 add as asset Jul 21 20:11:54 Is there a difference in terminology between the "all apps"-view of the launcher and the "home"-view of the launcher? Jul 21 20:13:04 What do you mean? Jul 21 20:13:40 I add it into the asset folder Jul 21 20:13:42 Then what do I do? Jul 21 20:14:11 if u want run a process check process and runtime classes Jul 21 20:14:24 but still dont know, why? Jul 21 20:15:23 SimonVT The Launcher app has basically two views, right? Jul 21 20:15:24 Simran: http://gimite.net/en/index.php?Run%20native%20executable%20in%20Android%20App Jul 21 20:15:28 check this Jul 21 20:15:36 Right Jul 21 20:15:38 Thanks, man! Jul 21 20:15:50 the one that appears when you press the home-button and the other that appears when you press the middle,bottom button at the home launcher site Jul 21 20:15:50 but i still say, make a library or add it to ur java code Jul 21 20:16:01 How to differentiate these both by easy words? Jul 21 20:16:10 As you see it took me very long to explain the story. Jul 21 20:16:16 Homescreen and app drawer? Jul 21 20:16:29 And the app drawer is the "all apps" view? ;) Jul 21 20:16:34 yes Jul 21 20:16:38 okay Jul 21 20:16:49 thanks :) Jul 21 20:20:07 is there a good command to use if I want to just rebuild a particular framework (e.g. I'm working on SystemUI) instead of using brunch for everything? Jul 21 20:20:34 in how many channels did you ask the exact same question? Jul 21 20:21:34 Im not sure about this but a good system just rebuilds/compiles the changes. Jul 21 20:21:41 by default. Jul 21 20:24:36 sweet, after changing it to 14, it's not ignoring my layout-sw600dp dir anymore :-D Jul 21 20:24:50 hi, i have a question how could i compress bitmap(jpg file) without creating a bitmap object actually? Jul 21 20:25:56 impossible Jul 21 20:25:58 use c++ :> Jul 21 20:26:08 this is sad( Jul 21 20:35:10 Hi, I am working with an SD card that is not a storage medium, is there a way to detect if an SD card (specifically) is mounted? getExternalStorageState will also detect internal storage. Jul 21 20:56:38 I'm trying to get my app to send a direct message to a user on facebook. Looking at this: https://developers.facebook.com/docs/reference/dialogs/send/ They show how to do it in JS but not Java / android context. Anybody have any suggestions for me? Jul 21 20:56:47 Do I have to open a URL in a browser window? Jul 21 20:56:57 isnt there an android-sdk? Jul 21 20:57:04 for facebook Jul 21 20:57:31 https://github.com/facebook/facebook-android-sdk Jul 21 20:57:43 Facebook documentation is big and kinda messy. Many documents are intended to be multi-platform. I can't find anything specific to android, facebook direct messages Jul 21 20:58:25 I have the facebook android sdk downloaded and the demo app working Jul 21 20:58:54 can users see old "recent changes" for apps in the play store? Jul 21 20:59:25 theres a whats new section Jul 21 20:59:45 oh you mean even older changelogs? Jul 21 21:00:15 Ahh, here we go... http://developers.facebook.com/docs/reference/androidsdk/dialog/ Jul 21 21:01:59 yea f2prateek Jul 21 21:02:17 like imagine you release 2.0 with a bunch of features that require 500 of our 500 characters to describe Jul 21 21:02:30 then a day later, you release 2.0.1 with one new feature and several different types of bugfixes Jul 21 21:02:33 that needs 150 characters Jul 21 21:02:35 you're fucked Jul 21 21:02:39 unless you put it in the app description Jul 21 21:04:31 canadiancow: yeah i don't know, but it doesnt seem like you can see the older ones Jul 21 21:05:03 lame Jul 21 21:27:58 * jasta sits back and ponders how to redesign this tiled drawing layer Jul 21 21:46:18 hmm, i need a priority blocking queue data structure that will permit concurrent modification (while preserving the iterator order). am i off in do-it-yourself land here? :) Jul 21 21:47:38 jasta: i'm not aware of any containers in java that allow concurrent modification Jul 21 21:47:40 probably jasta Jul 21 21:47:42 there is a threadsafe priority queue Jul 21 21:48:07 smit: i checked, the implementation on android (and java documentation) confirm that concurrent modifications would be simply ignored Jul 21 21:48:45 what i'm looking for is pretty basic. i want to prioritize requests to a worker thread, and dynamically add/remove/reprioritize requests on another thread as they are being worked on Jul 21 21:49:09 smit: I used a PriortyBlockQueue for that. Jul 21 21:49:21 the priority order is guarenteed, just not for similar priority Jul 21 21:49:37 then I wrapped it in a producer/consumer model Jul 21 21:50:01 oh, duh, just don't use the iterator() Jul 21 21:51:03 why would you be iterating a priority queue Jul 21 21:51:28 oh, reprioritize Jul 21 21:51:35 i think im gonna need to couple two data structures to solve the larger problem though. specifically, i have the need to avoid overlapping work requests as well Jul 21 21:53:27 jasta: to keep dups out of the queue, or to only processes one item from the queue at a time? Jul 21 21:53:30 that is, i might get a work stream like: A using 1, B using 1, C using 2, D using 1, E using 2. the ideal work that is actually run would be: D using 1, E using 2. that is, the shared resource (1 & 2) would only get operated on once, and the overlapping requests dropped Jul 21 21:53:33 hey guys! For some reason -don't ask me why- I start getIntent(), so basically itself. Now, how would I kill the current intent, so this results in a restart, not a second instance? Jul 21 21:53:41 smit: not dupes, the issue is that there is a shared resource here Jul 21 21:54:45 there can be m requests using n resources. resources need to be able to become free for other work requests that have yet to be executed on (so they may be in the work queue, but now they are being removed and added using a different request on that same resource) Jul 21 21:55:42 so i need another data structure (like a map) that is also synchronized with the priority queue that links the request with the resource. that way if a request comes in for the same resource, i can remove the overlapping request from the queue and add the new one. Jul 21 21:56:12 i'm betting this hurts performance pretty bad though, but it shouldn't be a big enough deal that i would care. Jul 21 21:58:39 smit: well, thanks for helping me think through this. carry on :) Jul 21 21:59:09 jasta: heh. np. datastructures good. Jul 21 22:06:56 Hi, i have been looking for documentation of android's source, but couldnt find it on android.com...might anyone know where it is? Jul 21 22:07:42 gkwhc: it can be download fomr the sdk manager Jul 21 22:08:16 gkwhc: choose the api level, and selecte sources for Android SDK Jul 21 22:08:33 f2prateek: can I possible browse it online, not locally? Jul 21 22:11:42 gkwhc: source.android.com, but not really. Jul 21 22:12:29 there's probably some gitweb stuff hosted or whatever, but what a pain. just download it Jul 21 22:12:48 gotchya. thanks!! Jul 21 22:12:56 I know that there's a few different types of images for android devices, like Radio Firmware, and OS Firmware. What are all the types and how can I tell what versions my device has? Jul 21 22:13:26 nfearnley: adb shell getprop, but please consider #android-root or #android for this. Jul 21 22:32:15 hmm interesting, is it common for the SD card path to be different from what is returned by Environment.GetExternal... Jul 21 22:33:08 Depends on the device Jul 21 22:33:54 wonderful ... Jul 21 22:33:56 ok thanks Jul 21 22:34:39 Some devices have their memory split into internal and external.. And then the possibility of an sd card Jul 21 22:35:02 thats the case with the prime, unfortunately I can't find a way to get the absolute path to the SD Jul 21 22:35:15 aeos: transformer prime? Jul 21 22:35:22 yea Jul 21 22:35:34 I have to hardcode "/Removable/microSD" Jul 21 22:35:38 aeos: internal memory is on /sdcard, external I think under /Removable Jul 21 22:35:40 afaik there's no failsafe way of doing this, there's no api for the secondary external storage Jul 21 22:35:53 but you can't depend on specific name under /Removable, afaik Jul 21 22:36:04 (for various reasons) Jul 21 22:36:33 shame Jul 21 22:36:38 I'd have to check, but I think the devices under /dev/block are still created Jul 21 22:36:40 Probably can't even depends on /removable Jul 21 22:37:02 secondary storage *really* should be mounted somewhere in the primary storage mount point. but in reality it is not always the case Jul 21 22:37:12 well, /dev/disk/by-path/ Jul 21 22:37:30 from that you can find the device name to check with 'mount' Jul 21 22:37:37 bubbleguuum: There should just be an api for it Jul 21 22:37:47 Then it wouldn't matter how or where they mount it Jul 21 22:38:10 no need for an api if the secondary sdcard is mounted as a subdir of the primary Jul 21 22:38:37 you do not even need to worry about secondary storage that way Jul 21 22:39:17 anyway, you probably can use good old linux apis for this Jul 21 22:40:00 unfortunately my SD card is not storage so it kinda hoops the implementation Jul 21 22:40:17 ah well POC. Jul 21 22:40:38 bubbleguuum: There's no way for the user of knowing what subfolder it is Jul 21 22:41:14 true Jul 21 22:42:01 You need it to be distinct to provide a proper experience for the user Jul 21 22:42:19 aeos: in what way "not storage" Jul 21 22:42:22 "Transfer to sd card" instead of "transfer to sd/somerandomfolderthemanufacturerchose" Jul 21 22:42:45 sure, let's blame Google for not thinking about multipl sd cards Jul 21 22:45:19 ..and to let any app read the sd card for reading photos, for occupying super bored "Security researchers" affiliated to sensasionalistic tech sites. Jul 21 22:46:55 as for checking for *specific* storage device Jul 21 22:48:11 if the device has proper nodes under /dev/disk/, you can check for a) specific storage connection (with by-path) b) specific *disk* or *partition* (with by-uuid or by-id) Jul 21 22:48:32 you shouldn't need root for that Jul 21 22:49:05 p_l|home: technically it is storage, but its a mechanism for processing digital currency Jul 21 22:51:15 aeos: mount | grep `readlink /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part1 | cut -f 3 -d '/'` | cut -f 3 -d ' ' <--- example in shell to get mount point Jul 21 22:51:54 obviously from a normal computer, but if /dev/disk is set up properly it will work (just change the query, and maybe adapt a bit) Jul 21 22:54:16 you may not have full *POSIX* apis, but you do have most linux APIs available Jul 21 22:59:15 thanks. Jul 21 23:02:49 i get onTouch but not onFling Jul 21 23:03:08 hmm Jul 21 23:03:23 i seem to recall that you used to be able to visualize how much memory was being used in Bitmap objects specifically by dumpsys meminfo Jul 21 23:03:26 where did this go? Jul 21 23:36:55 if i register a listener, how long the listener will be registered? is it required that my activities need to be in the stack for my listener to receive updates? Jul 21 23:37:31 it appeared that, i registered a location listener, and that listener stop getting updates after some time. if i go back to the app again, then it starts receiving location updates. Jul 21 23:38:06 on such case what programming model is suggested for listener pattern? so that listeners reamin alive and receives updates Jul 21 23:41:40 what do you guys recommend if I want to add a seach bar in my app Jul 21 23:41:53 I'm about to read http://developer.android.com/guide/topics/search/search-dialog.html Jul 22 00:01:09 jahid until you unregister is Jul 22 00:01:11 t Jul 22 00:04:21 hey all, is there a better way of packaging a database with an app than doing a .dump and building it when the user first opens the app? Jul 22 00:05:00 (doing a .dump on a database you've build yourself, and including the file in res/data or something) Jul 22 00:58:02 Structure question if anyone's around: should my asynctask to populate data be in the Fragment or FragmentActivity? And if the latter, how do I callback to the Fragment (given that this is a MapFragment implemented with LocalActivityManager) onPostExecute() ? Jul 22 01:12:36 xorgate, doesn't seems like it is working as you mentioned though. my listener stops receiving update after sometime. and it starts receiving update again if i go back to my app Jul 22 01:15:17 Anyone have any tips on getting a linearlayout to work with "Tab order" in a set of input fields? I have a set of edittexts mixed in with linearlayouts which are my custom select lists. I'd like that if I hit next from the edit text, and the next item is a linearlayout which acts as a select list, Can I get it to get focus like it was clicked? Jul 22 01:37:26 im im trying to finish input even that already been disposed Jul 22 01:41:16 Hi, where can I find documentation for android OS/kernel? Jul 22 02:05:56 any idea why my n7 seems to keep turning the screen on when its charging? Jul 22 02:12:42 canadiancow|work: most devices do; you mean it keeps turning back on after turning it off? mine doesn't do that. Jul 22 02:14:16 yes Jul 22 02:14:23 and of course it's stopped doing it now Jul 22 02:14:29 i cleared a notification Jul 22 02:14:32 i wonder if that app was being stupid Jul 22 02:15:02 Better get a full wakelock for them notifications Jul 22 02:15:10 depends on the app Jul 22 02:15:19 if its one of mine the most certianly Jul 22 02:15:41 I know quite a few apps which download in the background (e.g. podcatchers) have an option to try to keep the screen on while they're downloading, to get maximum network performance Jul 22 02:16:17 canadiancow|work: sure your charger isn't blinking out? Jul 22 02:16:39 no idea Jul 22 02:16:44 Leeds i have nothing like that Jul 22 02:34:59 How can I add a TextView inside a FragmentActivity Jul 22 02:35:17 programmaticallt Jul 22 02:36:00 all I have now is setContentView(R.layout.activity_item_list); Jul 22 02:37:50 let me try .addView to my LinearView Jul 22 02:40:10 testing Jul 22 02:55:18 what do you suggest for vertical scrolling a ListView which auto pages as you near the bottom ? Jul 22 02:58:08 joikus: check out the google io source code, they did something like that Jul 22 02:58:10 hey all.... how can I add an ImageButton to a layout with a stock "next" icon in it? Ala the wizard "next" buttons you get during Android setup Jul 22 02:58:21 I tried referencing the ic_btn_next resource out of Android but it seems not to work **** ENDING LOGGING AT Sun Jul 22 02:59:59 2012