This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 194
/
Constants.java
executable file
·55 lines (45 loc) · 1.93 KB
/
Constants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package nfc.sample.nfctransaction;
/*
* Copyright (c) 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import net.rim.device.api.ui.Color;
public class Constants {
public static String VERSION = "1.2.1";
public static final int SE_SIM=0;
public static final int SE_EMB=1;
public static String [] SE_NAMES = {"SIM","EMBEDDED"};
public static final byte[] DEFAULT_AID = { 0x6E, 0x66, 0x63, 0x74, 0x65, 0x73, 0x74, 0x30, 0x31 };
public static final byte[] DEFAULT_APDU = { (byte)0x80, 1, 0, 0};
public static long UI_IS_RUNNING = 0xcb4b95cab37dbc72L;
public static final int BACKGROUND_COLOUR = Color.BLACK;
// navigation
public static final int INDEX_CE = 0;
public static final int INDEX_CLEAR = 1;
public static final int INDEX_CLOSE = 2;
public static final int INDEX_STATUS = 3;
public static final int INDEX_KILL = 4;
// LEDs
public static final int LED_OFF = 0;
public static final int LED_ON = 1;
public static final int LED_ERR = 2;
// buttons
public static final int BTN_DEFAULT = 0;
public static final int BTN_CE_ON = 0;
public static final int BTN_CE_OFF = 1;
public static final int BTN_SELECT_OFF = 1;
public static final int BTN_SELECT_ON = 0;
public static final String AID_SPACE = "--.--.--.--.--.--.--.--.--";
public static final String READY = "Ready";
}