package gunav2.keymon.com.mx;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;

public class c_cuestionario extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new BA(_ba, this, htSubs, "gunav2.keymon.com.mx.c_cuestionario");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_cuestionario.class).invoke(this, new Object[] {null});
        else
            ba.raiseEvent2(null, true, "class_globals", false);
    }

 public anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public anywheresoftware.b4a.objects.ButtonWrapper _baceptarpregunta = null;
public boolean _encuestainiciada = false;
public anywheresoftware.b4a.objects.B4XViewWrapper _root2 = null;
public String _eventname = "";
public Object _callback = null;
public String _vpreguntaactual = "";
public anywheresoftware.b4a.sql.SQL _db = null;
public anywheresoftware.b4a.objects.PanelWrapper _panelsombra = null;
public String _cb_respuestas = "";
public anywheresoftware.b4a.objects.PanelWrapper _panelactual = null;
public int _bringtofrontcont = 0;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
public gunav2.keymon.com.mx.subs _subs = null;
public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public gunav2.keymon.com.mx.appupdater _appupdater = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.tracker _tracker = null;
public gunav2.keymon.com.mx.newinst2 _newinst2 = null;
public gunav2.keymon.com.mx.b4xpages _b4xpages = null;
public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null;
public gunav2.keymon.com.mx.httputils2service _httputils2service = null;
public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public String  _agregacolumna(String _tabla,String _columna,String _tipo) throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
 //BA.debugLineNum = 373;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
 //BA.debugLineNum = 374;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
try { //BA.debugLineNum = 375;BA.debugLine="Private c As Cursor = db.ExecQuery($\"SELECT COUN";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_db.ExecQuery(("SELECT COUNT(*) AS fCol FROM pragma_table_info('"+__c.SmartStringFormatter("",(Object)(_tabla))+"') WHERE name='"+__c.SmartStringFormatter("",(Object)(_columna))+"'"))));
 //BA.debugLineNum = 376;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 377;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 378;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
 //BA.debugLineNum = 379;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("434799622",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
 };
 } 
       catch (Exception e9) {
			ba.setLastException(e9); //BA.debugLineNum = 382;BA.debugLine="Try";
try { //BA.debugLineNum = 383;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
 //BA.debugLineNum = 384;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("434799627",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
 } 
       catch (Exception e13) {
			ba.setLastException(e13); //BA.debugLineNum = 386;BA.debugLine="Log(LastException)";
__c.LogImpl("434799629",BA.ObjectToString(__c.LastException(ba)),0);
 };
 };
 //BA.debugLineNum = 389;BA.debugLine="End Sub";
return "";
}
public String  _agregapreguntaabierta(String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _ids,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{
anywheresoftware.b4a.objects.ScrollViewWrapper _sv_cuest = null;
anywheresoftware.b4a.objects.StringUtils _su = null;
anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null;
anywheresoftware.b4a.objects.PanelWrapper _panelx = null;
anywheresoftware.b4a.objects.PanelWrapper _panel2 = null;
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
anywheresoftware.b4a.objects.EditTextWrapper[] _et = null;
anywheresoftware.b4a.objects.LabelWrapper[] _labelx = null;
int _p = 0;
anywheresoftware.b4a.objects.LabelWrapper _lx = null;
int _newtop = 0;
 //BA.debugLineNum = 161;BA.debugLine="Sub agregaPreguntaAbierta(id As String, pregunta A";
 //BA.debugLineNum = 162;BA.debugLine="Log(\"Iniciamos PreguntaAbierta\")";
__c.LogImpl("434209793","Iniciamos PreguntaAbierta",0);
 //BA.debugLineNum = 163;BA.debugLine="Log(ids)";
__c.LogImpl("434209794",BA.ObjectToString(_ids),0);
 //BA.debugLineNum = 164;BA.debugLine="Log(respuestas)";
__c.LogImpl("434209795",BA.ObjectToString(_respuestas),0);
 //BA.debugLineNum = 165;BA.debugLine="Private sv_cuest As ScrollView";
_sv_cuest = new anywheresoftware.b4a.objects.ScrollViewWrapper();
 //BA.debugLineNum = 166;BA.debugLine="sv_cuest.Initialize(500dip)";
_sv_cuest.Initialize(ba,__c.DipToCurrent((int) (500)));
 //BA.debugLineNum = 167;BA.debugLine="encuestaIniciada = True";
_encuestainiciada = __c.True;
 //BA.debugLineNum = 168;BA.debugLine="vPreguntaActual = id";
_vpreguntaactual = _id;
 //BA.debugLineNum = 169;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")";
_baceptarpregunta.Initialize(ba,"bAceptarPregunta");
 //BA.debugLineNum = 170;BA.debugLine="Private su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
 //BA.debugLineNum = 171;BA.debugLine="panelSombra.Initialize(\"pSombra\")";
_panelsombra.Initialize(ba,"pSombra");
 //BA.debugLineNum = 172;BA.debugLine="Private cd As ColorDrawable";
_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
 //BA.debugLineNum = 173;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)";
_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0));
 //BA.debugLineNum = 174;BA.debugLine="panelSombra.Background = cd";
_panelsombra.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
 //BA.debugLineNum = 175;BA.debugLine="Private panelX As Panel 'Panel de la pregunta.";
_panelx = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 176;BA.debugLine="panelX.Initialize(\"pQuest\")";
_panelx.Initialize(ba,"pQuest");
 //BA.debugLineNum = 177;BA.debugLine="Private sv_cuest As ScrollView";
_sv_cuest = new anywheresoftware.b4a.objects.ScrollViewWrapper();
 //BA.debugLineNum = 178;BA.debugLine="sv_cuest.Initialize(100dip)";
_sv_cuest.Initialize(ba,__c.DipToCurrent((int) (100)));
 //BA.debugLineNum = 179;BA.debugLine="Private panel2 As Panel 'Panel de la pregunta.";
_panel2 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 180;BA.debugLine="panel2.Initialize(\"panel2\")";
_panel2.Initialize(ba,"panel2");
 //BA.debugLineNum = 181;BA.debugLine="panel2.Color = Colors.Yellow";
_panel2.setColor(__c.Colors.Yellow);
 //BA.debugLineNum = 182;BA.debugLine="panelActual = panelX";
_panelactual = _panelx;
 //BA.debugLineNum = 183;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta.";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 184;BA.debugLine="lbl.Initialize(\"\")";
