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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:08:27+00:00 2026-06-10T20:08:27+00:00

I am working on application where I need to open inbuilt apps in a

  • 0

I am working on application where I need to open inbuilt apps in a custom screen like in Popup window
but when I invoke the inbuilt app the screen size is full screen while I need customize screen size. The inbuilt app can be anything like browser or pdfreader.

Here is my code :-

String strurl = "/sdcard/download/28889.pdf"; 

     File file = new File(strurl); 

     if (file.exists()) { 
         Uri path = Uri.fromFile(file); 
      //   Log.e("path of the file",path.toString()); 
         Intent intent = new Intent(Intent.ACTION_VIEW); 

         intent.setDataAndType(path, "application/pdf"); 
         intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 



         try { 
             startActivity(intent); 
         }  
         catch (ActivityNotFoundException e) { 
             Toast.makeText(getApplicationContext(),  
                 "No Application Available to View PDF",  
                 Toast.LENGTH_SHORT).show(); 
         } 

This opens up new window in my app but I need Popup kind of window where I need to show this pdfreader to get display.

  • 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-10T20:08:28+00:00Added an answer on June 10, 2026 at 8:08 pm

    By design, Android does not allow one app to run inside another (among other things, for obvious security reasons). So if that is what you want to do, you are out of luck.

    BUT you can use a WebView (I let you consult the doc on this class) to display a webpage inside your app.
    There are also some pdf libraries out there. A word of caution though, I worked on a pdf reader on Android 1 year ago and implementing a pdf reader was just not the best solution. Handling the pdf decoding on server side and serving a view of this image (or conversion to html) was the best solution.
    This way you don’t use too much computing power to read the pdf (surprisingly you need some serious cpu to read a pdf).

    Things may have changed since I made that development (I was really constrained by the time factor) though but I still don’t think that unless you explicitely need to display a pdf document and not just a document (for example a legitimate reason would be that you need to check the signature of the pdf on the Android device), you should not use the pdf format on a phone.

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

Sidebar

Related Questions

We've been working on web application where in we need to implement traditional web-apps
I am currently developing a web application where I need to open a popup
For an application I am working on, I need to display custom raster image
I'm working on an open source PHP application. The application may need to connect
I'm working on a Java application, and I need to open up the Windows
I am working on an application where I need to integrate the social functionality
I am working on an application where I need to integrate the social functionality
I am working on an application where I need to integrate the search engine.
I am working on an application where i need to place a uiscrollview within
I am currently working in an application where I need to find all occurrences

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.