**** BEGIN LOGGING AT Tue Sep 09 02:59:57 2008 Sep 09 03:05:34 is the itemized Overlay meant to 'produce' only items of the same appereance? Sep 09 03:18:44 oyyo Sep 09 03:38:08 ? Sep 09 05:17:52 friendly ghost sounds like a bollywood tone Sep 09 10:56:47 http://gigaom.com/2008/09/02/why-did-google-abandon-firefox/ Sep 09 14:12:06 anyone know anything about the media scanner? Sep 09 14:12:17 not sure how to use it Sep 09 14:16:45 zhobbs: what are you trying to do? Sep 09 14:17:19 force it to rescan the sdcard and select from it Sep 09 14:17:33 I'm not familiar with using content providers, so I guess I need to start there Sep 09 14:17:59 The media scanner runs automatically to keep the media content provider database up to date. Sep 09 14:18:30 The only time you need to worry about it is if you download or create a new file on the SD card. Then you need to tell the media scanner to scan the new file. Sep 09 14:18:30 yeah, in dev tools there is a way to force it to rescan...would like to have that option in my app also Sep 09 14:19:52 If you want it to scan a single file, you can broadcast a ACTION_MEDIA_SCANNER_SCAN_FILE intent and pass the path to the file in the Intent.mData field Sep 09 14:20:18 There is also a MediaScannerConnection class that can be used if you need to know when the scanning is done and get a Uri for the new file in the database. Sep 09 14:22:28 The DevTools Media Scanner app sends a ACTION_MEDIA_MOUNTED to fool the Media Scanner into thinking that the SD card had just been inserted. But that was put in just to help testing - not something that an app should do. Sep 09 14:22:59 yeah, I guess on the handset you usually don't "adb push" media to the device Sep 09 14:23:21 though, you may mount it as a mass storage device and copy files to sdcard Sep 09 14:23:45 thanks for the info mikez5 Sep 09 14:24:09 The media scanner runs after you use mass storage. But it has no way of knowing if you adb pushed something to the phone. Sep 09 14:24:25 cool Sep 09 14:24:35 you work for google? Sep 09 14:24:50 Yes. Actually I worked on the media scanner :-) Sep 09 14:24:59 ahh, great! Sep 09 14:25:44 thanks for the help...I guess I have to break down and learn how to use a content provider now...I've been resisting Sep 09 14:26:33 Yes, there is no way around using the content provider. But basically it is just a simple database API with query, insert, update and delete operations. Sep 09 14:52:26 mikez5: is there an intent broadcasted when the media scanner detects a change? Sep 09 14:57:21 I guess ACTION_MEDIA_SCANNER_FINISHED, but that's called whether there is a change or not Sep 09 15:00:02 No, there isn't. Sep 09 15:00:42 But there is a way to register to be notified via the content provider when the database changes, which might be what you want. Sep 09 15:01:26 ahh, ok Sep 09 16:05:52 if I'm doing time consuming work in a BroadcastReceiver do I need to do it in a separate thread? Sep 09 16:06:49 (asking again now that romainguy_ showed up) if I'm doing time consuming work in a BroadcastReceiver do I need to do it in a separate thread? Sep 09 16:07:14 yes Sep 09 16:07:26 thanks Sep 09 16:36:57 mikez5: sorry to bug you, but do I need any permissions for MEDIA_SCANNER_FINISHED? I can't seem to receive it for some reason Sep 09 16:37:07 mikez5: http://android.pastebin.com/d69f92be0 <-- that's what I'm doing Sep 09 17:10:46 zhobbs: you shouldn't need any permission for receiving MEDIA_SCANNER_FINISHED Sep 09 17:11:02 Also, you don't need to put anything in your AndroidManifest.xml Sep 09 17:11:53 Try something like this: Sep 09 17:11:57 IntentFilter filter = new IntentFilter(); Sep 09 17:11:57 filter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); Sep 09 17:11:57 filter.addDataScheme("file"); Sep 09 17:11:57 registerReceiver(myListener, filter); Sep 09 17:12:16 where myListener is a subclass of BroadcastReceiver Sep 09 17:15:02 mikez5: I was hoping to receive it even when my app wasn't running also, that's why I was putting it in the manifest Sep 09 17:16:52 but guess I really only need to when my app is running Sep 09 19:15:47 tmrw.... Sep 09 20:24:30 how can I tell (in code) if I'm in landscape portrait? also, how can I force landscape or portrait? Sep 09 20:31:37 I know how to get the orientation, wait a moment... Sep 09 20:32:10 http://www.anddev.org/rotate_screen_from_code_change_screen_orientation-t2687.html Sep 09 20:32:14 I think I checked it... Sep 09 20:32:47 or check if width > height Sep 09 20:32:50 ;P Sep 09 20:32:55 hehe, that'll work Sep 09 20:33:03 thanks for the link Sep 09 20:34:05 there will probably be a guy contacting you soon, if you need an Android-Job... Sep 09 20:34:16 automation (light, windows, etc...) Sep 09 20:34:33 neat Sep 09 20:34:44 I already have an android job though, thanks for the reference Sep 09 20:34:45 Unfortunately I have only 1 brain and 2 hands... Sep 09 20:34:51 ^^ Sep 09 20:34:54 I know what you mean Sep 09 20:35:45 hello Sep 09 20:35:53 I had to reject 3 job-offers this week... Sep 09 20:36:05 all not sounding too bad. Sep 09 20:36:23 when do you graduate? Sep 09 20:41:00 5th semester, so its still some more to come ;) Sep 09 20:41:20 bachelor --> master --> Dr./PhD (we will see) Sep 09 20:41:34 hehe, well you have a long time to go then Sep 09 20:41:46 hi guys Sep 09 20:41:49 maybe I'm goign independant, we will see Sep 09 20:41:55 kingkung: hi Sep 09 20:42:04 i have a very simple question Sep 09 20:42:17 i know the answer Sep 09 20:42:29 SubWay Subs are $4 today ! Sep 09 20:42:37 ;) Sep 09 20:42:41 i just want to create a small navigation bar with icons Sep 09 20:42:44 are they?? Sep 09 20:42:45 nice Sep 09 20:42:51 i would've gone Sep 09 20:42:53 at least in CollegePark, MD Sep 09 20:43:00 ah, very nice Sep 09 20:43:19 plusminus_: thought you were in germany? Sep 09 20:43:22 so, u know, three images Sep 09 20:43:38 you can scroll through each of them Sep 09 20:43:54 zhobbs: internship Sep 09 20:43:54 to select the icon you want, and that icon will perform an action if clicked/selected Sep 09 20:44:00 ahh Sep 09 20:44:32 i wonder if i should just use a horiz linear layout for that Sep 09 20:44:43 kingkung: maybe take a look at gallery in api demos Sep 09 20:44:49 i'm using a gallery right now, but i don't want it to scroll, just want the icons to remain stationary Sep 09 20:45:01 otherwise it would work well Sep 09 20:45:04 then just use 3 imagebuttons in a linlayout Sep 09 20:45:29 yeah, i don't want the button frame, etc. though Sep 09 20:45:38 just want the icon Sep 09 20:45:45 just create a theme for the image buttons Sep 09 20:45:45 may just use 3 imageviews in a lin layout Sep 09 20:46:02 is there a way to disable the frame on image buttons? Sep 09 20:46:06 for use background="@drawable/empty" they won't have a frame Sep 09 20:46:18 s/for/or Sep 09 20:46:21 g2g, bye Sep 09 20:46:25 plusminus_: cya Sep 09 20:46:53 ah, didn't know that Sep 09 20:46:54 cool Sep 09 20:47:30 there isn't a @drawable/empty by default, and they got rid of android:@drawable/empty Sep 09 20:47:39 oh Sep 09 20:47:42 so you can just drop an empty.png in there Sep 09 20:47:54 1x1 transparent png or something Sep 09 20:48:05 oh Sep 09 20:48:16 wth, that is kind of ridiculous Sep 09 20:48:23 why would they take away empty Sep 09 20:48:35 maybe the renamed it, dunno Sep 09 20:49:07 ty for the tip tho Sep 09 20:49:56 and do u know if they have anything to replace android.R.drawable.box (a frame around the focused object)? Sep 09 20:50:02 they took that away in 0.9 Sep 09 20:50:20 don't know Sep 09 20:50:33 ok thx Sep 09 21:48:01 zhobbs: so you can just drop an empty.png in there Sep 09 21:48:06 no it wasn't taken away Sep 09 21:48:14 @drawable:color/empty Sep 09 22:05:55 any guess, why a path drawn on an overlay should be magically gone since 0.9 ? Sep 09 22:07:25 maybe because of having requested FEATURE_OPENGL ? Sep 09 22:09:51 yes Sep 09 22:09:57 paths are not supported in opengl Sep 09 22:10:04 besides, the opengl feature is gone from 1.0 Sep 09 22:10:06 never ever ? Sep 09 22:10:19 ah ok, y will it be gone? Sep 09 22:10:32 they're not because OpenGL ES 1.0 makes it very very very difficult and inefficient to draw some things (like paths or circular gradients) Sep 09 22:10:36 because it's not ready Sep 09 22:11:26 "not ready" means it might come back? Sep 09 22:11:43 so for now simply not use it Sep 09 22:12:27 it might come back Sep 09 22:12:30 but not in 1.0 Sep 09 22:12:39 and if you keep using this flag, you'll get a compile error in 1.0 Sep 09 22:12:47 kk Sep 09 22:25:19 wtf Sep 09 22:25:22 dropping features Sep 09 22:25:22 ! Sep 09 22:25:42 well yeah Sep 09 22:25:44 i'm glad it was dropped Sep 09 22:25:48 the WINDOW_FEATURE_GL whatever Sep 09 22:25:56 the javadoc sounded VERY inefficient Sep 09 22:26:03 redrawing the whole screen for some ui change? no thanks Sep 09 22:30:26 f00f-: it's not inefficient Sep 09 22:30:32 that's how OpenGL works Sep 09 22:31:16 and because it's hardware accelerated it was faster in many situations Sep 09 22:31:21 (the Home screen for instance) Sep 09 22:37:48 ok Sep 09 23:13:17 hi there Sep 09 23:14:03 Did google write the database.sqlite package themselves? Sep 09 23:17:53 scasi: android.database.sqlite you mean? Sep 09 23:21:12 squeakypants: exactly Sep 09 23:23:57 schasi: anything in the android namespace is by google ;) Sep 09 23:24:45 though i'm guessing android.database.sqlite is just a wrapper for the sqlite software Sep 09 23:25:25 i doubt they completely recoded it to java Sep 09 23:26:23 hmm.... "stereo bluetooth" is software right? Sep 09 23:26:48 like does a phone need to support it, or just android? Sep 09 23:27:20 I'm asking because i want to write some java code using sql and wondered how to test it Sep 09 23:27:51 schasi: what do you mean? Sep 09 23:29:46 to use SQL in android, you need to make a class that extends SQLiteOpenHelper Sep 09 23:30:45 squeakypants: depends on how it's implemented. many times Bluetooth audio is done on-chip in which case it's PCM lines running from the chip to the I/O lines of the CPU itself, but that may be in a driver and not exposed into android's java userspace Sep 09 23:31:03 and override onCreate and onUpgrade to do db.execSQL(###) with the sql for creating or upgrading the tables Sep 09 23:31:28 What does all the @Override mean? Sep 09 23:32:04 schasi: that you're making a method that was already defined in the extended class Sep 09 23:32:10 a non-abstract method, that is Sep 09 23:32:44 in this case don't worry about it, though for the constructor you need to call the super constructor Sep 09 23:33:16 f00f-: hmm, i think that'd be weird since the bluetooth doesn't have limited functionality Sep 09 23:33:32 f00f-: that is, bluetooth is used for other things in android as well Sep 09 23:33:46 well there is no bluetooth, remember :) Sep 09 23:33:57 not for 1.0 Sep 09 23:34:07 f00f-: eh?? i thought they said it'd be in 1.0 Sep 09 23:34:24 they cut it Sep 09 23:34:35 ...how can you use bluetooth headsets then? Sep 09 23:34:44 well you wil be able to Sep 09 23:34:48 there will be some internal api Sep 09 23:34:52 but it wont be exposed to developers Sep 09 23:34:58 oh, right :P Sep 09 23:35:04 so headsets and hopefully basic OBEX will be supported Sep 09 23:35:06 by some custom app Sep 09 23:35:10 that is bundled Sep 09 23:35:21 probably a native app/service Sep 09 23:35:25 yeah that's cool, they're just not exposing the bluetooth api yet Sep 09 23:35:33 yeah Sep 09 23:35:40 oh i'd think it'd be built into the OS Sep 09 23:35:52 they're using the BlueZ stack in the kernel from what i know Sep 09 23:35:59 just the org.bluez.* classes were too premature Sep 09 23:36:03 and didnt support much at al Sep 09 23:36:08 i even filed a bug Sep 09 23:36:10 complaining baout it Sep 09 23:36:10 they'll just take it out of the source code before they release it Sep 09 23:36:16 i'm glad they took most of my issues to consideration Sep 09 23:36:23 really? i heard bluez was pretty good Sep 09 23:36:38 it's all right, just what they exposed wasnt enough :) Sep 09 23:36:45 i see Sep 09 23:36:51 brb Sep 09 23:49:34 yar Sep 10 00:10:24 Why does a fresh project in eclipse (android plugins installed) display Hello, World! when run? Sep 10 00:23:59 because it's a hello world project by default Sep 10 00:24:04 look at your xml Sep 10 00:24:07 layout Sep 10 00:24:42 uh Sep 10 00:25:05 I don't see any Hello World in the xml file. There is something about hello world in the R.java Sep 10 00:25:11 maybe Sep 10 00:28:32 You where right, that is in the layout Sep 10 00:28:33 Thank you Sep 10 00:28:44 you really can read, unlike me ;-) Sep 10 00:30:13 don't give him too much credit now Sep 10 00:30:30 hey did jasta go to ireland or w/e? Sep 10 00:30:38 * yakischloba pokes jasta Sep 10 00:30:43 i think he's in the ire Sep 10 00:30:56 yeah i figured. its been too quiet in here recently Sep 10 00:31:12 but he is listening and reading scrollback i bet :P Sep 10 00:31:16 so play nice Sep 10 00:31:23 yeah of course Sep 10 00:31:52 What do you do with android? Using it for fun, or something else? Sep 10 00:33:40 heh, i feel bad not returning phone calls to car dealers Sep 10 00:33:43 but i guess i shouldn't Sep 10 00:33:46 bleh. I need to pick up my project again one of these days Sep 10 00:33:59 f00f-: car deals don't give a fuck about you Sep 10 00:34:04 s/deals/dealers Sep 10 00:34:11 yeah, so i figure Sep 10 00:34:40 schasi: fun and eventually profit Sep 10 00:36:32 Nice **** ENDING LOGGING AT Wed Sep 10 02:59:57 2008