4. JAVA File
● Map a Widget in Java:
Class ob=(Class)findViewById(id name in xml);
ex: Button btn=(Button)findViewById(R.id.btn);
● Toast:
Notify some information to User
Syntax:
Toast.makeText(Context(), Text, duration).show();
Context() --> current class
Text --> Message to display
Duration --> duration to display
LENGTH_LONG,LENGTH_SHORT