sdk

Access cookies with a Firefox Addon content script?

耗尽温柔 提交于 2019-12-08 05:18:56
问题 I am trying to translate an Addon from Chrome that someone else created. It has a content script that has chrome.cookies.get in it. I can't find a suitable way to fix this for Firefox. Is there any way that I can access the cookies from a content script in the addon sdk? Here's the original code: function getCookies(domain, name, callback) { chrome.cookies.get({"url": domain, "name": name}, function(cookie) { if (callback) { if (cookie) { callback(cookie.value); } else { callback(null); } } }

Appending an XPS document to an existing one

一曲冷凌霜 提交于 2019-12-08 05:16:12
问题 Guys, here's where I am stuck. I have a need to create a single XPS file from a huge bunch of tiny XPS files. The problem is that I keep running out of memory when I try to do this. I present below the code (taken from MSDN), but essentially all it does is this: It reads each tiny XPS file Extracts the pages from it. Adds these pages to a FixedDocumentSequence. When all docs are done, it writes this sequence out to the combined XPS doc. IMO, my FixedDocumentSequence is getting too big. So, I

Create an Android Virtual Device From a Java application Programmatically

主宰稳场 提交于 2019-12-08 04:43:18
问题 I want to create my Android virtual device from another java application. I don't want to use the default Android AvdManager because you can't set where you want to create your AVD and it has problem with exotic caraters. So I get the sdklib.jar of the AvdMagager and try to do this. But I can't create a AVD because I have the log : Error Unable to find a '%1$s' file for ABI %2$s to copy into the AVD folder. This is an exemple of what I do : class Choice implements ISdkLog { public Choice() {

Using The Facebook IOS SDK To Post To Friends Wall

只愿长相守 提交于 2019-12-08 04:23:45
问题 I am using the Facebook IOS SDK and I want to gain maximum exposure for an app I currently updating. At the minute the app prompts the user to connect with facebook on the app load if the user is not already connected. If the user then connects I use the following code to send a Post to the users wall. NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"http://itunes.apple.com/us/app/video-fx+/id530087007",@"link", @"Video FX+ Live Video Editing",@"name", @

Facebook SDK: Why does Profile.getCurrentProfile() always return null for the first time?

扶醉桌前 提交于 2019-12-08 04:18:02
问题 I am implementing Facebook login in my Android app using LoginButton class provided in Facebook SDK. Everything kind of works after following instructions here. The only thing I am doing differently in my app, is that I have added the login button on a fragment as against the activity itself, to avoid polluting the login activity with a lot of code. But here's a problem: I want to get the user's public profile information. And I do that using Profile.getCurrentProfile() call. Here's the

Create Thumbnail Image using Windows Azure Blob Storage

谁说胖子不能爱 提交于 2019-12-08 04:06:58
问题 I am trying to use the azure-sdk-for-node to save a streamed image to Windows Azure blob storage but without success. Below is the function that I call and pass the video object with the thumbnail property. Initially I fetch the image using the request object which fetches the image from another website and turn that into a base64 object which in turn gets converted into a stream object because Azure blob service uses createBlockBlobFromStream method as I couldn't use createBlockBlobFromFile

Android: Installing Crashlytics in an SDK and its embracing app

烂漫一生 提交于 2019-12-08 03:30:06
问题 I'm developing an Andriod SDK project, intended to be imported by other applications. Currently I have Crashlytics integrated in my SDK. The problem is that some of our clients who want to use the SDK already have Crashlytics integrated, which causes a conflicts between the two fabric libraries. Is there a way to have Crashlytics installed in an SDK and in its embracing app? 来源: https://stackoverflow.com/questions/30444744/android-installing-crashlytics-in-an-sdk-and-its-embracing-app

How do I display array elements in Lua?

徘徊边缘 提交于 2019-12-08 02:50:15
问题 I'm having an issue displaying the elements of an array in Lua programming language. Basically, i created an array with 3 elements, and i'm trying to display its contents in a for loop on the corona sdk emulator. What happens is that if i display the individual array elements (without the loop), they display fine; as soon as I put them in a for loop, nothing shows up on the screen anymore this is my code: myText = {"hello", "world", "there"} for i = 1, myText do local myText = display.newText

how to fix the following error for facebook android sdk integration using Phonegap

不羁的心 提交于 2019-12-08 02:48:03
问题 Please help to fix the following error. Currently trying to integrate Facebook Android SDK using PhoneGap.I have followed this tutorial:http://www.youtube.com/watch?v=mlpBgWiel2w and github resources:https://github.com/davejohnson/phonegap-plugin-facebook-connect.git But got the bellow error:- Error in an XML file: aborting build. Error in an XML file: aborting build. Dex Loader] Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1; Conversion to Dalvik

How to Update SDK Tools

情到浓时终转凉″ 提交于 2019-12-08 02:22:13
问题 Today, I updated the eclipse. Now when it restarts, it is giving me an error message in the attachment When I click the "Open SDK Manager", it does not show any Tool Upgrade! It in the below image What should I do? I am unable to run my apps with this issue because it gives the following error when I run them [2013-01-17 12:03:24 - Dex Loader] SecurityException: Unable to find field for dex.jar Please help! How can I update this? How can I get rid of that error? 回答1: When in the SDK Package