_lbl.Initialize(ba,"");
 //BA.debugLineNum = 185;BA.debugLine="lbl.Text = pregunta";
_lbl.setText(BA.ObjectToCharSequence(_pregunta));
 //BA.debugLineNum = 186;BA.debugLine="lbl.TextSize = 16";
_lbl.setTextSize((float) (16));
 //BA.debugLineNum = 187;BA.debugLine="lbl.TextColor = Colors.Black";
_lbl.setTextColor(__c.Colors.Black);
 //BA.debugLineNum = 188;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)";
_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray);
 //BA.debugLineNum = 189;BA.debugLine="panelX.Background = cd";
_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
 //BA.debugLineNum = 190;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20";
_panelsombra.AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200)));
 //BA.debugLineNum = 191;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a";
_root2.AddView((android.view.View)(_panelsombra.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
 //BA.debugLineNum = 192;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *";
_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40)));
 //BA.debugLineNum = 193;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l";
_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText())));
 //BA.debugLineNum = 194;BA.debugLine="Private et(respuestas.Size) As EditText";
_et = new anywheresoftware.b4a.objects.EditTextWrapper[_respuestas.getSize()];
{
int d0 = _et.length;
for (int i0 = 0;i0 < d0;i0++) {
_et[i0] = new anywheresoftware.b4a.objects.EditTextWrapper();
}
}
;
 //BA.debugLineNum = 195;BA.debugLine="Private labelX(respuestas.Size) As Label";
_labelx = new anywheresoftware.b4a.objects.LabelWrapper[_respuestas.getSize()];
{
int d0 = _labelx.length;
for (int i0 = 0;i0 < d0;i0++) {
_labelx[i0] = new anywheresoftware.b4a.objects.LabelWrapper();
}
}
;
 //BA.debugLineNum = 196;BA.debugLine="For p = 0 To respuestas.Size - 1";
{
final int step35 = 1;
final int limit35 = (int) (_respuestas.getSize()-1);
_p = (int) (0) ;
for (;_p <= limit35 ;_p = _p + step35 ) {
 //BA.debugLineNum = 197;BA.debugLine="et(p).Initialize(\"et\")";
_et[_p].Initialize(ba,"et");
 //BA.debugLineNum = 198;BA.debugLine="labelX(p).Initialize(\"labelX\")";
_labelx[_p].Initialize(ba,"labelX");
 //BA.debugLineNum = 199;BA.debugLine="labelX(p).Height = 60dip";
_labelx[_p].setHeight(__c.DipToCurrent((int) (60)));
 //BA.debugLineNum = 202;BA.debugLine="et(p).As(B4XView).SetTextAlignment(\"CENTER\", \"CE";
((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_et[_p].getObject()))).SetTextAlignment("CENTER","CENTER");
 //BA.debugLineNum = 203;BA.debugLine="labelX(p).As(B4XView).SetTextAlignment(\"CENTER\",";
((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_labelx[_p].getObject()))).SetTextAlignment("CENTER","CENTER");
 //BA.debugLineNum = 204;BA.debugLine="et(p).SetTextSizeAnimated(0, 10)";
_et[_p].SetTextSizeAnimated((int) (0),(float) (10));
 //BA.debugLineNum = 205;BA.debugLine="et(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregun";
_et[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(_panelsombra.getObject()),(Object)("idRespuesta"),_ids.Get(_p)}).getObject()));
 //BA.debugLineNum = 206;BA.debugLine="labelX(p).Text = respuestas.Get(p)";
_labelx[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p)));
 //BA.debugLineNum = 207;BA.debugLine="Private lx As Label = labelX(p)";
_lx = new anywheresoftware.b4a.objects.LabelWrapper();
_lx = _labelx[_p];
 //BA.debugLineNum = 208;BA.debugLine="et(p).Text = \"\"";
_et[_p].setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 209;BA.debugLine="Log($\"Agregamos ET ${labelX(p).text} - ${(70*p)}";
__c.LogImpl("434209840",("Agregamos ET "+__c.SmartStringFormatter("",(Object)(_labelx[_p].getText()))+" - "+__c.SmartStringFormatter("",(Object)((70*_p)))+""),0);
 //BA.debugLineNum = 211;BA.debugLine="Log(labelX(p).Height)";
__c.LogImpl("434209842",BA.NumberToString(_labelx[_p].getHeight()),0);
 //BA.debugLineNum = 212;BA.debugLine="sv_cuest.panel.AddView(labelX(p), 0, (70 * p), (";
_sv_cuest.getPanel().AddView((android.view.View)(_labelx[_p].getObject()),(int) (0),(int) ((70*_p)),(int) ((_panelx.getWidth()*0.72)),(int) (60));
 //BA.debugLineNum = 213;BA.debugLine="sv_cuest.panel.AddView(et(p), (labelX(p).Width +";
_sv_cuest.getPanel().AddView((android.view.View)(_et[_p].getObject()),(int) ((_labelx[_p].getWidth()+5)),(int) ((70*_p)),(int) ((_panelx.getWidth()*0.2)),(int) (115));
 //BA.debugLineNum = 214;BA.debugLine="Private newTop As Int = 0 'lbl.top + lbl.Height";
_newtop = (int) (0);
 //BA.debugLineNum = 215;BA.debugLine="If p <> 0 Then newTop = et(p - 1).Top + et(p - 1";
if (_p!=0) { 
_newtop = (int) (_et[(int) (_p-1)].getTop()+_et[(int) (_p-1)].getHeight()+5);};
 //BA.debugLineNum = 216;BA.debugLine="et(p).Top = newTop";
_et[_p].setTop(_newtop);
 //BA.debugLineNum = 217;BA.debugLine="labelX(p).Top = newTop";
_labelx[_p].setTop(_newtop);
 }
};
 //BA.debugLineNum = 219;BA.debugLine="bAceptarPregunta.Text = \"Continuar\"";
_baceptarpregunta.setText(BA.ObjectToCharSequence("Continuar"));
 //BA.debugLineNum = 220;BA.debugLine="panelX.AddView(sv_cuest, 10, lbl.top + lbl.Height";
_panelx.AddView((android.view.View)(_sv_cuest.getObject()),(int) (10),(int) (_lbl.getTop()+_lbl.getHeight()+20),(int) ((_panelx.getWidth()*0.95)),__c.DipToCurrent((int) (300)));
 //BA.debugLineNum = 221;BA.debugLine="sv_cuest.panel.Height = newTop + 40dip";
