Android Tutorial Imageview related with sdcard getting images examples

Hi,

There are 2 versions to do that:

1. a combination of a button and an imageview.

2. touching the imageview(s) only.

Both ways, after touching the imageview or button, you first have
to select an app that will open the folder where your images are.

Mind you, I tested and checked these with my phone.(no virtual sdcard)

Thanks to Kickaha who helped me out.

grtz.
Asmoro
 

Attachments

  • imageview_and_buttonclick_to_a_sdcard_example.zip
    5.6 KB · Views: 672
  • imageview_click_to_a_sdcard_example.zip
    5.6 KB · Views: 618

Lordshiva1948

Member
Licensed User
Longtime User
SDCard pic

I have written this for myself to see if it works on my sony xperia 8. It is working fine. I have tested it on my other phone Star A3000 Duel sim also. works on both Mobile

Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim img1 As ImageView
Dim bmpImage As Bitmap
Dim pic As Int:pic=1
End Sub

Sub Activity_Create(FirstTime As Boolean)
'Create sd1 indesigner add just ImageView
Activity.LoadLayout("sd1")
bmpImage.Initialize(File.DirRootExternal,"/Mypic/" & "d9.jpg")
img1.Bitmap=bmpImage
End Sub

:sign0089:
 
Top