**** BEGIN LOGGING AT Sat Jul 07 02:59:58 2012 Jul 07 03:00:02 Theres a book series I had.. starts with a W.. its a subscription one Jul 07 03:00:05 cant think of the name Jul 07 03:00:09 google Jul 07 03:00:35 Reto just wrote one Jul 07 03:00:43 it ends in a 4 Jul 07 03:02:21 i see many from 2010 and 2011 Jul 07 03:02:28 would they still be useful? Jul 07 03:02:37 yes Jul 07 03:02:47 things have changed, but the major details Jul 07 03:02:57 not sure why an NFC permission is bad Jul 07 03:02:59 I'd say get something that covers fragments and you'll PROBABLY be ok Jul 07 03:03:23 HorizonXP: because the OS is what's doing NFC, not my app Jul 07 03:04:03 I got an app over 50MB. Anyone got experience on this? I'm looking at the APK expansion documentation but it seems like every document has 10 links that redirect me to other documents with 10 more links. I'm struggling to get the big picture. Any help please Jul 07 03:05:51 JakeWharton: err, I think you're confused Jul 07 03:05:58 by default, Android Beam is active for all apps Jul 07 03:05:59 stupid question, really stupid but what filzesize do most android game dev's try to stay under? Jul 07 03:06:09 Yes, but you have no control over what's fired Jul 07 03:06:13 if you don't do anything, Android sends a link to your app via Android beam Jul 07 03:06:29 And if the app is installed it just opens it Jul 07 03:06:29 JakeWharton: right. to control that, you need the NFC permission Jul 07 03:06:34 which is dumb Jul 07 03:06:45 *shrug* Jul 07 03:06:49 if the user has the app installed, I should be able to provide context on how to open it Jul 07 03:06:54 i'm new to Android, I'm learning as I go too. Jul 07 03:07:14 JakeWharton: sure you can. but you need the permission first. Jul 07 03:07:23 … Jul 07 03:07:28 my issue isn't that though. Jul 07 03:07:44 it's that even if you have the permission, the user STILL has to touch the screen to make the transfer happen Jul 07 03:07:52 i have no idea what your issue is, I'm bitching about an oversight in the platform Jul 07 03:07:58 even though they likely are the ones that tapped the back of the other person's phone. Jul 07 03:08:02 JakeWharton: so am I. Jul 07 03:08:17 we're just talking about different oversights. Jul 07 03:08:31 your issue is a security feature and should be there Jul 07 03:08:41 i don't want the accidental touch of devices to send data without confirmation Jul 07 03:09:18 even if i build that confirmation into my app? Jul 07 03:09:53 How does the OS know you provided confirmation? Jul 07 03:10:02 i.e. "Tap the back of the person's phone now." Jul 07 03:10:19 JakeWharton: when i register the pushNdef handler. Jul 07 03:11:39 that doesn't mean you provided anything to the user Jul 07 03:12:53 lol so you're complaining about the fact that your app needs permission to modify how NFC is used for it Jul 07 03:13:00 is there a channel just for talking about android design? Jul 07 03:13:07 and I'm complaining that despite having that permission, I still can't do what I want. Jul 07 03:13:25 the topics are completely orthogonal Jul 07 03:13:26 JakeWharton: do you see how b0rken this security model is? Jul 07 03:13:30 it's not broken Jul 07 03:13:39 sure it is Jul 07 03:13:46 ok Jul 07 03:13:47 every app by default uses NFC Jul 07 03:13:57 but to modify how its used, you need a permission Jul 07 03:14:11 but even if you have that permission, you still can't control everything Jul 07 03:14:24 you can, just not through beam Jul 07 03:14:42 but you can't do SNEP push without Beam Jul 07 03:15:06 I'm forced to use Beam Jul 07 03:15:24 Im surprised there hasnt been any startrek humor done with Beam.. Jul 07 03:15:28 say I'm Google Wallet app Jul 07 03:15:31 I don't care enough about NFC to even know what SNEP is Jul 07 03:15:38 so your argument may be lost on me Jul 07 03:15:40 and you're presenting a card to pay with Jul 07 03:15:59 you pull up the card in Google Wallet, and you tap the terminal Jul 07 03:16:16 now you have to touch the screen as well to "Touch to Beam" Jul 07 03:16:33 it's basically requiring two confirmations Jul 07 03:16:38 seems silly to me. Jul 07 03:16:49 except it doesn't do that, because it doesn't use beam Jul 07 03:17:00 My Admob click-through rates are going up a lot...I wonder if that is something Admob is doing, as I haven't changed anything. Must be. Jul 07 03:17:16 JakeWharton: i haven't used GWallet so I don't know Jul 07 03:17:25 I presume they've implemented it differently then Jul 07 03:17:30 i tried to use gwallet, then i sold my gnex Jul 07 03:17:36 no nfc anymore Jul 07 03:17:39 * Jug6ernaut was sad Jul 07 03:17:47 but then i realized i never used it xD Jul 07 03:17:51 but as a non-Google developer, I don't know of any way to do what I'm asking to without Beam Jul 07 03:21:59 JakeWharton: I think you're referring to this method - http://developer.android.com/reference/android/nfc/NfcAdapter.html#enableForegroundNdefPush(android.app.Activity, android.nfc.NdefMessage) Jul 07 03:22:17 which I think doesn't use the Android Beam UI, but... it's deprecated. Jul 07 03:22:23 so that could be what gwallet uses. Jul 07 03:29:24 evening all Jul 07 03:31:01 is anyone in here familiar with phonegap apps Jul 07 03:32:37 im having issues compiling my app, it installs properly but there is no icon for me to launch it? Jul 07 03:32:50 hmm Jul 07 03:32:56 thats a develope tool? Jul 07 03:32:59 developer* Jul 07 03:33:32 phonegap just makes it easy to take my jquery web app and compile into a native app Jul 07 03:33:35 valiolap: don't succumb! Jul 07 03:34:15 what JakeWharton Jul 07 03:34:18 succumb to what? Jul 07 03:34:22 PhoneGap Jul 07 03:34:26 lol :p Jul 07 03:34:31 ah i'm googling it right now Jul 07 03:34:33 out of interest Jul 07 03:34:41 im super noob so its been my starting point Jul 07 03:35:02 have any of you had this issue though? Jul 07 03:35:09 regardless of using phonegap or not Jul 07 03:35:19 check in the manifest Jul 07 03:35:32 you need an that has a LAUNCHER component Jul 07 03:35:52 checking right now Jul 07 03:35:57 #phonegap Jul 07 03:36:02 try this channel farms Jul 07 03:36:03 i googled it Jul 07 03:36:08 its here on freenode Jul 07 03:36:30 farms: should look like this: http://stackoverflow.com/questions/9721030/what-are-the-uses-of-main-default-and-launcher-in-manifest-file-in-android Jul 07 03:36:47 JakeWharton got any experience on over 50MB files? Jul 07 03:36:59 no Jul 07 03:37:08 use expansion files? Jul 07 03:37:08 damn Jul 07 03:37:11 yea i kno Jul 07 03:37:11 right on, thank you!! Jul 07 03:37:23 the documentation is not linear lol Jul 07 03:37:25 or how to put it Jul 07 03:37:39 first documentation has 10 links to other documents with 10 more links Jul 07 03:38:00 haha, sorry can't help. it's a new feature so you're probably going to have to figure out some things on your own Jul 07 03:39:00 i cant even figure out how to locally test if my code works once i've implemented all the stuff Jul 07 03:39:05 damn Jul 07 03:40:23 would be cool if i could just post a stub as the main apk Jul 07 03:40:38 and upload the APK as it is now, as the expansion apk Jul 07 03:40:52 arghh.. i'm failing to see the point Jul 07 03:40:58 why cant i just upload over 50MB Jul 07 03:41:37 because that's ridiculously large Jul 07 03:41:42 i know Jul 07 03:41:48 that extra work Jul 07 03:41:52 i have to put there Jul 07 03:42:01 encourages me to make my apk smaller than 50 MB Jul 07 03:42:07 but my apk is 300MB for phones Jul 07 03:42:10 even more for tablets Jul 07 03:42:13 so theres no way.. Jul 07 03:42:19 may I ask what the app is? Jul 07 03:42:24 evening Jul 07 03:42:34 its a video / image slideshow book sort of thing for kids Jul 07 03:42:43 the app family has different themes Jul 07 03:42:48 and it is alrdy out for iphone Jul 07 03:42:56 has been for months Jul 07 03:43:09 its 107 slides of images / videos Jul 07 03:43:13 and has to work offline Jul 07 03:43:15 i would create a dummy app under a personal account to experiment with Jul 07 03:43:42 yea thats what i need to do probably Jul 07 03:51:28 no Roboto Thin in Jelly Bean :( Jul 07 04:21:52 why does the NDK hate me?? I'm just trying to get a simple test going but it's segfaulting on GetStringUTFChars, here: https://github.com/mgalgs/hello-jni/blob/master/jni/hello_jni.c#L33 Jul 07 04:23:15 mgalgs: NULL pointer dereference. Jul 07 04:24:06 zinx: who, the third arg? seems like I saw that in example code somewhere... let me dig it up... Jul 07 04:24:42 mgalgs: you have to provide a pointer to a jboolean variable for the 3rd arg (iscopy) Jul 07 04:24:45 mgalgs: yeah Jul 07 04:26:55 oh hmm it looks like it checks for NULL actually Jul 07 04:29:00 mgalgs: what signature are you adding it with? Jul 07 04:29:37 oh nm Jul 07 04:29:57 erh no Jul 07 04:30:04 zinx: ? Jul 07 04:30:15 yeah what signature are you adding it with Jul 07 04:30:58 you mean my java declaration, right? https://github.com/mgalgs/hello-jni/blob/master/src/com/mgalgs/bogus/example/hellojni/HellojniActivity.java#L12 Jul 07 04:31:16 you have to add it in the jni too Jul 07 04:31:59 zinx: what do you mean `in the jni'? Jul 07 04:33:31 hmmmmm Jul 07 04:33:38 i THOUGHT you had to add a signature for it Jul 07 04:34:53 zinx: hmm I'm looking at the docs for `Application.mk'... I don't have one of those... Jul 07 04:35:54 mgalgs: well, i'm not seeing other apps add signatures anyway Jul 07 04:36:20 who what? Jul 07 04:36:23 and it looks like Application.mk is optional... i'm stumped... Jul 07 04:36:45 ndk stuff? Jul 07 04:37:10 yes sir :). segfault here: https://github.com/mgalgs/hello-jni/blob/master/jni/hello_jni.c#L33 Jul 07 04:37:43 A surprisingly large amount of the sample code I've encountered has '@Override' decorations on methods which cause errors stating that the class mustr override a superclass method. Removing the decoration resolves the error. Jul 07 04:37:54 Is there some history I should be aware of? Jul 07 04:38:07 can you slap the code in regular c++ app and have it print the string Jul 07 04:38:18 segfault sounds like a native execution problem, not jni Jul 07 04:38:49 ron_frown: hmm it's segfaulting on a jni method (GetStringUTFChars)... but I'll give it a shot. Jul 07 04:39:44 well you could setup native debugger and break Jul 07 04:41:12 mgalgs: how do you know that's the line it's segfaulting on? Jul 07 04:43:40 ron_frown: zinx: that's what I'm doing (using ndk-gdb) Jul 07 04:44:33 so look at the variables Jul 07 04:44:57 what is ip Jul 07 04:44:59 neither env nor ip are null Jul 07 04:45:01 and whats the 3rd paraemter Jul 07 04:45:07 (0)? Jul 07 04:45:24 it's `isCopy' or something like that. most of the examples I've seen send it in as NULL. Jul 07 04:46:06 I've also tried giving it a valid jboolean * but had the same result Jul 07 04:46:09 mgalgs: use LOGE instead of printf :X Jul 07 04:46:21 zinx: thanks for the tip ;) Jul 07 04:47:03 I've done quite a bit jni and native shit Jul 07 04:47:10 havent seen segfaults but for bad c Jul 07 04:47:17 yeah Jul 07 04:47:36 i've not used the NDK for it, since my apps have been targetted at being included with the platform Jul 07 04:47:40 ron_frown: ip is (jstring) 0xc120001d, env is (JNIEnv *) 0xf2c0 Jul 07 04:47:52 that doesnt tell me anything Jul 07 04:47:57 ron_frown: I wouldn't be surprised :)... I just don't see it though... It's pretty simple code... Jul 07 04:47:59 well but they arent null Jul 07 04:48:05 right Jul 07 04:48:18 uhh, might be rusty, but can you assign to a const pointer? Jul 07 04:48:24 yes Jul 07 04:48:30 well no Jul 07 04:48:34 but it's a const char, not a const pointer Jul 07 04:48:39 a pointer to a const char ;) Jul 07 04:48:57 char * const = no assign (const pointer to a char) Jul 07 04:49:14 or is it char const *, idk, no one does that crap Jul 07 04:49:44 zinx: the first one Jul 07 04:50:00 well good to know i'm not completely senile Jul 07 04:50:13 i am rather tired though, so, good night, hope you figure out your troubles :) Jul 07 04:50:17 const char const * const Jul 07 04:50:30 thank you kind sir! Jul 07 04:50:31 that hasn't got much const Jul 07 04:51:43 well my deck is coming along quite nicely Jul 07 04:51:46 mgalgs: just for fun, try commenting out the statements before/after GetStringUTFChars Jul 07 04:55:16 JesusFreke: still segfaulting... :( My entire function now looks like: {const char *s = (*env)->GetStringUTFChars(env, ip, 0); return NULL;} Jul 07 04:55:42 hmmm Jul 07 04:55:57 that's pretty bizzare Jul 07 04:56:16 i.e. i'm doing something stupidly stupid ;) Jul 07 04:56:40 hmm. the jnienv value you mentioned earlier seems awfully low Jul 07 04:56:51 JesusFreke: I was a little wary on that one too... Jul 07 04:58:32 I don't know how that could get messed up though Jul 07 04:58:42 it might actually be valid though Jul 07 05:07:16 Is it normal to have a bunch of `Error while mapping shared library sections' messages when starting ndk-gdb? Jul 07 05:14:22 mgalgs: I just copied what you had, and it's working for me. no segfault Jul 07 05:15:45 mgalgs: what are you running it on? device? emulator? Jul 07 05:15:57 JesusFreke: dang it. emulator. Jul 07 05:16:07 ICS? Jul 07 05:16:09 yeah Jul 07 05:16:29 you? Jul 07 05:16:41 GN - jellybean Jul 07 05:16:56 hi, any ideas how to troubleshoot an InflateException when starting an activity? Jul 07 05:17:54 pastebin the entire stack trace and link it Jul 07 05:17:56 actually, let me make an actual clone of your repo Jul 07 05:19:05 which pastebin is preferred? Jul 07 05:19:11 hmmm Jul 07 05:19:26 got a segfault when I built from your exact source Jul 07 05:19:35 any Jul 07 05:19:40 your favorite Jul 07 05:20:11 in my first test, I had left out the jni util stuff, and some of the supposedly extraneous stuff in the java class Jul 07 05:22:30 JesusFreke: dang. I guess I'll just keep whittling... :) Jul 07 05:22:51 JakeWharton: http://pastebin.com/bpPjJKvR Jul 07 05:23:20 mgalgs: hmmmmmm Jul 07 05:23:31 I removed the string array. no segfault Jul 07 05:23:47 (WTF??) Jul 07 05:24:08 voltagex: it looks like you're defining a ListView and an empty value for some text resource Jul 07 05:24:13 paste the layout xml too? Jul 07 05:24:34 JakeWharton: which layout? main or the activity I'm launching? Jul 07 05:25:00 au.voltagex.nzbgot.Preferences Jul 07 05:25:09 whatever you specify on line 16 of that Jul 07 05:25:48 JesusFreke: so weird... Jul 07 05:26:14 it's not 16 lines long but http://pastebin.com/gzRUZXzb Jul 07 05:26:25 line 16 of the code, not xml Jul 07 05:26:53 what's @string/add_server? Jul 07 05:26:56 that's what failing it Jul 07 05:26:59 oh Jul 07 05:27:24 is there an "easy" way to have my strings? This resource file thing is a bit different to what I'm used to (C#) Jul 07 05:27:30 mgalgs: making messages static also seems to fix it Jul 07 05:27:51 you want to display a list of strings in the list view? Jul 07 05:28:06 JakeWharton: well, a list of preference options but yeah Jul 07 05:28:11 something about exporting that array of strings in the jni shared object? Jul 07 05:28:20 really strange Jul 07 05:29:10 JesusFreke: hmmm, I tried commenting it out but I still get the segfault... Now on Nexus S, ICS... Let me see if I can nuke the build more thoroughly or something... Jul 07 05:29:27 voltagex: what kind of preferences? Jul 07 05:29:37 there is preference support built-in to the framework Jul 07 05:29:53 basically works like the Settings application Jul 07 05:30:04 JakeWharton: the tutorial I was following said to extend the Preference view Jul 07 05:31:01 PreferenceActivity rather Jul 07 05:31:19 mgalgs: ha. nevermind. I might have been an idiot Jul 07 05:31:27 JesusFreke: hmm yeah I still get the segfault after commenting out `messages'... Jul 07 05:32:01 JesusFreke: ha good, that would have given me some serious nightmares :) Jul 07 05:37:42 JesusFreke: well, thanks for your help. I'm going to call it for the night. Jul 07 05:38:18 mgalgs: fyi, commenting it out does work Jul 07 05:38:18 PS I've gotta ask, are you, like, *THE* JesusFreke of ROM fame? Jul 07 05:38:21 yea :p Jul 07 05:38:46 I went back and made sure I wasn't doing something stupid (making sure to clean between tries, etc. heh) Jul 07 05:38:49 JesusFreke - though you arent so involved anymore... right? Jul 07 05:38:55 not in roms, no Jul 07 05:38:57 nice, I'm talking to a legend :). That's so weird... I'll try some more here on ICS... Jul 07 05:39:02 I maintain smali/baksmali Jul 07 05:39:54 can it do anything wiht the encrypted apks? Jul 07 05:55:47 So much hoop-jumping to use suggestions with a SearchView Jul 07 05:56:32 and… wait for it… lack of docs Jul 07 05:58:11 haha Jul 07 05:58:33 thats my complaint about google Jul 07 05:58:47 a lot of this shit isnt terrible, but they could wrap it up in an easily consumable chunk of code Jul 07 05:58:50 can I define arbitrary breakpoints in IntelliJ? Jul 07 05:58:59 don't forget to not hit the +1 :) Jul 07 05:59:03 like I know the exact class and line number Jul 07 05:59:14 I would expect to be able ot Jul 07 05:59:21 havent tried it tho Jul 07 05:59:34 I can't find a breakpoint list window Jul 07 05:59:49 its like c2dm... that shit really isnt that hard ot use once you've got it setup Jul 07 06:00:05 speaking of c2dm, i love the hell out of it Jul 07 06:00:10 but there is a *LOT* of things that can break in the attempts to get it setup Jul 07 06:00:26 especially if people dont know what it takes to consume it or best practices Jul 07 06:00:43 JakeWharton - did they ever fix wifi only never waking up on c2dm message? Jul 07 06:01:12 if you get a message when phone is unreachable on network or a non network device... it'll alert once you pop the phone on Jul 07 06:01:36 eh. never tested. Jul 07 06:01:41 if you lose network, and are wifi only, and somone sends a message, then you get network back, it never alerts you Jul 07 06:01:53 I didn't write our impl of the client. I just get to hook it up to things. Jul 07 06:01:58 I realize its supposed to be used as an added benefit, no guarenteed delivery Jul 07 06:02:05 well theres not much client to it =) Jul 07 06:02:20 broadcast intent reciever, and then the code to handle oauth pw's changing etc Jul 07 06:02:30 er rather tokens Jul 07 06:02:33 yeah Jul 07 06:05:17 SearchView calls e.toString() and concatenates it to a log string rather than just including it as the final argument Jul 07 06:08:10 now do I file as a bug or just patch in Gerrit Jul 07 06:08:22 or ignore and pretend I didn't see anything Jul 07 06:09:39 meaning pass e as an exception vs passing it as a exception.tostring/ Jul 07 06:10:16 JakeWharton: patch, I'll review it right away Jul 07 06:11:07 I have a giant list of things I need/want to fix. This is a quick one though. Jul 07 06:11:21 go ahead, I'm waiting Jul 07 06:12:30 nice! Jul 07 06:13:06 I need to keep a repo cheat sheet around Jul 07 06:13:10 haha Jul 07 06:13:12 I do too Jul 07 06:13:15 and I will patch them all eventually Jul 07 06:13:22 it's easy Jul 07 06:13:28 $ repo start myBugFix Jul 07 06:13:31 $ git add . Jul 07 06:13:36 $ git commit Jul 07 06:13:39 $ repo upload Jul 07 06:13:46 after submit, repo abandon myBugFix Jul 07 06:13:48 that automatically submits to gerrit? Jul 07 06:13:55 upload uploads to gerrit Jul 07 06:13:59 the submit is done by gerrit Jul 07 06:13:59 nice! Jul 07 06:14:07 if you get comments and you need to amend the patch Jul 07 06:14:11 $ git commit --amend Jul 07 06:14:14 $ repo upload . Jul 07 06:14:22 (I forgot the . after upload the first time) Jul 07 06:14:25 that is all Jul 07 06:14:28 I'll have to take a crack at that if/when I find bugs Jul 07 06:14:38 and if you want to rebase your patch on tip of tree Jul 07 06:14:41 I found bugs in older stuff, but other people also found htose bugs, and they've been fixed Jul 07 06:14:45 repo sync && repo rebase . Jul 07 06:14:51 then git commit/repo upload if needed Jul 07 06:14:56 it's very easy Jul 07 06:15:12 I wonder if I can build ics on osx yet Jul 07 06:15:27 you can Jul 07 06:15:37 at least half of the Android team is on OSX Jul 07 06:15:43 I know for a while jbq and all were trying to figure it all out Jul 07 06:15:54 I am too, but my build server is a monster linux box Jul 07 06:15:57 it's been fixed Jul 07 06:16:01 sweet Jul 07 06:16:14 but if you install the latest xcode it's a little more annoying Jul 07 06:16:35 you have to launch xcode, open the preferences, find the Downloads tabs and add the optional "Command line tools" package Jul 07 06:17:03 well my debugging was a nightmare... I just finally got my api integrated with eclipse and can debug system apps now Jul 07 06:17:08 if I can get my mac going, I'll be set Jul 07 06:17:12 sweet Jul 07 06:17:37 romainguy__ you know anything about SystemUI? Jul 07 06:17:48 yeah Jul 07 06:18:05 https://android-review.googlesource.com/38834 Jul 07 06:18:23 done Jul 07 06:18:28 I've seen references that implied it could be replaced with different implementation rather easily... but mods I've made had to have adjustments to calculating view prefs Jul 07 06:18:34 JakeWharton: submitted Jul 07 06:18:50 ron_frown: for a Dianne's definition of "easy" sure :) Jul 07 06:18:57 hahah Jul 07 06:18:58 thank you sir Jul 07 06:19:06 thank *you* :) Jul 07 06:19:15 well I've got a much more indepth knowlege of the system than I ever expected to Jul 07 06:19:28 I've basically backported static bottom status bar to android 2.3 Jul 07 06:19:40 you mean Honeycomb's? Jul 07 06:19:44 yes =) Jul 07 06:19:50 I don't even want to know why Jul 07 06:20:37 you really dont... basically amounts to freescale and 3rd party having their hands in our code before we even got ahold of it Jul 07 06:20:52 getting 2.3 building was a nightmare, and for our hardware I was told they wanted it to work like a tablet Jul 07 06:21:02 so I made that shit work like a champ =) Jul 07 06:21:03 wtf Jul 07 06:21:11 why not move to 3.x or 4.x? Jul 07 06:21:32 hardware even though it was supposed to be 1ghz performs TERRIBLY with just 2.3 =) Jul 07 06:21:51 that's why you should use 4.x :p Jul 07 06:21:57 these other two parties had so many changes in the kernel and userland shit to just get it running Jul 07 06:22:12 I didnt even know where to begin Jul 07 06:22:57 plus you guys ditched your porting documentation around 2.3 and havent seen it since, so I've basically been reverse engineering the build system to understand how everything works =0 Jul 07 06:23:23 our new hardware is a omap 4460 platform, and I can just get latest, add a few proprietary binaries and bam Jul 07 06:23:26 builds out of box Jul 07 06:23:49 I've got what.... 4.0.3 running on our new hardware Jul 07 06:24:15 a long time ago I bumped into you and talked about bug where I'd get a hard freeze with mild graphic action on the screen Jul 07 06:24:52 sounded like you thought htere could be deadlocking/racing in surfacflinger Jul 07 06:24:59 I updated it and its working like a champ as well Jul 07 06:25:21 Has anyone encountered this ICS Gallery3D app crash when invoking its content provider with Picasa images ? : http://code.google.com/p/android/issues/detail?id=34399 Jul 07 06:27:08 I gotta say android always felt a couple steps ahead, but project butter and the new notification shit Jul 07 06:27:10 mmm mmm mmm Jul 07 06:27:12 leaps Jul 07 06:27:16 is anyone experienced in publishing expansion files? Jul 07 06:27:24 ron_frown: glad you like JB :) Jul 07 06:27:30 my app is over 50MB and i the apk expansion is poorly documented Jul 07 06:27:32 cant wait to get my hands on the source =) Jul 07 06:27:38 I've got some other hardware in mind =) Jul 07 06:27:46 i was wondering if someone could provide me with sample code and some instructions Jul 07 06:28:01 ron_frown: what GPU? Jul 07 06:28:15 uhh... Jul 07 06:28:39 sgx540 =( Jul 07 06:28:47 hehe Jul 07 06:29:20 ron_frown: if it's an mp2 or mp4 it's not so bad :)) Jul 07 06:29:20 well its better than the sgx520 in my droid-1 Jul 07 06:29:22 as a relatively small ugy in the market, its hard to get my hands on the omap5 shit Jul 07 06:29:26 *530 Jul 07 06:32:23 * ron_frown loves finding 40g partitions that are unused Jul 07 06:32:25 haha Jul 07 06:34:57 You cannot pull down the notification shade on the lock screen if there isn't a SIM Jul 07 06:35:05 even if you don't have any security Jul 07 06:41:08 oi Jul 07 06:41:32 SearchView man… what in the seven hells… Jul 07 06:41:37 hHAHA Jul 07 06:41:48 what IS the searchview, the little textbox with autocomplete? Jul 07 06:42:07 bitch bitch :) Jul 07 06:42:21 Yeah it's a widget designed to be used as an action item's expanded view (though can be used anywhere) Jul 07 06:42:34 oh that Jul 07 06:43:21 and it's hooked in to 900 different things Jul 07 06:43:49 slowly yanking out the HC/ICS-only parts that interface with the global search APIs Jul 07 06:45:04 for abs you mean? Jul 07 06:45:16 it fires an intent when you click on the one of the suggestions provided by the optional CursorAdapter and it's currently behaving much differently on pre-HC :( Jul 07 06:45:18 yeah Jul 07 06:45:32 everything works except this damn suggestion adapter Jul 07 06:46:23 my lack of exposure to cursors ever is hindering my ability to quickly resolve this Jul 07 06:47:19 time to learn by doing Jul 07 06:48:30 can you access the audio input stream from native code? Jul 07 06:48:43 I think you can use alsa natively Jul 07 06:49:05 would that provide more powerful control than through Java? Jul 07 06:49:13 alsa? shit yes Jul 07 06:49:23 but I dont know what sort of security wraps around that Jul 07 06:49:25 er Jul 07 06:49:29 I don't think we have alsa Jul 07 06:49:30 do we? Jul 07 06:49:36 uhh maybe thats hardware specific Jul 07 06:49:38 we have OpenSL ES Jul 07 06:49:51 even better for abstraction Jul 07 06:50:20 JakeWharton for your little da converter stuff? Jul 07 06:50:46 yeah we have problems with OEMs fucking up the audio hardware and we can only compensate so much Jul 07 06:50:51 some devices are simply unreadable Jul 07 06:50:52 hahaha Jul 07 06:51:21 I dont know a TON about opensles, I'd imagine one way or another you could consume that from java, but filtering with native code etc is MUCH faster Jul 07 06:51:25 holy crap Jul 07 06:51:25 or so I would assume Jul 07 06:51:28 Photoshop I love you Jul 07 06:51:47 I miss Photoshop Jul 07 06:51:47 haha Jul 07 06:52:19 I'd feel bad putting a request in for it at work since I'd only use it two or three times a month. Jul 07 06:52:41 and GIMP is good enough for editing 9-patches and cropping/resizing :-/ Jul 07 06:53:03 pc or mac? Jul 07 06:53:07 mac Jul 07 06:53:12 dude, get pixelmator Jul 07 06:53:16 much much cheaper Jul 07 06:53:18 very capable =) Jul 07 06:53:24 yeah i used it through the trial Jul 07 06:53:34 just use app delete and reinstall Jul 07 06:53:39 Pixelmator is worth the $50 Jul 07 06:53:39 * ron_frown looks around suspiciously Jul 07 06:53:40 haha Jul 07 06:53:44 yes, yes it is =) Jul 07 06:53:50 but man Jul 07 06:53:54 PS CS6 is so freakin' awesome Jul 07 06:54:00 the adaptive wide angle lens feature is amazing Jul 07 06:54:02 I think it's only $30 now but once you've know CS it's hard to switch to anything else Jul 07 06:54:10 *known Jul 07 06:54:18 I like moving shit around in images and having it figure out how to make it look right Jul 07 06:54:27 but I dont have a legit need for that =) Jul 07 06:55:38 JakeWharton: Pixelmator has a very similar UI, same shortcuts, etc. Jul 07 06:56:22 boy I bet dianne would have a heart attack if she knew what I was about to do Jul 07 06:56:27 it's $15 Jul 07 06:56:44 see now I have a free licene for an old version I'd been usuing Jul 07 06:56:48 rm -rf /all/the/gimp/ Jul 07 06:56:50 I'll go pay the 15$ Jul 07 06:57:59 romainguy__ do you know if porting documentation will ever come back for non pdk? I dont need early access to os shit (nor could I probably qualify for it) Jul 07 06:58:06 btu I would like to know the basics of what used to be there before Jul 07 07:00:20 won't the PDK be part of the AOSP drops? you just wouldn't get early access to it. Jul 07 07:00:44 hmm I dont know... have they announced ANYTHING about the pdk other than it aims to speed up os releases? Jul 07 07:01:19 not that I've seen, but it's not really of interest to me so I haven't been following too closely Jul 07 07:01:28 haha fair enough Jul 07 07:02:30 I wish damn intel HAXM actually worked on mac Jul 07 07:02:47 I guess I've actually not tried on THIS particular mac Jul 07 07:02:49 I would sign a billion NDAs for early AOSP access so I could release updates to my libraries the day of public AOSP drops Jul 07 07:03:22 JakeWharton I like that we swapped out abs to abs4 and it rethemed a good deal of our app for the better =0 Jul 07 07:03:26 ron_frown: works on mine Jul 07 07:03:27 saved me a TON of work Jul 07 07:03:30 hrmm Jul 07 07:03:41 I see the kext loaded Jul 07 07:03:49 but intel atom vm doesnt appear to be accelerated at all Jul 07 07:03:50 nice, I'm surprised anyone used ABS3. it was so terrible :P Jul 07 07:04:08 i have pixelmator, it hasn't been updated in a long long time now. the docs are missing sections - i wonder if they went under Jul 07 07:04:28 whats that g00s Jul 07 07:04:29 g00s: they just got a giant $15 investment from me Jul 07 07:04:36 how can they go under now? Jul 07 07:04:38 g00s wheres the android hate as of late? jellybean impressed you? Jul 07 07:04:58 Sorry I'm a little stuck here. I have class extending SurfaceView that I need to instantiate programatically - how can I use xml that I defined for it? Jul 07 07:04:59 I dont buy a otn of software... I mean I dont pirate, but try to keep opensoruce Jul 07 07:05:01 g00s: there was a big 2.0 update a few months ago Jul 07 07:05:11 when a good peice of software is reasonable price, I def buy Jul 07 07:05:30 ron_frown: yeah I used to do the same until I realized that for a lot of specialized tools proprietary software is a lot better Jul 07 07:05:38 this? http://www.pixelmator.com/ Jul 07 07:05:41 it also depends on how useful it is Jul 07 07:05:46 Photoshop is definitely worth its price Jul 07 07:05:47 well I'd much much rather use idea than eclipse =) Jul 07 07:05:53 adt20 is a lot better than previous releases Jul 07 07:05:56 IntelliJ is open source :p Jul 07 07:05:59 at least partly Jul 07 07:06:07 well there is a community version Jul 07 07:06:12 I like their tools and their licensing models Jul 07 07:06:40 if I could talk my company into CI, I'd use their teamcity or whatever it was called Jul 07 07:07:14 as it is, I've proven unit testing was a valuable valuable tool, but I guess they like fixing the same bugs over and over again Jul 07 07:07:14 =) Jul 07 07:07:30 arrghr this mac pro !$ Jul 07 07:07:47 ron_frown: http://blogs.jetbrains.com/idea/2009/10/intellij-idea-open-sourced/ Jul 07 07:08:11 wow! Jul 07 07:08:14 I never knew that Jul 07 07:09:26 i'm wondering about the light table ide Jul 07 07:09:39 ? Jul 07 07:09:42 http://www.chris-granger.com/2012/04/12/light-table---a-new-ide-concept/ Jul 07 07:10:14 wasn't that on kickstarter a while back? Jul 07 07:10:25 yeah Jul 07 07:10:31 interesting Jul 07 07:10:43 instant boo from me Jul 07 07:10:44 js Jul 07 07:10:44 boo Jul 07 07:10:57 they have to start somewhere :) Jul 07 07:11:09 I am anti apps on the web as html+js Jul 07 07:11:24 I think there are cases where that makes sense, but I was never sold on js, and probably wont ever be Jul 07 07:11:34 its 30 years old now isn't it ? Jul 07 07:11:38 :) Jul 07 07:11:43 just checked out idea Jul 07 07:11:46 its had a recent surge in popularity Jul 07 07:11:51 not free, so forget it Jul 07 07:11:52 btu I think its from web developers Jul 07 07:11:55 community is free Jul 07 07:12:00 and community does all the android shit Jul 07 07:12:11 that's kind of a pathetic view on software Jul 07 07:12:14 also Jul 07 07:12:20 given how much time we spend in our IDE Jul 07 07:12:27 spending a bit of money on it is not insane Jul 07 07:12:38 romainguy__: agreed. I simply dont have money to do so Jul 07 07:13:12 XXCoder: you did see the part about CE being free, right ? Jul 07 07:13:17 im at stage of life where car broken window is major miney problem. Jul 07 07:13:27 yeah me too :( Jul 07 07:13:34 I need to read what communitiy edition allows. Jul 07 07:14:13 i simply stuck with eclipse because i used birt and xtext Jul 07 07:14:15 so free for android Jul 07 07:14:22 * g00s <3 birt Jul 07 07:14:27 no support, no enterprisey stuff Jul 07 07:14:28 but can I do commerical stuff? gonna find that Jul 07 07:14:33 it has built-in support for github :) Jul 07 07:14:39 one thing I like about eclipse, it tends to do a bit better with native code sitting along side java Jul 07 07:14:49 ron_frown: I use Eclipse for C++ Jul 07 07:14:52 and IntelliJ for everything else Jul 07 07:14:57 yeah, cdt is pretty OK Jul 07 07:14:58 I dont like cdt haha but Jul 07 07:15:01 but fuck, CDT is very very very very buggy Jul 07 07:15:02 what are you going to do Jul 07 07:15:15 even syntax colorization barely works Jul 07 07:15:17 yeah, i think thats because of how it parses shit from gcc Jul 07 07:15:24 it breaks with every update too Jul 07 07:15:25 just use eclipse for java Jul 07 07:15:37 gcc can produce ASTs, dunno if that integrates with the CDT Jul 07 07:16:09 visual studio for c# and emacs for c in linuyx Jul 07 07:16:15 refactoring in CDT is scary too Jul 07 07:16:43 but it's that or Xcode so... Jul 07 07:17:13 i tried refactoring my package name with ADT it actually destroyed the XML; i mean it was not even XML any more Jul 07 07:17:33 i guess refactoring can be hard :) Jul 07 07:17:40 file a bug :) Jul 07 07:17:44 UML class diagrams wow Jul 07 07:17:52 ultimate edition of course. Jul 07 07:18:08 or submit a patch! Jul 07 07:18:08 I've seen UML diagrams before Jul 07 07:18:12 oh yeah, that was in school Jul 07 07:18:28 its very effective way to show many design methods Jul 07 07:19:04 "JavaScript only supports 53 bit integers Jul 07 07:19:05 All numbers in JavaScript are floating point" Jul 07 07:19:08 wtf JavaScript Jul 07 07:19:10 i like fowler's 'uml as a sketch' approach; when they make you draw it before you code, or completely document the system in uml, its not very fun any more Jul 07 07:19:10 support for Mercurial Jul 07 07:19:14 awesome! Jul 07 07:19:40 g00s: (loose) UML as a sketch is great when brainstorming with other engineers Jul 07 07:19:53 yeah Jul 07 07:19:55 but doing it the way I learned it in school to design the entire system ahead of time in the specs doc... Jul 07 07:20:05 thats just big upfront design :) Jul 07 07:20:05 i am so against methodologies where you have to plan the entire system before writing a single line of code. Sure it's good to approach a problem at a high-level but I'm not writing a 50-page design spec Jul 07 07:20:28 haha Jul 07 07:20:34 especially when it's done by people who don't write code Jul 07 07:20:35 give me a couple pages in Google Docs and i'm good to go Jul 07 07:20:54 it's so easy to fuck up a design Jul 07 07:20:54 I'm a proof of concept / discovery phase, LOOSE LOOSE spec, build, test, fix Jul 07 07:21:01 sometimes you realize it only when you start writing code Jul 07 07:21:01 JakeWharton: ever used test method? basically you build tests first then you write code to pass test Jul 07 07:21:11 yes, i hate TDD Jul 07 07:21:14 tried three times to do it Jul 07 07:21:15 seems like tdd and full specs always tend to dictate designs that dont always work Jul 07 07:21:30 you end up contriving tests and then worrying about constantly keeping them working Jul 07 07:21:34 downloaded idea. gonna try it later Jul 07 07:21:40 or at least the projects I was working on ended up that way Jul 07 07:21:42 I do like to build tests as I build code, as it helps you identify failure points Jul 07 07:21:53 dunno it seems to me that in SOME cases it could be awesome. Jul 07 07:21:54 JakeWharton: my issue with TDD is that it often tends to skew the design of your APIs towards testability at the expense of ease of use/usefulness Jul 07 07:21:57 like writing some basic class Jul 07 07:22:07 there are 2 schools of thought ; "test first" and "test driven". i can't do the former because its so distracting to my flow Jul 07 07:22:23 these days i have the attention span of a gnat Jul 07 07:22:37 man I really fucking need real work coding experence under my belt. :( Jul 07 07:22:39 romainguy__: yeah that's a good point. i'm all for testing thoroughly but once you fully identify the expected behavior Jul 07 07:23:32 And on that tangent, i cannot stand cucumber (or cucumber-like) tests. Our server guys writing cucumber tests, then write the code to parse those into actual code, and then write the actual impl. Jul 07 07:23:45 romainguy__: interesting; i wonder in practice how often those are mutually exclusive though Jul 07 07:23:53 JakeWharton: cucumber tests? Jul 07 07:24:00 i tend to design for testability :| Jul 07 07:24:01 new to me too Jul 07 07:24:06 romainguy__: http://cukes.info/ Jul 07 07:24:10 g00s: it probably doesn't matter as much when you write an app since your API is entirely private Jul 07 07:24:17 g00s: but when you design a framework... Jul 07 07:24:23 you write your tests in english, then write regex to parse the english to actual code Jul 07 07:24:25 I code in ad-hoc. but then my projects is never very big. never reached 10k lines Jul 07 07:24:36 yeah, framework design - is often about convenience for the client Jul 07 07:24:44 JakeWharton: I just threw up a bit Jul 07 07:25:02 JakeWharton: sounds like overly compicated way to do it. Jul 07 07:26:18 yes, extremely Jul 07 07:26:28 and there are people who defend this like no other Jul 07 07:26:48 this is the kind of stuff that makes me scared to ever leave the Android team :) Jul 07 07:27:11 JakeWharton: probably same kind of defending on other crappy stuff Jul 07 07:27:31 I love volkwagon, even when you seriously look into it its really not that good. Jul 07 07:28:03 when I look at a cucumber test I just see things that should be comments on the actual code that performs the test Jul 07 07:28:24 i guess someone got the bright idea to skip writing the code, just write comments, and parse that into the code Jul 07 07:28:37 JakeWharton: sounds like a manager Jul 07 07:28:47 or someone who's fond of AppleScript Jul 07 07:29:18 i can't speak to the latter but it definitely sounds like a manager Jul 07 07:29:34 maybe Jul 07 07:29:41 AppleScript is designed to look and read like English Jul 07 07:29:57 I have read about worse systems in daily wtf Jul 07 07:29:57 that reminds me of when Microsoft had the brilliant idea to translate its VBA scripting language in Office Jul 07 07:30:09 so in French, typing the numeral 1.234 becomes 1,234 Jul 07 07:30:20 so of course, you cannot use commas to separate parameters anymore Jul 07 07:30:29 so function calls become func(foo; bar) Jul 07 07:30:56 and hilarity ensues when you try to copy/paste scripts from/to us/fr versions of Office Jul 07 07:31:04 wish we have world standard on few stuff Jul 07 07:31:20 say, like size units, number formatting and so on Jul 07 07:31:21 XXCoder: we do, and the U.S. ignores it Jul 07 07:31:27 if it's not broken... Jul 07 07:31:29 JakeWharton: indeed. Jul 07 07:31:35 need to go meteric. Jul 07 07:31:35 or were you being sarcastic and me being an idiot :P Jul 07 07:31:43 I once bought a book on game engine physics Jul 07 07:31:59 and the author opens by explaining that he will use imperial units Jul 07 07:32:03 I closed the book and never opened it again Jul 07 07:32:08 seriously, wtf Jul 07 07:32:14 Hah Jul 07 07:33:14 JakeWharton: theres more stuff than just units though. like formatting. I find usage of . rather than , is annoying lol Jul 07 07:33:35 that doesn't bother me since I've known nothing else my whole life Jul 07 07:33:44 but the opposite seems equally as foreign, so I know what you mean Jul 07 07:34:00 yes. Jul 07 07:34:18 If my app's target is ICS, it won't run on Honeycomb? Apps are forward compatible, right? Jul 07 07:34:20 JakeWharton: this causes apps on fr versions of Windows to insert a , when you type the . key on the numpad Jul 07 07:34:29 world standard would ease some problems. theres crater at mars due to unit confusion. cost millions lol Jul 07 07:34:38 lut4rp: what matters is the minSdk Jul 07 07:34:48 Oh. Yes. Jul 07 07:34:49 Right. Jul 07 07:35:21 3d shit Jul 07 07:35:27 I've been doing software for 15yr Jul 07 07:35:33 stupid foreigners Jul 07 07:35:35 I recently had my first foray into 3d stuff Jul 07 07:35:39 man that was a mind f Jul 07 07:35:47 ron_frown: it's also full of crappy hacks Jul 07 07:36:13 vector algebra, quaternions, and any number of other terms that sound made up =() Jul 07 07:37:03 most of the time they use names that make things sound a lot more complicated than it really is :) Jul 07 07:37:10 (and the other way around too) Jul 07 07:37:11 ron_frown: Gimbals! GIMBALS EVERYWHERE! Jul 07 07:37:40 its funny I didnt realize many libraries had operator overloads for vector3d math Jul 07 07:37:52 yeah Jul 07 07:37:57 which reminds me Jul 07 07:37:58 so I was sitting there writing functions that took each point and mulitplied or divide Jul 07 07:37:58 haha Jul 07 07:38:03 I remember being confused as to why my space shooter would never rotate correctly. Euler rotation causing gimbal lock :[ Jul 07 07:38:08 of the day I discovered you can overload the , operator in C++ Jul 07 07:38:25 what does c++ do with , out of the bo Jul 07 07:38:27 box Jul 07 07:38:32 parameter separation? Jul 07 07:38:35 yep Jul 07 07:38:45 ... and you can overload it? :o Jul 07 07:38:45 Knossos: heh 13th mission that ended up failure had gimbal lock as possible problems Jul 07 07:38:48 yep Jul 07 07:38:57 mission to moon that is Jul 07 07:39:03 see Jul 07 07:39:15 thats what I like about c++, its like a framework to make the language work for you =) Jul 07 07:39:22 When I was in school I made the beginnings of a space sim in DX7 and (I know...) VB6 :D Jul 07 07:39:28 I mean nobody else is going to be able to pick your stuff up and just use it =) Jul 07 07:39:35 lol Jul 07 07:39:36 Knossos: nice Jul 07 07:39:49 I never could get my head around 3d programming Jul 07 07:40:01 I dunno why I worked on ldrdat2dxf and obj lol Jul 07 07:40:12 need to finish those evenually :P Jul 07 07:40:12 I would finish my work in class, and load up VB in college Jul 07 07:40:15 dxf, autocad ? Jul 07 07:40:28 final format, one of em is dxf yes Jul 07 07:41:13 The problem I had with the game was that I was making the Engine as well Jul 07 07:41:14 autocad is sweet. i used it to model parts of my robotic control system Jul 07 07:41:19 So I never got anything finished Jul 07 07:41:49 heh well is there any easy 3d format thats pretty much universally supported? Jul 07 07:42:11 I thouht the maya formats were pretty well supported Jul 07 07:42:47 maya is autocad now :| Jul 07 07:42:54 well, autodesk Jul 07 07:43:04 XXCoder: COLLADA Jul 07 07:43:52 ron_frown: ron_frown: Jul 07 07:43:59 ron_frown: https://www.evernote.com/shard/s9/note/a59f48fe-3569-4c31-b08d-0f98823f4cc7/wishi/crazylazy#b=5370c944-5bb8-45c1-b73a-cfe46216db32&n=a59f48fe-3569-4c31-b08d-0f98823f4cc7 Jul 07 07:44:04 (Just click "View Notebook") Jul 07 07:44:17 Really g00s? Isn't that against their business model for 3ds max? Jul 07 07:44:30 a crazy C++ header file that uses operators overloading to let you do area and volumes math in ASCII art Jul 07 07:44:34 offtopic: http://www.youtube.com/watch?v=84WpcmJ28Yg Jul 07 07:44:59 Ah Jul 07 07:45:01 Maya is now pay Jul 07 07:45:09 Or was it always pay... Jul 07 07:45:16 Maya was always exepensive :) Jul 07 07:45:18 expensive Jul 07 07:45:22 there's Blender... Jul 07 07:45:37 Why did I think it was free :/ Yeah, I must have been thinking of Blender Jul 07 07:45:41 I have messiah lol Jul 07 07:45:46 bought it very cheap Jul 07 07:45:50 Have you heard of Mudbox? Jul 07 07:46:05 What... Autodesk bought that too?! Jul 07 07:46:23 isn't it like ZBrush? Jul 07 07:46:48 romainguy__: that just blew my mind Jul 07 07:46:53 the evernote thing Jul 07 07:47:06 Ahhh yes, thats it. You basically paint in the "extrudes" on the mesh Jul 07 07:47:07 JakeWharton: it's scary you can do this in C++ :) Jul 07 07:47:21 tomain, I am not clear as to what the evernote stuff is Jul 07 07:47:27 anyway my convertor is currently very broken, I am adding scheme to find nearest points so final model dont have lots lots dup points Jul 07 07:47:28 oh duh Jul 07 07:47:36 I am reading the middle column thinking it has something to do with anything Jul 07 07:47:40 :)) Jul 07 07:47:44 lego bricks usually click together so theres lots of shared points between bricks Jul 07 07:47:45 the original site is down Jul 07 07:48:10 that is nuts Jul 07 07:48:15 damn, just publish a new version of an app and the first ACRA crash report is from a GN running Jelly Bean in the Android Framework: http://pastebin.com/A0g9chjR Jul 07 07:48:24 this never stops Jul 07 07:48:25 you can basically override anything in c++ Jul 07 07:48:36 bubbleguuum: I believe this is a known bug in our code Jul 07 07:48:43 bubbleguuum: and it should be fixed in the final release of JB Jul 07 07:49:03 romainguy__: thanks Jul 07 07:49:44 in the meantime it crashes hard for this poor user :p Jul 07 07:49:54 it's a developer preview Jul 07 07:49:57 we were clear on that :) Jul 07 07:50:02 ok Jul 07 07:50:19 romainguy__: COLLADA isnt bad but overly complex for something I just need to use trangles and quads. Jul 07 07:50:27 COLLADA is meh Jul 07 07:50:35 FINGERPRINT=google/takju/maguro:4.1/JRN84D/392829:user/release-keys Jul 07 07:50:37 but useful as a transfer format between tools Jul 07 07:50:49 guess so. Jul 07 07:51:00 bubbleguuum: still a developer preview :) Jul 07 07:51:05 I have problems with dxf because theres so many variants Jul 07 07:51:33 JakeWharton - rolling social auth into einsetzen =) Jul 07 07:52:48 damn you're actually working on it?!? Jul 07 07:53:37 Hi, I am trying to get a simple linearlayout to work properly but the first element keeps going a bit lower than the others, and I dont get why Jul 07 07:53:38 http://paste.lisp.org/display/130424 Jul 07 07:53:41 the code is very simple Jul 07 07:53:57 this is how its rendered http://cl.ly/2j3G0M3V121E0f163k1t Jul 07 07:54:22 I tried setting gravities, margins, etc Jul 07 07:54:39 should I use a different kind of layout? Jul 07 07:55:31 In the LinearLayout you could try setting layout_gravity="top" Jul 07 07:55:40 it's the default Jul 07 07:55:45 Ah Jul 07 07:56:05 In that case I can't directly see why it would be shoved down Jul 07 07:56:10 you sure mirgins is default Jul 07 07:56:23 mirgins on controls Jul 07 07:56:29 Knossos: tried that, it didnt do it Jul 07 07:57:02 remove those layout_height=65dp Jul 07 07:57:04 use wrap_content instead Jul 07 07:57:16 (for the textviews) Jul 07 07:57:23 also cacheColorHint has no meaning on a LinearLayout Jul 07 07:58:19 romainguy__: that made it worst http://cl.ly/462v3y0w1d2Q3s211d1P Jul 07 07:58:57 totic: control mirgins? Jul 07 07:59:02 code http://paste.lisp.org/display/130425 Jul 07 07:59:15 XXCoder: what? Jul 07 07:59:31 this code goes inside an adapter.. Jul 07 07:59:47 I mean its the layout for an adapter not just an activity Jul 07 07:59:53 ok Jul 07 08:00:06 android:drawablePadding="-33dp" Jul 07 08:00:07 JakeWharton yes sir Jul 07 08:00:14 just use an ImageView instead of a Button Jul 07 08:00:15 things are falling into place for stuff I needed I didnt have Jul 07 08:00:24 nice Jul 07 08:00:25 anyway, try android:baselineAligned="false" on Jul 07 08:01:12 (also try on the emulator or on a device, just in case it's a bug in Eclipse) Jul 07 08:01:14 thanks that did it Jul 07 08:01:26 I tried it in a device Jul 07 08:01:30 it didn't work Jul 07 08:01:54 didn't know I needed it the baselineAligned Jul 07 08:02:09 normally you don't Jul 07 08:02:17 romainguy__: do you use blender for anything? (or maya, etc) Jul 07 08:02:22 g00s: no Jul 07 08:02:39 I have enough shit to deal with on my life, I don't need to add a 3D package to make it worse :) Jul 07 08:02:45 s/on/in Jul 07 08:02:56 :) Jul 07 08:03:29 yeah, i figure ps + lr + ai will be enough for me to learn Jul 07 08:03:38 why AI? Jul 07 08:03:48 i'm using inkscape now but its buggy as heck Jul 07 08:03:57 i guess ps has some vector in there Jul 07 08:03:58 Inkscape Jul 07 08:03:59 lol Jul 07 08:04:00 :p Jul 07 08:04:04 :| Jul 07 08:04:05 yeah PS has a few vector tools Jul 07 08:04:33 so did pixelmator for that matter … a few ;) Jul 07 08:05:03 g00s: really? I have near latest and its very stable Jul 07 08:05:32 I really like fireworks Jul 07 08:05:48 fireworks is awesome Jul 07 08:05:56 is there a way to know if all the text you add in a textView is being displayed? Jul 07 08:06:12 get the layout object Jul 07 08:06:19 I've played with it Jul 07 08:06:29 I'm glad those things came out Jul 07 08:06:38 is anyone experienced in publishing expansion files? Jul 07 08:06:42 my app is over 50MB and i the apk expansion is poorly documented Jul 07 08:06:45 i was wondering if someone could provide me with sample code and some instructions Jul 07 08:06:46 my employer has never been good with ui, so we had non designer knocking out designs Jul 07 08:06:54 valiolap: post on StackOverflow Jul 07 08:06:55 I just said, here are the design guidelines Jul 07 08:07:04 go to town =) Jul 07 08:07:17 you'll probably get better results and more visibility Jul 07 08:07:33 can you update expansion files independently of the main app? Jul 07 08:07:39 and is the user informed? Jul 07 08:08:31 my neighbor works for adobe; i'll just say i hear very interesting things about that company :) Jul 07 08:08:44 not positive things XD Jul 07 08:09:10 yeah i will post on sof then Jul 07 08:09:14 lol Jul 07 08:09:31 valiolap: link me when you do please Jul 07 08:09:35 i read somewhere that the main apk must be updatet as well when updating expansion files Jul 07 08:09:40 yea sure Jul 07 08:09:57 how come android:ellipsize="end" only works with singleLine? Jul 07 08:10:14 it's been fixed Jul 07 08:10:24 "However, even if your application update requires only a new patch expansion file, you still must upload a new APK with an updated versionCode in the manifest." Jul 07 08:10:28 FYI Jul 07 08:10:36 romainguy__: cool Jul 07 08:10:40 thanks! Jul 07 08:10:49 yea jake thats what i meant Jul 07 08:11:00 it seems like I keep running into weird little layout bugs.. Jul 07 08:11:02 man I ran into some seriously weird stuff when I investigated packagemanager Jul 07 08:11:09 valiolap: http://developer.android.com/guide/google/play/expansion-files.html these docs seem really comprehensive. what is unclear to you? Jul 07 08:11:18 Please I haven't been able to get an answer for this all day. If I have a class extending a view that I need to instantiate programatically, how can I make xml apply to it? Jul 07 08:11:27 the documentation has 10 links which lead to 10 new documents with 10 more links Jul 07 08:11:37 when I looked at it Jul 07 08:11:41 it looked very straightforward Jul 07 08:11:47 themirror: do you want to inflate it from XML or instantiate from code? it's one or the other Jul 07 08:11:57 its just that i'm not too experienced in this publishing stuff Jul 07 08:12:07 valiolap: so it's not poorly documented, you're being lazy :) Jul 07 08:12:08 maybe someone in here knows heh, is there a way for two android devices to find each other via 3g, without server? Jul 07 08:12:50 XXCoder not without some app Jul 07 08:13:20 you could do Bluetooth + WiFi direct *maybe* Jul 07 08:13:26 you could build something that would do bluetooth device name, or wifi network naming, or wifi direct Jul 07 08:13:33 ron_frown: yeah thats what I mean, develop some app that run on 2 devices. Jul 07 08:13:34 but youd have to have the other end setup right for that Jul 07 08:13:37 yeah sure Jul 07 08:13:40 romainguy__: so is there a workaround for the ellipsize? Jul 07 08:13:41 @romainguy_: I need to instantiate it from the code, it depends on calculated parameters. So I need to move all xml for it to the code? Jul 07 08:13:41 not 3g? drat guess not Jul 07 08:13:52 no Jul 07 08:13:57 you can inflate it from XML Jul 07 08:14:04 and set the parameters afterwards Jul 07 08:14:21 but without knowing more about what you're trying to do... Jul 07 08:14:30 are you talking to me? Jul 07 08:14:41 Alright, algorithm for generating meshes no longer creates garbage! Now to route out the Strings. Jul 07 08:14:57 totic: no I wasnt, and there's no workaround Jul 07 08:15:05 cool Jul 07 08:15:43 romainguy__: me? guess so. if I ever have skill to setup a server my app idea may become viable. Jul 07 08:16:13 XXCoder: I wasn't talking to you either :) Jul 07 08:16:19 lol ok Jul 07 08:16:28 I could have sworn there was an relatively easy way to get multiline elipsizing text view Jul 07 08:16:41 JakeWharton: it works but not beyond two lines Jul 07 08:16:45 If I have to update a set of textviews (~16) every 20ms with float values, what's the best way to do this without invoking a hurricane of garbage from using Strings? Jul 07 08:16:48 except in JB :) Jul 07 08:16:52 romainguy__: isn't there a way to get the displayed text from the textview and then if its bigger than that add ...? Jul 07 08:17:05 lasserix: don't use textviews, draw on a Canvas Jul 07 08:17:09 romainguy_: okay I could probably live with passing parameters right after inflating. My TouchPanel object needs to be passed a write lock for use, among other things Jul 07 08:17:15 totic: you can implement it manually sure Jul 07 08:17:21 I think we wrote one because I know we have an up-to-three-line elipsizing view in our app Jul 07 08:17:22 I like Inkscape Jul 07 08:17:26 er Jul 07 08:17:31 Ignore that, was scrolled up :D Jul 07 08:17:35 hehe Jul 07 08:17:39 Knossos: lol Jul 07 08:17:48 k, whats you use it for? Jul 07 08:18:06 all of my icons are svg from inkscape Jul 07 08:18:11 I know its vector gfx I mean usage as in utility. I usually use it for icons and sucj Jul 07 08:18:13 Backgrounds, icons Jul 07 08:18:27 romainguy: ahh thanks! I think this is my last unintended garbage to deal with. Jul 07 08:18:27 totic: http://stackoverflow.com/a/6763689/132047 maybe? Jul 07 08:18:46 It is useful for icons because you only have to make it once, and then export it to the 50 billion images Android needs :P Jul 07 08:19:00 JakeWharton: argh the ellipsis is made of 3 dots Jul 07 08:19:05 I mean 3 characters Jul 07 08:19:14 instead of the Unicode ellipsis codepoint Jul 07 08:19:47 bobcatz is a filthy spammer Jul 07 08:19:52 yeah, ours doesn't have that thankfully. Jul 07 08:20:14 stuff like that really bothers me for some reason Jul 07 08:20:33 [10:08:05] Welcome open source lovers! we invite you to join, type /server .... . A new network, more friendly, away from rushy channels. staff needed. stay there for some time, dont hesitate to chat with anyone :)(details = http://.... )This is a serious offer for selective people. Jul 07 08:20:38 king_ve is spamming (sorry dude, but that's not cool, I know you mean well, but this is an official channel dude) Jul 07 08:21:07 i hope i never have to read the code for TextView again Jul 07 08:21:16 meh Jul 07 08:21:29 zeeZ, I got that same msg from king_ve Jul 07 08:21:47 So did I Jul 07 08:22:06 so distracting :/ Jul 07 08:22:34 I like how "selective people" means the whole channel :P Jul 07 08:22:43 I dont read privmsg =) Jul 07 08:22:52 lawl, yeah, pretty much Knossos. :) Jul 07 08:22:58 We're special! Jul 07 08:23:39 didnt get any priv msg. guess im not special enough lol Jul 07 08:23:46 ron_frown, heh, I have a really loud and annoying /privmsg notify sound, I should fix that or I wouldn't have been so annoyed Jul 07 08:24:08 I've learned that my involvement here brings a lot of unsolicited privmsg Jul 07 08:24:23 man I cant wait for jb official Jul 07 08:24:31 these nexux roms have TERRIBLE battery Jul 07 08:24:32 i can't wait for the AOSP push Jul 07 08:24:47 that too Jul 07 08:24:56 just finished syncing ics Jul 07 08:25:01 gonnag et my mac up as my dev machine Jul 07 08:25:08 bring my hardware to market shortly after einsetzen +0 Jul 07 08:25:18 you re-invigorated me Jul 07 08:25:33 <3 ron_frown :) Jul 07 08:25:54 Turn on airport mode. Jul 07 08:26:02 Makes the battery last forever, imo. Jul 07 08:26:14 I just turn data off Jul 07 08:26:25 My XOOM lasts for months when it's off Jul 07 08:26:30 (my LG Ally (lol I suck) basically lasts a whole week with airport on)) Jul 07 08:26:34 not as long lasting as airplane mode, but still long time, AND I still get sms Jul 07 08:26:56 Sweet XXCoder :) Jul 07 08:26:57 ron_frown: wat is einsetzen ? Jul 07 08:27:15 I tink the whole kernel with who knows whats needed running an arm jb prebinary just doesnt work 100% right Jul 07 08:27:16 epic is heavy battery drainer and mine lasts 5 days Jul 07 08:27:21 dont think my phone ever goes deep sleep Jul 07 08:27:26 g00s you shall see =) Jul 07 08:27:34 oh, your project ? Jul 07 08:27:36 ron_frown: better battery stats, free from xda Jul 07 08:27:38 something jake and I attempted a few times =) Jul 07 08:27:55 SearchView#setSuggestionsAdapter isn't used anywhere in AOSP :( Jul 07 08:28:07 i do miss google code search Jul 07 08:28:14 i found a lot of android api examples using that Jul 07 08:28:28 cd ~/dev/AOSP && grep -r 'whatever' . Jul 07 08:28:38 if its in aosp , sire Jul 07 08:28:39 *sure Jul 07 08:28:58 why can't you just use regular google with some query hacks? Jul 07 08:29:13 I would venture to guess a LOT of examples exist in googles code base Jul 07 08:29:19 cant think of something thats not in there by default Jul 07 08:29:49 ron_frown: you would be surprised :) Jul 07 08:29:55 g00s, may I ask why google code search is missing for you? Are you in Cuba? :P Jul 07 08:30:08 didn't they retire that ? Jul 07 08:30:31 not as far as I can tell, but they blocked it in Cuba recently... Jul 07 08:30:45 ron_frown: there are things we used to use Jul 07 08:31:12 ahh good point Jul 07 08:31:22 http://www.google.com/codesearch Jul 07 08:31:27 oh dang my bad sorry Jul 07 08:31:39 http://code.google.com/codesearch Jul 07 08:32:25 hmm, JakeWharton, interesting Jul 07 08:32:29 yeah, for stuff on google code hosting only though Jul 07 08:32:35 damn I can't seem to get the size of the visible text with http://stackoverflow.com/questions/8636946/get-current-visible-text-in-textview Jul 07 08:32:44 I guess it hasn't been set at that point Jul 07 08:32:59 that's a dang shame Jul 07 08:33:00 ron_frown: when do we get to see your creation :) Jul 07 08:33:08 * joshcryer shakes a fist at google Jul 07 08:33:21 joshcryer: part of spring cleaning :) Jul 07 08:33:22 I found some awesome stuff on their code search awhile back Jul 07 08:33:26 glad I saved it... Jul 07 08:34:32 g00s, thanks, just another disappointment. :P they had a good feature there (I haven't used it in awhile though thus my failure to realize they cut it off) Jul 07 08:35:05 g00s - I just now started rebuilding it Jul 07 08:35:14 I've got most of the infrastructure in place now Jul 07 08:35:28 just gotta add the meat and potatoes Jul 07 08:35:39 I'm hoping a not-so-pretty prototype in a week Jul 07 08:35:50 keep finding shit I gotta build custom implementations of because whats there blows Jul 07 08:36:55 man... maybe I shouldnt have kicked off an aosp build at the same time I am trying to work on this code =) Jul 07 08:38:24 I got a good full day of manual labor ahead of me tomorrow, starting bright and early... and here I am at nearly 2am farting around online Jul 07 08:38:54 Damn... Jul 07 08:39:12 I hate how every advertisement these days contains an iPhone or some shit like that :( Jul 07 08:39:31 ron_frown but you are having fun, no? Jul 07 08:40:02 if my computer was moving a tad faster, I'd be having more fun Jul 07 08:46:00 If you guys are doing a lot of grepping around AOSP, I'd recommend setting up codesearch: http://code.google.com/p/codesearch/ Jul 07 08:46:23 Written by rsc, who wrote the original Google Codesearch tool Jul 07 08:54:09 Ahh, finally ~/ Jul 07 08:54:15 mdwright: cool. thanks! Jul 07 08:55:15 argh..impossible to make a sizeable app update without a screwup affecting some users :/ Jul 07 08:57:54 bubbleguuum: now scale that to an entire OS ;) Jul 07 08:58:51 yes I see what you mean... Jul 07 08:59:56 thanks $deity for automatic crash reporting and Google Play not requiring approval for hotfixes like some other app store Jul 07 09:00:35 it helps a bit Jul 07 09:03:06 aaah the proverbial Market comment: "it worked before !! what have you done, you broke it! please fix!" Jul 07 09:08:47 [curiosity question] Anybody using OpenCV for Android? if so are you targeting Google Glass? if so for what usage? Jul 07 09:21:30 /j #teamkang Jul 07 09:22:00 Hi Jul 07 09:22:02 Hi, can someone help me with my code? ... Got a LinearLayout with 3 tabs and Fragments in them.. Everything is working if the fragmentclasses are extending "Fragment" but i wanna have a ListView in one of them now / why can't i just switch "extends Fragment" to "extents LIstFragment" ? Jul 07 09:22:33 hey anyone Jul 07 09:22:38 according to this document: http://developer.android.com/guide/google/play/expansion-files.html Jul 07 09:22:55 am i on the right track: http://pastebin.com/Aym2LfYA Jul 07 09:23:20 if i upload the .zip file as a main expansion file Jul 07 09:24:33 Utopiah: Lets say you are looking at the screen. Object detection warnings, so you dont walk into stuff like the camera man during the presentaion :D? Jul 07 09:30:53 Has anyone figured out how to queue (I guess playlists) youtube vids and actually play the complete queue on the Q? Jul 07 09:31:18 Created a couple of playlists, can't see any action to play the complete playlist. It just plays one item from the list Jul 07 09:31:23 Nexus Q that is Jul 07 09:34:23 Zooklubba you mean how to make a list of youtube videos Jul 07 09:34:27 in code? Jul 07 09:34:34 or how to play a list in some player app? Jul 07 09:35:02 Well, in the app since you only can use google music and youtube for the nexus q Jul 07 09:35:09 aah Jul 07 09:35:19 i was gonna paste u this Jul 07 09:35:20 More of a consumer question for the Q. But since only I/O attendees have the Q I asked it here Jul 07 09:35:23 avideoview.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { Jul 07 09:35:23 public void onCompletion(MediaPlayer mp) { Jul 07 09:35:23 //dostuff Jul 07 09:35:23 } Jul 07 09:35:23 }); Jul 07 09:35:26 lol Jul 07 09:42:28 Zooklubba: sure ;) but I doubt it's possible to do that fast enough without say an FPGA Jul 07 09:42:48 true Jul 07 09:43:14 Oh another thing, I suck at remembering faces Jul 07 09:43:29 That would be awesome, a small note over peoples head or pins to people with their name Jul 07 09:43:44 Only doing some brainstorming. Jul 07 09:54:48 [12:22:26] according to this document: http://developer.android.com/guide/google/play/expansion-files.html Jul 07 09:54:48 [12:22:42] am i on the right track: http://pastebin.com/Aym2LfYA Jul 07 09:54:48 [12:23:07] if i upload the .zip file as a main expansion file Jul 07 10:36:06 hey Hi I had made an app for locating my position on google maps Jul 07 10:36:23 although the map is loading but it says unable to find current location Jul 07 10:36:30 I am trying this on emulator Jul 07 10:36:47 so is it not possible to find out my current location on emulator Jul 07 10:37:58 Would it be very unadvisable if an actionbar, half the size of the width, be aligned to the bottom of the screen? Jul 07 10:39:50 hi all Jul 07 10:41:31 niteshnarayanlal: set emu coordinates in ddms view Jul 07 10:41:58 Emulator control tab Jul 07 10:42:26 Or telnet localhost 5554, then type geo fix Jul 07 10:42:54 one question: i have an ArrayList that is read by ArrayAdapter that feeds a ListView........ ArrayList takes data from an SQLite query... if i add a new record how do i tell ArrayAdapter that ArrayList data has changed? i used notifyDataSetChanged but it doesn't work... why? Jul 07 10:45:11 Miles8of9: are you actually updating that same ArrayList instance? Jul 07 10:45:34 If you're getting a new one through the query, you need a mechanism to get the new data into the arrayadapter. Jul 07 10:46:17 Hay, can someone help me with my ListFragment? http://pastebin.com/duWzqmeY ... If i use Fragment that works, but if i use Listfragment there is an Error "Error inflating class fragment" Jul 07 10:46:22 i'm running a new db query that fetches data from db and replaces the ArrayList with a new one Jul 07 10:47:09 should i use adapter.clear() and adapter.add to recreate the arraylist? Jul 07 10:47:23 ive set up an alarm manager to launch an activity at a specifc time. logcat tells me it has been started, but nothing happens ( its supposed to load a layout.xml file) Jul 07 10:47:26 why could this be? Jul 07 10:48:56 i think i'm doing something wrong with replacing the ArrayList with the new one instead of using add/remove Jul 07 10:50:25 are you resetting your listview's adapter? Jul 07 10:50:33 that forces it to refresh Jul 07 10:50:42 lv.setAdapter(newAdapter) Jul 07 10:52:05 hmm Jul 07 10:52:20 Miles8of9: well, replacing the arraylist outside the adapter won't change the arraylist inside the adapter. Jul 07 10:52:57 hmm true Jul 07 10:52:58 Using the adapter's add/remove is one way.. another is to simply construct a new adapter with the new arraylist and do setAdapter again. Jul 07 10:53:32 Yet another is to extend arrayadapter and add a mechanism to replace the current arraylist, but I guess simply making a new instance is much easier. Jul 07 10:54:05 Or.. clear() then addAll(newList) Jul 07 10:54:10 hmm Jul 07 10:54:47 ok i'll try thanks for help Jul 07 10:55:04 Alternatively, you could use a CursorAdapter, but that'll require some rewiring. Jul 07 10:58:02 ive set up an alarm manager to launch an activity at a specifc time. logcat tells me it has been started, but nothing happens ( its supposed to load a layout.xml file) Jul 07 10:58:33 Hmmm need more details/code Jul 07 11:00:58 well ive got an activity that will go over the database and get some times for the alarm. then i create an intent with the activity that doenst seem to do anything, a pendingintent with FLAG_ONE_SHOT and then i set an alarmmanager to the date with the pendingintent Jul 07 11:01:04 pretty basic stuff actually Jul 07 11:01:43 How has the onCreateView in a ListFragment has to look like? Shouldnt the ListFragment work without overriding it? If i use Fragment it works, but my ListFragment seems to throw the error "cann not be cast as a.a.Fragment" Jul 07 11:02:17 the alarm works, its just the activity that doesn't seem to be doing anything although it should actually load a layout and post something to logcat Jul 07 11:02:27 it doesn't need more than an onCreate method? Jul 07 11:03:13 Should be enough. Jul 07 11:03:38 I/ActivityManager(59): Starting activity: Intent { flg=0x4 cmp=com.festivalmate/.AlarmReveiverActivity (has extras) } Jul 07 11:03:51 nothing happens though Jul 07 11:04:42 What's in the onCreate? Jul 07 11:06:15 http://pastebin.com/7LY238Lv Jul 07 11:08:03 any ideas? Jul 07 11:11:27 could it be that the intent wont actually do anything because i made it with new Intent(AlarmScheduler.this, AlarmReceiverActivity.class); and at the time the intent is invoked I'm not in the AlarmScheduler activity anymore??? Jul 07 11:50:08 AccountManager isn't playing nice :-) Jul 07 11:54:41 what's the best way to store information persistently in an app? I'm searching for settings/preferences on the API docs but I'm not finding what I'm looking for Jul 07 11:55:30 heisenmink: shared prefs and databases are two options Jul 07 11:56:00 AlCapwn, I am going to store a session auth token in it, what is the best option then? Jul 07 11:56:07 Shared prefs are more simple Jul 07 11:57:41 heisenmink: I'd suggest shared prefs, but, I'm not sure re any potential security implications Jul 07 11:57:59 Prefs are app private Jul 07 11:58:16 But I've never used it myself for sensitive data Jul 07 11:58:36 Alright, thanks! :) Jul 07 11:58:46 I'd suggest checking stack overflow for anyone else with similar questions Jul 07 12:00:11 is it possible to launch an activity that doesn't load a Screen, but just posts a notification to the statusbar? Jul 07 12:01:20 hello! how can I set an ImageView's bitmap? I'm currently using a simple adapter to fill a gridview, but I think this is not sufficient... http://pastebin.com/b0zBPTHY Jul 07 12:02:10 data.getImage() is a bitmap Jul 07 12:03:44 Hi, having problems with SDK manager, I can't seem to install API16, it says ""Missing SDK Platform Android, API 16" Jul 07 12:03:53 Tried allsorts... Jul 07 12:20:05 Hello, I want to parse in my app a file from the internet. When I am testing the app with the emulator, the app crash but when I start it on my phone it works. When i am using browser in the emulator i can open the link. The Error log: http://pastebin.com/eFT6Hn7K Jul 07 12:21:15 Should I use a Timer if I want to make a timed level? Jul 07 12:22:58 java.lang.SecurityException: caller uid 10142 is different than the authenticator's uid « even though the name in authenticator.xml and the ACCOUNT_TYPE are the same Jul 07 12:32:22 sukramTM: android.os.NetworkOnMainThreadException Jul 07 12:32:29 There's your problem Jul 07 12:32:46 Don't do network stuff on the main thread, start a new one Jul 07 12:33:44 sukramTM: any sort of blocking actions should happen on another thread, otherwise android will show the app not responding message Jul 07 12:37:32 i am working on a music player application. Jul 07 12:37:33 i wanted to know what is the complete address on a galaxy nexus? Jul 07 12:39:53 AlCapwn: This comes with honeyCumb, right Jul 07 12:40:52 sukramTM: StrictMode is a gingerbread feature iirc but network activity should never happen in the main thread regardless of android version Jul 07 12:41:02 ok Jul 07 12:49:32 i wanted to know how to access songs on galaxy nexus in my app ? Jul 07 12:53:19 I have made a class named Checker but i can't make a new instance of it do i need to import it Jul 07 12:54:50 Does anyone know a nice and easy android tutorial, that is also explaining higher api level Jul 07 12:55:15 CreativeDev: get the book Professional Android DEV 4 Jul 07 12:55:27 best book if you wanted latest features Jul 07 12:55:44 thanks, and on web theres nothing good to start from the beginning? Jul 07 12:56:21 Not really. You can get the book off torrent Jul 07 12:56:26 pdf version Jul 07 12:56:50 ok I'm check the book out :D Jul 07 12:56:55 *checkinh Jul 07 12:57:27 the resources focus on 2.3 , but android has CHANGED a LOT since then Jul 07 12:58:12 ^^so the book is outated? Jul 07 12:58:20 its the latest Jul 07 12:58:25 released MAY 12 Jul 07 12:58:35 i personally used that Jul 07 12:58:55 ok Jul 07 13:22:07 Why does .addAccountExplicitly() complain about a uid-mismatch when I've got the same value for the ACCOUNT_TYPE in both XML and code? :( Jul 07 13:22:16 And yes, I do have the permissions intact. Jul 07 13:27:52 anybody knows how to access songs on galaxy nexus for a music player Jul 07 13:40:16 anyone has ever read from the .obb file? Jul 07 13:40:19 from apk expansion Jul 07 13:41:09 i have obb file that consists of a non compressed zip file (storage) Jul 07 13:41:15 how do i access the files in that zip? Jul 07 13:53:39 Is it possible to execute a MySql dump file in sqlite? Jul 07 13:54:07 anyone has information on this awesome crash: Process.setThreadPriority() throwing a RuntimeException("Unknown Error"): https://bugzilla.mozilla.org/show_bug.cgi?id=768629 .Android Firefox stacktrace but was also reported in my app, HTC One X running (custom?) 4.0.4. Jul 07 13:58:28 my favourite error: unknown error :p Jul 07 14:17:42 is it possible to have an always present separate thread or task that sleeps till i request something of it? Jul 07 14:18:19 i dont think asynctask() is going to work for me becase its a resource starved mechanism. you can only have so many in your app, only so many in the system as a whole Jul 07 14:19:40 i dont even know if its possible to have task A wake up task B to get it working and to have it go back to sleep after its finished. note: NOT quit the task/thread, just sleep Jul 07 14:19:47 so any suggestions on accessing songs on galaxy nexus? Jul 07 14:20:20 i know the address using sd card , but since it does not have one , any suggestions? Jul 07 14:25:07 guess nobody is awake yet lol dang Jul 07 14:26:33 I440r: why theres no activity here ?? Jul 07 14:26:52 yup. nobody woke up yet lol' Jul 07 14:27:03 this channel is quite active when ppl are awake Jul 07 14:27:52 when will they wake up , it has 653 active members Jul 07 14:27:56 right now! Jul 07 14:28:44 no idea, i only just got here myself Jul 07 14:29:53 so what app are you working on? seems like we have to help each other! Jul 07 14:30:55 lol ive no idea how to solve your issue tho. im working on a game and need quite a few separate threada but for one in particular i n eed it to be asleep most of the time and wake up when i kick it Jul 07 14:31:22 asynctassk() is problematical from what i can tell because its a resource starved mechanism Jul 07 14:31:37 can only have so many of them in your app, so many in the system as a whole Jul 07 14:31:55 lol. i too don't have any idea about yours ! Jul 07 14:39:06 3 Jul 07 14:39:25 2 Jul 07 14:39:40 1? Jul 07 14:54:08 app pricing on the market plz? Jul 07 14:54:10 how to do it Jul 07 14:56:01 hey guys Jul 07 14:56:53 someone is into bitmaps / imageviews ? :D Jul 07 14:56:58 i got a strange problem http://i.imgur.com/HiP76.jpg Jul 07 14:59:06 I'm struggling to understand the process of drawing with opengl es. I just want to draw something simple to see my code working. Even a line will do. Do I really need a full blown class for that? Jul 07 15:03:47 thers no freeking examples of what i want to do on the net either that i can find Jul 07 15:05:55 strange strange.. does a listview always try that his "row-views" all have the same height? It seems to be that, because i am getting strange results Jul 07 15:19:03 adjustViewBounds ftw! (just sayin') Jul 07 15:21:17 so ppl are awake now ? Jul 07 15:21:49 I try to copy a file from web to the device. The line: while(bytesRead = inStream.read(data, 0, data.length) >= 0){ eclipse say: Type mismatch: cannot convert from boolean to int. Here the code: http://pastebin.com/ADMdbUre Jul 07 15:21:58 i need to create a separate worker thread that i want to put to sleep till i have work for it to do. the only examples of this that i can find put the worker to sleep for a specific time period. thats not what im trying to do Jul 07 15:22:26 i want my dog to go to sleep and stay there till i kick it. when i kick it i want it to run outside, get the pater, bring it back to me and go back to sleep till i kick it again Jul 07 15:22:36 "get the paper" Jul 07 15:23:03 Why not just start it when you need it Jul 07 15:23:22 because i dont want to be continually creating and destroying the thread Jul 07 15:23:32 i want to create once and have it work when i need it to Jul 07 15:23:46 an d i dont want it sitting in a busy wait Jul 07 15:25:08 which of these permissions in my manifests pops up the "Phone calls - read phone state and identity" warning when installing the application https://github.com/gnychis/phone-activity/blob/master/AndroidManifest.xml#L27 Jul 07 15:27:37 so what would the right way to do this be. asynctask() is too resource crippled to be of any use to me Jul 07 15:27:57 i need a separate thread that will sleep till i tell it to work Jul 07 15:28:11 and i cannot find any examples of this except "sleep for 5 seconds" or some bs like that Jul 07 15:40:41 I try to copy a file from web to the device. The line: while(bytesRead = inStream.read(data, 0, data.length) >= 0){ eclipse say: Type mismatch: cannot convert from boolean to int. Here the code: http://pastebin.com/ADMdbUre Jul 07 15:42:36 sukramTM: yes, the expression inside the if is not of type boolean Jul 07 15:43:31 try putting parentheses around the stuff to the left of >= Jul 07 15:44:22 while ((x = y()) >= 0) Jul 07 15:44:40 i hate compound statements Jul 07 15:44:56 ah thx Jul 07 15:45:08 i would factor that into a do { x=y(); .... } while x > 0; Jul 07 15:45:25 but thats just me Jul 07 15:45:40 sukram: Look at the operator precedence table. Consider: assignment is an extremely low precedence operator while your comparison is higher. Jul 07 15:45:58 i need help with a threading issue. i need to create a thread that sleeps and stays there till i wake it up Jul 07 15:46:10 and which goes back to sleep whnits finished its task Jul 07 15:47:05 but i cannot find any examples of how my UI thread can wake up a separate sleeping thread Jul 07 15:51:04 Is there really no way to get the eclipse logcat plugin change its sort order on time and/or keep scrolled to the most current message? Jul 07 15:53:11 does Looper.loop() sleep till theres a message? Jul 07 15:54:36 if I have a menu item that is just going to load up an about screen, that screen needs to be it's own activity, right? Jul 07 15:55:51 Yes it does, I440r Jul 07 16:01:15 lool wtf does my database do haha Jul 07 16:16:04 see you guys Jul 07 16:25:23 yea i do not understand looper at all Jul 07 16:25:35 and none of the examples or tutorials ive seen helps me one iota Jul 07 16:25:57 and one of the sites that everyone keeps refering to is a reported attack site Jul 07 16:26:09 mindtherobot.com/blog/159/android-guts-intro-to-loopers-and-handlers/ <-- dont go here Jul 07 16:26:24 why would people keep refering nubs to reported attack sites? Jul 07 16:26:53 Of the 95 pages we tested on the site over the past 90 days, 15 page(s) resulted in malicious software being downloaded Jul 07 16:35:15 hello can sombody tell me if im using Async correctly Jul 07 16:35:16 http://pastebin.com/sgaZdFQ7 Jul 07 16:35:18 ok this fucking sucks. the only examples of using a haldler and looper i can find do not explain anyhthing about thei workings, they jmst puk,e code outand the message is sent from the sub thread to the main thread. wrong fucking way Jul 07 16:35:37 i need a thread that sleeps till i wake it up, it will then do its job then go back to sleep Jul 07 16:35:46 i cant find ANY examples of this at all Jul 07 16:36:30 have u considered using a service I440r ? Jul 07 16:37:08 a service does not run inside my apps process space Jul 07 16:37:13 that wont work for me Jul 07 16:37:14 at all Jul 07 16:37:52 what about a simple timer? Jul 07 16:38:06 i need a thread or a task that runs inside my apps process space but which sleeps till i tell it "do this" unpon which time it will do its job then go back to sleep Jul 07 16:38:27 a timer is NOT what i need. i do not want my thread to be in a busy wait loop Jul 07 16:38:41 it needs to sleep till woken, do its thing then stleep tll i wake it again Jul 07 16:40:04 why the fsck this is so freeking impossible to find examples of is beyond me. this is CORE to multi tasking. Jul 07 16:40:25 yet i find NO freeking examples of i nor any predefined classes to do it Jul 07 16:40:58 asynctask is no good to me either. i think anyone using asynctask() is asking to be fscke3d up the ass by the OS Jul 07 16:41:12 why is that Jul 07 16:41:39 because you can only have so many async tasks in your app. there can only be so many async tasks in the system as a whole Jul 07 16:42:14 im trying to addFootView() but the findViewById is returning null Jul 07 16:42:24 yet after 2 days of searching and rtfming all about threads tasks loopers and handlers ive only seen ONE sight that actually tells you this Jul 07 16:42:27 im guessing because the view is in a completely different layout xml Jul 07 16:43:06 parco you can only have ONE active layout at a time (unless your using fragments?) Jul 07 16:43:08 parco try a layout inflater Jul 07 16:43:20 Do i need to inflate one view into my main layout, and if so, does it automatically show somewhere? Jul 07 16:44:38 considering the main layout is the only xml that will be using the "inflated" view, can i just add it to the layout and hide visibility? Jul 07 16:45:23 you can also hide the visibility inside the xml Jul 07 16:45:44 android:visibility="gone" would do the trick Jul 07 16:46:28 okand_: but then when i addFooterView i would also need to visibility = visible? Jul 07 16:47:26 yea Jul 07 16:47:37 v.setvisibility(View.visible) Jul 07 16:47:59 i have a feeling its also then going to show the other one, that i dont want Jul 07 16:48:06 ill try and see Jul 07 16:49:51 I440r, have u considered calling the app instance and starting the thread from over there each time? Jul 07 16:52:11 okand_, say what? Jul 07 16:52:18 oh Jul 07 16:52:24 run once then die Jul 07 16:52:34 yea Jul 07 16:52:45 like having some method inside your application class Jul 07 16:52:45 no. that would be a resource drain. create once, run many times but run only as needed Jul 07 16:53:51 i need this thread to sleep till kicked. and to go back to sleep once it completes its job. why the FUCK is this is such a difficult concept in android? Jul 07 16:54:49 looper looks sort of what i need but the examples i see of it are squirly as fuck i dont understand them at all Jul 07 16:55:27 Looper.prepare(); handler = new handler() { process incoming messages here} looper.loop(); Jul 07 16:55:29 ok wtf over?> Jul 07 16:55:42 i jujst do not ujnderstand that at all Jul 07 16:56:01 why are we looping AFTER the incoming message. how do we loop back to get the next message Jul 07 16:57:45 and why are 99% of all android "Examples" 28946529378462 lines of un commented "wall of text crits you forn 3846529864523, your dead" Jul 07 16:59:46 I440r: what is the confusing part of that looper example? Jul 07 17:00:28 it calls prepare. then it creats a halder, within the body of thye handler it handles an incoming message. it then calls looper Jul 07 17:00:40 yes Jul 07 17:01:09 errr that does not fit my mental pictore of a loop that goes to sleep wakes up on demand, performs a 'task' for want of a better word and then goes back to sleep till the next message Jul 07 17:01:23 I440r: do you know the concept of a main loop? Jul 07 17:01:38 or event loop Jul 07 17:02:16 25+ years in realtime embedded control. author of the worlds fastest compiler of any non trivial language... Jul 07 17:02:39 i understand the concept. NOT the implementation Jul 07 17:02:59 well, you could check from the android source code but i am pretty sure what Looper.loop() does is this: Jul 07 17:03:13 while (true) { check for messages, process if any else sleep) } Jul 07 17:03:28 it loops through a message queue and blocks till theres is a message Jul 07 17:03:30 except Jul 07 17:03:49 the message has already been handled by the body of the handler defined above Looper.loop() Jul 07 17:04:09 what? Jul 07 17:04:19 it just creates the callback for it Jul 07 17:04:22 it is not called Jul 07 17:04:47 Looper.loop() will basically call the handleMessage() of that handler every time somebody posts a message to that handler. Jul 07 17:06:41 handler = new Handler() { handle incoming message }; looper.loop(); done inside a new thread. the looper calls the body of the handler defined above it? Jul 07 17:07:02 it calls the handleMessage method Jul 07 17:07:39 if somebody posts a message to that handler Jul 07 17:08:14 new Handler() automatically register itself to the main loop of that Thread (which you created and associated with Looper.prepare()) Jul 07 17:08:20 err what method? Jul 07 17:08:45 http://developer.android.com/reference/android/os/Looper.html Jul 07 17:08:55 look at that typical example Jul 07 17:09:01 it has a handleMessage Jul 07 17:09:09 read it. understood not one iota of it Jul 07 17:09:25 yeah, well, that example is not the same as the thing you pasted Jul 07 17:09:32 at the top of the page it has a class LooperThread extends thread Jul 07 17:09:40 yes Jul 07 17:10:09 inside that it creats a handler. it then as a run() part which calls looper prepare. then it instanciates the handler and calls Looper.loop() Jul 07 17:10:23 does the looper call the instance of mHandler ? Jul 07 17:10:41 yes, the looper knows the existence of that mHandler Jul 07 17:11:12 because the default constructor of Handler() associated itself with the queue for the current thread Jul 07 17:11:53 ok. so now i want to add two n ew threads to that same loop Jul 07 17:11:55 how do i do that Jul 07 17:12:01 thats the whole point of a looper right? Jul 07 17:12:17 what? Jul 07 17:12:21 l440r: You still didn't got your problem solved? Jul 07 17:12:27 what do you mean by adding new threads to that same loop? Jul 07 17:12:57 anybody knows how to handle a directory of music songs in an app Jul 07 17:13:08 in my game i need n ultiple threads. one to play music. one to play sfx. one to control mobs. one to load map zones into memory as the player moves around the mapo Jul 07 17:13:24 my nick starts with an I not an L :) Jul 07 17:13:26 btw Jul 07 17:13:48 ohh. i tried but i couldn't figure that out ! Jul 07 17:13:54 so i went with l Jul 07 17:14:10 I440r: so you would create 4 different Threads, each of which have their own handler and their own message queue. Jul 07 17:17:09 is there a way to store some additional Object (int) in a child while using a SimpleExpandableListAdapter? I suppose I could use an invisble TextView, but that doesn't sound nice Jul 07 17:26:03 just got delivery of a new 1T drive for my laptop, picked up laptop and booted it and saw 384563874 ants run out from inside of it thru the keyboard Jul 07 17:26:06 wtf over? Jul 07 17:26:37 they better not be eating my heat compound lol Jul 07 17:28:17 sudo su - Jul 07 17:28:24 bah wrong kbd lol Jul 07 17:30:48 what is this Jul 07 17:31:00 the market apk expansion library requires api level 5 Jul 07 17:31:04 but in that library Jul 07 17:31:06 is a class Jul 07 17:31:09 that has this line Jul 07 17:31:10 String patchFileName = pi.metaData.getString("patchFilename", NO_FILE); Jul 07 17:31:16 whre the get string requires api level 12 Jul 07 17:31:18 i'm totally lost Jul 07 17:32:03 valiolap: If i had to guess I would say that the market apk expansion library claims to require api level 5 but it does, in point of fact, require api level 12. Jul 07 17:49:48 Doesn't sound too hard to fix.. Jul 07 17:51:48 fjornir my phone has sdk 7 Jul 07 17:51:57 yet i have downloaded apps with expansion apksw Jul 07 17:51:59 apks* Jul 07 17:52:20 but yeah probably easy to fix.. just not for me Jul 07 17:52:24 since i'm new to android Jul 07 17:53:35 is sdk # the same as api level btw? Jul 07 17:53:57 stupid question probably but forgive me Jul 07 17:55:10 fjornir i changed my mid sdk required to 12 Jul 07 17:55:14 now it compiles Jul 07 17:55:23 but does that mean the app cant be installed on 2.1. phones? Jul 07 17:55:31 for example Jul 07 17:55:35 min sdk* Jul 07 17:56:56 yeah it does mean that damm Jul 07 17:57:02 api 12 target is 2.3.5 Jul 07 17:57:53 "Note: By default, the Downloader Library requires API level 4, but the APK Expansion Zip Library requires API level 5." Jul 07 17:58:16 so they have updated the library but not the documentation Jul 07 17:58:24 now i just have to find older library i guess Jul 07 17:58:30 or fix this one Jul 07 18:05:14 anybody working on a music player application > Jul 07 18:05:15 ? Jul 07 18:05:50 Apollo float your boat? Jul 07 18:07:42 pallavagrawal i've done smth with audio files Jul 07 18:07:46 whats ur question Jul 07 18:08:09 yeah how do you access the music files in a galaxy nexus ? Jul 07 18:08:39 since it doesnt has a memory card Jul 07 18:08:54 ES File explorer? Jul 07 18:08:56 it doesnt have sd card but it might have another external storage right? Jul 07 18:09:14 Environment.getExternalStorageDirectory() Jul 07 18:09:16 log d this Jul 07 18:09:28 and browse it Jul 07 18:09:32 see what u find Jul 07 18:09:35 might solve ur problem Jul 07 18:09:56 i am newbie , where do i put it ? Jul 07 18:09:58 that shows ur externalstoragedirectory was it sd-card or smth else Jul 07 18:09:59 final String MEDIA_PATH = new String("R.raw.song1"); Jul 07 18:10:10 umm Jul 07 18:10:14 what do i put it in the quotes Jul 07 18:10:40 thats resource id u're referring to Jul 07 18:10:49 R.raw.song1 Jul 07 18:10:58 hmm Jul 07 18:11:05 do u have ur own audiofiles u want to play back Jul 07 18:11:14 audio in the apk Jul 07 18:11:18 or in the phone? Jul 07 18:11:24 in the phone Jul 07 18:11:46 are you using mediaplayer? Jul 07 18:11:49 or soundpool? Jul 07 18:11:50 or what+ Jul 07 18:11:55 sec i must go open door for frend Jul 07 18:11:55 brb Jul 07 18:19:23 any body else worked on some music application Jul 07 18:19:57 what could be the reasons that an application that works perfectly fine on 2.3 crashes on 4 Jul 07 18:21:28 pallavagrawal: how about having a look on the crash dump? Jul 07 18:21:55 i did but since i am a newbie one or the error keeps cropping up Jul 07 18:22:53 if (home.listFiles(new FileExtensionFilter()).length > 0) { Jul 07 18:23:13 Question: Is it possible to make a preference activity that can edit system settings. Kinda like a volume manager type deal? Jul 07 18:23:25 xertoz: it says here java.null.pointer exception Jul 07 18:23:46 and it gives you a trace - yes. look at it and figure out why you are getting a null pointer ;) Jul 07 18:24:04 xertoz:if i could then why would i be asking here ! Jul 07 18:24:13 even google is answerless 1 Jul 07 18:24:14 ! Jul 07 18:24:21 Interesting point... Jul 07 18:24:28 "why does my app crash?" is a VERY implicit question Jul 07 18:25:13 xertoz: i can show you the code if you want ? Jul 07 18:25:49 Why does my app crash on startup, this at least narrows it down. Or if it crashes when you try to do something keep that thing in mind and look that the area of code that thing is in. Jul 07 18:25:58 I won't be able to help (neither will anyone else be) until a problem has been properly formulated. is the crash being reported by a user or can you reproduce it? Jul 07 18:26:36 Is there something I need to do after tabHost.setCurrentTabByTag(subject); to make the tab selection work? Jul 07 18:26:59 xertoz: it crashes before on create , before inflating any UI Jul 07 18:27:41 The stack trace usually tells you why it's crashing Jul 07 18:30:07 pallavagrawal: it won't even enter onCreate at all? Jul 07 18:30:31 No Jul 07 18:31:02 check project settings for API versions etc - I'm no expert on those matters but there might be a problem with that. Jul 07 18:31:16 (as always, a stack trace would still be useful) Jul 07 18:31:34 declaring all activities properly in the manifest etc? Jul 07 18:31:42 i think the code is unable to populate a playlist of songs in my phone . thats why it crashes Jul 07 18:31:51 (read up on what's new for 4.0 - there's usually good documentation around) Jul 07 18:32:41 no matter how it crashes, you still will end up with a stack trace. (use it!) Jul 07 18:33:35 Hi, just trying out the ADT20 Activity creator, what do I put in for "hierarchical parent", or where can I read what it means... Jul 07 18:34:45 pallavagrawal: don't paste code in a private message, use pastebins Jul 07 18:34:59 sorry! Jul 07 18:35:00 http://www.foxnews.com/us/2012/07/07/zimmerman-released-on-bail-under-stricter-terms-398111918/?test=latestnews cop in the background looks evil Jul 07 18:36:55 xertoz:http://pastebin.com/ZM1RbhBf Jul 07 18:38:09 xertoz: http://pastebin.com/ZM1RbhBf Jul 07 18:39:16 and what's the complete stack trace for the exception? (adb gives you this information) Jul 07 18:39:38 http://pastebin.com/Z4WSRn4J Jul 07 18:40:18 xertoz: http://pastebin.com/Mtn8CUBS Jul 07 18:40:26 pallavagrawal: also, you are not checking if home was actually opened or not Jul 07 18:41:13 pallavagrawal: onCreate is being run, the exception has its origin in MainActivity.java:77 Jul 07 18:41:40 one step into that, there's SongsManager.java:25 etc Jul 07 18:42:01 what's zygote? Jul 07 18:42:31 xertoz: http://pastebin.com/epcSt1mR Jul 07 18:42:37 mainactivity.java Jul 07 18:43:14 I doubt /media is a path on any device Jul 07 18:43:41 i dunno , its galaxy nexus any idea ? Jul 07 18:45:17 what i think is happening is the getPlaylist() is null and causing errors Jul 07 18:45:22 basically if you look on the stack, you notice that there's a null pointer on line 25 Jul 07 18:45:30 which is caused by the file not being opened (home is null) Jul 07 18:45:35 do proper loading of the file Jul 07 18:46:31 how? Jul 07 18:47:43 Android also exposes a contentprovider for getting e.g. audio files on the devices Jul 07 18:47:46 Look up MediaStore Jul 07 18:47:55 You should probably use that instead of manually scanning the sd card Jul 07 18:49:04 also, a great tip is to read up on how to step debug (that way you can easily see what's happening at certain points in your code) Jul 07 18:49:10 Hello, http://tools.android.com/recent/lintapicheck/ in the second example @TargetApi is used inside method is that possible? I tried it but eclipse does not like it. Jul 07 19:03:29 hello, I want to make a factory reset to get an unencrypted Galaxy Nexus, the first step to start with to recover root acces. I have done a backup with adb, but I don't trust the application to backup everything. Is the a way to prove if something (eg. Pictures) is backed up? Jul 07 19:04:07 transfer them to your comp? Jul 07 19:04:09 dropbox? Jul 07 19:05:09 I don't have a dropbox account, as I read the policies Jul 07 19:05:48 I can try to save the one or other file seperately but I will forget something for sure Jul 07 19:07:20 Pictures should be store on the external storage, so just attach it to your pc and drag'n'drop Jul 07 19:07:47 SimonVT: the Galaxy Nexus does not have a SD Slot Jul 07 19:07:55 ArGGu^^: Pretty sure that's not possible Jul 07 19:08:07 Use an usb cable Jul 07 19:09:13 SimonVT: I did to get the adb backup - and I just want to be sure that nothing is missing after the reset. As I mentioned I can try to save the one or other important file but probably I will miss somethng Jul 07 19:10:15 darn those spammers Jul 07 19:18:13 damnit, the Folder DCIM (here are videos and pictures taken by the camera located) is not readable, any Idea how I can backup it? Jul 07 19:18:38 when I change into that directory I get an emtpy directory Jul 07 19:20:03 guys , I need some help.......... I have an easy job of converting a 2.3 app to 2.1 .... easy , but there was a little problem , I had to delete some lines of code that refered to the StrictMode imlementation .... any problem if that's not there ?? ... from what I understanded (I've read on the dev page) that is pretty much used when developing , but the main use in this app would be getting rid of those errors that appear when Jul 07 19:20:44 if there are any.... though I have;t encountered any when testing the app if it works... Jul 07 19:22:22 so, my question is.... could it influence the application if I delete the StrictMode lines of code ? (I haven't find anything different from testing it after the downgrade...) Jul 07 19:23:06 what is the clean way to share a particular view, like a header, amongst multiple layouts Jul 07 19:27:23 Hey guys, I'm in the process of making a simple game to learn the android platform. I would like the game to run on Android 2.3.4 and Android 4.0.1 (my devices available). The game consists of two sections, browsing a list of active games and the actual game area. My plan was to use fragments for them and the actionbar. I'm unsure how to make this function on 2.3.4 though. Is there some sort of backwards compatible thing I can Jul 07 19:27:23 do or should I just make 2 separate apps? Jul 07 19:29:26 salec, the lower the API the more compatible is .... I mean a lower API of couse it will work on the higher one :) Jul 07 19:29:43 so you can made it for the 2.3.4 and it will work on 4.0.1 :) Jul 07 19:29:47 *make Jul 07 19:29:59 salec: actionbar sherlock Jul 07 19:30:01 should I forego using fragments and the actionbar then since those were in 3.0 and up? Jul 07 19:30:30 salec: allows you to use fragments uptill 2.2 i believe Jul 07 19:30:30 interesting f2prateek Jul 07 19:31:08 actionbarsherlock backports the actionbar to 2.1 Jul 07 19:31:16 It's the android support package that lets you use fragments Jul 07 19:46:24 hello everybody Jul 07 19:46:27 Can someone help me with this? On line, 56, there's a red line under "loadFromUri" that says "The method loadFromUri(ImageZoomActivity, String, int, int) is undefined for the type ImageLoader". There is also a red line under "setImageBitmapReset" that says "The method setImageBitmapReset(Bitmap, int, boolean) is undefined for the type ImageViewTouch" . Code here: https://gist.github.com/3067877 Jul 07 19:46:53 i wan't to pass an array of custom objects from one activity to another. Can anyone tell me how can i do that ? Jul 07 19:48:05 jessicajames: That means those methods doesn't exist Jul 07 19:48:22 sunny_slls: You make them parcelable and pass them in the intent Jul 07 19:50:36 SimonVT, do you know where the ImageLoader class is? I thought I downloaded correctly...but I might've used the wrong one. I'm wanting to implement this (https://github.com/sephiroth74/ImageViewZoom) and thought ImageLoader came from here (http://code.google.com/p/libs-for-android/wiki/ImageLoader) Jul 07 19:55:03 i plan on setCompoundDrawables() within getView of ArrayAdapter, bad idea? Jul 07 19:55:52 or should i just make a layout already including the imageview next to textview Jul 07 20:02:25 I cannot find the sephiroth ImageLoader class for the life of me. Has anyone used this before? Jul 07 20:02:58 Its in the Northern Cave Jul 07 20:03:27 where the penguins reside Jul 07 20:03:41 g00s: Damn straight Jul 07 20:07:34 does getDrawable() do some heavy lifting? should i be worried if im calling for each getView()? Jul 07 20:16:12 my eclipse is being completely shitty Jul 07 20:16:46 parco: that implies it acts not shity sometimes? Jul 07 20:18:54 drpenguin: *shittier, syntax errors for semicolons that exist, cleaning everytime is the only fix Jul 07 20:19:48 parco: ive been runing into problems with the latest adt, he generated manifest file of a new project is all fubar Jul 07 20:20:52 parco: control-1 (quickfix) clear all lint markers Jul 07 20:21:08 they're supposed to fix that in the next eclipse adt Jul 07 20:22:07 luyang: good call, thx Jul 07 20:23:02 you're welcome Jul 07 20:27:58 hello all Jul 07 20:28:26 reminders set to go off via alarm manager do not work if app is on sd card, is this correct? Jul 07 20:31:25 QubeZ: thaat.. doesnt make much sense in my mind Jul 07 20:31:39 true, i've read this around though but I need to test it Jul 07 20:32:02 just wanted to confirm.. i can see why so many productivity apps do not allow move to SD and then users complain Jul 07 20:32:16 like users of Any.Do... thats why I'm trying to keep TDM small footprint as possible Jul 07 20:32:20 I wonder if text alarm works on an SD card.. I could move it to it and try it real quick.. its sad but I never use or tweak my app :P Jul 07 20:32:35 hehe Jul 07 20:32:57 im lazy lol, work makes me bleh Jul 07 20:34:04 without SQLiteDatabase.rawQuery does the query required quotes around string variables passed in using selectionVars ? Jul 07 20:34:32 e.g. "INSERT OR REPLACE INTO ... VALUES (?, ?)" or "VALUES ('?','?')" ? Jul 07 20:34:50 no, i believe it quotes for you... if you're using the new String[] { var1, var2...} Jul 07 20:34:59 *nod* cool, thanks Jul 07 20:35:11 atleast if it fails we will know why ;) Jul 07 20:35:29 wait, you're using rawQuery? or just .query(.. ? Jul 07 20:35:35 rawQuery Jul 07 20:35:52 no reason why I need a cursor, but .query seems really anal about me not using it for INSERT queries Jul 07 20:35:53 the problem with adt and lint, is that there never seems to be a release where everything just works. either one works, the other works, or they are both broken in incredible ways Jul 07 20:36:19 i've been waiting for a working adt + lint for about 6 mos now, either library dependencies were broken, lint was broken, its always something Jul 07 20:36:21 robb_www: it quotes yes, but if you are using a select in yoru rawQuery with LIKE then you need to put the % yourself Jul 07 20:36:38 *nod* that makes sense Jul 07 20:36:48 i.e. select * from tbl_blah where title LIKE ?, new String[] { "%" + searchString + "%" }... Jul 07 20:37:16 surely it doesnt matter if % is in searchString beforehand? Jul 07 20:38:35 then its all good.. so if you do String myModifiedString = "%" + search + "%"; then you can just use the var in that Jul 07 20:39:23 *nod* for a moment i assumed you meant % would be escaped by .rawQuery and id have to concatenate them in the SQL Jul 07 20:40:13 anyway im not using wildcards at the moment Jul 07 20:40:37 then ignore me.. at least for the last few lines :) Jul 07 20:41:43 since you seem familiar with this part of the API, is there room for case-insensitive matching? Jul 07 20:41:48 ok i just set an alarm and moved to SD... lets see what happens Jul 07 20:42:16 robb_www: yes, at the end you put COLLATE NOCASE Jul 07 20:42:44 ahh nice, i was just looking at the COLLATE support in a different RDBMS :) should have read further Jul 07 20:43:11 *nod* Jul 07 20:43:13 ok im out Jul 07 20:43:19 thanks for the help, cu Jul 07 20:43:21 np Jul 07 20:55:04 I have an Android Library Project, how can I access the Java classes in the project Jul 07 20:55:10 I can only access the Android Resources. Jul 07 20:55:22 Should I convert the project to a java library Jul 07 21:04:03 SimonVT, are you here? Jul 07 21:04:45 lazy SimonVT, he's probably asleep in his crazy timezone Jul 07 21:04:55 what timezone is that? Jul 07 21:04:56 That really depends on the question :p Jul 07 21:05:13 JakeWharton, you know I follow US timezones :p Jul 07 21:05:29 but I am in europe Jul 07 21:05:42 anyway Jul 07 21:06:14 I was thinking of using your lib numberpicker Jul 07 21:06:53 but, I want it in a dialog, and not as in the sample Jul 07 21:07:22 so just got my sgs3 the other day and have an old incredible now...what should i do with it? Jul 07 21:07:34 errgnomeous: http://swappa.com Jul 07 21:07:41 Make your own episode of will it blend Jul 07 21:07:46 Be warned, you only have 1 shot! Jul 07 21:07:47 That's really not a library question :) But, use a custom layout in your dialog Jul 07 21:08:15 I have, and I use the widget, but how do I "catch" the value and save it in the preference Jul 07 21:08:34 Set an onvaluechangelistener Jul 07 21:08:42 oh, good idea Jul 07 21:08:59 you could also do it in the DialogInterface.OnClickListener for the positive button Jul 07 21:09:08 haha, i'll get like 4 bucks for it if i sell it Jul 07 21:09:14 Or that, yeah Jul 07 21:09:16 this way if they hit cancel nothing will change Jul 07 21:09:16 Probably better Jul 07 21:10:07 ahh Jul 07 21:10:08 yeah Jul 07 21:10:13 errgnomeous: as far as I can see the most recently sold ones went for ~$80 Jul 07 21:10:19 sold what Jul 07 21:10:25 oh Jul 07 21:10:26 that's a few six packs Jul 07 21:10:29 canadiancow: your dignity Jul 07 21:10:31 :( Jul 07 21:10:34 hello, how is possible to type text from a standard Java String multi array, for example i hava an array[] assigned to three sentences, how is possible to pass array[0] to a textView ? Jul 07 21:10:40 my dignity is long gone Jul 07 21:10:45 well so is yours though, so .... Jul 07 21:10:47 hava/have Jul 07 21:11:05 kken: you need to join them first Jul 07 21:11:27 but only certain states allow the joining of objects of the same type Jul 07 21:11:52 what do you think guys https://dl.dropbox.com/u/18131766/earth.gif https://dl.dropbox.com/u/18131766/earth2.gif Jul 07 21:12:22 It spins Jul 07 21:12:30 sorry i don't understand what exactly you mean, could you suggest me a few classes to view to take an idea Jul 07 21:12:46 in g+, how do you prevetn a circle from showing up in your feed Jul 07 21:13:11 StringBuilder builder = new StringBuilder(); for (String s : yourArray) { builder.append(s); } theView.setText(builder.toString()); Jul 07 21:13:32 Thank you. Jul 07 21:14:24 for future reference, if you need it to be synchronized, you can use StringBuffer Jul 07 21:15:19 just make every method synchronized Jul 07 21:15:24 that fixes all multithreading issues Jul 07 21:15:26 if he's calling view.setText() it's on the main thread Jul 07 21:15:35 lol @ cow Jul 07 21:15:46 youd be surprised how many people believe that though Jul 07 21:15:52 "oh this method has threading issues. i'll just synchronize it" Jul 07 21:17:17 canadiancow: thats just sad Jul 07 21:19:59 Hi, surfaceCreated is not being called. http://pastebin.com/2r0e6iDw http://pastebin.com/1kjJ2SQD http://pastebin.com/uDUNvMAm Jul 07 21:21:37 I don't know why, but that's all the offending code. Jul 07 21:23:31 how do I start the dialog from clicking a preference list item? Jul 07 21:29:19 when i do intent = new Intent(Intent.ACTION_VIEW, uri); with a gps uri to open up the app at a given lat/lon, is it possible to set the default zoom within the opened intent? Jul 07 21:29:36 open up the maps app* Jul 07 21:31:17 ahh screw it Jul 07 21:31:39 everyones out partying :) Jul 07 21:31:48 guys, I'm stuck with ListView, notifyDataSetChanged() and setSelected(). I'm implementing kind of lazy load (from the top) list. So, I'm using transcript mode. Looks like setSelected right after notifyDatasetChanged doesnt work at all. So, I'm frozen at position 0 (my condition to begin data part load) until all data been loaded. Jul 07 21:32:11 How should I 'scroll back' to position where data loading began? Jul 07 21:34:44 figure out how many new items you added and setScrollPosition to the difference Jul 07 21:35:14 Well. I said: it doesnt work. Jul 07 21:35:39 I see nowhere where you said that Jul 07 21:36:05 right here: "Looks like setSelected right after notifyDatasetChanged doesnt work at all. " :) Jul 07 21:36:17 oh Jul 07 21:36:33 sry, you're talking abuout scroll position :) Jul 07 21:37:24 I'm going with the old school listpreference Jul 07 21:38:08 I'll try once more to see if anyone knows. Jul 07 21:38:10 JakeWharton: " Jul 07 21:38:10 Hi, surfaceCreated is not being called. http://pastebin.com/2r0e6iDw http://pastebin.com/1kjJ2SQD http://pastebin.com/uDUNvMAm Jul 07 21:38:10 Since: API Level 11" Jul 07 21:38:18 I'm using 7 Jul 07 21:39:56 Looks like I'm sleeping already. Where is .setScrollPosition() method in ListView? %) Jul 07 21:40:25 http://j.mp/NNCiNx Jul 07 21:47:06 I have a public class BanlistFragment extends ListFragment and want to call this.setListAdapter(new BanlistItemAdapter(this, android.R.layout.simple_list_item_2,items)); ... Somehow he recognises "this" not as context but as ListFragment, where do i get context from?! Jul 07 21:52:10 Of course not, fragment does not inherit from context Jul 07 21:52:16 Use your activity Jul 07 21:54:08 lol Jul 07 21:58:03 Well, how do i access setListAdapter in a ListFragment out of an Activity? Jul 07 21:59:06 ~ How can i fetch that ListFragment instance Jul 07 22:00:11 getActivity() Jul 07 22:03:17 Yep, just do getActivity in your fragment to get a context Jul 07 22:03:25 hrrg .. okay ty so far .. Jul 07 22:03:56 fucking hotel put two ~$9 charges on my card Jul 07 22:03:59 and wont answer the phone Jul 07 22:04:07 Got still dat problem with fetching a json file cause that restriction with download on main thread.. is there no way around that? Do i have to start another thread? Its ok for me to pause the rest of that app.. its a needed json :/ Jul 07 22:05:34 Don't do networking on the main thread Jul 07 22:05:54 Thats what i found out i cant .... Jul 07 22:06:00 mhm Jul 07 22:06:03 do networking on all the threads Jul 07 22:06:05 except the main one Jul 07 22:06:11 probably not the glthread either Jul 07 22:06:52 Well this is my first day on this android/java stuff and i havent created a thread at all so :D Jul 07 22:06:55 and my UPS just went on battery for no apparent reason Jul 07 22:07:08 and it's screaming at me Jul 07 22:07:15 h8 Jul 07 22:07:45 is it shouting "I'm helping, I'm helping!" Jul 07 22:08:08 i think i need to replace the battery in mine Jul 07 22:09:23 fuck the hotel charged for mini-bar usage Jul 07 22:09:29 every time i go to SF that happens Jul 07 22:09:40 "so we have it on record that you had a bottle of water from the mini bar" "uh...no?" Jul 07 22:09:56 except this time they just charged my card without even telling me Jul 07 22:10:58 java.lang.IllegalStateException: Cannot interact with object designed for temporary instance passing. Make sure you using both SherlockFragmentActivity and SherlockFragment. Jul 07 22:10:59 say wat Jul 07 22:12:48 good times Jul 07 22:13:06 So i create a Thread with just new Runnable(){void(){}..}; ?? Jul 07 22:14:22 fr34ky: are you just trying to create a new thread? Jul 07 22:14:57 I am just tryin to fill a listview ith sum json stuff Jul 07 22:15:05 and am sittin on this for 24 hours now Jul 07 22:15:28 i need to download that json ... and i need a new thread as i found out Jul 07 22:15:56 you can probably use AsyncTask… at least if the users dooesn't rotate the screen while you're doing it Jul 07 22:16:18 i dont need async Jul 07 22:16:24 thread is async Jul 07 22:16:44 thats why i dont get fkin google restricting their inet downloads! Jul 07 22:16:49 you need to get off the ui thread Jul 07 22:16:49 i need a json Jul 07 22:17:01 which is needed for this activitry Jul 07 22:17:10 no need to let it dl in the background Jul 07 22:19:19 canadiancow: upgrade Jul 07 22:19:20 it's been two months Jul 07 22:19:32 yea i have a version ready, just hasnt released yet :P Jul 07 22:19:38 =\ Jul 07 22:19:42 I'LL DO IT THIS WEEKEND Jul 07 22:19:48 s/THIS WEEKEND/NOW/ Jul 07 22:19:57 but are you releasing a new thing in like a day Jul 07 22:20:04 i.e. should i just incorporate teh searchview work Jul 07 22:20:28 I just noticed that SearchableInfo is API 8+ Jul 07 22:20:34 so I'm not sure what I'm going to do about that Jul 07 22:20:40 lol Jul 07 22:20:44 drop 2.1 support? Jul 07 22:20:49 can't Jul 07 22:20:51 id rather you didnt, but i could live iwth it Jul 07 22:21:00 I guess I'll just not support using it Jul 07 22:21:17 as far as I can tell most people just want the traditional callback-based search Jul 07 22:21:44 have you seen what i did in coveragemapper? Jul 07 22:21:51 its just a textview Jul 07 22:21:54 that collapses Jul 07 22:21:55 :P Jul 07 22:22:08 anything that does not remove any functionality works for me :) Jul 07 22:22:24 yeah that's what we use too Jul 07 22:22:32 except themed a bit Jul 07 22:22:46 i have 7.04% on 2.1 Jul 07 22:22:49 which seems high Jul 07 22:22:52 so yea, dont drop support Jul 07 22:23:12 can't Jul 07 22:23:18 i know Jul 07 22:23:35 anyway...is the searchview version going to be released this weekend? Jul 07 22:23:42 today or tomorrow Jul 07 22:23:46 ok then im not upgrading yet :P Jul 07 22:23:57 or to rephrase that, i might just pull that branch and start on it Jul 07 22:24:10 just use native SearchView and only test on ICS+ Jul 07 22:24:24 then just switch imports when released Jul 07 22:25:41 How do i create a not assynchron Thread? My idea would be startin that thread .. running and in mainthread waiting for public bool to become true ... if thread is finnished set this to true and go on in main thread Jul 07 22:26:40 do devel devices count as installs ? Jul 07 22:26:40 fr34ky: http://developer.android.com/training/basics/network-ops/index.html Jul 07 22:27:16 lol i just noticed i had a project in eclipse called "Square" Jul 07 22:27:23 and im like...did JakeWharton send me something he shouldnt have? Jul 07 22:27:32 but it was nothing as awesome as that Jul 07 22:27:42 I made a .rar file of the entire company Jul 07 22:34:08 what are my options for displaying a tree of items? Jul 07 22:36:41 slim Jul 07 22:38:28 list fragment that displays a single depth and recurses on itself. breadcrumbs to keep track of parents Jul 07 22:41:26 So, I'm using this (https://gist.github.com/3068388) code to make my child activity turn full screen before the super.onCreate(savedInstanceState); and setContentView(R.layout.ptable); methods. However, if my device is in portrait view before opening the activity, the devices turns horizontal and closes the activity (taking me to the parent activity). However, if the parent activity is horizontal before opening the child activity, Jul 07 22:41:26 the child activity opens successfully. Anyone know how I can fix this problem? Jul 07 22:41:29 I hope that made sense.. Jul 07 22:46:23 is there any good tutorial for setting up an sqlite server and getting data from it via php / json? Jul 07 22:46:47 lamp Jul 07 22:49:06 sqlite server? Jul 07 22:49:22 fr34ky: You're missing the point here. The main thread is what calls lifecycle methods, draws the ui, handles touches. If you block it, none of that can happen. Everything freezes. If you block the main thread for more than 5 seconds, the user will be presented with a dialog, asking if they want to shut down the app. Network operations can take a lot longer than 5 seconds, especially on phones Jul 07 22:49:34 Solution: Start a thread to do the work, post back to the main thread once it's done Jul 07 22:49:46 Do not block the main thread, while you wait for a response Jul 07 22:50:10 Okay ll try ty Jul 07 22:50:23 AsyncTask -> doInBackground Jul 07 22:50:24 ? Jul 07 22:50:26 jessicajames: so you start the child activity, turn horizontal, set full screen( why is the same falg passed twice btw?) and then setcontentView() ? Jul 07 22:51:20 f2prateek, I noticed that and just fixed it Jul 07 22:51:33 I ended up turning the parent activity horizontal before starting the child Jul 07 22:51:45 jake did you have to do anythign with the setIconifiedByDefault? Jul 07 22:51:46 and then no_specified_orientation for onResume() on the parent Jul 07 22:51:58 because when mine expanded, it just expanded to a search button Jul 07 22:52:01 then i had to click that again Jul 07 22:53:27 jessicajames: if the chid activity is always in landscape, you lock the orientation of that activity in the mainfest Jul 07 22:53:34 *manifest Jul 07 22:54:20 f2prateek, I'll look into that right now Jul 07 22:55:09 * jessicajames is looking for what needs to be inserted in the XML file Jul 07 22:55:30 * jessicajames found it :) Jul 07 22:56:35 is there any good tutorial for setting up an sqlite server and getting data from it via php / json? Jul 07 22:57:01 jessicajames: also set the child activity theme to a fullscreen one, so you can remove all the code before setcontentview(), if it still doesn't work, then have you overridden any configchagnes or onfinishh methods? Jul 07 22:57:20 *configChanges, onfinish Jul 07 22:58:09 midi: there is no such thing as sqlite server Jul 07 23:04:19 is there a place to download preconfigured devices for the ADT? Jul 07 23:05:12 parco: probably not because its too easy to create your own Jul 07 23:06:41 eclipse y u freeze so much? Jul 07 23:07:00 QubeZ: do you know the x dpi and y dpi of the droid bionic? Jul 07 23:07:42 http://en.wikipedia.org/wiki/Droid_Bionic Jul 07 23:07:56 960 × 540 px qHD at 256 ppi Jul 07 23:09:14 thanks Jul 07 23:11:37 JakeWharton: the Android support package jar you supply with ABS, is it the same as the one that you can download from the sdk manager? Jul 07 23:11:45 yes Jul 07 23:12:04 Ok cool thanks.. somethings wrong in the new ADT.. it doesnt like the one supplied by your package Jul 07 23:12:15 the one in ABS is r7 Jul 07 23:12:17 the latest is like r9 Jul 07 23:12:21 you should use the latest Jul 07 23:12:30 yea Jul 07 23:12:32 it has my fix in it Jul 07 23:12:42 it has a lot of fixes in it Jul 07 23:12:54 almost none of which relate to jelly bean Jul 07 23:13:02 Thanks for pointin that out, ill download it before replacing the one in ABS Jul 07 23:16:40 i should put some jellybean features in my app Jul 07 23:16:43 like notification button crap Jul 07 23:16:55 hi. how can I install an APK file in the emulator without having an eclipse project? Jul 07 23:17:04 i use linux Jul 07 23:17:10 canadiancow: which app btw? Jul 07 23:17:13 superlinux-hp: use ./adb Jul 07 23:17:18 canadiancow que es de app? Jul 07 23:17:20 it has options to push files, install etc.. Jul 07 23:17:20 oh ok Jul 07 23:18:27 ActivityOptions animations are my new favorite thing Jul 07 23:18:29 http://www.coveragemapper.com Jul 07 23:18:34 they're so subtle but make a huge difference Jul 07 23:18:42 f2prateek / Jug6ernaut Jul 07 23:18:57 superlinux-hp: adb install -r path/to/whatever.apk Jul 07 23:19:11 JakeWharton when i expand my searchview, i just get a button iwth a magnifying glass on it, that i then have to click to expand the edittext area Jul 07 23:19:21 then you're not doing it right Jul 07 23:19:23 JakeWharton, is this a permanent install? Jul 07 23:19:35 cos I want to use WhatsApp Jul 07 23:19:42 yes Jul 07 23:19:50 ok great Jul 07 23:20:45 canadiancow: oh neat. this would be so useful for my mobilicity IF they had any coverage :( Jul 07 23:21:17 hah Jul 07 23:21:19 is there a percentage of how many android applications made are games vs other things? Jul 07 23:21:23 i think theres a fair bit of data for mobilicity Jul 07 23:21:50 but yea their coverage area is ... small Jul 07 23:22:31 hmm in PreferenceScreen, can you have a reverse dependency? Jul 07 23:22:37 X can only be checked if Y is not checked Jul 07 23:22:50 canadiancow is it possible no data has been collected for all of the US? lol Jul 07 23:22:56 no Jul 07 23:23:01 what carrier are you looking at Jul 07 23:23:06 att Jul 07 23:23:23 all over man Jul 07 23:23:28 SF, LA, Seattle Jul 07 23:23:29 dallas Jul 07 23:23:32 NY Jul 07 23:23:37 http://www.coveragemapper.com/map.php?mccmnc=310410&lat=38.35030255653995&long=-87.37284741992188&zoom=4&netType=0 Jul 07 23:23:58 or are you looking in the app? if so, you need to select the country/network Jul 07 23:24:01 I love it.. Eclipse not working? Close it and reopen it enough times, itl just give up and say OK ill work! Jul 07 23:24:03 if you dont have a SIM instaleld Jul 07 23:24:05 ahh ok, just wasnt zoomed in enough Jul 07 23:24:24 if you were creating a game , a 2d puzzle game, would you use opengl with java or c++ ? Jul 07 23:24:46 canadiancow u use app engine or own server? Jul 07 23:24:55 Technodrome: I think the best starter question here is.. which are you better in? Jul 07 23:25:01 Jug6ernaut, my own Jul 07 23:25:05 ive considered moving it though Jul 07 23:25:08 java drpenguin by far Jul 07 23:25:08 it's fucking CPU intensive Jul 07 23:25:11 and i/o intensive Jul 07 23:25:23 Technodrome: Then stick with java :P Jul 07 23:25:29 drpenguin: but i heard some people saying that using java with opengl is "slow" but this is just a 2d game Jul 07 23:25:38 i mean is it really, slow these days? Jul 07 23:25:43 canadiancow: i get a really bad connection in UofA, even in the big quad, but at least they're cheap, and I can use it without any extra charges when i'm in calgary and toronto :) Jul 07 23:25:47 canadiancow: I'm thinking the same thing about adding JB features to my app but not sure what -- as yo mentioned, notifications look like the thing so far Jul 07 23:26:03 QubeZ well it depends on the app obviously :P Jul 07 23:26:03 Technodrome: I honestly couldnt tell ya.. I would relaly love to do gameprogramming, but I cant find a resource that can help me get started, any thing I read I get confused Jul 07 23:26:11 theres a nice book Jul 07 23:26:16 well no i lied Jul 07 23:26:18 canadiancow why is that? your not simply(should always assume not simple lol) plotting data points? Jul 07 23:26:22 theres a book a frined of mien was involved in writing Jul 07 23:26:33 do you know how long it takes to generate all the map tiles Jul 07 23:26:35 for all the networks Jul 07 23:26:37 for all the zoom levels Jul 07 23:26:43 lol Jul 07 23:26:43 hint: it's measured in hours Jul 07 23:26:43 drpenguin: thats an issue i have to get solved here quickly hehe Jul 07 23:26:54 canadiancow how many data points? Jul 07 23:27:00 Technodrome: ive started to learn it via SDL (thats C/C++) Jul 07 23:27:29 damn it, I need JB device to test with :( Jul 07 23:27:38 the sys image sucks... Jul 07 23:27:43 QubeZ: come to my house, i should have my Nexus 7 soon :D Jul 07 23:27:53 Jug6ernaut: http://www.coveragemapper.com/maps.php Jul 07 23:27:56 i hate you and love you at the same time drpenguin Jul 07 23:27:58 but there may be multiple points for one "location" Jul 07 23:28:04 QubeZ: Ambiguity! Jul 07 23:28:05 drpenguin: opengl directly is not that *much* harder Jul 07 23:28:08 i've got some tens of millions of data points Jul 07 23:28:14 more than 10, less than 100 Jul 07 23:28:41 drpenguin: if(lovefor == drpenguin) { ... } else { ... } // note that the else is dead code Jul 07 23:29:19 i really wish they came out with the intel sys image for google api's at the same thing they release the sdk Jul 07 23:29:23 :P Jul 07 23:29:26 haha yea i can see that takign a while, i some image processing like that for maps (heat maps tho) but never more then 70k data points and one zoom level and it toke ~10 minutes on a good machine lol Jul 07 23:29:58 kept getting those errors when trying to load my app in any sys image because of provider=network is null bullshit Jul 07 23:30:06 now I'm using Fluffy Location lib so let's see Jul 07 23:30:48 Jug6ernaut i've got about 76.5 million data points for gsm networks, and 15.5 for cdma Jul 07 23:30:50 so ~90 million Jul 07 23:30:56 lmao wow Jul 07 23:31:06 why is it only on highways canadiancow ? Jul 07 23:31:14 QubeZ, because that's where people drive mostly? :P Jul 07 23:31:15 probably anywhere some goes Jul 07 23:31:19 no one driving side roads and reporting? Jul 07 23:31:25 i dont know... Jul 07 23:31:33 when i put my phone in my car dock, the app statrs logging automatically Jul 07 23:31:35 canadiancow: i understand that but no points at all on those side roads in california Jul 07 23:31:36 so for me, if im in my car, it's logging Jul 07 23:31:50 i know on t-mo theres data on some side streets in mountainview ;) Jul 07 23:31:52 Is it possible to start a new activity, wich name is saved in a String? This doesent work: String test = "MediAntidotList.class";Intent in = new Intent(getApplicationContext(), test); Jul 07 23:32:09 canadicancow are you reprocessing EVERYTHING or only new data entries? Jul 07 23:32:28 well it uses image tiles Jul 07 23:32:36 ight Jul 07 23:32:41 right* Jul 07 23:32:43 so for example, http://www.coveragemapper.com/tiles/302490/0/14/4576/5970.png Jul 07 23:32:50 if ANY data in that tile changes, i have to redraw it Jul 07 23:32:54 but i only redraw changed tiles Jul 07 23:33:02 k Jul 07 23:33:14 believe me there has been a LOT of server-side optimization Jul 07 23:33:17 :P Jul 07 23:33:21 hehe Jul 07 23:35:39 JakeWharton, I cannot see the application. the android i am on is API 16 Jul 07 23:35:44 sukramTM why would u do that? it's looking for a class not a string Jul 07 23:35:45 * Jug6ernaut needs to learn more about app engine Jul 07 23:36:50 canadiancow why no data while screen off? Jul 07 23:36:51 canvs2321: yes but the class wich the intent should start is saved in a string (the name of the class) Jul 07 23:37:02 dont want to keep phone awake? Jul 07 23:37:11 canadiancow: why not collect the data locally then push to your server at some interval? Jul 07 23:37:11 radio doesnt report updates when its off Jul 07 23:37:17 ah Jul 07 23:37:20 lame Jul 07 23:37:20 well galaxy nexus seems to Jul 07 23:37:21 so you have large amounts of data less frequently Jul 07 23:37:24 but no other device does Jul 07 23:37:30 interesting lol Jul 07 23:37:33 QubeZ, there are different conditions that trigger an upload Jul 07 23:37:36 * Jug6ernaut thinks canadiancow should hack it Jul 07 23:37:39 Oh good, I figured out how to get Compiz to tell me what I'm resizing my terminal to. I guess Ubuntu removed that in 12.04. Jul 07 23:37:41 500 data poitns, you've stopped moving, or you've disabled logging Jul 07 23:38:01 canadiancow: k Jul 07 23:38:18 * Jug6ernaut loves seeing holo apps Jul 07 23:39:14 mine is holo :) Jul 07 23:39:31 * Jug6ernaut said that while looking @ urs Jul 07 23:39:32 lol Jul 07 23:41:16 canadiancow im assuming each square is the range of a specific tower? Jul 07 23:41:21 no Jul 07 23:41:30 it's 0.001 degrees of lat by 0.001 degrees of long Jul 07 23:41:44 ah Jul 07 23:42:05 rtfm :( Jul 07 23:42:42 :o Jul 07 23:43:18 * Jug6ernaut stops asking questions Jul 07 23:43:33 nah its fine Jul 07 23:43:39 but pretty much everything you've saked is on the site :P Jul 07 23:43:44 xD Jul 07 23:45:46 in the emu (JB), i can't get location services to work Jul 07 23:45:50 keeps saying location unavail Jul 07 23:46:02 even if I send gps coords Jul 07 23:48:05 does the notificationbuildercompat thing not have the new JB stuff? T_T Jul 07 23:48:27 * Jug6ernaut has no idea Jul 07 23:48:33 * Jug6ernaut hates using emulator Jul 07 23:48:53 ya but my only option to test JB Jul 07 23:49:02 * Jug6ernaut is waiting for n7 Jul 07 23:51:06 im also waiting for your n7 Jul 07 23:51:21 :o Jul 07 23:51:40 its $199 "? Jul 07 23:52:09 USD Jul 07 23:52:10 in the US Jul 07 23:52:13 it's $209 CAD in canada Jul 07 23:52:28 * Jug6ernaut got 16GB model Jul 07 23:52:32 * Jug6ernaut couldnt help it Jul 07 23:52:36 ok then it's $259 CAD Jul 07 23:52:39 not surea bout USD Jul 07 23:52:48 $250 :P Jul 07 23:52:51 Is there any definitive date on when the n7 is shippin? Jul 07 23:53:01 nope Jul 07 23:53:02 july 23 in canada Jul 07 23:53:07 its lies Jul 07 23:53:09 all lies Jul 07 23:53:28 * Jug6ernaut hates waiting Jul 07 23:53:35 waiting on mb, ram, n7 :S Jul 07 23:54:06 canadiancow: what about the US? Jul 07 23:54:34 i dont know Jul 07 23:54:37 i dont live there Jul 07 23:54:37 :P Jul 07 23:54:40 ynot Jul 07 23:54:40 Damn cow Jul 07 23:55:24 because i havent been given a good enough job offer yet Jul 07 23:55:25 :P Jul 07 23:55:27 HINT HINT Jul 07 23:55:36 lol Jul 07 23:55:39 square totally rejected me Jul 07 23:55:40 :( Jul 07 23:55:55 damn Jul 07 23:56:01 *cough* JakeWharton *cough* Jul 07 23:56:08 Square Enix? Are you a game dev? Jul 07 23:56:16 no Jul 07 23:56:22 square square Jul 07 23:56:25 i am a game dev Jul 07 23:56:44 live electronica music set for everyone. Enjoy! http://91.233.126.111:8000/studio.m3u Jul 07 23:56:55 wtf Jul 07 23:57:19 saturday. gotta have music, no? Jul 07 23:57:35 guess so Jul 08 00:03:11 is PRIORITY_LOW gonna make my shit suck Jul 08 00:03:59 hello Jul 08 00:04:05 lol Jul 08 00:04:19 I am trying to make an augmented reality app, and I have looked at AndAR Jul 08 00:04:30 but I get errors when I import itinto my eclipse Jul 08 00:04:54 damn errors Jul 08 00:05:10 lol Jul 08 00:05:15 I think I'm doing it wrong Jul 08 00:05:23 Could be! Jul 08 00:05:24 have you used it before ? Jul 08 00:05:46 I'm extremely new to programming, and I think I need to call on the activity from my main application Jul 08 00:08:25 Augmented Reality? Is that one of those apps that overlays ontop of a video feed from the devices camera? Jul 08 00:08:37 pretty much Jul 08 00:09:09 canadiancow: they rejected me too :P Jul 08 00:09:45 yea but im good Jul 08 00:09:49 :( Jul 08 00:09:55 and JakeWharton told them i was good Jul 08 00:09:58 canadiancow: was it bob's ring-buffer queue that got you? :P Jul 08 00:10:01 or maybe...maybe he told them something else Jul 08 00:10:05 wat Jul 08 00:10:11 i buffered no rings Jul 08 00:10:12 wongk: NDA much? Jul 08 00:10:20 did you get a technical interview? Jul 08 00:10:26 i had a technical phone interview Jul 08 00:10:33 which, for the record, had no NDA Jul 08 00:10:36 not that i remember the questions Jul 08 00:11:00 true dat Jul 08 00:11:18 oh i remember what happened Jul 08 00:11:18 i had 2 Jul 08 00:11:26 i was asked a question and i froze Jul 08 00:11:27 :) Jul 08 00:11:33 so i probably seemed like an idiot Jul 08 00:11:33 oops :P Jul 08 00:11:40 i still blame JakeWharton though Jul 08 00:12:12 jake your notificationcompat2 thing isnt giving me my action :( Jul 08 00:12:54 works for me on Jelly Bean Jul 08 00:12:59 im on jb Jul 08 00:13:58 does the sample work? Jul 08 00:14:59 lemem try it Jul 08 00:15:57 it does Jul 08 00:15:59 mofo Jul 08 00:16:24 OH THOSE CAN CLOSE Jul 08 00:16:28 the actions arent always there Jul 08 00:16:29 lol Jul 08 00:16:57 ah ok Jul 08 00:17:03 i guess cause iwas priority low... Jul 08 00:17:06 * Jug6ernaut thinks canadiancow needs to watch keynote again Jul 08 00:17:07 Searching for GPS came above mine Jul 08 00:17:14 In ActionBarSherlock on api >3.0, is very little code from ABS actually executed? Jul 08 00:17:20 the notification will only be automatically expanded if it's PRIORITY_MAX Jul 08 00:17:27 bourke_: ICS+, yes, very little Jul 08 00:18:00 JakeWharton: thanks. that would explain why my mods don't seem to be getting executed Jul 08 00:18:02 it basically just wraps the native types Jul 08 00:18:15 fuck i need new icons Jul 08 00:18:33 lol Jul 08 00:18:45 Im trying to implement something like what outlined at https://github.com/JakeWharton/ActionBarSherlock/issues/436 - but seems to be having no effect Jul 08 00:19:16 selecting an action in a notif doesnt close the notif drawer? Jul 08 00:19:18 o_O Jul 08 00:19:20 s/what/whats Jul 08 00:19:31 anything you change will only affect pre-ICS Jul 08 00:19:44 that color is hard-coded into the layout XML and cannot be changed on ICS Jul 08 00:20:07 Such a pity. Thanks for the clarification though Jul 08 00:21:55 Hopefully it'll be fixed in JB Jul 08 00:22:14 I don't feel like dumping my framework-res.apk and looking though Jul 08 00:22:31 0 java.lang.StackOverflowError Jul 08 00:22:31 1 at dalvik.system.BlockGuard.getThreadPolicy(BlockGuard.java:140) Jul 08 00:22:34 wtfux Jul 08 00:24:44 lol Jul 08 00:26:15 can i do the equivalent of context.startService(intent); from a notification? Jul 08 00:26:48 http://developer.android.com/reference/android/app/PendingIntent.html#getService(android.content.Context, int, android.content.Intent, int) Jul 08 00:27:08 man i need to read up on PI Jul 08 00:27:13 thanks jake <3 Jul 08 00:28:11 hmm didnt work =\ Jul 08 00:29:32 oh nm i just changed the wrong code Jul 08 00:29:46 Cows tend to do that :P Jul 08 00:29:58 oh man that is the sex Jul 08 00:30:00 <3 JB Jul 08 00:30:06 WOW Jul 08 00:30:07 * canadiancow links to a justin bieber video Jul 08 00:30:08 did you just say that Jul 08 00:30:09 seriously Jul 08 00:30:26 jellybean probably wasnt the best choice in names Jul 08 00:30:26 :P Jul 08 00:30:30 you should play with ActivityOptions next Jul 08 00:30:32 they're a lot of fun Jul 08 00:30:34 I get it :P Jul 08 00:33:20 i havent done much with notifs Jul 08 00:33:23 can you update a notif easily? Jul 08 00:33:36 Yeah they arent difficult to update Jul 08 00:34:00 Usually I just spawn a new one with the same ID Jul 08 00:37:11 canadiancow: with coveragemapper, have you found wildly discrepant data at the same location even with the same phone ? Jul 08 00:37:41 (over a period of time, of course) Jul 08 00:38:58 g'evening people Jul 08 00:39:00 not really Jul 08 00:39:02 it all averages out Jul 08 00:39:08 on my network (WIND), sorta Jul 08 00:39:10 because its tiny Jul 08 00:39:12 and theyre building Jul 08 00:39:15 so today it could have shit signal Jul 08 00:39:18 and tomorrow it could be awesome Jul 08 00:39:23 but that's all taken account int he algorithm Jul 08 00:39:30 cool Jul 08 00:43:04 hmm JakeWharton if i just post a new notification, it flashes Jul 08 00:43:36 only if you have the tray open Jul 08 00:43:41 but yeah :-/ Jul 08 00:43:47 yea, but im updating every like half second Jul 08 00:43:48 so.... Jul 08 00:43:52 wtf Jul 08 00:43:58 whenever the signal strength changes Jul 08 00:45:24 whatevs this isnt too important Jul 08 00:45:27 the actiosn are the awesome Jul 08 00:45:35 so Im trying to get round the dialog divider color by using Window.FEATURE_CUSTOM_TITLE but it seems to be showing both the default holo dividor plus my custom one... Jul 08 00:45:56 canadiancow: how were you doing it before? Jul 08 00:46:03 retaining the Notification instance? Jul 08 00:46:49 i wasnt doing it before Jul 08 00:46:59 but i figured since im in the notification code right now, i'll see what i can do :P Jul 08 00:49:26 as far as I can tell the only way to update an existing notification is by calling setLatestEventInfo which is deprecated and only supports the intent, title, and text Jul 08 00:52:44 hey guys I'm drawing a bitmap pulled from a resource onto a surface view implemented into an xml file. when i declare the bitmap in the main view method it works without a hitch. but when i use a method to select the drawn image its a no go... any idea why this would be happening? Jul 08 00:53:40 i guess it would help if i provieded the error. Jul 08 00:54:37 i get a runtime error unable to start activity componentinfo{com.lrd....}..... Jul 08 00:56:53 that error is the uninteresting one. There's probably a wrapped exception that's more informative Jul 08 01:01:20 yeah i also have a null pointer exception and an invocationTargetException Jul 08 01:02:33 so i should address the null pointer exception first Jul 08 01:12:24 JakeWharton, so the searchview behaves diff on GN+JB than N1+GB Jul 08 01:12:29 it works properly on N1 Jul 08 01:12:37 but on GN, it "expands" ot a search "button" Jul 08 01:12:41 and THAT expands to the edittext Jul 08 01:13:09 i'm going to wager you're doing it wrong because it works perfectly here Jul 08 01:13:38 If I wanted to do something like http://developer.android.com/design/media/gridview_style.png, what view type should the gray box be? Jul 08 01:14:20 GridView Jul 08 01:14:26 GridLayout Jul 08 01:14:27 rather Jul 08 01:18:08 canadiancow: https://github.com/JakeWharton/ActionBarSherlock/blob/search-view/samples/demos/src/com/actionbarsherlock/sample/demos/SearchViews.java#L43-51 Jul 08 01:18:27 ...? Jul 08 01:18:52 mines in xml, but its pretty much the same Jul 08 01:19:23 pretty much? Jul 08 01:19:50 i dont have a searchView.setSuggestionsAdapter(adapter); Jul 08 01:19:57 or the isLight ? ... Jul 08 01:20:32 works fine for me on everything Jul 08 01:30:59 JakeWharton, that's not what I need. I just need some way to create a gray, translucent box over top of the image. I just don't know what view I should use for this gray box. Jul 08 01:31:19 FrameLayout Jul 08 01:33:54 I still don't understand. How do I make a section of it gray? Jul 08 01:35:23 set a translucent background Jul 08 01:35:29 Or are you suggesting to use a framelayout as the placeholder? Jul 08 01:35:30 Ahh Jul 08 01:35:33 I see, thanks. Jul 08 01:38:10 how do I list packages on the system that are signed with the same keystore? Jul 08 01:48:52 I opened in Eclipse the ActionBarCompat sample, but there are diffrent errors in the sample... Jul 08 02:00:31 hello Jul 08 02:01:15 what is the best way to display our calendar events? Jul 08 02:01:36 There is nothing that documents how to display them within android.widget.calendarview Jul 08 02:07:17 is integer not a valid type for res/values? Jul 08 02:09:55 sure it is Jul 08 02:10:08 thats what I Thought.. but im getting invalid tag integer Jul 08 02:10:35 ohh.. hang on.. i might be having a stupid fat kid moment Jul 08 02:10:52 yup! Jul 08 02:30:31 by the way.. I just thought of this.. a "friend" texted me at like 2 in the mornig the other day.. saying he wastryin to buy my app, but the buy button was grayd out.. whats up with that? Jul 08 02:35:10 drpenguin: He probably had an expired credit card or something. Jul 08 02:35:31 manchicken: I assumed that at first too, but he said he bought something earlier Jul 08 02:35:33 penguins, man chickens, cows, geese … lots of crazy animals use android :) Jul 08 02:35:34 When my amex expired that happened. I only ever use that card for Google Play and travel, so I didn't even notice it expire. Jul 08 02:35:35 iono.. he was probably drunk Jul 08 02:36:00 g00s: It's the Android zoo up in here. Jul 08 02:38:49 We are the noahs ark of Mobile OS communities Jul 08 02:40:56 I demand more windows than an arc usually provides. Jul 08 02:41:22 Dude Jul 08 02:41:35 I told you when we were first going to this ark, that windows were not negotiable Jul 08 02:49:06 Heh Jul 08 02:49:18 I'm quite good at treading water. Jul 08 02:49:28 Anybody else play with SL4A? Jul 08 02:50:10 I demoed it at my local Perl Mongers group today, it is a fun little toy. Jul 08 02:50:57 I think the thing I like about it most is that I can tweak the scripts on the go. I've got one I'm working on now to detect network conditions that will cause poor battery performance and missed messages, so I can easily tell whether or not I'm on a bad wifi connection. Jul 08 02:51:33 Once I have that nailed down I'll probably port it to a native Android app, but it's neat to be able to play with something like that in a more mutable form while I'm experimenting. Jul 08 02:51:52 tbh you should distribute a script version as well Jul 08 02:51:57 as it consumes less memory Jul 08 02:52:10 also which protocol it depends on? Jul 08 02:53:15 I'll be putting my "finished" script on my github. Jul 08 02:53:33 I have the one I demoed today on there now, would you like a link? Jul 08 02:54:59 yea sure Jul 08 02:55:48 K. One second Jul 08 02:56:38 https://github.com/manchicken/Experiments Jul 08 02:56:48 It's the "SL4A Example" Jul 08 02:57:17 It's nothing terribly fancy, but I am using the newly enhanced full-screen UI support they added in. Jul 08 02:58:19 it only works for NFC connection? Jul 08 02:59:08 JakeWharton native SearchView is giving me diff behaviour than yours on JB Jul 08 02:59:31 No, I started playing with NFC on it, but it has nothing to do with NFC. **** ENDING LOGGING AT Sun Jul 08 02:59:58 2012