Home | History | Annotate | Download | only in notificationshowcase
      1 // dummy notifications for demos
      2 // for anandx (at) google.com by dsandler (at) google.com
      3 
      4 package com.android.example.notificationshowcase;
      5 
      6 import android.app.Activity;
      7 import android.content.ComponentName;
      8 import android.content.Intent;
      9 import android.os.Bundle;
     10 
     11 public 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