here i tried to share the app data in hyperlink(html format) through intent.but if i choose google+ icon in share dialog, i am not getting hyperlink rather it shows just like a normal text.But it works well if i choose gmail. please help me to get it ? this is my code:
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/png");
share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(imageFile));
share.putExtra(Intent.EXTRA_SUBJECT, mainActivity.getString(R.string.map_from_latlongo));
if (permaLinkStr != null) {
String[] twoStrings = permaLinkStr.split(":");
String permaLinkHttp = twoStrings[1];
String permaLinkHTML = String.format("<p><body>To open LatLonGO with this map click <a href='http://com.wedoit.latlongo:3513/%s'>here</a></body></p>", permaLinkHttp);
share.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(permaLinkHTML);
mainActivity.startActivity(Intent.createChooser(share, mainActivity.getString(R.string.title_dlg_share_map)));
and my manifest file data is:
<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:host="com.wedoit.latlongo"
android:port="3513"
android:scheme="http" />
</intent-filter>
0 comments:
Post a Comment