title: Application crashes after notification
body: <p>*Notification is working fine but problem is it crashed after clicking button
  *It says add @ Add@SuppressWarnings 'deprication' to n
           and
           add @ Add@SuppressWarnings 'deprication' to onclick</p>
  
  <pre><code>public class testInput extends Activity {
  
      Button Setbutton;
      Location location, locationA, locationB;
      LocationManager locationManager;
      NotificationManager nm;
      public static final int uniqueId =1;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.showcoords);
  
          nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
          nm.cancel(uniqueId);
  
          Setbutton = (Button) findViewById(R.id.btnShowLocation);
  
          Setbutton.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  Intent intent = new Intent(testInput.this, goIn.class);
                  PendingIntent pi = PendingIntent.getActivity(getBaseContext(),
                          0, intent, 0);
                  String body = "This is a Notification";
                  String title = "Test";
                  Notification n = new Notification(R.drawable.route, body,
                          System.currentTimeMillis());
                  n.setLatestEventInfo(testInput.this, title, body, pi);
                  n.defaults = Notification.DEFAULT_ALL;
                  nm.notify(uniqueId, n);
                  finish();
              }
          });
      }
  
  }
  </code></pre>