i am trying to develop a simple application where i want to send an image from gallery to server.
i am facing problem in creating sd card into the emulator(version 2.1). it says no media found...
please let me know the steps for creating sdcard and pushing image to the sdcard.
When you create a new virtual device from eclipse, at that time there is an option to specify the size of sd card, and if you specify that it creates the sd card.
Once the emulator starts, open command prompt and enter the following command. for e.g
c:\>adb shell
it opens the shell interface and promp changes to
#
not type ls, it will show the directory contents, and should show sdcard.
not type
#cd sdcard
the directory gets changed to sdcard
now type the following command
#mkdir nameofthedirectory/folder you wish to create
I hope this helps.
Suzzane Pinto
Ranch Hand
Joined: Feb 10, 2012
Posts: 204
posted
0
yes i did that using DDMS perspective where i selected the emulator and did push operation..
now i am facing problem with with the transfer code after picking from gallery..
i have to transfer my image to server following is the code in andriod my main activity..please let me know