A
AC Question
I'm using zxing library in Android, and i get content from scanResult type of IntentResult, but from this scanResult i need to know what kind of content is it (if it is a SMS i need to open SMS window, if it is an email I need to open email), also for example when i open email, i need to fill To, Subject, and Body fields.
Here is my code:
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
IntentResult scanResult IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
if (scanResult != null) {
String content = intent.getStringExtra("SCAN_RESULT");}
Here is my code:
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
IntentResult scanResult IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
if (scanResult != null) {
String content = intent.getStringExtra("SCAN_RESULT");}