Java Code Examples for com.gianlu.commonutils.logs.LogsHelper#sendEmail()
The following examples show how to use
com.gianlu.commonutils.logs.LogsHelper#sendEmail() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainActivity.java From PretendYoureXyzzyAndroid with GNU General Public License v3.0 | 6 votes |
@Override public boolean onDrawerMenuItemSelected(@NonNull BaseDrawerItem<DrawerItem> item) { switch (item.id) { case HOME: return true; case STARRED_CARDS: StarredCardsActivity.startActivity(this); return true; case USER_METRICS: MetricsActivity.startActivity(this); return true; case PREFERENCES: startActivity(new Intent(this, PreferenceActivity.class)); return true; case REPORT: LogsHelper.sendEmail(this, null); return true; } return false; }
Example 2
Source File: MainActivity.java From Aria2App with GNU General Public License v3.0 | 5 votes |
@Override public boolean onDrawerMenuItemSelected(@NonNull BaseDrawerItem<DrawerItem> which) { switch (which.id) { case HOME: refresh(MAIN_WANTS, this); return true; case DIRECT_DOWNLOAD: startActivity(new Intent(this, DirectDownloadActivity.class)); return false; case QUICK_OPTIONS: showDialog(OptionsDialog.getGlobal(true)); return true; case GLOBAL_OPTIONS: showDialog(OptionsDialog.getGlobal(false)); return true; case PREFERENCES: startActivity(new Intent(this, PreferenceActivity.class)); return false; case SUPPORT: LogsHelper.sendEmail(this, null); return true; case ABOUT_ARIA2: AboutAria2Dialog.get().show(getSupportFragmentManager(), null); return true; case ADD_PROFILE: EditProfileActivity.start(this, false); return true; default: return true; } }