share

FB.ui popup window doesn't close

ぐ巨炮叔叔 提交于 2019-12-04 01:46:51
问题 The initialization code: FB.init({ appId: '123456789012345', channelUrl: 'http://localhost/Some/Url/FacebookChannel', status: true, cookie: true, oauth: true, xfbml: true }); The following code is called with an onclick: FB.ui({ method: 'feed', name: settings.facebookShareName, link: settings.facebookLinkUrl, caption: settings.facebookShareCaption, description: settings.facebookShareDescription, message: message, display: 'popup' }); This code works fine in FF and Chrome, and mostly works in

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

微笑、不失礼 提交于 2019-12-04 01:27:34
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 have this explained. Points "11.1/11.2" and "11.14" sounds conflicting (or I'm missing something.). On

FBSDKShareLinkContent is not setting the contentDescription and contentTitle

房东的猫 提交于 2019-12-04 00:16:48
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 description."]; content.contentURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://www.google.co

Android share app VIA etc

こ雲淡風輕ζ 提交于 2019-12-03 23:19:55
I saw in many apps this.. When you click on a menu, than an other menu show up, and you can share your app VIA e-mail, twitter, bluetooth, facebook, etc. How can i do this? You can use the SEND intent action to share a market uri pointing to your app. The chooser will list any installed app that has declared it can share data. Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_SUBJECT, "App Name"); intent.putExtra(Intent.EXTRA_TEXT, "Check out this cool app http://market.android.com/details?id=com.example.yourpackagename"); Intent chooser

Android Share custom file

前提是你 提交于 2019-12-03 22:19:46
问题 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

Getting audio file path or URI from mediastore

坚强是说给别人听的谎言 提交于 2019-12-03 17:13:54
I am making an application which lists all the songs on the device onto the screen and clicking on them opens a sharing intent where the songs / audio file can be shared across various devices through different method like Bluetooth, WhatsApp etc. But I am not able to get the file path or location of the audio file from the mediastore. This is how I am getting my songs- public void getSongList() { //retrieve song info ContentResolver musicResolver = getActivity().getContentResolver(); Uri musicUri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; Cursor musicCursor =

How to get who and when a user shared a Facebook post

谁说胖子不能爱 提交于 2019-12-03 17:00:38
For my Facebook posts my friends share (not likes) I would like get who shared it and when. Using the graph api I can get the like or comment information and the number of times a post has been shared. What I am looking for is a graph api call or Facebook fql query for shares which returns a result set similar to this: data": [ { "id": "user_id_1", "name": "Username 1", "created": "some date" }, { "id": "user_id_2", "name": "Username 2", "created": "some other date" } ] I am also looking for the exact thing for long time now. Since Facebook shows the list of users who shared the post, I was

Releasing Windows file share locks

筅森魡賤 提交于 2019-12-03 14:31:28
问题 This problem crops up every now and then at work. Our build machine can have it's files accessed via a normal windows file share. If someone browses a folder remotely on the machine, and leaves the window open overnight, then the build fails (as it has done now). The explorer window left opened points at one of the sub folders in the source tree. The build deletes the source, and does a clean checkout before building. The delete is failing. Right now, I'd like to get the build to work. I'm

Mime type for .txt files?

梦想与她 提交于 2019-12-03 14:17:53
问题 I´m trying to share a .txt file with share intent. If I set "text/plain" as mime type, it reads the content like text not like text file, then the options given in the share menu are Whatsapp, Line, etc.. Does anybody know how to configure the share intent so that the share options are only the programs that are able to send a .txt file (Gmail, Dropbox, etc.. but not Whatsapp..)? Thanks 回答1: You can try the specific mime: text/plain or, the more general text mime: text/* 回答2: simple and

Using NSNetService class to make an SMB tcp ip connection to a folder shared on windows machine

瘦欲@ 提交于 2019-12-03 14:09:07
问题 I have been trying to figure out a way to access my windows shared folder using iPhone. The desired functionality is part of bigger enterprise app I am building. Here is someone who has already asked a similar question but no luck - Does iOS support file operations via SMB? Now, I have found apple developer tutorial called "SimpleNetworkStreams" which employs NSNetService to use x-SNSUpload protocol over tcp by setting type of NSNetService instance to protocol x-SNSUpload._tcp Here is how