package com.pas.abtahibo.parvaz;


import anywheresoftware.b4a.B4AMenuItem;
import android.app.Activity;
import android.os.Bundle;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.B4AActivity;
import anywheresoftware.b4a.ObjectWrapper;
import anywheresoftware.b4a.objects.ActivityWrapper;
import java.lang.reflect.InvocationTargetException;
import anywheresoftware.b4a.B4AUncaughtException;
import anywheresoftware.b4a.debug.*;
import java.lang.ref.WeakReference;

public class main extends Activity implements B4AActivity{
	public static main mostCurrent;
	static boolean afterFirstLayout;
	static boolean isFirst = true;
    private static boolean processGlobalsRun = false;
	BALayout layout;
	public static BA processBA;
	BA activityBA;
    ActivityWrapper _activity;
    java.util.ArrayList<B4AMenuItem> menuItems;
	public static final boolean fullScreen = false;
	public static final boolean includeTitle = false;
    public static WeakReference<Activity> previousOne;
    public static boolean dontPause;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        mostCurrent = this;
		if (processBA == null) {
			processBA = new BA(this.getApplicationContext(), null, null, "com.pas.abtahibo.parvaz", "com.pas.abtahibo.parvaz.main");
			processBA.loadHtSubs(this.getClass());
	        float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
	        BALayout.setDeviceScale(deviceScale);
            
		}
		else if (previousOne != null) {
			Activity p = previousOne.get();
			if (p != null && p != this) {
                BA.LogInfo("Killing previous instance (main).");
				p.finish();
			}
		}
        processBA.setActivityPaused(true);
        processBA.runHook("oncreate", this, null);
		if (!includeTitle) {
        	this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
        }
        if (fullScreen) {
        	getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,   
        			android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
        }
		
