1

Image From sd card to galleryview

view story
linux-howto

http://stackoverflow.com – In my app i want to get the Images from SD card to a specific position and i need to display in gallery, The code i used is attaching private Gallery gallery; private ImageView imgView; int position; private byte[] data = { }; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gridview); try{ String filepath = "/sdcard/data/Crak/"; File imagefile = new File(filepath +"abcd.jpg" ); FileInputStream fis = new FileInputStream(imagefile); Bitmap bi = BitmapFactory.decodeStream(fis) (HowTos)