Broadcast Receivers
Overview The Android system uses broadcasts messages (often are called Intents or Events) to transfer information to applications. The Broadcasts can be sent either by Android apps or, most commonly,…
Overview The Android system uses broadcasts messages (often are called Intents or Events) to transfer information to applications. The Broadcasts can be sent either by Android apps or, most commonly,…
Activity Life Cycle An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care of creating…
Activity_main.xml MainActivity.java
Normal Toast can create only with simple text but we can customize Toast using custom layout. In custom layout we can define the design and pass root view object to…
A dialog is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill the screen and is normally used for…
We have invoked one Activity from another passing an action. Now we will learn how to transfer data. We will make the simplest application. On the first screen we will…
Explicit Intent specifies the component. In such case, intent provides the external class to be invoked. Intent i = new Intent(getApplicationContext(), ActivityTwo.class); startActivity(i); To get the full code of explicit intent,…
Android Intent is the message that is passed between components such as activities, content providers, broadcast receivers, services etc. It is generally used with startActivity() method to invoke activity, broadcast…