**** BEGIN LOGGING AT Wed Feb 04 02:59:58 2009 Feb 04 03:27:15 hey Feb 04 03:27:49 * Tony-BA walks around Feb 04 05:11:50 how can i create an that uses a built-in icon as the image? Feb 04 05:13:28 @drawable/* is just app-specific resources, afaict Feb 04 06:21:26 dietricha: you can use @android:drawable/name Feb 04 06:22:00 like @android:drawable/ic_media_ff Feb 04 06:26:20 jsharkey: that works, thanks! Feb 04 06:27:56 np :) Feb 04 06:47:19 anyone know how to configure a receiver to catch outgoing sms and email? Feb 04 06:47:42 outgoing calls, no problem Feb 04 06:47:51 the others, not clear from the docs :( Feb 04 08:29:46 Could someone tell me why I have always questions that no one can answer? - http://groups.google.com/group/android-developers/browse_thread/thread/4e7563c25de113ed# Feb 04 08:41:10 anno^da: You can jgrep for this if you check out the android source Feb 04 08:41:42 anno^da: http://code.google.com/android/reference/android/provider/MediaStore.Audio.Media.html Feb 04 08:47:20 Well they are not saved in the media store Feb 04 08:47:39 At the moment I'm using the media store which contains all my music files on the sd card Feb 04 08:48:15 I have looked through the sources for some hours but well probably I'm too stupid to find it :) Feb 04 08:48:54 Another thing. Why do we need the calendar sources when 10% of the used classed are closed and not available :( Feb 04 08:49:19 Are the ringtones you're looking for stored internally or on the SD card Feb 04 08:49:46 internally oh damn Feb 04 08:49:49 you ring my bell Feb 04 08:50:22 :) the internal uri well I said it I'm too stupid :) Feb 04 08:50:49 you can also use the RingtoneManager and use that to get the ringtone's URI Feb 04 08:52:08 ok perfect sometimes the solution is so far :) Feb 04 08:52:19 Now I can go back to the calendar notifications :) Feb 04 08:57:32 And can end my research since CalendarAlerts is not available :( Feb 04 09:37:36 does anyone knows a sample code for sms send/receive ????? Feb 04 10:17:45 any comment ? Feb 04 10:50:54 I am searching for a way to convert an android bitmap into a byte array, but cant find anything useful in the discussion groups Feb 04 10:51:50 its easy to get a bitmap from a byte array, but it doesnt seem to be possible the other way round Feb 04 13:45:11 hi Feb 04 13:45:39 pls does anyone know how to make image from compiled android source without recompiling it all? Feb 04 13:45:58 you can't. Feb 04 13:46:05 ok Feb 04 13:46:21 next hour of compiling .) Feb 04 13:47:01 well, the good news is that there's actually a precompiled kernel, so that's already a good chunk you don't need to worry about. Feb 04 13:47:38 does anyone knows a sample code for sms send/receive between 2 emulatores ????? Feb 04 13:57:46 any guide one R.java ? Feb 04 14:26:23 Some Googlers online that can answer this question? http://groups.google.com/group/android-developers/browse_thread/thread/c5b0264f3c45f685# Feb 04 14:56:03 hey any comment Feb 04 18:27:31 Hi guys Feb 04 18:28:35 If i want to implement a password in my app for safe the information.. what is the best way to that? Feb 04 18:37:38 Hmm you could use OpenSafe Feb 04 18:38:17 But OpenSafe needs to be installed on the client side. So well the easiest but not stand alone solution. Feb 04 18:38:48 http://www.openintents.org/en/node/205 Feb 04 18:38:53 OISafe I'm sorry :) Feb 04 18:45:43 if i have an imagebutton in a row of a listview, it seems to kill the listview clickhandler. anyone know how to let the listview still handle clicks? Feb 04 18:46:26 if i just use imageview, it doesn't kill the listview's clickhandler Feb 04 18:47:12 anno^da thanks Feb 04 18:47:29 dietricha: you can't Feb 04 18:48:03 OI need some kind of dependency manager Feb 04 18:48:03 it overrides the entire list's click handling, or just that row's? Feb 04 18:48:18 romainguy: ^ Feb 04 18:48:32 ctate: for the row Feb 04 18:48:51 romainguy: thanks Feb 04 18:49:05 romainguy: whew that's what i expected :) Feb 04 18:50:36 romainguy: Do you know why the CalendarAlerts class is not available but some parts of the CalendarProvider are? (I'm searching for a way to get to know when the Alert Provider changes but well the URI is hidden - once more) Feb 04 18:50:51 no idea :) Feb 04 18:51:26 ok :) Feb 04 18:51:38 does anyone know if an official solution to (auto) updating apps is coming down the pike? Feb 04 18:52:19 i was going to add code to check for an updated version of my app Feb 04 18:52:37 but i'm wondering if that would be a waste of time Feb 04 18:52:49 and non-standard Feb 04 18:52:56 the thread at http://forums.t-mobile.com/tmbl/board/message?board.id=87&thread.id=30897 shows Market telling the user that updates are available Feb 04 18:53:01 in RC33 Feb 04 18:53:04 morganx: check this out http://forums.t-mobile.com/tmbl/board/message?board.id=87&thread.id=30897 Feb 04 18:53:08 cool, thanks Feb 04 18:54:39 it looks like the user might still have to search for the app in the marketplace to see that an update is available Feb 04 18:55:29 but i guess the 'installed apps' listing will show which apps have updates available Feb 04 18:58:14 ugh, not the update I was hoping for. Feb 04 18:58:32 unix_lappy: not happy about being able to mark comments as spam? Feb 04 18:58:56 marklar_: ya think that should've been part of the initial release. Feb 04 18:59:17 i keep on having to remind myself that I bought a beta product... Feb 04 18:59:21 yeah, would have been nice but better late then never Feb 04 19:17:01 parsing xml in java sucks :| Feb 04 19:17:10 JSON is so much easier Feb 04 19:19:28 so use JSON Feb 04 19:19:49 XML is pretty heavyweight anyway Feb 04 19:20:08 can't, it's an RSS feed Feb 04 19:20:39 i might try use a java RSS library Feb 04 19:20:49 instead of creating my own handler for SAX Feb 04 19:21:51 meh. Feb 04 19:38:51 XPATH is pretty nice Feb 04 19:43:45 how to call an activity from another activity ? Feb 04 19:46:06 any idea what is the reason for this error "no window to dispatch pointer action 0 and 1 " Feb 04 19:46:19 that's wierd. Feb 04 19:46:24 what context is it happening in? Feb 04 19:46:35 as far as starting activities Feb 04 19:46:35 http://code.google.com/android/reference/android/app/Activity.html#StartingActivities Feb 04 19:47:56 that has to do with receive touch events during window transitions Feb 04 19:48:16 a touch event happened but by the time it got to the framework the target window had been shuffled away, or similar cases Feb 04 19:48:21 it should be innocuous Feb 04 19:50:10 how to call an activity from another activity ? Feb 04 19:52:43 it depends on what you mean by "call" Feb 04 19:52:59 vol already told you how one activity can launch a second activity Feb 04 19:53:19 that discussion also talks about getting results from the second activity Feb 04 19:53:24 14:48 < vol> http://code.google.com/android/reference/android/app/Activity.html#StartingActivities Feb 04 19:53:29 I can paste that again if you'd like Feb 04 19:53:33 14:55 < vol> 14:48 < vol> Feb 04 19:53:33 http://code.google.com/android/reference/android/app/Activity.html#StartingActivities Feb 04 19:56:04 ctate, i have a the following chat client activity http://pastebin.com/d516e90a7 , from which i want to call this http://pastebin.com/dfa95d5d SMSsend activity Feb 04 19:57:01 it depends on what you mean by "call" Feb 04 19:57:16 have you read the document that vol has pointed you at? Feb 04 19:57:54 ctate, i'm reading Feb 04 20:02:59 ctate, whats the relation between startActivityForResult AND onActivityResult Feb 04 20:03:09 i should have been in here sooner Feb 04 20:03:13 talking about sdk stuff :P Feb 04 20:03:18 * ctate | you call the startActivityForResult(Intent, int) version with a second integer parameter identifying the call. The result will come back through your onActivityResult(int, int, Intent) method. Feb 04 20:03:33 that's from the link vol posted Feb 04 20:04:09 when you call startActivityForResult(), it launches the new activity. when that activity eventually returns a result, the original activity gets a callback to its onActivityResult() method, passing along that result. Feb 04 20:05:32 ctate, and in my case , based on the code i pasted do i need to get a return it just used to send an sms to a specified emulator Feb 04 20:06:11 ctate, or there could other logic to be used with my case than this of startActivity ? Feb 04 20:07:34 this gets back to my original point: what do you actually want to accomplish? Feb 04 20:08:09 is the goal to send an SMS? or is the goal to present a different UI -- which is what an activity is -- to the user? Feb 04 20:08:27 ctate, it's a client/server chat app , i want when one of the contacts is unreachable to be able to sms him . Feb 04 20:08:43 where is the server running? Feb 04 20:09:15 ctate, it's Java coded Server running on another machine Feb 04 20:09:26 okay Feb 04 20:09:36 honestly i do not know why you are bothering with this other activity Feb 04 20:09:44 the actual send-an-SMS code is three lines. Feb 04 20:09:57 why not just put that code in your chat activity? Feb 04 20:10:16 ctate, here Feb 04 20:10:24 ctate, http://pastebin.com/d516e90a7 Feb 04 20:11:01 ctate, check if this is do-able in this^^ code Feb 04 20:11:02 first off, you have a huge problem Feb 04 20:11:08 you are looping forever in onCreate() Feb 04 20:11:18 which will ANR and get your activity killed Feb 04 20:11:26 if you mean the while(true) that's commented out Feb 04 20:11:34 ah so it is, whew Feb 04 20:11:36 doing IO in oncreate is a no-no though Feb 04 20:11:40 but that too Feb 04 20:11:50 you must not block the main activity thread Feb 04 20:12:31 back to your question: you're asking me if something is doable, but it's unclear what... are you asking whether sending an SMS is doable? Feb 04 20:12:55 if so, then of course -- like i said, it's only three lines of code in that test activity that you also pastebinned above. just use its approach and off you go. Feb 04 20:14:00 vol, so how to make my I/O then Feb 04 20:14:20 threads Feb 04 20:14:30 listeners, handlers, servers Feb 04 20:14:42 if you have a chat app you're going to want to have a Service running in the background almost certainly Feb 04 20:14:50 unless you want to disconnect the moment the activity goes away Feb 04 20:18:23 what launch mode do I have to set when I want startActivity() to NOT start a new activity if the Activity is already running but to resume the old instance (eg so there is always just one instance of an Activity running at a time) Feb 04 20:20:19 vol, some more details on I/O in threads r handlers ? Feb 04 20:21:04 tauno: FLAG_ACTIVITY_SINGLE_TOP I believe Feb 04 20:22:03 marklar_, ok, thanks Feb 04 20:23:52 vol, are you there ? Feb 04 20:24:36 how to keep the connection in a Service running in the background as vol mentiond Feb 04 20:24:49 f00bar80: Just, please, read the docs Feb 04 20:25:02 http://java.sun.com/docs/books/tutorial/ Feb 04 20:25:15 http://code.google.com/android/documentation.html Feb 04 20:25:20 I'm not going to hold your hand for you Feb 04 20:25:29 I'll answer specific questions but I won't do your work for you Feb 04 20:25:50 this is a very gentle way of saying "rtfm" ok? Feb 04 20:26:20 The android docs are pretty thorough on the major componants, such as Services Feb 04 20:29:02 vol, can i code these I/O in a service ? Feb 04 20:30:09 f00bar80: gotta be in a separate thread, even in a service Feb 04 20:30:49 f00bar80: http://helloandroid.com/node/243 Feb 04 20:32:10 hmm Feb 04 20:36:14 zhobbs, regarding this code http://pastebin.com/d516e90a7 , what should be inside the onCreate and what should be in a thread ? Feb 04 20:38:53 anything that can take time to do should be in a thread Feb 04 20:44:15 zhobbs, is there a sample that demonstarte the use of service/activity/Threads together ? Feb 04 20:44:40 oh jesus please just look at the API demos Feb 04 20:44:47 or read the actual documentation Feb 04 20:44:58 or hire someone to do it for you Feb 04 20:45:49 or start with something simpler Feb 04 20:54:31 does anyone know what a VerifyError indicates. I've tried two RSS parsing libraries, and in both I get the same exception Feb 04 20:55:05 invalid RSS feed? Feb 04 20:55:10 check the source I guess Feb 04 20:55:12 no, before i even pass that Feb 04 20:55:16 when i do Builder parser = new Builder(); Feb 04 20:55:22 i haven't even passed a URL yet Feb 04 20:55:43 http://paste.ifies.org/318 Feb 04 20:55:56 .class files that won't work on android? Feb 04 20:56:38 possibly, what precludes a .class not working? Feb 04 20:57:18 not being dalvik? Feb 04 20:57:53 android doesn't support all standard java classes (ie awt) Feb 04 20:57:59 well i've used another 3rd party library that worked fine (OAuth) Feb 04 20:58:10 hrmm Feb 04 20:58:37 looks like i'll just have to write my own SAX parser then :| Feb 04 20:58:41 http://code.google.com/android/reference/java/lang/VerifyError.html Feb 04 20:59:06 perhaps if you compile XOM from the sources it will tell you what is missing? Feb 04 21:01:25 android doesn't support xpath Feb 04 21:01:45 http://code.google.com/p/android/issues/detail?id=515 Feb 04 21:01:58 i imagine xom would require that Feb 04 21:02:30 eddie too :| and rome needs JDOM Feb 04 21:06:00 yeay .. rss pages feature almost done for my app Feb 04 21:08:51 next will be catagories Feb 04 21:12:46 vol, sorry for asking, but after the service docs and demos, want to know what's the difference between startig a servce and BIND a service , also what's difference to run a service in my process or external process ? Feb 04 21:13:56 f00bar80: play around and find out. Feb 04 21:14:06 http://code.google.com/android/reference/android/app/Service.html Feb 04 21:14:43 must read: http://code.google.com/android/intro/appmodel.html Feb 04 21:15:20 I'm having a problem with two activities with (action MAIN, category LAUNCHER). Both the activities get their icons and correct name in the app launcher thingie in Home but both of them launch the same Activity (the one that is started first after install. eg I I start A first, then clicking on B starts also A, if I start B first, then clicking on A starts B) Feb 04 21:16:29 romainguy answered to someone in some mailinglist that this should be possible.. so I guess I'm doing something wrong here Feb 04 21:16:41 well that's wierd. Feb 04 21:19:31 "Yes :) Just put two activities in your manifest, both with the LAUNCHER category." was his response :/ Feb 04 21:20:09 that's what I'm doing IMO :P Feb 04 21:20:26 and it's not working as it should :/ Feb 04 21:22:41 romainguy, you are not around by any chance? Feb 04 21:35:11 <_avatar> digitalspaghetti: have you looked into using the XmlPullParser apis? http://code.google.com/android/reference/org/xmlpull/v1/XmlPullParser.html Feb 04 21:41:33 can you tell if a PendingIntent is currently scheduled with the AlarmManager? Feb 04 21:42:06 tauno: are you specifying any launch flags on those activities? Feb 04 21:45:12 tauno: this is a dumb question, but they don't have the same activity specified, do they? Feb 04 21:45:51 double check in the actual XML Feb 04 21:56:32 _avatar: i'm gonna stuck with a sax parser Feb 04 22:01:07 <_avatar> :) Feb 04 22:02:29 vol, no (they both start the same activity that you start first so they are both either activity A or activity B) Feb 04 22:02:32 zhobbs, no Feb 04 22:13:51 http://pastebin.com/d30e44f52 Feb 04 22:14:06 I'm doing something completely wrong? Feb 04 22:27:14 yawn Feb 04 22:27:16 hey _avatar Feb 04 22:33:28 <_avatar> hey jasta Feb 04 22:33:59 <_avatar> how goes? Feb 04 22:45:46 finally got XML parsing into a ListAdapter working, YAY! Feb 04 22:46:00 definetly going to have to write a tutorial on this Feb 04 23:12:16 digitalspaghetti: i just did that on monday :P Feb 04 23:16:35 well, i think i've managed to create a nice little library for it Feb 04 23:16:58 i'll probably stick it up on learning android at the weekend Feb 04 23:17:11 coolies Feb 04 23:17:17 mine is for RSS, yours? Feb 04 23:19:44 podcast RSS Feb 04 23:19:44 coolies Feb 04 23:19:45 so far tonight i've managed to get the feed and the list adapter working, plus streaming the MP3 Feb 04 23:19:52 although no media controls yet, so you can't stop it :) Feb 04 23:22:01 ugh i hate java Feb 04 23:22:08 how do you make a structure table? Feb 04 23:22:13 or what is the equivalent Feb 04 23:22:44 in XML? Feb 04 23:22:59 in java Feb 04 23:23:09 i want a lookup table of values Feb 04 23:23:18 that i can index through to populate a list Feb 04 23:23:23 ahh, not a TableView :) Feb 04 23:23:40 like a Map ? Feb 04 23:23:47 maybe? Feb 04 23:24:13 Map is basically a Key => Value type Feb 04 23:24:20 hmm that could do it Feb 04 23:24:42 Hi all, Feb 04 23:24:42 can we register for android.intent.action.BATTERY_CHANGED in the AndroidManifest.xml ? Feb 04 23:24:58 u mean permissions? Feb 04 23:25:08 (From Java it works) but we want our app to do sth even if it is not yet started. Feb 04 23:25:27 DJTachyon: me? Feb 04 23:25:32 nevermind .. Feb 04 23:25:48 plusminus_: err, read the docs on it. Feb 04 23:25:56 it explicitly says that you cannot register for it in your manifest. Feb 04 23:26:40 * plusminus_ *blind* Feb 04 23:26:53 http://code.google.com/android/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED Feb 04 23:27:05 just saw it Feb 04 23:27:11 :) Feb 04 23:27:34 we want to detect when the device is charged so... any idea? Feb 04 23:28:22 "charged" is a very difficult state to detect, and quite imprecise. what larger behavior are you trying to accomplish? Feb 04 23:28:43 is the music player open source? I'd like to see how when an activity is closed thats streaming an MP3, you put it to the notification bar and keep playing Feb 04 23:28:59 the whole OS is man Feb 04 23:29:05 if you want to download it Feb 04 23:29:06 :P Feb 04 23:29:08 yup, it's there Feb 04 23:29:12 digitalspaghetti: the playback is done from a high-priority service Feb 04 23:29:27 jbq: what makes it high-priority? Feb 04 23:29:29 background work === services Feb 04 23:29:39 high_priority=1 Feb 04 23:29:48 ctate: We want to make a pretty simple app that shows a clock when the charged is connected Feb 04 23:30:00 zhobbs: I forgot - there's a way to say that the user would notice the service disappearing, so that the system tries to keep this service alive more than the others. Feb 04 23:30:16 plusminus_: just register for the broadcast when you're run, then Feb 04 23:30:23 jbq: hmm, I need that Feb 04 23:30:24 yea, but i haven;t done anything with it yet, so i'm not familiar with that part of the code Feb 04 23:30:37 I think that's the media player code: http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=summary Feb 04 23:30:47 but the app needs to be runned at least once before that, right? Feb 04 23:30:59 plusminus_: it needs to be *currently running* to get that broadcast. Feb 04 23:31:08 plusminus_: where would you show the clock? Feb 04 23:31:23 why not :) Feb 04 23:31:32 just a kind of big letter NightClock Feb 04 23:31:38 [i mean, there's already a clock in the status bar, and there's a battery-connected icon there... :) ] Feb 04 23:32:00 which you probably cannot read when you just woke up ;) Feb 04 23:32:28 registering for broadcasts in your manifest is a mechanism for causing your code to be launched when the broadcast happens Feb 04 23:32:32 even if it's not already running Feb 04 23:32:40 thats what we want Feb 04 23:32:46 start the app when the charger gets in Feb 04 23:32:52 battery_changed happens all the freaking time Feb 04 23:32:56 in eclipse how to shift indent left? Feb 04 23:32:58 hm ... Feb 04 23:32:59 it's not just the plug state Feb 04 23:33:05 it's also the charge level,w hich changes constantly Feb 04 23:33:14 hm :/ Feb 04 23:33:15 someone contributed a patch in master for that exact purpose. Feb 04 23:33:21 another Intent that might fit ? Feb 04 23:33:31 jbq: to divorce plug state from charge level? Feb 04 23:33:38 ctate: I think so. Feb 04 23:33:40 aha Feb 04 23:33:45 I'd have to go dig, because it was a long time ago. Feb 04 23:34:09 i think we might have decided to do that at one point but couldn't because of time constrants at the time Feb 04 23:34:22 i'd have to go back and look :) Feb 04 23:34:26 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=commit;h=fda6fae156e31a287e3cfbf66e51ea1405cdf479 Feb 04 23:34:57 (just for kicks, check the date on that patch) Feb 04 23:35:50 ah yeah, i reviewed this :) Feb 04 23:36:08 and rejected it originally until we'd hashed it out & told him to put in documentaiton etc Feb 04 23:36:09 but yay Feb 04 23:36:47 plusminus_: so, um, what you want will be in a future release? ;) Feb 04 23:37:34 thanks for the Map<> pointer man Feb 04 23:38:58 Map<> is an interface; see HashMap<> etc for concrete implementations Feb 04 23:39:12 (if you look at the sources you'll see that Android uses HashMap a lot) Feb 04 23:39:24 yeah i know .. i remember using it ages ago in college Feb 04 23:39:29 alternatively, SparseArray is good too :)) Feb 04 23:39:31 but Map actually is a good fit Feb 04 23:39:39 i need a String to Integer lookup table Feb 04 23:40:55 that'd be hashing, then :) Feb 04 23:41:04 yeah yeah Feb 04 23:41:10 gets the job done Feb 04 23:41:15 i hate java Feb 04 23:41:16 :P Feb 04 23:41:28 give me an array of structures any day Feb 04 23:41:45 how would an array of structures replace an HashMap? Feb 04 23:41:59 because i just need a simple lookup table Feb 04 23:42:24 with each structure having a char array and integer, and an array of 30 of those Feb 04 23:42:37 you could do it that way in Java Feb 04 23:42:41 oh? Feb 04 23:42:43 but a Hashmap will be much more efficient Feb 04 23:42:53 well in java it may be ... Feb 04 23:42:53 :P Feb 04 23:42:56 (with classes instead of struct but whatever...) Feb 04 23:43:13 yeah i have been removed from the OO world for about 6 years now Feb 04 23:43:17 it has nothing to do with it being Java or not Feb 04 23:43:31 it's linear search vs smart hash-based search Feb 04 23:43:55 so you are saying the compiled machine code for the java hash map is faster than the compiled machine code for a structure array in C? Feb 04 23:44:07 no Feb 04 23:44:26 oh, well thats what i meant, im sure its faster to use a hashmap in java Feb 04 23:44:33 i'm just not as familiar with it anymore Feb 04 23:44:45 it might not be true either :)) Feb 04 23:44:50 could be Feb 04 23:44:56 who knows :0 Feb 04 23:45:13 * DJTachyon is to lazy to care because a Map/Hashmap seems to get done what i need Feb 04 23:45:27 im already ready to pull my first app Feb 04 23:45:41 and start a new one, it hasn't even been 24 hours :p Feb 04 23:46:05 well by start a new one, i mean morph it into a different app Feb 04 23:46:22 SMS... Tetris! Feb 04 23:46:50 using Maps, so the tiles are dropping continents or something Feb 04 23:47:12 so what do i use if i want the struct to contain more than just an integer, how about another string? Feb 04 23:47:48 class MyType { public int theInt; public String theString; } Feb 04 23:47:53 then it's a HashMap Feb 04 23:48:11 with suitable support for mapping the keys to the structs in question, etc. Feb 04 23:48:14 ohhhh .. bells are ringing Feb 04 23:48:16 :P Feb 04 23:49:00 man ask me to write my own low level operating system and realtime task scheduler in C and I'm fine, but some high level language and im lost :0 Feb 04 23:50:44 like so? Feb 04 23:50:45 class Product { public int Id; public String Name; } Feb 04 23:50:45 private HashMap productID = new HashMap(); Feb 04 23:51:21 actually thats not what i want Feb 04 23:51:43 thanks guys tho :) Feb 04 23:52:16 so how to put into that hashmap with the class in there Feb 04 23:53:42 i forget what method(s) you have to define on the class that you want to put in the map in order for it to work Feb 04 23:53:46 it's not a lot Feb 04 23:55:03 actually, i think by default you don't need to at all, unless you want to pretend that different objects with certain similar characteristics are in fact "the same" Feb 05 01:10:13 Hi guys... Feb 05 01:26:31 I've used a Matrix to scale a Bitmap down and it looks a little rough. How would you do smooth scaling? Feb 05 01:27:32 ideal filtering depends a bit on the characteristics of the scaling you're doing Feb 05 01:27:41 e.g. whether to use bilinear or trilinear filtering, etc. Feb 05 01:27:44 TiberiumX: how to you do the scaling Feb 05 01:27:49 ctate: we have only bilinear Feb 05 01:28:08 romainguy: fair enough; he didn't specify he wasn't using his own filters :) Feb 05 01:51:13 can a app listen for its own ACTION_PACKAGE_CHANGED intent? i want a service to restart if it is reinstalled or updated Feb 05 02:08:15 morganx: are you certain that it isn't automatically restarted in that case? Feb 05 02:08:51 (it might also be unable to update live; that's another possibility. i'm not very aware of the package manager guts.) Feb 05 02:09:40 it does look like it's a general broadcast that anyone can register for Feb 05 02:11:40 hmm. last post here suggest it worked a year ago: http://groups.google.com/group/android-developers/browse_thread/thread/697e7e7cc6dd3d1f/fdcf520cce83cf0b?lnk=gst&q=action*package#fdcf520cce83cf0b Feb 05 02:11:59 but hackbod mentions it might be removed Feb 05 02:14:57 oh, removed as of SDK 0.9 Feb 05 02:17:17 hmm, i guess i could create a second package that watches for reinstalls of the first package. Feb 05 02:17:18 shudder Feb 05 02:27:00 "i want a service to restart if it is reinstalled or updated << you can't see if a packaged is reinstalled or updated Feb 05 02:27:04 cupcake will have such an API Feb 05 02:27:19 (that's why Home doesn't remove shortcuts of uninstalled apps btw, because it might be a reinstall/update) Feb 05 02:28:21 cool. thanks for the info. Feb 05 02:42:49 romainguy: Sorry, ran off for dinner. I'm doing this: matrix.postScale(scaleWidth, scaleHeight); Bitmap.createBitmap(image, 0, 0, image.getWidth(), image.getHeight(), matrix, true); Feb 05 02:43:17 Is there a bilinear filter? Feb 05 02:45:08 that's what "true" does Feb 05 02:45:31 you could simply use Bitmap.createScaledBitmap() btw Feb 05 02:47:10 Ahh, damn, didn't notice that one. Some good you are random internet forum that came up in a search. **** ENDING LOGGING AT Thu Feb 05 02:59:58 2009