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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:12:08+00:00 2026-06-06T03:12:08+00:00

This is what i have now. It is checking to see if GoLauncher is

  • 0

This is what i have now. It is checking to see if GoLauncher is installed and if it is, it takes it to the go launcher main screen. If its not installed it takes user to market to have it installed.

What i need though is that if it is installed already i need to pop up a alert box showing the user how to install the theme. After user hits okay then it should go to GoLaunhcer main screen

gosetting = (ImageButton) findViewById(R.id.gosetting);
    gosetting.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            try {
                Intent intent = new Intent(Intent.ACTION_MAIN);
                intent.setComponent(new ComponentName("com.gau.go.launcherex","com.jiubang.ggheart.apps.desks.diy.GoLauncher"));
                startActivity(intent);
            } 
            catch (ActivityNotFoundException e) {
                AlertDialog.Builder alert = new AlertDialog.Builder(HelperActivity.this);
                alert.setTitle("GO Not Found");
                alert.setMessage("Do you want to vist the GO Launcher Android Market page?");
                alert.setIcon(R.drawable.go_icon2);
                alert.setPositiveButton("Yes",
                 new DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int id) {
                      final Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse("market://details?id=com.gau.go.launcherex"));
                      startActivity(intent);
                  }
                 });
                alert.setNegativeButton("No",
                 new DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int id) {
                      return;
                  }
                 });

                alert.show();

            } catch (Exception go) {
                go.printStackTrace();
            }
        }

    });

Added your updated code and now getting this error..
!1

  • 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-06T03:12:09+00:00Added an answer on June 6, 2026 at 3:12 am

    Look at the answer to Detect an application is installed or not? That explains how to query the PackageManager to find out if your app is already installed.

    EDIT: Add code

    public void onClick(View v) {
        if (isAppInstalled("com.gau.go.launcherex")) {
            // Show dialog about installing the theme
            AlertDialog.Builder alert = new AlertDialog.Builder(HelperActivity.this);
            alert.setTitle("GO Theme installer");
            alert.setMessage("You need to install the theme like this...");
            alert.setIcon(R.drawable.go_icon2);
            alert.setPositiveButton("OK",
                    new DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int id) {
                      // Here actually start the GoLauncher
                      final Intent intent = new Intent(Intent.ACTION_MAIN);
                      intent.setComponent(new ComponentName("com.gau.go.launcherex","com.jiubang.ggheart.apps.desks.diy.GoLauncher"));
                      startActivity(intent);
                  }
                 });
            alert.show();
        } else {
            // Here you put up the dialog about visitng the market page
            AlertDialog.Builder alert = ...
        }
    }
    
    private boolean isAppInstalled(String uri) {
        PackageManager pm = getPackageManager();
        boolean installed = false;
        try {
           pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);
           installed = true;
        } catch (PackageManager.NameNotFoundException e) {
           installed = false;
        }
        return installed;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Python I have this code: now = datetime.now().isoformat() if . not in now:
I am currently working on kerberos, and for now have this doubt on PAC
How i can change the color with gradient??? I have this now,but is different
I have now been stuck at this for some time so I though to
I have this right now: <%= f.select :credit, (0..500) %> This will result in
I have this code ,now can anyone reply s what happens to the lock
Right now I have this SQL query which is valid but always times out:
Dear all,Now i have this question in my java program,I think it should be
This problem has bugged me so many times and i have now decided to
I've been stuck on this EXC_BAD_ACCESS error 2 days now. I have a reloadAnnotations

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.