        processBA.sharedProcessBA.activityBA = null;
		layout = new BALayout(this);
		setContentView(layout);
		afterFirstLayout = false;
        WaitForLayout wl = new WaitForLayout();
        if (anywheresoftware.b4a.objects.ServiceHelper.StarterHelper.startFromActivity(this, processBA, wl, false))
		    BA.handler.postDelayed(wl, 5);

	}
	static class WaitForLayout implements Runnable {
		public void run() {
			if (afterFirstLayout)
				return;
			if (mostCurrent == null)
				return;
            
			if (mostCurrent.layout.getWidth() == 0) {
				BA.handler.postDelayed(this, 5);
				return;
			}
			mostCurrent.layout.getLayoutParams().height = mostCurrent.layout.getHeight();
			mostCurrent.layout.getLayoutParams().width = mostCurrent.layout.getWidth();
			afterFirstLayout = true;
			mostCurrent.afterFirstLayout();
		}
	}
	private void afterFirstLayout() {
        if (this != mostCurrent)
			return;
		activityBA = new BA(this, layout, processBA, "com.pas.abtahibo.parvaz", "com.pas.abtahibo.parvaz.main");
        
        processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference<BA>(activityBA);
        anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
        _activity = new ActivityWrapper(activityBA, "activity");
        anywheresoftware.b4a.Msgbox.isDismissing = false;
        if (BA.isShellModeRuntimeCheck(processBA)) {
			if (isFirst)
				processBA.raiseEvent2(null, true, "SHELL", false);
			processBA.raiseEvent2(null, true, "CREATE", true, "com.pas.abtahibo.parvaz.main", processBA, activityBA, _activity, anywheresoftware.b4a.keywords.Common.Density, mostCurrent);
			_activity.reinitializeForShell(activityBA, "activity");
		}
        initializeProcessGlobals();		
        initializeGlobals();
        
        BA.LogInfo("** Activity (main) Create " + (isFirst ? "(first time)" : "") + " **");
        processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
		isFirst = false;
		if (this != mostCurrent)
			return;
        processBA.setActivityPaused(false);
        BA.LogInfo("** Activity (main) Resume **");
        processBA.raiseEvent(null, "activity_resume");
        if (android.os.Build.VERSION.SDK_INT >= 11) {
			try {
				android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this,(Object[]) null);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}
	public void addMenuItem(B4AMenuItem item) {
		if (menuItems == null)
			menuItems = new java.util.ArrayList<B4AMenuItem>();
		menuItems.add(item);
	}
	@Override
	public boolean onCreateOptionsMenu(android.view.Menu menu) {
		super.onCreateOptionsMenu(menu);
        try {
            if (processBA.subExists("activity_actionbarhomeclick")) {
                Class.forName("android.app.ActionBar").getMethod("setHomeButtonEnabled", boolean.class).invoke(
                    getClass().getMethod("getActionBar").invoke(this), true);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        if (processBA.runHook("oncreateoptionsmenu", this, new Object[] {menu}))
            return true;
		if (menuItems == null)
			return false;
		for (B4AMenuItem bmi : menuItems) {
			android.view.MenuItem mi = menu.add(bmi.title);
			if (bmi.drawable != null)
				mi.setIcon(bmi.drawable);
            if (android.os.Build.VERSION.SDK_INT >= 11) {
				try {
                    if (bmi.addToBar) {
				        android.view.MenuItem.class.getMethod("setShowAsAction", int.class).invoke(mi, 1);
                    }
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
			mi.setOnMenuItemClickListener(new B4AMenuItemsClickListener(bmi.eventName.toLowerCase(BA.cul)));
		}
        
		return true;
	}   
 @Override
 public boolean onOptionsItemSelected(android.view.MenuItem item) {
    if (item.getItemId() == 16908332) {
        processBA.raiseEvent(null, "activity_actionbarhomeclick");
        return true;
    }
    else
        return super.onOptionsItemSelected(item); 
}
@Override
 public boolean onPrepareOptionsMenu(android.view.Menu menu) {
    super.onPrepareOptionsMenu(menu);
    processBA.runHook("onprepareoptionsmenu", this, new Object[] {menu});
    return true;
    
 }
 protected void onStart() {
    super.onStart();
    processBA.runHook("onstart", this, null);
}
 protected void onStop() {
    super.onStop();
    processBA.runHook("onstop", this, null);
}
    public void onWindowFocusChanged(boolean hasFocus) {
       super.onWindowFocusChanged(hasFocus);
       if (processBA.subExists("activity_windowfocuschanged"))
           processBA.raiseEvent2(null, true, "activity_windowfocuschanged", false, hasFocus);
    }
	private class B4AMenuItemsClickListener implements android.view.MenuItem.OnMenuItemClickListener {
		private final String eventName;
		public B4AMenuItemsClickListener(String eventName) {
			this.eventName = eventName;
		}
		public boolean onMenuItemClick(android.view.MenuItem item) {
			processBA.raiseEventFromUI(item.getTitle(), eventName + "_click");
			return true;
		}
	}
    public static Class<?> getObject() {
		return main.class;
	}
    private Boolean onKeySubExist = null;
    private Boolean onKeyUpSubExist = null;
	@Override
	public boolean onKeyDown(int keyCode, android.view.KeyEvent event) {
        if (processBA.runHook("onkeydown", this, new Object[] {keyCode, event}))
            return true;
		if (onKeySubExist == null)
			onKeySubExist = processBA.subExists("activity_keypress");
		if (onKeySubExist) {
			if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK &&
					android.os.Build.VERSION.SDK_INT >= 18) {
				HandleKeyDelayed hk = new HandleKeyDelayed();
				hk.kc = keyCode;
				BA.handler.post(hk);
				return true;
			}
			else {
				boolean res = new HandleKeyDelayed().runDirectly(keyCode);
				if (res)
					return true;
			}
		}
		return super.onKeyDown(keyCode, event);
	}
	private class HandleKeyDelayed implements Runnable {
		int kc;
		public void run() {
			runDirectly(kc);
		}
		public boolean runDirectly(int keyCode) {
			Boolean res =  (Boolean)processBA.raiseEvent2(_activity, false, "activity_keypress", false, keyCode);
			if (res == null || res == true) {
                return true;
            }
            else if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK) {
				finish();
				return true;
			}
            return false;
		}
		
	}
    @Override
	public boolean onKeyUp(int keyCode, android.view.KeyEvent event) {
        if (processBA.runHook("onkeyup", this, new Object[] {keyCode, event}))
            return true;
		if (onKeyUpSubExist == null)
			onKeyUpSubExist = processBA.subExists("activity_keyup");
		if (onKeyUpSubExist) {
			Boolean res =  (Boolean)processBA.raiseEvent2(_activity, false, "activity_keyup", false, keyCode);
			if (res == null || res == true)
				return true;
		}
		return super.onKeyUp(keyCode, event);
	}
	@Override
	public void onNewIntent(android.content.Intent intent) {
        super.onNewIntent(intent);
		this.setIntent(intent);
        processBA.runHook("onnewintent", this, new Object[] {intent});
	}
    @Override 
	public void onPause() {
		super.onPause();
        if (_activity == null)
            return;
        if (this != mostCurrent)
			return;
		anywheresoftware.b4a.Msgbox.dismiss(true);
        if (!dontPause)
            BA.LogInfo("** Activity (main) Pause, UserClosed = " + activityBA.activity.isFinishing() + " **");
        else
            BA.LogInfo("** Activity (main) Pause event (activity is not paused). **");
        if (mostCurrent != null)
            processBA.raiseEvent2(_activity, true, "activity_pause", false, activityBA.activity.isFinishing());		
        if (!dontPause) {
            processBA.setActivityPaused(true);
            mostCurrent = null;
        }

        if (!activityBA.activity.isFinishing())
			previousOne = new WeakReference<Activity>(this);
        anywheresoftware.b4a.Msgbox.isDismissing = false;
        processBA.runHook("onpause", this, null);
	}

	@Override
	public void onDestroy() {
        super.onDestroy();
		previousOne = null;
        processBA.runHook("ondestroy", this, null);
	}
    @Override 
	public void onResume() {
		super.onResume();
        mostCurrent = this;
        anywheresoftware.b4a.Msgbox.isDismissing = false;
        if (activityBA != null) { //will be null during activity create (which waits for AfterLayout).
        	ResumeMessage rm = new ResumeMessage(mostCurrent);
        	BA.handler.post(rm);
        }
        processBA.runHook("onresume", this, null);
	}
    private static class ResumeMessage implements Runnable {
    	private final WeakReference<Activity> activity;
    	public ResumeMessage(Activity activity) {
    		this.activity = new WeakReference<Activity>(activity);
    	}
		public void run() {
            main mc = mostCurrent;
			if (mc == null || mc != activity.get())
				return;
			processBA.setActivityPaused(false);
            BA.LogInfo("** Activity (main) Resume **");
            if (mc != mostCurrent)
                return;
		    processBA.raiseEvent(mc._activity, "activity_resume", (Object[])null);
		}
    }
	@Override
	protected void onActivityResult(int requestCode, int resultCode,
	      android.content.Intent data) {
		processBA.onActivityResult(requestCode, resultCode, data);
        processBA.runHook("onactivityresult", this, new Object[] {requestCode, resultCode});
	}
	private static void initializeGlobals() {
		processBA.raiseEvent2(null, true, "globals", false, (Object[])null);
	}
    public void onRequestPermissionsResult(int requestCode,
        String permissions[], int[] grantResults) {
        for (int i = 0;i < permissions.length;i++) {
            Object[] o = new Object[] {permissions[i], grantResults[i] == 0};
            processBA.raiseEventFromDifferentThread(null,null, 0, "activity_permissionresult", true, o);
        }
            
    }

public anywheresoftware.b4a.keywords.Common __c = null;
public static anywheresoftware.b4a.objects.Timer _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4 = null;
public static anywheresoftware.b4a.objects.Timer _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = null;
public static anywheresoftware.b4a.sql.SQL _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = null;
public static anywheresoftware.b4a.objects.SimpleExoPlayerWrapper _vvvvvvvv6 = null;
public anywheresoftware.b4a.sql.SQL.ResultSetWrapper _vvvvvvvvvvvvvvvvvv6 = null;
public anywheresoftware.b4a.objects.SimpleExoPlayerViewWrapper _simpleexoplayerview1 = null;
public b4a.example.dateutils _vvvvvvvvvvvvvvvv1 = null;
public com.pas.abtahibo.parvaz.actbook _vvvvvvvvvvvvvvvv3 = null;
public com.pas.abtahibo.parvaz.actapps _vvvvvvvvvvvvvvvv4 = null;
public com.pas.abtahibo.parvaz.actguide _vvvvvvvvvvvvvvvv5 = null;
public com.pas.abtahibo.parvaz.actnotific _vvvvvvvvvvvvvvvv6 = null;
public com.pas.abtahibo.parvaz.func _vvvvvvvvvvvvvvvv7 = null;
public com.pas.abtahibo.parvaz.myservice _vvvvvvvvvvvvvvvv0 = null;
public com.pas.abtahibo.parvaz.playservicebook _vvvvvvvvvvvvvvvvv1 = null;
public com.pas.abtahibo.parvaz.playsrds _vvvvvvvvvvvvvvvvv2 = null;
public com.pas.abtahibo.parvaz.starter _vvvvvvvvvvvvvvvvv3 = null;
public com.pas.abtahibo.parvaz.support _vvvvvvvvvvvvvvvvv4 = null;
public com.pas.abtahibo.parvaz.urls _vvvvvvvvvvvvvvvvv5 = null;
public com.pas.abtahibo.parvaz.xuiviewsutils _vvvvvvvvvvvvvvvvv6 = null;

public static boolean isAnyActivityVisible() {
    boolean vis = false;
vis = vis | (main.mostCurrent != null);
vis = vis | (actbook.mostCurrent != null);
vis = vis | (actapps.mostCurrent != null);
vis = vis | (actguide.mostCurrent != null);
vis = vis | (actnotific.mostCurrent != null);
vis = vis | (playsrds.mostCurrent != null);
vis = vis | (support.mostCurrent != null);
return vis;}
public static String  _activity_create(boolean _firsttime) throws Exception{
String _lan2faen = "";
 //BA.debugLineNum = 48;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)";
 //BA.debugLineNum = 50;BA.debugLine="func.savePFM(\"typesSerchBk\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"typesSerchBk",BA.NumberToString(-1));
 //BA.debugLineNum = 51;BA.debugLine="func.savePFM(\"idBookSearch\",9999)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"idBookSearch",BA.NumberToString(9999));
 //BA.debugLineNum = 52;BA.debugLine="func.savePFM(\"speedQuran\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"speedQuran",BA.NumberToString(1));
 //BA.debugLineNum = 53;BA.debugLine="func.savePFM(\"Bool_Night\",\"-1\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"Bool_Night","-1");
 //BA.debugLineNum = 55;BA.debugLine="finishAll";
_vvvvvvvvv2();
 //BA.debugLineNum = 57;BA.debugLine="timer.Initialize(\"timer\",4000)";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4.Initialize(processBA,"timer",(long) (4000));
 //BA.debugLineNum = 58;BA.debugLine="timer.Enabled = True";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4.setEnabled(anywheresoftware.b4a.keywords.Common.True);
 //BA.debugLineNum = 60;BA.debugLine="timer1.Initialize(\"timer1\",1000)";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.Initialize(processBA,"timer1",(long) (1000));
 //BA.debugLineNum = 61;BA.debugLine="timer1.Enabled = True";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.setEnabled(anywheresoftware.b4a.keywords.Common.True);
 //BA.debugLineNum = 63;BA.debugLine="Dim lan2FaEn As String = (func.readNIS(\"lan2FaEn\"";
_lan2faen = (mostCurrent._vvvvvvvvvvvvvvvv7._vvvv7 /*String*/ (mostCurrent.activityBA,"lan2FaEn",BA.NumberToString(1)));
 //BA.debugLineNum = 65;BA.debugLine="If lan2FaEn = 3 Then";
if ((_lan2faen).equals(BA.NumberToString(3))) { 
 //BA.debugLineNum = 66;BA.debugLine="File.WriteString(File.DirInternal,\"font3\",\"en1fo";
anywheresoftware.b4a.keywords.Common.File.WriteString(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"font3","en1font.ttf");
 }else {
 //BA.debugLineNum = 68;BA.debugLine="File.WriteString(File.DirInternal,\"font3\",\"sahel";
anywheresoftware.b4a.keywords.Common.File.WriteString(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"font3","sahel.ttf");
 };
 //BA.debugLineNum = 71;BA.debugLine="addView";
_vvvvvvvvvvv0();
 //BA.debugLineNum = 73;BA.debugLine="End Sub";
return "";
}
public static String  _activity_pause(boolean _userclosed) throws Exception{
 //BA.debugLineNum = 371;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
 //BA.debugLineNum = 373;BA.debugLine="End Sub";
return "";
}
public static String  _activity_resume() throws Exception{
 //BA.debugLineNum = 367;BA.debugLine="Sub Activity_Resume";
 //BA.debugLineNum = 369;BA.debugLine="End Sub";
return "";
}
public static String  _vvvvvvvvvvv0() throws Exception{
String _kkk = "";
 //BA.debugLineNum = 75;BA.debugLine="Sub addView";
 //BA.debugLineNum = 77;BA.debugLine="Dim kkk As String";
_kkk = "";
 //BA.debugLineNum = 79;BA.debugLine="func.savePFM(\"kkktypes\",\"665\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"kkktypes","665");
 //BA.debugLineNum = 81;BA.debugLine="func.savePFM(\"kkkt2ypes\",\"myket\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"kkkt2ypes","myket");
 //BA.debugLineNum = 84;BA.debugLine="player1.Initialize(\"player\")";
_vvvvvvvv6.Initialize(processBA,"player");
 //BA.debugLineNum = 85;BA.debugLine="player1.Prepare(player1.CreateFileSource(File.Dir";
_vvvvvvvv6.Prepare(_vvvvvvvv6.CreateFileSource(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"tiser.mp4"));
 //BA.debugLineNum = 87;BA.debugLine="Activity.LoadLayout(\"player2\")";
mostCurrent._activity.LoadLayout("player2",mostCurrent.activityBA);
 //BA.debugLineNum = 88;BA.debugLine="SimpleExoPlayerView1.Player = player1";
mostCurrent._simpleexoplayerview1.setPlayer(_vvvvvvvv6);
 //BA.debugLineNum = 89;BA.debugLine="SimpleExoPlayerView1.UseController = False";
mostCurrent._simpleexoplayerview1.setUseController(anywheresoftware.b4a.keywords.Common.False);
 //BA.debugLineNum = 90;BA.debugLine="player1.Play";
_vvvvvvvv6.Play();
 //BA.debugLineNum = 92;BA.debugLine="End Sub";
return "";
}
public static String  _vvvvvvvvv2() throws Exception{
 //BA.debugLineNum = 94;BA.debugLine="Sub finishAll";
 //BA.debugLineNum = 98;BA.debugLine="func.cacelNotific(10)";
mostCurrent._vvvvvvvvvvvvvvvv7._v7 /*String*/ (mostCurrent.activityBA,(int) (10));
 //BA.debugLineNum = 100;BA.debugLine="func.savePFM(\"psbook\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psbook",BA.NumberToString(1));
 //BA.debugLineNum = 101;BA.debugLine="func.savePFM(\"psspeech\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psspeech",BA.NumberToString(1));
 //BA.debugLineNum = 102;BA.debugLine="func.savePFM(\"psquran\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psquran",BA.NumberToString(1));
 //BA.debugLineNum = 103;BA.debugLine="func.savePFM(\"psqus\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psqus",BA.NumberToString(1));
 //BA.debugLineNum = 104;BA.debugLine="func.savePFM(\"psmatn\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psmatn",BA.NumberToString(1));
 //BA.debugLineNum = 105;BA.debugLine="func.savePFM(\"psdoaa\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psdoaa",BA.NumberToString(1));
 //BA.debugLineNum = 106;BA.debugLine="func.savePFM(\"psahkam\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psahkam",BA.NumberToString(1));
 //BA.debugLineNum = 107;BA.debugLine="func.savePFM(\"psDS\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psDS",BA.NumberToString(1));
 //BA.debugLineNum = 109;BA.debugLine="StopService(myService)";
anywheresoftware.b4a.keywords.Common.StopService(processBA,(Object)(mostCurrent._vvvvvvvvvvvvvvvv0.getObject()));
 //BA.debugLineNum = 111;BA.debugLine="StopService(playServiceBook)";
anywheresoftware.b4a.keywords.Common.StopService(processBA,(Object)(mostCurrent._vvvvvvvvvvvvvvvvv1.getObject()));
 //BA.debugLineNum = 114;BA.debugLine="func.FinishActivity(\"actBook\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vv6 /*String*/ (mostCurrent.activityBA,"actBook");
 //BA.debugLineNum = 115;BA.debugLine="func.FinishActivity(\"actGuide\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vv6 /*String*/ (mostCurrent.activityBA,"actGuide");
 //BA.debugLineNum = 116;BA.debugLine="func.FinishActivity(\"actNotific\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vv6 /*String*/ (mostCurrent.activityBA,"actNotific");
 //BA.debugLineNum = 117;BA.debugLine="func.FinishActivity(\"Support\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vv6 /*String*/ (mostCurrent.activityBA,"Support");
 //BA.debugLineNum = 118;BA.debugLine="func.FinishActivity(\"playsrDS\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vv6 /*String*/ (mostCurrent.activityBA,"playsrDS");
 //BA.debugLineNum = 120;BA.debugLine="End Sub";
return "";
}
public static String  _globals() throws Exception{
 //BA.debugLineNum = 41;BA.debugLine="Sub Globals";
 //BA.debugLineNum = 43;BA.debugLine="Dim Cursor As ResultSet";
mostCurrent._vvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
 //BA.debugLineNum = 44;BA.debugLine="Private SimpleExoPlayerView1 As SimpleExoPlayerVi";
mostCurrent._simpleexoplayerview1 = new anywheresoftware.b4a.objects.SimpleExoPlayerViewWrapper();
 //BA.debugLineNum = 46;BA.debugLine="End Sub";
return "";
}

public static void initializeProcessGlobals() {
    
    if (main.processGlobalsRun == false) {
	    main.processGlobalsRun = true;
		try {
		        b4a.example.dateutils._process_globals();
main._process_globals();
actbook._process_globals();
actapps._process_globals();
actguide._process_globals();
actnotific._process_globals();
func._process_globals();
myservice._process_globals();
playservicebook._process_globals();
playsrds._process_globals();
starter._process_globals();
support._process_globals();
urls._process_globals();
xuiviewsutils._process_globals();
		
        } catch (Exception e) {
			throw new RuntimeException(e);
		}
    }
}

private static byte[][] bb;

public static String vvv13(final byte[] _b, final int i) throws Exception {
Runnable r = new Runnable() {
{

int value = i / 5 + 24881;
if (bb == null) {
		
                bb = new byte[4][];
				bb[0] = BA.packageName.getBytes("UTF8");
                bb[1] = BA.applicationContext.getPackageManager().getPackageInfo(BA.packageName, 0).versionName.getBytes("UTF8");
                if (bb[1].length == 0)
                    bb[1] = "jsdkfh".getBytes("UTF8");
                bb[2] = new byte[] { (byte)BA.applicationContext.getPackageManager().getPackageInfo(BA.packageName, 0).versionCode };			
        }
        bb[3] = new byte[] {
                    (byte) (value >>> 24),
						(byte) (value >>> 16),
						(byte) (value >>> 8),
						(byte) value};
				try {
					for (int __b = 0;__b < (3 + 1);__b ++) {
						for (int b = 0;b<_b.length;b++) {
							_b[b] ^= bb[__b][b % bb[__b].length];
						}
					}

				} catch (Exception e) {
					throw new RuntimeException(e);
				}
                

            
}
public void run() {
}
};
return new String(_b, "UTF8");
}
public static String  _process_globals() throws Exception{
 //BA.debugLineNum = 30;BA.debugLine="Sub Process_Globals";
 //BA.debugLineNum = 32;BA.debugLine="Private timer As Timer";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4 = new anywheresoftware.b4a.objects.Timer();
 //BA.debugLineNum = 33;BA.debugLine="Private timer1 As Timer";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();
 //BA.debugLineNum = 35;BA.debugLine="Private sql21 As SQL";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.sql.SQL();
 //BA.debugLineNum = 37;BA.debugLine="Private player1 As SimpleExoPlayer";
_vvvvvvvv6 = new anywheresoftware.b4a.objects.SimpleExoPlayerWrapper();
 //BA.debugLineNum = 39;BA.debugLine="End Sub";
return "";
}
public static String  _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(String _url) throws Exception{
String[] _links = null;
String _obj = "";
String _faraz = "";
 //BA.debugLineNum = 167;BA.debugLine="Sub queryBook(url As String)";
 //BA.debugLineNum = 169;BA.debugLine="func.savePFM(\"playQuranN3\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"playQuranN3",BA.NumberToString(1));
 //BA.debugLineNum = 171;BA.debugLine="url = func.ENumbers(url)";
_url = mostCurrent._vvvvvvvvvvvvvvvv7._vv4 /*String*/ (mostCurrent.activityBA,_url);
 //BA.debugLineNum = 172;BA.debugLine="Dim links() As String = Regex.Split(\"&\",Regex.Spl";
_links = anywheresoftware.b4a.keywords.Common.Regex.Split("&",anywheresoftware.b4a.keywords.Common.Regex.Split("book",_url)[(int) (1)]);
 //BA.debugLineNum = 173;BA.debugLine="Dim obj As String	= links(0).Replace(\"=\",\"\").Trim";
_obj = _links[(int) (0)].replace("=","").trim();
 //BA.debugLineNum = 174;BA.debugLine="Dim faraz As String = links(1).replace(\"page\",\"\")";
_faraz = _links[(int) (1)].replace("page","").replace("=","").trim();
 //BA.debugLineNum = 176;BA.debugLine="func.savePFM(\"sooreh_Last_NeshanBook\",6)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"sooreh_Last_NeshanBook",BA.NumberToString(6));
 //BA.debugLineNum = 177;BA.debugLine="func.savePFM(\"jumpDeepQuran\",faraz)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"jumpDeepQuran",_faraz);
 //BA.debugLineNum = 178;BA.debugLine="func.savePFM(\"idBook\",obj)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"idBook",_obj);
 //BA.debugLineNum = 179;BA.debugLine="func.savePFM(\"sooreh_Last_2NeshanBook\",2)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"sooreh_Last_2NeshanBook",BA.NumberToString(2));
 //BA.debugLineNum = 181;BA.debugLine="Cursor = sql21.ExecQuery(\"SELECT name,enname FROM";
mostCurrent._vvvvvvvvvvvvvvvvvv6 = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.ExecQuery("SELECT name,enname FROM book where idindex = '"+_obj+"' ")));
 //BA.debugLineNum = 182;BA.debugLine="If Cursor.RowCount>0 Then";
if (mostCurrent._vvvvvvvvvvvvvvvvvv6.getRowCount()>0) { 
 //BA.debugLineNum = 183;BA.debugLine="Cursor.Position = 0";
mostCurrent._vvvvvvvvvvvvvvvvvv6.setPosition((int) (0));
 //BA.debugLineNum = 185;BA.debugLine="func.savePFM(\"ennameBook\",Cursor.GetString(\"enna";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"ennameBook",mostCurrent._vvvvvvvvvvvvvvvvvv6.GetString("enname"));
 //BA.debugLineNum = 186;BA.debugLine="func.savePFM(\"NameBook\",Cursor.GetString(\"name\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"NameBook",mostCurrent._vvvvvvvvvvvvvvvvvv6.GetString("name"));
 };
 //BA.debugLineNum = 190;BA.debugLine="StartActivity(actBook)";
anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(mostCurrent._vvvvvvvvvvvvvvvv3.getObject()));
 //BA.debugLineNum = 191;BA.debugLine="Activity.Finish";
mostCurrent._activity.Finish();
 //BA.debugLineNum = 193;BA.debugLine="End Sub";
return "";
}
public static String  _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0(String _url) throws Exception{
String[] _links = null;
String _idbook = "";
 //BA.debugLineNum = 195;BA.debugLine="Sub queryBookM(url As String)";
 //BA.debugLineNum = 197;BA.debugLine="func.savePFM(\"playQuranN3\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"playQuranN3",BA.NumberToString(1));
 //BA.debugLineNum = 199;BA.debugLine="url = func.ENumbers(url)";
_url = mostCurrent._vvvvvvvvvvvvvvvv7._vv4 /*String*/ (mostCurrent.activityBA,_url);
 //BA.debugLineNum = 200;BA.debugLine="Dim links() As String = Regex.Split(\"&\",Regex.Spl";
_links = anywheresoftware.b4a.keywords.Common.Regex.Split("&",anywheresoftware.b4a.keywords.Common.Regex.Split("moarefi",_url)[(int) (1)]);
 //BA.debugLineNum = 201;BA.debugLine="Dim idBook As String	= links(0).Replace(\"=\",\"\").T";
_idbook = _links[(int) (0)].replace("=","").trim();
 //BA.debugLineNum = 203;BA.debugLine="func.savePFM(\"sooreh_Last_2NeshanBook\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"sooreh_Last_2NeshanBook",BA.NumberToString(1));
 //BA.debugLineNum = 204;BA.debugLine="func.savePFM(\"idBook\",idBook)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"idBook",_idbook);
 //BA.debugLineNum = 206;BA.debugLine="StartActivity(actBook)";
anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(mostCurrent._vvvvvvvvvvvvvvvv3.getObject()));
 //BA.debugLineNum = 207;BA.debugLine="Activity.Finish";
