移除全局异常捕获后杀死进程
This commit is contained in:
@@ -368,34 +368,10 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
.setOnBannerClickListener(new OnBannerClickListener() {
|
||||
@Override
|
||||
public void onBannerClick(List datas, int p) {
|
||||
if (true) {
|
||||
/* System.err.println("cache = " + mContext.getCacheDir().getAbsolutePath());
|
||||
String type = "image/*";
|
||||
String filename = "/ztest/myPhoto.jpg";
|
||||
String mediaPath = Environment.getExternalStorageDirectory() + filename;
|
||||
// Create the new Intent using the 'Send' action.
|
||||
Intent share = new Intent(Intent.ACTION_SEND);
|
||||
|
||||
// Set the MIME type
|
||||
share.setType(type);
|
||||
|
||||
// Create the URI from the media
|
||||
File media = new File(mediaPath);
|
||||
Uri uri = FileProvider.getUriForFile(mContext,
|
||||
mContext.getPackageName() + ".fileprovider",
|
||||
media
|
||||
);
|
||||
|
||||
// Add the URI to the Intent.
|
||||
share.putExtra(Intent.EXTRA_STREAM, uri);
|
||||
share.putExtra(Intent.EXTRA_TEXT, "test");
|
||||
// Broadcast the Intent.
|
||||
// share.setPackage("com.whatsapp"); //WhatsApp
|
||||
|
||||
// share = new Intent(Intent.ACTION_VIEW, Uri.parse("https://line.me/R/share?text=test")); //Line
|
||||
mContext.startActivity(Intent.createChooser(share, "Share to"));*/
|
||||
mContext.startActivity(new Intent(mContext, TestActivity.class));
|
||||
return;
|
||||
if (false) {
|
||||
throw new NullPointerException("空指针测试异常");
|
||||
// mContext.startActivity(new Intent(mContext, TestActivity.class));
|
||||
//return;
|
||||
}
|
||||
if (mBannerList != null) {
|
||||
if (p >= 0 && p < mBannerList.size()) {
|
||||
|
||||
Reference in New Issue
Block a user