Sulthan Allaudeen · Digital Architect

← All posts

Day 3 Toast Message and Intent

By ·

Day 3 Toast Message and Intent

Toast message should not cost more, We use it to display the server response.

Intent is used to move the Control from one activity to another.

Here's how you can transfer the Intent

Intent intent = new Intent(LoginActivity.this, DashBoardActivity.class);
startActivity(intent);

Here's how you can display a Toast

 

import android.widget.Toast;
Toast.makeText(getApplicationContext(), successMsg, Toast.LENGTH_LONG).show();
 

 

Topics:

Related posts