**** BEGIN LOGGING AT Tue Apr 24 02:59:58 2012 Apr 24 03:00:04 Ginto8: usually here, everyone says "show us the code" Apr 24 03:00:21 Ginto8 make sure the device is selected in eclipse's ddms perspective Apr 24 03:00:25 or, better yet Apr 24 03:00:27 use the command line Apr 24 03:00:39 i can run the app on the device with "adb shell am start -a android.intent.action.MAIN -n com.sample.scanner/.scannerview" -- but I'm trying to figure out what's on the other end of that; the receiving part. I havn't seen any code that seems to handle it in the application. Apr 24 03:00:43 QubeZ, I'm not sure you want to see a 450 line, two file project :/ Apr 24 03:01:02 Ginto8: well obviously we'd only want to see the relevant piece of code... duh Apr 24 03:01:11 but the line is Log.d("Time delta 1","" + newTimeDelta); Apr 24 03:01:37 I am REALLY REALLY dissatisfied working with other people Apr 24 03:01:59 Kamilion that command starts an intent that the framework uses to start your scannerview activity Apr 24 03:02:00 ron_frown: you'll have to continue working with people to succeed Apr 24 03:02:18 Kamilion so the onCreate() gets called in your scanneractivity class Apr 24 03:02:21 er Apr 24 03:02:25 scannerview* Apr 24 03:02:27 oh, okay Apr 24 03:02:33 I cant make people smarter Apr 24 03:02:59 how could i use the same thing to call a different method? eg, like startAll() ? Apr 24 03:03:02 I also cant stand trying over and over to explain why somethings not working and having it fall on deaf ears Apr 24 03:03:03 Ron White's famous saying: You can't fix stupid Apr 24 03:03:11 I am not even saying they are stupdi Apr 24 03:03:32 if i run the command a second time, nothing happens Apr 24 03:03:32 they tell me to build x, I do it using my skillset, which often uses advanced features of a language Apr 24 03:03:43 so it doesn't close and reopen the application or anything Apr 24 03:03:45 then they complain they dont understand it Apr 24 03:03:49 so I gotta dumb down my code Apr 24 03:03:59 I'm trying to figure out how to handle recurring tasks. In most use cases where the user sets an alarm on the original task and sets it to recurring then I can set the next occurrence of the task (and alarm) after that fires. But how should I handle if the original task has no alarm yet recurring is set... any ideas? I'm at that design fork in the road. Apr 24 03:04:02 so i'm assuming i can trigger other stuff in a similar way Apr 24 03:04:22 ron_frown, write them an interface, then tell them not to mess with the implementation Apr 24 03:04:23 then people go blaming certain problems on me, and I explain that I isolated that code in a plethora of unit tests Apr 24 03:04:23 you could launch whatever activity you want Apr 24 03:04:38 its something else Apr 24 03:04:43 i don't think these method calls are what android calls activities Apr 24 03:04:57 that's not a "method call" really Apr 24 03:04:58 I understand everyone makes mistakes but I dont feel like arguing about it for hours Apr 24 03:05:07 right now there's a button inside the activity that runs startAll() Apr 24 03:05:11 also, starting the activity of an activity that's already showing, does nothing Apr 24 03:05:30 unless you have flags Apr 24 03:05:33 i'm trying to figure out how to make that an external input Apr 24 03:05:49 where can i find documentation/code examples on such intent flags? Apr 24 03:05:57 d.android.com Apr 24 03:06:09 you also might want to look up the Testing section there Apr 24 03:06:30 i mean more than just the useless one line of code samples that the website shows Apr 24 03:06:49 I mean, i know what the method parameters are Apr 24 03:06:58 so this is sort of unhelpful? Apr 24 03:07:58 hm, maybe i should look at the class above it then Apr 24 03:08:40 oh, maybe this is what he was talking about, broadcastIntent Apr 24 03:09:50 hm, okay, at least this is bringing me closer. Thanks, t0mless... I'll read up on this and ask any more questions as I think of them. Apr 24 03:10:11 How do I tell ant where the sdk is? Apr 24 03:10:29 also, is this the right way to be doing this? or am i doing something crazy here? ^_^ Apr 24 03:13:58 Hi! I want to use phone IME for decimal edit text. I've tried android:inputType="phone|numberDecimal", but the mask doesn't work as expected. Apr 24 03:15:37 vadi2: not saying this is the only way, but putting the sdk tools in your path should work Apr 24 03:16:14 readme: ah ok Apr 24 03:16:33 readme: that's how I did it to begin with actually and forgot. thank you Apr 24 03:17:10 oh, huh, it's not. the proper one is there. but ant is thinking another one Apr 24 03:17:28 hm Apr 24 03:17:45 ERROR: cannot open `/home/vadi/Programs/android-sdk-linux/tools/ant/build.xml' (No such file or directory) Apr 24 03:17:45 I've moved the sdks since to another place :-/ Apr 24 03:17:57 local.properties Apr 24 03:18:05 sdk.dir= Apr 24 03:18:24 in eclipse you probably have your old sdk dir still Apr 24 03:18:54 yes thank you Apr 24 03:22:04 Hm, ABS does not have a build.xml file and ant complains. Apr 24 03:22:14 Does it actually need one? Apr 24 03:28:34 try android update project -p -t Apr 24 03:28:38 then try running ant again Apr 24 03:29:23 if one was starting a game for ios / android, what would be the best way to go about it where I could share as much code in between? Apr 24 03:29:35 using a framework like unity Apr 24 03:30:17 besides that Apr 24 03:30:26 what kind of game is it Apr 24 03:30:35 2d Apr 24 03:30:44 puzzle game Apr 24 03:31:00 I believe SDL is portable across android and ios Apr 24 03:31:51 hmm Apr 24 03:32:10 i was just thinking doing c++ and opengl or what not and hopefully most of it except the UI stuff i could share Apr 24 03:32:28 have fun writing opengl code just to make a 2d game Apr 24 03:32:32 i find it difficult Apr 24 03:33:13 the difficulty in the programming shouldn't be a problem Apr 24 03:33:17 its a rather simple game Apr 24 03:33:31 which was my fear in using cocoa framworks for drawing sprites etc etc Apr 24 03:34:15 GL's pretty easy to use for 2d. In my experience, the hardest aspect has always been loading in textures Apr 24 03:35:01 so opengl c++ i could carry most code in between both platforms? hopefully at least Apr 24 03:35:26 as long as it's within the GLES subset Apr 24 03:36:13 or should one deeply use cocoa and all its sprite and 2d goodness and then come to android and do it in java and i'm not all sure what abstraction it offers for this sort of thing Apr 24 03:36:17 how do most people do this? Apr 24 03:37:15 I would bet that most ports are not sharing a lot of code. Apr 24 03:37:57 oh? Apr 24 03:38:18 its a bet Apr 24 03:38:23 not based on data Apr 24 03:38:27 if thats the case then maybe just do it in java / opengl and cocoa for ios directly Apr 24 03:38:45 if it's such a simple game as you say, maybe Apr 24 03:40:32 at least try the NDK out so you can see what you will have to do Apr 24 03:40:58 how do you sign out of a google account when you have multiple signin enabled Apr 24 03:41:00 :S Apr 24 03:41:50 readme: hmm …i mean its simple 2d puzzle game but its still a sizable project Apr 24 03:43:03 maybe make a proof of concept for sharing the code and see how difficult it actually is Apr 24 03:43:23 and windows phone doesn't allow native code at all currently right? Apr 24 03:43:28 afaik, no Apr 24 03:43:56 Technodrome: Unity does 2D very well. Apr 24 03:44:19 it's about the only decent multiplatform solution i've been able to get working very well on a wide range of devices. Apr 24 03:44:55 built a 2D card game in unity; did about 28FPS on an old HTC hero with cyanogen7 Apr 24 03:45:06 i was rather suprised, honestly. Apr 24 03:45:09 i see Apr 24 03:45:31 i hate to have 3 code bases Apr 24 03:45:35 for mobile, i'd stick with the C# support Apr 24 03:45:49 * Kamilion agrees Apr 24 03:45:58 we went from four down to one Apr 24 03:46:01 and gained a webplayer Apr 24 03:46:20 none of the devs wanted to work on the old C++ code anymore, lol Apr 24 03:46:39 what do you mean c# support? Apr 24 03:47:38 Unity is based on the MONO .NET engine, with C# as it's primary language, and a javascript-to-C# compiler called jurassic to allow smaller scripts in js. it also supports a limited python dialect called Boo that does the same thing, but isn't used often anymore. Apr 24 03:47:53 thus, for each platform, it's a set of native Mono dlls Apr 24 03:49:05 how do you test though in using the .net engine ? Apr 24 03:49:13 also hows the speed? I can see a major performance loss here Apr 24 03:49:53 and nothing stops you from importing C++ code into the project and bouncing calls back and forth -- we did that for the lidgren udp networking library Apr 24 03:50:00 it's compiled to native code, jit Apr 24 03:50:02 by mono Apr 24 03:50:11 javascript -> c# -> CIL -> native Apr 24 03:50:22 so it's no slouch on the speed. Apr 24 03:50:40 its jit on android right? Apr 24 03:50:46 it's jit on all platforms Apr 24 03:50:49 since it's mono dlls Apr 24 03:50:58 even on ios? Apr 24 03:51:15 mono native dlls on android, mono native dlls on ios, native dlls for google NACL webplayer, native dlls for windows and native dlls for mac OSX Apr 24 03:51:16 how do you compile C# for android? Apr 24 03:51:21 Unity Apr 24 03:51:27 Built on top of mono. Apr 24 03:51:51 mono can compile to dalvik? Apr 24 03:51:55 oh -- ios is not jit, i don't think Apr 24 03:52:06 Ginto8: no, to ARM bytecode for native execution. Apr 24 03:52:30 but actually, I think it also can compile to dalvik Apr 24 03:52:34 seems ios gets emulation-jit during xcode Apr 24 03:52:35 http://xamarin.com/ Apr 24 03:52:38 just not with unity :) Apr 24 03:52:43 i wonder how they did it with angry birds Apr 24 03:52:51 they got angry birds on windows phone android ios etc Apr 24 03:52:52 not actually sure how that works, though Apr 24 03:52:52 so do you have to use JNI to make it an apk? Apr 24 03:53:12 readme: mono can chat either way; using JNI to handle dalvik code, or native calls from dalvik to the mono VM Apr 24 03:53:36 some of the calls are wrapped already; some are not Apr 24 03:54:15 i can't say I'm too familiar with dealing across the boundary; since we're crossplatform, we've tended to avoid platform specific hacks Apr 24 03:54:34 lidgren's been about as far as we wished to venture into nativecode land :) Apr 24 03:55:09 how profitable is the android market place these days? Apr 24 03:55:36 Technodrome: in the past ~7 days, I made 13 bucks Apr 24 03:55:46 i almost feel like both ios and *maybe* windows phone could be more profitable than the marketplace, everything i read on it makes it seem like everyone is loosing Apr 24 03:55:48 i published a minimum viable product 7 days ago. Apr 24 03:55:51 haha, wish i knew; sadly, i'm not the one getting the analytics Apr 24 03:56:16 thats profit, not revenue.. google took 7 Apr 24 03:56:22 :P Apr 24 03:58:00 lol Apr 24 03:58:07 what kind of app was it ? Apr 24 04:00:20 how do you define "profit" readme? Apr 24 04:00:25 what was your expense in creating the app? Apr 24 04:00:30 how much time did it take? Apr 24 04:00:47 canadiancow: I did not put my own labor into the equation, but it took me about 2 days to make it Apr 24 04:00:58 yea i wouldnt quite call that "profit" yet :P Apr 24 04:00:59 so yeah, technically it's not profit Apr 24 04:01:02 if I post and alarm using alarm manager and then cancel that, can we again post an alarm with same request code or similar pending intent? Apr 24 04:01:15 i like to think that an app/website of mine make me "profit" Apr 24 04:01:19 canadiancow: the biggest profit was the satisfaction of knowing people want my code Apr 24 04:01:19 but if probably spent 500 hours on them Apr 24 04:01:41 Technodrome: its a caller id app Apr 24 04:01:47 oh that one? Apr 24 04:01:50 yeah Apr 24 04:02:10 hmm Apr 24 04:02:13 link me Apr 24 04:02:19 by the end of the week i'm going to have added some features to make it a bit more robust and hopefully capture a wider range of people Apr 24 04:02:23 * pfn applies for another credit card, yay Apr 24 04:02:27 https://play.google.com/store/apps/details?id=com.tomdignan.android.LEDCallerID Apr 24 04:02:39 also I've got a sony liveview coming in the mail :) Apr 24 04:02:49 LED Caller ID works best on GSM phones with UTMS, such as those distributed by T-Mobile and AT&T. Apr 24 04:02:51 UMTS* Apr 24 04:02:55 oh Apr 24 04:03:01 thanks Apr 24 04:03:19 that starts to get complicated...i dont even know how to work a statement like that in a way that is both technically accurate and understandable by noobs Apr 24 04:03:20 need help in debugging: how can I check why a scheduled alarm is not working :( Apr 24 04:03:36 canadiancow: my intention with the statement was to scare away people until I make the app more user friendly Apr 24 04:03:44 only the brave for now Apr 24 04:03:49 heh Apr 24 04:03:54 i think i'll buy this Apr 24 04:03:59 awesome :) Apr 24 04:04:02 i know where to find you if it sucks! Apr 24 04:04:10 24/7 support Apr 24 04:04:21 nice permissions too :) Apr 24 04:04:32 i almost said "WHAT PHONE STATE AND IDENTITY? NOT YOU TOO!" Apr 24 04:04:32 there is one known issue, that on some phones it covers the call end end buttons. but I am working on a fix for that and it's almost ready. Apr 24 04:04:37 then i thought about what the app does... Apr 24 04:04:58 come on chase, gimme a huge line Apr 24 04:05:17 damn, it doesn't tell me how much credit I get? me kicks these silly online applications Apr 24 04:06:03 sorry, caller id is unavailable :( Apr 24 04:06:07 readme: thanks, that worked doing it in ABS/library Apr 24 04:06:39 im not sure how to call myself in a way that i can expect reasonable caller id Apr 24 04:06:49 guys can anyone please help :( please Apr 24 04:07:00 meh, guess I gotta wait... Apr 24 04:07:00 canadiancow: my phone sends "WIRELESS CALLER" Apr 24 04:07:17 if you want to verify it works pm me and I'll call Apr 24 04:07:31 this one just said "finding caller id for ..." Apr 24 04:07:38 and it never changed? Apr 24 04:07:45 readme, "works best on a phone that can use data and voice at the same time" Apr 24 04:07:45 nope Apr 24 04:07:50 that was calling from the thing in gmail Apr 24 04:07:57 canadiancow: what kind of phone is it, what is the data connection Apr 24 04:08:02 wifi :P Apr 24 04:08:06 odd Apr 24 04:08:14 what's the phone number? Apr 24 04:08:21 'R.java was modified manually! Reverting to generated version!' how can I stop eclipse from doing that when I ant build? Apr 24 04:08:30 vadi2, don't modify R.java manuallyu Apr 24 04:08:32 7607058888 Apr 24 04:08:45 but when i used one of my voip numbers, it said "cannot find caller id for..." Apr 24 04:09:01 should say "MAC, MATTY" Apr 24 04:09:37 vadi2, either that or your adt and sdk versions don't match... Apr 24 04:10:46 readme: games i think are so much more profitable these days Apr 24 04:11:03 canadiancow: if I send you another build that logs stacktraces and stuff, would you mind running that one? Apr 24 04:11:18 sure Apr 24 04:12:46 you are the first to try from canada Apr 24 04:12:54 maybe it has something to do with the way phone numbers are sent Apr 24 04:13:21 well, i know my voip number doesnt have any caller id assoicated Apr 24 04:13:27 maybe my toll free number does...lemme try that Apr 24 04:13:29 pfn: it only says that when I ant build, and my adt/sdks are latest Apr 24 04:13:34 but that other number you gave me is supposed to be "MATTY, MAC" Apr 24 04:13:39 maybe it was just a timeout on the connection Apr 24 04:13:40 vadi2, who cares then, if you aren't modifying it Apr 24 04:13:51 7607058888 Apr 24 04:14:00 as long as it doesn't break things, red text is usually bad... Apr 24 04:14:35 man, sdk r19 is out already? Apr 24 04:14:42 crazy Apr 24 04:15:48 Technodrome, a good game takes a lot of time to polish... Apr 24 04:16:06 pfn: i'm really a vector artist Apr 24 04:16:08 wow im dumb Apr 24 04:16:12 i have two active cell phoens in front of me Apr 24 04:16:13 i program as well but yea Apr 24 04:16:16 and im fucking around with voip shit Apr 24 04:16:21 canadiancow: haha Apr 24 04:16:32 i filled my voicemail up with music playing with twilio Apr 24 04:16:35 and i didn't delete it for a week Apr 24 04:16:42 * t0mless tips canadiancow and fleeeees Apr 24 04:16:50 that one said "unavailable" :( Apr 24 04:17:12 "supports canada" my ass :( Apr 24 04:17:15 the #s should print the text returned by curl https://api.opencnam.com/v1/phone/7607058888 Apr 24 04:17:34 it has canadian numbers. I think the way the numbers are being sent to phones is a different format in canada. Apr 24 04:17:41 it "has" canadian numbers? Apr 24 04:17:44 yeah. Apr 24 04:17:46 the api is returning nothing for any canadian number i try/ Apr 24 04:17:47 the api Apr 24 04:17:53 what was that MATTY, MAC one Apr 24 04:17:57 google Apr 24 04:18:00 gmail web interface Apr 24 04:18:02 "call phone" Apr 24 04:18:02 oh, that wasn't canada? Apr 24 04:18:06 no Apr 24 04:18:20 the canadian ones have all been "cannot find" Apr 24 04:18:23 and the api is returning nothing Apr 24 04:18:42 I'll try a couple. I did before and I got back data. Apr 24 04:19:02 im getting nothing for any nubmer in my address book Apr 24 04:19:26 hm, maybe I'll have to drop "canada support" for a bit. Apr 24 04:19:29 http://i.qkme.me/3ox9xg.jpg Apr 24 04:20:29 ugh, I wish ios devices had a chrome2phone kinda thing Apr 24 04:20:38 Lol. Apr 24 04:20:44 pos Apr 24 04:20:44 That's way to much freedom. Apr 24 04:20:48 canadiancow: try curl https://api.opencnam.com/v1/phone/6139924793 Apr 24 04:21:01 PARLIAMENT CANA Apr 24 04:21:11 they have the parliament! Apr 24 04:21:15 but...im trying numbers i actually care about :( Apr 24 04:21:46 canadiancow: yeah, i'm thinking of ways to resolve that. my overall strategy involves other sources of data. Apr 24 04:21:56 another app asks people to submit their contacts, in exchange for free service. Apr 24 04:21:56 canada411.com :P Apr 24 04:21:58 i might just do all the art and subcontract the programming hmmm Apr 24 04:22:23 is this whole, writing games in html ever going to take off? I noticed cut the rope did some sort of html / js version Apr 24 04:22:33 although that doesn't help the mobile situation Apr 24 04:23:11 canadiancow: ok, I'll work on canada support. I'm sorry it didn't have enough stuff. Apr 24 04:23:22 heh no worries Apr 24 04:23:24 I need to use other apis/data Apr 24 04:23:26 i get enough US calls too Apr 24 04:23:50 anyway, expect an update soon. because I'm working on it all week :) Apr 24 04:23:55 probably tomorrow Apr 24 04:27:37 is there a shorter or more efficient way to get lots of string resources than 'context.getString(R.string.blah);' for each one? Apr 24 04:28:30 no Apr 24 04:28:36 use a loop or something Apr 24 04:30:42 lol Apr 24 04:34:49 im actually really starting to hate programming Apr 24 04:37:51 or use guava and a Lists.transform call Apr 24 04:38:04 guava's pretty nice... too bad it's still java ;-) Apr 24 04:38:44 jeppy: you could use roboguice Apr 24 04:38:59 but then you'll make them all instance level, and it's kinda ugly Apr 24 04:39:40 no, i was just doing a sanity check Apr 24 04:42:02 a guava transform would be pretty easy Apr 24 04:43:02 Lists.transform(Arrays.asList(R.string.a, R.string.b, R.string.c, R.string.d), new Function() { @Override public String apply(Integer in) { return context.getString(in); }); Apr 24 04:43:07 throw in another } Apr 24 04:43:19 hooray for lambda syntax in java Apr 24 04:43:33 Apr 24 04:55:24 Does anyone know about android hid-*.c files? how do you handle device id's? Apr 24 04:59:47 what is the preferred way to create utility functions available to all activities? Apr 24 05:03:20 morfic: I usually make a public final class, with public static methods that take Context as first parameter Apr 24 05:03:27 thats if the methods need a context and are stateless Apr 24 05:03:43 otherwise you might want to just make a POJO or a method with whatever parameters you require Apr 24 05:07:13 what i tried worked.....until it got messy, in essence you are saying "don't extend anything", you gave me enough to check into undoing this before i end up duplicating more code that just bit me, fix one getDevice() and wonder why 2 out of 3 checks worked correctly, until it dawned on me Apr 24 05:16:14 you only should use inheritance when what you are making is-a what you are extending. Apr 24 05:16:23 Like, you're making a corvette, from a car Apr 24 05:16:30 Is there a variable ant can use to check if it's making a debug or release build? Apr 24 05:17:00 vadi2: not sure but you can run it as ant debug | ant release Apr 24 05:17:06 and it will use the first cmdline param. Apr 24 05:17:37 Can you explain that a bit more? Apr 24 05:17:55 are you familiar with command line arguments? Apr 24 05:18:18 Anyone have a M9 or MEIZU MX? Apr 24 05:18:24 Well, which part of them here Apr 24 05:18:30 vadi2: argv etc Apr 24 05:18:34 Ok Apr 24 05:18:49 I'm not sure how to access them in ant's targets though Apr 24 05:18:58 oh, are you writing some kind of script? Apr 24 05:19:06 you want to do something different for debug/release? Apr 24 05:19:20 Yeah Apr 24 05:19:59 I've tried '', but that does not seem to work, it goes off on release as well Apr 24 05:20:07 http://stackoverflow.com/questions/6218452/detecting-build-configuration-debug-or-release-within-ant-script Apr 24 05:20:30 Yep heh, didn't work. My sdk does not have a main_rules.xml file in ant/ however Apr 24 05:20:36 hmm Apr 24 05:20:36 Not sure why Apr 24 05:21:02 what if you try with the second answer, ant -D= Apr 24 05:21:08 Im trying to fix the drivers for the eGalax touch screen drivers, do I fix hid-egalax.c or usbtouchscreen.c the device I have connected is through usb. Apr 24 05:21:14 try -Dbuild.mode.debug=true or something. Just a guess. Apr 24 05:22:09 Yeah that worked Apr 24 05:22:18 So just means it's not being set Apr 24 05:22:56 now just create an alias ant_debug="ant -Dbuild.mode.debug=true debug" Apr 24 05:23:08 and ant_release="ant -Dbuild.mode.debug=false release" Apr 24 05:23:21 may be a better way, but that will at least make it less painful to type Apr 24 05:24:44 "A man would do nothing if he waited until he could do it so well that no one could find fault." Apr 24 05:24:55 --john henry newman Apr 24 05:25:44 ha! Apr 24 05:29:24 No clue how are variables passed down to my build.xml. Copied something from the build.xml that's in the SDK, but that didn't work. So I'll go with this. Apr 24 05:29:58 Also that's a pretty good quote. Thanks Apr 24 05:30:06 vadi2: maybe in the property files? Apr 24 05:30:40 Doesn't seem to change Apr 24 05:33:21 SimonVT: trying for a NOA release tonight Apr 24 05:39:29 huh Apr 24 05:39:31 just ant debug Apr 24 05:39:43 and ant release should set those properties Apr 24 05:39:58 vadi2, it got changed into build.xml in a recent sdk Apr 24 05:40:09 ron_frown, hello Apr 24 05:40:17 they didn't work, but -D worked Apr 24 05:40:25 oi Apr 24 05:40:42 I also tried build.is.packaging.debug which I saw from the build.xml, didn't work as I expected Apr 24 05:41:02 maybe the propname is wrong in your script Apr 24 05:45:00 how can you check the supported opengl version? i saw it in the dev pages before but no luck now :\ Apr 24 06:00:32 Hi Apr 24 06:01:17 I'm having a problem with the ndk not having net/if.h if_nameindex Apr 24 06:01:56 Anyone knows if using the codesourcery arm Linux eabi will work? Apr 24 06:11:20 huh Apr 24 06:11:29 JakeWharton you in SF right now or did you fly somewhere? Apr 24 06:11:46 I flew to Pittsburgh on a red-eye very late Thursday Apr 24 06:11:53 flew back Sunday from Nashville Apr 24 06:12:18 there is a SF android user group gathering tomorrow, and apparently HTC is giving away two phones and two tablets Apr 24 06:13:01 where's that? Apr 24 06:13:13 I'm trying to remember where it was last time I went Apr 24 06:13:22 romainguy and chet did a talk about renderscript Apr 24 06:13:53 http://www.sfandroid.org/events/57434952/?eventId=57434952&action=detail Apr 24 06:14:15 I know it's not near bart, had to take bart to civic center and then a bus Apr 24 06:14:22 but if you use clipper card you get a free transfer Apr 24 06:14:39 oh, it's not in the same space Apr 24 06:14:48 well I live between civic center and powell Apr 24 06:14:58 ahh Apr 24 06:15:05 this was when I was living in hayward in the east bay Apr 24 06:15:09 and fuck driving in SF Apr 24 06:15:15 I'd rather bart in anyway Apr 24 06:15:29 haha, for sure Apr 24 06:15:54 yeah this is like 4 blocks away Apr 24 06:16:01 I think it was off hyde last time Apr 24 06:16:06 down by fort mason Apr 24 06:16:29 "HTC on compatibility best practices and how to avoid vendor lock-in" Apr 24 06:16:32 "HTC is updating it's OpenSense SDK with additional APIs …" Apr 24 06:16:37 it's free, get free pizza Apr 24 06:16:38 So... Anyone? Apr 24 06:16:56 avoid vendor lock-in by using proprietary HTC APIs!! Apr 24 06:17:32 LOL Apr 24 06:17:48 I may go, thanks for letting me know Apr 24 06:18:13 how do you handle a chip with the same vendor and device id's but work differently? Apr 24 06:18:18 anyone know where to report samsung specific bugs? Apr 24 06:18:33 my coworker is on the attending list Apr 24 06:18:51 dude Apr 24 06:19:12 I'm telling you Apr 24 06:19:18 HTC is bad news all around Apr 24 06:19:27 HTC is fucked Apr 24 06:19:34 * borillion agrees Apr 24 06:19:51 I've got intimate working knowledge of both their hardware/software Apr 24 06:19:57 their financials sucked, they suck, they are getting fucked from sammy on the high end, and Zuwei/zte on the low end Apr 24 06:20:30 huh? Apr 24 06:20:32 free? Apr 24 06:20:34 I'm hoping to get intimate knowledge of either a phone or a tablet come tomorrow Apr 24 06:20:37 :) Apr 24 06:20:42 saywhat? Apr 24 06:20:54 It doesn't help they release lower end phones to other countries and call them the same :P Apr 24 06:21:10 JakeWharton: what kind of branching scheme do you guys use with git at square ? Apr 24 06:21:18 jake I may end up working up your way afterall Apr 24 06:21:20 for your android product Apr 24 06:21:23 everyone works on branches Apr 24 06:21:27 submit pulls against master Apr 24 06:21:46 so it kinda like git-flow, or something else ? Apr 24 06:21:50 90% work at home 10% in the bay area Apr 24 06:21:54 no way Apr 24 06:22:06 haha Apr 24 06:22:11 not at your company Apr 24 06:22:14 g00s: we always work on master Apr 24 06:22:24 everyone rebases their branch on master before submitting a pull request Apr 24 06:22:48 master is always shippable Apr 24 06:22:57 we have pre-merge CI and post-merge CI Apr 24 06:23:09 wait, you guys work on master, but its always shippable ? Apr 24 06:23:34 yes, we submit pull requests from our topic branches to master Apr 24 06:23:40 ok, i just need to learn more about git; i've never been more confused by a tool in my life Apr 24 06:23:42 :) Apr 24 06:23:44 if i ever started working for a company that used git as a primary source control Apr 24 06:23:50 I'd DEFINITELY need a primer Apr 24 06:23:58 all topic branches are squashed and rebased before sending pull reuqests Apr 24 06:24:29 in other wards Apr 24 06:24:33 JakeWharton: ok, so i was also looking at this http://www.ustwo.co.uk/blog/branching-strategies-with-git/ … but i don't understand why they need to 'cherry pick' rather than just merge from the release back into master Apr 24 06:24:43 dev branches merged into master and then that gets pushed into origin? Apr 24 06:25:08 the pre-merge CI does the merge to master Apr 24 06:25:13 they have a diagram, its pretty simple. i think they make a new branch for each release Apr 24 06:25:49 if it's just you I recommend a dev and master branch Apr 24 06:25:57 master is always the latest release, dev is what you're working from Apr 24 06:26:07 when you release, git checkout master && git merge v1.2.3 Apr 24 06:26:12 ok, so that seems like a degenerate git-flow Apr 24 06:26:27 w/o hot-fix and aux branches Apr 24 06:26:33 git-flow is for 10k+ companies Apr 24 06:26:43 it's extremely tedious and convoluted for small companies Apr 24 06:26:47 or an individual Apr 24 06:27:27 http://scottchacon.com/2011/08/31/github-flow.html Apr 24 06:27:38 ok, but it seems like one must decide what master 'means'. git flow has master as always shippable; each branch out is less stable. this is really old branching design; used in the 90s with clearcase Apr 24 06:27:52 yeah, i saw scotts thing ... Apr 24 06:28:07 I would avoid git-flow like the plague Apr 24 06:28:12 hmm Apr 24 06:28:35 they have scripts and such now; when i heard that it kinda turned me off Apr 24 06:28:45 stuff should be simple to not need scripts :) Apr 24 06:28:53 that's why I do just dev and master branches Apr 24 06:29:15 perhaps a topic branch every now and then which just gets merged into dev when done Apr 24 06:29:23 ok Apr 24 06:29:49 some people just do master + tags Apr 24 06:29:56 but really, what is the difference between what you are describing and git-flow, where you dispense with release & hotfix branches ? Apr 24 06:30:14 you have master and dev, those are the main branches (eternal) in git flow Apr 24 06:30:39 manb Apr 24 06:30:44 I dont know if its typical or not Apr 24 06:30:46 because most people don't maintain old versions Apr 24 06:30:56 but when I check in changes at work I gotta merge it into at least 3 other branches Apr 24 06:31:13 previous companies we had people that would periodically merge x branch into y branch Apr 24 06:31:34 ron_frown: that's not typical Apr 24 06:31:53 * ron_frown shrugs Apr 24 06:31:57 in fact, it's plain wrong. Apr 24 06:31:57 its a pain in the ass is what it is Apr 24 06:32:18 we just changed it so that we don't even have to run the test suite anymore Apr 24 06:32:36 you just develop in IDE, when you're done, push the branch, have it code reviewed, and then the pre-merge CI picks it up Apr 24 06:32:39 so much nicer Apr 24 06:33:14 that is nice pre-merge, i would like to have something like that but no pressing need now with such a small team Apr 24 06:36:43 I'm hoping we can turn it into a Jenkins plugin Apr 24 06:42:31 we have a build server that requires manual kick off a build, by remoting into the machine with windows remote desktop Apr 24 06:42:40 and if someone else happens to remote into that machine while its building Apr 24 06:42:45 so much for that build Apr 24 06:42:48 hehe Apr 24 06:44:02 precisely why I want to go work for a startup Apr 24 06:44:21 at least they tend to want to try and use what makes sense at the time as far as source control/bug tracking Apr 24 06:44:22 etc Apr 24 06:46:11 we have jenkins verify all our pushes to gerrit Apr 24 06:46:15 that works pretty well Apr 24 06:46:31 gerrit needs more work though Apr 24 06:47:24 well we do a lot of .net stuff... and tfs is way way way way better than anything else I've seen Apr 24 06:47:30 I mean for .net stuff =) Apr 24 06:47:45 well really other worlds too Apr 24 07:22:43 I'm in a situation where I need to finish all activities of my application ans quit from the app when the user presses a button. I tries System.exit() and works fine. But I think this is not an optimal way to close an app. What do you suggest for such a functionality? Apr 24 07:23:29 napster: System.exit() is not a solution Apr 24 07:23:54 g00s: It just works but I agree it is not a solution Apr 24 07:24:00 what do you suggest g00s ? Apr 24 07:24:00 napster, finish() all of them? Apr 24 07:24:30 I'm in one activity. I can finish it but how can I call finish with other activities? Apr 24 07:25:27 I need to clear the application activity stack entirely (may be, I'm not sure this is the exact solution) Apr 24 07:25:45 lut4rp: ^^ Apr 24 07:25:49 I'd be curious to know what the point of this i Apr 24 07:25:58 thats not expected behaviour by any means Apr 24 07:26:33 For ex, if you're building Facebook and you want to logout the user and bring them back to the login activity. Apr 24 07:27:13 dude Apr 24 07:27:17 ok Apr 24 07:27:43 new intent start, startactivitynewtask, finish() Apr 24 07:28:01 Or maybe FLAG_ACTIVITY_CLEAR_TOP? Apr 24 07:28:09 I dont know Apr 24 07:28:18 hm Apr 24 07:28:25 lut4rp: How FLAG_ACTIVITY_CLEAR_TOP works? Apr 24 07:28:29 honeslty clearing activity stack the only reliable thing I've seen was to fire off a new intent and finsh() current Apr 24 07:29:11 napster, http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP Apr 24 07:29:49 ok Apr 24 07:30:15 any other suggested workarounds for this? Apr 24 07:32:16 Clear top with Single Task I think is how you want to clear it Apr 24 07:32:28 but I dont remember exactly atm as I'm about to pass out Apr 24 07:36:13 help required on c2dm. i am trying to follow up this tutorial, http://mylifewithandroid.blogspot.in/2010/10/push-service-from-google.html When I open http://localhost:8080 in web browser i can't see my registered username on the list. I have already registered my account to google c2dm. Also when i try to send some message i get an error as "No registration for '-'" . How do I resolve this error? Apr 24 07:36:57 have code in the device to register with your service Apr 24 07:37:24 which code?? Apr 24 07:37:31 it fires an intent which prompts for confirmation and returns a code which you must then post to your server for storage so that your server can later grab that code and send messages with it Apr 24 07:41:50 http://android-developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html Apr 24 07:49:41 hmm. http://www.amazonsupply.com/ Apr 24 07:59:28 t0mless: don't mean to bug you since it seems you're passing out/ passed out, but that last c2dm link you posted had the perfect snip of intent handler code in it. Thank you! Apr 24 08:02:26 I've been at this for 1.5 years and I still think linearlayout orientation should be vertical by default Apr 24 08:02:31 it gets me every single time' Apr 24 08:11:53 yes Apr 24 08:11:54 I agree Apr 24 08:12:08 when do you ever want to put stuff in there horizontally, unless you're nesting it? Apr 24 08:12:20 I guess maybe in landscape Apr 24 08:28:43 hey there, I'm looking for some advice on the best way to use textures in an android game. the game my team is developing uses libgdx and we decided to integrate a texturepacker (which generates a texture atlas). the problem is: performance has suffered dramatically because of that. we use rather big textures (e.g. 2500x512 pixels) and i was wondering if there's a better way to handle this. Apr 24 08:37:44 hmm, http://developers.slashdot.org/story/12/04/23/1928202/software-engineering-is-a-dead-end-career-says-bloomberg Apr 24 08:58:06 A few stupid questions about the android camera... I may end up using an android camera as a programmable camera for an industrial application where a warehouse that stores chiefly paper material wants to photograph the contents of packages which they will store Apr 24 08:59:00 a typical usb web camera is generally limited to 1920x1200 pixels in size and the picture quality, data transfer speed between the camera and pc, and software support leaves something to be desired for Apr 24 08:59:34 is android built up on debian? Apr 24 08:59:38 so it occurred to me that an android phone could be clamped in place, and a mirror could be used to reflect the camera preview from the back of the device to operator's eyes. All pretty low-tech and cheap. Apr 24 08:59:48 everythingWorks: no Apr 24 09:00:34 alankila: i would experiment with camera autofocus with your mirror setup Apr 24 09:00:54 alankila: so? :D Apr 24 09:00:57 use of autofocus is obviously something I have to get working, as the user will not directly interact with the phone Apr 24 09:01:19 the phone will be controlled over usb connection, maybe by nothing more complex than the activity manager command line utility Apr 24 09:02:20 Can I turn screen on programmatically? I assume if I take a screen_bright wakelock, it will turn the screen on Apr 24 09:03:35 oh wait that's deprecated. Anyway, that's probably the way to do it. I then need to understand how the camera is commanded, how to set the region for autofocus, things like that. When I take the picture, I need the PC to notice it and transfer the data. I imagine I'll just dump the files on a folder on filesystem and just scan that, though, so that's not hard Apr 24 09:04:12 ideally I would not have to even write an application of my own to do this, but the official Camera app would lend itself to this kind of scripting. I think I'll have to hack it a bit though. Apr 24 09:04:14 you app needs device administration rights to turn on the screen (at least on 2.3) Apr 24 09:04:27 oh I'll hand it every privilege known to man :-p Apr 24 09:04:45 well, the privileges it needs of course. Apr 24 09:08:26 I'll have to see if the customer OKs the likely cost of the solution first. I think a 5M camera would suffice, but 8M would be better, but couldn't see a cheap phone with more than 5M Apr 24 09:08:39 that was my problem too Apr 24 09:08:47 is there a way to open default gallery app to a specific folder from within my application ? Apr 24 09:09:33 is Service available on 2.1? Apr 24 09:15:21 what is android linux derived from? Apr 24 09:15:27 just the plain kernel? Apr 24 09:16:18 mm. I think I understand how this android camera is to be used. Apr 24 09:17:06 the API is better thought out than I even dared hope Apr 24 09:17:12 everythingWorks: you might want to rephrase that question Apr 24 09:17:39 hoangtran: a) Service has *always* been available... and b) if you look, every Android API tells you in the reference docs when it was added Apr 24 09:17:41 everythingWorks: it's a custom operating system with some typical open-source bits, but almost everything is customized Apr 24 09:19:03 everythingWorks: kernel has its own patches, the usual userspace components are either simplified to nothing or just plain diffferent, and the system services are managed by software written specifically for android in the most part Apr 24 09:34:55 ok, what's the simplest option to have a function called in the UI thread regularly as long as the activity lives? Apr 24 09:36:10 tapas: postDelayed on any view maybe Apr 24 09:37:00 or maybe on a Handler, that should also work Apr 24 09:38:43 Isn't it a bit strange that there's not many android app that need to talk to a soap webservice? Apr 24 09:39:20 hoangtran: I've written one. But I think soap just isn't used that lot anymore. I guess people got sick of the bullshit that is inherent in any industry specification Apr 24 09:39:51 soap is really just oap Apr 24 09:39:51 soap used to be nice and simple. Today it's a monster that is only barely compatible between various servers and clients, it seems. Apr 24 09:40:19 I'm hoping that the same can never happen to json Apr 24 09:40:36 json should live for a while, due to the fact that it is seamless with javascript which is kind of uprising Apr 24 09:41:39 I found out to my amusement that json implementations are to be represent integer values as doubles though. This is an interesting consequence of json's javascript roots Apr 24 09:41:57 lunacy Apr 24 09:42:10 I expect implementors will disagree Apr 24 09:42:54 my company chose .NET webservice as the serverside monster, every mobile app talk to it (android, bb, iphone, ...) Apr 24 09:43:48 should I encourage my boss to drop all and rebuild all again :) Apr 24 09:43:53 hoangtran: how is that working out for you guys ? Apr 24 09:44:02 http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/json/client/JSONValue.html is one of those implementations that has chosen to follow the spec though... no integers for you Apr 24 09:44:33 no problem unless you need 64-bit integers though. 32-bit integers have exact representations as doubles. Apr 24 09:45:07 with several servers, it can stand, the bottleneck is the SQL Server db Apr 24 09:45:24 hoangtran: eh, whatever, you just talk SOAP, but there's no good libraries for it that I've seen. Last time I did it, I gloriously concatenated strings into xml documents and used HttpConnection to send them Apr 24 09:45:37 or whatever the java.net stuff was Apr 24 09:45:44 maybe there's a proprietary lib Apr 24 09:45:56 nsoftware appears to make one, but I have not tried it. Apr 24 09:46:07 I did work with their xmpp component, which seemed to be a mangled version of smack Apr 24 09:46:15 (they forgot to remove log statements from smack) Apr 24 09:48:17 alankila: we're facing a bug that the request came to server but client got exception, ksoap should be rename to kill-soap Apr 24 09:48:49 * alankila shrugs. All these libraries suck. Apr 24 09:49:32 readme: thank you for the name, looking for another lib is one of my solutions, the other one is to write my own :( Apr 24 09:49:57 they put so much bullshit on top of the simple mechanic of sending xml document over http protocol that it's a wonder they work at all, and when they do not, it takes 1/2 week to find out why. Apr 24 09:50:50 1/2 week is still a cheap price :) Apr 24 09:52:59 SOAP SUUUUUCKS. Apr 24 09:53:08 I really hate how vendors change the datepicker widget Apr 24 09:53:30 Only reason to use it is under the threat of a gun :-/ Apr 24 09:54:15 Mikellip: our bosses have guns Apr 24 09:54:50 I've been forced to use it 3 times ...and every time it's been hell Apr 24 09:55:21 Luckily some I could do in PHP, Pear has nice modules for it Apr 24 09:55:31 some in PHP* Apr 24 09:55:41 * hoangtran recall the days when he had to use Infragistics controls ... Apr 24 10:45:08 I have an activity class that utilizes a customized surface view (I added gestures) and I want to utilize both gestures and click events, And I want to re-use my class. Is there a way to have a custom surface view extended by an activity that would override specific methods of the gesture recognizer ? Apr 24 10:56:21 Anyone home ? Apr 24 10:57:33 @work Apr 24 11:39:48 Hi all Apr 24 11:40:51 hi MarcAurelio Apr 24 11:41:20 oh readme is here. :) Apr 24 11:41:30 surprised? Apr 24 11:43:05 no, you are day for day here. I also. Apr 24 11:58:13 hello all Apr 24 11:59:38 how do I get the layout class of a item in a listView Apr 24 11:59:52 I have some functions I want to call programmatically Apr 24 12:00:12 I'm using a custom adapter layout for my listView Apr 24 12:00:34 pen: what do you mean layout class Apr 24 12:00:49 you can get the root view of the item in each row Apr 24 12:00:52 ali__: like a linearlayout for the adapter Apr 24 12:01:01 ali__: layout for the row Apr 24 12:01:14 is there any way to change the behaiviour (override) the method of an already instansiated class? Apr 24 12:01:23 in onItemClick listener you can get the root view Apr 24 12:01:35 use that to find the view using findViewById Apr 24 12:01:53 ali__: but I have some functions in that implementation, I want to call it before displaying it to the users so some rows are checked or selected before it is shown Apr 24 12:02:14 just do that in the adapter Apr 24 12:02:16 in getview Apr 24 12:02:44 joelmob: nope Apr 24 12:03:33 ali__: I dont want to override getView, I want to use this for other places which I don't necessary want to do that Apr 24 12:03:57 pen: I cant understand what you want exactly Apr 24 12:04:20 ali__: http://stackoverflow.com/questions/4842349/android-listview-with-radiobutton-checkbox-in-singlechoice-mode-and-a-custom-row Apr 24 12:04:26 ali__: if you go to the answer by dbm Apr 24 12:04:40 ali__: that's the listView I'm using with some custom adapter classes Apr 24 12:04:54 ali__: I want to call the function in that class for specific rows, how do I do that? Apr 24 12:05:06 ali__: like the toggle() Apr 24 12:07:43 ali__: in other words, I want some of the items checked before the list is presented to the user Apr 24 12:08:22 why is that difficult Apr 24 12:08:38 which ever items u want checked call setChecked(true) on them Apr 24 12:08:39 because reading is for nerds Apr 24 12:09:11 he's too cool for manual pages or documentation Apr 24 12:09:31 ali__: because it doesn't seemed to work. I did listView.getChildAt(i).setChecked(true) Apr 24 12:10:00 that will return a view Apr 24 12:10:16 cast that into Checkable Apr 24 12:10:38 hmm, really? I can do that? :o Apr 24 12:12:42 hello Apr 24 12:12:56 ali__: I'm getting NullPointerException for the view Apr 24 12:13:02 some one did some test with x86 emu and hw acceleration? Apr 24 12:13:13 ALoGeNo: yeah Apr 24 12:13:28 ali__: I don't know why getChildAt would return null, I'm iterating through the same size as the data I gave to adapter Apr 24 12:13:37 ALoGeNo: it needs a lot of memory Apr 24 12:13:45 hey ali__ wich version? 4..0.3? Apr 24 12:13:50 yeah Apr 24 12:13:55 or 2.3.7? Apr 24 12:14:03 4.0.3 Apr 24 12:14:05 oh nice you build your own? Apr 24 12:14:11 yeah Apr 24 12:14:32 using the intel instructions i guess? Apr 24 12:14:59 without them it would not be possible Apr 24 12:15:04 but I m not that impressed with it Apr 24 12:15:24 the performance has definitely increased considerabably Apr 24 12:15:42 im using android-x86 port, i guess that this feature needs to be implemented or something.. but we are in 4.0.4 Apr 24 12:17:14 I've got an android-x86 image from buildroid.org that works nice in virtualbox w/ ethernet support Apr 24 12:17:22 what did you do to run yours, ali? you built your own? Apr 24 12:17:39 (its 4.0) Apr 24 12:17:59 hi Apr 24 12:18:17 how to asset if res/drawable/myimage.png exists ? Apr 24 12:18:25 check Apr 24 12:18:29 hey readme nice to know that i have that build too, you was compared both? Apr 24 12:18:36 maxagaz: if it didn't exist it wouldn't be generated in R Apr 24 12:18:45 buildroid image works pretty well Apr 24 12:19:06 i tried a couple and only found the buildroid one suitable Apr 24 12:19:16 anybody a idea how I use a TextView as a Button ? I want something like the Linkify, but for intents. (Linkify can only be used for email,phone-numbers and so on..) Apr 24 12:19:19 readme: I still need to check if it exists, else I would download it Apr 24 12:19:28 maxagaz: that stuff is known at compile time Apr 24 12:19:38 checking if it exists at runtime doesn't make sense Apr 24 12:20:05 readme, i have made a better optimized gapps pack more stable if you want :) Apr 24 12:20:32 ALoGeNo: sounds awesome, link? Apr 24 12:21:31 readme: how should I do then with my bunch of meteo files ? Apr 24 12:21:43 i was cleaned duplicated apk's and deleted som arm stuff too, i did add some extra apks like android terminal and superuser Apr 24 12:21:47 readme: they are all in my res/drawable, but some are missing Apr 24 12:22:23 i was add a moded build.prop to force google to see our emu like eeepc Apr 24 12:22:34 maxagaz: if you have an id for a drawable: R.drawable.foo, and there is NO image for R.drawable.foo, and you didn't do something wrong, then that is a bug. Apr 24 12:22:54 maxagaz: i have a feeling you are confused about how resources work Apr 24 12:23:10 readme: I understand, but then how should deal with that kind of resources Apr 24 12:23:13 ? Apr 24 12:23:39 can i do a little spam of my blog? Apr 24 12:23:41 maxagaz: what is the condition in which the image is "not there"? Apr 24 12:23:52 or just paste the file link ;) ? Apr 24 12:24:14 readme, ? Apr 24 12:24:28 is allow to paste links here? Apr 24 12:24:41 okey i hope you dont ban me.. XD Apr 24 12:24:45 http://android-x86.sceners.org/?p=176 Apr 24 12:25:03 ALoGeNo: this place is liberal. you'd have to do something genuinely stupid to get banned. Apr 24 12:25:17 just click the tiny gapps image readme Apr 24 12:25:28 ali__: doesn't work Apr 24 12:25:46 http://depositfiles.com/files/h6sr0vxlv Apr 24 12:25:50 got it Apr 24 12:25:52 there it is Apr 24 12:25:58 readme: the way it works now is that it downloads the meteo icon from google weather api address, but sometimes the file doesn't exist, to reduce such case, I want to embed as much icons as I can in the app Apr 24 12:26:18 you mean the file doesn't exist on the server? Apr 24 12:26:48 readme: (which is about 25 icons) Apr 24 12:26:52 readme, dont crash than much like the anther one, just set automatic updates in market, and you will get google play Apr 24 12:27:01 readme: yes, sometimes, it doesn't exist Apr 24 12:27:03 maxagaz: Drawable d = context.getResources().getDrawable(R.drawable.my_icon); Apr 24 12:27:12 that's how you get your icon from resources Apr 24 12:27:22 when you are in the market you will see just 1 app by category, dont worry, just look for apps doing a search and apps will show Apr 24 12:27:23 ;) Apr 24 12:28:00 ALoGeNo: awesome.. you should def. keep google play on the dl here :) Apr 24 12:28:22 not sure of the ops opinion on uh, piracy Apr 24 12:28:28 readme: my_icon is known from the xml of the api Apr 24 12:28:38 maxagaz: then I don't really know what you are asking Apr 24 12:28:46 can you try to rephrase what you want Apr 24 12:28:47 oh danm yeah... sorry Apr 24 12:29:13 i dont end to have clean what happend with that and legality.. Apr 24 12:29:13 that is ilegal? Apr 24 12:29:32 it is against TOS Apr 24 12:29:50 yeah i know Apr 24 12:30:05 ok, piracy was a stretch :) Apr 24 12:30:08 but this is not for money still ilegal? Apr 24 12:30:12 anyway, thanks for the image. this is excellent. Apr 24 12:30:22 ianal Apr 24 12:30:29 np happy to help :) Apr 24 12:32:42 readme: ok, I will try... I need to display a weather icon, I get its name and path from google weather api, but sometimes I get a file not found error, so I got a bunch of these icons that I would like to embed in the app, so no need to download them, but the missing icons, it will still try to download them to the files folder and use it Apr 24 12:33:09 readme, then its ilegal to have that link of deposit in my blog? Apr 24 12:34:39 any tips on how to make imageview use all the available space left on a layout but still be always square (and fit the image inside that square)? Apr 24 12:34:41 readme: so, I'd need something like: if (my_icon is already in my "assets") { display my_icon } else { download it } else { no icon can be displayed} Apr 24 12:35:13 Hi, I need some class sun.security.provider.certpath.SunCertBuilderException, is it available for Android ? Apr 24 12:35:55 superkick Apr 24 12:38:05 found it, in rt.jar Apr 24 12:40:35 maxagaz: well, downloading icons from the web and caching them will not put them in assets Apr 24 12:40:48 readme: maybe I should copy all these icons from resources to the files folder where it's normally downloaded Apr 24 12:40:51 maxagaz: read the storage guide to see how to store files Apr 24 12:41:00 you can either use internal or external storage Apr 24 12:42:25 you could also store them as blobs, but I'm really just mentioning that for fun. Apr 24 12:42:31 readme: for the moment, it works by just downloading them into com.myapp/files Apr 24 12:42:42 I really hope you aren't hardcoding that Apr 24 12:43:05 anyway that sounds like a fine solution. Apr 24 12:43:26 readme: I don't want to hardcode that too Apr 24 12:43:29 you should also store the path to each file, so you don't have to do any directory traversal crap Apr 24 12:43:39 maybe a sqlite table, or shared preferences Apr 24 12:44:18 give each icon a unique id that is permanent and doesn't change between builds incase you update the app and preserve the old data. Apr 24 12:44:26 that is don't use R.id Apr 24 12:44:40 make something that maps your ID to either R.drawable or your path, depending on whether your path exists Apr 24 12:49:16 readme: mapping the id sounds a good solution Apr 24 12:49:29 * Hiraghm sighs Apr 24 12:49:30 Is it possible to create a style extending the holo.light.darkactionbar Theme for my searchview widget? because the style for that theme doesn't exist. Apr 24 12:50:23 Is it possible to create a style extending the holo.light.darkactionbar Theme for my searchview widget? because the style for that theme doesn't exist. Apr 24 12:53:59 maxagaz: just make sure you don't use the generated ids from R as your "mapping id" because every build changes them and it will break your app on updates if you do it that way. Apr 24 12:54:21 that should be mapped to, not from Apr 24 12:55:21 readme: I'm following the post #2 here: http://androidforums.com/developer-101/119915-loading-resources-variable.html Apr 24 12:55:32 that's cool. i'm not really at liberty to read it Apr 24 12:55:36 i'm working on something Apr 24 12:56:30 readme: that's okay, thanks for your help, I think it's what your advising me Apr 24 12:57:11 to do Apr 24 13:03:04 readme: I think this is actually what I needed: int drawableID = getResources().getIdentifier("drawableName", "drawable", getPackageName()); Apr 24 13:03:46 without looking at that I would be willing to wager it uses reflection Apr 24 13:04:10 which is something you should not do heavily at runtime, so make sure you keep that to a minimum, do it once, then not again. Apr 24 13:06:18 how can I implement a custom dialog for my itemizedoverlay? Apr 24 13:06:33 Is it possible to create a style extending the holo.light.darkactionbar Theme for my searchview widget? because the style for that theme doesn't exist. Apr 24 13:07:03 I can't use findViewById in there, so the examples I've found don't work. Apr 24 13:07:17 no not really Apr 24 13:07:26 the problem is that i am using tabs Apr 24 13:07:45 and when i inflate from a resource it doesn't work properly Apr 24 13:08:33 i got a test version what shows whats wrong whith that here http://code.google.com/p/searchview-test/downloads/list Apr 24 13:10:38 if some one has time for me can anyone tell me why i get these errors http://code.google.com/p/searchview-test/downloads/list in my project Apr 24 13:10:44 the errors are in the discription Apr 24 13:12:16 if some one has time for me can anyone tell me why i get these errors http://code.google.com/p/searchview-test/downloads/list in my project the errors are in the discription Apr 24 13:14:41 Lark125 do you have like a link to the error Apr 24 13:16:46 xorgate there is an eclipse project you can download here Apr 24 13:16:50 yeah im not gonna do that Apr 24 13:17:00 if you want help at least make it easy for us Apr 24 13:17:17 alright how would you wanna do it Apr 24 13:17:29 you link a pastebin with the error Apr 24 13:18:29 well thats the problem it aren't errors but i got like a blank listfragment and such Apr 24 13:19:59 odd Apr 24 13:20:16 hmh, android is pretty cool. Not only is it possible to wake the screen up with a suitable wakelock, it's also possible to bypass the keyguard Apr 24 13:20:25 *grin* Apr 24 13:20:35 yes verry and also because i use tabs when i search something and i change tab the search query is taken to the other searchview Apr 24 13:21:41 readme: okay, but it works like a charm :) Apr 24 13:23:20 xorgate do you know how i can resolve that Apr 24 13:24:07 Lark125 your question is rather vague Apr 24 13:24:13 isolate your problem Apr 24 13:24:23 alright sorry for that than Apr 24 13:24:27 find the first thing that doesn't go as you expect Apr 24 13:24:55 well i got a android 4.03 application where i have 3 tabs which are listfragments Apr 24 13:25:20 these listfragments have optionsmenus Apr 24 13:25:43 the i set a searchview inflated from a xml Apr 24 13:26:42 but when i swich tabs the next listfragments seems empty except when i press on the searchview button and when i press backspace then the list data returns Apr 24 13:27:18 also when i search in 1 searchview it works normally but when i switch tabs it takes the searched querry to my next list Apr 24 13:27:44 xorgate hope that helps Apr 24 13:29:17 is there something like ronOnUIThread for services? Apr 24 13:29:23 andftp is an awful app Apr 24 13:29:52 Lark125 well i gotta go but post the relevant sourcecode in a pastebin and link it here Apr 24 13:29:59 or maybe i'm thinking about this the wrong way again: Apr 24 13:30:08 make it easy and clear for others what your problem is Apr 24 13:30:12 i would like my app to check regularly for notifications from a game server Apr 24 13:30:37 no push? Apr 24 13:31:08 storkme: well that would require me to keep a connection open at all times, no? Apr 24 13:31:19 or is there already a push service available? Apr 24 13:31:28 tapas: does your service have an interface? Apr 24 13:31:56 wongk: you mean in the GUI-sense? Apr 24 13:32:06 from an OOP POV it certainly does have one :D Apr 24 13:32:17 yes, a user interface Apr 24 13:32:36 xorgate here is the souce code of 1 of the 3 fragments they are all almost the same http://pastebin.com/gHN1jbjX Apr 24 13:32:42 wongk: no.. it only sends notifications to the status bar when something's up Apr 24 13:32:55 How do I increase the size of data partition on android ? when i flashed using README's inst the data partition is still 503 mb even though my sdcard is 8 gb Apr 24 13:32:58 tapas: then why do you need to run anything on the UI thread? Apr 24 13:33:04 i'm using pandaboard Apr 24 13:33:10 and that's where my question comes in. I use an AsyncTask in the service and sleep in it until a timeout.. Apr 24 13:33:36 wongk: sending the notification fails though and it's somewhat mysterious to me why :D Apr 24 13:33:37 tapas: you sleep in the asynctask, you mean? Apr 24 13:33:54 tapas; look at c2dm Apr 24 13:34:16 tapas: you do not need to be on the ui thread to send a notification Apr 24 13:34:36 ok.. this is the error i see in the log: D/class com.uandi.freispiel_lib.services.NotificationService(3630): Something went wrong sleeping: contentView required: pkg=com.uandi.freispiel_app id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0) Apr 24 13:34:47 forget the sleeping part :D Apr 24 13:35:41 storkme: ok, saving that google search for later :D Apr 24 13:36:20 hi :) Apr 24 13:36:29 nimesh_accenture: #android-root Apr 24 13:36:36 oh ok.. The Notification needs a contentView Apr 24 13:36:52 Do you any good memory leak software ? i tried valgrind but it crash Apr 24 13:38:11 how would you call a class which gathers a set of callbacks? Apr 24 13:43:28 xorgate any luck with that code?? Apr 24 13:46:54 Is it safe to temporarily unpublish my app for the day to fix a bug, or will I lose some of my stats, etc? Apr 24 13:47:07 it is safe Apr 24 13:47:22 excellent, now I can sleep without fear of one star Apr 24 13:48:08 What will users who have it installed see if they go back to it? Apr 24 13:48:46 it will just disappear from the Market Apr 24 13:49:19 users who have it installed can still run it of course Apr 24 13:50:13 Hrm. My phone is locked up (yet again), with the UI frozen at whatever it was doing. Now, I'm in with "adb shell", and I'm trying to figure out what tasks I can poke at to get this unfrozen. Apr 24 13:50:29 To read data from a Sensor through Bluetooth Android and analyze each packet that comes from that sensor, what is the best "way" to implement the reading? Is it a InputStream? (Phone and Sensor are connected viz bluetooth with an active socket, Sensor receive requests and answers them, Phone receives and requests) - They both speak in hexadecimal, sending byte[] to each other. Apr 24 13:50:33 A "reboot" will certainly fix it - I've been doing that, but I'd like to start to get to the bottom of what is causign this. Apr 24 13:50:55 Tsukaza: Is there no library for it? Apr 24 13:51:31 Tsukaza: use a state machine Apr 24 13:51:33 rking: Library? What do you mean? Apr 24 13:51:44 readme: we do use a state machine Apr 24 13:51:45 Tsukaza: do you know the protocol of the bluetooth device? Apr 24 13:51:53 well, that's how I did it for a bunch of devices :) Apr 24 13:51:54 it works nicely. Apr 24 13:52:05 readme: im using the chat provided by android developers Apr 24 13:52:12 Tsukaza: Wait, maybe you are already - "Bluetooth Android" must be an API for it,already. Apr 24 13:52:33 There /has/ to be a way to figure out what is locking up this UI. Apr 24 13:52:51 Is there a shell command that will show the app stack? Apr 24 13:53:04 Im using Bluetooth Chat from Android dev., atm using the Connect and Connected Thread to communicate the sensor with the phone. Apr 24 13:53:51 The communication works, they are connected and they share msgs, but when it comes to analyze each byte individually, it blows... Sometimes it works, and other it doesn't... I was guessing it can be the "way" I am reading the bytes coming from the sensor Apr 24 13:54:21 Hrm. Apr 24 13:54:27 Tsukaza: sounds like it. Apr 24 13:54:30 Tsukaza: So you are modifying the Bluetooth Chat app? Apr 24 13:54:49 Not really, im using the app And adding a little extra :) Apr 24 13:54:58 you should be getting consistent ordering from the BT stack, I'd focus on how you interpret things. Also remember a byte in java is signed, and this screws up a lot of assumptions coming from C Apr 24 13:55:00 Tsukaza: Bidirectional I/O is really hard. You end up getting hung waiting on a read while the other side is doing the same thing, et.c Apr 24 13:55:53 I interpret the incoming messages inside the Handler provided, where they cast it to byte[] (the msg.obj) Apr 24 13:56:05 then I pass it to a queue and start processing that queue in a separate Thread Apr 24 13:56:18 Tsukaza: sounds like you just hacked some code to fit your purpose without completely understanding it Apr 24 13:56:27 maybe that is the problem Apr 24 13:56:31 write it from scratch Apr 24 13:57:15 readme: I do understand the code, the problem here must be the way I interpret the incoming data Apr 24 13:57:26 why all the handlers and queues then Apr 24 13:57:30 you don't need all that, you know Apr 24 13:57:38 The Handler was provided already Apr 24 13:57:47 why is this even on the table if the problem you are solving is that your state machine is broken Apr 24 13:57:49 the Queue is a request from those who asked me to do this... so :/ Apr 24 13:58:05 the queue is good, but lets keep the problems separated Apr 24 13:58:43 readme: got a preferred rfcomm chipset or are you talking to random devices and have to deal w/ whatever Apr 24 13:59:15 the state machine is pretty simple and obvious, I doubt it is broken. I performed several debugs and the problem is the data that comes (sometimes) all messed up. Apr 24 13:59:28 dragorn: i have talked to the Shimmer accelerometer/gyroscope I & II, Nonyn pulse oximiter, Zephyr HxM bt and serialio scanfob2002 Apr 24 13:59:36 define "all messed up" Apr 24 13:59:43 not sure of the chipsets on them, I didn't work at that level. Apr 24 13:59:48 readme: ah cool, so dealing w/ other peoples choices for rfcomm Apr 24 14:00:01 each time the pitfall was always connecting the device :) Apr 24 14:00:12 bluetooth is a pita to pair devices etc. Apr 24 14:00:13 quite pleased with myself right now.. just wandered over to starbucks and downloaded like 600mb of music over their wifi from my torrent box to my phone using the AndFTP app (it's freakin awful, but it does the job) Apr 24 14:00:17 Hrm, I might be close to the problem: W/SharedBufferStack( 7063): waitForCondition(LockCondition) timed out (identity=476, status=0). CPU may be pegged. trying again. Apr 24 14:00:17 readme: I'm spinning some of my own boards, right now using a really cheap crapo rfcomm module, but it's cheap. and works in tests. Apr 24 14:00:32 dragorn: awesome, any use cases? Apr 24 14:00:42 readme: zigbee sensor integration Apr 24 14:00:47 oh, great Apr 24 14:00:50 dragorn: The packet must be: 0xFC(Start) 0x00, 0x02, 0x03, 0x0B, 0x0A 0x0D (End Packet) Apr 24 14:00:51 readme: zigbee out one side, USB and bluetooth on the other Apr 24 14:00:53 I'm seeing that message a thousand times from "adb logcat". I went to a shell and did variations of "kill 7063", and the process did not go away, but the stream of errors stopped. Apr 24 14:01:25 readme: w/ a lipo battery and charger circuit for USB charging. Should get ~14-20 hours on a $9 battery Apr 24 14:01:49 It "finds" the start, goes thourgh the packet, and sometimes it fails because the End Packet is not present Apr 24 14:02:19 Tsukaza: sounds like your parser can't handle nonblocking io. If you don't find the end of a packet you need to detect that condition and back up and wait for another io completion Apr 24 14:02:23 and see if the packet is filled then Apr 24 14:02:52 if (find end packet) { do_stuff_with_packet } // else do nothing Apr 24 14:02:55 or warn Apr 24 14:02:57 There is absolutely nothing in async io that would guarantee that you'd get a complete packet per read op Apr 24 14:03:32 readme: http://durandal.kismetwireless.net/~dragorn/images/kisbee-02-00B.png Apr 24 14:04:05 dragorn: heiroglyphics to me. Apr 24 14:04:14 readme: using the bt041 module right now, tho all I need to route is tx, rx, and power, so I can use whatever ends up being consistently cheapest if I go for larger production runs... $6-$7 for a rfcomm w/ self-contained rf plane Apr 24 14:04:35 readme: ultimately it'll link up w/ kismet, etc on the phone for positional logging, device discovery, etc Apr 24 14:04:40 are you a professional EE/CE dragorn Apr 24 14:05:04 readme: not at all, I suck at EE stuff. I'm a code monkey ;P Apr 24 14:05:16 readme: it just falls into the category of "nothing does what I need, guess I have to make it." Apr 24 14:05:17 but you designed that pcb? Apr 24 14:05:56 can I cast a byte to unsigned using - & 0xff ?? Apr 24 14:05:59 readme: jackass-ee is easy now; you can get cad/eda sw that's pretty solid for free (kicad), you can get prototype quantities of PCBs made for nearly dirt cheap Apr 24 14:06:12 byte b = 0xFA & 0xff (example) Apr 24 14:06:49 just use int Apr 24 14:07:01 readme: that's the third rev of the design, finally getting it down to manageable assembly time and parts cost, it's probably $30 cheaper per board than the first design Apr 24 14:09:02 I am waiting on a raspberry pi Apr 24 14:09:14 not sure what i'll do with it, though. maybe learn arm. Apr 24 14:09:23 me too Apr 24 14:09:35 eh; not much to learn at the cpu level on it since it runs linux already. crosscompile and go. Apr 24 14:09:57 if you want to get into arm stuff directly check out uh... lpcxpresso I think it is Apr 24 14:10:14 yeah. that's the NXP LPC cortex experiment board Apr 24 14:10:18 I just want to learn an assembler and arm is the logical choice. Apr 24 14:10:53 also the development tools will need to be on linux Apr 24 14:10:59 because there's no freaking way I'm using windows. Apr 24 14:11:07 you can do LPC from linux; I do Apr 24 14:11:16 oh cool Apr 24 14:11:39 tho most micros now are big enough you don't need to worry about doing assembler except for specific minor things Apr 24 14:11:53 not that it's not good to learn, but you're probably never going to need it Apr 24 14:12:56 I need to get a more complete understanding. Apr 24 14:13:36 can someone look at this sample code where i am using searchviews but i get some errors like when i am switching from tabs the listfragment is empty and when i am searching for something in one tab the searched query is taken over to the next tab http://code.google.com/p/searchview-test/ Apr 24 14:18:27 can someone look at this sample code where i am using searchviews but i get some errors like when i am switching from tabs the listfragment is empty and when i am searching for something in one tab the searched query is taken over to the next tab http://code.google.com/p/searchview-test/ Apr 24 14:19:07 any luck? Apr 24 14:19:25 no not yet Apr 24 14:19:36 but i have now put the whole code of an sample project online Apr 24 14:19:44 so you don't have to download it Apr 24 14:20:42 I've got a editText box that has it's text set to "0"....I'd like to code a button to automatically increment that 0 by 1...how would I do that? Apr 24 14:21:31 parse to int, increment, convert back to string Apr 24 14:26:27 is it possible to set a custom label for the EditText keyboard submit button? Apr 24 14:26:52 (other than done, search and next) Apr 24 14:27:48 elye: sure, but it involves writing your own keyboard. Apr 24 14:28:45 what does "unable to resolve direct method 3354: java/io/Exception; (Ljava/lang/Throwable;)V" ? Apr 24 14:28:57 means Apr 24 14:29:21 evancharlton, okay I will try, hope it doesn't imply any surprises. Apr 24 14:30:16 xorgate did u maybe have seen something?? Apr 24 14:30:33 gnu_d, generally that you're trying to use a method taht doesn't exist Apr 24 14:31:01 Lark125 like i said.. isolate the problem.. we are willing to help but you need to make it easy for us Apr 24 14:31:08 elye: I was joking. It was a roundabout way of saying "No." Apr 24 14:32:25 evancharlton, nice one :) Apr 24 14:33:12 hi :) has anyone here used the worklight mobile toolkit recently acquired by ibm? Apr 24 14:34:53 xorgate is it still verry unclair the problem because english is not my native language and i don't speak it very well Apr 24 14:35:06 *unclear Apr 24 14:35:48 nl? Apr 24 14:35:51 is there a tool for getting the distance between two geopoints? Apr 24 14:35:54 yes Apr 24 14:36:04 Ankhwatcher Location.getDistance or sth Apr 24 14:36:07 euclidean distance? ;) Apr 24 14:36:23 lark niemand gaat je helpen want je maakt het ons onnodig moeilijk Apr 24 14:36:55 http://developer.android.com/reference/android/location/Location.html#distanceBetween%28double,%20double,%20double,%20double,%20float%5B%5D%29 Apr 24 14:37:05 ja, zo zou je het ook kunnen zeggen Apr 24 14:37:28 okee uhhh zeg maar wat ik eerst moet zeggen ik probeer het al een tijdje uitteleggen maar het lukt me al vaker niet goed Apr 24 14:37:29 anyway Apr 24 14:38:01 xorgate: I need to multiply into float geoDist = (fixGeo.getLatitudeE6() - lastGeo.getLatitudeE6()) ^ 2 + (fixGeo.getLongitudeE6() - lastGeo.getLongitudeE6()) ^ 2; Apr 24 14:38:11 float geoDist = (fixGeo.getLatitudeE6() - lastGeo.getLatitudeE6()) ^ 2 + (fixGeo.getLongitudeE6() - lastGeo.getLongitudeE6()) ^ 2; Apr 24 14:38:33 divide by 1e6 Apr 24 14:38:55 MDijkstra: is that what you meant? Apr 24 14:39:02 also that doesnt work Apr 24 14:39:09 the earth isnt flat Apr 24 14:39:28 its not even a sphere :0 Apr 24 14:39:45 im pretty sure there's some built-in getDistance(float lat0, float lng0, float lat1, float lng1) method Apr 24 14:39:46 or something Apr 24 14:39:57 Location.distanceTo() I think Apr 24 14:39:58 xorgate, that is also true, but not relevant to the discussion! Apr 24 14:40:26 evancharlton: yeah, but they're not locations, they're geopoints. Apr 24 14:40:30 or location.distanceBetween() Apr 24 14:40:35 Ge0rG: that's the one Apr 24 14:40:40 Ankhwatcher: so build a location? Apr 24 14:40:46 Ankhwatcher: its your homework to convert a geopoint into a location. Apr 24 14:41:01 * Ge0rG can only repeat: http://developer.android.com/reference/android/location/Location.html#distanceBetween%28double,%20double,%20double,%20double,%20float%5B%5D%29 Apr 24 14:41:13 which only requires float coordinates. Apr 24 14:41:28 https://gist.github.com/c01b5557d7ec5b36eca9 <-- distance calculations Apr 24 14:41:33 Ge0rG: you mean I'm going to converta location to a database entry to a geopoint to a location again? Apr 24 14:41:47 unless you have a really pathological case where you need to sort database columns by their distance to a given point. Apr 24 14:41:59 Ankhwatcher: who said database? Apr 24 14:42:08 Ge0rG: I did, try to keep up Apr 24 14:42:19 inaccurate will be off around a km at 100 km Apr 24 14:42:22 it varies :0 Apr 24 14:42:29 xorgate nouwja kijk ik heb tabbladen die werken met fragmenten dat zijn listfragmenten deze lijsten worden gevuld enzo.. en daarop zet ik een searchview zodat ik ze makkelijk kan filteren deze listviews die inflate ik van een xml bij alle 3 de tabbladen heb ik zo'n searchview maar deze reageren niet helemaal goed zoals wanneer ik de applicatie net opstart de searchview het gewoon geod doet maar wanneer ik van tabblad wissel is die Apr 24 14:42:46 Ankhwatcher: "is there a tool for getting the distance between two geopoints?" Apr 24 14:43:01 Ankhwatcher: Location.distanceBetween() is that tool. Apr 24 14:43:12 Lark125 yes you said all that Apr 24 14:43:53 xogate maar waar maak ik het moeilijk dan voor jullie?? sorry hoor dat ik mischien erg dom over kom Apr 24 14:43:53 Ge0rG: actually I think getDistance is probably the easier one to use Apr 24 14:44:25 Lark125 what's my motivation for doing your work? make it easy Apr 24 14:44:53 canadiancow|work: I can see that, but isn't Throwable exists ? Apr 24 14:45:01 dont let me download a zip, unzip it, find the right files etc etc Apr 24 14:45:17 gnu_d, there may not be an Exception constructor that takes just a Throwable on all versions of android Apr 24 14:45:37 although the docs say there is Apr 24 14:45:47 is there anyway to tell if you have a notification in the notification bar? Apr 24 14:45:52 canadiancow|work: how do I port it then, cause this is a Java EE port to Android. Apr 24 14:46:04 well now i have solved that Apr 24 14:46:11 i dont know what the issue is gnu_d, it should work Apr 24 14:46:31 you can view it now on the same site http://code.google.com/p/searchview-test/ if you click on source and than browse Apr 24 14:47:03 yeah ok.. i give up Apr 24 14:48:58 no please not :( Apr 24 14:49:33 http://code.google.com/p/searchview-test/source/browse/src/com/test/searchview/frag1.java Apr 24 14:58:17 eurgh, htc desire isn't playing my audio files Apr 24 15:02:37 buy ALL the things! http://play.google.com/store/devices Apr 24 15:02:55 and by "ALL" I mean "a Galaxy Nexus" Apr 24 15:03:02 huh Apr 24 15:03:07 We're sorry, the document you requested is not available in your country. Apr 24 15:03:21 https://plus.google.com/u/0/104629412415657030658/posts/cYoL6CBmiru Apr 24 15:03:40 im stuck buying one through verizon :P Apr 24 15:03:48 holy fucking balls Apr 24 15:03:52 humbug, i bought mine for like 800 usd Apr 24 15:04:00 me too Apr 24 15:04:07 damn, you all wanted one that bad? Apr 24 15:04:12 also: not in your country Apr 24 15:04:19 well no, i think mine was 650 Apr 24 15:04:23 retail price on launch day Apr 24 15:04:25 wongk: yeah I paid like $675 :( Apr 24 15:04:31 YOU had to pay? Apr 24 15:04:35 yeah, UK retail price on launch Apr 24 15:04:36 worst. employer. ever. Apr 24 15:04:42 f' that, i'm fine with my thunderbolt :P Apr 24 15:04:57 canadiancow|work draw something? Apr 24 15:05:07 no, google Apr 24 15:05:32 wow Apr 24 15:05:37 * Jug6ernaut is glad he sold his gnex Apr 24 15:05:41 got $500 for it lol Apr 24 15:06:05 Hello there :) Apr 24 15:06:11 so isnt this going to piss off all the android OEMs? Apr 24 15:06:25 google is selling a device at what is clearly not a profitable price point Apr 24 15:06:41 Is there somebody wanna design my app ? : ) Apr 24 15:06:57 http://blog.evoxmusic.fr Apr 24 15:06:57 canadiancow|work: guess they figured they already did that, might as well keep going Apr 24 15:07:12 they already did that? Apr 24 15:07:14 no they didnt Apr 24 15:07:30 remember when they bought motorola? Apr 24 15:07:40 ? Apr 24 15:07:43 what's the news? Apr 24 15:08:26 canadicancow|work probably Apr 24 15:08:27 lol Apr 24 15:08:33 the other device makers weren't ecstatic about that Apr 24 15:08:44 but google said they "wouldnt interfere with moto" or whatever Apr 24 15:08:51 but here, they've cut $250 off the retail price of the phone Apr 24 15:08:52 or $200 Apr 24 15:08:55 or whatever its going for now Apr 24 15:09:02 wongk: the other OEMs _were_, actually Apr 24 15:09:10 go look up the statements that they made Apr 24 15:09:14 that's not what i have read Apr 24 15:09:18 yea.... google protecting android with patents Apr 24 15:09:19 you read wrong Apr 24 15:09:22 why wouldnt sammy or htc like that? Apr 24 15:09:41 because now they make devices, which alienates other device makers Apr 24 15:09:43 i sure as hell dont mind google setting the price point low on devices, but im not sure how other manufacturers feel Apr 24 15:10:33 as to whether that actually happens, i guess we'll see (if the deal even goes through) Apr 24 15:11:07 how about, making a device out of metal Apr 24 15:11:11 instead of plastic? Apr 24 15:11:19 naw Apr 24 15:11:22 i like my plastics Apr 24 15:11:36 lies! Apr 24 15:12:01 how do i FORCE a website to be routed through my vpn Apr 24 15:12:05 so google thinks im in the US Apr 24 15:12:17 you are not in the US, live with it Apr 24 15:12:20 just use a proxy? Apr 24 15:12:23 you are canadian, no one likes you Apr 24 15:12:39 but i HAVE a "proxy" Apr 24 15:12:40 its a vpn Apr 24 15:12:48 your money is worthless and your police are horses Apr 24 15:12:50 but i think its only used for *.zynga.com urls Apr 24 15:13:00 the RCMP are some of hte most respected police in the world Apr 24 15:13:05 a lot of vpn software is smart enough not to tunnel requests that dont need to be Apr 24 15:13:08 amongst canadians Apr 24 15:13:47 [11:12:01] how do i FORCE a website to be routed through my vpn Apr 24 15:13:53 :P Apr 24 15:14:19 i gave you a working answer, just not one to your specific question :P Apr 24 15:14:33 canadiancow|work: SSH tunnel Apr 24 15:19:09 hi, how can I know the size and resolution of a button? Apr 24 15:19:46 getWidth() ? Apr 24 15:20:39 omg google wont sell to canadians....im switching to iphone Apr 24 15:21:04 how about cows Apr 24 15:22:46 c2tarun, and you can know it only after you draw it! Apr 24 15:23:07 Hello guys, what to do if a thread is not alive? How can I restart it or what is the proper way to clean up? Apr 24 15:23:28 suppose I want to make a background image of a button? how can I know its default dimensions Apr 24 15:23:30 ? Apr 24 15:23:43 zhulikas, ^^ Apr 24 15:24:07 If my thread is not alive anymore (mThread.isAlive()), than I try to restart it, but what happens is it crashes. Apr 24 15:24:19 c2tarun, so you speak about default sizes actually Apr 24 15:24:30 otherwise you can set the size yourself Apr 24 15:24:32 zhulikas, yeah :) exactly Apr 24 15:24:52 default sizes should be specified somewhere in platform xmls Apr 24 15:25:13 * c2tarun wondering what is platform xmls :( Apr 24 15:25:18 uhm Apr 24 15:25:24 the android sdk Apr 24 15:25:30 contains Apr 24 15:25:37 android-9 android-11 and so on Apr 24 15:25:42 inside there are resources Apr 24 15:25:45 try looking there Apr 24 15:25:51 ohh... looking :) Apr 24 15:26:05 I think android-sdk/platforms Apr 24 15:26:28 c2tarun: use a 9patch Apr 24 15:26:55 yeah but 9 patch will work for streching right? and not for compressing. Apr 24 15:27:00 evancharlton, ^^ Apr 24 15:27:10 c2tarun: yeah Apr 24 15:27:25 yeah means? it will work for compressing too?? Apr 24 15:28:14 zhulikas, these are files under android-10 http://paste.ubuntu.com/944234/ Apr 24 15:30:21 data:| Apr 24 15:31:29 zhulikas, data of which file? Apr 24 15:31:39 dude. Apr 24 15:32:15 ohh.. sorry :( Apr 24 15:39:41 how do you increament a text edit by 1? Apr 24 15:40:44 john_doe_jr: get text, parse to int, add one, convert to string, set text Apr 24 15:40:56 implementation is left as an exercise to the reader Apr 24 15:41:00 editText++; Apr 24 15:42:35 evancharlton: how do you parse to an int? Apr 24 15:42:52 lmgtfy Apr 24 15:42:58 john_doe_jr: I just said it's an exercise for the reader Apr 24 15:42:59 this is not ##java-noobs Apr 24 15:43:10 in other words, hit up your favorite search engine and learn something. Apr 24 15:43:57 sheesh try to remain friendly or at least non-hostile Apr 24 15:44:01 in this screenshot: http://imagebin.org/209528 what is the widget used for "New Reminder" its definetly not a button. What is it? Apr 24 15:44:19 could be a button Apr 24 15:44:29 what makes you say it's not a button? Apr 24 15:44:33 c2tarun: a button is just a TextView with styling on it. Apr 24 15:44:58 xorgate, its quite catchy, I mean its like a banner. Apr 24 15:45:13 c2tarun: it's just a styled View Apr 24 15:45:23 what that underlying View happens to be we don't know Apr 24 15:45:29 but it doesn't much matter, in practice Apr 24 15:45:38 can someone with stock ICS go into dev options, and tell me if there's an ADB over network setting? Apr 24 15:45:42 hi Apr 24 15:45:47 Could be a button, could be a textview, could be a linearlayout with an imageview and a textview, could be ... Apr 24 15:46:05 could it be a flying spaghetti monster ? Apr 24 15:46:07 canadiancow|work: there is not. Apr 24 15:46:12 during download of data from server, i would show this loading image http://i708.photobucket.com/albums/ww82/RAGOpoR/IMG_0138.png , how can i do ? Apr 24 15:46:16 Asone: no, that doesn't extend View. Apr 24 15:46:20 ok evancharlton, then the bug is with CM9 Apr 24 15:46:21 damn Apr 24 15:46:27 it says "phone" even on my tablet :) Apr 24 15:46:36 obscuring the view behind Apr 24 15:46:56 well at least your guys guesses gave me pretty good ideas :) thanks guys Apr 24 15:47:01 ech0s7: set your view's background to something transparent Apr 24 15:47:49 yes but if in my activity i have setted a content view for example View1 Apr 24 15:48:27 during loading, i cannot add to root of content view View2 with transparent background Apr 24 15:48:38 Sure you can Apr 24 15:48:49 root.addView(view2) Apr 24 15:49:04 or, you could include it in your layout xml and set visibility Apr 24 15:49:05 ech0s7: no, but you could set your base element to a FrameLayout and toggle the visiblity of the children Apr 24 15:49:15 and also if i add, it does not overlap Apr 24 15:49:18 or you could put a translucent activity on top of your current activity Apr 24 15:49:22 any1 wanna hold my hand through something....lol..i cant get this to work http://stackoverflow.com/questions/3630733/how-to-check-which-notifications-are-active-in-status-bar-in-android-dev/3630799#3630799 Apr 24 15:49:32 Whether it overlaps depends on the viewgroup and layoutparams Apr 24 15:49:37 FrameLayout is a good idea Apr 24 15:49:41 * Jug6ernaut is not understanding hte notId & selectedPosition params Apr 24 15:49:47 is it the only ? Apr 24 15:50:10 Jug6ernaut whats your question Apr 24 15:50:22 ech0s7: ho. Apr 24 15:50:24 no. Apr 24 15:51:15 xorgate in the post i provided what are the notId and selectedPosition varibales purpose/should be Apr 24 15:51:16 over the translucent activity, evancharlton Apr 24 15:52:01 random constant and an index i guess Apr 24 15:52:30 so...just a random offset? Apr 24 15:52:45 * Jug6ernaut doesnt like random Apr 24 15:53:16 well check params for those methods what they expect Apr 24 15:53:32 if it's just a random number then you just get to be 'the decider' Apr 24 15:54:53 hmm Apr 24 15:56:15 I defined a TextView, set a background color to it, defined clickable as true. set onclickListener, but I am not able to see my Toast of onclicklistener :( why so? Apr 24 15:57:08 because you did not call .show() Apr 24 15:57:53 xorgate, you are genius :) what are you doing here, apply to Google ;) Apr 24 15:58:10 o.O Apr 24 15:58:24 xorgate, anyway :) thanks a lot Apr 24 15:58:26 someone already stole my idea to make .show on makeText() a lint error Apr 24 15:59:10 what is lint used for??? Apr 24 15:59:18 stuffing your belly button Apr 24 15:59:23 clogging your pants pockets Apr 24 15:59:28 finding silly code Apr 24 15:59:32 making an odd surprise between your toes Apr 24 15:59:45 goddamnit lte, when you need you, you drop me to 3g Apr 24 15:59:45 wtf Apr 24 15:59:46 is there a way to create a new partition with the remaining SDCARD space and mount the /sdcard folder tehre? Apr 24 16:00:31 <`z> nimesh_accenture, afaik you can partition your /sdcard such that there's a bit for apps (ext) and the rest for /sdcard Apr 24 16:00:39 <`z> you can do that from CWM or use GPartEd Apr 24 16:00:43 <`z> (it's in ubuntu) Apr 24 16:00:51 Also, #android-root Apr 24 16:01:21 #android -root is in coma Apr 24 16:01:57 i'm using a pandaboard and user,system images are both on sdcard Apr 24 16:02:03 physically Apr 24 16:02:08 <`z> that question you asked in #android-root was kinda irrelavant to #android-root Apr 24 16:02:56 nimesh_accenture: just partition the card and specify what gets mounted where when the board boots. Apr 24 16:04:55 I had a fun error reported today.. android.content.res.Resources$NotFoundException: File res/layout-1999x999/preference_dialog_edittext.xml from xml type layout resource ID #0x109004a Apr 24 16:04:56 lov: i'm a bit new to partitioning stuff ... can u tell me how? Apr 24 16:05:16 <`z> nimesh_accenture, Apr 24 16:05:28 <`z> download a ubuntu/gparted live cd Apr 24 16:05:31 <`z> and run gparted Apr 24 16:05:37 <`z> for ubuntu, just run it as a livecd Apr 24 16:06:00 <`z> nimesh_accenture, if you have *buntu, then just run gparted and stick your sdcard int Apr 24 16:06:01 <`z> in* Apr 24 16:06:07 Anyone familiar with the Android Bluetooth Chat App in developer website? Im having a little trouble in the Handler Message Class :) Apr 24 16:06:15 <`z> if you don't, just use GPartEd Live Apr 24 16:06:16 <`z> asked Apr 24 16:06:17 <`z> um Apr 24 16:06:21 <`z> http://gparted.sourceforge.net/livecd.php Apr 24 16:06:22 oic! Apr 24 16:10:07 Is there a way to clean a byte[] buffer (Filled with data and garbish at the end, zeros) ?? Apr 24 16:10:27 From the InputStream that comes from the BluetoothChat Connected Thread from Android Dev Apr 24 16:10:52 Arrays.fill? Apr 24 16:11:03 or something Apr 24 16:11:27 you shouldn't need to clear the end of the buffer Apr 24 16:11:29 That does not exist in byte array Apr 24 16:11:36 you should get the number of bytes read back from your read call Apr 24 16:12:18 readme: yeah! I should! There is a variable that returns it, but it does not return the exact number of bytes inserted on the buffer... I debugged and the number mismatch the size of data Apr 24 16:12:39 huh Apr 24 16:12:51 I'm pretty sure that the number of bytes coming back from read is the # of bytes that were read. Apr 24 16:13:00 what makes you think it's not Apr 24 16:13:01 hey guys , any way to develop for android without using eclipse ? Apr 24 16:13:13 overburn, of course Apr 24 16:13:17 many ways... Apr 24 16:13:23 http://developer.android.com/guide/developing/projects/projects-cmdline.html Apr 24 16:13:26 if you have to ask that, i question whether you're capable though Apr 24 16:13:31 http://developer.android.com/guide/developing/building/building-cmdline.html Apr 24 16:13:33 overburn, I use intellij idea for example Apr 24 16:13:34 etc Apr 24 16:13:42 ah thanks mate Apr 24 16:13:49 readme: Well, I debugged and I see a byte[] filled with data till the position 20. The supposed variable that holds the number of bytes passed gives me 12 - This is an example. Apr 24 16:13:56 c++ for example instead of java is impossible tho , right? Apr 24 16:14:04 not exactly Apr 24 16:14:13 http://developer.android.com/sdk/ndk/index.html Apr 24 16:14:14 only c++ that is , i know about the ndk Apr 24 16:14:19 note that you'll be using a lot of JNI. Apr 24 16:14:21 readme: I also tried to only insert on the queue the number of bytes from that variable, but it continues to crash on me Apr 24 16:14:24 paraphrasing: dont use c++ for the sake of using c++ Apr 24 16:14:32 there are VERY FEW performance reasons to use c++ Apr 24 16:14:32 If you're targetting 2.3 or above, you can use a NativeActivity and not use any java code Apr 24 16:14:36 yeah Apr 24 16:14:37 its mostly about "i have all this c++ code already" Apr 24 16:14:42 i just like the language Apr 24 16:14:46 thats not a good reason Apr 24 16:14:47 way more than java for example Apr 24 16:14:47 dont do it Apr 24 16:14:49 it's mostly about "I HATE JAVA, JAVA KILLED MY FAMILY, NO JAVA" Apr 24 16:14:50 it wont work on google tv Apr 24 16:15:07 Tsukaza: i have no idea what is going on in your code but I would say that if read returns 12, don't touch any of the bytes after 12. They are who knows what. Apr 24 16:15:15 canadiancow|work: using all caps doesn't make it true :D Apr 24 16:15:27 i didnt use all caps? Apr 24 16:15:33 oh the "VERY FEW"? Apr 24 16:15:34 readme: Ok, ill keep on testing then :/ It must work! Thank you Apr 24 16:15:36 it was emphasis Apr 24 16:15:42 and any way to run purely native apps without relying on the android framework? Apr 24 16:15:48 overburn: no. Apr 24 16:15:49 no Apr 24 16:16:02 overburn: http://developer.android.com/reference/android/app/NativeActivity.html Apr 24 16:16:03 it is true though, since most android app code is not performance critical Apr 24 16:16:11 You can use that to kick off your own GL engine and more or less ignore android Apr 24 16:16:18 but don't forget that you're still held to the same activity lifecycle, etc. Apr 24 16:16:27 readme: Just tell me 1 more thing. This: String readMessage = new String(readBuf, 0, msg.arg1); - It creates a String that contains the data on readBuf, and fills it from 0 to msg.arg1 right? Apr 24 16:16:34 if i want to hack a synthesis engine in java though i'd be crazy mad :D Apr 24 16:16:55 and anyone who tells you that's not true hasn't evaluated the performance :D Apr 24 16:17:08 i have Apr 24 16:17:25 dang, what did they think of when they restricted it like that? :( Apr 24 16:17:37 ? Apr 24 16:17:41 wtf are you talking about Apr 24 16:17:52 restricted what Apr 24 16:17:56 use nativeactivity Apr 24 16:17:56 go run an app on an iphone without using the iOS framework Apr 24 16:17:57 done Apr 24 16:17:58 or windows phone Apr 24 16:18:06 or bb Apr 24 16:18:07 or... Apr 24 16:18:25 overburn: are you one of those people who gets mad because android doesn't have X11? Apr 24 16:18:32 damngn, switch back to lte already Apr 24 16:18:56 evancharlton: +1 Apr 24 16:19:16 evancharlton: it wouldn't be called android then Apr 24 16:19:42 i just get mad at some of their design decisions Apr 24 16:19:45 android doesn't run arch linux, CLEARLY ISN'T REALLY OPEN SOURCE Apr 24 16:19:47 Iwish there were an option to force lte only on the GN Apr 24 16:20:04 overburn: design decisions like what? Apr 24 16:20:12 not turning into a disaster like LiMo? Apr 24 16:20:18 or whatever the hell its called now? Apr 24 16:20:31 overburn you can't say that without really knowing the ecosystem Apr 24 16:20:34 it just makes you look stupid Apr 24 16:20:56 does anybody now how i can make a style for a searchview for the theme holo.light.darkactionbar because thats missing in the android files Apr 24 16:20:58 well running everything in a virtual machine is a really good design decision , right ? Apr 24 16:21:02 lov, z': thx Apr 24 16:21:12 what's the stack on that thing - 48mb ? Apr 24 16:21:15 for this particular case yes, in fact. Apr 24 16:21:17 not /everything/ runs in a virtual machine Apr 24 16:21:28 fun fact: native code doesn't count against the heap limit. Apr 24 16:21:34 so you can malloc to your heart's desire Apr 24 16:21:44 yes, ndk doesn't limit you to vm Apr 24 16:21:45 it's an OK decision :D Apr 24 16:21:50 and it's heap, not stack Apr 24 16:22:02 a 48mb stack... woe is you Apr 24 16:22:20 damnit, touchwiz broke ctrl keys in connectbot for me :( Apr 24 16:22:21 lov: and malloc never fails on android :) Apr 24 16:22:28 I'll need to hack on it again :( Apr 24 16:22:29 does anybody now how i can make a style for a searchview for the theme holo.light.darkactionbar because thats missing in the android files` Apr 24 16:22:36 ah read wrong Apr 24 16:22:50 damnit samsung, hurry up and get 4.0 out for p4wifi already Apr 24 16:22:53 Lark125: Just use the dark theme for it Apr 24 16:23:06 romainguy: that's why it's important to check whether your malloc succeeds, of course Apr 24 16:24:03 I have a ListView Adapter that is being updated from the sensor change event, but it's starting to make my app slow b/c of some additional calculations I'm adding to the list view. Should I be using an background tread or UI tread to manage the adapter updates of the ListView? Apr 24 16:24:14 .... yes. Apr 24 16:24:29 Strongly consider whether listview is what should appropriately be displaying this info :P Apr 24 16:25:01 Note that your listview could contain views that themselves know about sensor events and invalidate themselves as appropriate Apr 24 16:25:05 by the way, what api version should i use if i have almost no idea what i'm doing? Apr 24 16:25:10 you wouldn't have to invalidate the whole listview Apr 24 16:25:14 overburn: the latest one Apr 24 16:25:19 overburn: the API target is just what you compile against Apr 24 16:25:27 there's a strong emphasis on backwards compatability Apr 24 16:25:55 http://developer.android.com/training/basics/supporting-devices/platforms.html Apr 24 16:26:03 actually, if you're only using the ndk, I'm not sure what to suggest Apr 24 16:26:03 ah so if i create the package for api15 it will probably work on 2.3 , 2.2 etc ? Apr 24 16:26:12 you might want to target the lowest level that you plan on actually supporting Apr 24 16:26:17 so that you don't have linker errors, etc Apr 24 16:26:24 yes Apr 24 16:26:34 thanks mate Apr 24 16:26:38 the idea is that you check the api version when using potentially non-existant-yet calls, and you wrap that stuff Apr 24 16:26:41 see the article Apr 24 16:26:52 but native code is a whole different beast Apr 24 16:27:31 the native questions were more so i'd know what i would actually be getting into , at least not at the moment until i master the non-native part heh Apr 24 16:27:54 by the way, did they fix that annoying issue with usb drivers being virtually useless on win7 x64? Apr 24 16:28:13 I guess so? I never noticed that problem, and my work laptop is win7 x64 Apr 24 16:28:15 if (Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB_MR2) { /* do fancy shit */ } else { /* do unfancy shit */ } Apr 24 16:28:26 virtually useless? Apr 24 16:28:33 the adb interface wouldn't work if i remember correctly Apr 24 16:28:37 ive been using them on win7 x64 for like 2.5 years and its always woroked Apr 24 16:28:40 define "wouldn't work" Apr 24 16:28:47 pebcak? Apr 24 16:28:58 the drivers wouldn't be found until you edit the .ini file for the drivers, or there was some sort of other actual issue Apr 24 16:29:06 the device wouldn't be recognized , aka no functional drivers Apr 24 16:29:11 .... right. Apr 24 16:29:14 ah no, my bad, the fastboot interface had that problem Apr 24 16:29:14 wrong Apr 24 16:29:15 so you have to edit the .ini file. Apr 24 16:29:17 you dont have to edit it Apr 24 16:29:21 oh? Apr 24 16:29:34 there's some thing now where windows will magically install android drivers if you have them installed or something Apr 24 16:29:41 not sure what's happening there though Apr 24 16:29:43 device manager->right click android device->update driver->selcet the ini->YES IM SURE Apr 24 16:29:50 i still have to do it manually Apr 24 16:29:51 This: String readMessage = new String(readBuf, 0, msg.arg1); - It creates a String that contains the data on readBuf, and fills it from 0 to msg.arg1 right? Apr 24 16:30:02 but its just "YES I KNOW THIS DRIVER WASNT MADE FOR AN HTC WHATTHEFUCK. USE IT ANYWAY" Apr 24 16:30:14 Tsukaza: why not not just look at the docs? Apr 24 16:30:34 lov, the linkage problems are basically resolved with lint, though Apr 24 16:30:39 hehe Apr 24 16:30:40 no, the adb worked well, the fastboot wouldn't before i got the drivers from pdanet Apr 24 16:30:48 evancharlton: I did :) Do you know the answer? Apr 24 16:30:49 my bad, crappy memory Apr 24 16:30:49 what a nightmare it must be to build a modern web browser Apr 24 16:30:58 CSS rules are insane :) Apr 24 16:31:04 pfn, not really. i need to be able to put a lint-suppression around an if block Apr 24 16:31:26 there's a suppress lint anno Apr 24 16:31:35 pfn: for native code? Apr 24 16:31:42 is anyone familiar with the android Message class? I'm having a little trouble retrieving some info from it :P Apr 24 16:31:51 I'm saying "you can't target device libs for API 15 if you're going to run on API 10" Apr 24 16:31:54 native is different of coursr Apr 24 16:31:58 which ends up being a physical linker error Apr 24 16:32:01 right, which is what I was saying Apr 24 16:33:11 but i don't understand one thing - one would think that they used the davlik vm in order to get really good portability, but then they released the ndk thing basically nullifying their efforts to assure portability Apr 24 16:33:41 they released the ndk for portability Apr 24 16:33:51 "i have all this c++ code for my game on iOS" Apr 24 16:33:53 99% of apps do fine without ndk Apr 24 16:34:07 ^^ Apr 24 16:34:13 ah portability from other platforms , i see Apr 24 16:34:24 what does android use as a device manager? Apr 24 16:34:24 the point of the NDK is that a LOT of developers had codebases in C/C++, and didn't want to have to implement java versions Apr 24 16:34:26 some apps want to port from other platforms as well Apr 24 16:34:29 like udev but android Apr 24 16:34:41 also, when is it initiated??? Apr 24 16:35:07 http://imgur.com/3GWyD << Can someone tell me how I could create the samething as that box that with the Text and 2 buttons? Apr 24 16:35:08 Hell if I know. You're welcome to look in the source Apr 24 16:35:30 PrivateAlpha: That's the ActionBar. Apr 24 16:35:40 PrivateAlpha: use the ActionBar if you're targetting API level 11 or above Apr 24 16:35:47 or use a compat lib like ActionBarSherlock for anything lower Apr 24 16:36:34 lov: Thanks many. Also 10 points if you can guess what app that is :P Apr 24 16:36:51 Question: On the Galaxy Nexus is it a driver issue that onPreviewFrame randomly returns image data that is all 0's? Apr 24 16:37:52 hmm so excuse my nagging , but i am really curious in a non-flaming way , why would anyone think that compiled code doesn't have performance advantages over an interpreted version of the same code ? Apr 24 16:38:23 it does, but don't care, don't matter Apr 24 16:38:40 * Tsukaza slaps pfn around a bit with a large trout Apr 24 16:38:44 was someone saying something to the contrary? Apr 24 16:38:45 overburn, because of how modern JITs work Apr 24 16:38:47 ah so it's the "we've got fast enough computer, don't have to bother writing fast code mentality" ? Apr 24 16:38:53 no Apr 24 16:39:06 oh hmm Apr 24 16:39:13 i sat through a presentation by an IBM engineer about how the latest in JIT technology often makes something like java faster than c++ Apr 24 16:39:28 becuase it can optimize on the fly based on the exact parameters of the system, and the data being passed through Apr 24 16:39:40 https://drive.google.com/start?authuser=0#home Apr 24 16:39:42 whooooo Apr 24 16:39:49 Google Drive is available for: Apr 24 16:39:50 PC and Mac Apr 24 16:39:50 iPhone and iPad (coming soon) Apr 24 16:39:50 Android devices Apr 24 16:39:52 for serious? android last? Apr 24 16:40:02 there are optimizations on the jvm that can make it faster than native Apr 24 16:40:06 canadiancow|work: i'd have to see a number of benchmarks before i would believe that Apr 24 16:40:11 not on dalvik, though Apr 24 16:40:31 but that could change in the next version very easily Apr 24 16:40:31 canadiancow|work: it's mostly C++-wank that puts it as "standard of fastest" Apr 24 16:40:44 i mean the current JIT was a huge improvement Apr 24 16:40:47 as was concurrent GC Apr 24 16:41:28 the JIT helps as well, but a lot of that was just the language giving more info to compile Apr 24 16:42:07 so basically you get a bunch of overhead just to make it as fast as native? Apr 24 16:42:24 overburn: not really Apr 24 16:42:41 oh , what do you mean? Apr 24 16:43:31 overburn: for long-running processes, Java can be faster than C/C++ and such, because it will do a profile-guided optimization that can take into account very specific things Apr 24 16:43:48 can't argue with that Apr 24 16:44:10 overburn: also, fast code != native code compilers Apr 24 16:44:42 i meant getting the same code to execute faster , didn't mean fast code ;) Apr 24 16:44:47 Hmm for some reason when I add any service to my init.rc, boot hangis Apr 24 16:45:13 overburn: then you want Fortran 95 and pure numerical code to playwith ;) Apr 24 16:45:28 otherwise Amdahl's Law will be your main enemy Apr 24 16:46:42 wheres the android app for drive? Apr 24 16:47:56 https://play.google.com/store/apps/details?id=com.google.android.apps.docs Apr 24 16:48:50 canadiancow|work: https://play.google.com/store/apps/details?id=com.dropbox.android Apr 24 16:48:58 ;) Apr 24 16:51:38 neither of those... Apr 24 16:52:02 docs hit renamed to drive Apr 24 16:52:18 got Apr 24 16:52:20 canadiancow|work: the docs -> drive rename seems to be working its way through caching or something Apr 24 16:52:40 wait what? Apr 24 16:52:42 docs was renamed? Apr 24 16:52:42 search for "google drive" and you'll see "google docs" in the list, but then when you click on it, you get "google drive" Apr 24 16:53:36 I searched for drive and drive came up in the list... didn't have it installed Apr 24 16:54:14 wonder how long it will be before my house is managed by Google Home... from the cloud Apr 24 16:54:41 wongk wouldnt that be awesome? Apr 24 16:54:57 "someone rooted my house again!" Apr 24 16:55:17 Btw does anyone know about the android key logger someone developed? Apr 24 16:56:19 p_l: Can you give me an example of a simple Java profile-guided optimization Apr 24 16:56:30 sounds useful Apr 24 16:59:57 im on th eplay store page for drive on my tablet Apr 24 17:00:05 the title is literally flickering between "Docs" and "Drive" Apr 24 17:01:05 it's having a siezure Apr 24 17:02:29 canadiancow|work: I had google docs installed, it just updated to drive Apr 24 17:05:51 for what it's worth, the gdrive stuff still links to the old pricing for storage - presumably meaning that existing storage will convert, and hopefully grandfather in - while it looks like the new pricing will be higher Apr 24 17:07:32 does anybody now how i can make a style for a searchview for the theme holo.light.darkactionbar because thats missing in the android files` Apr 24 17:09:10 does anybody now how i can make a style for a searchview for the theme holo.light.darkactionbar because thats missing in the android files` Apr 24 17:09:20 if no one answers, wait more than 2 minutes please. Apr 24 17:09:38 if you still don't get any response, we're all ignoring you for being an awful human being Apr 24 17:10:34 hi Apr 24 17:12:18 Trying to place the text above the "image view", at the moment it sits centered at bottom - http://pastebin.com/761TRq5L Apr 24 17:12:20 well thank you for that Apr 24 17:13:52 but lov tell me how good a human being you are Apr 24 17:14:48 Anybody got an example of NumberPicker? http://developer.android.com/reference/android/widget/NumberPicker.html Apr 24 17:15:55 royale1223: you just drop it in the layout and get the value using getValue() Apr 24 17:16:03 I don't think an example is really necessary Apr 24 17:16:07 btw, I've never used it. Apr 24 17:16:08 idk we're all pretty awful people too Apr 24 17:16:14 doesn't mean we won't still ignore you Apr 24 17:16:25 readme: Setting values? Monitoring values? Apr 24 17:16:44 royale1223: setOnValueChangedListener Apr 24 17:16:45 RTFM Apr 24 17:16:49 http://developer.android.com/reference/android/widget/NumberPicker.html#setValue(int) Apr 24 17:17:06 * wongk is extra awful Apr 24 17:17:26 SimonVT, readme thanks.. But no example though? Apr 24 17:17:28 * Leeds is better than wongk, but barelt Apr 24 17:17:30 don't be afraid to write code that you didn't read from a blogspam tutorial Apr 24 17:17:37 there's a first time for everything Apr 24 17:17:42 alright but you shouldn't have said that Apr 24 17:17:47 not that i care Apr 24 17:17:55 there was just no reason for it Apr 24 17:18:01 readme: okay.. :) Apr 24 17:19:19 lov: any suggestions? Apr 24 17:19:54 t432: consider using layoutAbove and/or the documentation Apr 24 17:20:05 read what layout_alignBottom does Apr 24 17:20:15 it's probably not what you think it does Apr 24 17:20:34 I think the clue is in the name :) Apr 24 17:20:46 Sisco: run something long-term in Sun's JRE in server mode (and have it actually do stuff) Apr 24 17:20:52 tried layoutAbove - text disappears Apr 24 17:21:00 nvm Apr 24 17:24:12 On the Galaxy Nexus (4.0.2) is it a driver issue that onPreviewFrame randomly returns image data that is all 0's for me? Anyone? Like sometimes the data is valid other times not so much :( Apr 24 17:26:10 readme: I used this but it doesn't show buttons Apr 24 17:26:11 when you guys release an app that has a free ad supported version and a pay version without ads, do you guys just do a boolean value to determine if ads are to be served on that build? Apr 24 17:26:23 readme: http://pastebin.com/3cV86t0s Apr 24 17:27:19 Hi, I got a preferences screen with this xml: Apr 24 17:27:19 1 etc, what if I want to change the "1" in code? Apr 24 17:27:25 ninjai: you can't really do that, since you can't publish two apps with the same package name Apr 24 17:27:25 ninjai: no, you need to do some sort of auth Apr 24 17:27:27 use LVL Apr 24 17:27:44 http://developer.android.com/guide/market/licensing/index.html Apr 24 17:28:19 Bear in mind that it should be very difficult if not impossible for someone to reverse engineer your free version into a paid version Apr 24 17:28:32 readme: you there? Apr 24 17:30:00 Kisho: you'll have to programatically modify the item that uses it, whatever that may be. Apr 24 17:30:53 Can you give me an example ? Apr 24 17:31:38 without more information about what you're doing, no? Apr 24 17:33:32 bah, where did ctate run off to Apr 24 17:33:56 Dear canadiancow, Apr 24 17:33:56 Unfortunately, you did not receive enough points in the Qualification Round to qualify to advance to Round 1. Apr 24 17:34:04 because you fucking wouldnt let me sign in T_T Apr 24 17:34:34 Well, I got this in resources: Apr 24 17:34:34 Apr 24 17:34:34 1 and if I want to change the item in a .java file (for example in the onCreate function) how do I change the '1'? Apr 24 17:34:55 Didn't lov already answer that question? Apr 24 17:34:58 you can't change the 1 Apr 24 17:35:00 canadiancow|work: that was part of the competition ;) Apr 24 17:35:11 Why doesn't this numberpicker show buttons? http://pastebin.com/3cV86t0s Apr 24 17:35:15 You can load the string array into an object and change that Apr 24 17:35:17 Kisho: you could read it out and use that as your base when you apply a delta to it, though Apr 24 17:39:36 any tips on how i can access running tasks in android? Apr 24 17:40:02 royale1223: Apr 24 17:40:10 ? Apr 24 17:40:11 JesusFreke: bam Apr 24 17:40:25 bam. Apr 24 17:40:33 is that like the new "word."? Apr 24 17:40:40 Hello, can someone guide me with this problem please? This is my first time using handlers/looper and I'm having a hard time, This method actually runs but when the dialogs appears and I clic cancel everything is perfect in the background, but the AlertDialog won't dissapear link: http://paste.ubuntu.com/944450/ Apr 24 17:40:41 Kick it up a notch? Apr 24 17:40:42 JesusFreke: maybe 10 years ago Apr 24 17:40:55 when we emeril big? Apr 24 17:40:59 was* Apr 24 17:41:13 JesusFreke: im haxoring htc files :) Apr 24 17:41:22 ok? Apr 24 17:42:19 JesusFreke: i finally got an apk to baksmali out, but it left with with multiple inherited paths, do i just smali ./out? Apr 24 17:42:29 what is the best way to do something like a "startFragmentForResult()" Apr 24 17:42:31 yes Apr 24 17:42:35 JesusFreke: it needed like 12 other .odex's .. Apr 24 17:42:48 JesusFreke: whats the best way to convert is to source now? Apr 24 17:42:56 to source? Apr 24 17:42:56 it* Apr 24 17:42:58 canadiancow|work use a callback interface? Apr 24 17:42:58 as in java? Apr 24 17:43:00 yeah Apr 24 17:43:06 haha :) Apr 24 17:43:15 :P Apr 24 17:43:22 t0mless, so the top fragment should have a reference to the bottom fragment? Apr 24 17:43:24 try dex2jar plus Apr 24 17:43:33 heh Apr 24 17:43:46 canadiancow|work: u dont need to do that Apr 24 17:43:58 wut? Apr 24 17:44:01 canadiancow|work: the fragments are running in the activity's context Apr 24 17:44:09 JesusFreke: which is your fav? Apr 24 17:44:25 I don't find myself decompiling much. Apr 24 17:44:26 * JesusFreke shrugs Apr 24 17:44:38 bah Apr 24 17:44:40 by top and bottom you mean two fragments in one activity or one fragment container that you're swapping out? Apr 24 17:44:51 royale1223: dunno, this View appears to be pretty minimal. Apr 24 17:45:01 I'm beginning to wonder if it's meant for standalone use at all Apr 24 17:45:09 canadiancow|work: if you need to do something in the activity, (cast) getActivity().method() ? Apr 24 17:45:10 whats that other NumberPicker you've got? Apr 24 17:45:25 otherwise interfaces Apr 24 17:45:44 canadiancow|work: are they dialog fragments? Apr 24 17:46:00 canadiancow|work: if so, i usually pass in interfaces to them Apr 24 17:47:12 no they're just Fragments Apr 24 17:47:19 and i have it "working" now, but i dont like it Apr 24 17:47:29 and i relaly want something as clean as startActivityForResult is Apr 24 17:48:08 don't forget about orientation changes Apr 24 17:48:13 create an interface that has an onFragmentResult() and have your activity implement it Apr 24 17:48:14 "for an example of using this widget, see TimePicker" --NumberPicker doc Apr 24 17:48:34 * readme sees TimePicker. TimePicker doesn't extend NumberPicker, or even LinearLayout which NumberPicker does. Apr 24 17:48:40 and then pass it to your fragments in the newInstance() or have a setInterface method or something Apr 24 17:48:46 canadiancow|work: clean? Apr 24 17:48:53 canadiancow|work: activityforresult is awful Apr 24 17:48:53 and instead of setResult() just call the interface Apr 24 17:48:59 readme: TimePicker contains a NumberPicker, iirc Apr 24 17:49:01 TimePicker uses a layout with two numberpickers Apr 24 17:49:05 Maybe 3 Apr 24 17:49:06 evancharlton: ah ok. that makes more sense. Apr 24 17:49:09 (am/pm) Apr 24 17:49:13 startActivityForResult is a great API Apr 24 17:49:28 readme: I'm talking about the 2nd Timepicker Apr 24 17:49:37 readme: I'm talking about the 2nd numpicker Apr 24 17:49:47 well, great feature; it'd be awesome if it took runnables or something instead of having to keep track of requestCode, but I won't cry too hard. Apr 24 17:49:49 royale1223: yeah, I got that. Apr 24 17:50:22 readme: It just shows an edittext, no buttons Apr 24 17:50:27 yeah, I have it here. Apr 24 17:50:48 Any idea why? :( Apr 24 17:50:50 maybe, although this is silly, you need to set listeners first for it to show them Apr 24 17:50:57 i'm going to try that Apr 24 17:51:03 k Apr 24 17:55:32 royale1223: http://pastebin.com/MCL4Vd69 Apr 24 17:55:34 I read the source Apr 24 17:55:51 let me test my theory now Apr 24 17:57:48 readme: and the layout the same? Apr 24 17:57:53 hi. i have a View that extends SurfaceView and implements runnable, and it's embedded into a view so that it takes about fifth of the screen. application throws an InflateException when reading the custom element from the layout. what causes this? Apr 24 17:58:08 royale1223: 1sec Apr 24 17:58:12 k Apr 24 17:58:21 What are you doing Apr 24 17:58:46 i've followed the style in the custom element to define it in the layout Apr 24 17:58:53 *custom element guide Apr 24 17:59:50 SimonVT: what I'm doing? Apr 24 18:00:00 no Apr 24 18:00:55 why is there no damn callback when a fragment becomes visible T_T Apr 24 18:01:12 royale1223: it appears that the NumberPicker doesn't work as the docs say it does. Apr 24 18:02:39 hey i have troubles with adb and a file that dont get the execution permisions, i did chmod 777 and 766 with adb and the console says that dont have the magic 7F45 Apr 24 18:03:06 ALoGeNo: I have no idea what you're talking about. Magic 7F45? Apr 24 18:03:10 readme: But it should.. Right? Apr 24 18:03:11 hey readme can you give a hand to a n00b? please Apr 24 18:03:20 ALoGeNo: Are you sure you shouldn't be in #android-root Apr 24 18:03:24 royale1223: the docs are wrong, apparently Apr 24 18:03:30 yeah i just trying to ... omg... Apr 24 18:03:30 ALoGeNo: you mean "adb shell"? Apr 24 18:03:37 maybe that file is for arm.. Apr 24 18:03:43 ALoGeNo: Are you an app developer? Yes/No Apr 24 18:03:55 nop, im a freelancer :) Apr 24 18:04:09 No? Then please go to #android-root Apr 24 18:04:12 development only questions here, please. Apr 24 18:04:31 kernel hacking and many years with machines :) and jobless :P Apr 24 18:04:36 readme: NumberPicker works fine Apr 24 18:04:44 trying to keep the mind busy Apr 24 18:04:49 SimonVT: what are you doing that I am not Apr 24 18:05:02 I don't know what your issue is Apr 24 18:05:10 SimonVT: maybe it only works on certain devices Apr 24 18:05:15 when I run it, there's no visible buttons Apr 24 18:05:57 readme: I'm using cyanogenmod 9 in that case Apr 24 18:05:58 I backported the ICS numberpicker myself, never saw an issue like that Apr 24 18:06:06 royale1223: mhmm, so am I Apr 24 18:06:09 it's a cyanogenmod bug Apr 24 18:06:19 Leeds, yep sorry because i dont explain pretty well, i mean adb shell chmod 777 or 766 dont set the execution permisions, but i thinnk that is an ARM executable Apr 24 18:06:23 ok, sorry. nothing wrong with numberpicker here. just with our crappy modded devices. Apr 24 18:06:44 ALoGeNo: and what app development are you doing? Apr 24 18:06:44 ALoGeNo: where are you calling this? Do you have permissions to call chmod on the file? Apr 24 18:06:52 Anyone have any thoughts or opinions on http://stackoverflow.com/questions/10289952/android-listview-and-edittexts-with-live-data/10294031. Apr 24 18:06:59 Is the device rooted? Are you trying to set permissions on a filesystem that's locked? Apr 24 18:07:12 yep, im in real android-x86 root by default Apr 24 18:07:40 dont worry guys the mistake is that this file is compiled to arm, and im in x86 Apr 24 18:07:48 .... ok, good to know? Apr 24 18:07:55 ALoGeNo: no, I think the mistake is that you should be in #android-root Apr 24 18:08:21 readme: Simple fix, test on the emulator Apr 24 18:08:34 Leeds, im just using my netbook like an tablet (this an t101mt tablet pc) Apr 24 18:08:44 So I'm trying to setup actionbarsherlock acording to their instructions but the code gives a TON of errors :/ Apr 24 18:08:53 SimonVT: I had recently deleted my avds and didnt feel like waiting Apr 24 18:08:55 :| Apr 24 18:08:57 ALoGeNo: and now you mistake me for someone who cares... app development or GTFO Apr 24 18:09:12 PrivateAlpha: you want #android-abs :P Apr 24 18:09:15 im trying to take screen captures, but the appps that i was installed over the market use a sclib exec, that is arm binary.. Apr 24 18:09:16 alternately, cat pictures or gtfo Apr 24 18:09:19 im pretty sure., Apr 24 18:09:53 this is kind of an edge case but if you're not actually doing app development with this stuff, #android-root is probably the most appropriate channel. Apr 24 18:09:55 g00s: An android with abs? 0_0 Apr 24 18:10:07 PrivateAlpha: nm, just joking Apr 24 18:10:24 dear lord another ninja op! >.> Apr 24 18:10:26 sorry about the confusion leeds :) im just trying to solve a problem :) Apr 24 18:10:40 gah Apr 24 18:11:07 hey, is there anyway to force WebView to ignore invalid SSL certificate OR to give it a CA certificate when opening a site? Apr 24 18:11:16 (on Eclair and older ;) ) Apr 24 18:11:22 ALoGeNo: is it an app development problem? Apr 24 18:11:22 screencapture is giving me black screenshoots.. and im looking a way to do that (in x86 arch) Apr 24 18:11:34 Mavrik: I can tell you how to do it for HttpClient :) Apr 24 18:11:45 that doesn't help :D Apr 24 18:12:04 well.. if i do work screencapture from command line i wanna do an app, so yep :) Apr 24 18:12:09 I know how to do it for Froyo and newer... however on those platforms the cert is valid --- Apr 24 18:12:16 maybe you could load the data into the WebView, after downloading it with the HttpClient. But I wouldn't be surprised if similar techniques work on WebView Apr 24 18:12:32 readme: thats not possible because I'm seeing numpickers in settings Apr 24 18:12:40 ALoGeNo: at that point, feel free to come back... Apr 24 18:12:46 royale1223: no, it is possible Apr 24 18:12:52 readme: I need to follow google service login redirects :) Apr 24 18:12:54 you don't even know how those "numpickers" are implemented Apr 24 18:12:58 with all session cookies and everything Apr 24 18:13:00 not really an option Apr 24 18:13:15 ALoGeNo: trying to take a screenshot? Apr 24 18:13:18 okey Leeds , gotya.. Apr 24 18:13:18 Mavrik: sure it is, you can override url loading and pass them to HttpClient instead, using WebView client. Apr 24 18:13:26 readme: how? Apr 24 18:13:28 yeah PrivateAlpha =) Apr 24 18:13:31 the cookies, you can handle yourself Apr 24 18:13:39 *sigh* Apr 24 18:13:39 switching to pm to avoid the ops Apr 24 18:13:50 royale1223: i don't know. my advice is to go on stackoverflow and find someone's custom number picker that will actually work on cyanogenmod. Apr 24 18:13:52 I really don't wanna jump through those hoops for those 50 idiots that still have 2.1 phones :P Apr 24 18:13:56 readme: lemme check cm9 sources Apr 24 18:13:57 go file a bug in cyanogenmod. Apr 24 18:14:00 oh thank you very mucho, its okey :) Apr 24 18:14:10 in any event i'm done pursuing number pickers Apr 24 18:14:31 https://github.com/SimonVT/android-numberpicker I'd trust this numberpicker to work Apr 24 18:14:40 looks good to me :) Apr 24 18:14:42 If the framework one is not an option Apr 24 18:16:05 Hello, can someone guide me with this problem please? This is my first time using handlers/looper and I'm having a hard time, This method actually runs but when the dialogs appears and I clic cancel everything is perfect in the background, but the AlertDialog won't dissapear link: http://paste.ubuntu.com/944450/ Apr 24 18:16:10 i thought this was an interesting article onapple http://www.guardian.co.uk/technology/2012/apr/23/bad-apple-employ-more-us-workers Apr 24 18:16:39 Mavrik: do you think setCertificate is a valid option? because I know how to use foreign certificates. Apr 24 18:16:52 tl;dr Apr 24 18:17:15 readme: is setCertificate for client or for server cert? Apr 24 18:17:50 Mavrik: i'm not sure I understand what you mean by that Apr 24 18:18:13 I was pretty sure the way that it works is that you download the certificate from the server, then you can trust it Apr 24 18:18:22 depending on whether, you have that certificate Apr 24 18:18:30 readme: the logical think for that to do is set client-side SSL certificate Apr 24 18:18:40 not a CA certificate for verification of server-side Apr 24 18:18:46 I don't need to set a client-side cert. Apr 24 18:19:01 Mavrik: what would that be for? I am not familiar with that Apr 24 18:19:22 I did all this stuff with bouncycastle and HttpClient a couple weeks ago. Apr 24 18:19:48 authentication of the client :) Apr 24 18:20:57 I guess that is lesser utilized Apr 24 18:25:29 Hmm, Ive got a market question Apr 24 18:25:41 awesome. Apr 24 18:25:46 yeah. Apr 24 18:25:47 * alankila managed to make his alternative pc-guided camera program that he mentioned earlier Apr 24 18:25:56 i has cheezburger Apr 24 18:26:03 using phone as a programmable camera Apr 24 18:26:24 ironhalik: you mean play? (ha ha, I kill me) Apr 24 18:26:26 If I uploaded a apk with some permissions, then uploaded 1.0.1 without those, shouldnt play store show the new permissions? Apr 24 18:26:37 alankila: awesome idea Apr 24 18:26:40 no Apr 24 18:26:47 it shows the permissions on the app that's present for you Apr 24 18:26:53 ironhalik: yeah. Did you activate the APK? Apr 24 18:26:54 if you push an app that requires INTERNET Apr 24 18:26:57 and then one that doesn't Apr 24 18:27:02 you won't see the INTERNET permission Apr 24 18:27:07 yeah, check that. Did you actually activate that apk? Apr 24 18:27:19 ironhalik: also, it takes about an hour for the caches to refresh and your new APK to be seen on the phones Apr 24 18:27:24 the program code is not even 100 lines I think Apr 24 18:27:30 yup, the version 2 is the active one Apr 24 18:27:45 ah, thats probably the issue Apr 24 18:27:54 thanks guys Apr 24 18:28:12 uses wakelock to wake the screen and keyguardmanager to bypass keyguard, then shows the cameara preview in landscape mode and listens to an intent to take a picture Apr 24 18:28:45 i found a picture of mikedg http://www.newscientist.com/data/images/ns/cms/teaser/blog/201204/main-rexfeatures_1293615b_2.jpg Apr 24 18:29:01 I don't get it. Apr 24 18:29:29 uhm does this make sense? private final OnClickListener mCenterButtonClickListener = new OnClickListener() { Apr 24 18:29:29 public void onClick(View v) { Apr 24 18:29:32 wupz Apr 24 18:29:35 idgi, mikedg isn't some sort of bee drag queen Apr 24 18:29:45 hehe Apr 24 18:29:49 xorgate: looks like it makes sense, yes Apr 24 18:29:56 I jsut put up a free version of my app in the play store, requiring API 14+ and on my Galaxy Nexus and on my buddies Galaxy S both running ICS, the play store says "install" and that it's compatible, but once we both click the install button it says "Oops we could not determined if this item is compatible with your device. Please try again later." Apr 24 18:30:07 lov: but, you know who is :) Apr 24 18:30:17 no, not really. Apr 24 18:30:21 evancharlton ah my editor fooled me.. it folded 'new OnClickListener' to 'OnClickListener' Apr 24 18:30:31 xorgate: ah Apr 24 18:30:36 intellij? :p Apr 24 18:30:40 yeah Apr 24 18:30:44 lov: oh, just a very notable silicon valley entrepreneur. Apr 24 18:31:00 is this a tim cook joke? because that's poor taste Apr 24 18:31:05 no Apr 24 18:31:19 I was referring to someone else entirely. Apr 24 18:31:28 so why the hell are you talking about mikedg Apr 24 18:31:32 this whole thing makes no sense Apr 24 18:31:37 yes mikedg Apr 24 18:31:40 who are you talking about Apr 24 18:31:47 I don't even know anymore Apr 24 18:31:56 I don't know who you think mikedg is but he's not a silicon valley entrepreneur Apr 24 18:32:23 lov: you're not very fun :| and no, mikedg was not the person I had in mind. Apr 24 18:32:28 never mind. Apr 24 18:32:44 SO CONFUSED Apr 24 18:34:37 this is how rumors start Apr 24 18:35:01 check out this pic I found of g00s http://goo.gl/zi36M Apr 24 18:35:33 we can't see the queen Apr 24 18:35:38 hehe .. i thought this pic would involve bacon somehow ... Apr 24 18:35:57 kitty bacon Apr 24 18:36:05 :) Apr 24 18:36:54 so wait, what is this tim cook thing, becuase I wasn't aware of it. Apr 24 18:37:19 tim cook once dated mikedg Apr 24 18:37:30 :O Apr 24 18:37:51 when is there going to be an API for google drive Apr 24 18:37:57 There is Apr 24 18:37:58 I need to back up my lolcats Apr 24 18:38:01 oh, nice Apr 24 18:38:44 https://developers.google.com/drive/ got it. tiny link at the bottom of the page. Apr 24 18:39:11 so, how many of you are writing apps with it right now? Apr 24 18:39:29 readme: from what I can tell, it's limited to Chrome Web Store apps only right now (?!) Apr 24 18:39:37 son of a bitch Apr 24 18:40:45 does the REST interface not aupport auth tokens? Apr 24 18:41:14 there's a java sdk evancharlton Apr 24 18:41:39 http://code.google.com/p/google-api-java-client/ Apr 24 18:41:57 oh wait, did I click like a monkey Apr 24 18:42:04 readme: yeah but there's some message about API restrictions until it's listed in the chrome web store Apr 24 18:43:53 i'll consider it a head start Apr 24 18:44:12 now, what app to develop Apr 24 18:52:05 hi Apr 24 18:52:51 readme: sorry, i got disconnected.. Did you see the links? Apr 24 18:54:44 royale1223: just use SimonVT's numberpicker Apr 24 18:55:12 https://github.com/SimonVT/android-numberpicker Apr 24 19:06:58 huh Apr 24 19:07:12 when I try to register for the google android backup service Apr 24 19:07:19 it just forwards me to the publishers console Apr 24 19:07:57 do you put the public void onClick(View v) inside the onCreate? Apr 24 19:08:07 Guys do you know whether the emulator would work inside openvz/xen container or not? Apr 24 19:08:27 what is the new funtion for showDialog? Apr 24 19:09:43 What's the best way to get the Android Machine Name? Apr 24 19:10:17 Isn't that something I wouldn't need manifest permissions for? Apr 24 19:11:38 What do you mean machine name Apr 24 19:11:48 * lov takes off his anger hat Apr 24 19:11:49 there is no usable hostname in android Apr 24 19:12:43 lov, can i borrow your hat? it's raining here Apr 24 19:12:48 the whole internets are going gaga with Google Drive it seems. Not surprising as people would sell mommy and daddy for free storage these days Apr 24 19:13:19 Well, I just assumed that they would have something like a desktop PC. Such as "Jonathan's Nexus", or something to that effect. Apr 24 19:14:49 Jonathan_Eyre: not really. Apr 24 19:17:29 Well, what about the brand name? Is there a way to fetch the model information? Apr 24 19:19:13 yes Apr 24 19:19:28 hi, i've got a samsung galaxy nexus with android 4.0 and need to add a new root ca certificate to the key store. what is the best way to do that? Apr 24 19:19:45 get root, then modify the root key store Apr 24 19:19:46 snuy: #android-root please Apr 24 19:20:02 Jonathan_Eyre: Apr 24 19:20:04 http://developer.android.com/reference/android/os/Build.html Apr 24 19:20:12 Jonathan_Eyre: sorry, just got here. what are you looking for? info about the device? because ==lov Apr 24 19:20:21 Build.PRODUCT, Build.DEVICE, etc. Apr 24 19:21:49 Does google provide a "proper" way of implementing an app to have the ICS look AND the gingerbread and older look with a single APK? I want my app to look ICS-like on an ICS device, not gingerbread-like. Apr 24 19:22:17 ninjai: you don't want to do this. Apr 24 19:22:23 you want your app look and feel to match the device Apr 24 19:22:31 oh wait Apr 24 19:22:32 http://android-developers.blogspot.com/2012/01/holo-everywhere.html Apr 24 19:22:35 sorry, what you want is exactly it Apr 24 19:22:39 what SimonVT linked to Apr 24 19:22:39 silly lov, reading it wrong Apr 24 19:22:43 tldr use theming Apr 24 19:22:44 lol Apr 24 19:23:01 I did minSdk and tartgetSdk in the manifest... is that the proper way? Apr 24 19:23:13 ninjai, of course you can Apr 24 19:23:18 just set targetSdk=15 Apr 24 19:23:21 ninjai, and you're done Apr 24 19:23:22 That's only half the battle Apr 24 19:23:26 ninjai: read SimonVT's link too. Apr 24 19:23:28 half?! :( Apr 24 19:23:29 (if you use custom attributes) Apr 24 19:23:31 I am Apr 24 19:23:32 it'll look like ICS on ICS and it'll look like GB on GB Apr 24 19:23:37 no, not holo everywhere Apr 24 19:23:39 that's not what he's asking Apr 24 19:23:44 he wants GB on GB and ICS on ICS Apr 24 19:23:50 ^ Apr 24 19:23:50 set target=15, done Apr 24 19:23:50 .. Apr 24 19:23:54 pfn didn't read it either Apr 24 19:24:06 not gonna read the link Apr 24 19:24:06 I put min to version 9, and target to 13 Apr 24 19:24:09 ._. Apr 24 19:24:09 just gonna read the title Apr 24 19:24:09 :p Apr 24 19:24:13 and it looks like ics on my gnex Apr 24 19:24:14 ninjai, 13 isn't ics Apr 24 19:24:20 I know, 14 is Apr 24 19:24:24 13 is HC Apr 24 19:24:25 ninjai, 13 is honeycomb Apr 24 19:24:29 so, ninjai Apr 24 19:24:31 what you need to do Apr 24 19:24:32 but it looks like ics on my phone Apr 24 19:24:33 honeycomb looks mostly similar to ics Apr 24 19:24:35 is look at SimonVT's link Apr 24 19:24:37 do you understand? Apr 24 19:24:38 but it isn't 100% the same Apr 24 19:24:38 yes/no Apr 24 19:24:42 read the link, then come back,. Apr 24 19:24:49 ok Apr 24 19:26:07 sdk 13 will not look quite like other ICS apps on an ICS device Apr 24 19:26:09 I have http://pastebin.com/7kniWRcx . Why must I click on the TextView in order or my click to be recognized? Apr 24 19:26:18 in particular you may see different behavior re the menu overflow icons etc Apr 24 19:26:48 Oh god yes, please don't target <14 Apr 24 19:27:21 kamoricks: I don't understand your question. Apr 24 19:27:56 why are you even calling setClickable? Apr 24 19:28:02 lov: Okay. I must click on the text in order for my click to be reocgnized. If I click on blank space that should be within the scrollview, no recognized click. Apr 24 19:31:41 lov: It's not that it's outside the scrollview, because that should be clickable. It's not that it's in the scrollview and not the text, because that should be clickable too. It's not that it's on an inner component stealing the event from the parent, because the innermost must be clicked. Apr 24 19:41:38 anyone know anything about usbhid ? Apr 24 19:44:54 wtf is wrong with facebook. everytime i add a new key hash and click to save changes, my newly added key just disappears... Apr 24 19:45:30 ctate! Apr 24 19:45:49 Why does the google android backup service registration just forward me to the publisher's console? Apr 24 19:46:13 kamoricks: you might need to call requestDisallowInterceptTouchEvent() on the scrollview Apr 24 19:46:28 t0mless: err whut? Apr 24 19:46:37 https://developers.google.com/android/backup/signup Apr 24 19:46:40 try to go there and sign up Apr 24 19:46:47 and it just forwards me to the publisher's console Apr 24 19:46:57 ctate: Hmm. Interesting, thanks, that works, but seems to break scrolling... Apr 24 19:47:06 I originally went http://code.google.com/android/backup/index.html Apr 24 19:47:15 oh sheesh Apr 24 19:47:15 there, but that forwarded me to developer.google.com Apr 24 19:47:22 ctate: For obvious reasons. Okay. I suppose what I really wanted to happen was for there to be no blank space. Apr 24 19:47:49 kamoricks: then instead of putting the textview in directly, put in e.g. a framelayout and put the textview inside that Apr 24 19:47:56 hey guys, what does >> mean? more greater than? Apr 24 19:47:59 then you can listen on the inner framelayout. i think. Apr 24 19:48:02 * pragma- nyucks-nyucks. Apr 24 19:48:02 pragma-: Operators. Apr 24 19:48:15 t0mless: thanks for the heads up; someone must have broken it Apr 24 19:48:16 kamoricks: sorry, I wasn't trying to place a call Apr 24 19:48:42 ctate :( Apr 24 19:48:51 guess I'll just play video games today then Apr 24 19:48:55 :p Apr 24 19:49:01 ctate: No dice. Though I was able to fix it by setting fillsViewPort="true" on the TextView, so there's no way to click outside of it. Not exactly what I asked for, but it works well enough. Apr 24 19:49:01 or I could implement the LVL shit Apr 24 19:49:02 video games are for children Apr 24 19:49:16 LVL. The library distributed as a set of source files. Apr 24 19:50:23 you say that like it's the only library project distributed as source out there Apr 24 19:51:14 t0mless: It really should be. Apr 24 19:51:25 hello Apr 24 19:51:38 why do I need to pass a context to a new LinearLayout? Apr 24 19:51:48 because all views need a context Apr 24 19:51:51 and a linearlayout is a view Apr 24 19:53:00 t0mless: if you log into the publisher console is there a backup API key request thing on the other side? Or does the canonical one start working if you've already logged in to the publisher console? Apr 24 19:53:07 I'm confused. So I can tell my app to target 3.2, I can tell it the minimal allowable SDK is 9 (gb), and the target that i's SDK 14, and I cannot target less than 13 because admob breaks, so I cannot support GB phones? Apr 24 19:53:30 ninjai, not necessarily Apr 24 19:53:44 admob might not use any post api-8 calls Apr 24 19:53:52 but api13 is a requirement to build Apr 24 19:53:56 as a target Apr 24 19:54:25 just because you target SDK 13 doesn't mean you can't run on GB phones Apr 24 19:54:31 I see no backup anything in the pub console ctate Apr 24 19:54:39 it just means that if you want to use APIs that were introduced post-GB, you need to be careful and have safe fallbacks. Apr 24 19:54:43 t0mless: thanks. i'm on it. Apr 24 19:55:03 * ctate has nothing to do with the api key site, but cares a lot about the backup/restore stuff in general. Apr 24 19:55:24 and it seems so easy to implement Apr 24 19:55:35 it's weird cause in the dev console it says it supports API 9-16+, but when I go to the play store it says it's not compatible with my old nexus one.. Apr 24 19:56:00 t0mless: :D Apr 24 19:56:27 ninjai: hm. did you screw up the screen size or other filtering? Apr 24 19:56:33 just a thought; that's bitten people before Apr 24 19:56:58 hrm, I should have lunch Apr 24 19:57:14 ctate, good point, apparently for admob to work you need "screenSize|smallestScreenSize" in the manifest. I guess my ol' nexus one will never work Apr 24 19:57:17 Is a regex the best way to verify a string holding an email address? Apr 24 19:57:19 cause of the admob api Apr 24 19:57:52 ninjai: that's ... odd Apr 24 19:57:53 Or should I just do a split on an '@' and verify that I have two tokens? Apr 24 19:57:56 you don't have to limit it to just small screens for admob... Apr 24 19:58:16 hm, firefox 12 is out Apr 24 19:58:47 NO WAI! Apr 24 19:59:37 ctate, the dev console shows the nexus one under "supported devices" Apr 24 19:59:56 having trouble with a usb touchscreen axis are all screwed, I see that in usbtouchscreen.c its been disabled {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE}, comments say its "handled in usbhid" Apr 24 20:00:00 ninjai: If you mean the Activity, that's a contextChangeSupported attribute. It prevents the ad from being reloaded when the phone is tiltd. Apr 24 20:03:52 kamoricks, I don't think that's what I'm talking about. I'm just talking about how my nexus one isn't supported according to the play store, but it is apparently supported by my app in the dev console... Apr 24 20:05:36 which LayoutParams should I import for setting the layoutparams for a LinearLayout? Apr 24 20:05:51 amcsi: LinearLayout.LayoutParams. Apr 24 20:06:24 am I seeing it right that different views need different layoutparams, so I may not be able to have different layoutparams to have themselves imported at the same time? Apr 24 20:06:52 SimonVT: You said you backported the NumberPicker right? Apr 24 20:07:08 amcsi: You can always use fully-qualified class names. Also note that inner classes require a static import. Apr 24 20:07:51 ah thanks Apr 24 20:08:06 LayoutParams is an inner class? Apr 24 20:08:18 amcsi: No, but LinearLayout.LayoutParams is. Apr 24 20:08:37 eclipse seems to have imported it without static and says that everything is fine Apr 24 20:10:32 Isnt this the correct way to attach the sources? http://dl.dropbox.com/u/6559846/uuui.PNG Apr 24 20:18:42 everythingWorks: no Apr 24 20:18:47 most likely not Apr 24 20:19:01 kk :) Apr 24 20:22:19 Does this work for you? https://github.com/dpadgett/Timer/downloads Apr 24 20:22:51 heh google drive shows up as an "update" from the market Apr 24 20:22:52 sneaky. Apr 24 20:23:36 selckin, it's a rename of docs Apr 24 20:23:44 if you have docs, you have drive Apr 24 20:23:59 oh Apr 24 20:24:23 so, no sneaky Apr 24 20:24:26 well, the rename is sneaky Apr 24 20:24:30 but there's no market sneakiness Apr 24 20:27:46 it's also not Market Apr 24 20:27:57 suddenclarityclarence.jpg Apr 24 20:28:05 hah Apr 24 20:29:28 Does a Spinner have a name and value for each entry? Is it data-wise like an HTML select box? Apr 24 20:29:56 The examples I have found show only how to load it with an array of display items. Apr 24 20:30:47 So, it looks like a Spinner only has the values of what is displayed. It does not have an alternate data entry for each visible entry? Apr 24 20:30:59 Please let this be wrong... Apr 24 20:31:27 No, that's correct. There's two ways to do this Apr 24 20:31:38 1) Have two arrays in your arrays.xml; one that contains the keys, and one that contains the values Apr 24 20:31:50 2) Have an adapter that your spinner hooks up to; that will know what item is being selected. Apr 24 20:32:12 the arrays.xml method is meant for small amounts of static data where the key/values will never change Apr 24 20:32:23 as such, it's not particularly onerous to ask you to hardcode two arrays Apr 24 20:35:46 That will not work right off, since the Spinner is being populated by a database. However, if the select event specifies the index, and I hold onto a few arrays with specific info, it should theoretically work. Apr 24 20:36:24 .... right, which is kind of how this is expected to work. Apr 24 20:36:31 You could use a CursorAdapter that points to your database or something. Apr 24 20:44:15 can anyone explain why a constructor with signature "public FooType(boolean, long)" would be invoked with 4 arguments in dalvik bytecode? Apr 24 20:44:23 it wouldn't Apr 24 20:44:34 i have a concrete case where it is Apr 24 20:44:35 a subclass is invoking it? Apr 24 20:44:40 lex86: pastebin it, fool Apr 24 20:44:45 i dont believe you Apr 24 20:44:47 it would crash Apr 24 20:45:07 yeah i don't believe it either, but i'm looking at it in smali now Apr 24 20:45:15 lex86: great, how about you show us? Apr 24 20:45:16 :) Apr 24 20:45:24 give me a minute Apr 24 20:46:40 https://docs.google.com/a/zynga.com/document/d/1-FtYkcGcslR-WzidQicCqfO8rbhi7ImjZ5t6Nx2MFks/edit Apr 24 20:46:46 bah Apr 24 20:46:55 fuck Apr 24 20:46:58 does that link work ? Apr 24 20:47:01 * canadiancow|work hopes not Apr 24 20:47:20 no, it asks if I want to request access Apr 24 20:47:35 ok good Apr 24 20:47:43 i really need to clear my clipboard when i start switching tasks Apr 24 20:49:11 okay, sorry, had to sanitize some crap.... here: http://pastebin.com/E0yXwT7y Apr 24 20:49:20 Hi JakeWharton, as the resident action bar guru...not sure if you can comment on the race condition with page flipper and menu items? Apr 24 20:49:22 https://github.com/snodnipper/page-flipper-race-condition Apr 24 20:49:52 In ABS or in general? Apr 24 20:50:04 maybe a smali mistake? I haven't checked dexdump yet Apr 24 20:50:11 in general...I assume it would be the same in ABS Apr 24 20:50:28 lex86: isn't v2 = the object, v5 = Z, v3 = J, v4 = V? Apr 24 20:50:36 though hm, V is void I think? Apr 24 20:50:40 V is the return type Apr 24 20:50:42 oh but it's an init Apr 24 20:50:43 yeah Apr 24 20:50:44 yeah, void Apr 24 20:50:44 Yes I have two bugs filed on ABS that mention the same behavior Apr 24 20:50:53 JesusFreke: you around? Apr 24 20:51:01 yup Apr 24 20:51:19 http://abs.io/i/443 and http://abs.io/i/351 Apr 24 20:51:33 glad to know it's a platform bug :) Apr 24 20:51:35 JesusFreke: http://pastebin.com/E0yXwT7y Apr 24 20:51:36 JakeWharton: ummm...my demo there seems to demonstrate it pretty reliably...just shove in some images and the bug shows itself...will check out those links Apr 24 20:51:45 evancharlton: got it (just read backlog) Apr 24 20:51:46 :) Apr 24 20:52:12 snodnipper: I assume it's do to the asynchronous nature of fragments Apr 24 20:52:13 lex86: the first argument is the "this" argument (the object being constructed), the second argument is the boolean Apr 24 20:52:14 JakeWharton: well, I was planning on raising it as an issue Apr 24 20:52:31 right, yeah, that makes sense... but why is there a forth arg? Apr 24 20:52:37 and the third and forth are the long argument (longs are 64-bit, so they require 2 32-bit registers) Apr 24 20:52:45 invalidateOptionsMenu() is a synchronous call and the FragmentManager is going to operate asynchronously when called from a FragmentPagerAdapter Apr 24 20:52:51 JakeWharton: I guess so...but it is really annoying...something as simple as an admob image change with break menu items Apr 24 20:52:56 JesusFreke: ah-ha! Apr 24 20:52:58 ohh Apr 24 20:53:18 i was wondering about that Apr 24 20:53:30 but thought the iget-wide took care of it Apr 24 20:53:54 snodnipper: I'm willing to bet if you change FragmentPagerAdapter to call executePendingTransactions() rather than letting it run asynchronously you'll see the bug disappear Apr 24 20:53:56 that iget-wide actually sets the value of both v3 and v4 : Apr 24 20:53:58 :) Apr 24 20:54:13 also, note that for long arguments like that, they must be sequential Apr 24 20:54:19 you couldn't use, for example, v3 and v5 Apr 24 20:54:42 Hi there, I'm trying to run the following but I keep getting a NPE whenever I try to do anything with the button getReward, why? http://pastebin.com/hB0j85zH Apr 24 20:54:43 ah okay, i must have missed that in the docs Apr 24 20:54:47 and you use 2 registers that had been initialized seperately Apr 24 20:55:02 nickhs: please attach your stack trace from logcat as well Apr 24 20:55:04 like, if you tried to do const v3, 1234 Apr 24 20:55:08 and const v4, 5678 Apr 24 20:55:11 evancharlton, one sec Apr 24 20:55:17 you couldn't use v3, v4 as a long argument Apr 24 20:55:24 gotcha Apr 24 20:55:25 is it possible to use alertdialog as a wizard? Like reuse/recycle it and stuff? Set diffrent message and button text on clicking? Apr 24 20:55:35 JesusFreke: thanks! Apr 24 20:55:42 "and you use 2 registers that had been initialized seperately" -> "and you *can't* use 2 registers that had been initialized seperately" Apr 24 20:55:43 sorry :) Apr 24 20:55:48 royale1223: just use an activity and use the dialog theme Apr 24 20:55:53 http://paste2.org/p/1993438 Apr 24 20:55:59 evancharlton, ^ Apr 24 20:56:24 nickhs: which line is line 34? Apr 24 20:56:33 04-24 13:51:56.953: E/AndroidRuntime(10786): Caused by: java.lang.NullPointerException Apr 24 20:56:34 04-24 13:51:56.953: E/AndroidRuntime(10786): at com.nickhs.rewardSpammer.RewardSpammerActivity.onCreate(RewardSpammerActivity.java:34) Apr 24 20:56:39 so uh. don't do that. :) Apr 24 20:57:15 line 34 is the OnClickListener - line 8 in http://pastebin.com/hB0j85zH Apr 24 20:57:20 JesusFreke: right, so basically iget-wide implicitly sets vA and vA+1? Apr 24 20:57:24 evancharlton: I know about that but can i use alertdailog instead? Apr 24 20:57:25 JakeWharton: ummm...I'll give it a go....I must admit that I would expect the last options menu to win somehow....java concurrency in practice :) Apr 24 20:57:27 lex86: yep Apr 24 20:57:39 nickhs: getReward is null, then Apr 24 20:57:40 JesusFreke: cool, thanks a lot Apr 24 20:57:44 nickhs: so getReward is probably null. you would see this if you stepped through your onCreate() method, btw. Apr 24 20:57:44 np Apr 24 20:57:46 breakpoints ftw. Apr 24 20:57:50 royale1223: it's going to be pretty painful Apr 24 20:57:55 I got that - but why? I initialize it above Apr 24 20:58:01 feel free to drop by #smali also, if you have related questions :) Apr 24 20:58:07 nickhs: it didn't find the view you wanted Apr 24 20:58:09 nickhs: that will return null if it's not found in the current layout Apr 24 20:58:12 and so returned null Apr 24 20:58:28 it's not found becuase you didn't call setContentView() *before* trying to look up the views Apr 24 20:59:00 so of course they aren't there -- when you're calling findViewById(), the activity has no layout at all Apr 24 20:59:10 I had setContentView at the end of the method not the start -> that was my problem Apr 24 20:59:39 thanks everyone :) Apr 24 21:00:00 evancharlton: I can take some pain.. Do you know how to recycle an alerdialog onclicking +ve button? Apr 24 21:00:43 recycling dialogs is not a good idea Apr 24 21:00:52 use dialog/alert-themed activities if you want to do fancy things. Apr 24 21:00:58 it really is a lot easier. Apr 24 21:02:18 where can I find an example of the action bar used on a dialog? Apr 24 21:02:42 ActionBarImpl has a Dialog constructor which I don't really use/support in ABS Apr 24 21:02:47 shouldn't you know? :P Apr 24 21:02:56 I should, but i've never seen it Apr 24 21:02:57 I thought dialogs don't get actionbars... Apr 24 21:03:06 ctate: why is it not a good idea? Themed activity does not look like an alertdialog... Apr 24 21:03:24 royale1223: on ICS it does Apr 24 21:04:34 you can theme an activity to look like an alertdialog Apr 24 21:07:31 JakeWharton: Let me see, but I need to use it on froyo too atleast Apr 24 21:08:04 pfn: it doesn't look close enough Apr 24 21:08:22 then you need to fix your theme Apr 24 21:08:39 Just roll your own in a dialog, it'll be much less hacky Apr 24 21:08:59 c Apr 24 21:09:17 JakeWharton: I don't understand. Roll your own? Apr 24 21:09:27 you were talking about a wizard right? Apr 24 21:09:30 was that not you? Apr 24 21:09:37 JakeWharton: yes. Apr 24 21:09:37 i'm not really paying attention Apr 24 21:09:58 JakeWharton: You mean i should use multiple dialogs? Apr 24 21:10:01 dialog + view flipper + custom button bar Apr 24 21:10:29 t0mless: Apr 24 21:10:31 ping Apr 24 21:10:46 JakeWharton: hmm, sounds good to me... thanks Apr 24 21:11:15 oh hi Apr 24 21:11:41 t0mless: pm ok? Apr 24 21:11:45 yea Apr 24 21:12:01 but only if you talk naughty Apr 24 21:12:03 ;) Apr 24 21:28:05 okay, the backup service key registration form should be working again now. https://developers.google.com/android/backup/signup Apr 24 21:30:27 and if your app has any sort of user data you should be using it! Apr 24 21:30:37 well, not for passwords/etc Apr 24 21:41:27 I have a webview in my app and ocassionally users can come across a youtube video, but when you try to play it, the video tries to play in the webview. does anyone know of a way i could have the app tell the user clicked on a youtube video and open the youtube app to play it? Apr 24 21:43:39 Some users are having troubles with an update I posted to my app today. I have however only figured out parts of the problem, since I cannot reproduce the error on my own device or in the emulator. If anyone has the time to do a quick test to see if they get the error, I'd be very grateful :-) App link here: https://play.google.com/store/apps/details?id=net.veierland.aix Apr 24 21:43:51 I setted an OnLongClickListener to an ImageView and a OnTouchListener to the same ImageView and also to the parent RelativeLayout. After the longClicked I want to track the MOVE action, but once the longClicked callback is consumed the OnTouch listener stop recieving updates. What can I do? Apr 24 21:45:45 Is there any method that I can call to make the RelativeLayout start recieving on touch updates? I tried requestFocus() and requestFocusFromTouch(), but neither helped. Apr 24 21:47:13 greetings all. how do I acquire a view from within a fragment? The view in question is one that is associated with the fragment in XML by onCreateView() Apr 24 21:50:04 use rootview.findViewById() during onCreateView() to get an object handle on the view Apr 24 21:50:10 and then store that in a member field Apr 24 21:54:43 t0mless, rooview is an object representing the parent view group? Apr 24 21:55:00 no Apr 24 21:55:11 the view you're inflating and returning in onCreateView Apr 24 21:55:25 ohhh, i understand Apr 24 21:55:30 * hesperaux tries Apr 24 22:01:57 why isn't my app updating on the play store? I can clearly see 1 active apk in the dev console, which says versionCode 4, versionName 1.0.2, and in the play store it says version 1.0.0 Apr 24 22:02:38 ninjai: It can take a little while Apr 24 22:02:45 oh really? Apr 24 22:02:50 how long is a while? Apr 24 22:02:57 its been a few hours I think Apr 24 22:04:12 Hi. I'm trying to handle an ImageView onLongClick and it's parent RelativeLayout onTouch(to track move). The problem is after the onLongClick is dispatched from the ImageView the RelativeLayout onTouch is no more dispached. Any approachs please? Apr 24 22:12:02 Some users are having troubles with an update I posted to my app today. I have however only figured out parts of the problem, since I cannot reproduce the error on my own device or in the emulator. If anyone has the time to do a quick test to see if they get the error, I'd be very grateful :-) App link here: https://play.google.com/store/apps/details?id=net.veierland.aix Apr 24 22:12:56 skfax: K. Apr 24 22:13:06 whats the error? Apr 24 22:14:08 The widget will fail to get timezone data, and thus fail the whole data update process. The timezone data method fails because the latitude/longitude values are null. I have yet to figure out why they are set improperly Apr 24 22:14:50 because gps is off? Apr 24 22:14:57 or no location provider? Apr 24 22:15:10 So if you get the problem on your device, I can either send you a version with some more debug output enabled - or if you just post the SQlite database, that would be very helpful Apr 24 22:15:22 t0mless: The location is set up statically through a geocoder + location search Apr 24 22:16:25 Setting up the location seems to work fine, but there's been a few changes to how settings are handled, so there seems to be some bug causing it to do something silly Apr 24 22:18:58 Hi guys, does anyone know if it is possible to update an app in google play without making the user re-download the full set of assets and images? i.e. partial update Apr 24 22:19:32 are you using the secondary asset packages? Apr 24 22:19:38 orwhatever they're called Apr 24 22:20:11 expansion files Apr 24 22:20:12 t0mless: thanks, good pointer, will look into it (didnt know that existed) Apr 24 22:20:23 it didn't until recently Apr 24 22:20:32 http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html Apr 24 22:21:19 are your assets park of your APK or do they download seperately after installing the app? Apr 24 22:21:26 t0mless: yep, I got it, thanks a lot Apr 24 22:25:04 Anyone knows how i can use the money from my app sales in google wallet? Apr 24 22:27:00 Somebody oghta know :P Apr 24 22:35:14 psychuil: in general how do you get money out of the Play store? Apr 24 22:36:04 is it possible to select values like 10,20,30,40... from NumberPicker? Apr 24 22:36:04 ctate, no idea, never done it before Apr 24 22:36:25 is it possible to only select values like 10,20,30,40... from NumberPicker? Apr 24 22:39:47 psychuil: anyway, you might have to e.g. have Play pay out to you, then turn around and put the money back into Wallet Apr 24 22:39:52 a little cumbersome but it works Apr 24 22:40:06 i don't think you can have them share a running balance Apr 24 22:40:26 ctate, and they take a share out of each? :\ Apr 24 22:40:29 yes it could.... Apr 24 22:40:41 i have never used Wallet Apr 24 22:40:46 bit tricky though Apr 24 22:40:48 psychuil, there's no share taken out of wallet Apr 24 22:40:57 psychuil, you can't roll over 100% of your app sales either way Apr 24 22:41:03 presumably the Play Store has already taken the carrier cut by the time it is credited to you Apr 24 22:41:03 not out of your end, anyway Apr 24 22:41:36 I wanna use the money there to buy the Gnex, since google won't take my credit card, since it's not a US one Apr 24 22:42:21 yeah you probably have to manually load up the Wallet account Apr 24 22:42:51 What do you mean by manually load it up? Apr 24 22:43:53 err, do whatever it is that you do in order to add money to your Wallet account Apr 24 22:44:00 like i said, i've never used Wallet, so i don't know how that goes Apr 24 22:44:20 All i wanna do is buy my wife a device >_< Apr 24 22:44:39 the $ in your merchant account != google wallet account Apr 24 22:44:52 Well, that sucks Apr 24 22:45:09 google merchant and google wallet are not the same thing Apr 24 22:45:23 you might be able to get the google merchant account to payout to your google wallet account Apr 24 22:45:24 I expected it to be like paypal Apr 24 22:45:51 t0mless, i've been digging in both sites for the past hour or so, i don't see a way to do it Apr 24 22:46:41 only place I'd think it could be done is in checkout settings->financials Apr 24 22:46:59 Anyways, i need to go and get some dinner before the hotel stops serving it Apr 24 22:48:03 yeah, as far as i can tell they're not hooked together on the back end Apr 24 22:48:07 (google is not a bank) Apr 24 22:48:30 google should be a bank... free loans! Apr 24 22:58:50 hi can anyone help my i tried to install a OTA update on my atrix trough CWM it all looked good and then failed to boot 4 HELP please Apr 24 22:59:40 spanner3003: #android-root Apr 24 23:00:16 ok thanks Apr 24 23:04:19 Is it possible for a children View to handle the OnTouch Down event and to the parent View to handle the OnTouch Move event? Having in mind that will only be one Down event. Apr 24 23:05:05 a while back, someone in this channel wrote an app to oragnize impromptu sports games; anyone remember what that was ? Apr 24 23:05:28 yurakeshi, sell in the child's onTouch you can check whether or not it's a move, then forward to super's onTouch if it is Apr 24 23:05:32 well* Apr 24 23:07:20 Ginto8, but the parent View is the container who has the children, not the children super class. I tried to use onIntecerptTouchEvent, but it is only call before the DOWN event Apr 24 23:07:33 so question Apr 24 23:08:16 yurakeshi, you can have onTouchEvent() in the children right? Apr 24 23:08:28 oh wait nvm Apr 24 23:08:28 hmm Apr 24 23:08:56 so I've got a similar problem Apr 24 23:09:05 so when do i get 4.0.4 on my GSM Galaxy Nexus and Google Wallet? Apr 24 23:09:20 holy fuck, apple is making $6.5 million in profit every hour Apr 24 23:09:32 my parent view has a gesture listener for scrolling, and the children have several onClickListeners, but I can't seem to access them Apr 24 23:11:57 g00s: Kind of related, what do you think of this article - http://www.electronista.com/articles/12/03/10/mika.mobile.says.android.money.losing.platform/ Apr 24 23:12:16 (I have my opinion already, but I am not (yet) an experienced Android dev guy.) Apr 24 23:16:50 hrm Apr 24 23:16:58 JSONObject can't handle floats? Apr 24 23:17:29 t0mless, getDouble Apr 24 23:17:50 hrrrm Apr 24 23:21:24 rking: yeah, i read that one when it made its rounds :) Apr 24 23:22:31 i won't pretend to know for sure; but there is clearly a strong disconnect between the # of activations and profit potential; many devs make the mistake of thinking that there is this huge number of phones out there, and therefore it should be easy to make money Apr 24 23:22:56 well if there are 500 million devices Apr 24 23:23:05 i should be able to sell my $5 app to 1% of them Apr 24 23:23:07 right? Apr 24 23:23:30 not if that demographics doesnt use their phones for that kind of thing ;) Apr 24 23:23:38 err, grammar Apr 24 23:23:38 fail Apr 24 23:24:18 perhaps one demographics buys more apps, and spends more time inside of an app Apr 24 23:24:39 And one, kinda large, demographic doesn't pay anything for their apps. Apr 24 23:25:10 is that the "pirate" demographic? Apr 24 23:25:17 arrr Apr 24 23:25:18 or the "what's an app" demographic Apr 24 23:25:34 "whats an app demographic" seems much larger Apr 24 23:29:02 "When asked by Richard Gardner of Citigroup whether Apple will eventually converge its iPad and MacBook Air products into a single computing device combining the portability of a tablet with the functionality of a keyboard and full desktop operating system, Cook dismissed the idea as poorly conceived." <-- interesting Apr 24 23:29:33 (talking about ms strategy to have windows 8 on all form factors) Apr 24 23:29:45 i had assumed ios and mac os would converge more, maybe not :/ Apr 24 23:30:21 an iOS device with a keyboard that could flip away! that would be almost like both... Apr 24 23:33:23 what's an app? Apr 24 23:36:59 g00s: But why would iOS be any different in the regards of demographics? Apr 24 23:37:07 g00s: Are they that much quicker to shell out $? Apr 24 23:39:36 my question might be stupid but if I want to implement an AutoCompleteTextView does it make sense to use a Loader? Apr 24 23:45:10 i can't believe each update to the app on AppStore is submitted for review Apr 24 23:49:26 im not sure why, but eclipse decided to stop recognizing a phone that i had no problems with in the past, the drivers are updated, any ideas? Apr 24 23:49:57 when that happens to me, restaring eclipse fixes it Apr 24 23:50:02 *restarting Apr 24 23:50:15 i've tried multiple times :D Apr 24 23:50:54 hmm Apr 24 23:51:23 you sure it's eclipse? Apr 24 23:51:30 is adb recognizing the phone? Apr 24 23:51:50 not sure how to check that, what's the command? Apr 24 23:55:16 Anyone have advice on how to start doing freelance mobile dev? Is there maybe a decent site where people put out ideas then devs put out bids? Apr 24 23:55:30 google.com Apr 24 23:55:54 t0mless: do you know what the command is? i've been looking through the command list, can't seem to find anything Apr 24 23:56:37 adb devices Apr 24 23:56:56 t0mless: yeah it doesnt seem to detect it Apr 24 23:57:02 so it's not eclipse Apr 24 23:57:08 your system isn't detecting the device Apr 24 23:57:15 you updated your device lately? Apr 24 23:57:24 need to re-enable USB Debugging? Apr 24 23:57:34 yes, well lately as in 2 weeks ago, no usb debugging is on Apr 24 23:57:53 this device just stopped working 1 day ago, before that it was dtected fine Apr 24 23:58:04 so what did you change Apr 24 23:58:09 also, what OS? Apr 24 23:58:21 i think we may have installed a few things with the sdk, windows Apr 24 23:58:34 is the device showing up in your device manager? Apr 24 23:58:44 yes Apr 24 23:58:54 as ADB Composite Device? Apr 24 23:59:00 or something like that Apr 24 23:59:10 Composite ADB Interface? Apr 24 23:59:15 forget what it says exactly Apr 24 23:59:19 but ADB is in it Apr 24 23:59:34 hmm 1 min Apr 25 00:00:49 t0mless: not really, it says "MTP USB Device" Apr 25 00:00:52 but Apr 25 00:01:00 on the front page is says "Droid pro" Apr 25 00:01:21 is the usb debugging icon in the notification bar of the device? Apr 25 00:02:09 t0mless: as in that usb image on the top left yes Apr 25 00:02:26 hrm, my device used to have a second usb debugging icon Apr 25 00:02:29 but it doesn't anymore Apr 25 00:03:57 it's black magic :( Apr 25 00:04:11 it doesnt seem to be working with anything else either Apr 25 00:04:16 what if i kill adb Apr 25 00:04:22 you could try that Apr 25 00:04:34 but you should have something at the top of your device manager "ADB Interface" Apr 25 00:04:47 mine has one entry under that "Mot Composite ADB Interface" Apr 25 00:05:15 still nothing even after eclipse restart Apr 25 00:06:03 what USB mode are you in? Apr 25 00:06:08 pc mode Apr 25 00:06:20 that's it Apr 25 00:06:25 put it in charge or mass storage Apr 25 00:06:26 hmm? Apr 25 00:06:29 probably charge only Apr 25 00:06:35 if you want to use the sd card Apr 25 00:06:40 hello, could u help me with this question plz? http://stackoverflow.com/questions/10307675/eclipse-dont-reconize-r-java-even-without-errors Apr 25 00:07:10 hrm, mine works in pc mode too though Apr 25 00:07:23 yeah i just tried it it didnt work :S Apr 25 00:07:31 bluezone you may as well close eclipse until you can get adb to detect it Apr 25 00:07:35 it used to work in pc mode when it was working Apr 25 00:07:36 because eclipse just uses adb Apr 25 00:07:38 kk Apr 25 00:07:50 so i scrapped the actionbarsherlock Tabs example and i'm feeling much better now Apr 25 00:07:53 try adb kill-server Apr 25 00:08:35 restarted succefully but still not detected Apr 25 00:08:53 hmm Apr 25 00:08:55 i have an idea Apr 25 00:09:14 reinstall your device drivers? Apr 25 00:09:20 tried that already :D Apr 25 00:09:32 try swapping USB ports Apr 25 00:09:40 kk Apr 25 00:09:58 right after i unistall htc sync, i installed it for another phone maybe thats the problem Apr 25 00:09:59 cyberrog can you generate an R.java file from a new android project in your setup? Apr 25 00:10:51 and/or are you sure there are no errors? Apr 25 00:10:52 t0mless im gonna try that Apr 25 00:11:11 I think it's view->error log or something like that in eclipse Apr 25 00:11:16 yep not working lol Apr 25 00:11:30 i hate stoopid problems like this Apr 25 00:12:05 maybe if i keep spamming adb devices it will show up eventually :) Apr 25 00:12:31 bluezone htc phone / windows / adb not connected / is the problem ? Apr 25 00:13:05 t0mless I just created a new project and it didnt generated the file automatically Apr 25 00:13:09 GuNboss: no Droid pro is not getting detected in windows by adb even though the drivers are set up and the phone has usb debug on Apr 25 00:13:22 It shows the same error, as if the R.java didnt exists. Apr 25 00:13:53 did you build the project? Apr 25 00:14:35 yeah Apr 25 00:14:45 and nothing in the error output? Apr 25 00:14:47 could it be a problem with eclipse? Apr 25 00:15:08 you have the sdk directory defined? Apr 25 00:15:12 eys Apr 25 00:15:14 yes* Apr 25 00:15:22 check your error log Apr 25 00:15:22 did you try / disconnect any usb devices / uninstall adb usb driver / reboot system / install adb usb driver / ? Apr 25 00:15:30 I mean, that native eclipse that is on Ubuntu software center, because in 11.10, I couldnt isntall the sdk on it, now I can, however it doesnt work Apr 25 00:15:44 wut? Apr 25 00:15:44 im not using usb devices, Apr 25 00:15:51 he's not talking to you Apr 25 00:16:05 I was guessing if the problem is on this Eclipse that is available on Ubuntu Software Center Apr 25 00:16:24 why couldn't you install the sdk on 11.10? Apr 25 00:16:35 GuNboss: what do you mean by "adb" usb driver, i tried reinstalling the phone drivers though yes Apr 25 00:16:48 t0mless IDK, the eclipse I downloaded from the software center didnt work correctluy Apr 25 00:16:58 you could try using the google provided usb driver in the sdk bluezone Apr 25 00:17:01 but now on 12.04 LTS, I installed the sdk, however there is this issue Apr 25 00:17:11 build with ant Apr 25 00:17:15 and see if there are errors Apr 25 00:17:51 I mean adb usb driver that used for transfer special command to phone. and is not provided by default, so need to install. Apr 25 00:18:11 aghh, this process of changing OS's just sucks. You have to setup everything all the time, and it lates a bit to it to reach the point you want Apr 25 00:18:13 GuNboss: where do i get this? Apr 25 00:18:15 bluezone: I mean adb usb driver that used for transfer special command to phone. and is not provided by default, so need to install. Apr 25 00:19:25 ctate can I add a BackupHelper from a BackupAgent class, or only from BackupAgentHelper class? Apr 25 00:19:52 bluezone: need to check motorola download Apr 25 00:20:48 bluezone: http://www.motorola.com/consumers/v/index.jsp?vgnextoid=bda09ec8009a0210VgnVCM1000008806b00aRCRD Apr 25 00:21:13 ctate nvm, I think I answered my own question Apr 25 00:21:27 any idea? Apr 25 00:21:44 ctate because I want to backup SharedPrefs and data from an SQLDatabase Apr 25 00:21:46 test Apr 25 00:21:49 yay not banned Apr 25 00:21:55 WHY WAS I BANNED THE OTHER DAY Apr 25 00:22:04 ^ Thats why Apr 25 00:22:09 cuz you touch yourself at night Apr 25 00:22:30 Also, the channel says you're banned when really you're just not identified with nickserv Apr 25 00:23:11 cyberrog build with ant, see if there are errors Apr 25 00:23:20 then you can know it's eclipse's issue Apr 25 00:23:24 GuNboss: brb gotta restart Apr 25 00:25:15 t0mless how do I do that:? Apr 25 00:25:24 install ant Apr 25 00:25:46 t0mless, u have a link about it? Apr 25 00:25:49 then do android update project -p /path/to/project Apr 25 00:25:53 ant.apache.org Apr 25 00:25:57 then do ant debug Apr 25 00:26:03 is it possible to launch an activity without defining it in the manifest? Apr 25 00:26:08 Jug6ernaut, no Apr 25 00:26:19 Well Apr 25 00:26:23 as for having to setup for different OS... just build everything with ant, and you're done Apr 25 00:26:26 you can launch an activity of another app Apr 25 00:26:31 no need to set stuff up everywhere Apr 25 00:26:37 but it's defined in SOME manifest Apr 25 00:26:39 yeah, but the activity must be defined in some manifest Apr 25 00:26:41 lol Apr 25 00:26:47 k Apr 25 00:26:54 you can't just launch an arbitrary non-manifest registered activity Apr 25 00:27:06 Start all the things!! Apr 25 00:27:09 if you want to not register stuff in manifest Apr 25 00:27:13 use a single super activity Apr 25 00:27:16 and have it switch content views Apr 25 00:27:21 or better yet Apr 25 00:27:24 use fragments Apr 25 00:27:25 depending on its flags Apr 25 00:27:31 t0mless it saysbuild.xml doesnt exists Apr 25 00:27:39 cyberrog, you didn't android update project Apr 25 00:27:42 like you were told Apr 25 00:27:44 follow all instructions Apr 25 00:27:45 ^ Apr 25 00:28:20 same error for ant update project Apr 25 00:28:26 not ant Apr 25 00:28:35 learn to follow instructions Apr 25 00:28:36 "android update project -p /path/to/project" Apr 25 00:28:42 the command would be android Apr 25 00:29:05 I'm also assuming you either know to be in the tools/ directory of the sdk or have it in your PATH Apr 25 00:29:11 android: command not found Apr 25 00:29:12 but that might be assuming too much Apr 25 00:29:17 Ding. Apr 25 00:29:47 either add platform-tools/ and tools/ to your PATH Apr 25 00:29:58 or run the command from the tools/ directory in the android-sdk Apr 25 00:30:01 I think it's tools Apr 25 00:30:06 it's tools Apr 25 00:30:45 I am inside the tools directory Apr 25 00:31:03 ./android update project -p /path/to/project Apr 25 00:31:25 why did you install ubuntu if you don't know how to linux? Apr 25 00:31:37 permission denied for ./android, and I've set 777 to it, but it doesnt wortk Apr 25 00:31:49 of course I know how to Linux, I tried ./ Apr 25 00:32:00 did you put it in a root protected folder? Apr 25 00:32:05 no Apr 25 00:32:10 its on another partition Apr 25 00:32:10 cyberrog: sh android ... Apr 25 00:32:18 old news, i am sure ;) http://googlemobile.blogspot.com/2012/04/galaxy-nexus-now-on-sale-in-google-play.html Apr 25 00:32:27 what is a "root protected folder"? Apr 25 00:32:36 you don't know how to "linux" then Apr 25 00:32:53 pfn http://code.google.com/p/acra/ has an activity, and afaik it never gets defined it any where, as its a jar lib :\ Apr 25 00:33:02 * pfn boggles at the lack of basic computer proficiency from would be developers :( Apr 25 00:33:09 Pragma, thanks it worked. Instead of other people who just know how to judge who knows Linux better than others, you helped. Thanks! Apr 25 00:33:21 pragma-, thanks a lot! Apr 25 00:33:28 Jug6ernaut, and the docs don't tell you to register the activity if you want to use it? Apr 25 00:33:43 pfn i just looked through them and i dont see it saying to anywhere Apr 25 00:33:49 http://code.google.com/p/acra/wiki/BasicSetup?tm=6 Apr 25 00:34:24 Jug6ernaut, then that activity isn't used Apr 25 00:34:38 xD Apr 25 00:34:57 * Jug6ernaut is fairly sure it is Apr 25 00:35:22 maybe im clutching @ straws here Apr 25 00:35:37 how are you certain it has an activity? Apr 25 00:35:41 pfn if this place is not for helping each other, but, judging, it shouldnt exists. You shouldnt say this.. what if someone doesnt know linux, what if someone is trying to learn? Apr 25 00:35:50 pfn looked at the source Apr 25 00:36:09 cyberrog, they should go learn in a linux specific forum Apr 25 00:37:13 pfn, no one is trying to learn here, Im trying to solve another problem Apr 25 00:37:40 Jug6ernaut, and fyi, if you read the setup docs, it tells you how to use the crash report dialog Apr 25 00:38:42 pfn i know...im not wanting to use acra Apr 25 00:38:53 Jug6ernaut, anyway, acra does no magic Apr 25 00:38:59 no activities without registering in manifest Apr 25 00:38:59 i wanna know how its showing an activity without it ever being in a manifest xD Apr 25 00:39:06 wrong Apr 25 00:39:11 who said it doesn't register in manifest? Apr 25 00:39:28 the jar it includes has no manifest Apr 25 00:39:44 so? Apr 25 00:39:54 where would it be registered then? Apr 25 00:39:54 library project manifests are not used when packaging applications Apr 25 00:40:00 in the main application's manifest Apr 25 00:40:01 of course Apr 25 00:40:21 ^ Apr 25 00:40:22 library-project manifest is only used for determining package name Apr 25 00:40:23 then what manifest is it being registered Apr 25 00:40:32 the *MAIN APPLICATION MANIFEST* Apr 25 00:40:51 * pfn repeats again Apr 25 00:40:58 library-project manifests are only used for determining package name Apr 25 00:41:10 yes thats fine Apr 25 00:41:12 * Jug6ernaut doesnt care about that Apr 25 00:41:20 yes, you do Apr 25 00:41:24 because you keep asking the same question Apr 25 00:41:28 Jug6ernaut are you actually launching the activities in the library or just extending from them? Apr 25 00:41:47 i see no where in the docs, where it ever tells the user to put the add the activity to there manifest Apr 25 00:41:55 you are not good at reading docs Apr 25 00:42:07 possibly, show me where then. Apr 25 00:42:11 NOTIFICATION: displays a Toast when the app crashes, then a notification in the status bar asking your user to send a report. When the notification is selected, a Dialog asks for authorization + optional user comment. Apr 25 00:42:17 now, you figure out where that text is yourself Apr 25 00:42:46 i can see that test perfectly fine, no where in it does it say "put this shit in ur manifest" Apr 25 00:42:52 lies Apr 25 00:43:11 t0mless the user of the lib never launches or extends teh activity, its done automatically Apr 25 00:43:21 you don't see that text Apr 25 00:43:28 because you clearly didn't read the instructions with the contained link Apr 25 00:43:47 s/with/within Apr 25 00:44:41 fine, bc that was so hard. Apr 25 00:50:06 can one of you guys help me figure out an exception? I can post code and XML Apr 25 00:50:22 I'm trying to implement this solution: http://stackoverflow.com/questions/6091194/how-to-handle-button-clicks-using-the-xml-onclick-within-fragments Apr 25 00:51:12 http://pastebin.com/Vz85mkvh <---This is the main Activity Apr 25 00:51:30 exception and stack first Apr 25 00:51:32 code second Apr 25 00:51:33 http://pastebin.com/86qG22kT <---This is the Fragment it loads Apr 25 00:51:47 damn, i have to export that in eclipse Apr 25 00:51:50 * hesperaux grumbles Apr 25 00:53:09 http://pastebin.com/URCBtZmc Apr 25 00:53:32 http://pastebin.com/2aGTH1bu <---This is the XML layout used for the fragment, in which the problem seems to exist Apr 25 00:53:51 you want help, no grumbling Apr 25 00:55:51 tabToday is null Apr 25 00:55:53 * hesperaux stops grumbling and points to stack trace pastebin (the unlabeled one) Apr 25 00:56:03 wat Apr 25 00:56:04 * hesperaux looks Apr 25 00:56:23 why is it null? Apr 25 00:56:32 because you never initialize it Apr 25 00:56:32 I instantiated it in onCreate() Apr 25 00:56:43 look again Apr 25 00:56:54 you defined a stack-local variable Apr 25 00:57:08 oh fuck Apr 25 00:57:10 lol Apr 25 00:57:16 nice one Apr 25 00:57:30 i did make it private, but that's a different tabToday Apr 25 00:57:32 fffuuuuu Apr 25 00:57:53 thanks :D Apr 25 00:57:54 anyway, easy fix Apr 25 00:57:58 yeah very easy fix Apr 25 00:57:59 nuke 2 words and done Apr 25 00:58:42 actually i was referencing the wrong thing entirely Apr 25 00:58:52 that's just a tab... I meant to reference the fragment. even more derp Apr 25 01:18:28 pfn, it's still doin it Apr 25 01:18:39 it's a private instance object of my activity Apr 25 01:19:18 i instantiate it in onCreate(), then i reference the object's method in myClickMethod() Apr 25 01:19:40 myClickMethod() is called by a button inside the fragment's view Apr 25 01:19:57 i read that any click events to the fragment's view are actually registered in the host Activity Apr 25 01:20:12 so I put myClickMethod() into the Activity, not the Fragment. Apr 25 01:20:20 is this correct? Apr 25 01:22:51 are you defining this click method in XML? Apr 25 01:23:04 yes Apr 25 01:23:43 it is in a layout file which relates to the fragment's view. I can show you the XML on pastebin Apr 25 01:24:02 http://pastebin.com/2aGTH1bu <---This is not the main.xml Apr 25 01:26:12 then yes, I believe those are called in the hosting activity Apr 25 01:26:48 any idea why this would throw a nullpointerexception when it executes line 40 of PainJournalActivity? Apr 25 01:26:51 I used to use te android:onClick xml properties Apr 25 01:26:59 but I gave up on that and just create inner classes now Apr 25 01:27:03 hmm Apr 25 01:27:16 depends on what line 40 is Apr 25 01:27:33 registering listeners from xml is painfully brittle Apr 25 01:27:35 i'll update the pastebin Apr 25 01:28:08 http://pastebin.com/XW7Xivjb Apr 25 01:28:49 it seems to call myClickMethod() Apr 25 01:29:11 the problem appears to happen at fragmentToday.receiveClick(v) looking at the debugger, but I can't tell which line causes it Apr 25 01:29:16 v might be null at that point Apr 25 01:29:31 put a breakpoint at line 40 there Apr 25 01:29:37 and see if its fragmentToday that is null or v Apr 25 01:29:43 that's where my breakpoint is. v is a Button Apr 25 01:29:51 though you could still pass a null view no problem Apr 25 01:30:03 so more than likely, fragmentToday is null Apr 25 01:30:12 at that line, fragmentToday is null Apr 25 01:30:18 FragmentToday fragmentToday = new FragmentToday(); Apr 25 01:30:22 line 32 Apr 25 01:30:25 omg. Apr 25 01:30:26 you're making a method variable Apr 25 01:30:27 did i do it again? Apr 25 01:30:31 i did it again. Apr 25 01:30:32 * hesperaux slaps himself Apr 25 01:30:43 you should prefix all your member variables with m Apr 25 01:30:55 member fields* Apr 25 01:30:59 is that what that means? Apr 25 01:31:03 i wondered why people do that Apr 25 01:31:15 what exactly do you mean by member field, though? Apr 25 01:32:08 yeah it's working now, kinda. I'm one step closer. now it's not passing in the correct view Apr 25 01:32:29 http://docs.oracle.com/javase/tutorial/java/javaOO/variables.html Apr 25 01:32:43 after i pass the event to the fragment, it checks the view's id in a case. If it matches the id in R.java, it's supposed to Toast a different message, but it's not Apr 25 01:33:12 t0mless, opened it up. I didn't realize they had names for these different scopes Apr 25 01:44:17 oh wow i cant believe i missed this Apr 25 01:44:18 "First available in the U.S., Galaxy Nexus costs $399 and arrives at your door unlocked, without a carrier commitment or contract." Apr 25 01:44:23 FIRST available in the U.S. Apr 25 01:44:24 so there are plans :) Apr 25 01:46:10 canadiancow: old news :D Apr 25 01:46:16 even by my standards ! Apr 25 01:46:18 heh Apr 25 01:46:26 well i knew about it right away Apr 25 01:46:37 i just didnt read where rubin said "First" Apr 25 01:47:05 Hey guys. I'm trying to determine if a user has long clicked on an image in a webview and I'm using HitTestResult to do that, but when I try to trigger it, nothing happens. I'm thinking it might be because the images are also links. Here's the code i'm using for the HitTestResult. http://pastebin.com/bPfzwrF4 Do any of you know if there is a way to have it return true for image links? Apr 25 01:51:41 cr5315 how do you know it's not calling that? Apr 25 01:51:44 did you set a breakpoint? Apr 25 01:51:57 because it sure seems like you're not showing your dialog Apr 25 01:52:16 oh derp Apr 25 01:52:43 well now i just feel dumb Apr 25 01:52:52 not to mention you're returning false in all cases Apr 25 01:54:21 for an AutoCompleteTextView does it make sense to use a CursorLoader? Apr 25 01:55:54 never used one Apr 25 01:55:56 so I don't know Apr 25 01:56:12 but if you need to asyncronously load data from a Cursor to use the view Apr 25 01:56:14 then probably Apr 25 01:58:34 t0mless, yea I need to load data from a sql db Apr 25 01:58:45 through a ContentProvider Apr 25 02:01:11 is there an example anywhere of using an AutoCompleteTextView with a CursorLoader? Apr 25 02:03:10 Is there a way to Log ints? Apr 25 02:04:01 http://news.ycombinator.com/item?id=3884550 Apr 25 02:08:36 anyone setup admob before? Apr 25 02:08:45 with mediation Apr 25 02:10:30 cr5315, turn them into a string Apr 25 02:13:15 as a service, can i get screen touch events? Apr 25 02:17:44 ctate: looks like newest perforce may have made first steps toward going distributed Apr 25 02:26:16 anyone else have issues with adb not seeing x86 emulators? Apr 25 02:38:01 http://phandroid.com/2012/04/24/googles-terms-of-service-may-scare-users-away-from-google-drive/ Apr 25 02:39:48 out of context terms of service are enteratining Apr 25 02:40:04 t0mless: entertaining, too Apr 25 02:40:28 Quite. Apr 25 02:41:07 "Once you upload it, it becomes sole property of Google. " , i presumed that as soon as i heard about it (no fucking way google:) Apr 25 02:41:51 luxurymode: virtualbox or vmware? Apr 25 02:42:04 as a service, can i get screen touch events? Apr 25 02:42:31 cooldman224 neither just the new x86 image for api level 10. turns out i just had to do restart adb Apr 25 02:43:05 luxurymode: yeah that one works the best, but the image resolution went down. you notice that? Apr 25 02:44:03 yeah it kinda blows Apr 25 02:44:15 but hey ive gone years without a usable emulator and at least i have one now Apr 25 02:44:34 i honestly only use it bc having to constantly switch between looking at my screen and my device is kind of annoying Apr 25 02:45:02 i agree with that, if you are testing ics use the android x86, it rox Apr 25 02:45:16 i use the vmware one, it is faster than my phone Apr 25 02:47:45 I created a project for 2.3 and now I want to test it for 2.2 as well. In Eclipse how can I do that Apr 25 02:48:17 asjust your minSdk and install it on a 2.2 device Apr 25 02:48:24 adjust too Apr 25 02:51:29 I have a GridView and I need to know the size of it's parent view so I know what height to set each View inside of it… Apr 25 02:56:56 override the onDraw method. Once you're there, getWidth and getHeight will return what you want. **** ENDING LOGGING AT Wed Apr 25 02:59:58 2012