mostCurrent._activity.Finish();
 //BA.debugLineNum = 209;BA.debugLine="End Sub";
return "";
}
public static String  _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1() throws Exception{
 //BA.debugLineNum = 160;BA.debugLine="Sub startMenu";
 //BA.debugLineNum = 161;BA.debugLine="func.savePFM(\"playQuranN3\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"playQuranN3",BA.NumberToString(-1));
 //BA.debugLineNum = 162;BA.debugLine="Activity.Finish";
mostCurrent._activity.Finish();
 //BA.debugLineNum = 163;BA.debugLine="StartActivity(actBook)";
anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(mostCurrent._vvvvvvvvvvvvvvvv3.getObject()));
 //BA.debugLineNum = 164;BA.debugLine="End Sub";
return "";
}
public static String  _timer_tick() throws Exception{
String _sintent = "";
 //BA.debugLineNum = 123;BA.debugLine="Sub timer_Tick";
 //BA.debugLineNum = 125;BA.debugLine="timer.Enabled = False";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4.setEnabled(anywheresoftware.b4a.keywords.Common.False);
 //BA.debugLineNum = 127;BA.debugLine="func.savePFM(\"psbook\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psbook",BA.NumberToString(-1));
 //BA.debugLineNum = 128;BA.debugLine="func.savePFM(\"psspeech\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psspeech",BA.NumberToString(-1));
 //BA.debugLineNum = 129;BA.debugLine="func.savePFM(\"psquran\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psquran",BA.NumberToString(-1));
 //BA.debugLineNum = 130;BA.debugLine="func.savePFM(\"psqus\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psqus",BA.NumberToString(-1));
 //BA.debugLineNum = 131;BA.debugLine="func.savePFM(\"psmatn\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psmatn",BA.NumberToString(-1));
 //BA.debugLineNum = 132;BA.debugLine="func.savePFM(\"psdoaa\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psdoaa",BA.NumberToString(-1));
 //BA.debugLineNum = 133;BA.debugLine="func.savePFM(\"psahkam\",-1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"psahkam",BA.NumberToString(-1));
 //BA.debugLineNum = 136;BA.debugLine="If Activity.GetStartingIntent.GetData<>Null Then";
if (mostCurrent._activity.GetStartingIntent().GetData()!= null) { 
 //BA.debugLineNum = 138;BA.debugLine="Dim sIntent As String = Activity.GetStartingInte";
_sintent = mostCurrent._activity.GetStartingIntent().GetData();
 //BA.debugLineNum = 139;BA.debugLine="Log(\"sIntent: \"&sIntent)";
anywheresoftware.b4a.keywords.Common.LogImpl("3327696","sIntent: "+_sintent,0);
 //BA.debugLineNum = 141;BA.debugLine="Try";
try { //BA.debugLineNum = 142;BA.debugLine="If sIntent.Contains(\"book\") Then";
if (_sintent.contains("book")) { 
 //BA.debugLineNum = 143;BA.debugLine="queryBook(sIntent)";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(_sintent);
 }else if(_sintent.contains("moarefi")) { 
 //BA.debugLineNum = 146;BA.debugLine="queryBookM(sIntent)";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0(_sintent);
 }else {
 //BA.debugLineNum = 149;BA.debugLine="startMenu";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1();
 };
 } 
       catch (Exception e21) {
			processBA.setLastException(e21); //BA.debugLineNum = 152;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("3327709",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(mostCurrent.activityBA)),0);
 //BA.debugLineNum = 153;BA.debugLine="startMenu";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1();
 };
 }else {
 //BA.debugLineNum = 156;BA.debugLine="startMenu";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1();
 };
 //BA.debugLineNum = 158;BA.debugLine="End Sub";
return "";
}
public static String  _timer1_tick() throws Exception{
String _lan2faen = "";
anywheresoftware.b4a.phone.Phone.PhoneWakeState _p = null;
 //BA.debugLineNum = 211;BA.debugLine="Sub timer1_Tick";
 //BA.debugLineNum = 213;BA.debugLine="verDatabase(\"ves\"   ,4,   \"quransooreh.db\")";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2("ves",BA.NumberToString(4),"quransooreh.db");
 //BA.debugLineNum = 214;BA.debugLine="verDatabase(\"veb\"   ,4,   \"book.db\")";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2("veb",BA.NumberToString(4),"book.db");
 //BA.debugLineNum = 215;BA.debugLine="verDatabase(\"veba\"  ,4,   \"book_arabi.db\")";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2("veba",BA.NumberToString(4),"book_arabi.db");
 //BA.debugLineNum = 216;BA.debugLine="verDatabase(\"veba\"  ,4,   \"book_eng.db\")";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2("veba",BA.NumberToString(4),"book_eng.db");
 //BA.debugLineNum = 219;BA.debugLine="verDatabase(\"vef\"   ,1,   \"fav.db\")";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2("vef",BA.NumberToString(1),"fav.db");
 //BA.debugLineNum = 220;BA.debugLine="verDatabase(\"ven\"   ,1,   \"note_book.db\")";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2("ven",BA.NumberToString(1),"note_book.db");
 //BA.debugLineNum = 223;BA.debugLine="timer1.Enabled = False";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.setEnabled(anywheresoftware.b4a.keywords.Common.False);
 //BA.debugLineNum = 227;BA.debugLine="If File.Exists(File.DirInternal,\"fav.db\") = False";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"fav.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 228;BA.debugLine="File.Copy(File.DirAssets,\"fav.db\",File.DirIntern";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"fav.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"fav.db");
 };
 //BA.debugLineNum = 232;BA.debugLine="File.Copy(File.DirAssets,\"download.db\",File.DirIn";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"download.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"download.db");
 //BA.debugLineNum = 236;BA.debugLine="If File.Exists(File.DirInternal,\"book.db\") = Fals";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"book.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 237;BA.debugLine="File.Copy(File.DirAssets, \"book.db\", File.DirInt";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"book.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"book.db");
 };
 //BA.debugLineNum = 240;BA.debugLine="If File.Exists(File.DirInternal,\"book_arabi.db\")";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"book_arabi.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 241;BA.debugLine="File.Copy(File.DirAssets, \"book_arabi.db\", File.";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"book_arabi.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"book_arabi.db");
 };
 //BA.debugLineNum = 244;BA.debugLine="If File.Exists(File.DirInternal,\"book_eng.db\") =";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"book_eng.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 245;BA.debugLine="File.Copy(File.DirAssets, \"book_eng.db\", File.Di";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"book_eng.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"book_eng.db");
 };
 //BA.debugLineNum = 250;BA.debugLine="If File.Exists(File.DirInternal,\"quransooreh.db\")";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"quransooreh.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 251;BA.debugLine="File.Copy(File.DirAssets,\"quransooreh.db\",File.D";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"quransooreh.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"quransooreh.db");
 };
 //BA.debugLineNum = 254;BA.debugLine="If File.Exists(File.DirInternal,\"note_book.db\") =";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"note_book.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 255;BA.debugLine="File.Copy(File.DirAssets,\"note_book.db\",File.Dir";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"note_book.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"note_book.db");
 };
 //BA.debugLineNum = 258;BA.debugLine="If File.Exists(File.DirInternal,\"fav_film.db\") =";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"fav_film.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 259;BA.debugLine="File.Copy(File.DirAssets,\"fav_film.db\",File.DirI";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"fav_film.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"fav_film.db");
 };
 //BA.debugLineNum = 262;BA.debugLine="If File.Exists(File.DirInternal,\"private_b.db\") =";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"private_b.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 263;BA.debugLine="File.Copy(File.DirAssets,\"private_b.db\",File.Dir";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"private_b.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"private_b.db");
 };
 //BA.debugLineNum = 266;BA.debugLine="If File.Exists(File.DirInternal,\"prv_note_book.db";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"prv_note_book.db")==anywheresoftware.b4a.keywords.Common.False) { 
 //BA.debugLineNum = 267;BA.debugLine="File.Copy(File.DirAssets,\"prv_note_book.db\",File";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"prv_note_book.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"prv_note_book.db");
 };
 //BA.debugLineNum = 274;BA.debugLine="sql21.Initialize(File.DirInternal,\"quransooreh.db";
