Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. NotificationCompat.Builder mBuilder =
  2. new NotificationCompat.Builder(this)
  3. .setSmallIcon(R.drawable.ic_launcher)
  4. .setContentText("Import the unzipped Android project into Eclipse by selecting File")
  5. .setContentTitle(getApplicationContext().getString(R.string.app_name))
  6. .setContentIntent(notifyIntent);
  7.  
  8. NotificationCompat.Builder mBuilder =
  9. new NotificationCompat.Builder(this)
  10. .setSmallIcon(R.drawable.ic_launcher)
  11. .setContentTitle(getApplicationContext().getString(R.string.app_name))
  12. .setContentIntent(notifyIntent);
  13.  
  14. NotificationCompat.BigTextStyle textStyle = new NotificationCompat.BigTextStyle();
  15. textStyle.bigText("Import the unzipped Android project into Eclipse by selecting File");
  16. mBuilder.setStyle(textStyle);
  17. NotificationManager mNotifyMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
  18. mNotifyMgr.notify(mNotificationId, mBuilder.build());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement