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

  • Home
  • SEARCH
  • 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 3438756
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:13:34+00:00 2026-05-18T08:13:34+00:00

all, I have some problem installing my apk file in code. Wondering if anyone

  • 0

all,
I have some problem installing my apk file in code. Wondering if anyone could find out what I did wrong.
What I was trying to do is put a Check Upgrade function in our program. When user clicks it, it will send request to our web server and find out what is the latest version. I use app versionName to stamp a version, something like 2010.11.23. I don’t use the version code in Manifest.xml file. So our program sees the latest VersionName is later than itself, it will download the latest one, and then use the following code to install the new apk file:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(strNewAPKFile),"application/vnd.android.package-archive");
this.startActivity(intent);

Now looks like, everytime when I changed the VersionName, it will fail to install the apk file. It downloads the file fine. I don’t know exactly why. Sometimes, in Eclips, when I hit debug, I got error saying “Re-installation failed due to different application signatures”. I don’t know if this is the same error caused the installation failed.

So, looks like my questions are:

  1. Should that upgrade logic work? I am wondering if it has something to do with the VersoinName.
  2. What could cause the application signature change? (I did sign our program before I put it on our server, but I always use the same key file for different versionName. )

Any input are welcome.

  • 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-18T08:13:35+00:00Added an answer on May 18, 2026 at 8:13 am

    The app is signed whenever you create it. If you create it with Eclipse, it will be automatically signed with a debug key. If you switch computers, you will likely have a different key. If you export the app unsigned and then sign with your own key, it will have your own key. Each key is incompatible and will require you to uninstall and re-install the app.

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

Sidebar

Related Questions

I have got some code to load an assembly and get all types, which
I have some ASP.NET web services which all share a common helper class they
I have developed some classes with similar behavior, they all implement the same interface.
I'm sure that all of us have had to deal with telecommuters at some
I have a set of some classes which are all capable of being constructored
I have multiple classes that all derive from a base class, now some of
I have a Visual Source Safe repository, and some (not all, alas!) of my
I am new to all the anonymous features and need some help. I have
i have some problem with pattern bellow: /([A-Z0-9]+[A-Z0-9\.\_\+\-]*){3,64}@(([A-Z0-9]+([-][A-Z0-9])*){2,}\.)+([A-Z0-9]+([-][A-Z0-9])*){2,}/i It match email addresses and i
I have some problem with the injecting of my cookie into login.php page. This

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.