sdk

playableDuration returns 0 in iOS5

隐身守侯 提交于 2019-12-11 08:40:37
问题 Has anyone else noticed that playableDuration property of MPMoviePlayerController class always returns 0 in iOS 5. This used to work fine in previous versions of iOS. I use it to set the value of a progress bar. Here is piece of code that used to work under 4.x SDK just fine (i.e., the playableDuration attribute returned the correct non-zero value while buffering the stream), but under SDK 5.x it always returns zero. - (void) updateMeter { NSLog(@"playableDuration = %f", streamPlayer

The following SDK component was not installed: source-25

会有一股神秘感。 提交于 2019-12-11 08:29:03
问题 I am getting this error while installing Android Studio on my system with Ubuntu version 14.04. This error occurs at the time when I start my Android studio first time and it starts downloading sdk and all necessary packages required for developing an Android Application and then I get this The following SDK component was not installed: source-25. Ignoring unknown package filter 'source-25'Warning: The package filter removed all packages. There is nothing to install. Please consider trying to

actionbar cannot be resolved to a type

╄→гoц情女王★ 提交于 2019-12-11 07:53:46
问题 Compiling error when build project in sdk\extras\android\support\samples\Support4Demos Eclipse, import existing code into workspace, ...\sdk\extras\android\support\samples\Support4Demos Right click on the imported project -> build path -> configure build path, add the jar file named "android-support-v4.jar" in sdk\extras\android\support\v4 Build the project, then I have 196 errors. Most part is "ActionBar cannot be resolved to a type" I have also tried to import android-support-v13.jar,

ParseUser Unity SDK missing definition for Password

∥☆過路亽.° 提交于 2019-12-11 07:52:31
问题 I am trying to signup a new ParseUser using the Unity SDK (Parse 1.3.2). I follow the tutorial and use the code below to do the signup, however, I get an error: 'Parse.ParseUser' does not contain a definiton for 'Password' Why does it recognize Username and Email, but not Password? It is driving me nuts... My code: var user = new ParseUser() { Password= myPassword, Username = name, Email = "email@example.com" }; user.SignUpAsync(); 回答1: Use below code will do: var user = new ParseUser(); user

IOS Weird compiler error: "expected ']' before ;' using set-ter for NSString constant in singleton

走远了吗. 提交于 2019-12-11 07:48:58
问题 I have the weirdest error! In Xcode I have a singleton with the following defined (file is: MyGizmoClass.h ): NSString *plistPath; NSString *dataDomain; NSString *pathToChatScript; NSString *pathToUpdates; and @property (nonatomic,retain) NSString *plistPath; @property (nonatomic,retain) NSString *dataDomain; @property (nonatomic,retain) NSString *pathToChatScript; @property (nonatomic,retain) NSString *pathToUpdates; I have a Constants.h file (which I #import early in my .pch file) that

Paypal Rest API - Token life time from approval URL

青春壹個敷衍的年華 提交于 2019-12-11 07:38:58
问题 I use Paypal Rest API and my question is: How long is token from approval URL valid? I want to store this token (also with my token) to the database and generate link with my token. Later if I click to this link (replace my token with paypal token) I want to redirect to paypal. If i tried some old token, paypal site get error with "This transaction has expired" and "Your session has ended". Example of approval URL: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC

How to change background color across activities

人走茶凉 提交于 2019-12-11 07:13:16
问题 This is my first app and my first time posting so bear with me. I'm trying to make it so the user can choose the background color of the entire app from a Change Skins screen. However with what I have now it only changes the color of the activity until it goes back to the main activity. Here is the code for the Change Skins screen package cs.pacificu.mypace; import android.R.layout; import android.annotation.SuppressLint; import android.app.Activity; import android.graphics.Color; import

Large UIScrollView with background pattern fails

自作多情 提交于 2019-12-11 07:07:05
问题 I have a UIScrollView with a very large content view, it's a bookshelf with around 1000 items on it, when the scroll views content becomes more than around 16000px high it shows a black background and all graphics overlap/blend together. Here is the sample code - (void)viewDidLoad { [super viewDidLoad]; // Doesn't work int sizeForContent = 20000; // Does Work //sizeForContent = 10000; UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self

android sdk ( 23 ) completely broken - where is an archive of 22.6?

旧时模样 提交于 2019-12-11 06:59:01
问题 --EDIT-- see the comment for the missing archive Made the mistake of downloading r23 of the sdk and now all ant, CLI project builds are broken. Still on ant/eclipse do to NDK.... i have read this. I know what state i want to get back to but am unable to find a 22.6 version of $SDK_ROOT/tools folder... No [zipalign] .... its gone No [proguard] .... its gone oops. i dont have a backup of the tools directory and i can not seem to find older SDK downloads on the android sites ( all links point to

Generating a PDF417 barcode from a Byte array in c#

ぐ巨炮叔叔 提交于 2019-12-11 06:55:38
问题 I need a way of generating PDF417 barcodes from byte arrays . I have found numerous SDKs that can generate barcodes but all of them expect a string as the data instead of a byte array, unfortunately this isn't a possibility since I need to conform to a pre-existing standard Thanks in advance Code that I have tried, as requested by Wyatt Earp. /// <summary> /// Writes the barcode data to a specified location /// </summary> /// <param name="data">Data of the barcode</param> /// <param name=