Android Nfc Start Service
I'm curious if Android NFC service allows the developer to start a Service (or IntentService for that matter) when NFC tag is scanned? From Android Developers: When a device scans
Solution 1:
Although not the direct method, you could have a barebones Activity
that will immediately start a service, then quit:
@Override
public void onCreate(Bundle savedInstanceState) {
Context con = getApplicationContext();
Intent srv = new Intent(con, TargetService.class);
con.startService(srv);
finish();
}
Post a Comment for "Android Nfc Start Service"