Program: 83558
Project: 83558
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (!LSystem.checkInitFolder()) {
    Toast.makeText(this,"String_Node_Str",4000).show();
    this.finish();
  }
  ROOT=LiquidSettings.isRoot();
  prefs=PreferenceManager.getDefaultSharedPreferences(myactivity);
  new StartSystem().startsystem(myactivity);
  addPreferencesFromResource(R.menu.menu);
  final Context context=getApplicationContext();
  final CheckBoxPreference hf=(CheckBoxPreference)findPreference("String_Node_Str");
  final EditTextPreference sdcache=(EditTextPreference)findPreference("String_Node_Str");
  final CheckBoxPreference powerled=(CheckBoxPreference)findPreference("String_Node_Str");
  final CheckBoxPreference noprox=(CheckBoxPreference)findPreference("String_Node_Str");
  final CheckBoxPreference updateonstart=(CheckBoxPreference)findPreference("String_Node_Str");
  final Preference menu_info=findPreference("String_Node_Str");
  final Preference diskspace=findPreference("String_Node_Str");
  final Preference hotreboot=findPreference("String_Node_Str");
  final Preference forceupdate=findPreference("String_Node_Str");
  final Preference donateclick=findPreference("String_Node_Str");
  final Preference reportissue=findPreference("String_Node_Str");
  final ListPreference networkmode=(ListPreference)findPreference("String_Node_Str");
  final Preference resetall=findPreference("String_Node_Str");
  editNoise=(EditTextPreference)findPreference("String_Node_Str");
  editSensitivity=(EditTextPreference)findPreference("String_Node_Str");
  editSoftsens=(EditTextPreference)findPreference("String_Node_Str");
  if (!LSystem.hapticAvailable())   hf.setEnabled(false);
 else   hf.setChecked(LSystem.vibrStatus());
  if (!SdCache.isCachePathAvailable())   sdcache.setEnabled(false);
  if ((SDCacheSize=SdCache.getSdCacheSize()) >= 128) {
    sdcache.setText(Integer.toString(SDCacheSize));
  }
  noiseValue=editNoise.getText();
  sensitivityValue=editSensitivity.getText();
  softsensValue=editSoftsens.getText();
  updateValues();
  editNoise.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    public boolean onPreferenceChange(    Preference preference,    Object newValue){
      if (!Strings.onlyNumber(newValue.toString())) {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
      noiseValue=newValue.toString();
      int noiseValueInt=Integer.parseInt(noiseValue);
      if (noiseValueInt < 20)       noiseValue="String_Node_Str";
 else       if (noiseValueInt > 75)       noiseValue="String_Node_Str";
      if (ROOT) {
        if (ROOT && LSystem.RemountRW()) {
          LiquidSettings.runRootCommand("String_Node_Str" + Strings.getSens(sensitivityValue,noiseValue,softsensValue) + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
          LSystem.RemountROnly();
          if (LiquidSettings.runRootCommand("String_Node_Str"))           Toast.makeText(context,"String_Node_Str",4000).show();
 else           Toast.makeText(context,"String_Node_Str",4000).show();
        }
        updateValues();
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  editSensitivity.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    public boolean onPreferenceChange(    Preference preference,    Object newValue){
      if (!Strings.onlyNumber(newValue.toString())) {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
      sensitivityValue=newValue.toString();
      int sensitivityValueInt=Integer.parseInt(sensitivityValue);
      if (sensitivityValueInt < (20))       sensitivityValue=("String_Node_Str");
 else       if (sensitivityValueInt > (75))       sensitivityValue=("String_Node_Str");
      if (ROOT) {
        if (ROOT && LSystem.RemountRW()) {
          LiquidSettings.runRootCommand("String_Node_Str" + Strings.getSens(sensitivityValue,noiseValue,softsensValue) + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
          LSystem.RemountROnly();
          if (LiquidSettings.runRootCommand("String_Node_Str"))           Toast.makeText(context,"String_Node_Str",4000).show();
 else           Toast.makeText(context,"String_Node_Str",4000).show();
        }
        updateValues();
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  editSoftsens.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    public boolean onPreferenceChange(    Preference preference,    Object newValue){
      if (!Strings.onlyNumber(newValue.toString())) {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
      softsensValue=newValue.toString();
      int softsensValueInt=Integer.parseInt(softsensValue);
      if (softsensValueInt < (15))       softsensValue=("String_Node_Str");
 else       if (softsensValueInt > (30))       softsensValue=("String_Node_Str");
      if (ROOT) {
        if (ROOT && LSystem.RemountRW()) {
          LiquidSettings.runRootCommand("String_Node_Str" + Strings.getSens(sensitivityValue,noiseValue,softsensValue) + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
          LSystem.RemountROnly();
          if (LiquidSettings.runRootCommand("String_Node_Str"))           Toast.makeText(context,"String_Node_Str",4000).show();
 else           Toast.makeText(context,"String_Node_Str",4000).show();
        }
        updateValues();
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  powerled.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      if (ROOT) {
        if (powerled.isChecked()) {
          LiquidSettings.runRootCommand("String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
        }
 else {
          LiquidSettings.runRootCommand("String_Node_Str");
        }
        if (BatteryLED.setdisable(powerled.isChecked())) {
          return true;
        }
 else {
          Toast.makeText(context,"String_Node_Str",4000).show();
          return false;
        }
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
    }
  }
);
  hf.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      if (ROOT) {
        if (LSystem.RemountRW()) {
          LiquidSettings.runRootCommand("String_Node_Str" + ((hf.isChecked()) ? Strings.getvibr() : Strings.getnovibr()) + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str" + ((hf.isChecked() == true) ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
          LSystem.RemountROnly();
          Toast.makeText(context,"String_Node_Str" + Boolean.toString(hf.isChecked()),4000).show();
        }
 else {
          Toast.makeText(context,"String_Node_Str",4000).show();
          hf.setChecked(false);
        }
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
        hf.setChecked(false);
      }
      return true;
    }
  }
);
  sdcache.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    public boolean onPreferenceChange(    Preference preference,    Object newValue){
      if (!Strings.onlyNumber(newValue.toString())) {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
      String newValueString=newValue.toString();
      int newValueInt=Integer.parseInt(newValueString);
      if (newValueInt < 128)       newValueInt=128;
 else       if (newValueInt > 4096)       newValueInt=4096;
      if (ROOT) {
        if (SdCache.setSDCache(newValueInt)) {
          Toast.makeText(context,"String_Node_Str" + newValueInt,4000).show();
          return true;
        }
 else {
          Toast.makeText(context,"String_Node_Str",4000).show();
          return false;
        }
      }
 else       Toast.makeText(context,"String_Node_Str",4000).show();
      return false;
    }
  }
);
  networkmode.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    @Override public boolean onPreferenceChange(    Preference preference,    Object newValue){
      NetworkMode.switchnetworkmode(myactivity);
      return true;
    }
  }
);
  noprox.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      if (noprox.isChecked()) {
        parsebuildprop.editString("String_Node_Str","String_Node_Str");
      }
 else {
        parsebuildprop.editString("String_Node_Str","String_Node_Str");
      }
      AlertDialog.Builder builder=new AlertDialog.Builder(myactivity);
      builder.setTitle("String_Node_Str");
      builder.setCancelable(true);
      builder.setMessage("String_Node_Str");
      builder.setPositiveButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          LiquidSettings.runRootCommand("String_Node_Str");
        }
      }
);
      builder.setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
        }
      }
);
      builder.create().show();
      return true;
    }
  }
);
  diskspace.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      final AlertDialog.Builder builder=new AlertDialog.Builder(myactivity);
      builder.setTitle("String_Node_Str");
      builder.setCancelable(true);
      builder.setMessage(DiskSpace.getdiskspace());
      builder.setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
        }
      }
);
      builder.create().show();
      return true;
    }
  }
);
  hotreboot.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      ProgressDialog.show(myactivity,"String_Node_Str","String_Node_Str",true);
      LiquidSettings.runRootCommand("String_Node_Str");
      return true;
    }
  }
);
  donateclick.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      ConnectivityManager connManager=(ConnectivityManager)myactivity.getSystemService(Context.CONNECTIVITY_SERVICE);
      android.net.NetworkInfo netInfo=connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
      android.net.NetworkInfo wifiInfo=connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
      if (netInfo.getState() == android.net.NetworkInfo.State.CONNECTED || wifiInfo.getState() == android.net.NetworkInfo.State.CONNECTED) {
        Intent myintent=new Intent(Intent.ACTION_VIEW);
        myintent.setClassName(context,Webview.class.getName());
        startActivity(myintent);
      }
 else {
        Toast.makeText(myactivity,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  forceupdate.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      new OTA_updates().checkupdates(myactivity,myactivity);
      return true;
    }
  }
);
  updateonstart.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      if (!updateonstart.isChecked()) {
        parsebuildprop.editString("String_Node_Str","String_Node_Str");
        AlertDialog.Builder builder=new AlertDialog.Builder(myactivity);
        builder.setTitle("String_Node_Str");
        builder.setCancelable(true);
        builder.setMessage("String_Node_Str");
        builder.setPositiveButton("String_Node_Str",new DialogInterface.OnClickListener(){
          public void onClick(          DialogInterface dialog,          int which){
            Editor editor=prefs.edit();
            editor.putBoolean("String_Node_Str",true);
            updateonstart.setChecked(true);
            editor.commit();
          }
        }
);
        builder.setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
          public void onClick(          DialogInterface dialog,          int which){
          }
        }
);
        builder.create().show();
      }
      return true;
    }
  }
);
  reportissue.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      ProgressDialog.show(myactivity,"String_Node_Str","String_Node_Str",true);
      Intent myintent=new Intent(Intent.ACTION_VIEW);
      myintent.setClassName(myactivity,ReportIssue.class.getName());
      startActivity(myintent);
      return true;
    }
  }
);
  menu_info.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      showhelp();
      return true;
    }
  }
);
  resetall.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      Editor editor=prefs.edit();
      editor.putBoolean("String_Node_Str",true);
      editor.commit();
      new StartSystem().startsystem(myactivity);
      return true;
    }
  }
);
  if (prefs.getBoolean("String_Node_Str",true)) {
    new OTA_updates().checkupdates(myactivity,myactivity);
  }
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (!LSystem.checkInitFolder()) {
    Toast.makeText(this,"String_Node_Str",4000).show();
    this.finish();
  }
  ROOT=LiquidSettings.isRoot();
  prefs=PreferenceManager.getDefaultSharedPreferences(myactivity);
  new StartSystem().startsystem(myactivity);
  addPreferencesFromResource(R.menu.menu);
  final Context context=getApplicationContext();
  final CheckBoxPreference hf=(CheckBoxPreference)findPreference("String_Node_Str");
  final EditTextPreference sdcache=(EditTextPreference)findPreference("String_Node_Str");
  final CheckBoxPreference powerled=(CheckBoxPreference)findPreference("String_Node_Str");
  final CheckBoxPreference noprox=(CheckBoxPreference)findPreference("String_Node_Str");
  final CheckBoxPreference updateonstart=(CheckBoxPreference)findPreference("String_Node_Str");
  final Preference menu_info=findPreference("String_Node_Str");
  final Preference diskspace=findPreference("String_Node_Str");
  final Preference hotreboot=findPreference("String_Node_Str");
  final Preference forceupdate=findPreference("String_Node_Str");
  final Preference donateclick=findPreference("String_Node_Str");
  final Preference reportissue=findPreference("String_Node_Str");
  final ListPreference networkmode=(ListPreference)findPreference("String_Node_Str");
  final Preference resetall=findPreference("String_Node_Str");
  editNoise=(EditTextPreference)findPreference("String_Node_Str");
  editSensitivity=(EditTextPreference)findPreference("String_Node_Str");
  editSoftsens=(EditTextPreference)findPreference("String_Node_Str");
  if (!LSystem.hapticAvailable())   hf.setEnabled(false);
 else   hf.setChecked(LSystem.vibrStatus());
  if (!SdCache.isCachePathAvailable())   sdcache.setEnabled(false);
  if ((SDCacheSize=SdCache.getSdCacheSize()) >= 128) {
    sdcache.setText(Integer.toString(SDCacheSize));
  }
  noiseValue=editNoise.getText();
  sensitivityValue=editSensitivity.getText();
  softsensValue=editSoftsens.getText();
  updateValues();
  editNoise.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    public boolean onPreferenceChange(    Preference preference,    Object newValue){
      if (!Strings.onlyNumber(newValue.toString())) {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
      noiseValue=newValue.toString();
      int noiseValueInt=Integer.parseInt(noiseValue);
      if (noiseValueInt < 20)       noiseValue="String_Node_Str";
 else       if (noiseValueInt > 75)       noiseValue="String_Node_Str";
      if (ROOT) {
        if (ROOT && LSystem.RemountRW()) {
          LiquidSettings.runRootCommand("String_Node_Str" + Strings.getSens(sensitivityValue,noiseValue,softsensValue) + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
          LSystem.RemountROnly();
          if (LiquidSettings.runRootCommand("String_Node_Str"))           Toast.makeText(context,"String_Node_Str",4000).show();
 else           Toast.makeText(context,"String_Node_Str",4000).show();
        }
        updateValues();
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  editSensitivity.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    public boolean onPreferenceChange(    Preference preference,    Object newValue){
      if (!Strings.onlyNumber(newValue.toString())) {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
      sensitivityValue=newValue.toString();
      int sensitivityValueInt=Integer.parseInt(sensitivityValue);
      if (sensitivityValueInt < (20))       sensitivityValue=("String_Node_Str");
 else       if (sensitivityValueInt > (75))       sensitivityValue=("String_Node_Str");
      if (ROOT) {
        if (ROOT && LSystem.RemountRW()) {
          LiquidSettings.runRootCommand("String_Node_Str" + Strings.getSens(sensitivityValue,noiseValue,softsensValue) + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
          LSystem.RemountROnly();
          if (LiquidSettings.runRootCommand("String_Node_Str"))           Toast.makeText(context,"String_Node_Str",4000).show();
 else           Toast.makeText(context,"String_Node_Str",4000).show();
        }
        updateValues();
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  editSoftsens.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    public boolean onPreferenceChange(    Preference preference,    Object newValue){
      if (!Strings.onlyNumber(newValue.toString())) {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
      softsensValue=newValue.toString();
      int softsensValueInt=Integer.parseInt(softsensValue);
      if (softsensValueInt < (15))       softsensValue=("String_Node_Str");
 else       if (softsensValueInt > (30))       softsensValue=("String_Node_Str");
      if (ROOT) {
        if (ROOT && LSystem.RemountRW()) {
          LiquidSettings.runRootCommand("String_Node_Str" + Strings.getSens(sensitivityValue,noiseValue,softsensValue) + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
          LSystem.RemountROnly();
          if (LiquidSettings.runRootCommand("String_Node_Str"))           Toast.makeText(context,"String_Node_Str",4000).show();
 else           Toast.makeText(context,"String_Node_Str",4000).show();
        }
        updateValues();
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  powerled.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      if (ROOT) {
        if (powerled.isChecked()) {
          LiquidSettings.runRootCommand("String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
        }
 else {
          LiquidSettings.runRootCommand("String_Node_Str");
        }
        if (BatteryLED.setdisable(powerled.isChecked())) {
          return true;
        }
 else {
          Toast.makeText(context,"String_Node_Str",4000).show();
          return false;
        }
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
    }
  }
);
  hf.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      if (ROOT) {
        if (LSystem.RemountRW()) {
          LiquidSettings.runRootCommand("String_Node_Str" + ((hf.isChecked()) ? Strings.getvibr() : Strings.getnovibr()) + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str" + ((hf.isChecked() == true) ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str");
          LiquidSettings.runRootCommand("String_Node_Str");
          LSystem.RemountROnly();
          Toast.makeText(context,"String_Node_Str" + Boolean.toString(hf.isChecked()),4000).show();
        }
 else {
          Toast.makeText(context,"String_Node_Str",4000).show();
          hf.setChecked(false);
        }
      }
 else {
        Toast.makeText(context,"String_Node_Str",4000).show();
        hf.setChecked(false);
      }
      return true;
    }
  }
);
  sdcache.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    public boolean onPreferenceChange(    Preference preference,    Object newValue){
      if (!Strings.onlyNumber(newValue.toString())) {
        Toast.makeText(context,"String_Node_Str",4000).show();
        return false;
      }
      String newValueString=newValue.toString();
      int newValueInt=Integer.parseInt(newValueString);
      if (newValueInt < 128)       newValueInt=128;
 else       if (newValueInt > 4096)       newValueInt=4096;
      if (ROOT) {
        if (SdCache.setSDCache(newValueInt)) {
          Toast.makeText(context,"String_Node_Str" + newValueInt,4000).show();
          return true;
        }
 else {
          Toast.makeText(context,"String_Node_Str",4000).show();
          return false;
        }
      }
 else       Toast.makeText(context,"String_Node_Str",4000).show();
      return false;
    }
  }
);
  networkmode.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
    @Override public boolean onPreferenceChange(    Preference preference,    Object newValue){
      NetworkMode.switchnetworkmode(myactivity);
      return true;
    }
  }
);
  noprox.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      if (noprox.isChecked()) {
        parsebuildprop.editString("String_Node_Str","String_Node_Str");
      }
 else {
        parsebuildprop.editString("String_Node_Str","String_Node_Str");
      }
      AlertDialog.Builder builder=new AlertDialog.Builder(myactivity);
      builder.setTitle("String_Node_Str");
      builder.setCancelable(true);
      builder.setMessage("String_Node_Str");
      builder.setPositiveButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          LiquidSettings.runRootCommand("String_Node_Str");
        }
      }
);
      builder.setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
        }
      }
);
      builder.create().show();
      return true;
    }
  }
);
  diskspace.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      final AlertDialog.Builder builder=new AlertDialog.Builder(myactivity);
      builder.setTitle("String_Node_Str");
      builder.setCancelable(true);
      builder.setMessage(DiskSpace.getdiskspace());
      builder.setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
        }
      }
);
      builder.create().show();
      return true;
    }
  }
);
  hotreboot.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      ProgressDialog.show(myactivity,"String_Node_Str","String_Node_Str",true);
      LiquidSettings.runRootCommand("String_Node_Str");
      return true;
    }
  }
);
  donateclick.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      ConnectivityManager connManager=(ConnectivityManager)myactivity.getSystemService(Context.CONNECTIVITY_SERVICE);
      android.net.NetworkInfo netInfo=connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
      android.net.NetworkInfo wifiInfo=connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
      if (netInfo.getState() == android.net.NetworkInfo.State.CONNECTED || wifiInfo.getState() == android.net.NetworkInfo.State.CONNECTED) {
        Intent myintent=new Intent(Intent.ACTION_VIEW);
        myintent.setClassName(context,Webview.class.getName());
        startActivity(myintent);
      }
 else {
        Toast.makeText(myactivity,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  forceupdate.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      new OTA_updates().checkupdates(myactivity,myactivity);
      return true;
    }
  }
);
  updateonstart.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      if (!updateonstart.isChecked()) {
        parsebuildprop.editString("String_Node_Str","String_Node_Str");
        AlertDialog.Builder builder=new AlertDialog.Builder(myactivity);
        builder.setTitle("String_Node_Str");
        builder.setCancelable(true);
        builder.setMessage("String_Node_Str");
        builder.setPositiveButton("String_Node_Str",new DialogInterface.OnClickListener(){
          public void onClick(          DialogInterface dialog,          int which){
            Editor editor=prefs.edit();
            editor.putBoolean("String_Node_Str",true);
            updateonstart.setChecked(true);
            editor.commit();
          }
        }
);
        builder.setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
          public void onClick(          DialogInterface dialog,          int which){
          }
        }
);
        builder.create().show();
      }
      return true;
    }
  }
);
  reportissue.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      ConnectivityManager connManager=(ConnectivityManager)myactivity.getSystemService(Context.CONNECTIVITY_SERVICE);
      android.net.NetworkInfo netInfo=connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
      android.net.NetworkInfo wifiInfo=connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
      if (netInfo.getState() == android.net.NetworkInfo.State.CONNECTED || wifiInfo.getState() == android.net.NetworkInfo.State.CONNECTED) {
        ProgressDialog.show(myactivity,"String_Node_Str","String_Node_Str",true);
        Intent myintent=new Intent(Intent.ACTION_VIEW);
        myintent.setClassName(myactivity,ReportIssue.class.getName());
        startActivity(myintent);
      }
 else {
        Toast.makeText(myactivity,"String_Node_Str",4000).show();
      }
      return true;
    }
  }
);
  menu_info.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      showhelp();
      return true;
    }
  }
);
  resetall.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    public boolean onPreferenceClick(    Preference preference){
      Editor editor=prefs.edit();
      editor.putBoolean("String_Node_Str",true);
      editor.commit();
      new StartSystem().startsystem(myactivity);
      return true;
    }
  }
);
  if (prefs.getBoolean("String_Node_Str",true)) {
    new OTA_updates().checkupdates(myactivity,myactivity);
  }
}