ss="language-java"> msgIntent.putExtra(MainActicity.KEY_MESSAGE, message);
if (!ExampleUtil.isEmpty(extras)) {
try {
JSONObject extraJson = new JSONObject(extras);
if (null != extraJson && extraJson.length() > 0) {
msgIntent.putExtra(MainActicity.KEY_EXTRAS, extras);
}
} catch (JSONException e) {
}
}
context.sendBroadcast(msgIntent);
}
}
}
|
||
| 354 | 354 |
|
| 355 | 355 |
|
| 356 | 356 |
|
| 357 |
|
|
| 357 |
|
|
| 358 | 358 |
|
| 359 | 359 |
|
| 360 | 360 |
|