Android Build a Simple Android App with Java Testing and Debugging Toast Notifications

Jasper Peijer
Jasper Peijer
18,524 Points

Toast crashes the app.

Toast.makeText(this, "Test!", Toast.LENGTH_LONG).show();

1 Answer

Steve Hunter
MOD
Steve Hunter
Treehouse Moderator 56,089 Points

Hi Jasper,

Your Logcat should show the precise error that's being thrown - can you find the point the app crashes and paste that Logcat output into here?

Steve.

Jasper Peijer
Jasper Peijer
18,524 Points

Thanks I managed to find it out already, I opened Logcat and it showed that something else threw an error, It wasn't the Toast.