blob: 867b8bbc59d58ac0c640ca50adc9f2dcfb8f50ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.android.nfc;
import android.app.Application;
import android.os.UserHandle;
import android.util.Log;
public class NfcApplication extends Application {
public static final String TAG = "NfcApplication";
NfcService mNfcService;
public NfcApplication() {
}
@Override
public void onCreate() {
super.onCreate();
if (UserHandle.myUserId() == 0) {
mNfcService = new NfcService(this);
}
}
}
|