_sv_cuest.getPanel().setHeight((int) (_newtop+__c.DipToCurrent((int) (40))));
 //BA.debugLineNum = 222;BA.debugLine="panelX.Height = newTop + 80dip + 35dip 'Calculamo";
_panelx.setHeight((int) (_newtop+__c.DipToCurrent((int) (80))+__c.DipToCurrent((int) (35))));
 //BA.debugLineNum = 223;BA.debugLine="panelX.Height = 150dip + (respuestas.Size * 80) '";
_panelx.setHeight((int) (__c.DipToCurrent((int) (150))+(_respuestas.getSize()*80)));
 //BA.debugLineNum = 225;BA.debugLine="If panelX.Height > (Root2.Height * 0.7) Then ' Si";
if (_panelx.getHeight()>(_root2.getHeight()*0.7)) { 
 //BA.debugLineNum = 226;BA.debugLine="panelX.Height = Root2.Height * 0.7";
_panelx.setHeight((int) (_root2.getHeight()*0.7));
 };
 //BA.debugLineNum = 228;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, (panelX.Heig";
_panelx.AddView((android.view.View)(_baceptarpregunta.getObject()),(int) (10),(int) ((_panelx.getHeight()-__c.DipToCurrent((int) (55)))),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50)));
 //BA.debugLineNum = 229;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc";
_baceptarpregunta.setLeft((int) ((_panelx.getWidth()/(double)2)-(_baceptarpregunta.getWidth()/(double)2)));
 //BA.debugLineNum = 230;BA.debugLine="bAceptarPregunta.Enabled = False";
_baceptarpregunta.setEnabled(__c.False);
 //BA.debugLineNum = 231;BA.debugLine="sv_cuest.Height = panelX.Height - (lbl.Top + lbl.";
_sv_cuest.setHeight((int) (_panelx.getHeight()-(_lbl.getTop()+_lbl.getHeight())-__c.DipToCurrent((int) (55))));
 //BA.debugLineNum = 232;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /";
_panelx.setLeft((int) ((_root2.getWidth()/(double)2)-(_panelx.getWidth()/(double)2)));
 //BA.debugLineNum = 233;BA.debugLine="panelX.top = (Root2.Height / 2) - (panelX.Height";
_panelx.setTop((int) ((_root2.getHeight()/(double)2)-(_panelx.getHeight()/(double)2)));
 //BA.debugLineNum = 234;BA.debugLine="If respuestas.Size < 10 Then panelX.top = (Root2.";
if (_respuestas.getSize()<10) { 
_panelx.setTop((int) ((_root2.getHeight()/(double)3)-(_panelx.getHeight()/(double)2)));};
 //BA.debugLineNum = 235;BA.debugLine="panelSombra.Width = Root2.Width";
_panelsombra.setWidth(_root2.getWidth());
 //BA.debugLineNum = 236;BA.debugLine="panelSombra.Height = Root2.Height";
_panelsombra.setHeight(_root2.getHeight());
 //BA.debugLineNum = 237;BA.debugLine="panelSombra.Elevation = 100dip";
_panelsombra.setElevation((float) (__c.DipToCurrent((int) (100))));
 //BA.debugLineNum = 238;BA.debugLine="panelSombra.BringToFront";
_panelsombra.BringToFront();
 //BA.debugLineNum = 239;BA.debugLine="bringToFrontCont = 0";
_bringtofrontcont = (int) (0);
 //BA.debugLineNum = 240;BA.debugLine="End Sub";
return "";
}
public String  _agregapreguntacheckbox(String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{
anywheresoftware.b4a.objects.StringUtils _su = null;
anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null;
anywheresoftware.b4a.objects.PanelWrapper _panelx = null;
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper[] _cb = null;
int _p = 0;
int _newtop = 0;
 //BA.debugLineNum = 63;BA.debugLine="Sub agregaPreguntaCheckbox(id As String, pregunta";
 //BA.debugLineNum = 64;BA.debugLine="encuestaIniciada = True";
_encuestainiciada = __c.True;
 //BA.debugLineNum = 65;BA.debugLine="vPreguntaActual = id";
_vpreguntaactual = _id;
 //BA.debugLineNum = 66;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")";
_baceptarpregunta.Initialize(ba,"bAceptarPregunta");
 //BA.debugLineNum = 67;BA.debugLine="bAceptarPregunta.Enabled = False";
_baceptarpregunta.setEnabled(__c.False);
 //BA.debugLineNum = 68;BA.debugLine="Private su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
 //BA.debugLineNum = 69;BA.debugLine="panelSombra.Initialize(\"pSombra\")";
_panelsombra.Initialize(ba,"pSombra");
 //BA.debugLineNum = 70;BA.debugLine="Private cd As ColorDrawable";
_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
 //BA.debugLineNum = 71;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)";
_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0));
 //BA.debugLineNum = 72;BA.debugLine="panelSombra.Background = cd";
_panelsombra.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
 //BA.debugLineNum = 73;BA.debugLine="Private panelX As Panel 'Panel de la pregunta.";
_panelx = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 74;BA.debugLine="panelX.Initialize(\"pQuest\")";
_panelx.Initialize(ba,"pQuest");
 //BA.debugLineNum = 75;BA.debugLine="panelActual = panelX";
_panelactual = _panelx;
 //BA.debugLineNum = 76;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta.";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 77;BA.debugLine="lbl.Initialize(\"\")";
_lbl.Initialize(ba,"");
 //BA.debugLineNum = 78;BA.debugLine="lbl.Text = pregunta";
_lbl.setText(BA.ObjectToCharSequence(_pregunta));
 //BA.debugLineNum = 79;BA.debugLine="lbl.TextSize = 16";
_lbl.setTextSize((float) (16));
 //BA.debugLineNum = 80;BA.debugLine="lbl.TextColor = Colors.Black";
_lbl.setTextColor(__c.Colors.Black);
 //BA.debugLineNum = 81;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)";
_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray);
 //BA.debugLineNum = 82;BA.debugLine="panelX.Background = cd";
_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
 //BA.debugLineNum = 83;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20";
_panelsombra.AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200)));
 //BA.debugLineNum = 84;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a";
_root2.AddView((android.view.View)(_panelsombra.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
 //BA.debugLineNum = 85;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *";
_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40)));
 //BA.debugLineNum = 86;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l";
