Answers for "check if intent has extras"

C++
1

check if intent has extras

Intent intent = getIntent();

if (intent.hasExtra("bookUrl")) {
    bookUrl = b.getString("bookUrl");
} else {
   // Do something else
}
Posted by: Guest on May-18-2020

Browse Popular Code Answers by Language