You may receive results from apps elsewhere. The result of reading QR and NFC.
In such a case, most write the process in ʻonNewIntent (Intent intent)`.
By the way, there was a situation where I wanted to check the contents of this Intent.
I decided to do my best thinking that PHP could be issued with var_dump
.
public var_dump(Intent intent) {
Bundle extras = intent.getExtras();
if (extras != null && !extras.isEmpty()) {
System.out.println("+ Bundle.toString: " + extras.toString() + "");
for (final String key : extras.keySet()) {
System.out.println("+ Key Name: " + key + "");
System.out.println("+ toString: " + extras.get(key).toString() + "");
}
}
}
Recommended Posts