I created this simple app to get the location. I am using a genymotion virtual machine. I turned on GPS and installed Google Play services correctly. Sorry, I can not find a place. Of course, I already added the correct resolution. Is there anything else I should do?
package com.salvo.weather.android; import android.app.Activity; import android.location.Location; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.location.LocationServices; public class TodayActivity extends Activity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { protected static final String TAG = "location-weather"; protected Location mLastLocation; protected GoogleApiClient mGoogleApiClient; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_today);
source share