sdk

Support vs “real” libraries and “classes could not be found”

人盡茶涼 提交于 2019-12-08 09:19:49
问题 When I try to use the RecyclerView in a test project when Im about to try out Android 5.0 Lollipop, I see the following on Googles site: 1) What puzzles me is that they use the support thing instead of the "real" thing as provided in API 21. I was expecting to not use the support-package as I am running 5.0 on the device, have SDK 21 downloaded and installed. Why cant I just use RecyclerView directly, without using the support...? 2) Classes could not be found In Android Studio, I get this

Fast library to replace CDC vector graphics

自闭症网瘾萝莉.ら 提交于 2019-12-08 08:53:58
问题 I have a mature MFC C++ application that displays on screen and prints using CDC wrappings on the Win32 GDI. While it has been optimized over the years, I would like to replace it with something a bit faster. The graphics included rendered triangular surface models, complex polylines and polygons, and lots of text. It needs to meet the following criteria; The number of vectors displayed is likely to be very large. For example a single surface triangle is likely to generate a number lines and

Facebook SDK email sometimes returns null - Android

妖精的绣舞 提交于 2019-12-08 07:50:47
问题 I'm having a problem when I'm trying to get the user's email from Android Facebook SDK. I have set the correct permissions and it works in some cases (I can get all data from user), but sometimes and in some devices, it doesn't work. Also I have disabled the sandbox mode and I have registed my certificate on facebook's site. Please, can anyone help me? Thank you!!!! private void signInWithFacebook() { SessionTracker mSessionTracker = new SessionTracker(getBaseContext(), new StatusCallback() {

'-v' is not recognized as an internal or external command in android

白昼怎懂夜的黑 提交于 2019-12-08 07:18:59
问题 I am getting this problem on Console when i am trying to open Android SDK Manager: [2014-12-10 14:39:31 - SDK Manager] [SDK Manager] '-v' is not recognized as an internal or external command, [2014-12-10 14:39:31 - SDK Manager] [SDK Manager] operable program or batch file. [2014-12-10 14:39:31 - SDK Manager] [SDK Manager] Invalid path How can i fix this problem? 回答1: Update: Issue is fixed with Build Tools 24.0.1 that can be updated through SDK Manager (for those that can start it) or

Access cookies with a Firefox Addon content script?

荒凉一梦 提交于 2019-12-08 07:14:30
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); } } } ); } Wladimir Palant A content script doesn't have the necessary privileges to use any advanced API -

iPhone SDK Add Image to the Body of an Email?

南楼画角 提交于 2019-12-08 06:45:42
问题 I was wondering if anyone knew how to use an image in the body of an email when the mail app is opened. Can anyone help? Thanks in advance Kieran. 回答1: you can attach image in mail body using base64 encoding MFMailComposeViewController *mailComposer = [[MFMailComposeViewController alloc] init]; NSData *imageData = UIImageJPEGRepresentation(image, 0.8); NSString *imageStr = [imageData base64EncodingWithLineLength:[imageData length]]; NSString *htmlStr = [NSString stringWithFormat:@".....<img

How to programmatically add a PSCmdlet to a Powershell pipeline?

泪湿孤枕 提交于 2019-12-08 06:45:02
问题 I'd like to programmatically assemble and run a pipeline containing my own PSCmdlet . However, the Pipeline class only allows to add strings and Commands (which are constructed from strings in turn). var runspace = ...; var pipeline = runspace.CreatePipeline(); pipeline.AddCommand("Get-Date"); // ok var myCmdlet = new MyCmdlet(); pipeline.AddCommand(myCmdlet); // Doesn't compile - am I fundamentally // misunderstanding some difference between commands and commandlets? foreach(var res in

App store say “requires iOS 4.0” but deployment target is 3.1.3

早过忘川 提交于 2019-12-08 06:13:25
问题 I have just have my app approved in the App Store, but only devices running 4.0 can download it. The project settings in Xcode says "base SDK 4.0" and the "deployment target 3.1.3". Is there some other setting or value in my plist file or thing I have set in iTunes connect that could yield such a result. I use no 4.0-only API's and would like people running 3.1.3 and up to be able to use the app. 回答1: There is a bug in XCode that I think may be the reason for your problem: You need to do all

IPhone - Show Wait Indicator

為{幸葍}努か 提交于 2019-12-08 06:13:04
问题 What I try to do: If a user is pressing a button, a new view controller is being loaded and pushed to the navigation Controller. The new view controller is doing some hard database querying in it's ViedDidLoad Method which causes some seconds to get the view loaded. I'm trying to show a wait indicator before the view is starting to load. If I try to add a UIActivityIndicatorView as subview of my starting view right before the new view is being allocated, the indicator is shown AFTER the new

Posting to Facebook only available to admin c#

巧了我就是萌 提交于 2019-12-08 05:37:51
问题 I can successfully post to Facebook, however the posts are not public that everyone can see, only the primary page admin. Even after manually going through each post and "approving" them they are still not publicly available. I posted the question to Facebook and got a thank you for posting a question but no answer. I created a Facebook app then using Facebook Graph API I got some access tokens for the app and made the access token permanent. I can post using the Facebook SDK for .Net but