if (ContextCompat.checkSelfPermission(rootContainer.getContext(),
Manifest.permission.CALL_PHONE)
!= PackageManager.PERMISSION_GRANTED)
{
ActivityCompat.requestPermissions(MainActivity.mainInstance,
new String[]{Manifest.permission.CALL_PHONE},
1);
} else
{
Intent intent = new Intent(Intent.ACTION_CALL);
Uri data = Uri.parse("tel:" + "4009201210");
intent.setData(data);
rootContainer.getContext().startActivity(intent);
}