import Module之后一般出错自我审查步骤:
1.jar包冲突
2.版本不兼容3.gradle版本不统一
String phoneNumber = "110";
Intent intentPhone = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber));
startActivity(intentPhone);
Intent intent = new Intent();
ComponentName cmp = new ComponentName("com.tencent.mm", "com.tencent.mm.ui.LauncherUI");
intent.setAction(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setComponent(cmp);
startActivity(intent);
//拍照:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);//调用android自带的照相机//photoUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
startActivity(intent);
//listView滚动到会话中最后一个条目的方法