• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Loading Videos into Tab View

kivy

Newbie
Jul 13, 2010
17
0
Hi there :),

I am very new to Android and stuck with my application.
I am desperately looking for a way to access the phone's and SD's video gallery/directory and load the videos into my tab view, while arranging them as thumbs in some sort of grid view.

I started to look at this here:

Code:
 startActivityForResult(new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Video.Media.INTERNAL_CONTENT_URI), PICK_VIDEO);

     @Override
        public void onActivityResult(int requestCode, int resultCode, Intent data) {
        	  super.onActivityResult(requestCode, resultCode, data);
        	  if (requestCode == PICK_VIDEO)
        	    if (resultCode == Activity.RESULT_OK) {
        	      Uri selectedVideo = data.getData();
        	      // TODO Do something with the select Video URI
        	    } 
        }

but it says that it cannot resolve PICK_VIDEO, i am really stuck here and would be glad for some help..Thanks
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones