Android, sending custom SEND intent -
i need send intent sharing link application, standard way send this:
intent sendintent = new intent(); sendintent.setaction(intent.action_send); sendintent.putextra(intent.extra_text, "this text send."); sendintent.settype("text/plain"); startactivity(sendintent);
my problem want have option share application, if choice application share thing, see applications have ability of sharing content , want see app there to, can use definition in manifest:
<intent-filter> <action android:name="android.intent.action.send" /> <category android:name="android.intent.category.default" /> <data android:mimetype="text/plain" /> </intent-filter>
the question is, there way send data on bundle spatial application share? this:
intent sendintent = new intent(); sendintent.setaction(intent.action_send); sendintent.putextra(intent.extra_text, "this text send."); sendintent.putextra(my_extra, extra_data_object); sendintent.settype("text/plain"); startactivity(sendintent);
thanks help.
Comments
Post a Comment