_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText())));
 //BA.debugLineNum = 87;BA.debugLine="Private cb(respuestas.Size) As CheckBox";
_cb = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper[_respuestas.getSize()];
{
int d0 = _cb.length;
for (int i0 = 0;i0 < d0;i0++) {
_cb[i0] = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
}
}
;
 //BA.debugLineNum = 88;BA.debugLine="For p = 0 To respuestas.Size - 1";
{
final int step25 = 1;
final int limit25 = (int) (_respuestas.getSize()-1);
_p = (int) (0) ;
for (;_p <= limit25 ;_p = _p + step25 ) {
 //BA.debugLineNum = 89;BA.debugLine="cb(p).Initialize(\"cb\")";
_cb[_p].Initialize(ba,"cb");
 //BA.debugLineNum = 90;BA.debugLine="cb(p).Text = respuestas.Get(p)";
_cb[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p)));
 //BA.debugLineNum = 91;BA.debugLine="cb(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregun";
_cb[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(_panelsombra.getObject()),(Object)("idRespuesta"),(Object)(_p+1)}).getObject()));
 //BA.debugLineNum = 92;BA.debugLine="panelX.AddView(cb(p), 10dip, (70 * (p + 1)), (pa";
_panelx.AddView((android.view.View)(_cb[_p].getObject()),__c.DipToCurrent((int) (10)),(int) ((70*(_p+1))),(int) ((_panelx.getWidth()*0.9)),(int) (10));
 //BA.debugLineNum = 93;BA.debugLine="cb(p).Height = su.MeasureMultilineTextHeight(cb(";
_cb[_p].setHeight((int) (_su.MeasureMultilineTextHeight((android.widget.TextView)(_cb[_p].getObject()),BA.ObjectToCharSequence(_cb[_p].getText()))+1));
 //BA.debugLineNum = 94;BA.debugLine="Private newTop As Int = lbl.top + lbl.Height + 1";
_newtop = (int) (_lbl.getTop()+_lbl.getHeight()+10);
 //BA.debugLineNum = 95;BA.debugLine="If p <> 0 Then newTop =cb(p - 1).Top + cb(p - 1)";
if (_p!=0) { 
_newtop = (int) (_cb[(int) (_p-1)].getTop()+_cb[(int) (_p-1)].getHeight()+10);};
 //BA.debugLineNum = 96;BA.debugLine="cb(p).Top = newTop";
_cb[_p].setTop(_newtop);
 }
};
 //BA.debugLineNum = 98;BA.debugLine="bAceptarPregunta.Text = \"Continuar\"";
_baceptarpregunta.setText(BA.ObjectToCharSequence("Continuar"));
 //BA.debugLineNum = 100;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, newTop + cb(";
_panelx.AddView((android.view.View)(_baceptarpregunta.getObject()),(int) (10),(int) (_newtop+_cb[(int) (_respuestas.getSize()-1)].getHeight()+20),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50)));
 //BA.debugLineNum = 101;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc";
_baceptarpregunta.setLeft((int) ((_panelx.getWidth()/(double)2)-(_baceptarpregunta.getWidth()/(double)2)));
 //BA.debugLineNum = 102;BA.debugLine="panelX.Height = bAceptarPregunta.Top + bAceptarPr";
_panelx.setHeight((int) (_baceptarpregunta.getTop()+_baceptarpregunta.getHeight()+__c.DipToCurrent((int) (15))));
 //BA.debugLineNum = 103;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /";
_panelx.setLeft((int) ((_root2.getWidth()/(double)2)-(_panelx.getWidth()/(double)2)));
 //BA.debugLineNum = 104;BA.debugLine="panelX.top = (Root2.Height / 3) - (panelX.Height";
_panelx.setTop((int) ((_root2.getHeight()/(double)3)-(_panelx.getHeight()/(double)3)));
 //BA.debugLineNum = 105;BA.debugLine="panelSombra.Width = Root2.Width";
_panelsombra.setWidth(_root2.getWidth());
 //BA.debugLineNum = 106;BA.debugLine="panelSombra.Height = Root2.Height";
_panelsombra.setHeight(_root2.getHeight());
 //BA.debugLineNum = 107;BA.debugLine="panelSombra.Elevation = 100";
_panelsombra.setElevation((float) (100));
 //BA.debugLineNum = 108;BA.debugLine="panelSombra.BringToFront";
_panelsombra.BringToFront();
 //BA.debugLineNum = 110;BA.debugLine="End Sub";
return "";
}
public String  _agregapreguntaradio(String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{
anywheresoftware.b4a.objects.StringUtils _su = null;
anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null;
anywheresoftware.b4a.objects.PanelWrapper _panelx = null;
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper[] _r = null;
int _p = 0;
int _newtop = 0;
 //BA.debugLineNum = 112;BA.debugLine="Sub agregaPreguntaRadio(id As String, pregunta As";
 //BA.debugLineNum = 113;BA.debugLine="encuestaIniciada = True";
_encuestainiciada = __c.True;
 //BA.debugLineNum = 114;BA.debugLine="vPreguntaActual = id";
_vpreguntaactual = _id;
 //BA.debugLineNum = 115;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")";
_baceptarpregunta.Initialize(ba,"bAceptarPregunta");
 //BA.debugLineNum = 116;BA.debugLine="Private su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
 //BA.debugLineNum = 117;BA.debugLine="panelSombra.Initialize(\"pSombra\")";
_panelsombra.Initialize(ba,"pSombra");
 //BA.debugLineNum = 118;BA.debugLine="Private cd As ColorDrawable";
_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
 //BA.debugLineNum = 119;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)";
_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0));
 //BA.debugLineNum = 120;BA.debugLine="panelSombra.Background = cd";
_panelsombra.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
 //BA.debugLineNum = 121;BA.debugLine="Private panelX As Panel 'Panel de la pregunta.";
_panelx = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 122;BA.debugLine="panelX.Initialize(\"pQuest\")";
_panelx.Initialize(ba,"pQuest");
 //BA.debugLineNum = 123;BA.debugLine="panelActual = panelX";
_panelactual = _panelx;
 //BA.debugLineNum = 124;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta.";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 125;BA.debugLine="lbl.Initialize(\"\")";
_lbl.Initialize(ba,"");
 //BA.debugLineNum = 126;BA.debugLine="lbl.Text = pregunta";
