I need to open the activation, and at the same time send her data about the item. I receive the data from the adapter in the form of a cursor, and place it in the intent. The question is how do I open instantly aktiviti, and then only download and render data about

cListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(view.getContext(), InfoActivity.class); Cursor cursor = (Cursor) numberCursorAdapter.getItem(position); String id = cursor.getString(cursor.getColumnIndex("_id")); String number = cursor.getString(cursor.getColumnIndex("number")); String slug = cursor.getString(cursor.getColumnIndex("slug")); intent.putExtra("id", id); intent.putExtra("number", number); intent.putExtra("slug", slug); startActivity(intent); } }); 
  • getIntent request in onResume - Android Android

1 answer 1

Receive data in the onResume() or onStart() callback method, by the time these onStart() methods are called, it will be fully launched and its UI loaded and displayed on the screen.