Inserting the code between #if java end if b4a returns error:
lambda expressions are not supported.
how can i replace the code?
lambda expressions are not supported.
how can i replace the code?
B4X:
downloadDialog.setPositiveButton(yes, (dialogInterface, i) -> {
Uri uri = Uri.parse("market://details?id=sv.ziwi");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
try {
if (fragment == null) {
activity.startActivity(intent);
} else {
fragment.startActivity(intent);
}
} catch (ActivityNotFoundException anfe) {
// Hmm, market is not installed
Log.w(TAG, "Google play non installata; impossibile installare Ziwi!");
}
});