_lbl.setText(BA.ObjectToCharSequence(_pregunta));
 //BA.debugLineNum = 127;BA.debugLine="lbl.TextSize = 16";
_lbl.setTextSize((float) (16));
 //BA.debugLineNum = 128;BA.debugLine="lbl.TextColor = Colors.Black";
_lbl.setTextColor(__c.Colors.Black);
 //BA.debugLineNum = 129;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)";
_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray);
 //BA.debugLineNum = 130;BA.debugLine="panelX.Background = cd";
_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
 //BA.debugLineNum = 131;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20";
_panelsombra.AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200)));
 //BA.debugLineNum = 132;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a";
_root2.AddView((android.view.View)(_panelsombra.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
 //BA.debugLineNum = 133;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *";
_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40)));
 //BA.debugLineNum = 134;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l";
_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText())));
 //BA.debugLineNum = 135;BA.debugLine="Private r(respuestas.Size) As RadioButton";
_r = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper[_respuestas.getSize()];
{
int d0 = _r.length;
for (int i0 = 0;i0 < d0;i0++) {
_r[i0] = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
}
}
;
 //BA.debugLineNum = 136;BA.debugLine="For p = 0 To respuestas.Size - 1";
{
final int step24 = 1;
final int limit24 = (int) (_respuestas.getSize()-1);
_p = (int) (0) ;
for (;_p <= limit24 ;_p = _p + step24 ) {
 //BA.debugLineNum = 137;BA.debugLine="r(p).Initialize(\"r\")";
_r[_p].Initialize(ba,"r");
 //BA.debugLineNum = 138;BA.debugLine="r(p).Text = respuestas.Get(p)";
_r[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p)));
 //BA.debugLineNum = 139;BA.debugLine="r(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregunt";
_r[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(_panelsombra.getObject()),(Object)("idRespuesta"),(Object)(_p+1)}).getObject()));
 //BA.debugLineNum = 140;BA.debugLine="panelX.AddView(r(p), 10dip, (70 * (p + 1)), (pan";
_panelx.AddView((android.view.View)(_r[_p].getObject()),__c.DipToCurrent((int) (10)),(int) ((70*(_p+1))),(int) ((_panelx.getWidth()*0.9)),(int) (10));
 //BA.debugLineNum = 141;BA.debugLine="r(p).Height = su.MeasureMultilineTextHeight(r(p)";
_r[_p].setHeight((int) (_su.MeasureMultilineTextHeight((android.widget.TextView)(_r[_p].getObject()),BA.ObjectToCharSequence(_r[_p].getText()))+25));
 //BA.debugLineNum = 142;BA.debugLine="Private newTop As Int = lbl.top + lbl.Height + 1";
_newtop = (int) (_lbl.getTop()+_lbl.getHeight()+10);
 //BA.debugLineNum = 143;BA.debugLine="If p <> 0 Then newTop = r(p - 1).Top + r(p - 1).";
if (_p!=0) { 
_newtop = (int) (_r[(int) (_p-1)].getTop()+_r[(int) (_p-1)].getHeight()+5);};
 //BA.debugLineNum = 144;BA.debugLine="r(p).Top = newTop";
_r[_p].setTop(_newtop);
 }
};
 //BA.debugLineNum = 146;BA.debugLine="r(0).Checked = True";
_r[(int) (0)].setChecked(__c.True);
 //BA.debugLineNum = 147;BA.debugLine="bAceptarPregunta.Text = \"Continuar\"";
_baceptarpregunta.setText(BA.ObjectToCharSequence("Continuar"));
 //BA.debugLineNum = 149;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, newTop + r(r";
_panelx.AddView((android.view.View)(_baceptarpregunta.getObject()),(int) (10),(int) (_newtop+_r[(int) (_respuestas.getSize()-1)].getHeight()+20),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50)));
 //BA.debugLineNum = 150;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc";
_baceptarpregunta.setLeft((int) ((_panelx.getWidth()/(double)2)-(_baceptarpregunta.getWidth()/(double)2)));
 //BA.debugLineNum = 151;BA.debugLine="panelX.Height = bAceptarPregunta.Top + bAceptarPr";
_panelx.setHeight((int) (_baceptarpregunta.getTop()+_baceptarpregunta.getHeight()+__c.DipToCurrent((int) (15))));
 //BA.debugLineNum = 152;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /";
_panelx.setLeft((int) ((_root2.getWidth()/(double)2)-(_panelx.getWidth()/(double)2)));
 //BA.debugLineNum = 153;BA.debugLine="panelX.top = (Root2.Height / 3) - (panelX.Height";
_panelx.setTop((int) ((_root2.getHeight()/(double)3)-(_panelx.getHeight()/(double)2)));
 //BA.debugLineNum = 154;BA.debugLine="panelSombra.Width = Root2.Width";
_panelsombra.setWidth(_root2.getWidth());
 //BA.debugLineNum = 155;BA.debugLine="panelSombra.Height = Root2.Height";
_panelsombra.setHeight(_root2.getHeight());
 //BA.debugLineNum = 156;BA.debugLine="panelSombra.Elevation = 100";
_panelsombra.setElevation((float) (100));
 //BA.debugLineNum = 157;BA.debugLine="panelSombra.BringToFront";
_panelsombra.BringToFront();
 //BA.debugLineNum = 158;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
 //BA.debugLineNum = 32;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
 //BA.debugLineNum = 33;BA.debugLine="Root = Root1";
_root = _root1;
 //BA.debugLineNum = 35;BA.debugLine="End Sub";
return "";
}
public String  _baceptarpregunta_click() throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
 //BA.debugLineNum = 338;BA.debugLine="Private Sub bAceptarPregunta_Click";
 //BA.debugLineNum = 339;BA.debugLine="encuestaIniciada = True";
_encuestainiciada = __c.True;
 //BA.debugLineNum = 340;BA.debugLine="Private m As Map = Sender.As(Button).tag.As(Map)";
_m = new anywheresoftware.b4a.objects.collections.Map();
_m = ((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba)))).getTag())));
 //BA.debugLineNum = 341;BA.debugLine="preguntaContestada(m)";
_preguntacontestada(_m);
 //BA.debugLineNum = 354;BA.debugLine="End Sub";
