当我尝试在Eclipse中运行Android模拟器时,发现了这个问题.无法弄清楚发生了什么.我在网上搜索了解决方案,但它看起来很模糊,我不明白.我按照网站安装AVD的步骤,我无法弄清楚我错过了什么.请按照以下步骤向我解释.
I am using IOS university program and I follow the steps to debug the apps in Iphone according to the tutorial in mobiletuts but I am stuck at the step "Create App ID" after the certificate because the Add button has greyed out. Any idea what happened?

我可以知道如何在控制器创建方法中使用存根方法吗?我需要为此编写规范但是我遇到了这些错误.我需要在模型中创建新的公司记录之前检查控制器中的create方法必须执行validate_fbid方法.
错误:
1) Companies new company create with valid information#validate_fbid should have correct parameters and return value
Failure/Error: CompaniesController.create.should_receive(:validates_fbid).with(company)
NoMethodError:
undefined method `create' for CompaniesController:Class
# ./spec/requests/companies_spec.rb:38:in `block (5 levels) in <top (required)>'
2) Companies new company create with valid information#validate_fbid should fbid validation passed
Failure/Error: CompaniesController.create.stub(:validates_fbid).and_return('companyid')
NoMethodError:
undefined method `create' for CompaniesController:Class
# ./spec/requests/companies_spec.rb:43:in `block (5 levels) in <top (required)>'
Run Code Online (Sandbox Code Playgroud)
CompaniesController
def create
company = Company.new(params[:company])
verifyfbid = validate_fbid(company)
if verifyfbid != false
if company.fbid.downcase == verifyfbid.downcase
if company.save …Run Code Online (Sandbox Code Playgroud) 我有需要输入手机触控键盘的游戏.它的显示有问题,每当键盘出现在文本输入焦点时,我所有的元素位置:绝对都搞砸了.
是否有一个插件,使移动键盘始终显示,以便我重新定位所有元素或我需要更改CSS以使元素,以便键盘出现时不要搞砸?
我该如何实现呢?
这是元素css之一:
#mixer{
position: absolute;
bottom:29%;
left:25%;
width: 234px;
height: 210px;
background: transparent url(img/mixer.png) 0 50px no-repeat;
}
Run Code Online (Sandbox Code Playgroud)

