[android-developers] Uri for a Drawable image

2008-11-30 Thread g1ster
I'm trying to set the album_art for an audio file. It requires the Uri to the image: MediaStore.Audio.Media.ALBUM_ART. How to obtain the Uri of a image in the Drable resource? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[android-developers] Clean install adn uninstall?

2008-11-19 Thread g1ster
My application stores audio clips in \sdcard\ external directory. When install and uninstall (especially uninstall), what is recommended for initializing and removing of the file upon onInstall and onUninstall events. Are there event interceptors available. --~--~-~--~~~---

[android-developers] Re: limitation on ExpandableListView

2008-11-19 Thread g1ster
No comments?! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PR

[android-developers] Re: OnItemLongClickListener!?

2008-11-16 Thread g1ster
I made it to work - operator error! Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] limitation on ExpandableListView

2008-11-15 Thread g1ster
It seems one can only set one group indicator for the ExpanableListView. Shouldn't there be at least 3 of them?: 1. groupindicator when there is no child 2. groupindicator when the item is collapsed, and has children 3. groupindicator when the item is expanded Any Android coders who can commen

[android-developers] OnItemLongClickListener!?

2008-11-15 Thread g1ster
Anyone has a working example for "OnItemLongClickListener" on a listview? I have a simple ArrayAdapter listview, but could not get the OnItemLongClickListener to work. Thanks!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: MediaRecorder on G1

2008-11-13 Thread g1ster
cirion/ste, follow Grigory's hints, it now works on both the SDK emulator and my g1 phone. I haven't recorded any sound on the emulator (no mike), but the audio file was created as expected. --~--~-~--~~~---~--~~ You received this message because you are subscribe

[android-developers] Store audio in SQLite?

2008-11-11 Thread g1ster
Does SQLite support mime type storage like an audio stream? What would be the column type? Any example SQL syntax reference would help. I know it is recommended to store those as files in external devices, but want to explore direct database storage option. Thanks!!! --~--~-~--~~

[android-developers] Database storage

2008-11-11 Thread g1ster
Is there a way to store a SQLite database instance to an external storage like a SD card? My database is growing and don't want it to take up all the internal storage. Thanks!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[android-developers] Re: MediaRecorder on G1

2008-11-10 Thread g1ster
Cool!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECT

[android-developers] Re: MediaRecorder on G1

2008-11-09 Thread g1ster
Toke awhile to get the sdcard mounted. Once that was done, all seem to working as programmed! Thanks Grigory!!! One more questions: what do you use to view the content in the .iso image (sdcard)? --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-developers] Re: MediaRecorder on G1

2008-11-08 Thread g1ster
Thanks Grigory. I turned on logcat, it showed I entered into an infinite loop repeating: >> D/AudioHardware( 24): AudioStreamInGeneric::read(0x403082a0, 320) from fd 7 >> D/AudioHardware( 24): AudioStreamInGeneric::read(0x403083e0, 320) from fd 7 Know how to interpret it? I use the mPat

[android-developers] MediaRecorder on G1

2008-11-08 Thread g1ster
I had trouble get the MediaRecorder to work on g1 (actually with the emulator as well). I have the following samle code: MediaRecorder mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat

[android-developers] !

2008-11-07 Thread g1ster
I had trouble get the MediaRecorder to work on g1 (actually with the emulator as well). I have the following samle code: MediaRecorder mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-28 Thread g1ster
Thanks Romain! After issuing setFocusableInTouchMode(true), it worked perfectly! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@goog

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-28 Thread g1ster
Guys, I still don't understand how the trackball wakes up the programs after a restart. I have re-mapped ALL the key events, for example: KEYCODE_DPAD_UP to KEYCODE_I (because I dont want to use the DPAD or the trackball). But I still need to first hit the track ball before I could use the new key

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-27 Thread g1ster
It turns out Mark Murphy and Hackbod were right all along. I retested the app on my g1 device. All I had to do was to roll the trackball up first. I could then use my reassigned keys to work the programs. This worked for both the Lunar and the Snake programs!!! I search the code, and couldn't fin

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-27 Thread g1ster
Hackbod, not sure if you're right. Here is what I did with Snake. I edited the code to use "Keycode_I", "Keycode_K", "Keycode_J", "Keycode_L" to replace up, down, left and right keys. I tested these keys when the app is first loaded by running from Eclipse, it worked fine. After I closed the app a

[android-developers] Andriod SDK sample apps not working correctly?

2008-10-27 Thread g1ster
Neither the lunar app or the snake app came seems to work right on the emulator came with the SDK. After loading up the app with run/debug option from Eclipse, close the application on emulator by pressing the "Home" icon. Launch the app from the emulator app list. It no longer respond to the keyd

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-27 Thread g1ster
No luck, yet, but a bit more info. Actually, neither the lunar app or the snake app works right on the emulator came with the SDK. After loading up the app with run/debug option, close the application on emulator by pressing the "Home" icon. Launch the app from the emulator app list. It no longer

[android-developers] load and test apps on a g1 device

2008-10-27 Thread g1ster
I've been testing my apps on Android provided emulators on Eclipse in Vista. Just got a g1 phone. Plugged it in my computer. But it doesn't show up on the emulator list - it is not an emulator I guess! Question: How to test my apps directly on the g1 device? Thanks! --~--~-~--~~

[android-developers] g1 keyboard missing up/down/left/right keys?

2008-10-27 Thread g1ster
I set up my g1 phone to test the Snake sample came with the Android SDK. The application requires up/down/left/right keys, but they not available on the g1 keyboard - did I miss it? I changed the code to use I, K, J, L keys instead. It works when I have the device connect to to the computer with