これはAndroid Developer's Websiteからのものです
IntentFilter ndef = new IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
try {
ndef.addDataType("*/*"); /* Handles all MIME based dispatches.
You should specify only the ones that you need. */
}
catch (MalformedMimeTypeException e) {
throw new RuntimeException("fail", e);
}
intentFiltersArray = new IntentFilter[] {ndef, };
ここで、intentFiltersArray[0] = ndef. intentFiltersArray[1]それ以降はどうですか?上記のコードで ,afterがあるとはどういう意味ですか?ndef
繰り返しますが、別のコード例があります
techListsArray = new String[][] { new String[] { NfcF.class.getName() } };
ここでどのようにtechListsArray[][]初期化されますか? 私は推測しtechListsArray[0][0]=NfcF.class.getName()ています(どちらがそうでNfcFはないでしょうか?)が、他の要素はどうですか?それとも、単一の要素しかありませんか?