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 7432799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:30:58+00:00 2026-05-29T09:30:58+00:00

Android: I am using following code to insert image into album According to description

  • 0

Android:

I am using following code to insert image into album

According to description this method insert image also creates its thumbnail i don’t want thumbnail to be created how can i stop thumbnail creation ?

Problem is I write image in album but when i select image from album it returns the thumbnail image path which is not required.

insert image parameters

Parameters

scr The content resolver to use
source  The stream to use for the image
title   The name of the image
description The description of the image


MediaStore.Images.Media.insertImage(contentResolver ,file.getAbsolutePath(),
    file.getName(), );
  • 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-05-29T09:30:58+00:00Added an answer on May 29, 2026 at 9:30 am

    I struggled with this as well. To get the actual image data location using the images resource URI:

            String dataColumnName = MediaStore.Images.Media.DATA;
            Uri mediaUri = //Image's URI;
    
    
        if (mediaUri != null)
        {
            String[] proj = { dataColumnName };
            Cursor actualimagecursor = managedQuery(mediaUri, proj, null, null, null);
            int actual_image_column_index = actualimagecursor.getColumnIndexOrThrow(dataColumnName);
            boolean hasValues = actualimagecursor.moveToFirst();
    
            if (hasValues)
            {
                //this is the file location of the image
                String path = actualimagecursor.getString(actual_image_column_index);
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code that creates my table. I insert data into it
i am using following code for capturing the image in Android: String fileName =
Hi Im using the following code: http://vikaskanani.wordpress.com/2011/01/11/android-upload-image-or-file-using-http-post-multi-part/ To POST an image to a WCF
friends, i am trying to check internetconnectivity in android and using following code final
I am using following code to open Android Contacts @Override public void onCreate(Bundle savedInstanceState)
I have created an application that creates notifications, using the following code: // notification
i am using the following code to open android defaults add contact activity to
Hi all I have created layout using following code <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
I am using the following code by the Android-people-XMLParsing example for parsing XML file
I'm using the following code to play a .mp4 video on my android device.

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.