share

Share on LinkedIn with og

╄→尐↘猪︶ㄣ 提交于 2019-12-08 06:33:18
问题 I have rails app. I added og tags for Facebook, google +, and Vkontakte. And I need to add possibility to share to LinkedIn too. But I don't understand why LinkedIn don't pick my OG tags. My html: = tag :meta, property: 'og:url', content: 'https://myapp.com/app' = tag :meta, property: 'og:title', content: 'MyApp' = tag :meta, property: 'og:description', content: 'You can always find a my app !' = tag :meta, property: 'og:image', content: "https://myapp.com#{image_path('backgrounds/desk.jpg')}

Assigning thumb to fancybox's url (image)

六月ゝ 毕业季﹏ 提交于 2019-12-08 06:26:20
问题 This comes after "Direct link to any fancybox", but with URL in address bar. Now that I managed to assign an unique url to each image of my fancybox gallery, I was wondering if by sharing e.g. image #1 url, it would outcome the correct thumb, for example, on Facebook. I'm using the latest fancybox and jquery versions. Here is the Javascript: var thisHash = window.location.hash; $(document).ready(function() { $('.thumbs').fancybox({ prevEffect : 'fade', nextEffect : 'fade', closeBtn : true,

Importing PDF files to app

…衆ロ難τιáo~ 提交于 2019-12-08 04:20:11
问题 I am trying to import a PDF file from other applications, such as mail, but I'm not sure exactly what I should be looking for. I want my user to be able to tap on the share button in a PDF and my app to be listed there as a place that can accept them, such as "Copy to iBooks" Any good tutorials? Or suggestions as to what I should look for? Preferably in Swift Thanks! 回答1: You may use Action Extension for making PDF available in your app Below i have linked Some Tutorials for Action Extension

android.os.FileUriExposedException being caused in Oreo (only!) [duplicate]

你。 提交于 2019-12-08 03:00:17
问题 This question already has answers here : android.os.FileUriExposedException: file:///storage/emulated/0/test.txt exposed beyond app through Intent.getData() (24 answers) Closed 2 months ago . From the Google Play Console, I can see that this exception is only happening on devices with Android 8.0+. android.os.FileUriExposedException: at android.os.StrictMode.onFileUriExposed (StrictMode.java:1975) at android.net.Uri.checkFileUriExposed (Uri.java:2355) at android.content.Intent

share video on whatsapp from my app

人走茶凉 提交于 2019-12-08 00:58:19
问题 i want to Share video ,i have link of that and its downloaded in the app when user want to share that video, now video is not shared on whatsapp i dont now how ,here is my code which i tried but not worked. Intent videoshare = new Intent(Intent.ACTION_SEND); videoshare.setType("*/*"); videoshare.putExtra(Intent.EXTRA_STREAM, Uri.parse(Environment.DIRECTORY_DOWNLOADS+"/"+title)); videoshare.setPackage("com.whatsapp"); startActivity(Intent.createChooser(videoshare, "Share video")); 回答1: i

UIDocumentInteractionController broken in iOS 8

我的梦境 提交于 2019-12-07 17:33:44
问题 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

How to pass ArrayList<CustomObject> to an activity in another application?

柔情痞子 提交于 2019-12-07 17:26:58
问题 I am trying to share data between two applications.. first I thought of saving a file to SD Card then read it.. but this solution won't work.. so I wan woundering if there is a way to send an ArrayList of an Object that implements Parcelable .. what other way could be followed to achieve this? NOTE: Activities are not within the same application. 回答1: ArrayList is a Serializable class and as such can be placed into an Intent so long as your custom object is also Serializable . It'd look

Share on LinkedIn with og

六眼飞鱼酱① 提交于 2019-12-07 15:04:26
I have rails app. I added og tags for Facebook, google +, and Vkontakte. And I need to add possibility to share to LinkedIn too. But I don't understand why LinkedIn don't pick my OG tags. My html: = tag :meta, property: 'og:url', content: 'https://myapp.com/app' = tag :meta, property: 'og:title', content: 'MyApp' = tag :meta, property: 'og:description', content: 'You can always find a my app !' = tag :meta, property: 'og:image', content: "https://myapp.com#{image_path('backgrounds/desk.jpg')}" And facebook, g+, vk works perfectly, but linked in don't fetch any information from my website. Any

Share Image via android app using ACTION_SEND not working

核能气质少年 提交于 2019-12-07 12:45:08
问题 I have bee following this Android - Share on Facebook, Twitter, Mail, ecc But I am unable to share image using action_send intent in android.Please see my code and guide me where I am wrong. saveFileName = ""; Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/*"); Bitmap shareImage = null; shareImage = Bitmap.createBitmap(pc.getDrawingCache()); OutputStream OS = null; File f1 = new File(Environment.getExternalStorageDirectory() + "/Free Hand"); if (f1.isDirectory() == false)

Error starting “com.twitter.android.PostActivity”

匆匆过客 提交于 2019-12-07 11:59:24
问题 I call a intent to Twitter to share a text. Without changing the code, from one day to another, this call has stopped working. The Intent is: Intent share = new Intent(Intent.ACTION_VIEW); share.setClassName("com.twitter.android", "com.twitter.android.PostActivity"); share.setType("text/plain"); share.putExtra(Intent.EXTRA_TEXT, getString(R.string.app_share_twitter)); share.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); startActivityForResult(share, SHARE_TWITTER); Thanks 回答1: The