toast Exception - Android User Interface

Android examples for User Interface:Toast

Description

toast Exception

Demo Code


//package com.java2s;
import android.content.Context;
import android.widget.Toast;

public class Main {
    public static void toastException(Exception ex, Context context) {
        Toast.makeText(context, ex.getMessage(), Toast.LENGTH_SHORT).show();
    }// w  w w. j a v  a  2 s.  c om
}

Related Tutorials