share

Android Facebook sdk 3.5 share dialog

可紊 提交于 2019-12-06 10:17:14
问题 hi i am implementing the facebook share dialog for android sdk 3.5 however i am not getting any success im following the guides.. FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(MyClass.this) .setApplicationName("App Name") .setName("Name") .setLink("mylink") .build(); i put this inside my on touch method there are no errors appearing but whenever i click the button.. nothing appears also~ is the MyClass.this wrong? thanks for reply~ 回答1: This is what Facebook recommends. I

Attempt to access remote folder mounted with CIFS hangs when disconnected

百般思念 提交于 2019-12-06 09:11:24
问题 This question is an extension for that question. Yet again: I'm working under CentOS 6.0 and I have a remote win7 folder, mounted with: mount -t cifs //PC128/mnt /media/net -o "username=WORKGROUP\user,password=pwd,rw,noexec,soft,uid=user,gid=user" When remote folder is not available (e.g. network cable is pulled out) an attempt to access the remote folder locks an application I'm working on. At first I detected that QDir::exists() caused locking for 20-90 seconds (I still can't find out why

Using UIActivityViewController to share a video

社会主义新天地 提交于 2019-12-06 08:15:35
问题 I am trying to use the default apple share screen to share a video to things like twitter and facebook. I have got this to work with an image but I do not know how change this to work with a video. Thanks in advance! Here is the code I am using to share the photo: (IBAction)shareButtonPressed:(id)sender { UIImage *imagetoshare = [UIImage imageNamed:@"First_Time_Travel"]; NSArray *activityItems = @[imagetoshare]; UIActivityViewController *activityVC = [[UIActivityViewController alloc]

Customizing Surf Platform Root-Scoped API

这一生的挚爱 提交于 2019-12-06 07:19:51
I want to customize Surf Platform Root-Scoped API specifically user object. That means add new property or method to user object to check the user is in certain group in header.inc.ftl [in share] like `<#if user.isAdmin> How can I implement this? Is Alfresco Root Scoped Objects can be used as Surf Platform Root-Scoped object? I have no idea of customizing surf platform root object. Can anyone help me??? Not quite sure what you are trying to accomplish, but the role security model is hardcoded in spring-surf/spring webscripts. There is guest, user and admin. If what you want is another

Android share image on snapchat

我只是一个虾纸丫 提交于 2019-12-06 07:16:29
I'm using this code to share a screenshot of the score: Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("image/png"); Uri image = Uri.parse(Environment.getExternalStorageDirectory().toString() + "/sharescore.png"); try { // create bitmap screen capture View v1 = v.getRootView(); v1.setDrawingCacheEnabled(true); Bitmap bitmap = Bitmap.createBitmap(v1.getDrawingCache()); v1.setDrawingCacheEnabled(false); File imageFile = new File(image.getPath()); FileOutputStream outputStream = new FileOutputStream(imageFile); int quality = 100; bitmap.compress(Bitmap.CompressFormat

FB Share button Javascript error in IE8

℡╲_俬逩灬. 提交于 2019-12-06 07:09:51
I am getting a javascript error for the FB Share button only in IE8. This started after the old Share button was disabled and subsequently re-enabled (see Facebook Share button: is it officially dead? ) The error I am getting is: Message: Object doesn't support this property or method FB.Share Line: 128 Code: 0 Char: 188 URI: http://static.ak.fbcdn.net/connect.php/js/FB.Share Any ideas on how to fix this? How about doing it this way? http://www.facebook.com/sharer.php?s=100&p[title]=SHARE%20ME&p[summary]=SOME%20CONTENT&p[url]=http://www.google.com&p[images][0]=http://fakeurl.com/shareImage.gif

Whats the difference between & and & in HTML5? [duplicate]

我们两清 提交于 2019-12-06 05:37:49
This question already has answers here : Do I really need to encode '&' as '&'? (17 answers) Closed 6 years ago . What is the difference between & and & ? Like in the code bellow, are both working in the same way? <a href="mailto:EMAIL?subject=BLABLABLA&body=http://URL, SHORT DESCRIPTION"></a> <a href="mailto:EMAIL?subject=BLABLABLA&body=http://URL, SHORT DESCRIPTION"></a> In HTML5, they are equivalent in that example. Traditionally, in HTML, only & was correct — but as with so many things, web developers blithely ignored this inconvenient rule and wrote bare ampersands everywhere. For their

Share images to another apps

喜欢而已 提交于 2019-12-06 05:17:04
In my app I can get a screen capture and save it to the sd card. I was wondering if it's possible to share it from my app to Whatsapp, for example, as the gallery app does. In the gallery, you have the chance of "sharing" the file to Whatsapp, Facebook or Twitter. Can i do the same from my app? How? Thank you! AlexN Yes, you can. @TargetApi(Build.VERSION_CODES.LOLLIPOP) @SuppressWarnings( "deprecation" ) public static Intent shareImage(Context context, String pathToImage) { Intent shareIntent = new Intent(Intent.ACTION_SEND); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)

How to get alf_ticket in Alfresco Share 3.4

房东的猫 提交于 2019-12-06 05:11:17
I've been using context.properties.alfTicket to get a ticket for some custom stuff I've been working before, but recently I migrated from Alfresco 3.0 to 3.4. Now I can't find the authentication ticket in Alfresco Share - is there a way to get this? Whether in JavaScript (server-side, of course) or freemarker. Edit: I added a bounty. I'll give the bounty to whoever gives me the code sample on how to get the alf_ticket in document-details.get.js or document-details.get.html.ftl . In an Alfresco webscript you could use session.ticket , this should be available in Share to. This link to the

iOS Sharing Image to LinkedIn using UIActivityViewController

微笑、不失礼 提交于 2019-12-06 04:11:46
问题 I'm trying to share image to all possible apps installed in my device. But unfortunately, I'm not able to post image successfully to LinkedIn (already installed and logged in as verified user). LinkedIn is being displayed in list of share actions in UIActivityViewController, when I tap on it, It displays a dialogue with image, which I have added as activity item, but it is not being posted to LinkedIn. Tested successfully for Google+, FB and Twitter. If I share url, then it gets posted to