locked
Error starting an Activity RRS feed

  • Question

  • User362403 posted

    Hii!

    When I try

    var m_activity = Intent(this, typeof(DataPage));
    this.StartActivity(m_activity);
    

    it gives me an error:

    Java.Lang.ClassNotFoundException: md5d4e5006a67f487437a8012c63ad37986.ActivityName
    

    Do you know what it can be?? Please helpme :(

    Friday, December 15, 2017 6:33 PM

All replies

  • User99156 posted

    Hi @ErikaB Make sure Activity attribute already added to your DataPage activity. For example:

    csharp [Activity(Label = "@string/app_name", MainLauncher = true)] public class DataActivity : AppCompatActivity { // ... }

    Sunday, December 17, 2017 10:41 AM
  • User236903 posted

    First Question are you using intent for passing data into another activity? Otherwise you can use

    StartActivity(typeof(m_activity))
    

    Does this work?

    Sunday, December 17, 2017 1:09 PM
  • User362403 posted

    DimChris> @DimChris said:

    First Question are you using intent for passing data into another activity? Otherwise you can use

    StartActivity(typeof(m_activity))
    

    Does this work?

    No, I've tried that a lot of times but I get the same error :(

    Monday, December 18, 2017 3:28 PM
  • User236903 posted

    Can you post something from your code: what are you trying to do? Do you have latest xamarin version? Which visualStudio do you use?

    Monday, December 18, 2017 3:33 PM
  • User12817 posted

    We are tracking this issue here:

    https://bugzilla.xamarin.com/show_bug.cgi?id=61073

    Monday, December 18, 2017 4:46 PM