Note that there are some explanatory texts on larger screens.

plurals
  1. POFilter built-in gallery to show only pictures with GeoTag (Latitude and Longitude)
    primarykey
    data
    text
    <p>Im doing an app that let the user pick an image from the built-in gallery.</p> <p>so far so good.. The thig is,I need to show the user only photos which has GeoTags in it.</p> <p>In other words, <strong>I need to filter the built-in gallery display to show only images which has Longitude and Latitude MetaData in them and NOT show all the other pictures in my phone</strong></p> <p>Here is a simple image picker code:</p> <pre><code>private void pickPlace() { Intent in = new Intent( Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(in, RESULT_LOAD_IMAGE); } //We Get The Selected Image From Gallery And Display It To User.. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); try { if (requestCode == RESULT_LOAD_IMAGE &amp;&amp; resultCode == RESULT_OK &amp;&amp; null != data) { Uri selectedImage = data.getData();//URI for the picture String[] filePathColumn = { MediaStore.Images.Media.DATA }; Cursor cursor = getContentResolver().query(selectedImage, filePathColumn, null, null, null); cursor.moveToFirst(); int columnIndex = cursor.getColumnIndex(filePathColumn[0]); String picturePath = cursor.getString(columnIndex); cursor.close(); //Load The Image Into Main Screen adjustImage(picturePath); //We get The Coordinates Back to 0 mLongitude = (float) 0.0; mLatitude = (float) 0.0; mAddress = ""; } } catch (NullPointerException e) { // TODO Auto-generated catch block e.printStackTrace(); } } </code></pre> <p>This works good, <strong>Now I need to find how to filter and show only images with Latitude and Longitude.. and hide all the other images.</strong></p> <p>Thank You!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload