-3

Possible Duplicate:
How to get URI from an asset File?

i have a image in my assets folder bill.png how do i give url of that file? how to access that file by url?

what do i do? give url of file indtead of http url

 GeoPoint point2 = new GeoPoint((int)(51.515259*1E6),(int)(-0.086623*1E6));
    CustomOverlayItem overlayItem2 = new CustomOverlayItem(point2, "GoldenEye  
 (1995)", 
            "(Interiors Russian defence ministry council chambers in  
 St Petersburg)", 
            "http://ia.media-imdb.com/images 

  BMzk2OTg4MTk1NF5BMl5BanBnXkFtZTcwNjExNTgzNA@@._V1._SX40_CR0,0,40,54_.jpg");       
    itemizedOverlay.addOverlay(overlayItem2);

    mapOverlays.add(itemizedOverlay);
Community
  • 1
  • 1
Hayya ANAM
  • 575
  • 2
  • 14
  • 38

1 Answers1

0

see this link. there is a assets properties. getBitmapFromAsset(). you can get image and set in imageview.

In Android, can I use image from assets in layout xml?

Community
  • 1
  • 1
Chintan Khetiya
  • 15,962
  • 9
  • 47
  • 85