I am capturing image from camera and saving it to applications private area(not on sdcard).
I want to display those images using Bitmap class.
I know we can do this using InputStream but InputStream is an abstract class.Can we pass BufferedInputStream while calling the function decodeStream().
If you know how to read image from applications private area(not from drawable folder) and displaying it .
Please help me.
As already pointed out in one of the other threads, you will have to use standard Java I/O for this. Reading/Writing from/to files is not any different on Android.
Anyways, here is what you can do:
1. Create an abstraction for the file in your application. (Use java.io.File)
2. Open this file in FileInputStream(use appropriate constructor of java.io.FileInputStream)
3. Pass this FileInputStream object to BitmapFactory.decodeStream(FileInputStream); to create a Bitmap.