这是我的代码,发送一个简单的文本
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(android.content.Intent.EXTRA_TEXT,"Download this App");
intent.setPackage("com.snapchat.android");
startActivity(Intent.createChooser(intent, "Send Via Snapchat&
我已经卸载了一个即时通讯应用程序,并再次尝试在我的手机上重新安装它,但我得到了下面的错误。可能的原因是什么? $ adb shell am start -n "com.example.riseapp/com.example.riseapp.MainActivity" -a
android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "com.example.riseapp/com.example.riseapp.MainAct