share

UIDocumentInteractionController broken in iOS 8

主宰稳场 提交于 2019-12-05 20:14:53
The related code below worked perfect when i was building for iOS 7, but it seems now in iOS 8, it's not working properly. By properly, I mean in the sense where it's not actually sending the file or whatever to the chosen app. Example: If I selected Mail, it would open the mail app with the image or zip I chose in the text field. Now it won't send and it takes forever to call/dismiss the UIDocumentInteractionController. What am I doing wrong? - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [self.tableView deselectRowAtIndexPath:indexPath animated

How to show all share options in android?

♀尐吖头ヾ 提交于 2019-12-05 19:40:14
I am developing an Android app and want to share some text by opening all the share options available in device. But currently the list is showing Email, bluetooth, Gmail and messaging. Other apps like BBC news are showing more options in the same device like Bump, Picasa, and others. How to show all available options and handle them? I am using this: Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.setType("text/vcard"); sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,mailBody); startActivity(Intent.createChooser(sharingIntent,"Share using")); and

How to catch Android share intents limited to specific URLs using intent-filter?

∥☆過路亽.° 提交于 2019-12-05 18:08:45
问题 I can hook my app into the "Share page" feature using the following intent-filter: <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> But I would like to go a little further and limit the filter to intents with specific URLs in them, for example URL of a YouTube video. I tried something like this but it doesn't work: <intent-filter> <action android:name="android.intent.action

Error parsing input URL, no data was scraped. only with new pages on my site

↘锁芯ラ 提交于 2019-12-05 16:19:52
The problem i have is that i own a website where other people can post stuff ,creating new pages on my domain, but the problem that occured today is that all the new post pages created today are malfunctioning , sharing is not loading thumbnail picture and title and so on, but the weird this is that all the posts(new pages) created before today are all working fine What caused an error to occur out of nowhere? I also cannot debug any of the URL's of my website as the same error: Error parsing input URL, no data was scraped The website im having problems with is here http://www.vabameedia.ee/vm

Detect if share UI is supported in current device (UWP)

余生长醉 提交于 2019-12-05 15:17:45
I have created a UWP app for windows 10 devices using c#/xaml. In the app, i have a share functionality that calls DataTransferManager.ShowShareUI() This works as expected on desktop, tablet and mobile devices. But on my xbox, the above method does not launch the share UI. Nor does it throw any exceptions. After searching online a bit, I found this article that says share contract is not supported on xbox. And no share UI is displayed. But this gives a bad user experience. So I have 2 options now Hide the share button, if the device is an xbox Or when user clicks on share, show a popup that

In-app purchases: Share user In-App purchases between Android and iOS

℡╲_俬逩灬. 提交于 2019-12-05 14:43:29
问题 I'm planning to add In-App purchases to my Productivity app. Enhanced features are purchase products (e.g., freemium). I would like to have user access to purchased feature on both Android and iOS, if he has purchased on any one platform. Technically I plan to store purchase information on server and have it retrieved whenever user logs-in on either device, and unlock the feature if already purchased. Is this allowed in both iOS and Android? Apple App Store Review Guidelines on Section 11

Unable to add com.facebook.share.widget.Sharebutton to Layout XML

China☆狼群 提交于 2019-12-05 11:40:23
I am trying to use Facebook SDK in Android to Share Content Direction from my app. I'm using the following code from here on Facebook Docs : ShareLinkContent content = new ShareLinkContent.Builder() .setContentUrl(Uri.parse("http://www.focusoutdistractions.com/")) .build(); ShareButton shareButton = (ShareButton) rootView.findViewById(R.id.ibtn_twshare); shareButton.setShareContent(content); Question is - In the XML file, I need to add com.facebook.share.widget.Sharebutton to the XML but it is not getting recognized. Is com.facebook.share.widget.Sharebutton the correct XML element to add for

Getting which users shared a post

白昼怎懂夜的黑 提交于 2019-12-05 10:14:41
With the graph api, when I query for the feed of a user or page, there are some posts that have been shared by users, and I can see the data about the number of shares within the data section of one entity: "shares": { "count": 2 }, When browsing facebook, on that post, when I click on the icon that represents "show shares", something pops up that lets me see some users that shared the post, according to the comment "You can see only shares that are public or from friends." So is there a way to get the user data from the shares with the graph api? The API doesn't provide information about

FBSDKShareLinkContent is not setting the contentDescription and contentTitle

只谈情不闲聊 提交于 2019-12-05 10:00:50
问题 I am trying to share a link on the Facebook using FBSDKShareLinkContent . I have set the URL, description and title. SDK is automatically populates the title and description by information scraped from the contentURL . But I want to set custom title and description that I have given in code. Is there anyway to avoid this behaviour? FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; [content setContentTitle:@"Testing title"]; [content setContentDescription:@"Testing

Android share intent Twitter: How to share only by Tweet or Direct Message?

十年热恋 提交于 2019-12-05 09:07:19
I need to share an image via only Tweet. Here is my code Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType("image/*"); if (mInsertableToGallery) { mInsertableToGallery = false; mInsertedImagePath = MediaStore.Images.Media.insertImage(getContentResolver(), mShareImage, getResources().getString(R.string.app_name) + System.currentTimeMillis(), getResources().getString(R.string.app_name)); } // share only 5 specific apps: List<Intent> targetedShareIntents = new ArrayList<>(); List<ResolveInfo> resInfos = getPackageManager().queryIntentActivities(shareIntent, 0); if (