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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:30:11+00:00 2026-05-21T23:30:11+00:00

I did my application in 2.2 environment, when i install my apk in older

  • 0

I did my application in 2.2 environment, when i install my apk in older version i am getting parser error. is there anything possibility to display our own message instead parser error message. As per my opinion it is not.

  • 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-21T23:30:12+00:00Added an answer on May 21, 2026 at 11:30 pm

    Do something like this

    private int GetVersion()
    {
        int version = 0;
        IPackageManager pm = ActivityThread.getPackageManager();
        try
        {
            //returns a ref to my application according to its application name
            ApplicationInfo applicationInfo = pm.getApplicationInfo("com.android.phonetests", 0);
    
            if (applicationInfo != null) 
            {           
                version = applicationInfo.targetSdkVersion; 
    
                //2 is 5
                //2.01 6 (Donut - 2.01)
                //2.2  7 (Eclair - 2.2) currently it is Eclair_MR1 (Major Release)                  
                switch (version) 
                {                           
                    case Build.VERSION_CODES.ECLAIR_MR1:
                    Log.i(LOG_TAG,"[DBG] version: ECLAIR");//2.2  7 (Eclair - 2.2) currently it is Eclair_MR1 (Major Release)
                    break;
                    case Build.VERSION_CODES.DONUT:
                    Log.i(LOG_TAG,"[DBG] version: DONUT");//2.01 6 (Donut - 2.01)
                    break;
                }
            }
        } 
        catch (android.os.RemoteException e){}      
        return version;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did one sample application using WebView, in that web view the URL comes
I did a cocoa application in which the file dialog box is opening when
I did a small web application for using PHP, HTML, and JavaScript. I want
I did the following steps to use the CDialog in win 32 application: Changed
In my application I needed something like a particle system so I did the
I have a ASP.NET application I've inherited from the person who did my job
I did not find an answer to this question. I have a VOIP application.
Has anyone integrated an iPhone application with a Shibboleth Identity Provider? Googling did not
I am working on my second multitenant MVC application. My first did not use
I'm interesting in gathering usage metrics for an application that I did not write

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.