public static String _sendchooser(String _strpath,String _strfile) throws Exception{
anywheresoftware.b4a.objects.collections.Map _mapskipforlist = null;
String _strpackagename = "";
anywheresoftware.b4a.phone.PackageManagerWrapper _pm = null;
anywheresoftware.b4a.objects.IntentWrapper _intent1 = null;
String _cn = "";
anywheresoftware.b4a.objects.drawable.BitmapDrawable _bdw = null;
//BA.debugLineNum = 60;BA.debugLine="Sub SendChooser(strPath As String, strFile As Stri";
//BA.debugLineNum = 62;BA.debugLine="uriX.Parse(\"file://\" & File.Combine(strPath, s";
mostCurrent._urix.Parse("file://"+anywheresoftware.b4a.keywords.Common.File.Combine(_strpath,_strfile));
//BA.debugLineNum = 64;BA.debugLine="Dim mapSkipForList As Map";
_mapskipforlist = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 65;BA.debugLine="mapSkipForList.Initialize";
_mapskipforlist.Initialize();
//BA.debugLineNum = 66;BA.debugLine="mapSkipForList.Put(Application.PackageName, True)";
_mapskipforlist.Put((Object)(anywheresoftware.b4a.keywords.Common.Application.getPackageName()),(Object)(anywheresoftware.b4a.keywords.Common.True));
//BA.debugLineNum = 67;BA.debugLine="mapSkipForList.Put(\"com.google.android.apps.maps\"";
_mapskipforlist.Put((Object)("com.google.android.apps.maps"),(Object)(anywheresoftware.b4a.keywords.Common.True));
//BA.debugLineNum = 70;BA.debugLine="Dim strPackageName As String = \"\"";
_strpackagename = "";
//BA.debugLineNum = 71;BA.debugLine="Dim pm As PackageManager";
_pm = new anywheresoftware.b4a.phone.PackageManagerWrapper();
//BA.debugLineNum = 72;BA.debugLine="Dim Intent1 As Intent";
_intent1 = new anywheresoftware.b4a.objects.IntentWrapper();
//BA.debugLineNum = 73;BA.debugLine="Intent1.Initialize(Intent1.ACTION_SEND, \"file://\"";
_intent1.Initialize(_intent1.ACTION_SEND,"file://");
//BA.debugLineNum = 74;BA.debugLine="Intent1.SetType(\"image/*\")";
_intent1.SetType("image/*");
//BA.debugLineNum = 76;BA.debugLine="Log(\" \")";
anywheresoftware.b4a.keywords.Common.Log(" ");
//BA.debugLineNum = 77;BA.debugLine="For Each cn As String In pm.QueryIntentActivities";
final anywheresoftware.b4a.BA.IterableList group12 = _pm.QueryIntentActivities((android.content.Intent)(_intent1.getObject()));
final int groupLen12 = group12.getSize();
for (int index12 = 0;index12 < groupLen12 ;index12++){
_cn = BA.ObjectToString(group12.Get(index12));
//BA.debugLineNum = 78;BA.debugLine="strPackageName = cn.SubString2(0, cn.IndexOf(\"/\"";
_strpackagename = _cn.substring((int) (0),_cn.indexOf("/"));
//BA.debugLineNum = 79;BA.debugLine="If mapSkipForList.ContainsKey(strPackageName) Th";
if (_mapskipforlist.ContainsKey((Object)(_strpackagename))) {
//BA.debugLineNum = 80;BA.debugLine="Log(\" >> Skipped strPackageName=\" & strPacka";
anywheresoftware.b4a.keywords.Common.Log(" >> Skipped strPackageName="+_strpackagename);
}else {
//BA.debugLineNum = 82;BA.debugLine="Log(\"Used strPackageName=\" & strPackageName)";
anywheresoftware.b4a.keywords.Common.Log("Used strPackageName="+_strpackagename);
//BA.debugLineNum = 84;BA.debugLine="Dim bdw As BitmapDrawable = pm.GetApplicationIc";
_bdw = new anywheresoftware.b4a.objects.drawable.BitmapDrawable();
_bdw.setObject((android.graphics.drawable.BitmapDrawable)(_pm.GetApplicationIcon(_strpackagename)));
//BA.debugLineNum = 85;BA.debugLine="lv.AddTwoLinesAndBitmap2(pm.GetApplicationLabel";
mostCurrent._lv.AddTwoLinesAndBitmap2(_pm.GetApplicationLabel(_strpackagename),"",_bdw.getBitmap(),(Object)(_cn));
};
}
;
//BA.debugLineNum = 88;BA.debugLine="Log(\" \")";
anywheresoftware.b4a.keywords.Common.Log(" ");
//BA.debugLineNum = 90;BA.debugLine="End Sub";
return "";
}
}