0

i wanna display image saved on the D://foldername//foldername//filename from my computer on the android emulator using eclipse and also how to display it from a server? as i am accessing the data from the server and also the images are saved on the server

omnia Mm
  • 157
  • 5
  • 16

1 Answers1

1

Unless you're running a web server which provides public access to the image, I don't think you can display an image from your computer using a path like that. You either need to include the image in the assets or res/drawable folders within the app, or have the image accessible through a web server which you can load from within the app using the method described in this question.

Community
  • 1
  • 1
Closeratio
  • 615
  • 2
  • 6
  • 13
  • i already have web service to get the data from the DB on server – omnia Mm Aug 22 '12 at 09:12
  • 1
    You should be able to display it either using the link I mentioned in my answer or, if you want to use the `ImageView` widget, by using the method described in [this question](http://stackoverflow.com/questions/2471935/how-to-load-an-imageview-by-url-in-android). – Closeratio Aug 22 '12 at 09:17
  • Thanks a lot for your help and sorry for the dummy question , i am brand new in android :) – omnia Mm Aug 22 '12 at 11:47
  • No problem, Android is pretty complicated at first :) Glad I could help. – Closeratio Aug 22 '12 at 11:59