title: how to open the gallery?
body: <p>I need to open the images gallery via code in my app.(only opening the gallery, the user is not going to select any image). I searched and found lots of ways but some of them worked only for selecting an image and other ways never worked.e.g.  </p>
  
  <pre><code>Intent intent = new Intent();
  intent.setType("image/*");
  intent.setAction(Intent.ACTION_GET_CONTENT);//
  startActivityForResult(Intent.createChooser(intent, "Select Picture"),SELECT_IMAGE);
  </code></pre>
  
  <p>or</p>
  
  <pre><code> Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
   "content://media/internal/images/media")); 
   startActivity(intent); 
  </code></pre>
  
  <p>how may I open the gallery?</p>