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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:24:32+00:00 2026-05-29T06:24:32+00:00

I am trying to start an activity from my main activity. Its not working

  • 0

I am trying to start an activity from my main activity. Its not working and driving me nuts. What I have is:

Intent i = new Intent ("net.xxx.View1");  
Context con = this.getBaseContext();  
ComponentName cn = new ComponentName("net.xxx.Mybooks", "BookView");  
i.setComponent(cn);  
Bundle extras = new Bundle();  
ooo             
i.putExtras(extras);
startActivity(i);     

Manifest is:  
            android:name="BookView" >
        <intent-filter >
            <action   android:name ="android.intent.action.VIEW" />
            <action   android:name ="net.xxx.View1" />       
            <category android:name ="android.intent.category.DEFAULT" />
        </intent-filter>

What I get is:
*02-03 19:34:47.448: E/AndroidRuntime(2027): android.content.ActivityNotFoundException: Unable to find explicit activity class {net.xxx.Mybooks/BookView}; have you declared this activity in your AndroidManifest.xml *
Which would be correct, I think, if the ‘/’ was a ‘.’

I tried with context and without any componetName, the result is always the same.

SdkVersion=”10″
Thanks in advance for your help
Cliff

  • 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-29T06:24:32+00:00Added an answer on May 29, 2026 at 6:24 am

    Well despite the clams of activity not found, the problem was in the new activity. It had a null pointer exception in the code. So I spent a day or so chasing the wrong problem.

    Thanks for your time anyway

    Cliff

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

Sidebar

Related Questions

I'm trying to start a new activity from a non-activity class. From the main
I'm trying to start a new Activity from a PreferenceActivity. However, it fails with
I'm new on Android, and I'm trying to start an Activity from a MenuItem
I am trying to start a service from the command line using net start
I'm trying to start a new activity in my android app, and I'm trying
I'm trying to start an Activity in my AsyncTask from the doInBackground() method but
i'm trying to start a map activity from a normal Activity. But keep getting
I am trying to start a new MVC project with tests and I thought
I am trying to start working with Excel documents through the OpenXML SDK Spreadsheet
I am trying to call a static method from another activity to find a

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.