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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:56:10+00:00 2026-06-10T17:56:10+00:00

First I have a server.I check server is there any new apk file I

  • 0
  1. First I have a server.I check server is there any new apk file I download this and try to install.
  2. If server have new version of apk file then I want to update my .apk file.
  3. I want to Install/update without user interaction.Is it possible?
  4. If user interaction is needed then How can I install/update .apk file.

I don’t have idea much more about that.

 Intent intent = new Intent(Intent.ACTION_VIEW);
             intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "jarviz.apk")), "application/vnd.android.package-archive");
             intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

But this is not working.WHen I debugging I can not see any mistake but it does not install.How can I do that.Sorry for bad English.

  • 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-10T17:56:11+00:00Added an answer on June 10, 2026 at 5:56 pm

    I solved the issue this way.

    String vsName=Environment.getExternalStorageDirectory().getAbsolutePath()+"/download/";
    File file = new File(vsName, "jarviz.apk");
    System.out.println(":"+file);
    Intent install=new Intent(Intent.ACTION_VIEW);
    install.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
    install.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(install);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a htaccess file shared by dev.server and server.site.com. The first domain
We installed IIS on two servers. On the first server we have access to
I have just uploaded my first 'website' (html+js) to a web server, and my
I have 2 virtual directory on my IIS (first for server developing and second
I have been investigating about creating a UDP server, at first i though i
I have an activity which needs to make two remote server calls. The first
I have tried this example http://www.bennadel.com/blog/1056-ColdFusion-CFPOP-My-First-Look.htm , but it retrieve emails from POP server.
First a little introduction. We have an SQL Server Express 2008 database, which schema
So I have a function call classifier that basically check all text file in
this is my first question, so please, bear with me. I have a Swing

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.