-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":503,"versionName":"2008181921","enabled":true,"outputFile":"ICSer_V503_2008181921_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V503_2008181921_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":504,"versionName":"2008212009","enabled":true,"outputFile":"ICSer_V504_2008212009_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V504_2008212009_release.apk","properties":{}}]
\ No newline at end of file
import static com.enqualcomm.support.Constants.ACTION_ISCONNECTED;\r
import static com.enqualcomm.support.Constants.ACTION_KEEPSIT_ALARM;\r
import static com.enqualcomm.support.Constants.ACTION_SIT_ALARM;\r
+import static com.enqualcomm.support.Constants.ActionReceivePushTxt;\r
+import static com.enqualcomm.support.Constants.ActionSrvPushTxt;\r
import static com.enqualcomm.support.Constants.DIALOG_ACTION;\r
\r
public class ContextProxy {\r
this.context.sendBroadcast(intent);\r
}\r
\r
+ public void saveMstToSMSDB(String msg){\r
+ Intent intent = new Intent();\r
+ intent.setAction(ActionReceivePushTxt);\r
+ intent.putExtra("txtMsg", msg);\r
+ intent.addFlags(FLAG_ACTIVITY_NEW_TASK);\r
+ this.context.sendBroadcast(intent);\r
+ }\r
public void sendMsgBroadcast(String msg, int msgType) {\r
sendMsgBroadcast(this.context,msg,msgType);\r
-\r
}\r
private static void play_waning_notify(Context context){\r
AudioService.getInstance().play(context.getAssets(), "warning.mp3");\r
e.printStackTrace();\r
}\r
}\r
- Intent intent = new Intent("action.ic.srvPushTxt");\r
+ Intent intent = new Intent(ActionSrvPushTxt);\r
intent.putExtra("msgType", msgType); //0 代表 server下发消息,1代表 SMS消息\r
intent.putExtra("txtMsg", msg);\r
intent.addFlags(FLAG_ACTIVITY_NEW_TASK);\r
e.printStackTrace();\r
}\r
}\r
- Intent intent = new Intent("action.ic.srvPushTxt");\r
+ Intent intent = new Intent(ActionSrvPushTxt);\r
intent.putExtra("msgType", msgType); //0 代表 server下发消息,1代表 SMS消息,2代表有提示音的消息\r
intent.putExtra("txtMsg", msg);\r
intent.addFlags(FLAG_ACTIVITY_NEW_TASK);\r
}\r
}\r
\r
- Intent intent = new Intent("action.ic.srvPushTxt");\r
+ Intent intent = new Intent(ActionSrvPushTxt);\r
intent.putExtra("msgType", msgType); //0 代表 server下发消息,1代表 SMS消息,2代表有提示音的消息\r
intent.putExtra("txtMsg", msg);\r
intent.addFlags(FLAG_ACTIVITY_NEW_TASK);\r