![]() ![]() ![]() There are two activities: Main activity which has an EditText containing some text field and a button to send the text of it as EXTRA_MESSAGE in an intent to the Second activity which is supposed to display it.Ĭode for the Main activity: package ![]() Whether I run it on my Galaxy S6 with Android 7.0 API 24 or on the virtual Nexus 5X with API 27, the app crashes when it is launching the Second activity to display the message. The app compiles ok (only 1 warning bout NDK is missing a "platforms" directory). I also differ from the suggested compatibility level (I am using Android 7.0 API 24). I was closely following the Android SDK Guide Build your first App and I do it all in Kotlin, not Java. I know this question has been asked before, but since my Android Studio example tutorial app is compiled with a 3 years younger API, and the error looks like having a different cause, I figure it's reason enough to ask it anew. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |