Goal: Call method from another activity (dialog) and return result the user chooses
Note: Ive read as many articles as I can on going to other activities, as well as SO posts on this error. I have tried the solutions from about 8 of them and I am just stuck at this point.
Problem:
I am getting the following error:
Ive looked at the manifest, but it doesnt have any of the projects activities so Im not sure why thats even a suggestion. The activity I am calling IS in the CSPROJ file.
I'm also not sure what the HEX part is of the explicit activity class
I get the same error when I try it this way:
Intent intent;
if (item is Ph)
{
intent = new Intent(this, typeof(CveActivity));
intent.PutExtraMItem(item);
StartActivityForResult(intent, PH_REQUEST_CODE);
}
What Ive tried:
- StartActivity
- StartActivityForResult
- Calling the method of that activity
- Instantiating an object and calling the method of that activity/class
- Checked that this does exist in the csproj file
Based on the error log, you can try to add
Activitytag to your activities(e.g.CveActivity).I created a demo and achieved this function, you can refer to the following code:
MainActivity.cs
activity_main.xml
SecondActivity.cs
second_layout.xml