**** BEGIN LOGGING AT Thu Apr 02 02:59:57 2009 Apr 02 03:58:32 anyone planning to go to Google I/O? Apr 02 06:44:17 hi all - I've got an inherited class which I'd like to be able to return an icon. Could either be an image on sdcard or something from R.drawable - is returning an ImageView ok? Something about it doesn't feel ideal (this will be going into background services that pass info to foreground) Apr 02 06:46:19 just return a Drawable or a Bitmap Apr 02 06:47:18 any preference between the two? Apr 02 06:47:27 i.e. is one lighter weight than the other :) Apr 02 06:48:24 I guess drawable is more flexible actually as it means I could later make it any class that inherits from drawable to do other strange and fun things :) Apr 02 07:04:03 indeed :) Apr 02 08:09:18 :-* Apr 02 08:10:01 hmm... wrong window again, I hate that. Apr 02 12:32:54 hmm... I'm kind of confused as to which class is the appropriate one to feed video buffers to be displayed from a native C library Apr 02 12:33:03 using SurfaceFlinger that is Apr 02 12:34:57 because there's base/libs/surfaceflinger/ and base/libs/ui/ Apr 02 13:34:43 in my XML, i have an error: Error parsing XML: unbound prefix Apr 02 13:34:52 what exactly am i looking for? Apr 02 13:40:56 i got it, nvm Apr 02 13:50:07 Hi. A few weeks back I started reading a book on android development. If I were to write a little button that can be added to the workspace and just toggles the display's brightness from highest to lowest (and vice versa), how would I do that? (just roughly sketch it, maybe I can remember) Apr 02 13:50:37 1.0, 1.1, or master/cupcake/etc? Apr 02 13:53:05 zinx: my phone says "firmware version: 1.1" Apr 02 13:53:32 there's not a public interface to do it Apr 02 13:53:47 you can do it through some hidden interfaces, aiui Apr 02 13:54:20 if you just want an app to do it, try flashbright.. if you want to write an app to do it, you may want to wait until you can do it in a way that won't break like flashbright will :P Apr 02 13:54:37 that is, until something with the cupcake changes is released Apr 02 13:55:51 zinx: is that one available on the market? (or is it a paid app?) Apr 02 13:56:01 it is available for free on the market Apr 02 13:56:11 then why am I unable to find it on my device Apr 02 13:56:29 cyrket doesn't list it either Apr 02 13:56:38 hmm, i guess it was removed Apr 02 13:56:49 oh, FastBright Apr 02 13:56:49 hmk Apr 02 13:57:04 ic Apr 02 13:57:14 sorry 'bout that Apr 02 13:57:29 np Apr 02 13:57:33 installing... Apr 02 13:58:00 I wonder whether the code to that app is available Apr 02 13:58:11 I'd be interested in looking at it Apr 02 13:58:23 I do wonder why there's no interface to access this kind of system settings, though Apr 02 13:59:46 there is *now* Apr 02 13:59:46 perfect, that app does exactly what I need Apr 02 13:59:52 just not in 1.0/1.1 :/ Apr 02 14:00:06 and no idea when cupcake will be rolled out I guess.. :-) Apr 02 14:00:08 nope Apr 02 14:10:41 http://pastebin.com/d572ccc22 <, any ideas? Apr 02 14:10:54 a giant mirror to reflect sunlight Apr 02 14:11:34 i'm not trying to blow up the sun ;p Apr 02 14:18:14 that's probably best for all of us. Apr 02 14:19:11 lets see, line 285 of TabHost is Apr 02 14:19:18 mCurrentView.dispatchWindowFocusChanged(hasFocus); Apr 02 14:19:35 so, the error is that there's no mCurrentView I guess Apr 02 14:20:21 have you added any tabs? Apr 02 14:20:29 in the xml, yes Apr 02 14:20:36 looks like if you call addTab setCurrentTab is called, which is the only place that mCurrentView gets set Apr 02 14:21:01 lemme paste my code and xml, one sec Apr 02 14:21:45 http://pastebin.com/d2031935a Apr 02 14:24:55 ooo one sec... i think i might've figured it out... i have an id of "tabhost" somewhere else... i bet it's trying to use the wrong one Apr 02 14:26:06 nope Apr 02 14:28:15 i'm wondering if tabs are really the way i want to go Apr 02 14:50:23 Hi ppl, short question: How to read the SMS already stored ? (PS: I'm working directly on the MMS application in the source code) Apr 02 14:50:23 Thank you for ur support, i'm pretty new in Android Apr 02 14:51:16 I think they're in the telephony provider - I don't know more than that. Apr 02 14:56:23 when i rotate the screen, does it call OnCreate() again? Apr 02 15:02:41 basically, my issue is that if the device is upright and i launch the app then rotate, it launches it again and everything is reset Apr 02 15:13:46 BeBoo: you have to save your state and revreate your activity Apr 02 15:18:17 jbq: there is no provider for SMS :(... or i don't find. Apr 02 15:19:12 binklee: see http://android.git.kernel.org/?p=platform/packages/providers/TelephonyProvider.git;a=blob;f=AndroidManifest.xml;h=c1af5484ddaed2f708a7dfe37e1e4640ba4f5447;hb=master Apr 02 15:19:20 (line 27) Apr 02 15:23:23 jbq: thank you. I see. But i am new and don't find so much documentation. What should i do?what I'm trying to do is : Apr 02 15:23:23 ContentResolver cr = mCtx.getContentResolver(); Apr 02 15:23:23 Cursor cur = cr.query(Uri.parse("content://sms/inbox"), null, null, null, null); Apr 02 15:23:23 But then I don't know on what point the cursor (i mean i don't know what data it represents like the index of columns). Apr 02 15:25:17 Sorry, I'm not familiar with that code. I imagine that the Mms app would have some places where it touches the provider. Apr 02 15:26:09 ok, I'll try my best Apr 02 15:29:15 that cursor probably won't return anything useful because you're not specifying a projection (columns) Apr 02 15:30:14 no projection = all columns. Apr 02 15:30:55 oh nice Apr 02 15:32:16 (well, it all depends on the provider, of course, all providers are different, but that's a common behavior) Apr 02 15:42:45 if you were going to create a jar library containing a custom View, how would you pull values outof AttributeSet without R.styleable? Apr 02 15:42:57 binklee: are you trying to read all of the smss? Apr 02 15:43:02 vol: yes Apr 02 15:43:17 alright, Can't help you with that Apr 02 15:43:20 I've only sent them :P Apr 02 15:43:40 vol: lol :) ^^ ok. Apr 02 15:44:26 jbq: for informations, I can find the names of the columns like that : String[] columnNames = cur.getColumnNames(); I'll test later, i need to move :). ++ Apr 02 15:44:52 nm...figured it otu Apr 02 15:58:37 hmmm, why would "protected View.mContext" be @hidden? the built in views use it, why can't mine? Apr 02 15:59:44 nevermind...found getContext() :) Apr 02 16:17:49 can i show/hide or enable/disable a tab? Apr 02 18:50:21 romainguy__: can 9-patch images be loaded at runtime (ie, off sdcard), or does the 9patch chunk need to be pre-compiled? Apr 02 18:51:23 I noticed that Drawable.createFromStream() looks for nine-patch chunk, whereas createFromPath() doesn't Apr 02 18:53:35 hmm, looks like the images in the apk don't have the 1 px border... Apr 02 18:58:04 * zhobbs is wondering where the 9 patch's are processed during the build... Apr 02 18:58:27 they're processed by aapt Apr 02 18:59:44 thanks Apr 02 19:18:58 romainguy: know of any easy way to process a single 9-patch (not attached to any android project) ? Apr 02 19:21:23 is it possible to display multiple notifications in the pull down window and only show one status bar icon? Apr 02 19:22:50 romainguy: hmm, I figured out how to fool aapt enough to do it... Apr 02 19:26:17 kcoury, nope Apr 02 19:26:40 kcoury, you can fake it by displaying transparent icons Apr 02 19:27:49 andrewoid: doesn't an icon still come up when there are too many icons in the bar? Apr 02 19:28:13 kcoury, yes Apr 02 19:28:23 hmm Apr 02 19:28:28 kcoury, the notification api is very limited Apr 02 19:32:17 andrewoid: tell me about it, being limited only to resources for icons is disappointing Apr 02 19:37:17 Any free walkie talkie apps? Apr 02 19:53:01 hi Apr 02 19:53:23 anyone from germany checked if paid apps are really available? http://androinica.com/2009/04/02/paid-apps-coming-to-more-european-countries-shortly/ Apr 02 19:53:36 my adp1 doesn't have them Apr 02 19:53:47 gee who have thought installing an old image would make me need to reactivate my phone :p Apr 02 19:54:27 biafra_ i'm thinking of putting JF image on my G1 but i think i wont have them either then Apr 02 19:55:11 must you first get root on the old image before installing JF rom ? Apr 02 19:55:19 or should i ask this in #android Apr 02 19:56:12 never mind i think i understood jf rom wrong Apr 02 20:14:23 biafra_: i *believe* that Market policies are different between G1 and ADP1 customers. Apr 02 20:14:41 is there a way to build just "aapt", or do I have to build sdk? Apr 02 20:14:53 so I have to "steal" Apps because I can't buy them in the market (with my ADP1)? Apr 02 20:15:03 rhetorical question Apr 02 20:16:13 G1 is designed with forward-locking, ADP1 isn't, so apps that only let themselves be installed on devices with forward-locking can't be installed on ADP1. Apr 02 20:16:47 jbq: I see not a single app in the market. does that mean tey are all using that feature? Apr 02 20:17:19 not a single not-free app even Apr 02 20:17:35 biafra_: that doesn't sound right. Where are you located? There might be geography restrictions too, I'm not sure. Apr 02 20:17:48 jbq: Germany Apr 02 20:17:51 biafra_: filter to show only paid apps (menu->change view) Apr 02 20:18:11 I would think there are very few paid apps that aren't forward locked Apr 02 20:18:18 I'd expect that you'd be able to see paid apps in Germany, but I'm not sure. Apr 02 20:18:34 jbq: others do (in germany) Apr 02 20:18:35 zhobbs: yeah, that's probably true. And fewer that are currently available in Germany. Apr 02 20:19:30 zhobbs: I don't have that option Apr 02 20:20:03 Are you running Android 1.0 or 1.1? The Market client in 1.0 doesn't support paid apps at all. Apr 02 20:20:07 you using the latest build? Apr 02 20:20:20 jbq: well. that could be it :-) Apr 02 20:20:24 :) Apr 02 20:21:12 I am a fraid to update. won't I loose my settings and installed apps Apr 02 20:21:13 ? Apr 02 20:21:19 no Apr 02 20:21:36 the update is safe. Apr 02 20:28:41 can I keep my recovery image and only install signed-dream_devphone-img-142608.zip ? I need the recovery image for backups with nandroid Apr 02 20:34:25 hm. I can't download http://member.america.htc.com/download/web_materials/ADP/ota-radio-1_22_14_11.zip Apr 02 20:35:55 well. it works with FF Apr 02 20:36:04 .oO( strange ) Apr 02 20:42:11 WHen dealing with matrices, what's the difference between "pre", "post", and "set" member functions. Apr 02 20:50:58 err... pre and post are described in the doc; it's basic matrix math stuff Apr 02 20:51:41 it's important to remember that in matrix algebra, multiplication (concatenation) is not commutative Apr 02 20:51:53 that is, it's quite possible that for two matrices M and N, M*N != N*M Apr 02 20:53:01 Yeah, I figured it out. Apr 02 20:53:14 ctate: I was thinking that set behaved likeOpenGL, what I wanted was pre. Apr 02 20:53:24 ctate: I failed linear algebra. Apr 02 20:53:25 :( Apr 02 20:53:28 aw Apr 02 20:53:41 Well, I got a C...and it was a mercy C Apr 02 20:55:05 What's the size limit of the apk? Apr 02 20:55:07 8mb, right? Apr 02 20:55:22 I googled a little bit. Apr 02 20:57:36 thought it was 10, could be wrong Apr 02 20:58:16 I see people saying 15, but that seems a bitmuch Apr 02 20:58:22 I know the g1 has that much heap available. Apr 02 20:58:32 (But ti's occupied by the runtime and othe rapps) Apr 02 20:58:41 well, each process gets a 16 MB heap Apr 02 20:58:45 (dalvik heap) Apr 02 20:58:51 oh Apr 02 20:59:59 My artist wants to know. Apr 02 21:00:00 heh Apr 02 21:00:26 disk space is not even close to plentiful :) Apr 02 21:01:48 I'm trying to figure out what a reasonable limit is. Apr 02 21:01:50 1-2mb? Apr 02 21:06:23 just remember that some people may see your app, see the disk space, and say "this isn't worth it :\" Apr 02 21:08:49 Yeah Apr 02 21:09:15 Bonsai Blast is what, 5 MB? and that's considered really huge Apr 02 21:09:25 by some people anyway Apr 02 21:09:26 jbq: i see paid apps now. with 1.1. thanks Apr 02 21:09:34 biafra_: hooray Apr 02 21:09:38 ok, good :) Apr 02 21:09:50 jbq: my settings and apps seem to have survived too Apr 02 21:11:21 just like we meant it :) Apr 02 21:14:30 jbq: but I only updated the radio and the system.img. Apr 02 21:14:51 jbq: should I flash boot.img and userdata.img too? Apr 02 21:16:08 boot.img and recover.img would be good. definitely not userdata (that'd wipe all your apps and data). Apr 02 21:16:15 recovery.img Apr 02 21:16:43 jbq: ok. thought so Apr 02 21:17:12 What is recover.img supposed to have ? Apr 02 21:17:44 lazyidiot: its whats bootet when holding the Home button Apr 02 21:18:00 Okay. Thanks. Apr 02 21:19:17 I've seen that some guys modified the boot part. How did they modify recovery.img - I dont see it in my build if I compile from source. Apr 02 21:21:06 romainguy: you don't happen to know of any java code to process a 9patch do you? aapt is making my head heart...java would be nice :) Apr 02 21:25:10 does that also mean that I as a german developer can put paid apps into the market? Apr 02 21:25:28 would they appear with prices in €? Apr 02 21:28:58 biafra_: you can specify currency I think Apr 02 21:29:19 and I thought german devs could sell apps from day one, not sure Apr 02 21:30:12 zhobbs: I could not register without a UK or US bank account Apr 02 21:30:20 ah Apr 02 22:03:46 I'm trying to create a StateListDrawable, it's working for selected and pressed, but I can't get focus to work Apr 02 22:03:58 I'm using this state: focused = { android.R.attr.state_focused, android.R.attr.state_enabled }; Apr 02 22:08:49 Hi everyone. Got a quick question. I have a simple search based application that has a main screen where people can search and ListActivity as my results intent. Apr 02 22:10:03 However, in some cases there might not be any results. So the ListActivity is not what I want. I was doing the actual searching in the view that extends ListActivity. Apr 02 22:10:50 If there are no results, would rather just show a screen that is not a list. Look for suggestions. Anyone done an app like this? Apr 02 22:11:00 a few options Apr 02 22:11:11 use the list's empty view Apr 02 22:11:17 Guess I could just fo the searching in my first class and then direct them to the right view. Apr 02 22:11:21 1) do the search in your search activity and if there are results pass them to the listactivity Apr 02 22:11:34 2) as romainguy__ said using the empty view Apr 02 22:11:50 3) finish the listactivity and set the result to top off the search activity to show a no results message Apr 02 22:11:54 sweet. thanks! I'll look into list's empty view. Apr 02 22:11:59 tip off* Apr 02 22:12:36 romainguy__: why wouldn't this work for a focused widget "focused = { android.R.attr.state_focused, android.R.attr.state_enabled };"? Apr 02 22:12:55 (creating a StateListDrawable in code) Apr 02 22:12:59 I don't know Apr 02 22:13:02 k Apr 02 22:13:26 thanks guys for the suggestions. Apr 02 23:34:26 hmm Apr 02 23:34:40 anyone around that has some understanding of how USB/adbd works on real hardware? Apr 02 23:34:48 swetland Apr 02 23:38:13 oh wait, ADB can function over Ethernet... Apr 02 23:39:20 it can? Apr 02 23:39:24 oh yea... Apr 02 23:39:26 ports Apr 02 23:39:35 can't it? Apr 02 23:40:11 it seems to respect $ADBHOST from the environment. makes a TCP connection to that port Apr 02 23:41:51 damnit, my android runtime environment isnt set up for ethernet networking though, so that wont help me Apr 02 23:41:54 hmm. Apr 03 00:09:51 I wonder if I could port the dalvik VM to run on BREW Apr 03 00:09:52 hehe Apr 03 00:10:08 It's probably so deeply rooted in AndroidOS, tho. Apr 03 00:13:26 mmm, i doubt that actually Apr 03 00:13:50 why would you want to? Apr 03 00:14:02 on wait Apr 03 00:14:09 read the question wrong :-P Apr 03 00:14:13 on/oh Apr 03 00:28:00 http://www.washingtonpost.com/wp-dyn/content/article/2008/12/09/AR2008120901742.html **** ENDING LOGGING AT Fri Apr 03 02:59:56 2009