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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:57:13+00:00 2026-05-25T14:57:13+00:00

Intent intent = new Intent(android.intent.action.VIEW); intent.addCategory(android.intent.category.DEFAULT); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File(path)); intent.setDataAndType(uri, image/*);

  • 0
    Intent intent = new Intent("android.intent.action.VIEW");
    intent.addCategory("android.intent.category.DEFAULT");
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    Uri uri = Uri.fromFile(new File(path));
    intent.setDataAndType(uri, "image/*");
    startActivity(intent);

the same code when the path is /mnt/sdcard/aaa.png the image can be show. while the path is data/data/com.test/aaa.png the image can’t be show.Does it need some permission.I have download it in the path.
the error is like

when parsing the image

09-12 11:54:31.448: ERROR/UriImage(545): got exception decoding bitmap 
09-12 11:54:31.448: ERROR/UriImage(545): java.lang.NullPointerException
09-12 11:54:31.448: ERROR/UriImage(545):     at com.android.camera.Util.makeInputStream(Util.java:336)
09-12 11:54:31.448: ERROR/UriImage(545):     at com.android.camera.Util.makeBitmap(Util.java:307)
09-12 11:54:31.448: ERROR/UriImage(545):     at com.android.camera.Util.makeBitmap(Util.java:299)
09-12 11:54:31.448: ERROR/UriImage(545):     at com.android.camera.gallery.UriImage.fullSizeBitmap(UriImage.java:94)
09-12 11:54:31.448: ERROR/UriImage(545):     at com.android.camera.gallery.UriImage.fullSizeBitmap(UriImage.java:86)
09-12 11:54:31.448: ERROR/UriImage(545):     at com.android.camera.gallery.UriImage.thumbBitmap(UriImage.java:120)
09-12 11:54:31.448: ERROR/UriImage(545):     at com.android.camera.ImageGetter$ImageGetterRunnable.executeRequest(ImageGetter.java:173)
09-12 11:54:31.448: ERROR/UriImage(545):     at com.android.camera.ImageGetter$ImageGetterRunnable.run(ImageGetter.java:149)
09-12 11:54:31.448: ERROR/UriImage(545):     at java.lang.Thread.run(Thread.java:1019)
09-12 11:54:31.828: ERROR/UriImage(545): got exception decoding bitmap 
09-12 11:54:31.828: ERROR/UriImage(545): java.lang.NullPointerException
09-12 11:54:31.828: ERROR/UriImage(545):     at com.android.camera.Util.makeInputStream(Util.java:336)
09-12 11:54:31.828: ERROR/UriImage(545):     at com.android.camera.Util.makeBitmap(Util.java:307)
09-12 11:54:31.828: ERROR/UriImage(545):     at com.android.camera.Util.makeBitmap(Util.java:299)
09-12 11:54:31.828: ERROR/UriImage(545):     at com.android.camera.gallery.UriImage.fullSizeBitmap(UriImage.java:94)
09-12 11:54:31.828: ERROR/UriImage(545):     at com.android.camera.ImageGetter$ImageGetterRunnable.executeRequest(ImageGetter.java:204)
09-12 11:54:31.828: ERROR/UriImage(545):     at com.android.camera.ImageGetter$ImageGetterRunnable.run(ImageGetter.java:149)
09-12 11:54:31.828: ERROR/UriImage(545):     at java.lang.Thread.run(Thread.java:1019)

when parsing the apk file

09-12 12:01:41.307: WARN/PackageParser(1298): Skipping dir: /data/data/com.download.activity/files/aaa.apk

09-12 12:01:41.307: WARN/PackageInstaller(1298): Parse error when parsing manifest. Discontinuing installation.
  • 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-25T14:57:14+00:00Added an answer on May 25, 2026 at 2:57 pm

    Have you set a permission to access the SD card?

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

Sidebar

Related Questions

So I'm clicking on this link: <a href=intent://www.google.com#Intent;scheme=http;action=android.intent.action.VIEW;end>Google</a> (I know its a silly example,
I'm using intents to launch Google Navigation: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(google.navigation:q= +
Android: i am using twitter authentication by launching webview Intent authIntent = new Intent(Intent.ACTION_VIEW,
I know that i can do it with this: Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
I am using intent to launch camera: Intent cameraIntent = new Intent( android.provider.MediaStore.ACTION_IMAGE_CAPTURE); getParent().startActivityForResult(cameraIntent,
Am playing youtube video files by launching youtube: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(text2.getText().toString()));
The app code is package com.musicdownloader; import com.fortumo.android.PaymentActivity; import com.musicdownloader.R; import android.content.Intent; import android.net.Uri;
To call main activity I saw componentName class in android. intent = new Intent(new
I launch an activity to capture a picture from camera: Intent i = new
I'm creating a notification with something similar to the following: Intent ni = new

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.