0

I am using the following code to open android gallery when an image is clicked in my app

  Intent intent = new Intent (Intent.AUri.parse(  "content://media/internal/images/media" ));
  intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
  mActivity.startActivity(intent);

how can i modify my code to open a particular image directory or a particular image

Kartik Ohri
  • 325
  • 6
  • 19

1 Answers1

0

According to me you should try this. In your MainActivity introduce a method to create intend for that and use syntax

 intent.setComponent(new ComponentName("com.example.administrator.YOUR GALLERY APP NAME","com.example.administrator.YOUR APP.MainActivity"));

where com.example.administration is the initial name of your package

rafaelc
  • 57,686
  • 15
  • 58
  • 82
Nikhil Sawant
  • 103
  • 10