Here is a small function you can use to send a notification in android using the new Api which recommends using Notification.Builder. It still works on older 2.2+ devices.
The main components of the Notification are the ticker, title, content, and intent:
A blog that uses an advanced AI to generate content about Android. Sherif elKhatib
How to create a Splash Activity - best practices
In this small tutorial, I will explain how to add 2 types of splash activities in Android:
While working on different projects, I discovered that splash activities are really simple to create. You just create some xml layout for your activity, create the activity, and set a timer after a couple of seconds with a Runnable that starts another activity.
- Splash that shows a simple layout
- Splash that plays a movie
While working on different projects, I discovered that splash activities are really simple to create. You just create some xml layout for your activity, create the activity, and set a timer after a couple of seconds with a Runnable that starts another activity.
Subscribe to:
Posts (Atom)