注意:我在Android环境中使用Jquery mobile,phonegap.
如果用户正确回答问题,我需要播放"正确"的声音,如果不正确,我需要"错误".声音首先播放,但在第五次我正确回答第四次输出第四次"正确"声音已经是第五次,没有声音可以听到.似乎音乐最多只能播放4次.造成这种情况的可能原因是什么?
更新* 我在我的stopAudio()中添加了media.release,但到目前为止,声音可以听到第6次(改进),但它仍然不适合我的情况.(许多问题需要相同的声音效果)
Js.file
// Audio player
var my_media = null;
var mediaTimer = null;
// Play audio
function playAudio(src) {
// Create Media object from src
my_media = new Media(src, null, soundCB);
my_media.play();
}
function soundCB(err){
console.log("playAudio():Audio Error: "+err);
}
// Stop audio
//
function stopAudio() {
if (my_media) {
alert("AQA");
my_media.stop();
my_media.release();
}
clearInterval(mediaTimer);
mediaTimer = null;
}
Run Code Online (Sandbox Code Playgroud)
/////问题部分//////
$("#answer").live('tap', function(event){
if(buttonAns==true) {
$this= $(this);
buttonAns = false;
var choice = $this.attr("class");
if((correctAnsNo == 0 && choice =="answer0")||(correctAnsNo …Run Code Online (Sandbox Code Playgroud) 我使用Facebook自定义登录来获取用户的电子邮件和公开个人资料,但我只能得到这个.还有其他我错过的代码吗?大多数在线教程都是Obj-C或已经过时.我正在使用Swift进行这个项目.
RESULT: '<FBSDKLoginManagerLoginResult: 0x7fe6f8c1d510>'
Run Code Online (Sandbox Code Playgroud)
这是我的自定义按钮的代码
let login = FBSDKLoginManager()
login.logInWithReadPermissions(["email", "public_profile"]){ result, error in
println("RESULT: '\(result)' ")
if error != nil {
println("error")
}else if(result.isCancelled){
println("result cancelled")
}else{
println("success")
}
}
Run Code Online (Sandbox Code Playgroud) 我创建了一个测试用户,并在"设置"中从手机中退出.当我尝试使用我的测试帐户在我的应用程序中尝试应用程序内购买时,我会收到"确认您的订阅",这很好,但后来我收到了"停止购买".
我不知道我错过了哪一步.感谢任何能给我任何线索的人.
我正在关注这个关于使用hockeyapp设置fastlane的网站指南,但我遇到了错误
:BUILD_NUMBER=>"There does not seem to be a CURRENT_PROJECT_VERSION key set for this project. Add this key to your target's expert build settings."}
Run Code Online (Sandbox Code Playgroud)
我在actions文件夹中创建了build_number_icon.rb,我甚至尝试对build_number进行硬编码并测试运行fastlane.仍然得到同样的错误.我错过了什么吗?我一直在阅读指南,以防我错过了这些步骤.
# Build and publish the Beta version to Hockeyapp
lane :beta_hockeyapp do
# Build
build_app(
# Not a production release, so add build number and do the color modulation of the icons
release:false,
# Modulate the colors of the icons by these degrees
modulation:66.6,
# Change the app name
app_name:"<App Name>",
# Set the …Run Code Online (Sandbox Code Playgroud) 我有一个cartArray(在AppDelegate.h @interface上面),当应用程序在后台模式或应用程序关闭时需要保存.当cartArray在我添加一个项目(Cart)并输入背景或按下减号关闭应用程序时,该应用程序工作正常.我的cartArray中包含了cart类.我可以知道发生了什么吗?在线教程非常复杂,我总是发现自己迷失在解释的中间.
[AppDelegate.m]
- (void)applicationDidEnterBackground:(UIApplication *)application {
[AppDelegate saveData];
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
[AppDelegate getData];
}
+(NSString *) getPathToAchieve{ NSLog(@"+++++getPathToAchieve");
static NSString* docsDir = nil;
if (docsDir == nil) {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
docsDir = [paths objectAtIndex:0];
}
NSString *fullFileName = [NSString stringWithFormat:@"%@.plist", docsDir];
return fullFileName;
}
- (void)applicationWillTerminate:(NSNotification *)notification{
[cartArray writeToFile:[AppDelegate getPathToAchieve] atomically:YES];
}
-(id)initWithCoder:(NSCoder *)aDecoder
{ self = [super init];
if (self != nil)
{
cartArray = [aDecoder decodeObjectForKey:@"cartArrayKeys"];
}
return self;
}
-(void)encodeWithCoder:(NSCoder …Run Code Online (Sandbox Code Playgroud) 我在这里使用应用程序的示例https://github.com/itog/Twitter4j-android-Sample,它正在工作.我在我的应用程序中使用相同的方法,但是当我在线时它返回null
static final String CALLBACK_URL = "oauth://t4jsample"; [Copy the same as the Sample]
requestToken = twitter.getOAuthRequestToken(CALLBACK_URL);
Run Code Online (Sandbox Code Playgroud)
这是我的清单
<activity
android:name="com.my.app.SharePreviewActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="t4jsample"
android:scheme="oauth" />
</intent-filter>
</activity>
Run Code Online (Sandbox Code Playgroud)
这是我从示例应用程序中复制的其他代码.
private void askOAuth() {
ConfigurationBuilder configurationBuilder = new ConfigurationBuilder();
configurationBuilder.setOAuthConsumerKey(CONSUMER_KEY);
configurationBuilder.setOAuthConsumerSecret(CONSUMER_SECRET);
Configuration configuration = configurationBuilder.build();
twitter = new TwitterFactory(configuration).getInstance();
try {
requestToken = twitter.getOAuthRequestToken(CALLBACK_URL);
Toast.makeText(this, "Please authorize this app!",
Toast.LENGTH_LONG).show();
this.startActivity(new Intent(Intent.ACTION_VIEW, Uri
.parse(requestToken.getAuthenticationURL())));
} catch (TwitterException e) …Run Code Online (Sandbox Code Playgroud)