以下のリンクのように、カスタム スキームを使用する Android アプリを開発しています。
<activity android:name="com.example.library.activities.CustomSchemeActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="custom" android:host="custom.example.com" android:path="/custom" />
</intent-filter>
</activity>
ユーザーがリンクをクリックすると、たとえばcustom://custom.example.com/custom?parameter=abcd
、CustomSchemeActivity が期待どおりに起動されます。
次に、このアクティビティにデータを送信する必要があります。URLパラメーターを介してすでに送信できます。気になるのですが、データをインテントに POST するとコンテンツを読むことは可能でしょうか? サーバーからハンドセットにデータを POST することはできますか?