1
I’m making apps only to test some functions for Android and would like to know how to create notifications in the status bar.
My Java code and a standard 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 app starts a notification? I’d also like you to have an icon in that notification.
The documentation has a guide complete. You can also see the numerous questions already asked here by searching for the tag
android-notification
– ramaral