return "";
}
public String  _cb_checkedchange(boolean _checked) throws Exception{
anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _elcb = null;
anywheresoftware.b4a.objects.collections.Map _elcbmap = null;
int _cuantoschks = 0;
anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null;
String _cb_idrespuestas = "";
 //BA.debugLineNum = 255;BA.debugLine="private Sub cb_CheckedChange(Checked As Boolean)";
 //BA.debugLineNum = 256;BA.debugLine="Private elCB As CheckBox = Sender.As(CheckBox)";
_elcb = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
_elcb = ((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(__c.Sender(ba))));
 //BA.debugLineNum = 257;BA.debugLine="Private elCBMap As Map = elCB.tag.As(Map)";
_elcbmap = new anywheresoftware.b4a.objects.collections.Map();
_elcbmap = ((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_elcb.getTag())));
 //BA.debugLineNum = 258;BA.debugLine="Private cuantosChks As Int = 0";
_cuantoschks = (int) (0);
 //BA.debugLineNum = 260;BA.debugLine="If elCB.Text = \"Ninguno de los anteriores\" And el";
if ((_elcb.getText()).equals("Ninguno de los anteriores") && _elcb.getChecked()==__c.True) { 
 //BA.debugLineNum = 261;BA.debugLine="For Each v As View In panelActual.GetAllViewsRec";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
{
final anywheresoftware.b4a.BA.IterableList group5 = _panelactual.GetAllViewsRecursive();
final int groupLen5 = group5.getSize()
;int index5 = 0;
;
for (; index5 < groupLen5;index5++){
_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group5.Get(index5)));
 //BA.debugLineNum = 262;BA.debugLine="If getViewType(v) = \"CheckBox\" Then";
if ((_getviewtype(_v)).equals("CheckBox")) { 
 //BA.debugLineNum = 263;BA.debugLine="cuantosChks = cuantosChks + 1";
_cuantoschks = (int) (_cuantoschks+1);
 //BA.debugLineNum = 264;BA.debugLine="v.As(CheckBox).Checked = False";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setChecked(__c.False);
 //BA.debugLineNum = 265;BA.debugLine="v.As(CheckBox).Enabled = False";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.False);
 //BA.debugLineNum = 268;BA.debugLine="If v.As(CheckBox).Text = \"Ninguno de los anter";
if ((((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText()).equals("Ninguno de los anteriores")) { 
 //BA.debugLineNum = 269;BA.debugLine="v.As(CheckBox).Enabled = True";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.True);
 //BA.debugLineNum = 270;BA.debugLine="v.As(CheckBox).Checked = True";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setChecked(__c.True);
 };
 //BA.debugLineNum = 272;BA.debugLine="If v.As(CheckBox).Checked Then cb_respuestas =";
if (((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getChecked()) { 
_cb_respuestas = _cb_respuestas+"|"+((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText();};
 };
 }
};
 }else if((_elcb.getText()).equals("Ninguno de los anteriores") && _elcb.getChecked()==__c.False) { 
 //BA.debugLineNum = 276;BA.debugLine="For Each v As View In panelActual.GetAllViewsRec";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
{
final anywheresoftware.b4a.BA.IterableList group18 = _panelactual.GetAllViewsRecursive();
final int groupLen18 = group18.getSize()
;int index18 = 0;
;
for (; index18 < groupLen18;index18++){
_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group18.Get(index18)));
 //BA.debugLineNum = 277;BA.debugLine="If getViewType(v) = \"CheckBox\" Then";
if ((_getviewtype(_v)).equals("CheckBox")) { 
 //BA.debugLineNum = 278;BA.debugLine="v.As(CheckBox).Enabled = True";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.True);
 };
 }
};
 };
 //BA.debugLineNum = 282;BA.debugLine="If cuantosChks = 0 Then bAceptarPregunta.Enabled";
if (_cuantoschks==0) { 
_baceptarpregunta.setEnabled(__c.False);};
 //BA.debugLineNum = 283;BA.debugLine="cb_respuestas = \"\"";
_cb_respuestas = "";
 //BA.debugLineNum = 284;BA.debugLine="Private cb_idRespuestas As String= \"\"";
_cb_idrespuestas = "";
 //BA.debugLineNum = 285;BA.debugLine="For Each v As View In panelActual.GetAllViewsRecu";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
{
final anywheresoftware.b4a.BA.IterableList group27 = _panelactual.GetAllViewsRecursive();
final int groupLen27 = group27.getSize()
;int index27 = 0;
;
for (; index27 < groupLen27;index27++){
_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group27.Get(index27)));
 //BA.debugLineNum = 287;BA.debugLine="If getViewType(v) = \"CheckBox\" Then";
if ((_getviewtype(_v)).equals("CheckBox")) { 
 //BA.debugLineNum = 290;BA.debugLine="If v.As(CheckBox).Checked Then";
if (((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getChecked()) { 
 //BA.debugLineNum = 292;BA.debugLine="If cb_respuestas = \"\" Then";
if ((_cb_respuestas).equals("")) { 
 //BA.debugLineNum = 293;BA.debugLine="cb_respuestas = v.As(CheckBox).Text";
_cb_respuestas = ((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText();
 //BA.debugLineNum = 294;BA.debugLine="cb_idRespuestas = v.As(CheckBox).Tag.As(Map).";
_cb_idrespuestas = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta")));
 }else {
 //BA.debugLineNum = 296;BA.debugLine="cb_respuestas = cb_respuestas &\"|\" & v.As(Che";
_cb_respuestas = _cb_respuestas+"|"+((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText();
 //BA.debugLineNum = 297;BA.debugLine="cb_idRespuestas = cb_idRespuestas &\"|\" & v.As";
_cb_idrespuestas = _cb_idrespuestas+"|"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta")));
 };
 //BA.debugLineNum = 299;BA.debugLine="bAceptarPregunta.Enabled = True ' Si hay opcio";
_baceptarpregunta.setEnabled(__c.True);
 };
 };
 }
};
 //BA.debugLineNum = 306;BA.debugLine="bAceptarPregunta.tag = CreateMap(\"idPregunta\":elC";
_baceptarpregunta.setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(_elcbmap.Get((Object)("id"))))),(Object)("pregunta"),_elcbmap.Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)(_cb_idrespuestas),(Object)("respuesta"),(Object)(_cb_respuestas),(Object)("panel"),_elcbmap.Get((Object)("panel"))}).getObject()));
 //BA.debugLineNum = 307;BA.debugLine="End Sub";
