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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:47:14+00:00 2026-05-25T15:47:14+00:00

I have saved same image into /data/data/mypackage/img/ and now I want show this full

  • 0

I have saved same image into /data/data/mypackage/img/ and now I want show this full screen, I had try with ACTION_VIEW for show with android standard program but it not read from /data/data/..
How can I 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-05-25T15:47:15+00:00Added an answer on May 25, 2026 at 3:47 pm

    The ‘android standard program’ you are launching is not able to access /data/data/mypackage, and thus cannot load the images you are saving in there

    Try saving your images in a directory on the SD card instead:

    File sdDir = new File(Enviroment.getExternalStorageDirectory(), "mydirname");
    

    If your device doesn’t have an SD card then you will need to create a world readable subdirectory inside your package dir, and then create a world readable file within it (Android 2.3+)

    File filesysDir = getDir("mydirname", MODE_WORLD_READABLE);
    File file = new File(sdDir, "myfile.txt");
    file.setReadable(true, false);
    FileOutputStream fos = new FileOutputStream(file);
    String txt = "hello world";
    fos.write(txt.getBytes());
    fos.close();
    

    Or if you are on earlier versions of Android it looks like you don’t get much choice in the directory name. The following code will create a world readable file in the data/data/mypackagename/files/ directory

    FileOutputStream fos = openFileOutput("myfile2.txt", MODE_WORLD_READABLE);
    String txt = "hello world";
    fos.write(txt.getBytes());
    fos.close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have many DIV with the same class name, let save wmplayer. I want
I have saved a bunch of CGContextRefs and I want to draw all of
I have saved data which was saved using NSUserDefaults. I was under the impression
Suppose, I have saved some permissions in the database by using this code: RoleRepository
I have a file saved as UCS-2 Little Endian I want to change the
I have looked into this fairly extensively, but have not found quite what I
I work with a lot of monochrome image data and this morning I noticed
I have saved input from a textarea element to a TEXT column in MySQL.
I have saved a dataset in the sql database in an xml column using
I have some URLs in an Excel file which I have saved as 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.