我的右键单击是不能在eclipse中工作.我试图在servlet上工作所以我下载了javaEE工作并使用昨天(2014年8月13日)之后我没有使用我的eclipse,我今天经常使用我开始在android上工作我的常规日食.当我开始研究项目时,我右键单击不在包浏览器中工作.也在窗口 - >显示视图显示空白.
这些是我所做的不同试验.
重启日食.
改变工作空间.
重新启动电脑.
但问题没有解决.
在Android 4.4谷歌播放服务中引入了"行走"活动识别,但已经有on_foot认可.
我正在使用谷歌+登录我的应用程序.我想将按钮的颜色从红色更改为白色.这是我的xml代码.
<com.google.android.gms.common.SignInButton
android:id="@+id/btn_sign_in"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/logo"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
>
Run Code Online (Sandbox Code Playgroud) 在编写代码时,我遇到了这个问题:
对于ConnectionResult类型,未定义getIntentSender()方法
我添加了Internet,getaccounts和usecredentials的权限.我添加了Google+服务库.
代码在这里:
package com.niranjan.googleplus;
import android.content.Intent;
import android.content.IntentSender.SendIntentException;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks;
import com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener;
import com.google.android.gms.plus.Plus;
public class MainActivity extends ActionBarActivity implements ConnectionCallbacks, OnConnectionFailedListener {
private GoogleApiClient googleapi;
private static final int RC_SIGN_IN = 0;
private boolean mIntentInProgress;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
googleapi = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(Plus.API, null)
.addScope(Plus.SCOPE_PLUS_LOGIN)
.build();
}
protected void onStart(){
super.onStart();
googleapi.connect();
}
protected void onStop(){
super.onStop();
if(googleapi.isConnected()){ …
Run Code Online (Sandbox Code Playgroud)