Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

pen default Mail Application in android studio java

try {
    Intent intent = new Intent(Intent.ACTION_MAIN);
    intent.addCategory(Intent.CATEGORY_APP_EMAIL);
    this.startActivity(intent);
} catch (android.content.ActivityNotFoundException e) {
    Toast.makeText(Dashboard.this, "There is no email client installed.", Toast.LENGTH_SHORT).show();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pen #default #Mail #Application #android #studio #java
ADD COMMENT
Topic
Name
9+9 =