I'm making apps just to test some functions for Android and would like to know how to create notifications in the status bar.
My Java code and a default code that only calls the XML file:
package com.bandicootapps.nav;
import android.app.*;
import android.os.*;
import android.view.*;
import android.webkit.*;
import android.widget.*;
public class MainActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
What do I add to when the application starts a notification is created? I would also like you to have an icon in that notification.