このコードは、ネイティブの Android システムを備えたプレーンな Google デバイスで動作します。しかし、htc センス デバイスのリストには MMS アプリがなく、Motorola Blur などについてはわかりません。
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("image/png");
emailIntent.putExtra(Intent.EXTRA_STREAM, uri);
context.startActivity(Intent.createChooser(emailIntent, context.getString(R.string.send_intent_name)));
このコードは htc の意味で機能しますが、セレクターからではなく、私が本当に必要としているものです:
Intent sendIntent = new Intent("android.intent.action.SEND_MSG");
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
sendIntent.setType("image/png");
context.startActivity(sendIntent);
しかし、このコード サンプルを組み合わせる方法がわかりません。また、Htc Sense ui をプログラムで決定する方法もわかりません。さまざまなタイプのデバイスをサポートするのは正しい方法ですか?
回答ありがとうございます。