1// dummy notifications for demos 2// for anandx@google.com by dsandler@google.com 3 4package com.android.example.notificationshowcase; 5 6import android.app.Activity; 7import android.content.ComponentName; 8import android.content.Intent; 9import android.os.Bundle; 10 11public class NotificationShowcaseActivity extends Activity { 12 private static final String TAG = "NotificationShowcase"; 13 @Override 14 public void onCreate(Bundle savedInstanceState) { 15 super.onCreate(savedInstanceState); 16 setContentView(R.layout.main); 17 Intent intent = new Intent(NotificationService.ACTION_CREATE); 18 intent.setComponent(new ComponentName(this, NotificationService.class)); 19 startService(intent); 20 finish(); 21 } 22} 23