return "";
}
public String  _class_globals() throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
 //BA.debugLineNum = 4;BA.debugLine="Private bAceptarPregunta As Button";
_baceptarpregunta = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 5;BA.debugLine="Dim encuestaIniciada As Boolean = False";
_encuestainiciada = __c.False;
 //BA.debugLineNum = 6;BA.debugLine="Private Root2 As B4XView";
_root2 = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 7;BA.debugLine="Private EventName As String 'ignore";
_eventname = "";
 //BA.debugLineNum = 8;BA.debugLine="Private CallBack As Object 'ignore";
_callback = new Object();
 //BA.debugLineNum = 9;BA.debugLine="Private vPreguntaActual As String";
_vpreguntaactual = "";
 //BA.debugLineNum = 10;BA.debugLine="Private db As SQL";
_db = new anywheresoftware.b4a.sql.SQL();
 //BA.debugLineNum = 12;BA.debugLine="Dim panelSombra As Panel 'Panel de sombra.";
_panelsombra = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 13;BA.debugLine="Dim cb_respuestas As String = \"\"";
_cb_respuestas = "";
 //BA.debugLineNum = 14;BA.debugLine="Dim panelActual As Panel";
_panelactual = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 15;BA.debugLine="Dim bringToFrontCont As Int = 0";
_bringtofrontcont = (int) (0);
 //BA.debugLineNum = 16;BA.debugLine="End Sub";
return "";
}
public boolean  _clienteconcuestionario(String _idcliente) throws Exception{
boolean _r = false;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
 //BA.debugLineNum = 357;BA.debugLine="Sub clienteConCuestionario(idCliente As String) As";
 //BA.debugLineNum = 358;BA.debugLine="Private r As Boolean = False";
_r = __c.False;
 //BA.debugLineNum = 359;BA.debugLine="Private c As Cursor = db.ExecQuery($\"select count";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_db.ExecQuery(("select count(*) as q from CUESTIONARIO where Q_IDCLIENTE = '"+__c.SmartStringFormatter("",(Object)(_idcliente))+"'"))));
 //BA.debugLineNum = 360;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 361;BA.debugLine="If c.GetInt(\"q\") > 0 Then r = True";
if (_c.GetInt("q")>0) { 
_r = __c.True;};
 //BA.debugLineNum = 362;BA.debugLine="Return r";
if (true) return _r;
 //BA.debugLineNum = 363;BA.debugLine="End Sub";
return false;
}
public String  _et_textchanged(String _old,String _new) throws Exception{
int _ettotales = 0;
int _etcont = 0;
String _etresps = "";
String _etidresps = "";
anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null;
 //BA.debugLineNum = 309;BA.debugLine="Private Sub et_TextChanged(Old As String, New As S";
 //BA.debugLineNum = 310;BA.debugLine="Log($\"${Old}, ${New}\"$)";
__c.LogImpl("434537473",(""+__c.SmartStringFormatter("",(Object)(_old))+", "+__c.SmartStringFormatter("",(Object)(_new))+""),0);
 //BA.debugLineNum = 311;BA.debugLine="Private etTotales As Int = 0";
_ettotales = (int) (0);
 //BA.debugLineNum = 312;BA.debugLine="Private etCont As Int = 0";
_etcont = (int) (0);
 //BA.debugLineNum = 313;BA.debugLine="Private etResps As String = \"\"";
_etresps = "";
 //BA.debugLineNum = 314;BA.debugLine="Private etIdResps As String = \"\"";
_etidresps = "";
 //BA.debugLineNum = 315;BA.debugLine="For Each v As View In panelActual.GetAllViewsRecu";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
{
final anywheresoftware.b4a.BA.IterableList group6 = _panelactual.GetAllViewsRecursive();
final int groupLen6 = group6.getSize()
;int index6 = 0;
;
for (; index6 < groupLen6;index6++){
_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group6.Get(index6)));
 //BA.debugLineNum = 317;BA.debugLine="If getViewType(v) = \"EditText\" Then";
if ((_getviewtype(_v)).equals("EditText")) { 
 //BA.debugLineNum = 318;BA.debugLine="etTotales = etTotales + 1";
_ettotales = (int) (_ettotales+1);
 //BA.debugLineNum = 320;BA.debugLine="If v.As(EditText).text <> \"\" Then";
if ((((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText()).equals("") == false) { 
 //BA.debugLineNum = 321;BA.debugLine="etCont = etCont + 1";
_etcont = (int) (_etcont+1);
 //BA.debugLineNum = 322;BA.debugLine="If etResps = \"\" Then";
if ((_etresps).equals("")) { 
 //BA.debugLineNum = 323;BA.debugLine="etResps = v.As(EditText).Text";
_etresps = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText();
 //BA.debugLineNum = 324;BA.debugLine="etIdResps = v.As(EditText).Tag.As(Map).Get(\"i";
_etidresps = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta")));
 }else {
 //BA.debugLineNum = 326;BA.debugLine="etResps = etResps &\"|\" & v.As(EditText).Text";
_etresps = _etresps+"|"+((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText();
 //BA.debugLineNum = 327;BA.debugLine="etIdResps = etIdResps &\"|\" & v.As(EditText).T";
_etidresps = _etidresps+"|"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta")));
 };
 };
 };
 }
};
 //BA.debugLineNum = 333;BA.debugLine="Log($\"${etCont}, ${etTotales}\"$)";
__c.LogImpl("434537496",(""+__c.SmartStringFormatter("",(Object)(_etcont))+", "+__c.SmartStringFormatter("",(Object)(_ettotales))+""),0);
 //BA.debugLineNum = 334;BA.debugLine="bAceptarPregunta.Tag = CreateMap(\"idPregunta\":Sen";
_baceptarpregunta.setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("id"))))),(Object)("pregunta"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)(_etidresps),(Object)("respuesta"),(Object)(_etresps),(Object)("panel"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("panel"))}).getObject()));
 //BA.debugLineNum = 335;BA.debugLine="If etCont = etTotales Then bAceptarPregunta.Enabl";
if (_etcont==_ettotales) { 
_baceptarpregunta.setEnabled(__c.True);}
else {
_baceptarpregunta.setEnabled(__c.False);};
 //BA.debugLineNum = 336;BA.debugLine="End Sub";
