Friday, 15 May 2015

android - Sending Intent using ADB -


I'm following the guide to creating an Android app that listens for a barcode reader here:

I'm trying to debug the barcodescanner.RECVR intention - my phone is connected via USB and I expect debugging because I call ADB devices I can see the device and see the log from the phone. But when I try to use ADB and do broadcast, nothing happens:

  ADB shell is broadcast- a wmsmobileapp.activities.MainActivity -c android.intent .category.DEFAULT -d "Some Data"  

Returns:

  Broadcast: intent {act = wmsmobileapp.activities.MainActivity cat = [android.intent .category.DEFAULT] dat = NOR1-A1-FA-S 1-B1} Broadcast completed: result = 0  

I am very new to Android development, therefore, Broadcast simulator In addition to trying to have went too happy. Is my order wrong or am I missing?

After some testing and error - I detected ADB command:

  Starting ADB shell - one bar codecanner. RECRVR-C androidintent character. Default-N WSMMobile app. MMSMobile app / wmsmobileapp.activities.MainActivity-E com.motorolasolutions.emdk.datawedge.source scanner -e com.motorolasolutions.emdk.datawedge.data_string 508919007526  

No comments:

Post a Comment