|
|
@@ -0,0 +1,44 @@
|
|
|
+package com.usai.apex;
|
|
|
+
|
|
|
+import android.os.Bundle;
|
|
|
+import android.support.v4.app.Fragment;
|
|
|
+import android.support.v4.app.FragmentActivity;
|
|
|
+import android.support.v4.app.FragmentTransaction;
|
|
|
+
|
|
|
+public class InnerMapActivity extends FragmentActivity
|
|
|
+{
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void onCreate(Bundle savedInstanceState)
|
|
|
+ {
|
|
|
+ super.onCreate(savedInstanceState);
|
|
|
+ setContentView(R.layout.activity_inner_map);
|
|
|
+// setUpMapIfNeeded();
|
|
|
+ Fragment slFragment= new ServiceLocationFragment();
|
|
|
+ FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
|
|
+ ft.replace(R.id.map, slFragment);
|
|
|
+ ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
|
|
|
+ ft.addToBackStack("Location");
|
|
|
+ ft.commit();
|
|
|
+ }
|
|
|
+
|
|
|
+// @Override
|
|
|
+// public boolean onCreateOptionsMenu(Menu menu)
|
|
|
+// {
|
|
|
+// // Inflate the menu; this adds items to the action bar if it is present.
|
|
|
+// getMenuInflater().inflate(R.menu.inner_map, menu);
|
|
|
+// return true;
|
|
|
+// }
|
|
|
+// private void setUpMapIfNeeded() {
|
|
|
+// // Do a null check to confirm that we have not already instantiated the map.
|
|
|
+// if (mMap == null) {
|
|
|
+// // Try to obtain the map from the SupportMapFragment.
|
|
|
+// mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
|
|
|
+// .getMap();
|
|
|
+// // Check if we were successful in obtaining the map.
|
|
|
+// if (mMap != null) {
|
|
|
+// setUpMap();
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+}
|