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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:46:56+00:00 2026-06-17T13:46:56+00:00

IThe scenario is that my application search all installed application in order to determine

  • 0

IThe scenario is that my application search all installed application in order to determine versions of those applications. Then store name of the application with its versions on the same file. If new version of the application is available, then give notification to the user. The question is “how can I learn the version of the other application from my application ?”

Thanks for all your help

  • 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-17T13:46:57+00:00Added an answer on June 17, 2026 at 1:46 pm

    Something like this should work to get the current version:

    List<PackageInfo> packages = getPackageManager().getInstalledPackages();
    
    for(int i=0;i<packages.size();i++)
    {
        int version = packages.get(i).versionCode;
        // do whatever with it here
    }
    

    Getting the most recent version in the Play Store doesn’t really work, though. Like A–C said, you could check versionName instead, and just notify as updated if the two aren’t exactly the same(don’t worry about higher/lower, just inequality).

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

Sidebar

Related Questions

I want to store items in the application cache so it's lazy loaded from
I try to write a simple client/server application (all application is a bluetooth service
public class TheController : Controller { IThe the; public TheController( IThe the) { //when
I the following code returns every text that has the price class associated to
I have a client page where I have I the following that shows up
I the allocated arrays in the didFinishLaunching of my appdelegate.And I released those arrays
I'm re doing a specific application, just a basic text editor and I remember
I would like to order a set like this: a 2 a 1 b
I'm trying to use the new Mountain Lion NSUserNotificationCenter for my application (which isn't
FilenameFilter has an accept method that I can implement to tell system how I

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.