Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. Android.Content.ActivityNotFoundException: Unable to find explicit activity class

Android.Content.ActivityNotFoundException: Unable to find explicit activity class

Scheduled Pinned Locked Moved Android
csharpasp-netandroidcom
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vimalsoft Pty Ltd
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • V Vimalsoft Pty Ltd

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I'm not certain about this but I have something similar, but does it this way:

      Intent homemap = new Intent(this, HomeMap.class);

      V 1 Reply Last reply
      0
      • L Lost User

        I'm not certain about this but I have something similar, but does it this way:

        Intent homemap = new Intent(this, HomeMap.class);

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups