Answer the question
In order to leave comments, you need to log in
Why does mGoogleApiClient return null in onStart?
OnCreate returns [email protected]
OnStart mGoogleApiClient=null
Can anyone suggest why?
public GoogleApiClient mGoogleApiClient;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(com.BuffoApps.user.ThrowMe.R.layout.activity_main);
GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Games.API)
.addScope(Games.SCOPE_GAMES)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
...
@Override
protected void onStart() {
super.onStart();
Log.i("CONNECTION", " ONSTART mGoogleApiClient="+mGoogleApiClient);
mGoogleApiClient.connect(); }
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question