| поискавой системы для электроныых деталей |
|
AN4430 датащи(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4430 датащи(HTML) 22 Page - STMicroelectronics |
|
22 / 42 page ![]() How to create an Android Application for ST dual memories AN4430 22/42 DocID025722 Rev 1 Complementary intent-filter Android system also lets developer to refine the kind of intent he wants to act on. Keeping the NDEF_DISCOVERED message, developer may want to only manage with a MIME type of text/plain: or wants to act on certain URI in the form of http://www.st.com: In case developer wants the activity component been activated on ACTION_TECH_DISCOVERED intent, he must write a XML file to be store in res/xml folder. Name of the file is what the developer wish (ex: nfc_tech_filter.xml). This file lists the technology supported by the component within a tech-list set as follows: Once the XML NFC filter resources is created, the intent-filter on ACTION_TECH_DISCOVERED is: The component activity will be then started by the Android system once a tag is discovered with IsoDep, NfcA, NfcB or Nfcf capabilities. (Note that if the detected TAG gets a NDEF message in and if a component is registered to treat NDEF intent the current application will never receive the ACTION_TECH_DISCOVERED intent.) <intent‐filter> <action android:name="android.nfc.action.NDEF_DISCOVERED"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="text/plain" /> </intent‐filter> <intent‐filter> <action android:name="android.nfc.action.NDEF_DISCOVERED"/> <category android:name="android.intent.category.DEFAULT"/> <data android:scheme="http" android:host="www.st.com"/> </intent‐filter> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <tech‐list> <tech>android.nfc.tech.IsoDep</tech> <tech>android.nfc.tech.NfcA</tech> <tech>android.nfc.tech.NfcB</tech> <tech>android.nfc.tech.NfcF</tech> </tech‐list> </resources> <intent‐filter> <action android:name="android.nfc.action.TECH_DISCOVERED"/> </intent‐filter> <meta‐data android:name="android.nfc.action.TECH_DISCOVERED" android:resource="@xml/nfc_tech_filter" /> |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |