Project

General

Profile

« Previous | Next » 

Revision 234ab54b

Added by osmith about 4 years ago

IMSIPseudo.java: rename showHello to showMsg

Add msg as parameter.

View differences:

sim-applet/src/org/osmocom/IMSIPseudo/IMSIPseudo.java
55 55
			byte selectedItemId = envHdlr.getItemIdentifier();
56 56

  
57 57
			if (selectedItemId == helloMenuItem) {
58
				showHello();
58
				showMsg(LUCounter);
59 59
			}
60 60
		}
61 61

  
62 62
		if (event == EVENT_EVENT_DOWNLOAD_LOCATION_STATUS) {
63 63
			LUCounter[0]++;
64
			showHello();
64
			showMsg(LUCounter);
65 65
		}
66 66
	}
67 67

  
68
	private void showHello() {
68
	private void showMsg(byte[] msg) {
69 69
		ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
70
		proHdlr.initDisplayText((byte)0, DCS_8_BIT_DATA, LUCounter, (short)0,
71
				(short)(LUCounter.length));
70
		proHdlr.initDisplayText((byte)0, DCS_8_BIT_DATA, msg, (short)0, (short)(msg.length));
72 71
		proHdlr.send();
73 72
		return;
74 73
	}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 48.8 MB)