**** BEGIN LOGGING AT Wed Jul 15 02:59:57 2009 Jul 15 03:29:59 oh nuts Jul 15 03:30:26 so all the slick apps, google calendar, google talk, etc aren't in the android open source git repo? Jul 15 03:48:58 warewolf, google talk might be since it's on the ADP1 image, but I could be wrong Jul 15 03:51:45 KNY: I fouldn't find it w/ a cusory find | grep -i talk Jul 15 03:52:02 warewolf, what's in the Im package? just the plugin framework? Jul 15 03:52:17 not sure Jul 15 03:52:22 about to head to bead and can't be arsed to look. Jul 15 03:52:39 right now I'm trying to figure out how people are building AOSP and including non-ASOP stuff in their builds Jul 15 03:54:08 warewolf, they gank the APK from official ROMs Jul 15 03:54:34 yeah but aren't there .. dex/odex framework-tied dependencies or something? Jul 15 03:54:42 no idea Jul 15 03:54:47 I mean, that's why we don't see massive roms that have the best of everything htc and google and tmobile Jul 15 03:54:53 atleast I think? Jul 15 03:55:44 * warewolf -c bed & Jul 15 04:09:12 guys, I'm trying to implement "Show Password" checkbox. When user is checking the box, I set EditText's input type to TYPE_TEXT_VARIATION_VISIBLE_PASSWORD and it works, but when he unchecks it, I set it to TYPE_TEXT_VARIATION_PASSWORD but EditText remains normal text ? Any ideas ? Jul 15 04:18:44 maannj: what are you using to change it? Jul 15 04:19:31 I getting the view using findViewById, then calling setInputType with InputType.TYPE_TEXT_VARIATION_PASSWORD as parameter Jul 15 04:20:13 I'm* Jul 15 04:21:18 kRutOn: is there another way to do it ? Jul 15 04:21:49 no, but I would just read the code.. hold on Jul 15 04:26:54 ok Jul 15 04:33:11 kRutOn: that's how I'm doing it : http://pastebin.com/d42995af2,, but it doesn't work, could it be a bug ? Jul 15 04:52:38 maannj: Try doing TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_VISIBLE_PASSWORD Jul 15 04:53:06 some server just blew up and a customer is on the phone with me.. excuse me :-) Jul 15 04:53:26 kRutOn: lol that's ok :) I'll try it now thx Jul 15 04:54:25 TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_VISIBLE_PASSWORD or TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_PASSWORD Jul 15 04:54:26 ? Jul 15 04:56:01 kRutOn: it worked, cool thanks :) Jul 15 04:57:12 cool Jul 15 04:57:39 * kRutOn considers submitting a doc change for that Jul 15 04:58:57 is it possible to find out how many unread email Jul 15 04:59:40 just need to point out to the difference between class and variation Jul 15 05:18:05 just a thought - incase it's not on the surface of any dev's creative consciousness.... perhaps a police scanner similar to that of the iphone? that would be fun on android Jul 15 07:33:56 how to share files between my OS and android livecd? Jul 15 07:36:00 huh? Jul 15 07:38:36 jasta: Do you have a try of live-android? Jul 15 07:39:03 i don't understand what you're asking Jul 15 07:39:16 and neither do you :) Jul 15 07:39:24 :) Jul 15 07:39:35 coz my english isn' t very good. Jul 15 07:39:43 http://code.google.com/p/live-android/ Jul 15 07:40:00 well that's interesting Jul 15 07:40:40 i doubt very much that you can get files into this environment from some other disk. Jul 15 07:40:46 the mount command is likely very limited. Jul 15 07:40:54 this seems entirely silly to me though Jul 15 07:41:04 yep, i think it's only a toy. Jul 15 07:41:08 you can "try" android using the emulator in the SDK. no idea why you'd want to run it this way Jul 15 07:41:24 even still, nothing compares to just holding a real android device. Jul 15 07:41:49 lol~~ real android device is so expensive for me. Jul 15 07:41:58 i couldn't pay afford for it. Jul 15 07:42:19 then android is probably not of interset to you Jul 15 07:42:24 at least not yet... Jul 15 07:42:44 anyway, if you want specific suppor ton this live-cd project, ask on their forums/mailing lists. Jul 15 07:42:49 in fact, i am an android developer. Jul 15 07:42:57 this channel is for android developers Jul 15 07:43:16 ok, great, but your question didn't seem to pertain to the topic of this channel Jul 15 07:44:48 i don't think so the livecd fitting for me. Jul 15 07:44:58 I can use emulator to run apps. Jul 15 08:37:48 morning all Jul 15 08:38:22 Guys, how can I extract all the files from nandroid .IMG's/yassf2? Jul 15 08:41:59 yaffs2 soz Jul 15 08:42:12 There is a program called unyaffs Jul 15 08:42:21 Windows binary? Jul 15 08:42:30 I do not know. Jul 15 08:42:36 Thanks, I'll look for it. Jul 15 08:43:55 Does anyone know if it is possible to make a dialog fairly plain like a toast Jul 15 08:44:27 Just I need to add a button to a toast but obviously just realised it can't be done Jul 15 08:59:04 Can someone explain to me how people have been building kernels for the HTC Magic/Sapphire 32A without having the kernel patches? Jul 15 09:02:49 Russtora I think this irc room is mostly for developing apps on the android but the #android room is for more lower level stuff like that (Although I could be wrong) Jul 15 09:03:12 ah... Jul 15 09:03:16 I'll ask in there too. Jul 15 09:04:08 I don't think people mind platform questions, but most probably just say to ask on the android-platform mailing list. Jul 15 09:10:26 hey guys Jul 15 09:11:19 if someone german is here, you can join #android-dev-de also ;) just as information for german android developers Jul 15 09:56:17 is there a way to add a row to Android Contacts Data base ? I guess it will looks like SQLiteDatabase.openDatabase("data/data/com.android.providers.contacts/databases/contacts.db"...) but cant find the correct way... Jul 15 10:00:45 Loules: This is completly wrong :) Jul 15 10:00:49 Look at: http://developer.android.com/guide/topics/providers/content-providers.html Jul 15 10:03:46 anno^da: ok I see, thx Jul 15 10:04:03 No problem. It is actually pretty simple. Jul 15 10:06:55 anno^da: tnx for the link too :) Jul 15 10:07:18 It made me realise that to get to the calendar i need some more docs :( Jul 15 10:07:31 anno^da: but i'm quite sure I miss something, this will allow me to add new contacts, not to add new row to the db ? Jul 15 10:07:55 that's the same right? Jul 15 10:08:39 no Jul 15 10:08:43 quote " They're the only way to share data across applications" Jul 15 10:08:55 I want to change the data base table Jul 15 10:09:09 ic Jul 15 10:09:30 thats why is was trying to use SQLite Lib Jul 15 10:09:31 * ngnp just hopped in Jul 15 10:09:38 *i Jul 15 10:10:38 then there is no way to do this ? Jul 15 10:17:10 Loules: afaik an android app is not allowed to access other sqllite db's ... only though content providers Jul 15 10:18:23 ok then i'll have to made my owne DB and sync it with contacts Jul 15 10:18:36 -e Jul 15 10:46:54 Does anyone know is a Dialog box can be positioned? Jul 15 11:16:05 hi Jul 15 11:16:07 I was wonderng if HTC Magic and HTC Hero has the same andorid versions (Cupcake 1.5) ? Jul 15 11:25:39 hey is it possible to change the resolution of the emu phone ? Jul 15 11:27:00 @cesar9: Yes you change the skins for the emulator Jul 15 11:27:44 Out of the box you can try 480x320,320x480,320x240,240x320 Jul 15 11:28:18 Bear in mind that those resolutions also have a bit at the top removed when there is a top bar Jul 15 11:28:42 look at platforms/androit1.5X/skins Jul 15 11:28:48 its quite easy to custom Jul 15 11:29:08 http://www.anddev.org/emulator_iphone_skin_-_qvga-hvga_landscape-portrait-t109.html Jul 15 11:29:15 for example Jul 15 11:30:39 Has anyone had a problem where they sending an email attachment via a loaded intent with a header/type of 'audio/3gpp' and then when it comes back through gmail the attachment's header is set as 'video/3gpp'? Jul 15 11:35:26 * Laserbeak43 doesn't see a good reason to skin an emulator Jul 15 11:35:38 ... Jul 15 11:36:08 seriously Jul 15 11:36:13 what's the point? Jul 15 11:36:23 i guess people really like the emulator Jul 15 11:36:27 * Laserbeak43 shrugs Jul 15 11:36:35 Table pc... Jul 15 11:36:39 *Tablet Jul 15 11:36:58 If you want to make an app for Archos tablet pc you cant do it in 480*320 Jul 15 11:37:03 @Laserbeak It's a good way to get an idea how it will look on differently proportioned displays Jul 15 11:37:41 well, there are new android phones coming out Jul 15 11:37:52 Loules: what tablet pcs? Jul 15 11:38:03 i've seen some demos of android netbooks Jul 15 11:38:10 but they havent been released Jul 15 11:38:15 They will Jul 15 11:39:05 Archos is making one actually Jul 15 11:39:19 Archos... hmm Jul 15 11:39:20 plus, in acts to constantly reaffirm my individuality I like to customize everything, even an emulator skin :) Jul 15 11:39:23 * Laserbeak43 googles Jul 15 11:39:41 chomchom: that takes lots of time Jul 15 11:39:55 when i did that, i was proud of alll my stuff and i looked at it all day Jul 15 11:40:01 and got no work done :P Jul 15 11:40:16 today, my vista desktop looks crappier than 2k :P Jul 15 11:40:33 If you want your app to looks fine in all resolution then you have to care about this Jul 15 11:40:58 http://www.archos.com/products/nb/index.html?country=us&lang=en Jul 15 11:41:05 these will be android enabled? Jul 15 11:41:14 Loules: maybe so Jul 15 11:41:22 Yes Jul 15 11:41:31 the pc tablet Jul 15 11:41:33 i see xp on them Jul 15 11:41:50 pc tablethas win7 Jul 15 11:41:51 it will be Jul 15 11:41:52 its not Jul 15 11:42:15 k :) Jul 15 11:42:18 when is the next android version will be release? and what will be the name? Jul 15 11:42:26 welll i'm off i'm looking forward to that if it's true Jul 15 11:43:06 in french community there is a lot of announcement concerning those tablepc Jul 15 11:43:15 nice Jul 15 11:45:04 i'd love to have a running SDK that would allow me to work from my G1 Jul 15 11:45:13 or a text editor for it with syntax highlighting Jul 15 12:44:15 what's the best way to add a Button to a PreferenceScreen? Jul 15 13:15:39 when I want to publish an android app, I absolutely have to use java, right? Jul 15 13:18:21 oracle owns all your android apps Jul 15 13:45:55 hi, I want to put some files into a separate project, and I built a jar from them; but now my main project, once executed does not find activities declared in the jar. Jul 15 13:46:15 (main project is exporting the jar too, so apk is correct). Jul 15 13:47:26 logcat shows something like 'startactivity cannot find com.example1.test/com.example1.testjar.activity' Jul 15 13:47:43 it seems to merge the two package descriptors. Jul 15 14:40:06 is there a broadcast intent for when a phone call ends? Jul 15 14:44:58 martin___: register an intent for ACTION_PHONE_STATE_CHANGED Jul 15 15:00:37 Paperino, thanks Jul 15 15:11:13 martin___: remember to add permissions too :-) Jul 15 15:51:49 Does anyone know how to prevent a layout from changing from portrait to landscape when the keyboard is shown? Jul 15 15:52:48 yeah, uh Jul 15 15:52:51 in the androidmanifest file Jul 15 15:53:06 in your activity, you can register for configchanges you want to handle yourself Jul 15 15:53:38 that said, I would honestly just request that you be in landscape mode always Jul 15 15:53:45 (which is also an xml setting) Jul 15 16:33:16 cheers again vol found it now Jul 15 16:34:04 np Jul 15 17:15:37 I'm having a very strange issue: whenever I unplug my test phone from the computer, the app runs significantly slower. why might this be? Jul 15 17:19:08 can someone tell me how to call the sms app to open up a sms Jul 15 17:19:09 ? Jul 15 17:19:31 is there a way to fetch the origin of an intent from a broadcast receiver? Jul 15 17:19:45 meanburrito920_: android remounting the sdcard? Jul 15 17:20:28 the_alien, I dont think so... it doesnt show up in logcat when I plug it back in, but why would that happen anyway? Jul 15 17:21:15 <_annex_> hi all, when using a simple ListView, when highlighting an item the background turns orange to signify a selection, where does this drawable come from? the theme? Jul 15 17:22:09 _annex_, I'm pretty sure it just changes the background color, nothing to do with drawables Jul 15 17:23:00 <_annex_> meanburrito920_: if you look closely at the background, its faded at the edges, so that means its either a drawable or a solid color with alpha mask applied Jul 15 17:23:41 <_annex_> either way, I'm curious as to where I can query that color or drawable from the system Jul 15 17:23:53 <_annex_> I am making my own custom View and would like to use the same color to keep it consistent Jul 15 17:24:26 _annex_, http://groups.google.com/group/android-developers/browse_thread/thread/2028f8ab59b768a2 Jul 15 17:24:30 <_annex_> especially if its a theme setting, I'd like my custom view to use the same color/drawable highlight if the theme changes Jul 15 17:25:23 <_annex_> meanburrito920_: thank you! Jul 15 17:28:54 _annex_: that selector should be available in android.R.drawable Jul 15 17:29:44 does anyone know where I can find the drawable for the loadie wheel? Jul 15 17:30:03 meanburrito920_: indeterminate progress bar? Jul 15 17:30:33 zhobbs_ no, I tried that. its just a unit of a progress bar Jul 15 17:30:42 with stripes running htrough it Jul 15 17:31:40 not sure what you're looking for... Jul 15 17:32:05 <_annex_> zhobbs_: thank you, I think I found it at android.R.drawable.list_selector_background Jul 15 17:33:11 woo my locale plugin works :) Jul 15 17:34:49 zhobbs_ the spinning wheel you see on alert dialogs Jul 15 17:35:43 does anyone know if android devices limit bandwidth/processor power when not plugged in? Jul 15 17:36:00 because when I don't have my G1 plugged in it starts lagging like crazy Jul 15 17:37:24 How do I back background different color for linear layout? There are no XML parameters that I can see for it Jul 15 17:37:25 meanburrito920_: the indeterminate progress dialog (spinning wheel) is an xml drawable Jul 15 17:37:34 Penguin_: android:background Jul 15 17:39:38 thanks Jul 15 17:43:09 good morning Jul 15 17:44:13 morning Jul 15 17:46:41 does anyone know if android devices limit bandwidth/processor power when not plugged in? Jul 15 17:47:35 <_annex_> hmmm, this returns null: Bitmap bg = BitmapFactory.decodeResource(getResources(), android.R.drawable.list_selector_background); Jul 15 17:48:14 because it's not a bitmap Jul 15 17:48:27 just use getDrawable(android.R.drawable.list_selector_background) Jul 15 17:50:50 ffs sake, is there no good and free texteditor for macos x... *missing notepad++* Jul 15 17:50:56 does anyone know why a list activity is unable to inflate a view from an arbitrary xml file? Jul 15 17:52:09 <_annex_> romainguy: thank you Jul 15 17:55:07 <_annex_> to render this Drawable to a Bitmap, should I create a Bitmap of the requested size, then create a Canvas, and then Drawable.draw(Canvas) ? Jul 15 17:55:16 yes Jul 15 17:55:22 <_annex_> great thanks Jul 15 17:55:22 but why do you want to render it into a Bitmap? Jul 15 17:55:22 is it possible to use a webview in place of an image view for displaying an image from over the network? Jul 15 17:55:46 meanburrito920_: possible, but not a good idea Jul 15 17:55:48 especially since Drawables, like this one, are stateful Jul 15 17:55:51 can you manage caching on a webview? Jul 15 17:55:57 so they change their appearance on focus, selection, etc. Jul 15 17:56:19 martin___: you can delete cache files as they're stored in your data folder Jul 15 17:56:45 zhobbs_, the reason why I was wondering is because I wanted to use CacheManager, but CacheManager is only available from within webkit, primarily webview Jul 15 18:02:38 what is the best way to cache images in android? Jul 15 18:02:56 meanburrito920_: depends on their size Jul 15 18:03:00 and how many Jul 15 18:03:09 preferably, I would cache images in a list view before the user scrolled to them so that there would not be a network lag upon scrolling Jul 15 18:03:20 zhobbs_, size is 80x60 Jul 15 18:03:38 is there a limit to how many list items there might be? Jul 15 18:03:50 zhobbs_ I currently limit it to around 20-30 Jul 15 18:04:11 could probably just have a List then... Jul 15 18:04:17 *help* Jul 15 18:04:20 potentially it could be up to 80, but I was hitting out of mem errors, so I cut it down Jul 15 18:04:36 a cache should always use SoftReferences Jul 15 18:04:40 yeah Jul 15 18:05:00 zhobbs_ I tried that, and it seems to work fine, but for some reason it lags when the phone is not plugged in. Jul 15 18:05:10 how can i get the sms app to open a thread? I'm sending an intent "Intent { action=android.intent.action.VIEW categories={android.intent.category.DEFAULT} data=data://sms/65 }" but nothing happens at all Jul 15 18:05:23 don't know what i am doing wrong Jul 15 18:05:41 the_alien, you have to do startIntent(i) Jul 15 18:05:50 where i is your intent Jul 15 18:06:08 and I think you are declaring your intent wrong. Jul 15 18:06:35 yeah guess so too Jul 15 18:06:42 but i don't know how to do it right Jul 15 18:06:45 mom Jul 15 18:06:57 Can someone point me in the right direction to get the html code of a website with cookies enabled? I know how to do it in Python, but can't find how to do it in Android/JAVA Jul 15 18:09:11 meanburrito920_: should i pastebin the code? Jul 15 18:09:22 <_annex_> is this the correct method of converting Drawable to Bitmap? : http://pastebin.com/d6942b1a9 Jul 15 18:09:26 romainguy: can i not recycle the bitmap once i set it to the imageview? Jul 15 18:09:35 no Jul 15 18:09:41 _annex_: why do you want to do that? Jul 15 18:10:02 romainguy: so imageview doesn't make a copy of it, it just have a reference to it? Jul 15 18:10:09 chouman82: correct Jul 15 18:10:19 <_annex_> romainguy: i've created a custom view and would like to use the ListView's bg highlight color to keep the UI consistent Jul 15 18:10:32 there's no need to convert it to a bitmap then Jul 15 18:10:44 is the BitmapFacotry still leaking memmory if i don't recyle the bitmap? Jul 15 18:10:47 http://pastebin.com/m6ef889af what is wrong with my intent to open a sms-thread? Jul 15 18:10:49 <_annex_> then how do I layer it in my onDraw() ? Jul 15 18:10:52 BitmapFactory does NOT leak memory Jul 15 18:11:01 _annex_: call myDrawable.draw().... :) Jul 15 18:11:03 oh ok i thought there was a problem with it before Jul 15 18:11:36 the_alien, sure Jul 15 18:11:44 <_annex_> romainguy: ahh interesting, thanks i'll research that! btw, is this particular drawable theme dependent? Jul 15 18:11:59 it should not be Jul 15 18:12:18 you can also just set it as the background drawable of your view Jul 15 18:12:26 the_alien, you need a startIntent(intent) Jul 15 18:12:39 i mean startActivity(intent) Jul 15 18:12:49 <_annex_> romainguy: I guess I could, but only for the split second when the user selects my view Jul 15 18:13:08 just use the drawable's state for this Jul 15 18:13:13 guys - if i have a imagebutton in a widget, how do i change the image of the button, Jul 15 18:13:20 i have my remoteViews object - is it just Jul 15 18:13:34 views.setImageViewBitmap Jul 15 18:13:35 ? Jul 15 18:13:37 meanburrito920_: i'm in an AppWidget, i wont call startActivity. thats why i add the PendingIntent Jul 15 18:13:56 ah Jul 15 18:14:44 i guess the intent isn't correct to call the sms app Jul 15 18:14:52 but i don't know what i should do Jul 15 18:19:26 the_alien, what class is your view? Jul 15 18:19:35 remote view Jul 15 18:20:04 if i just show the send to screen, everything is fine Jul 15 18:20:15 i guess the data:// thing should be different Jul 15 18:21:12 hello anyone!? Jul 15 18:21:30 in an appwidget, how do i chnage the image on an imagebutton Jul 15 18:21:33 hi someone Jul 15 18:21:42 i have access to the remoteviews object Jul 15 18:22:04 myRemoteView.setBitmap Jul 15 18:23:06 the_alien: I'm sorry, what are you having issues with? Jul 15 18:23:26 herriojr: just want to call the mms app Jul 15 18:23:32 call == open ;) Jul 15 18:23:47 like "mms app, open thread with id x " Jul 15 18:24:02 the_alien: oh ok, I'll let you know, just a sec Jul 15 18:25:43 the_alien: Intent i = new Intent(Intent.ACTION_VIEW); i.addCategory(Intent.CATEGORY_DEFAULT); i.setType("vnd.android-dir/mms-sms"); i.putExtra("thread_id", threadId); Jul 15 18:26:02 *sigh* putExtra Jul 15 18:26:17 ok, everything correct, but added the threadId to an Uri Jul 15 18:26:22 the_alien: yeah, I know, some of those things should be better documented Jul 15 18:26:39 in reference to extras Jul 15 18:29:28 herriojr: shows the empty sms view not the thread :/ Jul 15 18:32:06 umm, just a sec, I might have looked in the wrong place Jul 15 18:32:42 that shows the thread for me Jul 15 18:33:58 not for me :/ Jul 15 18:34:30 I'll check it out later, but at the moment I have a pretty close deadline Jul 15 18:34:56 ok, thanks Jul 15 18:35:40 if a service is killed from the device being out of memory, does it get rescheduled with the same ... err... position? Jul 15 18:35:53 i.e. is there some kind of frame pointer and stack frame stored? Jul 15 18:47:23 martin___: no, unless there is a mechanism to save the info before it is killed Jul 15 18:56:44 has anyone here had any success in drawing over a camera preview on a surface view at all? Jul 15 18:58:50 whats' teh shortcut to get into the silentmode/airplain mode selection menu quickly on a g1? Jul 15 18:59:10 hold down off button? Jul 15 18:59:20 ah that's it! Jul 15 18:59:20 thanks Jul 15 19:03:30 digitalspaghetti: like in wikitude or qik? Jul 15 19:04:16 wikitude Jul 15 19:04:33 yea, trying to do some AR stuff Jul 15 19:05:30 i've got the camera preview, the objects in a 2d plane and my phone location and bearing Jul 15 19:05:40 it's just tying it together and displaying over the camera view Jul 15 19:07:23 nice Jul 15 19:08:28 i've actually got an invite fro Layar too, but i forgot to forward it on from my work email Jul 15 19:12:56 ahh, you create a transparent surface and draw on top of the camera layer Jul 15 19:14:09 is there a easy way to position imageview directly in center of screen Jul 15 19:14:41 without margins (dynamicly) Jul 15 19:15:34 <_annex_> layout_gravity="center" ? Jul 15 19:20:38 thansk Jul 15 19:32:47 herriojr: I GOT IT! :D Jul 15 19:34:27 the_alien: what was the issue? Jul 15 19:34:54 hey, does anyone have experience passing callbacks into aidl interfaces, so the service can run async operations? Jul 15 19:36:09 herriojr: no type, set data with uri "content://mms-sms/threadID/"+threadid Jul 15 19:36:29 now it takes me to the thread view Jul 15 19:36:52 hmm, ok Jul 15 19:38:10 so, I'm having this issue where I have two aidls, one generated by an activity (the callback) and one generated by the service, which my activity binds to. For some reason, even though the callback is being called by the service, the activity never seems to receive it. Anyone have an idea on what might be causing this? Jul 15 19:40:41 romainguy: ping Jul 15 20:07:29 hey.. I'd just like to ask if anyone know of any app in the works that would use the speech recognition system in that demo app by google to make an input system (so one could write texts by dictating) Jul 15 20:10:33 NorthLion: the speech app by google is running in part on googles servers Jul 15 20:10:53 locally its just chopping it up and compressing it Jul 15 20:11:21 then google googles it and thats probably the only way it works Jul 15 20:11:37 i don't think it would work well for short words Jul 15 20:18:04 I've tested the demo app for sentences I usually put in texts and it works quite well Jul 15 20:18:49 I'm not talking about the voice search app.. they have a demo app just displaying the speech recognition Jul 15 20:19:34 When using the Google Maps api, is there a way to get notified when the map is moved or zoomed? Jul 15 20:19:51 On a map move, I want to re-fetch the data backing my ItemizedOverlay Jul 15 20:24:06 In the past i've patched into the overlay's draw method, but i'm thinking there must be another way Jul 15 20:24:35 there is an onTouchEvent() method, will that do it? Jul 15 20:25:39 probably not... there's onTap() and onTrackballEvent() too Jul 15 20:29:47 yeah, that was my thought as well Jul 15 20:44:17 man, starting to love the platform as a developer, not just as an user ;) Jul 15 20:44:30 :) Jul 15 20:45:37 aw.. so no on the voice recognition input? Jul 15 20:48:08 the_alien, developing is definitely a lot of fun Jul 15 20:48:20 using would be more fun if it had a bit more performance behind it Jul 15 20:48:56 hitting "Home" and watching the home screen lock up for 30 seconds while it loads everything again is a bit ... infuriating Jul 15 20:49:37 haven't had big problems with the home screen lock... since using overclocking ;) Jul 15 20:49:42 but yeah, thats painfull Jul 15 20:50:28 but flashing hero on the g1 was worse ;) Jul 15 20:53:12 the_alien, well, you asked for that Jul 15 20:54:23 would this be the correct line to use if i am making an appwidget and i wana change the image on a imagebutton ? : views.setBitmap(R.id.drive, "src", Bitmap.createBitmap(R.drawable.myimage)); Jul 15 20:58:22 view.setBitmap(R.id.drive, "setImageBitmap", ); Jul 15 20:58:31 AndyA: Jul 15 21:03:31 how do i create a bitmap Jul 15 21:03:37 Bitmap.createBitmap(Bitmap src) Jul 15 21:03:41 what should src be Jul 15 21:03:47 like how do i reference my bitmap Jul 15 21:03:51 if its in the drawable folder Jul 15 21:06:28 ? Jul 15 21:08:20 <_annex_> BitmapFactory.decodeResource(getBaseContext().getResources(),R.drawable.my_bitmap)); Jul 15 21:15:06 is it better to have bigger backgrounds which doesn't have to be resized or using a 9-patch and resizing the small image? Jul 15 21:15:44 9-patch ftw Jul 15 21:17:27 KNY: how can i use 9-patch with a background having a blending color? Jul 15 21:17:45 for example going from white to gray in the vertical Jul 15 21:18:39 how should the patches be to look good? or should the actual height of the image match the height of the... app widget for example? Jul 15 21:19:04 ah, for your case a static bitmap might be better Jul 15 21:19:16 I'm not sure though Jul 15 21:19:28 romainguy might know Jul 15 21:33:58 how's life #android-dev Jul 15 21:36:59 so it seems the emulator is not "hot deployable" i.e. it is not possible to make a code change and run it without rebooting the whole fangled emulator... joy Jul 15 21:37:04 is that correct? Jul 15 21:40:25 what a load of turd Jul 15 21:41:19 BoomShaka: You mean on the framework or an applciation? Jul 15 21:41:21 C-t Jul 15 21:41:41 kRutOn, i mean the dev environment Jul 15 21:42:17 and seriously... what takes 2 minutes to boot Jul 15 21:42:32 BoomShaka: Right, so you are working on an application. Deploying works for me without restarting anything. Jul 15 21:42:48 does anyone know how to add an image to the Window header? Jul 15 21:43:19 kRutOn, so u just make your code change, close your app in the emulator and then re-run it and the code is changed? Jul 15 21:43:59 BoomShaka: I make my code change, click my configuration in the run (play button) menu and it will do the rest. No need to exit the app or anything. Jul 15 21:45:17 kRutOn, awesome. thanks dude. seems to work for me now :D Jul 15 21:45:32 No problem. Jul 15 21:46:39 question: everyone's packages seem to be like com.android.stuff.jerkface or whatever. Is there a standardized meaning to this naming convention? Jul 15 21:47:43 usually you use your own domain name Jul 15 21:48:05 It's just a way of separating packages Jul 15 21:48:12 com.lolfartincorporated.mylameapp something like that? Jul 15 21:48:33 or is the com.android. part necessary Jul 15 21:48:52 I was just using that example Jul 15 21:48:56 the first one.. com.android. would be misleading since it wasn't released by Google.. Jul 15 21:49:03 they always seem unecessarily long to me Jul 15 21:49:37 Like if my app is AwsomeSauce, then that would be my package Jul 15 21:49:50 unless there was soemthing that I wanted to share between apps Jul 15 21:50:31 the whole com thing seems unecessary Jul 15 21:54:00 whaledawg: it's java.. Jul 15 21:54:08 lots of things are unnecessary Jul 15 21:55:48 whaledawg: http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html Jul 15 22:40:05 how would I give a handler to a thread? Jul 15 22:45:52 is it possible to use OFFSET in the db wrappers android provides? Jul 15 23:35:07 Question: In my app users will be uploading information that isn't private, but will go to their account. Since pics will be part of this info using https with their login info seems unnecessarily slow. Jul 15 23:35:54 My solution is to have an https session that gives the user a token that's only valid for a certain length of time Jul 15 23:36:19 so all uploads will be in the plain text but that token value will tell me where they go Jul 15 23:36:59 Does this seem like a reasonable solution? Jul 15 23:37:02 if it's https, why would it be plaintext? Jul 15 23:37:15 I didn't really understand your explanation, sorry Jul 15 23:37:17 no, https gives the user an initial token Jul 15 23:37:39 and then every upload after that includes the token value so I know who's account it goes to Jul 15 23:37:52 huh, ok Jul 15 23:37:57 in what way is https unnecessarily slow? Jul 15 23:37:59 until the token is invalidated, then they will have to get a new one Jul 15 23:38:10 it's extra overhead Jul 15 23:38:28 on the device? is the difference noticeable? Jul 15 23:38:32 and I don't need to keep this data secure Jul 15 23:38:37 (e.g. did you try measuring it?) Jul 15 23:38:54 it is noticable, I haven't measured with larger files Jul 15 23:39:09 your solution sounds ok, but I don't believe in writing performance optimizations without measuring the performance first :) Jul 15 23:39:25 it seems surprising to me that it would be noticeably slower, but I believe you Jul 16 00:16:10 hi people Jul 16 00:16:28 id like to replace the android userpace by a openmokouserspace Jul 16 00:16:45 for this purpose i have need to get a tty on the androidkernel Jul 16 00:17:00 hi leviathan :D Jul 16 00:17:04 at the moment i get only a blanc screen Jul 16 00:17:16 it already uses an fb Jul 16 00:17:26 the openmoko userspace uses X, though Jul 16 00:17:33 with kdrive Jul 16 00:17:42 so is X failing to start? Jul 16 00:17:47 yes Jul 16 00:18:00 and I dont even get a tty Jul 16 00:18:01 do you have an X driver for the android phone's hardware? Jul 16 00:18:20 ill use vesa I guess Jul 16 00:18:32 haha Jul 16 00:18:42 no, vesa is for x86 BIOSes Jul 16 00:18:48 but first I have need to get a basic tty Jul 16 00:18:50 you should be able to use fbdev Jul 16 00:19:05 hmm Jul 16 00:19:16 at the moment I dont even get a login prompt Jul 16 00:19:23 the screen stays blanc Jul 16 00:19:27 an I dont know why Jul 16 00:19:47 well, I don't know what you're trying, so I can't say why it's not working Jul 16 00:19:54 ok Jul 16 00:20:03 I tried to compile a new kernel Jul 16 00:20:03 make sure that there's a getty running on tty0, make sure that you have CONFIG_ tty stuff on Jul 16 00:20:17 hmm Jul 16 00:20:30 misc and character Jul 16 00:20:59 I activated ext2, ext3, ext4 Jul 16 00:21:09 and disabled yaffs in the new kernel Jul 16 00:21:25 openmoko uses jffs2, doesn't it? Jul 16 00:21:26 plus the following kernel option Jul 16 00:21:40 my rootfs is unpacked on ext2 Jul 16 00:21:47 on SD, I guess? Jul 16 00:21:52 yes Jul 16 00:22:03 ok Jul 16 00:22:13 CONFIG_CMDLINE="mem=76M console=tty0 root=/dev/block/mmcblk0p2 init=/init" Jul 16 00:22:16 well, you need a serial console so you can find out what's going wrong with your tty Jul 16 00:22:34 do you see the kernel messages at boot Jul 16 00:22:42 on the screen? Jul 16 00:22:53 no (I'm sitting right of leviathan :D) Jul 16 00:23:02 ok, so it's not just the tty Jul 16 00:23:16 you probably don't have an fb driver turned on Jul 16 00:27:07 hmm Jul 16 00:27:20 which fbdriver would it be for the htc-dream? Jul 16 00:27:28 and which kernelversion should i use? Jul 16 00:27:51 I saw JF-ramdisks using a framebuffer Jul 16 00:27:59 so basically it possible Jul 16 01:32:43 wow Jul 16 01:32:53 irc on my magic Jul 16 01:32:56 sweet Jul 16 02:09:32 Hello. Just started with cupcake 3 days ago. Wondering what is the definitive way of handling orientation of device ? Usecase: app in the middle of a HttpClient connection (with progressbar) is rotated. Jul 16 02:09:37 chihiro, use a static inner AsyncTask and pass it through the rotation Jul 16 02:09:47 by the way, you can use /join to switch channels Jul 16 02:16:10 KNY, I'm somewhat new to IRC. When you say "pass it during the rotation", do you mean pass the AsyncTask to the Handler during the onConfigurationChanged ? Jul 16 02:16:33 don't use Threads/Handlers Jul 16 02:16:35 use AsyncTask Jul 16 02:17:24 Ok. I'm looking at Romain Guy's Shelves app to learn about AsyncTask. Will come back here if I have a problem. Thanks KNY Jul 16 02:17:29 and you pass it through the rotation by using onRetainNonConfiguration/getLastNonConfigurationInstance or whatever they're called Jul 16 02:17:37 chihiro, http://android-developers.blogspot.com/2009/05/painless-threading.html Jul 16 02:17:56 just make sure that your AsyncTask implementation is static Jul 16 02:18:20 OK. static inner class. **** ENDING LOGGING AT Thu Jul 16 02:59:57 2009