I am developing a PushNotification application for Android in the Android library. I can not start the Android application by clicking on the push push message. I cannot extract the Android application class into the library project to run in the generatePushNotification () method. The following is a snippet of code from a library project.
private static void generateNotification(Context context, String message) { int icon = R.drawable.ic_launcher; long when = System.currentTimeMillis(); NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); Notification notification = new Notification(icon, message, when); String title = context.getString(R.string.app_name);
How to launch an Android application from a library project?
android android-intent push-notification android-library
Karthick
source share