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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:23:33+00:00 2026-06-06T18:23:33+00:00

I am trying to make a simple application which will send the user to

  • 0

I am trying to make a simple application which will send the user to a specific (system installed) app (system settings, calendar, browser, etc.) when clicked by the user from the home screen or app drawer.

For instance, I am currently trying to open the system settings whenever my app is launched, just like a shortcut for settings does.

Is it possible to implement this the way I want it? Does anyone have any suggestions?

Here is my code:

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;


public class MainActivity extends Activity {

    public void  LaunchComponent (String packageName, String name){
        Intent i = new Intent(Intent.ACTION_MAIN);
        PackageManager manager = getPackageManager();
        i = manager.getLaunchIntentForPackage("com.sec.android.app.controlpanel");
        i.addCategory(Intent.CATEGORY_LAUNCHER);
        startActivity(i);

    }
}

I currently do not have a layout file, such as main.xml, in my app, as it doesn’t have any UI or layout elements. All it should do is send the user to another app activity. I have been using this tutorial (missing link) and I’ve implemented all the code examples and I cannot figure it out, I am new to android development and java is not my best language. Open to any criticism or suggestions.

  • 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-06T18:23:35+00:00Added an answer on June 6, 2026 at 6:23 pm

    You have to make the call to LaunchComponent which can be done in onCreate first life-cycle callback function

    public void onCreate(Bundle savedInstanceState) {
    
        super.onCreate(savedInstanceState);
         LaunchComponent (packageName, name);
    }
    

    updated

    import android.app.Activity;
    import android.content.Intent;
    import android.content.pm.PackageManager;
    
    
    public class MainActivity extends Activity {
    
    public void onCreate(Bundle savedInstanceState) {
    
            super.onCreate(savedInstanceState);
             LaunchComponent ("com.sec.android.app.controlpanel", "abc?");
        }
    
    
    public void  LaunchComponent (String packageName, String name){
        Intent i = new Intent(Intent.ACTION_MAIN);
        PackageManager manager = getPackageManager();
        i = manager.getLaunchIntentForPackage(packageName);
        i.addCategory(Intent.CATEGORY_LAUNCHER);
        startActivity(i);
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a simple application which will be used to point
i'm currently trying to make a asp.net mvc3 app. in the sample application which
I am trying to make an application which will notify current playing track's name
excuse me, i'm trying to make simple application which converting the words into word.
I am trying to make a component for an application which a user can
So I'm trying to make a simple application that quizzes the user. It asks
I am trying to develop a simple map application, which will display a map
I am trying to make a simple 3D application in WebGl, in which every
I'm trying to implement a simple plugin system which will allow people to write
I am trying to make simple notepad application for learning android development. So, to

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.