I decided to do this for the time being:

public class Error_Handler {
 public static void fatal_error(String err)
{
Log.e("fatal error", err);
System.exit(1); 
}

}



On Thursday, September 6, 2012 10:29:45 AM UTC-5, bob wrote:
>
> Back in the day, when I used to program Windows and other systems, I had a 
> function like this:
>
>
> void fatal_error(char *msg)
>
> {
>
> cout << msg << endl;
>
> exit(1);
>
> }
>
>
>
> Is there an easy way to make something similarly elegant and useful in 
> Android?
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to