Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- String[] uiBindFrom = { FixOpenHelper.LATITUDE, FixOpenHelper.LONGITUDE, FixOpenHelper.ACCURACY,
- FixOpenHelper.SPEED };
- int[] uiBindTo = { R.id.latitudeText, R.id.longitudeText, R.id.accuracyText, R.id.speedText };
- getLoaderManager().initLoader(FIX_LIST_LOADER, null, this);
- FixOpenHelper fixOpenHelper = new FixOpenHelper(getActivity().getApplicationContext());
- int routeNo = savedInstanceState.getInt("ROUTE_NUMBER", 1);
- Cursor cursor = fixOpenHelper.routeFixes(routeNo);
- adapter = new SimpleCursorAdapter(getActivity().getApplicationContext(), R.layout.captureroute_row, cursor,
- uiBindFrom, uiBindTo, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);
- setListAdapter(adapter);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement