Android Open Source - javainstaller Error






From Project

Back to project page javainstaller.

License

The source code is released under:

GNU General Public License

If you think the Android project javainstaller 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

package julianwi.javainstaller;
//from  w  w w .j  a  va 2  s  .  c  o m
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;

public class Error implements Runnable{
  
  Exception e;
  Context ctx;
  
  public Error(String title, String message){
    new AlertDialog.Builder(MainActivity.context)
      .setTitle(title)
      .setMessage(message)
      .setNeutralButton("OK", new OnClickListener() {
      
      @Override
      public void onClick(DialogInterface dialog, int which) {
      }
    })
    .show();
  }
  
  public Error(String title, String message, Context context){
    new AlertDialog.Builder(context)
      .setTitle(title)
      .setMessage(message)
      .setNeutralButton("OK", new OnClickListener() {
      
      @Override
      public void onClick(DialogInterface dialog, int which) {
      }
    })
    .show();
  }
  
  public Error(Exception e, Context c){
    this.e = e;
    ctx = c;
  }

  @Override
  public void run() {
    new Error("error", e.toString(), ctx);
  }
}




Java Source Code List

gnu.java.lang.management.VMRuntimeMXBeanImpl.java
julianwi.javainstaller.ChangePath.java
julianwi.javainstaller.CheckPoint.java
julianwi.javainstaller.Checkforfile.java
julianwi.javainstaller.ChecklistAdapter.java
julianwi.javainstaller.Download.java
julianwi.javainstaller.Error.java
julianwi.javainstaller.InstallActivity.java
julianwi.javainstaller.InstallList.java
julianwi.javainstaller.MainActivity.java
julianwi.javainstaller.MainList.java
julianwi.javainstaller.PathReceiver.java
julianwi.javainstaller.RunActivity.java
julianwi.javainstaller.SettingsActivity.java
julianwi.javainstaller.Update.java