-1

To the point. I've tried using this to a button on my app to access the sdcard downloads folder but the only thing i get in return is the sound of tapping a button and nothing more:

btPastaVideos.setOnClickListener(new View.OnClickListener(){
         @Override
         public void onClick(View v){
         Environment.getExternalStoragePublicDirectory(DIRECTORY_DOWNLOADS);
         }
      }
    );

Any suggestions?

1 Answers1

0

Try,

startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));
Jitesh Mohite
  • 31,138
  • 12
  • 157
  • 147