share

How to show an image through an intent being compatible with different apps

巧了我就是萌 提交于 2019-12-01 01:09:19
I'm trying to share an image I have previously saved on disk, sending an Intent.ACTION_SEND . The problem is that I can't find a way to be compatible with different apps, official Gmail app and TweetDeck in my case. The image I want to share is contained in a File : File agendaFile; // its path using getAbsolutePath() -> /data/data/com.mypackage/files/agenda.jpg Option A) using Uri.fromFile Uri agendaUri = Uri.fromFile(agendaFile); // the value -> file:///data/data/com.mypackage/files/agenda.jpg Results Gmail, is the image attatched to the email? NO Tweetdeck, is the image added to the tweet

Android - Share custom link via facebook

ⅰ亾dé卋堺 提交于 2019-12-01 01:04:04
I need to share specific part in my app when user open it , if he download my app it navigate direct to this part (it may be nested fragment). String AppURL = "https://play.google.com/store/apps/details?id=" + getApplicationContext().getPackageName(); String urlToShare = "http://stackoverflow.com/questions/7545254"; // I need custom url to specific part in my app // See if official Facebook app is found boolean facebookAppFound = false; List<ResolveInfo> matches = getPackageManager().queryIntentActivities(intent, 0); for (ResolveInfo info : matches) { if (info.activityInfo.packageName

Android Share custom file

浪尽此生 提交于 2019-12-01 00:34:09
I created my own file extension ( .oli ). If the user clicks on a file with this extension my app starts and loads the included data. This works like expected. The problem is I would like to give the user of my app the opportunity to share a file (Example: filename.oli). I implemented this so far: public void shareFile(){ File file = getShareableFile(); //Creates a .oli-file Intent shareIntent = new Intent(Intent.ACTION_SEND); Uri uri = Uri.fromFile(file); shareIntent.setType("*/*"); //Maybe the problem shareIntent.putExtra(Intent.EXTRA_STREAM, uri); shareIntent.putExtra(android.content.Intent

How do I add my app to the Android 'share photo' option? [duplicate]

时光毁灭记忆、已成空白 提交于 2019-12-01 00:32:26
Possible Duplicate: Android Share Via Dialog For example, when you hit share photo, it gives you a list of options to share through (Instagram, Messaging, Gmail, etc.). I want my app to appear under these 'share' options after it is installed to the device. I tried searching for it on Google, but I'm unfamiliar with any of the terminology so my search result terms are worded too strangely to be specific. Add this intent filter to your activity in the manifest: <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <

How long is Facebook caching the sharing thumbnails?

青春壹個敷衍的年華 提交于 2019-11-30 23:29:47
问题 How long is Facebook caching the sharing thumbnails? I've added a custom thumbnail for my page using: <meta property="og:image" content="/path/to/my/image" /> But on pages my previous image is displayed => it is cached somewhere on FB servers. Any ideas how to flush that cache or how long does it take once FB loads a new image? 回答1: Check the page with Facebook URL Linter, it seems to reload the thumbnails images in the cache. http://developers.facebook.com/tools/lint 回答2: Facebook images are

How can I post link on facebook from android app using FB API?

做~自己de王妃 提交于 2019-11-30 22:32:14
I look all the internet and couldn't find how do I post link with a specific picture on facebook wall using fb sdk\api. I know that this is part of the code that I need to use: Facebook facebookClient = new Facebook("fb_App_id"); Bundle parameters = new Bundle(); parameters.putString("message", "Test Photo"); parameters.putString("link", "https://www.google.com"); parameters.putString("picture", "link to some pictrue"); facebookClient.dialog(MainActivity.this, "stream.publish", parameters, new DialogListener() { @Override public void onFacebookError(FacebookError e) { // TODO Auto-generated

How do I add my app to the Android 'share photo' option? [duplicate]

我的未来我决定 提交于 2019-11-30 20:04:39
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Android Share Via Dialog For example, when you hit share photo, it gives you a list of options to share through (Instagram, Messaging, Gmail, etc.). I want my app to appear under these 'share' options after it is installed to the device. I tried searching for it on Google, but I'm unfamiliar with any of the terminology so my search result terms are worded too strangely to be specific. 回答1: Add this intent filter

Android - Share custom link via facebook

我们两清 提交于 2019-11-30 19:05:30
问题 I need to share specific part in my app when user open it , if he download my app it navigate direct to this part (it may be nested fragment). String AppURL = "https://play.google.com/store/apps/details?id=" + getApplicationContext().getPackageName(); String urlToShare = "http://stackoverflow.com/questions/7545254"; // I need custom url to specific part in my app // See if official Facebook app is found boolean facebookAppFound = false; List<ResolveInfo> matches = getPackageManager()

facebook share link returning 404 redirect error when page exists

喜欢而已 提交于 2019-11-30 17:40:20
Sharing the following link in facebook is returning 404 error page information instead of the page details and link even though the page exists: http://www.kentbusinessangel.co.uk/lucky-achieve-goals?sq=be-excited&src=fb To try and fix the error: I tried encoding the link to enable passing the & and ? correctly (didn't work) I created a redirect from http://www.kentbusinessangel.co.uk/lucky-achieve-goals-be-excited/src-fb to the original url (which works when you use the url in the browser, but still only shows 404 error when sharing on facebook) I created a static page at http://www

Share text and Image together using Facebook SDK in Android

删除回忆录丶 提交于 2019-11-30 15:39:42
I'm using facebook SDK for share text and image in Android.I have used following code and its working for share text but how to share image together.I'm so confused about this.If any know please suggest me. Code: public class MainActivity extends Activity { Facebook facebook = new Facebook("App ID"); EditText edittext; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); edittext = (EditText) findViewById(R.id.revieew); facebook.authorize(this, new DialogListener() { @Override public void onComplete(Bundle