Guest User

Untitled

a guest
Jan 24th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public class MainActivity : AppCompatActivity
  2. {
  3.  
  4. protected override void OnCreate(Bundle savedInstanceState)
  5. {
  6. base.OnCreate(savedInstanceState);
  7. SetContentView(Resource.Layout.activity_main);
  8.  
  9. //Botones y cosas
  10. button.Click += delegate {
  11.  
  12. Intent i = new Intent(this, typeof(SegundaActivity));
  13. StartActivty(i); //<-- Android.Content.ActivityNotFoundException:
  14. // unable to find explicit activity class
  15.  
  16. }
  17. }
  18.  
  19. }
  20.  
  21. public class SegundaActivity : AppCompatActivity{
  22.  
  23. protected override void OnCreate(Bundle savedInstanceState)
  24. {
  25.  
  26. base.OnCreate(savedInstanceState);
  27. SetContentView(Resource.Layout.activity_segunda);
  28.  
  29. }
  30. }
Add Comment
Please, Sign In to add comment