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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:12:19+00:00 2026-06-09T15:12:19+00:00

In my app, I have to use Intent.setClassName or setComponent to start an activity

  • 0

In my app, I have to use Intent.setClassName or setComponent to start an activity in another package. There is no problem when I use Intent.setClass like
Intent intent = new Intent(getApplicationContext(), org.iustb.knowledebase.animation.transparent.MainTransparentActivity.class);
The suggestions to solve this problem on the web is that adding or android:exported=”true” to the target activity in the AndroidManifest, but it doesn’t work.
Is there anybody can help me?
i wrote the below code:

Intent intent = new Intent();
intent.setClassName(cursor.getString(pIndex), cursor.getString(cIndex));
startActivity(intent);

manifest file settings of the target activity:

<activity android:name="org.iustb.knowledebase.animation.transparent.MainTransparentActivity"
                android:exported="true"></activity>
  • 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-09T15:12:21+00:00Added an answer on June 9, 2026 at 3:12 pm

    Did you make sure the values that the cursor returns the are correct ones?

    The first parameter of the setClassName() should be the application package name, not the package where the Activity beings started is.

    Assume the application package is: com.testandroid, but you want to start the other activity from the com.testandroid.other package, then your code should look like this:

    intent.setClassName("com.testandroid", "com.testandroid.other.OtherActivity");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my app I have some text.setTextColor(Color.GRAY) . Now I would like to use
This is my codes below. I'm trying to use intent to call another activity
Background: I have an app which needs to use an intent from an other
I use an Navigation intent in my app like: uri= String.format(Locale.ENGLISH,"http://maps.google.com/maps?daddr=%f,%f",latitude, longitude); Intent intent
I have to develop web2py app and have to use Facebook sdk in that.
I am working on an android app and have to use remote database for
I found here that to restore brightness on app exit you have to use
I want to use mysql with a rails app (I have never used mysql
Anytime i change my in-app-settings (with shared preferences) i have to use the back
I have an app that needs to be able use either an sqlite3 datebase

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.