Hi dears,
Can you convert beloew java code to b4a?
Thanks
Can you convert beloew java code to b4a?
ChangeDefaultDialer:
#If java
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.app.role.RoleManager;
import android.os.Build;
import android.provider.Settings;
import anywheresoftware.b4a.BA;
import android.os.IBinder;
Context context=BA.applicationContext;
String packageName = context.getPackageName();
public void ChangeDefaultDialer()
{
RoleManager roleManager = (RoleManager) getSystemService(ROLE_SERVICE);
Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_DIALER);
startActivityForResult(intent, 1);
}
#End If
Thanks