Mime type for .txt files?
You can try the specific mime: text/plain or, the more general text mime: text/*
You can try the specific mime: text/plain or, the more general text mime: text/*
Official LinkedIn API for sharing: https://developer.linkedin.com/docs/share-on-linkedin Read Terms of Use! Example link using “Customized URL” method: http://www.linkedin.com/shareArticle?mini=true&url=https://stackoverflow.com/questions/10713542/how-to-make-custom-linkedin-share-button/10737122&title=How%20to%20make%20custom%20linkedin%20share%20button&summary=some%20summary%20if%20you%20want&source=stackoverflow.com You just need to open it in popup using JavaScript or load it to iframe. Simple and works – that’s what I was looking for! EDIT: Video attached to a post: I checked that you can’t really embed … Read more
Share Files, Folders or Drives Between Host and Hyper-V Virtual Machine Prerequisites Make sure you have a Pro or Enterprise version of the Windows OS. The Home version does not provide you with this functionality! From the official documentation: The virtual machine must have Remote Desktop Services enabled, and run Windows 10, Windows 8.1, Windows … Read more
Try this to make an existing repository in repodir work for users in group foo: chgrp -R foo repodir # set the group chmod -R g+rw repodir # allow the group to read/write chmod g+s `find repodir -type d` # new files get group id of directory git init –bare –shared=all repodir # sets some … Read more
You don’t need all that code. All you need are the following lines: <a href=”https://www.facebook.com/sharer/sharer.php?u=example.org” target=”_blank”> Share on Facebook </a> Documentation can be found at https://developers.facebook.com/docs/reference/plugins/share-links/
Add a Button and on click of the Button add this code: Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.setType(“text/plain”); String shareBody = “Here is the share content body”; sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, “Subject Here”); sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody); startActivity(Intent.createChooser(sharingIntent, “Share via”)); Useful links: For basic sharing For customization
This will let you choose from email, whatsapp or whatever. try { Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType(“text/plain”); shareIntent.putExtra(Intent.EXTRA_SUBJECT, “My application name”); String shareMessage= “\nLet me recommend you this application\n\n”; shareMessage = shareMessage + “https://play.google.com/store/apps/details?id=” + BuildConfig.APPLICATION_ID +”\n\n”; shareIntent.putExtra(Intent.EXTRA_TEXT, shareMessage); startActivity(Intent.createChooser(shareIntent, “choose one”)); } catch(Exception e) { //e.toString(); }
https://plus.google.com/share?url=http%3A%2F%2Fexample.com You can share the link on Google+ with the official Google+ share link. Replace the url parameter with the URL encoded link you want to share.
This will Work For You http://twitter.com/share?text=text goes here&url=http://url goes here&hashtags=hashtag1,hashtag2,hashtag3 Here is a Live Example About it http://twitter.com/share?text=Im Sharing on Twitter&url=https://stackoverflow.com/users/2943186/youssef-subehi&hashtags=stackoverflow,example,youssefusf
Just saw it on a website and seems to work on latest Android with latest chrome and whatsapp now too! Give the link a new shot! <a href=”https://stackoverflow.com/questions/21935149/whatsapp://send?text=The text to share!” data-action=”share/whatsapp/share”>Share via Whatsapp</a> Rechecked it today (17th April 2015): Works for me on iOS 8 (iPhone 6, latest versions) Android 5 (Nexus 5, latest … Read more