01/14/2008

Two more issues: sdcard and sound

There are a couple of things to do.
o Touchscreen is unstable.
o Keyboard driver is required. Still some keys can't be typed in, such as slash(/).

Adding to these I found more recently.
o Sound. No sound yet.
o SD Card

I tried this sample applet MusicDroid - Audio Player Part I | Hello Android a few days ago and found Android applets can't access to /sdcard.

I went back to the Android SDK emulator and booted it up with SD Card support.
$ ./mksdcard 16M sd.img
$ ./emulator -sdcard sd.img &
$ ./adb shell ls /sdcard
drwxrwxrwx root root 2008-01-11 07:02 android
drwxrwxrwx root root 2008-01-11 08:33 download

# ./adb shell ls /sdcard/android/
-rwxrwxrwx root root 17408 2008-01-14 06:54 media.db

$ ./adb shell
# cd /sdcard/android
# sqlite3 media.db
sqlite> .tables
albums audio_genres_map images
artists audio_meta thumbnails
audio audio_playlists video
audio_genres audio_playlists_map
Then tried on my Android Zaurus and get exactly the same results. So the Android system knows how to access /sdcard. But applets don't. It's really weird.

Second new issue is sound. I never heard any sound from my Android Zaurus. Today I tried this movie player applet Android - Video/Music player sample with a quick hack. Because I can't type some characters on my Zaurus, I set default URI in the source code.
    mPath.setText("http://daily3gp.com/vids/747.3gp");
After building apk, I copied to to my Android Zaurus.

vplay1.png      vplay2.png

It worked but no sound. Well, bright side is 3GP decoding works efficiently enough on Zaurus 400MHz XScale.

A lot things to do.
posted by 安藤恐竜 at 16:24 | Comment(4) | TrackBack(0) | 日記
Comments for this entry
SDカードの件ですが、ファイルシステムがFAT16でフォーマットされているということは無いですか?
AndroidはFAT32をサポートと書いていたので気になりました。

あと、ご存知かもしれませんが、エミュレータを起動する時「-console」というオプションを付けると、エミュレータの起動後にshellに入れます。
ちょっと手間が省けて便利です。
Posted by adamrocker at 01/15/2008 00:57
えっ?そうなんですか?1GBのカード使ってるので、FAT32だと思いますが。ちょっと確認してみます。

エミュレータのconsoleオプションは知りませんでした。ありがとうございます。

それにしても、あのshell。ヒストリもないし、タブ補完もないし。toolboxってbusyboxのカスタマイズ版だと思うのですが、ソースがないのでいぢれないし。
Posted by 安藤恐竜 at 01/15/2008 08:10
whew, there's lotta thing gotta know. i want to learn. advice ?
Posted by ruckuus at 01/29/2008 12:19
Hello AZ,

Did you manage to get the sound issue fixed ? Seems the same thing is happening on my ARM9 device. I can view the 3gp video but cant hear any sound. I have added ALSA support in the kernel and my sound hardware driver is ALSA compatible.

Any idea what is happening ? Is android using a different sound interface ?

Thanks
Joey
Posted by Joey at 02/01/2008 17:30
Leave your comment
Name: [Must]

EMail: [Must]

URL: [Must]

Comment: [Must]

Confirmation Code: [Must]


Type in alphabets what you see in this image.

Trackbacks to this entry
×

この広告は1年以上新しい記事の投稿がないブログに表示されております。