Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- fixOpenHelper = new FixOpenHelper(getActivity().getApplicationContext());
- String[] uiBindFrom = { FixOpenHelper.LATITUDE, FixOpenHelper.LONGITUDE, FixOpenHelper.ACCURACY,
- FixOpenHelper.SPEED };
- int[] uiBindTo = { R.id.latitudeText, R.id.longitudeText, R.id.accuracyText, R.id.speedText };
- int routeNo = fixOpenHelper.highestRoute();
- Bundle requestBundle = new Bundle();
- requestBundle.putInt(REQUESTED_ROUTE, routeNo);
- getLoaderManager().initLoader(FIX_LIST_LOADER, requestBundle, this);
- Cursor cursor = fixOpenHelper.routeFixesSpeed(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