Postingan

What is Toast in Android?

A Toast is a feedback message. It takes a very little space for displaying while overall activity is interactive and visible to the user. It disappears after a few seconds. It disappears automatically. If user wants permanent visible message, Notification can be used. Another type of Toast is custom Toast, in which images can be used instead of a simple message. In this example “This a simple toast message” is a Toast message which is displayed by clicking on ‘CLICK’ button. Every time when you click your toast message appears. Open “activity_main.xml” file and add a Button to show Toast message in a Constraint Layout. Also, Assign ID to button component as shown in the image and the code below. The assigned ID to the button helps to identify and to use in Java files. android:id="@+id/id_name" Here the given ID is Button01 This will make the UI of the Application. Step 3: Now, after the UI, this step will create the Backend of the App. For this, Open “MainActivity.java” file

My admob banner is not showing up, I have gone through the guide found here

My admob banner is not showing up, I have gone through the guide found here https://firebase.google.com/docs/admob/android/quick-start MainActivity private AdView mAdView; @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     MobileAds.initialize(getApplicationContext(), "ca-app-pub-3940256099942544/6300978111");     mAdView = (AdView) findViewById(R.id.adView);     AdRequest adRequest = new AdRequest.Builder().build();     mAdView.loadAd(adRequest); } My admob banner is not showing up, I have gone through the guide found here https://firebase.google.com/docs/admob/android/quick-start MainActivity private AdView mAdView; @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     MobileAds.initialize(getApplicationContext(), "ca-app-pub-3940256099942544/6300978111");     mAdView =