Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8549235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:40:55+00:00 2026-06-11T13:40:55+00:00

I have an activity where it shows an image from the phone`s sd card,

  • 0

I have an activity where it shows an image from the phone`s sd card, and I have the path of the image that was passed from another activity to the current activity as an intent extra, example: //mnt/sdcard/DCIM/pic05.png

the path is stored in the database under the column named _data and there are other columns for each record that are there, like description and _display_name, how do I access these?

for example I have the path like the one shown above, pic05.png and I want to show the _display_name in a textview for that pic, that is what I am trying to find out how to do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:40:56+00:00Added an answer on June 11, 2026 at 1:40 pm

    Simple SQL would do, based on a table:

    CREATE TABLE pictures
    ( fileName TEXT NOT NULL,
      displayName TEXT,
      PRIMARY KEY pictures_pk( fileName ) );
    

    You could simply:

    SELECT displayName
      FROM pictures
     WHERE fileName = ?
    

    Or in Java:

    SQLiteDatabase db...
    String displayName;
    Cursor c = db.query( "pictures", null, "fileName=pic01.png", null, null, null, null );
    c.moveToFirst();
    if( !c.isAfterLast() )
        displayName = c.getString(1);
    

    This is very simplified. You’ll need to pass the columns you want and use proper column-index when you access the cursor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WebView that just displays an image from the external SD-card. This
I have an onClickListener that should call a class that shows and image from
I have an activity that shows some TextView s and EditText s, as well
I have an ImageView in my activity that shows an active symbol when a
I have a application that has an activity that shows message logs. The thing
I have an app that, after some clicking, shows activity with news contents. I
I have an activity which shows an image (ViewCollection.java). I want to only create
I have an activity which shows 3 random images from JSON data off the
I have an activity that calls the camera intent to capture a picture and
I developed an activity that contains canvas to draw image and I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.