Skip to content

Instantly share code, notes, and snippets.

View AlexSuvorov2k's full-sized avatar
🌴
On vacation

AlexS. AlexSuvorov2k

🌴
On vacation
  • Russia, Izhevsk
View GitHub Profile
@AlexSuvorov2k
AlexSuvorov2k / gist:c55c05e4ba9ebd5aef3351928db04dc6
Created September 17, 2018 07:48
Android 8 notification example
private void sendNotificationSos(String title, String msg, boolean sound, JSONObject params) {
mNotificationManager = (NotificationManager)
this.getSystemService(Context.NOTIFICATION_SERVICE);
/*Intent intent = new Intent(this, HelpMapActivity.class);
try {
intent.putExtra("lat", params.getString("lat"));
intent.putExtra("lon", params.getString("lon"));
intent.putExtra("car_data", params.getString("car_data"));
} catch (JSONException e) {