Methods Summary |
---|
android.graphics.Bitmap | loadBitmap(int resId)
BitmapDrawable bd = (BitmapDrawable)getResources().getDrawable(resId);
return Bitmap.createBitmap(bd.getBitmap());
|
private android.app.PendingIntent | makeIntent()
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
return PendingIntent.getActivity(this, 0, intent, 0);
|
private android.app.PendingIntent | makeIntent2()
Intent intent = new Intent(this, StatusBarTest.class);
return PendingIntent.getActivity(this, 0, intent, 0);
|
private android.app.Notification | notificationWithNumbers(int num)
Notification n = new Notification(this,
(num >= 0 && num < kNumberedIconResIDs.length)
? kNumberedIconResIDs[num]
: kUnnumberedIconResID,
null,
System.currentTimeMillis(),
"Notification", "Number=" + num,
null);
n.number = num;
return n;
|
public void | onCreate(android.os.Bundle icicle)
super.onCreate(icicle);
mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE);
mActivityCreateTime = System.currentTimeMillis();
|
protected java.lang.String | tag()
return TAG;
|
protected Test[] | tests()
mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
return mTests;
|
void | timeNotification(int n, java.lang.String label, long time)
mNM.notify(n, new Notification(NotificationTestList.this,
R.drawable.ic_statusbar_missedcall, null,
time, label, "" + new java.util.Date(time), null));
|