Maybe this warning has to do something with my problem. It says: Exported activity does not require permission UPDATE: Also I noticed that there is a warning in the Manifest file on the line where I open the second activity tag. ![]() : Could not execute the method of the activityĪnd then it points to the call of the startActivity method that I wrote at the beginning of this post.ĭid anyone have a similar problem? Did I make a mistake somewhere? Inclure des options de menu pour ajouter des boutons à la barre dapplication. Utiliser un intent implicite pour accéder au contenu dune autre application. In the log cat I can see the following messages: FATAL EXCEPTION: main Vous découvrirez comment effectuer les actions suivantes : Utiliser un intent explicite pour accéder à une activité spécifique. But when I try to run the app like this and click the button of the UsingIntentActivity the app crashes. So there is an intent-filter and its category is set to DEFAULT. This is achieved by configuring the intent object with the MIME types of the. However in the textbook where I met this example another form of the same method is used: startActivity(new Intent("")) Īnd in the Manifest File a matching custom intent is created (as I understood): Developing Android 10 (Q) Apps Using Android Studio 3.6, Java and Android. I can achieve this using startActivity(new Intent(this, SecondActivity.class)) ![]() When this button is clicked it must lead to the second activity called SecondActivity which will show a text on the screen. ![]() I have a very simple application (an example from a textbook) that consists of 2 activities: The first activity UsingIntentActivity has a button.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |