Saturday, August 17, 2019

Invalid VCS Root mapping

Adb not showing any device due to localhost doesn't point to 127.0.0.1

1- Do the following:
Go to ->windows->system32->drivers>etc->host 
remove-> ::1 localhost set-> 127.0.0.1 localhost 

2- Do the following:
Replace your platform-tools with this one and delete the other one. https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip


Wednesday, February 20, 2019

How to programmatically open the Permission Screen for a specific app on Android Marshmallow?


It is not possible to pragmatically open the permission screen. Instead, we can open app settings screen.
Code
Intent i = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + BuildConfig.APPLICATION_ID));
startActivity(i);
Sample Output
enter image description here