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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:06:02+00:00 2026-05-17T00:06:02+00:00

Been trying to call Preferences.java class using: Intent settingsActivity = new Intent(getBaseContext(), Preferences.class); startActivity(settingsActivity);

  • 0

Been trying to call Preferences.java class using:

Intent settingsActivity = new Intent(getBaseContext(), Preferences.class);
startActivity(settingsActivity);

I have this in my Manifest.xml (outside the main app class activity):

<application>
   ........

    <activity android:name=".Preferences" android:label="Preferences">

      </activity>
    </application>

And I still get force close for “android.content.ActivityNotFound…” :

E/AndroidRuntime(25644): FATAL EXCEPTION: main
E/AndroidRuntime(25644): android.content.ActivityNotFoundException: Unable to fi
nd explicit activity class {com./java.util.prefs.Preferences};
 have you declared this activity in your AndroidManifest.xml?
E/AndroidRuntime(25644):        at android.app.Instrumentation.checkStartActivit
yResult(Instrumentation.java:1404)
E/AndroidRuntime(25644):        at android.app.Instrumentation.execStartActivity
(Instrumentation.java:1378)
E/AndroidRuntime(25644):        at android.app.Activity.startActivityForResult(A
ctivity.java:2817)
E/AndroidRuntime(25644):        at android.app.Activity.startActivity(Activity.j
ava:2923)
E/AndroidRuntime(25644):        at com.droidil.droidmarks.Dmarks.onOptionsItemSe
lected(Dmarks.java:337)
E/AndroidRuntime(25644):        at android.app.Activity.onMenuItemSelected(Activ
ity.java:2195)
E/AndroidRuntime(25644):        at com.android.internal.policy.impl.PhoneWindow.
onMenuItemSelected(PhoneWindow.java:730)
E/AndroidRuntime(25644):        at com.android.internal.view.menu.MenuItemImpl.i
nvoke(MenuItemImpl.java:143)
E/AndroidRuntime(25644):        at com.android.internal.view.menu.MenuBuilder.pe
rformItemAction(MenuBuilder.java:855)
E/AndroidRuntime(25644):        at com.android.internal.view.menu.IconMenuView.i
nvokeItem(IconMenuView.java:532)
E/AndroidRuntime(25644):        at com.android.internal.view.menu.IconMenuItemVi
ew.performClick(IconMenuItemView.java:122)
E/AndroidRuntime(25644):        at android.view.View$PerformClick.run(View.java:
8818)
E/AndroidRuntime(25644):        at android.os.Handler.handleCallback(Handler.jav
a:587)
E/AndroidRuntime(25644):        at android.os.Handler.dispatchMessage(Handler.ja
va:92)
E/AndroidRuntime(25644):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(25644):        at android.app.ActivityThread.main(ActivityThrea
d.java:4627)
E/AndroidRuntime(25644):        at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(25644):        at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime(25644):        at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime(25644):        at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:626)
E/AndroidRuntime(25644):        at dalvik.system.NativeStart.main(Native Method)

No Compiling errors… just this Runtime error…
Any ideas why it’s force closing even though I have the Activity defined in the Manifest.xml?

Appreciate any help!

  • 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-17T00:06:03+00:00Added an answer on May 17, 2026 at 12:06 am

    It looks like you have an import statement mix-up. Look at the 2nd line about “java.util.prefs.Preferences”. Either change your imports or fully qualify your reference to your Preference activity.

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

Sidebar

Related Questions

I have been trying to call a mapreduce job from a simple java program
I have been trying to call the NewPixelRegionIterator function in ImageMagick's library from C#
Hi I have been trying to make a ajax call to a JSP page.
Been trying to find this online for a while now. I have a SDL_Surface
I have been trying to call a C function that has the following signature
Have been trying to fix this problem I have here. Basically I have a
I have been trying to add click events to a series of divs using
I have been trying to call filter css method from jquery for IE, but
I have been trying to call filter css method from jquery for IE, but
I have been trying to add/implement this example to my existing Split View app

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.