アプリに次のボタンがありますが、今押すとアプリがクラッシュします。
Button newButton = (Button)findViewById(R.id.afronden);
newButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
final Uri printFileUri = Uri.parse("http://ipadress/tablet1.txt");
Intent i = new Intent(Intent.ACTION_VIEW);
i.setPackage("com.dynamixsoftware.printershare");
i.setDataAndType(printFileUri,"text/plain");
i.putExtra( "scaleFitToPage", true );
startActivity(i);
printershare プログラムがインストールされ、その名前が正しい (コンソールの pm で確認)。マニフェストにコードを追加する必要がある他の投稿を読みましたが、何がわかりません。マニフェストに追加する必要があるコードを教えてくれるのは誰ですか?