cnguyen71390
New member
I'm trying to create a Toast when my displayList(String dlist) method is called, but errors keep popping up and the application halts when the Toast is called. Here's my code for this part.
private void displayList(String dlist) {
Log.d("testing", dlist);
Toast.makeText( getApplicationContext() , "Theaters in distance:\n" +
dlist, Toast.LENGTH_LONG).show();
}
the Log.d comment gets posted with the right output, so I know the problem is with the Toast.
private void displayList(String dlist) {
Log.d("testing", dlist);
Toast.makeText( getApplicationContext() , "Theaters in distance:\n" +
dlist, Toast.LENGTH_LONG).show();
}
the Log.d comment gets posted with the right output, so I know the problem is with the Toast.