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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:33:25+00:00 2026-06-11T04:33:25+00:00

I need to create a service application which always looking and retrieve imaging file

  • 0

I need to create a service application which always looking and retrieve imaging file from if any new image taken from build in camera application.

1)My service needs to watching and taking the image from if new image was taken from build in camera application

how can we obtain the image path or image data in my service.

  • 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-11T04:33:27+00:00Added an answer on June 11, 2026 at 4:33 am

    manifest code:

     <receiver android:name=".pictureReceiver" >
            <intent-filter android:priority="10000" >
               <action android:name="com.android.camera.NEW_PICTURE"/>
          <data android:mimeType="image/*"/>
            </intent-filter>
    </receiver>
    

    onReceive Code:

    @Override
        public void onReceive(Context arg0, Intent arg1) {
               String selectedImageUri = arg1.getData().getPath();
               Log.d("TAG", "Received new photo:::"+selectedImageUri );
                   Log.d("TAG","file Path"+getRealPathFromURI(arg1.getData(),arg0));
        }
     public String getRealPathFromURI(Uri contentUri,Context context)
            {
                try
                {
                    String[] proj = {MediaStore.Images.Media.DATA};
    
                    Cursor cursor =  context.getContentResolver().query(contentUri, proj, null, null, null);
                    int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
                    cursor.moveToFirst();
                    return cursor.getString(column_index);
                }
                catch (Exception e)
                {
                    return contentUri.getPath();
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create an application or service which notifies when the log file
I need to create a service which can process queued requests on a configured
We need to create a RESTful service. We're wondering which of the existing framework
I am trying to create a Service for my application which will negotiate Bluetooth
I am trying to create a Service for Finder, but my application doesn't need
I need an application/service which runs in the background and generate bills on a
I have a Windows Service Application in which i create WCF services in it.
I want to create gallery application which would get thumbnails and metadata from web
I want to create an application with JayData + WCF/RIA Services but i need
I need to create a service in .NET that maintains (inner) state in-memory, spawns

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.