Android Open Source - meteoapp Exception Handler






From Project

Back to project page meteoapp.

License

The source code is released under:

MIT License

If you think the Android project meteoapp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

import android.app.AlertDialog;
import android.content.Context;
//from w  w w .j  a v a  2  s.c  o  m

public class ExceptionHandler {
  
  Context context;
  Exception exception;
  
  public ExceptionHandler(Context context, Exception exception) {
    
    this.context = context;
    this.exception = exception;
  }
  
  public void handle() {
    
    new AlertDialog.Builder(context)
    .setTitle("Wyst?pi? b??d")
    .setCancelable(true)
    .setIcon(android.R.drawable.ic_dialog_alert)
    .setMessage(exception.getMessage())
    .setPositiveButton("OK", null)
    .create()
    .show();
  }
}




Java Source Code List

.ExceptionHandler.java
pl.sznapka.meteoapp.CacheManager.java
pl.sznapka.meteoapp.ChoosenForecast.java
pl.sznapka.meteoapp.ExceptionHandler.java
pl.sznapka.meteoapp.FetchForecastTask.java
pl.sznapka.meteoapp.ForecastActivity.java
pl.sznapka.meteoapp.MeteoappActivity.java