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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:49:03+00:00 2026-05-23T16:49:03+00:00

Okay Both apps are mine so I can change code in either app. Currently

  • 0

Okay Both apps are mine so I can change code in either app. Currently App B hasn’t been modified in any way and is just a regular stand alone app.

App A goes to call App B using this code:

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName(“net.pawworks.NurseTorando”,”net.pawworks.NurseTorando.lung”));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

I do got it in a catch block for ActivityNotFoundException and deal with that one.
but when that exception doesn’t happen I get a this permission denied error

there is an activity in the net.pawworks.NurseTorando app that is named lung it’s not the one that first comes up if you launch it stand alone. but it’s the one i want it to start with when called from app A.

this is the error I get:
07-07 08:47:47.624: ERROR/AndroidRuntime(11129): java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=net.pawworks.NurseTorando/.lung } from ProcessRecord{484bc180 11129:net.pawworks.emergency/10123} (pid=11129, uid=10123) requires null

I can modify the 2nd app, but I still want it to start on a different screen then this when launched by itself. how can I fix this?

  • 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-23T16:49:04+00:00Added an answer on May 23, 2026 at 4:49 pm

    Add the following intent filter in the manifest file under the Activity tag (which one you are starting) in AndroidManifest.xml:

    OR check if you are having two entries for that activity in your manifest file.

    You can refer same posts over here:
    Android: java.lang.SecurityException: Permission Denial: start Intent

    HelloWebView Sample: java.lang.SecurityException: Permission Denial

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

Sidebar

Related Questions

Okay, so I'm currently developing an iphone app that I plan to take into
Well, okay. There's Visual Studio 2008 and Embarcadero Delphi/Studio that are both able to
Okay, I've seen but haven't programmed in C# before. You can assume I'm competent
Okay I was wondering when should I sanitize my code, when I add store
Okay, I get it. Data in PostgreSQL is case-sensitive. And I know I can
Okay I've tried multiple things and looked for answers to this and I can't
Okay, this may be a dumb question, but I've not been able to find
Okay I need to change this.. void foo() { DoSomething(1, 0); DoSomething(2, 3); }
Okay so I have to create a radix sort for both unsigned ints and
Okay, I have this code in my ViewController.m : @implementation ViewController @synthesize generateButton =

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.