|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simalliance.openmobileapi.SEService
public class SEService
The SEService realises the communication to available Secure Elements on the device. This is the entry point of this API. It is used to connect to the infrastructure and get access to a list of Secure Element Readers.
Nested Class Summary | |
---|---|
static interface |
SEService.CallBack
Interface to receive call-backs when the service is connected. |
Constructor Summary | |
---|---|
SEService(android.content.Context context,
SEService.CallBack listener)
Establishes a new connection that can be used to connect to all the Secure Elements available in the system. |
Method Summary | |
---|---|
static android.content.Intent |
createExplicitFromImplicitIntent(android.content.Context context,
android.content.Intent implicitIntent)
Android L (lollipop, API 21) introduced a new problem when trying to invoke implicit intent, "java.lang.IllegalArgumentException: Service Intent must be explicit" If you are using an implicit intent, and know only 1 target would answer this intent, This method will help you turn the implicit intent into the explicit form. |
protected java.lang.String[] |
getPcscReadersName()
|
Reader[] |
getReaders()
Returns the list of available Secure Element readers. |
boolean |
isConnected()
Tells whether or not the service is connected. |
protected void |
setNfcTag(android.nfc.Tag tag)
|
protected void |
setPcscReaderName(java.lang.String name)
|
void |
shutdown()
Releases all Secure Elements resources allocated by this SEService. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SEService(android.content.Context context, SEService.CallBack listener)
true
.
context
- the context of the calling application. Cannot be
null
.listener
- a SEService.CallBack object. Can be null
.Method Detail |
---|
public static android.content.Intent createExplicitFromImplicitIntent(android.content.Context context, android.content.Intent implicitIntent)
context
- implicitIntent
- - The original implicit intent
public boolean isConnected()
true
if the service is connected.protected java.lang.String[] getPcscReadersName()
protected void setPcscReaderName(java.lang.String name)
protected void setNfcTag(android.nfc.Tag tag)
public Reader[] getReaders()
public void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |