[Solved] Drug dictionary android

When launching the detail activity you can receive information with the intent so that you are able to display the item accordingly. from the list activity : Intent intent = new Intent(getApplicationContext(), DetailActivity.class); intent.putExtra(“OBJ_ID”, drugObj.id); startActivity(intent); from the detail activity in the onCreate method : int drugID = getIntent().getIntExtra(“OBJ_ID”, 0); Please note the above is … Read more