_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.Initialize(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"quransooreh.db",anywheresoftware.b4a.keywords.Common.True);
 //BA.debugLineNum = 281;BA.debugLine="If func.readPFM(\"tarjome\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"tarjome")).equals("-1")) { 
 //BA.debugLineNum = 282;BA.debugLine="func.savePFM(\"tarjome\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"tarjome",BA.NumberToString(1));
 };
 //BA.debugLineNum = 285;BA.debugLine="If func.readPFM(\"colorFarsi\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"colorFarsi")).equals("-1")) { 
 //BA.debugLineNum = 286;BA.debugLine="func.savePFM(\"colorFarsi\",-16777039)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"colorFarsi",BA.NumberToString(-16777039));
 };
 //BA.debugLineNum = 289;BA.debugLine="If func.readPFM(\"colorFaal\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"colorFaal")).equals("-1")) { 
 //BA.debugLineNum = 290;BA.debugLine="func.savePFM(\"colorFaal\",-2883631)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"colorFaal",BA.NumberToString(-2883631));
 };
 //BA.debugLineNum = 293;BA.debugLine="If func.readPFM(\"colorArabi\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"colorArabi")).equals("-1")) { 
 //BA.debugLineNum = 294;BA.debugLine="func.savePFM(\"colorArabi\",-12303292)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"colorArabi",BA.NumberToString(-12303292));
 };
 //BA.debugLineNum = 297;BA.debugLine="If func.readPFM(\"sizeArabi\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"sizeArabi")).equals("-1")) { 
 //BA.debugLineNum = 298;BA.debugLine="func.savePFM(\"sizeArabi\",24)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"sizeArabi",BA.NumberToString(24));
 };
 //BA.debugLineNum = 301;BA.debugLine="If func.readPFM(\"sizeFarsi\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"sizeFarsi")).equals("-1")) { 
 //BA.debugLineNum = 302;BA.debugLine="func.savePFM(\"sizeFarsi\",18)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"sizeFarsi",BA.NumberToString(18));
 };
 //BA.debugLineNum = 305;BA.debugLine="If func.readPFM(\"fontArabi\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"fontArabi")).equals("-1")) { 
 //BA.debugLineNum = 306;BA.debugLine="func.savePFM(\"fontArabi\",\"hezareh.ttf\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"fontArabi","hezareh.ttf");
 };
 //BA.debugLineNum = 309;BA.debugLine="Dim lan2FaEn As String";
