Android Question Help With Intent

shashkiranr

Active Member
Licensed User
Longtime User
Hi ,

I am using an intent to call an activity in my application.

B4X:
Dim In As Intent
    In.Initialize("","")
    In.SetComponent("com.bayalu.callmanager/.Contacts")

I am adding this intent in AHPreference Activity. i am getting this error saying activity not found.

What am i missing? what should be added in the manifest file?

B4X:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.bayalu.callmanager/com.bayalu.callmanager.Contacts}; have you declared this activity in your AndroidManifest.xml?
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1556)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1431)
    at android.app.Activity.startActivityForResult(Activity.java:3446)
    at android.app.Activity.startActivityForResult(Activity.java:3407)
    at android.app.Activity.startActivity(Activity.java:3617)
    at android.app.Activity.startActivity(Activity.java:3585)
    at android.preference.Preference.performClick(Preference.java:967)
    at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:229)
    at android.widget.AdapterView.performItemClick(AdapterView.java:298)
    at android.widget.AbsListView.performItemClick(AbsListView.java:1283)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:3074)
    at android.widget.AbsListView$1.run(AbsListView.java:4147)
    at android.os.Handler.handleCallback(Handler.java:615)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4898)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
    at dalvik.system.NativeStart.main(Native Method)

Kindly let me know.

Regards,
SK
 

shashkiranr

Active Member
Licensed User
Longtime User
Hi Erel,

I am using in this AHPreference Activity. I need a button kind of behavior in the list which will open an activity when clicked. As of now you can add only intents to it hence i am using it.

Regards,
SK
 
Upvote 0
Top