return "";
}
public String  _getviewtype(anywheresoftware.b4a.objects.ConcreteViewWrapper _v) throws Exception{
String _t = "";
String[] _t2 = null;
 //BA.debugLineNum = 391;BA.debugLine="Sub getViewType (v As View) As String 'ignore";
 //BA.debugLineNum = 392;BA.debugLine="Private t As String = GetType(v)";
_t = __c.GetType((Object)(_v.getObject()));
 //BA.debugLineNum = 394;BA.debugLine="Private t2() As String = Regex.Split(\"\\.\", t)";
_t2 = __c.Regex.Split("\\.",_t);
 //BA.debugLineNum = 396;BA.debugLine="If t2.Length = 3 Then";
if (_t2.length==3) { 
 //BA.debugLineNum = 397;BA.debugLine="t = t2(2)";
_t = _t2[(int) (2)];
 };
 //BA.debugLineNum = 399;BA.debugLine="Return t";
if (true) return _t;
 //BA.debugLineNum = 400;BA.debugLine="End Sub";
return "";
}
public Object  _initialize(anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname,anywheresoftware.b4a.objects.B4XViewWrapper _vroot,anywheresoftware.b4a.sql.SQL _skmt) throws Exception{
innerInitialize(_ba);
 //BA.debugLineNum = 19;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent";
 //BA.debugLineNum = 20;BA.debugLine="Root2 = vRoot";
_root2 = _vroot;
 //BA.debugLineNum = 21;BA.debugLine="EventName = vEventName";
_eventname = _veventname;
 //BA.debugLineNum = 22;BA.debugLine="CallBack = vCallback";
_callback = _vcallback;
 //BA.debugLineNum = 23;BA.debugLine="db = skmt";
_db = _skmt;
 //BA.debugLineNum = 24;BA.debugLine="vPreguntaActual = 0";
_vpreguntaactual = BA.NumberToString(0);
 //BA.debugLineNum = 25;BA.debugLine="db.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CUEST";
_db.ExecNonQuery("CREATE TABLE IF NOT EXISTS CUESTIONARIO (Q_RUTA TEXT, Q_ALMACEN TEXT, Q_IDCLIENTE TEXT, Q_IDPREGUNTA TEXT, Q_PREGUNTA TEXT, Q_IDRESPUESTA TEXT, Q_RESPUESTA TEXT, Q_FECHA TEXT, Q_ENVIO_OK INTEGER DEFAULT 0)");
 //BA.debugLineNum = 26;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_RUTA\", \"TEXT\")";
_agregacolumna("CUESTIONARIO","Q_RUTA","TEXT");
 //BA.debugLineNum = 27;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_ALMACEN\", \"TEXT\"";
_agregacolumna("CUESTIONARIO","Q_ALMACEN","TEXT");
 //BA.debugLineNum = 28;BA.debugLine="Return Me";
if (true) return this;
 //BA.debugLineNum = 29;BA.debugLine="End Sub";
return null;
}
public String  _ocultpanelpregunta() throws Exception{
 //BA.debugLineNum = 366;BA.debugLine="Sub ocultPanelPregunta";
 //BA.debugLineNum = 367;BA.debugLine="If panelSombra.IsInitialized Then panelSombra.Rem";
if (_panelsombra.IsInitialized()) { 
_panelsombra.RemoveView();};
 //BA.debugLineNum = 368;BA.debugLine="End Sub";
return "";
}
public String  _preguntaactual() throws Exception{
 //BA.debugLineNum = 43;BA.debugLine="Sub preguntaActual As String 'ignore";
 //BA.debugLineNum = 44;BA.debugLine="Return vPreguntaActual";
if (true) return _vpreguntaactual;
 //BA.debugLineNum = 45;BA.debugLine="End Sub";
return "";
}
public String  _preguntacontestada(anywheresoftware.b4a.objects.collections.Map _success) throws Exception{
 //BA.debugLineNum = 242;BA.debugLine="private Sub preguntaContestada(Success As Map) 'ig";
 //BA.debugLineNum = 243;BA.debugLine="If SubExists(CallBack, EventName & \"_preguntaCont";
if (__c.SubExists(ba,_callback,_eventname+"_preguntaContestada")) { 
 //BA.debugLineNum = 244;BA.debugLine="CallSubDelayed2(CallBack, EventName & \"_pregunta";
__c.CallSubDelayed2(ba,_callback,_eventname+"_preguntaContestada",(Object)(_success));
 };
 //BA.debugLineNum = 246;BA.debugLine="End Sub";
return "";
}
public String  _psombra_click() throws Exception{
 //BA.debugLineNum = 248;BA.debugLine="private Sub pSombra_Click";
 //BA.debugLineNum = 249;BA.debugLine="End Sub";
return "";
}
public String  _r_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 251;BA.debugLine="private Sub r_CheckedChange(Checked As Boolean)";
 //BA.debugLineNum = 252;BA.debugLine="bAceptarPregunta.tag = CreateMap(\"idPregunta\":Sen";
_baceptarpregunta.setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("id"))))),(Object)("pregunta"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("idRespuesta"))))),(Object)("respuesta"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()),(Object)("panel"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("panel"))}).getObject()));
 //BA.debugLineNum = 253;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.collections.List  _strtolist(String _str) throws Exception{
String[] _resps = null;
anywheresoftware.b4a.objects.collections.List _l = null;
int _r = 0;
 //BA.debugLineNum = 403;BA.debugLine="Sub strToList(str As String) As List 'ignore";
 //BA.debugLineNum = 404;BA.debugLine="Private resps() As String = Regex.Split(\"\\|\", str";
_resps = __c.Regex.Split("\\|",_str);
 //BA.debugLineNum = 405;BA.debugLine="Private l As List";
_l = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 406;BA.debugLine="l.Initialize";
_l.Initialize();
 //BA.debugLineNum = 407;BA.debugLine="For r = 0 To resps.Length - 1";
{
final int step4 = 1;
final int limit4 = (int) (_resps.length-1);
_r = (int) (0) ;
for (;_r <= limit4 ;_r = _r + step4 ) {
 //BA.debugLineNum = 408;BA.debugLine="l.Add(resps(r))";
_l.Add((Object)(_resps[_r]));
 }
};
 //BA.debugLineNum = 410;BA.debugLine="Return l";
if (true) return _l;
 //BA.debugLineNum = 411;BA.debugLine="End Sub";
return null;
}
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
BA.senderHolder.set(sender);
if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
	return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
return BA.SubDelegator.SubNotFound;
}
}
