CommonsWare, , MapActivity MapView.
, , "MapLoading". MapLoading, post() MapActivity. - MapLoading ( , , ).
MapLoading setHistory, , back MapActivity, . MapActivity , MapLoading .
MapLoading ( MapView Map):
public class MapLoading extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.maploading);
new Handler().post(new Runnable() {
public void run()
{
startActivity(new Intent(MapLoading.this, Map.class));
}
});
}
}
:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/maploading"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:textSize="14pt"
android:text="Loading map..."
/>
</RelativeLayout>
AndroidManifest.xml:
<activity android:label="@string/app_name"
android:name="MapLoading"
android:noHistory="true" />