title: i've got an error on android 4.2.1 and not in 4.2.2. action bar sherlock + google maps v2
body: <p>I put the <code>Action Sherlock Bar</code> in my app (Android), and i can run with success on my device <em>4.2.2</em>, but when i try to install on my Android <em>4.1.2</em>, it crashes...</p>
  
  <p>This is the stacktrace:</p>
  
  <pre><code>03-01 17:42:00.953: E/AndroidRuntime(15780): FATAL EXCEPTION: Timer-0
  03-01 17:42:00.953: E/AndroidRuntime(15780): java.lang.IllegalStateException: Not on the main thread
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at maps.ap.q.b(Unknown Source)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at maps.au.e.b(Unknown Source)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at maps.z.ag.moveCamera(Unknown Source)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at com.google.android.gms.maps.internal.IGoogleMapDelegate$Stub.onTransact(IGoogleMapDelegate.java:83)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at android.os.Binder.transact(Binder.java:326)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at com.google.android.gms.maps.internal.IGoogleMapDelegate$a$a.moveCamera(Unknown Source)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at com.google.android.gms.maps.GoogleMap.moveCamera(Unknown Source)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at com.axousis.realweather.MainActivity$2.gotLocation(MainActivity.java:134)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at com.axousis.realweather.util.MyLocation$GetLastLocation.run(MyLocation.java:92)
  03-01 17:42:00.953: E/AndroidRuntime(15780):    at java.util.Timer$TimerImpl.run(Timer.java:284)
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>public class MainActivity extends MySuperClass{
  
      private GoogleMap mapa = null;
      private int vista = 0;
      private Button checkButton; 
      private LatLng myCoords;
      private ProgressDialog pleaseWaitDialog;
      private LoadTask loadTask;
      private List&lt;Marcador&gt; marcadores = new ArrayList&lt;Marcador&gt;();
      private Geocoder geocoder;
      private SharedPreferences settings;
      private AutoCompleteTextView editTextAddress;
  
      private ActionBar actionBar;
  
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);     
          setContentView(R.layout.activity_main);
  
          actionBar = getSupportActionBar();
  
          if (Build.VERSION.SDK_INT &lt; Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
              BitmapDrawable bg = (BitmapDrawable)getResources().getDrawable(R.drawable.bg_striped);
              bg.setTileModeXY(TileMode.REPEAT, TileMode.REPEAT);
              getSupportActionBar().setBackgroundDrawable(bg);
  
              BitmapDrawable bgSplit = (BitmapDrawable)getResources().getDrawable(R.drawable.bg_striped_split_img);
              bgSplit.setTileModeXY(TileMode.REPEAT, TileMode.REPEAT);
              getSupportActionBar().setSplitBackgroundDrawable(bgSplit);
          }
  
  
  
  
          // Retrieve the shared preferences
          settings = getSharedPreferences(APP_PREFERENCES, Context.MODE_PRIVATE);
  
          //Init geocoder google
          geocoder = new Geocoder(this, Locale.getDefault());      
  
          //Inicializamos la busqueda de la posicion
          LocationResult locationResult = new LocationResult(){
              @Override
              public void gotLocation(Location location){
                  //Got the location!
                  location.getLongitude();
                  location.getLatitude();
                  myCoords = new LatLng(location.getLatitude(),location.getLongitude());
  
                  //Move camera
                  LatLng userLocation = MAP_INITIAL_LAT_LON;              
                  if (myCoords!=null) {
                      userLocation = myCoords;
                  }                       
                  CameraUpdate posicionInicial = CameraUpdateFactory.newLatLngZoom(userLocation, MAP_INITIAL_ZOOM_LEVEL);
                  mapa.moveCamera(posicionInicial);
  
              }
          };
          MyLocation myLocation = new MyLocation();
          myLocation.getLocation(this, locationResult);
  
          //Cargamos el mapa
          mapa = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
          mapa.setMyLocationEnabled(true);
  ....
  </code></pre>
  
  <p>The crash is appear in </p>
  
  <pre><code>mapa.moveCamera(posicionInicial);
  </code></pre>
  
  <p>I don't know why...</p>
  
  <p>I only know that in my android <em>4.2.2</em> it works, but in my android <em>4.1.2</em> it crashes...</p>
  
  <p>Any idea?</p>