• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to create sdcard and mount on the emulator

 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello friends,


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.
 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Swastik Dey
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See screen snaps.
new_avd.JPG
[Thumbnail for new_avd.JPG]
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ya i got it....but how to see whethr sdcard is created or not and how to create a directory in the sdcard and save the image into it.
please help...



thankyou
 
Swastik Dey
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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




unable to understand the error
 
Swastik Dey
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The following should show you the actual path of the image selected. Your next should be to read the file contents and send to server.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic