Android.Content.ActivityNotFoundException: Unable to find explicit activity class
-
Good Day Everyone From my AppCompatActivity class i am trying to open an activity as an intent like this
Intent homemap = new Intent(this, typeof(HomeMap));
var fintent = new Intent(this, homemap.Class);
StartActivity(fintent);and my manifest i have declared my Activity like this
and my package name in the manifest is package="com.vimalsoft.toletsa" . My assembly name is Toletsa and my namespace is Toletsa The layout file for my Activity that i want to open as an intent is
when i run the project i get an error when starting the activity Unhandled Exception: Android.Content.ActivityNotFoundException: Unable to find explicit activity class {com.vimalsoft.toletsa/android.content.Intent}; have you declared this activity in your AndroidManifest.xml? Thanks
Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vimalsoft.com vuyiswa[at]vimalsoft.com
-
Good Day Everyone From my AppCompatActivity class i am trying to open an activity as an intent like this
Intent homemap = new Intent(this, typeof(HomeMap));
var fintent = new Intent(this, homemap.Class);
StartActivity(fintent);and my manifest i have declared my Activity like this
and my package name in the manifest is package="com.vimalsoft.toletsa" . My assembly name is Toletsa and my namespace is Toletsa The layout file for my Activity that i want to open as an intent is
when i run the project i get an error when starting the activity Unhandled Exception: Android.Content.ActivityNotFoundException: Unable to find explicit activity class {com.vimalsoft.toletsa/android.content.Intent}; have you declared this activity in your AndroidManifest.xml? Thanks
Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vimalsoft.com vuyiswa[at]vimalsoft.com
-
I'm not certain about this but I have something similar, but does it this way:
Intent homemap = new Intent(this, HomeMap.class);
Good Day i was able to resolve the issue i just changed this
android:name="**.Toletsa.**HomeMap"
in my Manifest to android:name=".HomeMap" and this solved my problem , the code was ok
Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vimalsoft.com vuyiswa[at]vimalsoft.com