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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:22:18+00:00 2026-05-26T14:22:18+00:00

I am trying to implement AUTOUPDATE functionality in my android app, as it is

  • 0

I am trying to implement AUTOUPDATE functionality in my android app, as it is a custom app not published via android market. So far I have everything working, however android tries to install the App and says “APPLICATION NOT INSTALLED”. I don’t know if it is important, but the App is already on the device, so it is an update.

The app downloads the APK file from the internet and stores it on the SDcard. Than I do this:

    Uri packageURI = Uri.parse("package:my_package");
    Intent intent = new Intent(Intent.ACTION_VIEW, packageURI);
    intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + ApkName)), 
            "application/vnd.android.package-archive");
    startActivity(intent);  
  • 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-26T14:22:19+00:00Added an answer on May 26, 2026 at 2:22 pm

    Here is a snippet I use, it looks basically the same as yours the only difference I can see is the use of packageURI. I don’t know if using the packageURI would cause it not to work, but if I were you I’d try without.

    File appFile = new File(ScreenSaverActivity.this.getFilesDir() + File.separator + APPLICATION_FILE_NAME);
    Intent installIntent = new Intent(Intent.ACTION_VIEW);
    installIntent.setDataAndType(Uri.fromFile(appFile),"application/vnd.android.package-archive");
    startActivity(installIntent);
    

    However generally when you see the “Application Not Installed” message while attempting to install it means that the signature used to sign the 2 apk’s was different i.e. one is release key signed, one is debug key signed. Or perhaps if the 2 apks were compiled on different computers you’ve got them signed with 2 different debug keys.

    Note that even though you are not distributing via the market you still need to generate and sign your application. Debug key’s expire after 1 year which your app will stop working once the key has expired.

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

Sidebar

Related Questions

Trying to implement sticky footer but its not working as planned. It throws it
Trying to implement a UITableView of names similar to the built-in Contacts iPhone app
im trying to implement a custom error page, what i want to be able
Trying to implement the following behavior on an iPad. I have a map-centric application
Trying to implement what I thought was a simple concept. I have a user
Trying to implement a timer for my game that I'm making. I have a
Trying to implement a simple print in SL4. I have a DataGrid that I
I trying to implement the url template tag into my project. I have a
Just trying to implement mobFox into my app, but having trouble to make it
I am trying implement a photo gallery similar to facebook in Android. I was

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.