**** BEGIN LOGGING AT Wed Jun 03 02:59:57 2009 Jun 03 03:03:12 csvy: not that I would know, but to clarify : you mean to detect which keyboard is used? Jun 03 03:03:35 I want to detect what the hardware is Jun 03 03:03:49 Since on the phones sold in germany the keyboard has a different layout Jun 03 03:04:16 I have functionality mapped to the keyboard keys Jun 03 03:04:23 But I need to know the layout Jun 03 03:04:24 I know. I just had to check as i never noticed it, but you're right : the german G1 has a qwertz Jun 03 03:04:56 I don't think normal localization will work, because a german user could have their phone localized to english Jun 03 03:05:05 and location is useless because a US G1 could be in germany Jun 03 03:07:07 csvy: my guess is that you can't, for the moment Jun 03 03:07:09 "Coming Soon: Internationalization and Localization are critical, but are also not quite ready yet in the current SDK. " Jun 03 03:07:10 :/ Jun 03 03:07:39 at the bottom of http://developer.android.com/guide/topics/resources/resources-i18n.html Jun 03 03:09:36 your best bet is to wait for a few hours and ask again when ctate or romainguy are here Jun 03 03:09:47 they might know Jun 03 03:10:38 ok, thanks for the advice Jun 03 03:12:15 sorry that I can't help you more, Jun 03 03:13:20 I'm pretty sure that you can do localization now Jun 03 03:13:56 but I'm not sure about layouts Jun 03 03:14:07 csvy: on the other hand, you might as well ask someone who doesn't seem to sleep and still know the answer to most things ... like KNY :P Jun 03 03:14:19 haha Jun 03 03:14:29 it's only 11pm here Jun 03 03:14:54 KNY: hmm ... I thought you were in the UK actually Jun 03 03:15:00 KNY: same timezone as me then Jun 03 03:15:00 east cost Jun 03 03:15:03 coast* Jun 03 03:15:13 KNY: yep. same timezone as long as you have summertime Jun 03 03:44:07 How do I detect all dependencies/libs in an apk other than logcat? Jun 03 03:44:23 like which lib.so it calls etc Jun 03 03:45:03 id like to create an app that detects such things Jun 03 04:16:18 say I have a class that extends View (so I can do my own shenanigans in onPaint()) - how do I reference it in an xml layout? Jun 03 04:17:44 name.of.package.MyView Jun 03 04:18:25 right, thats what I have Jun 03 04:18:38 can I get to it in code with getViewbyId()? Jun 03 04:20:04 findViewById Jun 03 04:20:05 yes Jun 03 04:20:20 and do I cast the result to my class, or View? Jun 03 04:20:46 no need to cast it to View Jun 03 04:20:47 it's a View Jun 03 04:22:10 hmm Jun 03 04:22:27 findViewById appears to be returning null Jun 03 04:22:38 yet the compiler can find the resource ok, or it wouldn't be running in the first place Jun 03 04:27:38 is there any way to persist an application data even after uninstallation? Jun 03 04:27:57 sdcard Jun 03 04:28:21 hmm but that may not always be available Jun 03 04:29:18 laser engrave is on the back of the phone Jun 03 04:29:24 it Jun 03 04:30:13 or i could just read it off the users subconscious brain Jun 03 04:30:27 romainguy_: What did you say the priorities were on the Android team right now? Or were you mostly being facetious mentioning the Gerrit/repo work that needs to be done? Jun 03 04:30:47 prashast: If you could do that, I have a check written for you... Jun 03 04:30:59 kRutOn: what do you mean? we do need more work on Gerrit/repo Jun 03 04:31:00 haha sure Jun 03 04:31:07 i'll look for you once im done with that Jun 03 04:32:01 romainguy_: You mentioned something else during the fireside chat I didn't quite catch about a tool you really wanted. Jun 03 04:33:26 * kRutOn . o O ( Are the videos up yet? ) Jun 03 04:34:43 kRutOn, I've seen you do that before and it only just now clicked that . o 0 () is a thought bubble haha Jun 03 04:35:05 yeah, I wasn't sure if it would translate to IRC very well... Jun 03 04:35:55 it took me a second Jun 03 04:36:22 because it looks so similar to the oO / o_O thing that people do haha Jun 03 04:36:29 I have an imagebutton in a linear layout. what attribute do I need to set to allow it to be scrolled offscreen instead of sitting at the edge and squishing down to nothing? Jun 03 04:37:44 you need a scrollview Jun 03 04:39:01 and romainguy_ where have you been? busy at work or something? Jun 03 04:39:04 <-- stalker Jun 03 04:39:20 jeez no kidding Jun 03 04:39:23 ralfonso: Yeah, ScrollView (hopefully you're talking vertical). Also you might want to consider using a RelativeLayout or else you'll be walking down the street one day and the last thing you'll hear is a ninja saying in a French accent, "Bad developer!" Jun 03 04:39:32 KNY: JavaOne + tons of stuff to do on Android Jun 03 04:40:01 ah Jun 03 04:40:15 kRutOn, are linearlayouts now shunned? Jun 03 04:40:20 romainguy_'s feature request queue grows at a rate of 2^n Jun 03 04:40:27 romainguy_: got it, I had to override View's constructor Jun 03 04:40:39 if so, I .. uh .. have a friend that needs to change some stuff Jun 03 04:40:51 romainguy, just asking because someone else asked earlier and it was actually an interesting question.. and you might know the answer : is there a way to know the (hardware) keyboard layout of a user? (QWERTY/QWERTZ/AZERTY, whatever ....) Jun 03 04:40:58 KNY: mostly just nested LinearLayouts Jun 03 04:41:01 sammyF: no clue :) Jun 03 04:41:20 romainguy: good.. then my answer matches the official google one then ;) Jun 03 04:41:32 kRutOn, ah. I'll have to take another look at some of my layouts anyway Jun 03 04:41:37 well, it's mostly because you're asking the wrong guy :) Jun 03 04:41:58 romainguy: who might know? Jun 03 04:42:06 Dianne Jun 03 04:42:11 Eric Jun 03 04:42:54 well, I'm trying to mimic the behavior in maps when the popup is allowed to scroll offscreen. I have the same layout hierarchy as maps but I can't figure out the proper attributes. Jun 03 04:43:00 Yeah, Dianne will probably reply if you post to the mailing list. She'll most likely say you probably don't want to do that, though. Jun 03 04:43:19 romainguy: good to know. thanks Jun 03 04:44:06 she's on vacation right now Jun 03 04:44:24 kRutOn: well .. I don't. but it makes sense to try to find out, if you're relying on, for example, Z being at the bottom of the keyboard Jun 03 04:44:48 romainguy: as I said, I don't need it personally anyway. :) Jun 03 04:44:50 sammyF: If you can read system attributes, I think it's stored there.. android.keylayout Jun 03 04:46:20 kRutOn: cool. if I ever need it at least I'll know where to look :) Jun 03 04:49:36 how can I compile a linux binary specifically "lsof" to android Jun 03 04:49:47 what tools do I need to do it Jun 03 04:49:58 any help would be greatly appreciated Jun 03 04:53:51 im toying with the idea of creating an anti theft application and one basic need for it is to prevent uninstall of the app off a stolen phone (needs some secret specified by the user) Jun 03 04:53:55 normally that is not possible Jun 03 04:54:04 I wonder what getprop ARGH is all about Jun 03 04:54:15 but what if there are two applications installed and see each others installation status Jun 03 04:54:23 and if one is uninstalled it installs it again Jun 03 04:54:34 will something liek that work? what do you guys think? Jun 03 05:03:41 prashast, how would it work? Jun 03 05:03:47 like, how would one check for the other? Jun 03 05:04:33 I don't think you can access the PackageManager from an application, but you could just adb uninstall com.example.program1; adb uninstall com.example.program2 Jun 03 05:04:43 if I was the type to steal a phone, I would a) not use it, b) if I did use it, flash a new ROM, or b) adb uninstall application.package.one && adb uninstall application.package.two Jun 03 05:04:45 exactly Jun 03 05:05:23 the old thing : once you have physical access to a device, forget security Jun 03 05:05:43 exactly Jun 03 05:05:48 there are 2 things to it Jun 03 05:05:55 1 is the physical device Jun 03 05:05:58 and 2 is the data on it Jun 03 05:06:11 KNY: althoguh 220V through the case might work wonder against physical intrusions ;) Jun 03 05:06:19 That was the basis for an early virus, though. I want to say it was Robin Hood and Littlejohn Jun 03 05:06:27 sammyF, that's a pretty powerful battery you've got there Jun 03 05:07:05 KNY: yeah .. the backpack looks kind of stupid ... but I'm working on making it windpowered :P Jun 03 05:07:09 maybe the virus programs were Tom and Huck. Jun 03 05:07:21 KNY: one bad way to check for an application could be to try to start activity with an intent? and if that fails you'll know it doesnt exist Jun 03 05:07:25 i havent tried it though Jun 03 05:07:40 prashast, right, but why couldn't you just uninstall them, one after the other? Jun 03 05:07:56 prashast: Heh, send some broadcast intents around and wait for a reply? Jun 03 05:08:16 this seems like a terrible idea, tbh Jun 03 05:08:22 not sure kRutOn, i havent thought much about that. just wondering if such a thing is possible Jun 03 05:08:32 since there's no way to prevent an app from being uninstalled :) Jun 03 05:11:10 i dont think anti theft software in general is a bad idea though Jun 03 05:11:36 of course it wouldnt work 100% of the time Jun 03 05:13:00 prashast, there are some pretty good ones out there like SIM Watcher or whatever Jun 03 05:13:32 KNY: for android? Jun 03 05:13:39 prashast, yes, search the market Jun 03 05:14:17 but then again, these softwares will have the same problems - cant prevent a flashed rom Jun 03 05:14:26 or from them getting uninstalled without changing the SIM Jun 03 05:16:59 prashast, right, but it's my understanding that the ones out there now are generally stealth apps Jun 03 05:17:28 when you switch out the SIM, it goes into stealth mode and just silently uploads pictures, GPS coords, IPs, anything it can get ahold of Jun 03 05:18:01 rather than saying "ZOMG THIS PHONE HAS BEEN STOLEN SO I'M GOING TO TRY AND GO INTO LOCKDOWN!" Jun 03 05:19:06 yep, thats correct... so the assumption is that the thief has no idea that such a thing is installed Jun 03 05:19:14 exactly Jun 03 05:20:47 haah then the popularity of your solution is its own demise :) Jun 03 05:22:37 prashast, well I would guess that they would make it not even show up on the main app list Jun 03 05:22:58 and call it something like com.google.syncer or something :) Jun 03 05:23:02 haha yea Jun 03 05:23:15 thats an interesting idea :P Jun 03 05:24:02 anyway, I have class in a few hours so I should get some sleep Jun 03 05:24:04 later Jun 03 05:24:17 later Jun 03 07:01:53 how do i resolve this error in eclipse? Jun 03 07:01:53 Android requires .class compatibility set to 5.0 Jun 03 07:04:38 if you've verified that you've set your compiler and jdk versions to 1.5/5.0, then the most common cause i've seen for that is because you tried to import code into your eclipse workspace instead of create a new Android project from sources Jun 03 07:05:20 i did import a project Jun 03 07:05:46 let me try create new one Jun 03 07:08:01 ok cool fixed that error, now just got a few more. thanks! Jun 03 07:12:30 the only error i have left is "The project cannot be built until build path errors are resolved". i have the latest sdk installed and window>prefs>android>sdk is pointed to it. is there something I need to adjust when importing an android project? Jun 03 09:53:16 I'm writing a game, what is the best way to terminate an app? System.exit()? Jun 03 09:53:37 android.os.Process.killProcess(android.os.Process.myPid()) Jun 03 09:58:02 digitalspaghetti: tnks, it seems to work better than System.exit() Jun 03 09:58:27 will it at least guarntee's your process is killed :) Jun 03 09:59:00 ok Jun 03 09:59:26 digitalspaghetti: are you italian? Jun 03 10:02:27 Someone knows how to make a Mask effect with 2 bitmaps. The first has to be masked by the second. I need it to redraw portions of the screen that are involved in animations. I have an object(bitmap) that moves on the screen and i need to redraw its last position with the background bitmap. Jun 03 10:02:27 no, scottish Jun 03 10:08:46 anybody here know if the rogers utms chipset varies from the tmobile? Jun 03 10:09:03 i would assume so due to the different frequencies, but just asking :) Jun 03 12:50:21 Hi all,when I use Spinner spnCountries = (Spinner)findViewById(R.id.spnCountries); Jun 03 12:50:35 it show errors . Jun 03 12:51:16 it says :Can not cast from view to spinner Jun 03 12:52:32 Any one know why? Jun 03 12:54:54 it's not a spinner? Jun 03 12:55:01 compile error? Jun 03 12:56:36 It is a spinner Jun 03 12:56:53 android:layout_height="wrap_content"> Jun 03 12:56:54 Jun 03 12:57:02 Like this. Jun 03 12:57:26 yeah, but you're getting spnCountries, not widget31 Jun 03 12:57:49 Spinner spinner = (Spinner)findViewById(R.id.widget31); Jun 03 12:57:56 I have change to this. Jun 03 12:58:06 The same error in eclipse. Jun 03 12:58:41 Cannot cast from View to Spinner Jun 03 12:59:09 I don't suppose it's a different Spinner that got imported or something? Jun 03 12:59:47 android.widget.Spinner is definately a view Jun 03 13:01:28 try AbsSpinner and see if it works Jun 03 13:01:43 I will try... Jun 03 13:05:18 android:layout_height="wrap_content"> Jun 03 13:05:19 Jun 03 13:05:29 I change to this,and it no error. Jun 03 13:08:06 I love doing a big refactoring/redesign and being able to just delete huge swaths of crap once you're done Jun 03 13:08:51 haha yeah me 2 Jun 03 13:09:11 its the best part of searching google code for random code that does what you want Jun 03 13:09:17 and then dumping it into your own projects Jun 03 13:09:30 haha Jun 03 13:09:33 or even from my own projects Jun 03 13:09:49 no, I mean *big* refactorings where you can delete whole files and packages when you're done Jun 03 13:09:51 it's like a cleansing Jun 03 13:09:57 kny, when i tried to install the latest GV, i was getting an error Jun 03 13:10:04 cause I made a google bookmarks app Jun 03 13:10:16 why would that conflict? Jun 03 13:10:18 that was based on your logging in stuff from GV Jun 03 13:10:25 ah Jun 03 13:10:34 and I had just dropped all my bookmark management stuff into GV Jun 03 13:10:34 yeah, I changed the preferences around a bit Jun 03 13:11:39 cause bookmarks has no api either, and doesnt that other login thing Jun 03 13:11:42 clientlogin i think? Jun 03 13:11:50 yeah Jun 03 13:12:26 there's a google login API but unfortunately Google Voice does some other crap once you log in that I need to find for GV Jun 03 13:12:39 though I might be able to just find it later so I might switch to ClientLogin Jun 03 13:13:45 for my other super secret ADC2 app i had to switch to client login Jun 03 13:14:31 "had to"? I'd love to Jun 03 13:14:51 results based on status codes instead of string.indexOf()? :) Jun 03 13:15:13 lol Jun 03 13:15:33 wanna play with my first app engine project? Jun 03 13:16:17 was it that one you linked the other day? Jun 03 13:17:00 yeah Jun 03 13:17:08 has it changed? Jun 03 13:18:36 * blau1 trying to upload newer ver now Jun 03 13:19:29 i wonder if app engine has limits on number of daily deployments Jun 03 13:19:29 bah stupid slow network connection Jun 03 13:19:29 i got so used to the mysterious wifi connection here Jun 03 13:19:29 that it feels horrible to tether Jun 03 13:19:56 no Jun 03 13:20:03 since i cant upload the latest one grrr Jun 03 13:21:05 I wonder why so many users have trouble with stuff that's in menus Jun 03 13:21:17 it's like it never occurs to them to try hitting the Menu button and seeing what pops up Jun 03 13:22:09 yeah Jun 03 13:22:11 its users Jun 03 13:22:19 i think they are figuring it out more lately though Jun 03 13:22:22 along with long presses Jun 03 13:22:24 yeah Jun 03 13:22:29 long presses are understandable Jun 03 13:22:37 those are completely undiscoverable Jun 03 13:22:47 long pressed have been on almost every mobile touchscreen though Jun 03 13:22:48 but I mean there's a hardware button labeled "Menu" Jun 03 13:23:10 does the iPhone use long presses? I don't think it does Jun 03 13:23:17 iphone doesnt count Jun 03 13:23:22 definitely Jun 03 13:23:29 its an mp3 player with a phone Jun 03 13:23:32 haha Jun 03 13:25:12 Someone knows how to draw a dotted line? Jun 03 13:26:32 press down move pen Jun 03 13:26:35 press down move pen Jun 03 13:44:01 KNY: i filed a bug about that yesterday actually Jun 03 13:44:11 KNY: i've noticed that nobody checks the menus either. i think it's because often pressing menu does nothing Jun 03 13:44:13 or at least nothing useful Jun 03 13:44:22 and users have better things to do that memorize the contents of every apps menu Jun 03 13:44:27 imho this is an ui design problem with android Jun 03 13:44:42 i'd rather have the meaning of the menu button be inverted - they'd be visible by default, and menu would temporarily hide them Jun 03 13:44:46 (or something like that) Jun 03 14:06:12 once a proximity alert is registered with the system, does it persist through reboots ? Jun 03 14:40:02 can I have a gridview in a dialog? Jun 03 14:49:25 nm Jun 03 14:50:17 thinking about it i don't see why not Jun 03 14:50:56 digitalspaghetti: yeah. my problem lies somewhere else actually. didn't realize it when I asked Jun 03 14:55:19 I'm creating a gridview in a dialog, which shows various images. I used the sample at http://developer.android.com/guide/tutorials/views/hello-gridview.html as basis for my code. The class ImageAdapter takes a context as argument when it's created, and that context is used to create ImageView's. Completely at a loss what I'm supposed to send as Context. It's not the gridview's context, nor the dialog's context, no is it the Activity context neither a Jun 03 14:55:20 pparently Jun 03 14:55:58 I guess I'm missing something fairly simple Jun 03 14:59:31 the applicationContext ? Jun 03 14:59:40 digitalspaghetti: tried that too Jun 03 15:00:02 send any context Jun 03 15:00:05 it doesnt really matter Jun 03 15:00:10 whats the issue? Jun 03 15:00:27 what is failing Jun 03 15:01:28 mikedg: as far as I can tell it's the line "imageView = new ImageView( mContext)" in teh ImageAdapter class Jun 03 15:01:42 are you getting an exception at runtimee? or compile time errors? Jun 03 15:01:55 exception Jun 03 15:02:00 null pointer Jun 03 15:02:00 what is it? Jun 03 15:02:09 mContext is probably null? Jun 03 15:02:29 what context was passed to ImageAdaptor? Jun 03 15:02:42 mikedg: yep.. that's the part I don't understand. mContext is the context that was pased when creating the ImageAdpator Jun 03 15:02:43 yes Jun 03 15:02:53 did you copy the code or retype it? Jun 03 15:03:02 copy Jun 03 15:03:21 debug it and see if mContext is null at that point Jun 03 15:03:23 it works if I start this as an Activity Jun 03 15:03:36 it would just look nicer if it was in a dialog Jun 03 15:03:38 how are you starting it? Jun 03 15:03:49 pass the activities context then Jun 03 15:04:10 the application context shold work though Jun 03 15:04:29 and i would thing the dialog should have too Jun 03 15:04:50 i gota run out for lunch ill bbiab Jun 03 15:05:17 im prretty sure the dialog has to have a real and valid context Jun 03 15:05:21 thanks. sorry.. was tracing the whole thing Jun 03 15:05:45 yep. the ApplicationContext soudns like what it should be somehow Jun 03 15:12:40 AH! it's not ImageAdapter that's failing :) Jun 03 15:15:44 How should ContentProviders that aren't SQLite-backed deal with the SQL where and order by clauses? Jun 03 15:17:26 It seems like ContentProviders pretend to abstract away the data source but force you to use SQLite anyway Jun 03 15:18:23 Is there android classes for parsing the SQL clauses? Jun 03 15:25:37 guess there's no way to create an android library (ie, jar) that includes resource drawables/styles/layouts, etc? Jun 03 15:30:05 Any hints how update a 1.1 build.xml to 1.5? Changing the sdk path makes ant complain about aapt not found. Jun 03 15:36:35 Someone knows how to draw a dotted line? Jun 03 15:45:59 'WindowManager$BadTokenException' fun :/ Jun 03 15:53:57 yacc: you can move it away and create a new project Jun 03 15:54:06 yacc: That's how I did it for mine Jun 03 15:54:58 yacc: The new build.xml template is more parameterized. It also calls a single task instead of duplicating all the tasks. If you need to customize your tasks, you need to do something like and then copy all the tasks out of the template files in the SDK. Jun 03 15:55:37 yacc: You can check out my build.xml file if you need some hints: http://code.google.com/p/connectbot/source/browse/trunk/connectbot/build.xml Jun 03 15:58:11 is there a guide describing how to create the 1pixel border necessary for nine-patch png? Jun 03 15:58:38 theres a draw 9 patch tool in the sdk Jun 03 15:58:44 thats the least effort Jun 03 15:58:48 * digitalspaghetti cringes at 9patch Jun 03 15:58:54 i just use gimp though Jun 03 15:59:12 how do you know where to place the black dots? Jun 03 15:59:22 DAMMIT JIM I'M A CODER NOT A DESIGNER! Jun 03 15:59:27 the left and top are the sections that repeat/stretch Jun 03 15:59:30 kRutOn, well, I left the setup task, and copied the compile task that I needed to patch, ... Jun 03 15:59:37 the right and bottom are the area where content can be put Jun 03 15:59:53 ahhhh Jun 03 16:00:15 that explains it Jun 03 16:01:18 i think theres some nuances that i dont know Jun 03 16:01:20 but thats the basics Jun 03 16:06:04 anybody got an idea why I would get a WindowManager$BadTokenException on dialog.show() with that code http://pastebin.com/d524a6491 ? Jun 03 16:06:48 digitalspaghetti, 9patch is awesome Jun 03 16:10:28 sammyF, why aren't you using managed dialogs? Jun 03 16:13:57 one sec. looking up "managed dialogs" and thus saving the trouble to send me a lmgtfy link Jun 03 16:14:37 oh ... hmm .. you mean a standard dialog Jun 03 16:15:05 well ... I don't know of one that would allow me to show a picture gallery Jun 03 16:15:46 from the list of supported dialog objects at http://developer.android.com/guide/topics/ui/dialogs.html , only Custom Dialog seemed to fit what i needed Jun 03 16:16:20 but maybe I misunderstood something Jun 03 16:16:57 yacc: You have to disable setup's import and copy the entirety of the template unfortunately Jun 03 16:17:27 kRutOn, why? Jun 03 16:19:01 is there any good way to have one project dependent on another project and have them share resources? Jun 03 16:20:39 hmmm my design view for layouts suddenly stopped working! Jun 03 16:21:22 eclipse shows it as a some xml file table! Jun 03 16:24:42 zhobbs: no, not in android currently. Jun 03 16:25:02 prash: looks like it didnt open it in the android editor Jun 03 16:25:05 try right clicking the layout Jun 03 16:25:07 yacc: Well, unless you have a completely different target name, it will double-import the task names Jun 03 16:25:10 and selecting open with android thing Jun 03 16:25:17 zhobbs: well, thats not entirely true. you can read another packages resources. Jun 03 16:25:23 but it isnt exactly what your elooking for :) Jun 03 16:25:28 jasta: weak Jun 03 16:25:39 yeah, looking to build one package from multiple parts Jun 03 16:25:41 oh ya blau-mikeDG, that solved the problem - thanks! Jun 03 16:25:46 kRutOn, well, I ended up with this funny error: http://pastebin.com/m5abca768 <= could this be a result of the import + redefine? Jun 03 16:27:24 yacc: No, Ant will give an error and quit immediately. It should work without disable import if your new task name is unique. Jun 03 16:27:45 But it's not unique, I just copied it. Jun 03 16:27:55 And ant does not complain, it just compiles, ... Jun 03 16:28:35 In scalac it complains about RemoteException missing, which makes me wonder if I'm missing a classpath or something, somewhere. Jun 03 16:31:24 jasonchen, ping Jun 03 16:32:59 zhobbs: it would be possible to layer your own solution atop android though Jun 03 16:33:32 although it would be best if you had framework support Jun 03 16:33:41 kRutOn, got an idea why my compiler cannot find RemoteException? Jun 03 16:34:08 kRutOn, any idea waht I would want to add to the classpath so that RMI works? Jun 03 16:34:32 zhobbs: http://developer.android.com/reference/android/content/pm/PackageManager.html#getResourcesForApplication(java.lang.String) Jun 03 16:34:37 * sammyF answers his own question : it should have been "Context mContext = this;" Jun 03 16:34:42 but again, it wouldnt be quite what youre thinking Jun 03 16:35:06 sammyF: the 'm' convention is typically used for member, not local, variables. Jun 03 16:35:09 btw. Jun 03 16:35:44 jasta: yeah ... I know. It's just because I copied the code from an activity where it actually made sense Jun 03 16:36:01 jasta: should have corrected it when I copied the line really. :/ Jun 03 16:36:43 jasta: yeah, it would be possible to create some build scripts to duct tape projects together....I want the result to be one apk with no apk dependencies Jun 03 16:37:19 zhobbs: oh, well thats an easier problem Jun 03 16:37:25 just use a build system that doesnt suck :) Jun 03 16:39:11 yeah Jun 03 16:39:45 I've been threatening to drop ADT, might be time I guess Jun 03 16:40:27 ive done it ages ago Jun 03 16:41:16 the only thing i miss is automatically updating R.java when i drop resources in res/... Jun 03 16:41:44 hmmmm Jun 03 16:42:10 is there any way to replicate an edittext on a widget? Jun 03 16:43:05 I'm getting close but can't change events of the textview Jun 03 16:43:26 jasta: what text editor do you use? Jun 03 16:58:07 is there any way to stop / kill an activity from outside of the activity (for e.g. from a broadcast receiver) Jun 03 16:59:28 finishActivity( int) Jun 03 16:59:54 prashast: http://developer.android.com/reference/android/app/Activity.html Jun 03 17:00:39 sammyF: that is available to activies only Jun 03 17:00:56 i want to stop the activity from a broadcastreceiver Jun 03 17:01:06 or service Jun 03 17:01:35 prashast, services/receivers have a reference to a context, no? Jun 03 17:02:00 yes they do Jun 03 17:02:16 but i cant seem to find any API in the context class to do that Jun 03 17:03:25 and the context passed to the service / reciever is not the same as the activity context ( i think ) Jun 03 17:09:59 wow, I got the magic into some crazy state where I was calling a number, and I couldn't get it to hang up Jun 03 17:11:24 herriojr, that's just google's new phone AI system... it had a good reason for calling, you need to figure out what it is Jun 03 17:14:41 KNY: Looks like i'll have to do this by storing a static reference to the Activity object within the activity itself Jun 03 17:15:10 prashast, that seems like a terrible idea Jun 03 17:15:17 i know Jun 03 17:15:23 but i cant seem to find any other way :\ Jun 03 17:15:28 ewww leaking contexts :( Jun 03 17:15:38 do it using weakreferences Jun 03 17:15:39 just to be sure Jun 03 17:15:49 prashast, what are you trying to accomplish? a service shutting down an application? Jun 03 17:16:21 sharkey! Jun 03 17:16:42 surely you must know about the warranty for the I/O Ions? Jun 03 17:16:42 receiver shutting down an activity if its at the top of the stack (not the app) Jun 03 17:18:00 jsharkey, go tell jasonchen to get on IRC :) Jun 03 17:19:05 KNY: hes on a plane? Jun 03 17:19:16 jsharkey, I didn't ask for excuses! Jun 03 17:19:19 :) Jun 03 17:20:07 put the receiver inside the activity itself Jun 03 17:20:23 i keep geting emails but no wave emails Jun 03 17:20:24 register the receiver only when the activity is open Jun 03 17:22:29 are horizontal and vertical layouts each manually made by the dev? Jun 03 17:22:35 herriojr: its an SMS receiver and based on the contents of the receiver it may start an activity or kill an activity (or do other things) Jun 03 17:22:49 bmk: you mean landscape vs portrait or something else? Jun 03 17:22:57 blau-mikeDG, yes Jun 03 17:23:04 so i'll have to register another receiver just for the purpose of killing the activity Jun 03 17:23:20 it tends to lead to better apps if you handle all variations of the screen Jun 03 17:23:33 but you can just stick a single layout and itll get used for everything Jun 03 17:24:30 i see, so if you just make a vertical layout and put the phone in horizontal mode, it will just rotate the screen and expand it? Jun 03 17:24:58 itll rotate the screen, then apply the layout to that new size Jun 03 17:25:47 ok, thanks Jun 03 17:25:50 np Jun 03 17:29:22 jsharkey: thanks for the tip about weakreferences. new to java - didnt know this existed! Jun 03 17:29:43 i still feel like thats wrong not the best way :/ Jun 03 17:29:43 Someone has coded a scroller for a game that want to share? I have a bitmap that looks like a scroller and I need to scroll it with fingers? someone could help? Jun 03 17:30:22 morning ctate Jun 03 17:30:28 sup Jun 03 17:30:28 a scroller? Jun 03 17:30:41 Anyone got ant experience here? Jun 03 17:30:46 http://pastebin.com/m5abca768 Jun 03 17:31:12 blau-mikeDg: yes, an horizontal one. Jun 03 17:31:25 like a side scrolling game or a scrolling view? Jun 03 17:31:33 hey, so sometimes my logcat in eclipse dies, is there an easy way to start it back up without having to exit eclipse and reopen eclipse? Jun 03 17:31:37 blau-mikeDg: side scrolling Jun 03 17:32:14 herriojr: have you tried Windows -> Show view? Jun 03 17:36:52 blau-mikeDg: you have already coded one? Jun 03 17:37:24 nope Jun 03 17:37:25 sorry Jun 03 17:37:41 ok Jun 03 17:37:45 tnks anyway Jun 03 17:38:19 prashat: if you're going to make a static reference, just be sure to check the lifecycle of it Jun 03 17:38:31 prashast: the view is already open, but I'll try it Jun 03 17:38:48 prashast: make sure you don't leak the activity Jun 03 17:39:06 yea herriojr, i am using weakreferences now so that shoulnt be a problem Jun 03 17:39:22 either way, i clear it onPause Jun 03 17:39:27 and set it onResume Jun 03 17:39:44 which works for my use case Jun 03 17:42:48 prashast: as long as it doesn't leak on rotation, you should be okay ;) Jun 03 17:43:54 did closing and reopining the logcat view work for you? Jun 03 17:52:11 herriojr: you can always run an adb logcat from some terminal session Jun 03 17:56:24 what can I do if an ADP1 is invisible to adb on linux but can be used as a drive and works well with a mac? and is visible via lsusb? phone and host also have been rebootet. Jun 03 17:56:42 running adb as root? Jun 03 17:56:49 ah and adb kill-server also did not help Jun 03 17:57:02 ewon: I have to try that. thanks! Jun 03 17:59:09 ctate, I think you might know this: are these possible? a) automatically answer calls b) send DTMF tones on calls Jun 03 17:59:22 hmmmm Jun 03 17:59:31 i know you can create DTMF tons Jun 03 17:59:33 tones Jun 03 17:59:38 a) may not be possible but i don't know the details Jun 03 17:59:39 i dont know if they send Jun 03 17:59:55 blau-mikeDG, yeah, but I would need to inject them into the outgoing stream Jun 03 17:59:56 in general the platform tries quite hard to prevent apps from interfering with place/end call control by the user Jun 03 18:00:12 ctate, (a) is less important than (b) Jun 03 18:00:15 by "send DTMF" you mean injecting them into the call audio, or...? Jun 03 18:00:27 jsharkey, going to get your weather widget on the market? Jun 03 18:00:32 ctate, not into the user's audio, but so that the other end gets them Jun 03 18:00:51 i believe that on dream/sapphire hardware Android cannot do that Jun 03 18:00:59 bmk789: maybe someday lol Jun 03 18:01:04 no time Jun 03 18:01:12 ctate, I didn't think so. Excellent, I can strike that out of the contract then :) Jun 03 18:01:31 you could check the incall UI to see how it handles the key pad while in a call Jun 03 18:01:37 kny: see if this helps http://groups.google.com/group/android-developers/browse_thread/thread/80538549330580ce Jun 03 18:01:39 i suspect it tells the radio to inject the DTMF tones Jun 03 18:01:54 ctate, ah, good suggestion Jun 03 18:01:58 thanks for the link, blau-mikeDG Jun 03 18:02:02 the hardware literally does not allow the apps processor access to the radio audio stream, as i recall Jun 03 18:02:08 of course, this will be a bitch to test, me not having a phone and all Jun 03 18:02:13 (a second phone) Jun 03 18:02:16 "the apps processor" == the ARM11 on which Android runs Jun 03 18:02:46 i cant believe that compare everywhere app was a top winner of adc1 Jun 03 18:02:55 a fish could have developed that Jun 03 18:03:03 but didn't? Jun 03 18:03:15 that wasnt funny :/ Jun 03 18:03:19 * KNY waits for jsharkey to chime in about how much it sucks ;-) Jun 03 18:03:20 hardly Jun 03 18:03:27 it was a pretty cool idea, well executed ... ? Jun 03 18:03:28 im so bored, i need my wave sandbox Jun 03 18:03:43 dude. write some cool android software. Jun 03 18:03:48 srsly Jun 03 18:03:50 blau-mikeDG: well, perhaps overly snarky but it's true that actually producing something tends to get more kudos than great unimplemented ideas in something like this Jun 03 18:04:19 I'd love to get started on mine but I need them to post the official rules & regs first :( Jun 03 18:04:20 THAT said, i suspect that ADC2 may wind up more heavily considering production quality and basic soundness, and a touch less of the conceptual Jun 03 18:04:38 i like compare everywhere > shop savvy Jun 03 18:04:38 just a personal hunch Jun 03 18:04:59 i also suspect ADC 2 will wind up with better winners, ADC1 was dominated by location based crud Jun 03 18:05:20 at least I felt that way Jun 03 18:05:25 blau-mikeDG, IIRC, developers for ADC1 only had emulators until like round 2 or something Jun 03 18:05:40 a focus on robustness would be good Jun 03 18:06:02 a lot of apps are kinda flaky. that said the api makes it quite easy to write flaky software :) Jun 03 18:06:12 * TD looks at his crash logs and is depressed Jun 03 18:06:13 i hate locale :( Jun 03 18:06:45 * TD like any great engineer blames his tools :) Jun 03 18:07:09 blame eclipse Jun 03 18:07:12 heh Jun 03 18:07:30 how did picsay win $275,000 http://www.shinycore.com/picsay/ Jun 03 18:07:34 that said i'm pooling ideas for a kind of ruby-on-rails equivalent for android, which gives you a higher level api than android does natively Jun 03 18:07:46 it should be possible Jun 03 18:08:16 mike, google likes stuff like that Jun 03 18:09:01 blau-mikeDG, I can't believe picsay won Jun 03 18:09:09 I still think that's a joke Jun 03 18:09:39 TD: haskelldroid Jun 03 18:09:46 it gives me an idea for a new app though Jun 03 18:09:49 * ctate twitches Jun 03 18:10:01 VidFart! it's like picsay but you can add farts and laughter to you rvideos! Jun 03 18:10:15 ctate: you don't like haskell?! Jun 03 18:10:30 write-only languages make me sad :) Jun 03 18:10:51 it's academic! Jun 03 18:11:18 as opposed to practical? ;) Jun 03 18:11:35 practically academic. Jun 03 18:11:43 piggy back is another app i dont understand how it won Jun 03 18:11:49 hah Jun 03 18:11:52 haskelldroid Jun 03 18:12:09 "The difference between 'theory' and 'pratice' is that in theory, there is no difference." Jun 03 18:12:13 yes, an excellent choice for an app space which is dominated by device io :) Jun 03 18:12:14 arr 'practice' Jun 03 18:12:18 haschoolroid. Jun 03 18:12:41 kRutOn: to be honest i'm a little biased; i've never learned any functional language Jun 03 18:12:47 which is a bit of an impediment Jun 03 18:13:15 english/ Jun 03 18:13:49 heh Jun 03 18:13:52 ctate: like a stutter? Jun 03 18:13:57 * TD knows a bit of haskell Jun 03 18:14:16 ctate: you're in the bay area, right? We do a haskell workshopy/class thing at noisebridge once a week. Jun 03 18:14:36 if i had ANY TIME AT ALL that would be pretty cool Jun 03 18:14:39 its memory usage would make you cry Jun 03 18:14:52 haha Jun 03 18:14:53 i can't really think of a worse language to use on a phone Jun 03 18:15:02 https://www.noisebridge.net/wiki/Haskell/Haschool Jun 03 18:15:06 TD: yeah, i knew that. Ruby is also mem hungry. Jun 03 18:15:14 I think ruby is the worst of all worlds. Jun 03 18:15:23 and sl o o o w Jun 03 18:15:27 but haskell is the ruby of FP. Jun 03 18:15:41 instead of why's poingant guide to ruby Jun 03 18:15:51 the languages course in college used SML as their representative functional language Jun 03 18:15:57 they have Learn You a Haskell for great good! Jun 03 18:15:59 http://learnyouahaskell.com/ Jun 03 18:16:00 * ctate didn't take that course, not being a CS major Jun 03 18:16:09 someone set us up the closure! Jun 03 18:16:27 i read "learn you a haskell" Jun 03 18:16:32 ctate: you majored in chewing bubblegum and kicking ass? Jun 03 18:16:34 it has pretty pictures but is still rooted in academia Jun 03 18:16:41 grey-: maths Jun 03 18:16:47 so, pretty much Jun 03 18:16:47 TD: OOOh burn. Jun 03 18:16:48 when the examples are all "look at how elegantly you can implement quicksort" i know it's not the language for me Jun 03 18:16:55 now, D on the other hand Jun 03 18:17:17 And I'm all out of bubblegum Jun 03 18:17:21 * kRutOn puts on his sunglasses. Jun 03 18:17:30 the future's so bright Jun 03 18:17:36 D... didn't someone write a bullet placement markup engine in D? Jun 03 18:17:37 They Live. Jun 03 18:17:45 grey-: heh, why's guide is awesome Jun 03 18:17:45 kRutOn: apparently they're doing a remake of it. Jun 03 18:18:02 Actually, the entire movie of They Live is on Google Video Jun 03 18:18:06 kRutOn: which is funny, as its one of the few Carpenter films where he didn't even want his name on it. Jun 03 18:18:29 I Live Jun 03 18:18:50 for now. Jun 03 18:19:24 * ctate has never seen it. Jun 03 18:19:39 it's hilariously bad. Jun 03 18:19:46 Roddy Piper is the man Jun 03 18:19:52 this is actually true for [insert movie name here] as well. Jun 03 18:19:58 more or less. Jun 03 18:20:01 ctate: oh that one too? Jun 03 18:20:02 You never saw Star Wars? Jun 03 18:20:05 at least for post-1994 or so Jun 03 18:20:24 ctate: Dark Star is still one of the best scifi movies ever though ;) Jun 03 18:21:02 ctate, in case you're curious, it all goes through GSMPhone (and then through a CommandsInterface implementation) but it's got @hide all over it, so I'm just going to abandon the idea Jun 03 18:21:11 This is all you need to see of They Live: http://www.youtube.com/watch?v=S0GxyZCVc5M Jun 03 18:21:18 I'm not about to write an app for a client that uses hidden APIs Jun 03 18:21:29 KNY: CommandsInterface sounds suspiciously like RIL stuff Jun 03 18:21:47 yeah, I stopped digging at that point Jun 03 18:22:04 I figured I'd start getting native code, like digging into MediaPlayer ;) Jun 03 18:24:03 kRutOn: yeah, i've heard of it. what an awesome hook to build around. too bad the execution sucked. :( Jun 03 18:28:48 I love late-80s mullets Jun 03 18:29:29 KNY: it's all about late-90s mullets Jun 03 18:29:32 i was about to say oh god the mullet Jun 03 18:30:17 I wonder if has the same barber as macgyver Jun 03 18:33:40 i wish my g1 was shaped like a pre Jun 03 18:33:45 and had web os Jun 03 18:33:53 so what you're saying is... Jun 03 18:34:13 you want a pre, that's not on CDMA or tied to Sprint for six months, and has an open source ethos? Jun 03 18:34:25 sure Jun 03 18:34:54 i wish my g1 had the tuochstone chrger too Jun 03 18:37:37 haha Jun 03 18:37:38 y'know Jun 03 18:37:43 those have been available for years. Jun 03 18:40:20 How should ContentProviders that aren't SQLite-backed deal with the SQL where and order by clauses? Jun 03 18:41:05 good question Jun 03 18:41:10 Is there android classes for parsing the SQL clauses? It seems like ContentProviders pretend to abstract away the data source but twist your arm to use SQLite anyway. Jun 03 18:41:56 I was thinking the exact same thing a few days ago :/ Jun 03 18:44:38 has anyone seen examples of returning a cursor or something similar from a service method? Jun 03 18:46:24 shales: would a ContentProvider work? Jun 03 18:46:31 oh Jun 03 18:46:34 reading backlog now :) Jun 03 18:46:52 you /can/ drop the selection clauses Jun 03 18:47:06 your not required to support them Jun 03 18:47:44 lol Jun 03 18:47:49 yeah, but I do want to take parameters Jun 03 18:48:00 just not in the form of SQL params Jun 03 18:48:13 I guess they could be in the URL Jun 03 18:48:27 ANYONE DOING ANDROID IRC? Jun 03 18:48:33 woops sorry about the caps Jun 03 18:50:41 spoony: nyt and others iirc. Jun 03 18:50:42 eh, there's already a few clients out there Jun 03 18:52:39 lol Jun 03 18:54:13 i use ssh to connect to my server where irssi is running. Jun 03 19:29:51 I think this is a stupid question, but can the emulator be run standalone? Jun 03 19:30:03 not sure what you mean by standalone Jun 03 19:30:16 KNY: it can run without eclipse running in the background Jun 03 19:30:19 that's for sure Jun 03 19:30:23 for example, could I just have a client grab the emulator and use it to test their app or do they need the full SDK and all that? Jun 03 19:30:41 i dunno what all binaries are involved in the emulator Jun 03 19:30:58 but it is not dependent on Eclipse or any of the Eclipse infrastructure Jun 03 19:31:10 ctate, right, I knew it wasn't dependent on ADT or anything Jun 03 19:31:19 I'll throw it in a vm and see if a standalone binary works Jun 03 19:31:20 you can run it just fine from a command line Jun 03 19:31:25 ctate, right Jun 03 19:31:43 there's the emulator binary, the system image Jun 03 19:31:48 and, uh, not much else? Jun 03 19:31:52 i haven't dug into it Jun 03 19:31:58 well, an AVD creator I assume? Jun 03 19:32:02 what's an AVD? Jun 03 19:32:05 :D Jun 03 19:32:09 android virtual device? Jun 03 19:32:14 isn't that an Eclipse thing? Jun 03 19:32:20 ctate, I don't think so Jun 03 19:32:26 put it this way Jun 03 19:32:29 i use the emulator every day Jun 03 19:32:37 to my knowledge i have never had to deal with anything called an AVD Jun 03 19:32:59 ctate, run `android list` and look at the end of the list Jun 03 19:33:27 (AVDs are new as of 1.5) Jun 03 19:33:28 what is this 'android' command? Jun 03 19:33:31 [ctate@cake] /Volumes/android-OSS/donut $ android list Jun 03 19:33:31 Error: Error parsing the sdk. Jun 03 19:33:31 Error: /Volumes/android-OSS/donut/out/host/darwin-x86/platforms is missing. Jun 03 19:33:31 Error: Unable to parse SDK content. Jun 03 19:33:46 haha Jun 03 19:33:47 your machine is called cake ^_^ Jun 03 19:33:57 :D Jun 03 19:34:02 THE CAKE IS A LIE! >:O Jun 03 19:34:19 ctate, I have no idea what goofy nonsense you think you're running over there :P Jun 03 19:34:21 romainguy wears Portal t-shirts a lot Jun 03 19:34:37 KNY: the platform build system, i.e. 'make' and running ddms and the emulator from the command line Jun 03 19:34:45 he's a witch! Jun 03 19:34:48 no ant, no AVDs Jun 03 19:35:43 i use Eclipse to edit code and to debug through ddms, but i have to set up ddms manually to do that part Jun 03 19:36:06 ah Jun 03 19:36:32 anyway, you'll at least need the emulator binary package, which may include skin bitmaps etc or something Jun 03 19:36:35 and the system.img Jun 03 19:36:48 which is big, of course Jun 03 19:37:16 eh, I'll just make them grab the SDK I guess Jun 03 19:37:18 haha Jun 03 19:37:21 heh Jun 03 19:37:45 it's not like I'm telling them to get the entire git repo or anything Jun 03 19:38:11 vol: what was that smiley on your line "your machine is called cake" Jun 03 19:38:25 Colloquy is rendering it with some wacky emo face graphic Jun 03 19:38:55 it's like an anime smiley Jun 03 19:39:00 ^ _ ^ Jun 03 19:39:28 oh, that one? ha. Jun 03 19:39:32 ^_^ Jun 03 19:39:36 yup, that's it. sheesh. Jun 03 19:39:45 @_@ Jun 03 19:40:26 haha Jun 03 19:40:29 > : O Jun 03 19:40:31 remove the spaces Jun 03 19:40:42 it should be angry face Jun 03 19:42:00 Colloquy doesn't know that one, fortunately Jun 03 19:42:25 ewww colloquy. Jun 03 19:44:10 * kRutOn -$ Jun 03 19:44:15 aw, darn :-$ Jun 03 19:45:28 :* Jun 03 19:46:53 whoa whoa whoa vol Jun 03 19:46:56 let's keep it PG here Jun 03 19:49:12 I haven't whipped out some of my other emoticons Jun 03 19:51:25 I'd like devel an application that it show some info in a Toast message, so I dont need a full screen like Activity. Jun 03 19:51:50 If I use an Activity class, and call the method finish() in the onCreate Jun 03 19:52:07 the device show a blackscreen 1 seg Jun 03 19:52:33 some idea? Jun 03 19:53:13 jaimecg: you could use a dialog instead of an activity, if you're only showing some text Jun 03 19:54:16 but, if I use an activity... Jun 03 19:55:06 I'm going to explain... I'd like an app to home screen Jun 03 19:55:30 when I open show a quick message with the battery level Jun 03 19:55:47 I'm not interested to open a full screen app Jun 03 19:55:56 a dialog is a solution? Jun 03 19:58:53 do you have used the toggleWifi app? Jun 03 20:08:21 can you refer to strings in arrays.xml? like, can I have @string/foo ? Jun 03 20:08:52 sammyF: thanks for the update =] Jun 03 20:08:56 i'll install in a bit Jun 03 20:09:04 yeah, thanks sammyF Jun 03 20:09:41 BeBoo_: KNY: np :) no loading after looking at the awards, backkey works now, better help screen :) Jun 03 20:09:45 oh and KNY, were you the one yesterday saying you wished the market would push update notifications to the phone? Jun 03 20:10:01 BeBoo_, yes Jun 03 20:10:25 but only as a developer; I realize that would be super annoying as an end-user Jun 03 20:10:27 KNY: i got an update notification this morning that ConnectBot was updated... not sure when it was but i got the notification... Jun 03 20:10:32 (and a cake if you unlock everything ;) Jun 03 20:10:41 BeBoo_, yeah, it generally checks once a day Jun 03 20:10:48 ah ok Jun 03 20:10:50 BeBoo_, but I want it to happen right away :) Jun 03 20:11:01 patience is a virtue Jun 03 20:11:08 haha Jun 03 20:11:08 BeBoo_: I think the point was that he wants the users to not even have to push a button. forced updates so to speak Jun 03 20:11:15 sammyF, no, not that Jun 03 20:11:29 it's just that once I publish an update, I want to get feedback right away :-) Jun 03 20:11:36 i don't think i would want the apps on my phone updating without my knowledge Jun 03 20:11:38 ah :) Jun 03 20:13:18 * BeBoo_ crosses his fingers as he taps the app Jun 03 20:13:44 much better help. Jun 03 20:14:10 yep. had only the text scrolling at first, but that was kind of awkward Jun 03 20:14:33 i see a weirdness, tho Jun 03 20:14:59 the titlebar that flashes? Jun 03 20:15:02 yeah Jun 03 20:15:11 no idea how to get rid of that :/ Jun 03 20:15:24 I'm just opening a dialog Jun 03 20:16:05 lol... i double-tapped the help button and got two dialogs Jun 03 20:16:08 ^^; Jun 03 20:16:28 lol ... nice one. you really got to tap fast ;) Jun 03 20:16:33 had to hit back twice to get back to menu Jun 03 20:16:55 but good news is it didn't see any slowness starting up like last time with the help button Jun 03 20:16:58 same right up Jun 03 20:17:25 yep. I saw the wait/close screen once yesterday. I think it's really just when android is doing something at the same time in the background Jun 03 20:17:32 I get it in the application manager a lot too Jun 03 20:17:55 i get it a lot in the emulator... i just ignore it Jun 03 20:19:20 by the way guys, you can do @string/foo in a Jun 03 20:19:51 whoa... sammyF, i looked in LogCat when loading the app... flooded with "Sample 8 not READY" Jun 03 20:20:12 it counts back too Jun 03 20:20:18 like 100 lines per sample Jun 03 20:29:12 using android:dependency for a Preference, can you set preference conditions? Jun 03 20:29:43 erm, dependency conditions* Jun 03 20:29:55 I'd like to make a preference enabled based on which item is selected in a listpreference Jun 03 20:42:52 BeBoo_: yep. I know Jun 03 20:43:11 BeBoo_: I initialize SoundPool, then tell it to load the sample Jun 03 20:43:30 ... and if I try to play it the first time, I'll get Sample Not Ready Jun 03 20:43:39 so I loop until the samples ARE ready Jun 03 20:43:50 I sleep in the loop though Jun 03 20:44:13 is that what the loading sequence is for? Jun 03 20:44:23 and it's in an asynctask, which is why the application *shouldn't* get the wit/close popup Jun 03 20:44:28 BeBoo_: yep Jun 03 20:44:50 it's just loading 8 samples, which are all rather small, except for the music loop of course Jun 03 20:45:04 most of the time is spent waiting for the samples to be ready :/ Jun 03 20:48:22 the "sample not ready" message is a system warning btw. Jun 03 20:48:51 so, it's not me loging it Jun 03 20:51:41 gotcha Jun 03 20:51:43 i gotta run Jun 03 21:19:19 Hi! I want users to be able to report stuff from my app.. How would be the easiest way to do that..? Jun 03 21:19:25 As an automated email, or... Jun 03 21:19:30 email! Jun 03 21:19:45 watch out though, they will just do that Jun 03 21:19:50 hehe, I know.. Jun 03 21:19:57 i have a function in my app that mails me all of their preferences Jun 03 21:19:59 but is the code for setting and sending the email simple? or..? Jun 03 21:20:02 and allows them to add a message Jun 03 21:20:12 95% of the time I get emails of only preferennces Jun 03 21:20:30 and can it be done transparently (for the users)? So that the user doesnt really have to edit a regular email and click send? Jun 03 21:20:52 i dont think so Jun 03 21:21:07 okey ;) Jun 03 21:21:13 but yeah, is the code simple? Jun 03 21:21:15 unless you wanna ork something else out Jun 03 21:21:15 yeah Jun 03 21:24:22 Thanks mate Jun 03 21:29:42 you probably could covertly send email actually Jun 03 21:29:51 but you'd have to roll your own email classes I think Jun 03 21:29:53 don't know Jun 03 21:30:03 yeah Jun 03 21:30:09 no way to use their account afaik Jun 03 21:30:23 yes that would pose a problem Jun 03 21:30:49 should be doable with a permission though :> Jun 03 21:31:50 permissions are really "casual" security Jun 03 21:32:00 and the more permissions you add, the more likely someone is not going to read them Jun 03 21:32:45 im all for not reading permissions Jun 03 21:32:49 I would say 90% of the users don't care about permissions at all Jun 03 21:32:53 no other mobile os has permissions Jun 03 21:32:59 right? Jun 03 21:33:13 not sure what iphone does Jun 03 21:33:31 blau-mikeDG: sometimes it's kind of weird what permissions are being asked for though Jun 03 21:33:34 iphone is a combination of just in time popups and super limited apis Jun 03 21:33:40 so you don't need a whole lot of permissions Jun 03 21:33:43 That said, something innocuous that has Network and Contact List and Send SMS permissions might be something I choose not to install Jun 03 21:34:11 "this application plays random farts on the press of a button - needs internet acces, can read you emais, and use your credit card" Jun 03 21:34:11 yeah that's going to be a problem in the future as apps start using network access for all kinds of legit reasons Jun 03 21:34:16 crash reporting, analytics, update checking etc Jun 03 21:34:37 apps used to all require internet access Jun 03 21:34:40 some of mine still do Jun 03 21:34:48 because i took the update code out but never removed the permission Jun 03 21:35:15 (copy protection) Jun 03 21:35:18 is there a way I can programmatically access the values of the manifest.xml ? Jun 03 21:35:24 can you make your own permissions? Jun 03 21:35:30 which i only recently discovered because a user asked me why i needed a certain permission Jun 03 21:35:31 yep Jun 03 21:35:38 which i didnt think i requested( and i didnt) Jun 03 21:35:42 I'd love to be able to have my apps as for permission to like "Insult your mother" and "Date your sister" Jun 03 21:35:49 heh Jun 03 21:35:55 some other app would have to define them first Jun 03 21:36:00 * blau-mikeDG tests Jun 03 21:36:26 Requires com.blau.android.WINADC2 Jun 03 21:36:37 lol Jun 03 21:37:38 anyone currently on wave? Jun 03 21:37:43 mike, did you get in yet? Jun 03 21:37:52 im not in yet :( Jun 03 21:38:21 the thing has more bugs than an organic head of lettuce Jun 03 21:38:23 andrewoid, yes, you can Jun 03 21:40:13 my adc 2 entry is so slick i think im gonna wind up buying some images to use in it Jun 03 21:40:14 lol Jun 03 21:40:19 haha Jun 03 21:40:35 care to share what it is? I can't stand waiting two months ;-) Jun 03 21:41:06 it lets you put farts and laughter in videos! and send them to people Jun 03 21:41:19 not really but that is in the running for my 2nd app if possible Jun 03 21:41:20 I can't tell if you're joking or not Jun 03 21:41:24 haha Jun 03 21:41:47 VidFart! Jun 03 21:41:56 I've got like 3 ADC2 projects I'm working on all at the same time Jun 03 21:41:58 no make that 4 Jun 03 21:42:05 I have too many ideas and not enough keyboards Jun 03 21:42:09 andrewoid, haha damn Jun 03 21:42:17 i have about 30 ideas in a google doc Jun 03 21:42:21 all are award winning Jun 03 21:42:23 andrewoid, share some and I'll cut you in if I win :-) Jun 03 21:42:26 but theres only 10 categories :( Jun 03 21:42:51 NONE of which are 'scatalogy' Jun 03 21:43:07 hahah Jun 03 21:43:07 2 games, one map based app, and one reference app Jun 03 21:43:29 i have a map based game! Jun 03 21:43:35 a map based game Jun 03 21:43:38 call it "don't look behind you" Jun 03 21:43:44 ha Jun 03 21:43:53 a weather app! Jun 03 21:43:55 there is one google maps based game I'd love to build Jun 03 21:44:01 have no idea how to do it Jun 03 21:44:17 if I could it'd be the wildest thing ever Jun 03 21:44:31 andrewoid: well ... I'd start by providing 3G or wifi coverage for every user ;) Jun 03 21:44:35 make a racing game that drives through google maps Jun 03 21:44:43 use the 3d buildings in the big cities Jun 03 21:44:48 Mike, bingo... Crusing Google Maps Jun 03 21:44:58 not a clue how to program it Jun 03 21:45:19 yeah me neither, i think we'd have to write our own thing to get data from google maps Jun 03 21:45:26 yea Jun 03 21:45:32 dont think there be a way to shoehorn it onto the existing map view Jun 03 21:45:33 and then you'd have to parse out the map Jun 03 21:45:46 too bad one can't use bluetooth for multuplayer gaming Jun 03 21:45:52 * doc_savage thinks of the anarchy when the gov'ts find out about this "getaway driver training simulator" Jun 03 21:45:53 make it 3d... Jun 03 21:46:17 sammy: yeah :( 4000 new Android owners in one place at I/O and I couldnt figure out a good way to make a quick multiplayer game Jun 03 21:46:26 that was my biggest dissapointment Jun 03 21:46:33 what would be particularly nasty would be how to handle words on the map itself Jun 03 21:46:36 sammyF: I thought that, GPS cat & mouse with cars, would be too dangerous though :) Jun 03 21:46:51 doc_savage: ;) Jun 03 21:47:08 Is the BT protocol efficient for multiplayer gaming./ Jun 03 21:47:33 doc_savage: but yeah, basically every game in which you could sense nearing G1s would be fun Jun 03 21:47:48 andrewoid: if I'm not mistaken, that's what the DS uses Jun 03 21:48:06 sammy, how many players does it support? Jun 03 21:48:10 sammyF: yeah definitely :) Jun 03 21:48:23 andrewoid: no idea. I don't own a DS :P Jun 03 21:48:30 I mean... there's multiplayer... and then there's 40 person style WoW raid multiplayer Jun 03 21:48:31 andrewoid: I got a G1 ;) Jun 03 21:48:39 DS uses wifi, I believe Jun 03 21:48:49 I think they connect as ad-hoc access points Jun 03 21:49:02 KNY: hmm .. is ad-hoc possible with the G1? Jun 03 21:49:09 KNY: DS uses a proprietary protocol called "NiFi" Jun 03 21:49:09 Sammy, no :( Jun 03 21:49:11 sammyF, yes, see: android wifi tether Jun 03 21:49:16 s/g1/with Android/g Jun 03 21:49:18 but essentially, its ad-hoc :) Jun 03 21:49:27 ObsidianX, ah. Jun 03 21:49:35 ok, I have to go to my shrink Jun 03 21:49:50 andrewoid, well, you need root in order to set it up, I believe Jun 03 21:50:03 in order to have a free and pay version of my app. i really need 2 apps right ? Jun 03 21:50:14 KNY: yep. was going to ask : tethering is disabled afaik Jun 03 21:50:15 ;) Jun 03 21:50:30 hunterp, yes Jun 03 21:50:39 hunterp, they need to have different packages Jun 03 21:50:51 andrewoid: You could do bluetooth gaming over PAN, but no one really does it. DS uses Wifi. Jun 03 21:51:10 yeah. im fooling withe the manifest's package name now. cause that is how i'll let my app know if it the free or pay version (same code) Jun 03 21:51:52 hunterp, clever Jun 03 21:52:00 doh Jun 03 21:52:08 hunterp, you could also use the versionCode or versionName Jun 03 21:52:12 the package name must match the actual java name Jun 03 21:52:17 hunterp, yeah Jun 03 21:52:29 just do a refactor -> change package or whatever it is Jun 03 21:52:46 or use ant and set up a task to replace your packages at build time :) Jun 03 21:53:44 yeah. im gonna do this every release (knock on wood) Jun 03 21:59:14 hmm Jun 03 21:59:22 in the eclipse "create avd" screen, what do i type in the sdcard field? Jun 03 21:59:25 is it a path to a file? Jun 03 22:00:12 ah, i see. it tells me as soon as i type something in that's wrong Jun 03 22:00:45 is it possible to do something like About @string/foo ? Jun 03 22:00:59 I know that doesn't work as I'd like it to, but I'm wondering if there is a way to do it Jun 03 22:05:39 oh my god, I just had a user report a bug complete with the stack trace Jun 03 22:05:59 impressive Jun 03 22:06:17 I use remote stacktrace reporting jar Jun 03 22:06:18 it rocks Jun 03 22:06:32 TD: to youe earlier response - ah you know what i did the google location thing a while ago Jun 03 22:06:46 so if it is using gears that makes sense Jun 03 22:06:50 hunterp, I have to write one for python Jun 03 22:06:52 right Jun 03 22:06:55 it's using the nagivator.location.getCurrentLocation Jun 03 22:09:28 which means it is using the geolocation on the phone. w00t Jun 03 22:12:04 how can i do a find/replace on multiple files ? Jun 03 22:12:38 in perl? ;) Jun 03 22:13:37 nevermind Jun 03 22:13:48 Eclipse -> Search Jun 03 22:21:58 i got a problem with a broadcastreceiver on configuration_changed (ANR) Jun 03 22:22:39 the process got no default activity ... its a widget only Jun 03 22:23:06 all i do in onReceive is Log.v Jun 03 22:23:39 the strange thing is the order in logcat is ANR->Widget.onEnabled->Receiver.onReceive Jun 03 22:23:45 am i missing something here? Jun 03 22:24:38 so the receiver gets called but pretty late Jun 03 22:33:59 is there a way to link to an app from an html page? I want to provide a link that people can click on from their phones to launch the market and show my app Jun 03 22:34:57 market://... i think Jun 03 22:35:57 for example market://search?q=pname:com.glu.android.bonsai Jun 03 22:39:58 thanks ezome! Trying it out. Typing it manually into the browser's urlbar didn't work, but i'll throw it up on a page and see if that works better Jun 03 22:40:30 did you try it on the phone? Jun 03 22:40:34 look on cyrket for examples emmby Jun 03 22:40:42 http://www.cyrket.com/package/com.alk.fun.ripples Jun 03 22:40:50 provides market://search?q=pname:com.alk.fun.ripples Jun 03 22:40:54 and a nice 2d barcode Jun 03 22:41:04 (vote 5) Jun 03 22:41:47 just what i said vol :) Jun 03 22:42:13 omg that ripples app is awesome Jun 03 22:42:36 blau-mikeDG: the comments are the real killer though ;) Jun 03 22:43:00 the comments dont do it justice :( Jun 03 22:43:03 ive seen it Jun 03 22:43:03 "dox so don't buy it some poll may like it u prob cry about any paid app its a dollar if that's to much u prob should not have bought a g 1" ???? Jun 03 22:43:30 ^^ Jun 03 22:43:31 sounds like someone made an extension which converts the ripples into random words ;) Jun 03 22:43:45 lol Jun 03 22:44:50 still no wave :( Jun 03 22:46:16 how long is the default activity death length Jun 03 22:46:30 death is forever, hunterp. Jun 03 22:46:45 the bell tolls for you Jun 03 22:46:48 how long until onStop is called Jun 03 22:47:09 uh, generally not long at all Jun 03 22:47:20 you mean after the user navigates away or has something pop up? Jun 03 22:48:11 blau-mikeDG: well .. at least you got ripples :P Jun 03 22:48:23 :P Jun 03 22:49:15 nipples? Jun 03 22:52:32 preprepre Jun 03 23:03:59 nightty Jun 03 23:20:04 is it possible to search for business in google map api on android? Jun 03 23:22:07 anyone know what intent I need to send in order to send a pre-filled email (pre-filled except for the to: field) Jun 03 23:22:51 i assume u just send t a intent.send_to with data/extra with the intent? Jun 03 23:36:21 is there a place/way to execute code when the task is left. im differentiating between task and all the activities beneath it Jun 03 23:37:15 the *task*? nope Jun 03 23:38:15 you can supply your own Application and override onTerminate() but it isn't totally reliable; your process can be summarily killed with no warning in high-load situations Jun 03 23:38:27 i don't need 100% Jun 03 23:39:00 what are you doing, anyway? Jun 03 23:39:01 ctate: cause i have multiple activities within my task. and i'm trying to set a trial period with code in onStop but onStop is called when going from the main activity to the child activity Jun 03 23:39:45 easier to work in days :) Jun 03 23:39:56 not total execution time Jun 03 23:40:14 i don't follow your point ? Jun 03 23:40:35 it sounds like you're trying to track the total amount of time that your app is "running" Jun 03 23:40:36 that's hard Jun 03 23:40:54 just detecting how many days it's been since the app was launched is easier :) Jun 03 23:41:00 was first launched, that is Jun 03 23:41:06 i see your point Jun 03 23:41:29 the rounding off to the days will allow them to use the app for a day before it expires. sounds good Jun 03 23:41:46 thx :-) Jun 03 23:45:06 chouman82, I'll give it a shot Jun 03 23:46:07 chouman82, it doesn't like it; I have EXTRA_SUBJECT and EXTRA_TEXT set but no data set Jun 03 23:48:09 chouman82, ah, got it. ACTION_SEND with a type of "text/plain" Jun 03 23:49:17 chouman82, actually, that pulls in SMS too; SENDTO with a URI of mailto: works for just email : Jun 03 23:49:18 ) Jun 04 00:24:04 how do I get new pictures taken with my app to show up in the gallery? they are being saved to the sdcard and I've tried using MediaScannerConnection but no luck Jun 04 00:25:00 they show up when the sd card is remounted or the device is rebooted Jun 04 00:31:13 is it possible to change the time on my actual phone ? Jun 04 00:32:51 So, I am trying to send an email.. Jun 04 00:32:57 RavenStrike: the media scanner is how... Jun 04 00:33:04 you possibly used it wrong Jun 04 00:33:05 huh? Jun 04 00:33:11 raidfive: i meant Jun 04 00:33:14 ah ;) Jun 04 00:33:43 anyways.. trying to send an email, and I got all paramaters set.. such as msg.putExtra(Intent.EXTRA_SUBJECT, subject); msg.setType("message/rfc822"); etc.. Jun 04 00:33:51 but not sure how to actually initiate the email? Jun 04 00:34:07 ive noted down context.startActivity(Intent.createChooser(msg, "Send E-mail"));, but not sure what context would be? Jun 04 00:34:52 jasta: yea, that is what I thought ... Jun 04 00:34:53 would that be class? Jun 04 00:35:20 hmm.. no Jun 04 00:36:36 gonna try: startActivity(Intent.createChooser(msg, "Send E-mail")); Jun 04 00:37:57 RavenStrike: http://developer.android.com/reference/android/content/Intent.html Jun 04 00:38:04 "ACTION_SEND" Jun 04 00:38:10 with the correct intent extra set Jun 04 00:40:15 or lookup this thread - http://groups.google.com/group/android-developers/browse_thread/thread/c58d75c1ccfe598b?pli=1 Jun 04 00:41:10 I got it working.. but even though ive setmsg.putExtra(Intent.EXTRA_EMAIL, "example@example.com"); the "To" field is empty when the email is set up.. Jun 04 00:42:44 RavenStrike: EXTRA_EMAIL is a String array Jun 04 00:43:01 "A String[] holding e-mail addresses that should be delivered to. " Jun 04 00:43:33 ah, right.. thanks Jun 04 00:43:39 np Jun 04 00:44:34 msg.putExtra(Intent.EXTRA_EMAIL, new String[]{"example@gmail.com"}); then Jun 04 00:44:37 ? Jun 04 00:46:19 It worked :) Thanks Jun 04 00:46:31 yes that should work yea Jun 04 00:48:19 I dont suppose there is a easy way to send the email without user input? Just send it in the background or something? Jun 04 00:49:05 you want to send it from the user's account? Jun 04 00:49:27 yeah Jun 04 00:49:31 or, thats not important Jun 04 00:49:40 as long as I get the message Jun 04 00:51:39 does your app have a server backend? Jun 04 00:52:20 no Jun 04 00:52:39 how often do you intend this email to be sent out? If its just a couple of times there's no harm in letting the user see whats happening... Jun 04 00:52:54 if you need it sent a lot then you should rethink why you need it Jun 04 00:53:41 anyways, i dont think there's a way to send an email without userinteraction from the user's account Jun 04 00:54:25 but i suppose you can send an email from your own account by accessing some service over http thats lets you do that Jun 04 01:23:51 you could directly access an SMTP server and send the email that way Jun 04 01:23:55 but yes, it's a terrible idea Jun 04 01:48:14 I swear this media scanner service isn't working/running :P Jun 04 01:48:34 everything I try does nothing :) Jun 04 01:49:23 onMediaScannerConnected() is never being called Jun 04 01:50:46 roflz. Jun 04 01:51:08 "Nine out of ten l33t h4x0rz prefer it"??? and don't change their quit messages? Jun 04 01:54:50 real men use "Read error: 54 (Connection reset by peer)" Jun 04 01:55:01 makes you look more smarterrrr Jun 04 01:55:11 lulz Jun 04 02:10:28 hmmm anyone ever use the "getDeviceSoftwareVersion" from android.telephony? Jun 04 02:11:59 [20:54:46] real men use "Read error: 54 (Connection reset by peer)" Jun 04 02:12:15 I always preferred "Read error: 42 (And thanks for all the fish!)" Jun 04 02:13:15 ;) Jun 04 02:13:25 more like "Read error: 42 (How is this an error! This is the answer to everything)" Jun 04 02:14:06 I'm glad others actually recognized that. I feel like less of a nerd. Jun 04 02:14:07 :D Jun 04 02:14:18 * Gary|tp checks what channel he's in... Jun 04 02:14:20 fuck. Jun 04 02:14:25 is it possible to change the time on my actual phone ? Jun 04 02:15:21 umm hunterp: settings -> date & time? Jun 04 02:29:58 where did SntpClient go ? Jun 04 02:45:27 @hide Jun 04 02:45:31 :) Jun 04 02:51:43 i dugg it up. and now my app is more tamper proof as user changing time will not affect my app's time calc. **** ENDING LOGGING AT Thu Jun 04 02:59:58 2009