share

Share link on Google+

北城余情 提交于 2019-11-30 06:17:17
问题 Is it possible to share/post to Google+ without using the +1 button? e.g. Like a normal tweet button works with a url link: http://twitter.com/share?url=httpetcetcetc 回答1: Yes, you can. https://plus.google.com/share?url=YOUR_URL_HERE Edit: It works only with eff.org. Edit: As of March 2012 it works on all sites. Documentation for this sharing method is available on the Google Developers site. 回答2: New Google share link: http://plus.google.com/share?url=YOUR_URL For secure connection: https:/

Adding a Google Plus (one or share) link to an email newsletter

徘徊边缘 提交于 2019-11-30 06:08:03
问题 I am trying to find a way to embed a share/+1 link for Google+ in a Newsletter, much like the Facebook share and tweeter tweet links can be embedded in a newsletter, which can be achieved with the following two urls: https://www.facebook.com/sharer.php?u=[URL]&t=[TEXT] http://twitter.com/intent/tweet?source=sharethiscom&text=[TEXT]&url=[URL] Is there a similar functionality available for Google Plus? All I could find on my own, is the Google+ button, which unfortunately uses JavaScript and

How to share a file in android Programatically

让人想犯罪 __ 提交于 2019-11-30 05:05:40
I want to share a file(.pdf,.apk etc) using share Intent, I searched google but I find only the code for sharing Image Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(path); sharingIntent.setType("image/png"); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, "Share image using")); Please help to solve this problem You use the same code, you just change the MIME type for the type of data you wish to share. If you wish to share anything regardless of type, use */* To keep your code pragmatic, use

How to send a photo to Instagram using my Android app?

廉价感情. 提交于 2019-11-30 03:59:18
My app take photos and I want to share in Instagram. My app save the image in this directory File storagePath = new File(Environment.getExternalStorageDirectory() + "/DCIM/Camera/tubagram"); Now I'm trying to get the last picture I taked to share in Instagram using this code Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType("image/*"); final ContentResolver cr = getContentResolver(); final String[] p1 = new String[] {MediaStore.Images.ImageColumns._ID, MediaStore.Images.ImageColumns.DATE_TAKEN}; Cursor c1 = cr.query(MediaStore.Images.Media.EXTERNAL

iOS 8 Share extension loadItemForTypeIdentifier:options:completionHandler: completion closure not executing

无人久伴 提交于 2019-11-30 00:52:13
I'm using the loadItemForTypeIdentifier:options:completionHandler: method on an NSItemProvider object to extract a url from Safari via a Share extension in iOS 8. In Objective-C, this code and works and the block runs. [itemProvider loadItemForTypeIdentifier:(@"public.url" options:nil completionHandler:^(NSURL *url, NSError *error) { //My code }]; In Swift, it looks very similar, however the closure doesn't run. Also, itemProvider.hasItemConformingToTypeIdentifier("public.url") returns YES so there must be a valid object to parse the url from inside the itemProvider . itemProvider

android youtube: share a youtube video TO my app?

我只是一个虾纸丫 提交于 2019-11-30 00:13:29
The built in YouTube App for tablets has a sharing-option. For example: I watch a video in the YouTube app and click the button to share . Bluetooth, Googlemail, and Dropbox appear for me. I wonder how i can list my app there ? Which intent-filter has my app to have? How do i get the video url then? Any idea? Thanks. This worked for me. Add this intent filter to your manifest file to make your application appear in the share list of the youtube application. <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data

Default Sharing in iOS 7

这一生的挚爱 提交于 2019-11-29 20:44:46
I have seen this format (Image shown below) of share option in most of the iOS applications that support iOS 7. Is there a default code/framework available to implement this share option as it is shown in the image below? Abizern What you are looking for is the UIActivityViewController . Since you asked a general question I can't do more than give you a link to the documentation sjaak bakker In addition to the accepted answer, a small piece of example code - (void)shareText:(NSString *)text andImage:(UIImage *)image andUrl:(NSURL *)url { NSMutableArray *sharingItems = [NSMutableArray new]; if

iOS share image AND text to WhatsApp

核能气质少年 提交于 2019-11-29 20:37:45
I have googled, and get some solutions, it seems the only possible way is thru UIDocumentInteractionController . I have found the result that able to share text ONLY, also found result that share image ONLY. But what I want is share BOTH . I know this question may be duplicated, I just wanted to make it clear, here is the screenshot... (This is shared from Android) Gauraw You can use UIActivityViewController to share image , text or URL .Here is a small example : NSString *textToShare = @"Enter your text to be shared"; UIImage * image = [UIImage imageNamed:@"imagename"]; NSArray

Eclipse: share code among multiple projects

若如初见. 提交于 2019-11-29 17:50:39
问题 I have different projects in Eclipse (java me midlets) which all need to share code. Currently I duplicate things, but this is not ideal. What is the best way to do this? Thanks! EDIT: I tried to add another project in the Build Path, but then, when running the Midlet in a Emulator, I get the following ERROR: Uncaught exception java/lang/NoClassDefFoundError: clientlibrary/ov9292/Ov9292Client. 回答1: You can create a Java Project which will contain the shared code and have other projects

addthis share vs custom share button

房东的猫 提交于 2019-11-29 17:48:45
i need to add to my website a share-feature. this php page should allow users to share my webiste on the social network, but i need to set a custom url, title, description and image. i have try with addthis share buttons, but i m not sure that is possibile to fully customize the buttons... right? there are other services like that? or in my case is better to add share button with facebook api, twitter api,..? this is the addthis share code: <div class="addthis_toolbox addthis_default_style addthis_32x32_style"> <a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_2"><