Thursday, January 31, 2019

This is one of my favorites features, it helps you keep track of what is what on your activity, by displaying a popup on you device, this of it as alert on javascript.





1. import the Toast class

import android.widget.Toast;


2. display any message, anywhere within your code to show on device.

Toast.makeText(MainActivity.this, "Hello AppSpaza", Toast.LENGTH_LONG).show();

Note: MainActivity is the name of the class we currently on.















Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © Mdunge Apps - Blogger Templates - Powered by Blogger - Designed by Johanes Djogan -