[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-08 Thread Zsolt Vasvari
> Sunny greetings from Lucerne, > Stephan Nice city, was just there last month. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send e

[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-08 Thread Stephan Wiesner
Thanks, got it :-) Sunny greetings from Lucerne, Stephan On Mar 4, 11:27 pm, Streets Of Boston wrote: > BTW: There is a BitmapFactory.decodeFile(String pathName) as well... you > could skip the second and third step from my post above :-) -- You received this message because you are subscribed

Re: [android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-04 Thread Kostya Vasilyev
Or you could set the image as a URI (using URI.fromFile) and skip BitmapFactory decoding altogether (doesn't work for images in home screen widgets if the file is private, though). 05.03.2011 1:28 пользователь "Streets Of Boston" написал: > BTW: There is a BitmapFactory.decodeFile(String pathName)

[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-04 Thread Streets Of Boston
BTW: There is a BitmapFactory.decodeFile(String pathName) as well... you could skip the second and third step from my post above :-) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@go

[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-04 Thread Streets Of Boston
- Get the full path to your image file on your SD-card: Environment.getExternalStorageDirectory()+directory+filename - Create a file from the above path. - Create a FileInputStream from the above path. - Use the above file input stream in the BitmapFactory.decodeStream(InputStream is) method. Thi

[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-04 Thread Doug
On Mar 3, 10:24 am, Stephan Wiesner wrote: > Thanks for your reply. > Thats exactly what I need, though: The path to the internal storage. I > download the files and can access them using File() of course, but how > do I access them from BitmapFactory?. Probably obvious, if you know > it, but I do

[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-03 Thread Stephan Wiesner
Thanks for your reply. Thats exactly what I need, though: The path to the internal storage. I download the files and can access them using File() of course, but how do I access them from BitmapFactory?. Probably obvious, if you know it, but I don't get it :-( Stephan On Mar 3, 10:45 am, Doug wro

[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-03 Thread Doug
Use BitmapFactory and feed it the path of the file you saved, wherever you saved it. On Mar 2, 2:15 am, Stephan Wiesner wrote: > Hi, > my app displays some pictures I want to replace at certain intervals by > downloading them from a webpage. > I can set the image from my drawable folder, assets f