Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • You could simply replace the Uri parameter with your filename String. That code works with BitmapFactory.decodeFile too. Commented Dec 7, 2013 at 13:23
  • @zapl please show me the way Commented Dec 7, 2013 at 13:25
  • santhosh's answer is doing roughly that already. Try it. StackOverflow expects that you have a basic understanding of programming and that you are able to do it yourself. Commented Dec 7, 2013 at 13:28
  • @zapl oh sorry that time i have not seen santosh's answer Commented Dec 7, 2013 at 13:39
  • if you can use the code snippet given in santhosh's answer i believe your problem should have been resolved. Nevertheless here developer.android.com/training/displaying-bitmaps/… is a more detailed version of how you should use those code snippet. Commented Dec 7, 2013 at 13:43