EasyManua.ls Logo

Motorola MC40 - Intent Overview

Motorola MC40
203 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4.6.4.1IntentOverview
Basicdataformatting-AllowscongurationofanydataformattingfortherelatedOutputPlug-in.Whenthe
plug-inisdisabledanydataispassedonwithoutmodication.
Enabled-EnablesordisablesBasicDataFormatting.Acheckinthecheckboxindicatesthatitisenabled
(default-enabled).
Prextodata-Addcharacterstothebeginningofthedatawhensent.
Sufxtodata-Addcharacterstotheendofthedatawhensent.
Senddata-Settotransferthecaptureddatatotheforegroundapplication.Disablingthisoptionpreventsthe
actualdatafrombeingtransmitted.However,theprexandsufxstrings,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,throughintentlters.Sincethe
systemmustlearnwhichintentsacomponentcanhandlebeforeitlaunchesthecomponent,intentltersare
speciedinthemanifestas<intent-lter>elements.Acomponentmayhaveanynumberoflters,eachone
describingadifferentcapability.Forexample,ifthemanifestcontainsthefollowing:
<intent-filter...>
<actionandroid:name=”android.intent.action.DEFAULT”/>
<categoryandroid:name=”android.intent.category.MAIN”/>
</intent-filter>
IntheIntentoutputplug-inconguration,theIntentactionwouldbe:
android.intent.category.DEFAULT
andtheIntentcategorywouldbe:
android.intent.category.MAIN.
TheIntentdeliveryoptionallowsthemethodbywhichtheintentisdeliveredtobespecied.Thedelivery
mechanismsareSendviastartActivity,SendviastartServiceorBroadcastintent.
ThedecoderelateddataaddedtotheIntent’sbundlecanberetrievedusingtheIntent.getStringtExtra()
andIntent.getSerializableExtra()calls,usingthefollowingStringtags:
StringLABEL_TYPE_TAG=“com.motorolasolutions.emdk.datawedge.label_type”;
Stringcontainsthelabeltypeofthebarcode.
MN000112A01-September2013
4-19

Table of Contents

Other manuals for Motorola MC40

Related product manuals