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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:01:49+00:00 2026-05-14T07:01:49+00:00

Iam planning to create an app, and not to publish it at the google

  • 0

Iam planning to create an app, and not to publish it at the google market.
i want the users to update thire app once in a while when an updates will be rlsd via server(let’s not get into the idea how i gonna do this)… so for this i need to give to each app some ID, so i know that that user gotta update his app, and not new installation (i wanna avoid the case the user will have two versions of the app).. and ofcourse install the app to new users.
how could i sign those apps with version when i rls an update manually?
mybe some other idea?

thanks,
ray.

  • 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-14T07:01:50+00:00Added an answer on May 14, 2026 at 7:01 am

    You can use the android:versionCode and android:versionName attributes in the AndroidManifest.xml. That way, as long as the package name is the same it won’t overlap and you can get that info like this to see if there is a newer version available:

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="org.moo.android.myApp"
      android:versionCode="12"
      android:versionName="1.2.37">
    

    Then you can read these values and compare with values on your server, like this:

    try
    {
        PackageManager manager = context.getPackageManager();
        PackageInfo info = manager.getPackageInfo("org.moo.android.myApp", 0);
        int code = info.versionCode;
        String name = info.versionName;
    
        // Compare with values on the server to see if there is a new version
    }
    catch(NameNotFoundException nnf)
    {
        nnf.printStackTrace();
    }
    

    If you’re checking for the version of the same app, you can replace the hard-coded package name with context.getPackageName().

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

Sidebar

Related Questions

I am planning to create a facebook canvas app using php sdk. Google app
Hello i'm planning to create an application on google app engine, the application will
I am planning to create an app in rails but first I want to
I want to create an informative app that will display a list of content.
I am planning to create a stock based app for iPhone. It's going to
I am planning to create an iPad app that will interact with a set
I'm new in creating android app using eclipse. I am planning to create an
I am planning to create a voice recorder app. I will store my file
I am planing to create mobile app. It calls web service automatically every 5
I am planning to create my own custom Object Mapper for a type using

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.