[android-beginners] Re: How to I get video to play from storage?

2008-12-19 Thread hc huang
line option in the emulator. > > With the SD card image mounted, you need to push the data file to your > SD card image like this: > > adb push /home/huang/sdcard/onelove.mp3 /sdcard > > which copies the file to /sdcard/onelove.mp3. Now you can pass the > path to the media p

[android-beginners] Re: How to I get video to play from storage?

2008-12-17 Thread hc huang
Hi Girish I want to a audio.I go to this position /development/samples/ApiDemos/src/com/example/android/apis/media/ Edit MediaPlayerDemo_Audio.java path="/home/huang/sdcard/onelove.mp3" then save and re-install,but when I go to apidemos ->media- >mediaplayer -> play audio from local fi

[android-beginners] Fail to create SD card

2008-12-16 Thread hc huang
I used this following comand to create sdcard: mksdcard 256M /sdcard/sd.img. When i create the sd card at first time,It worked OK! I wanted to try again,then I deleted the sdcard image I have created. When I try to create sdcard at second time,It's not OK!It's wrong. It gives the following informat

[android-beginners] Re: installation error:INSTALL_FAILED_INSUFFICIENT question

2008-12-08 Thread hc huang
Now I know the reason Why the emulator will give this tip:Installation error:INSTALL_FAILED_INSUFFICIENT_STORAGE,because of so many External resources I import into my project.So I delete several songs in my project,then It's OK! On Fri, Dec 5, 2008 at 6:08 PM, hc huang <[EMAIL PROTECTED

[android-beginners] Re: position UI components

2008-12-07 Thread hc huang
As we know that there is a lot of attributes in XML,How Can I master them in Android? Thanks! On Mon, Dec 8, 2008 at 6:30 AM, Mark Murphy <[EMAIL PROTECTED]> wrote: > > jj wrote: > > is there a way of placing UI components (EditText, Button, etc..) in a > > specific place of the screen? > > (apar

[android-beginners] installation error:INSTALL_FAILED_INSUFFICIENT question

2008-12-05 Thread hc huang
when I run a program,the emulator gives the following tips: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE The document of SDK said the "if the package manager service found that the device didn't have enough storage space to install the app ", I don't know why.First time when I run this a