4.6.4.1IntentOverview
•Basicdataformatting-AllowscongurationofanydataformattingfortherelatedOutputPlug-in.Whenthe
plug-inisdisabledanydataispassedonwithoutmodication.
–Enabled-EnablesordisablesBasicDataFormatting.Acheckinthecheckboxindicatesthatitisenabled
(default-enabled).
–Prextodata-Addcharacterstothebeginningofthedatawhensent.
–Sufxtodata-Addcharacterstotheendofthedatawhensent.
–Senddata-Settotransferthecaptureddatatotheforegroundapplication.Disablingthisoptionpreventsthe
actualdatafrombeingtransmitted.However,theprexandsufxstrings,ifpresent,arestilltransmitted
evenwhenthisoptionisdisabled(default-enabled).
–Sendashex-Settosendthedatainhexadecimalformat.Acheckinthecheckboxindicatesthattheplug-in
isenabled(default-disabled).
–SendTABkey-Settoappendatabcharactertotheendoftheprocesseddata.Acheckinthecheckbox
indicatesthattheplug-inisenabled(default-disabled).
–SendENTERkey-SettoappendanEntercharactertotheendoftheprocesseddata.Acheckinthe
checkboxindicatesthattheplug-inisenabled(default-disabled).
4.6.4.1IntentOverview
ThecorecomponentsofanAndroidapplication(itsactivities,services,andbroadcastreceivers)areactivatedby
intents.Anintentisabundleofinformation(anIntentobject)describingadesiredaction-includingthedatatobe
actedupon,thecategoryofcomponentthatshouldperformtheaction,andotherpertinentinstructions.Android
locatesanappropriatecomponenttorespondtotheintent,launchesanewinstanceofthecomponentifone
isneeded,andpassesittheIntentobject.
Componentsadvertisetheircapabilities,thekindsofintentstheycanrespondto,throughintentlters.Sincethe
systemmustlearnwhichintentsacomponentcanhandlebeforeitlaunchesthecomponent,intentltersare
speciedinthemanifestas<intent-lter>elements.Acomponentmayhaveanynumberoflters,eachone
describingadifferentcapability.Forexample,ifthemanifestcontainsthefollowing:
<intent-filter...>
<actionandroid:name=”android.intent.action.DEFAULT”/>
<categoryandroid:name=”android.intent.category.MAIN”/>
</intent-filter>
IntheIntentoutputplug-inconguration,theIntentactionwouldbe:
android.intent.category.DEFAULT
andtheIntentcategorywouldbe:
android.intent.category.MAIN.
TheIntentdeliveryoptionallowsthemethodbywhichtheintentisdeliveredtobespecied.Thedelivery
mechanismsareSendviastartActivity,SendviastartServiceorBroadcastintent.
ThedecoderelateddataaddedtotheIntent’sbundlecanberetrievedusingtheIntent.getStringtExtra()
andIntent.getSerializableExtra()calls,usingthefollowingStringtags:
•StringLABEL_TYPE_TAG=“com.motorolasolutions.emdk.datawedge.label_type”;
–Stringcontainsthelabeltypeofthebarcode.
MN000112A01-September2013
4-19