NotificationTestListpublic class NotificationTestList extends TestActivity
Fields Summary |
---|
private static final String | TAG | android.app.NotificationManager | mNM | android.os.Vibrator | mVibrator | android.os.Handler | mHandler | long | mChronometerBase | private Test[] | mTests |
Methods Summary |
---|
private android.app.PendingIntent | makeIntent()
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new android.content.ComponentName(
"com.android.contacts",
"com.android.contacts.ContactsActivity"));
return PendingIntent.getActivity(this, 0, intent, 0);
| private android.app.Notification | notificationWithNumbers(int num)
Notification n = new Notification(this, R.drawable.icon2, null, System.currentTimeMillis(),
"Persistent #2", "Notify me!!!", null);
n.number = num;
return n;
| protected java.lang.String | tag()
return TAG;
| protected Test[] | tests()
mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
return mTests;
|
|