_lan2faen = "";
 //BA.debugLineNum = 310;BA.debugLine="lan2FaEn = (func.readNIS(\"lan2FaEn\",1))";
_lan2faen = (mostCurrent._vvvvvvvvvvvvvvvv7._vvvv7 /*String*/ (mostCurrent.activityBA,"lan2FaEn",BA.NumberToString(1)));
 //BA.debugLineNum = 311;BA.debugLine="If lan2FaEn = 3 Then";
if ((_lan2faen).equals(BA.NumberToString(3))) { 
 //BA.debugLineNum = 312;BA.debugLine="If func.readPFM(\"fontFarsi\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"fontFarsi")).equals("-1")) { 
 //BA.debugLineNum = 313;BA.debugLine="func.savePFM(\"fontFarsi\",\"en1font.ttf\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"fontFarsi","en1font.ttf");
 };
 }else {
 //BA.debugLineNum = 316;BA.debugLine="If func.readPFM(\"fontFarsi\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"fontFarsi")).equals("-1")) { 
 //BA.debugLineNum = 317;BA.debugLine="func.savePFM(\"fontFarsi\",\"sahel.ttf\")";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"fontFarsi","sahel.ttf");
 };
 };
 //BA.debugLineNum = 323;BA.debugLine="If func.readPFM(\"distancLine\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"distancLine")).equals("-1")) { 
 //BA.debugLineNum = 324;BA.debugLine="func.savePFM(\"distancLine\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"distancLine",BA.NumberToString(1));
 };
 //BA.debugLineNum = 327;BA.debugLine="If func.readPFM(\"distancLine1\")=\"-1\" Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,"distancLine1")).equals("-1")) { 
 //BA.debugLineNum = 328;BA.debugLine="func.savePFM(\"distancLine1\",1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,"distancLine1",BA.NumberToString(1));
 };
 //BA.debugLineNum = 331;BA.debugLine="Dim p As PhoneWakeState";
