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

  • Home
  • SEARCH
  • 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 3960912
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:54:43+00:00 2026-05-20T02:54:43+00:00

Im having trouble getting this to work, here´s a quick overview of the idea.

  • 0

Im having trouble getting this to work, here´s a quick overview of the idea.

First, I cant change the logic behind this, it was a specific requirement from the customer, I realize that with any tool such as AnyCut it could be bypassed but that doesnt matter really.

My customer offers a suite of apps, the idea is that all applications bellonging to the suite would be launched from a “Dashboard app”, so that I only show the Dashboard app in the main launcher and not all app icons.

Lets take two Apps to get the idea solved. The Dashboard App (A) and the Recieving App (B).

I want to establish an intent filter (I think) on app B so that whenever I go into app A, and click the app B icon the app will be either launched or started from where it let of (brought to front).

Is this even possible? If so, how can I do it? I managed to get it to launch by specifically launching one activity in the app using:

Intent i = new Intent();
i.setClassName("PACKAGE_NAME","SPECIFIC_CLASS");
startActivity(i);

But that isnt the behaviour that I want, as it always starts app B in the same spot.

Thanx in advance,
Stefano

Edit: Added some new information. I was taking a look at the DDMS.

If I launch the application from scratch through the main Android launcher the intent is exactly the same as when I leave the home button pressed and then only bring the app to front, what ever activity im in. So I was trying to reproduce, unsucsesfully until now, this intent.

INFO/ActivityManager(1292): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.package/.uiPackage.Activity}

This is how AnyCut does it

Intent { act=android.intent.action.VIEW flg=0x10000000 cmp=com.example.package/.uiPackage.Activity bnds=[125,242][235,360]}

Any idea how I could go about creating that exact same intent? I cant even find that flag in the Intent API.

  • 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-20T02:54:44+00:00Added an answer on May 20, 2026 at 2:54 am

    Figured it out, this is how I did it.

    Intent i = new Intent();
    i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    i.setAction("android.intent.action.VIEW");
    i.setComponent(ComponentName.unflattenFromString("com.example.package/com.example.package.activityName"));
    startActivity(i);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am having trouble getting this XMLHttpRequest to work properly, this is my first
Ok this seems so silly but I'm having some trouble getting this to work.
I'm having trouble getting Jquery .closest() to work. Here's my code, it's simple and
I’m having trouble getting a AJAX/JSON function to work correctly. I had this function
I'm having some trouble getting this layout to work correctly in IE. The problem
I am having trouble getting this to work so any help would be appreciated!
I'm having trouble getting a simple dependentObservable chain to work in knockout.js. Here is
ok so im having trouble getting this to work. nothing is happening. view the
This is for GNU-Prolog I'm having trouble getting a certain predicate to work. Its
I am having trouble getting a regex to work. This is the string. some

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.