Android Studio : App crashes if i use explicit intent to view my second activity which contains maps activity

  Kiến thức lập trình

Basically I am a newbie in Mobile Development and one day i wanted to test whether upon a button click in one activity shifts you in to another activity , yep it can be done but for simple things, i wanted to check by using this code : , in the second activity i could just display my map with lat and lng imported from the main activity using intent extras … But what you know the app crashes every time i click the button

I searched the Internet for the problem but it always shows me the result where someone is trying to open Google maps application in that matter , i dont want that , i want it to display in my app

New contributor

Rayyan Masood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.