_p = new anywheresoftware.b4a.phone.Phone.PhoneWakeState();
 //BA.debugLineNum = 333;BA.debugLine="If func.readNIS(\"tarjome\",1) = 2 Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv7 /*String*/ (mostCurrent.activityBA,"tarjome",BA.NumberToString(1))).equals(BA.NumberToString(2))) { 
 //BA.debugLineNum = 334;BA.debugLine="p.ReleaseKeepAlive";
_p.ReleaseKeepAlive();
 }else {
 //BA.debugLineNum = 336;BA.debugLine="p.KeepAlive(True)";
_p.KeepAlive(processBA,anywheresoftware.b4a.keywords.Common.True);
 };
 //BA.debugLineNum = 342;BA.debugLine="If File.Exists(File.DirInternal,\"abtahi/\") Then";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"abtahi/")) { 
 }else {
 //BA.debugLineNum = 344;BA.debugLine="File.MakeDir(File.DirInternal,\"abtahi\")";
anywheresoftware.b4a.keywords.Common.File.MakeDir(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"abtahi");
 };
 //BA.debugLineNum = 348;BA.debugLine="If File.Exists(File.DirInternal,\"abtahi/.nomedia\"";
if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"abtahi/.nomedia")) { 
 }else {
 //BA.debugLineNum = 350;BA.debugLine="File.WriteString(File.DirInternal,\"abtahi/.nomed";
anywheresoftware.b4a.keywords.Common.File.WriteString(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"abtahi/.nomedia","");
 };
 //BA.debugLineNum = 356;BA.debugLine="func.cacelNotific(10)";
mostCurrent._vvvvvvvvvvvvvvvv7._v7 /*String*/ (mostCurrent.activityBA,(int) (10));
 //BA.debugLineNum = 358;BA.debugLine="End Sub";
return "";
}
public static String  _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(String _var,String _var2,String _database) throws Exception{
 //BA.debugLineNum = 360;BA.debugLine="Sub verDatabase(var As String,var2 As String , dat";
 //BA.debugLineNum = 361;BA.debugLine="If func.readPFM(var&var2) = -1 Then";
if ((mostCurrent._vvvvvvvvvvvvvvvv7._vvvv0 /*String*/ (mostCurrent.activityBA,_var+_var2)).equals(BA.NumberToString(-1))) { 
 //BA.debugLineNum = 362;BA.debugLine="func.savePFM(var&var2,1)";
mostCurrent._vvvvvvvvvvvvvvvv7._vvvvv2 /*String*/ (mostCurrent.activityBA,_var+_var2,BA.NumberToString(1));
 //BA.debugLineNum = 363;BA.debugLine="File.Delete(File.DirInternal,database)";
anywheresoftware.b4a.keywords.Common.File.Delete(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_database);
 };
 //BA.debugLineNum = 365;BA.debugLine="End Sub";
return "";
}
}
