This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp wp-config-sample.php wp-config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
* @link https://codex.wordpress.org/Editing_wp-config.php | |
* | |
* @package WordPress | |
*/ | |
// ** MySQL settings - You can get this info from your web host ** // | |
/** The name of the database for WordPress */ | |
define('DB_NAME', 'database_name_here'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val intent = Intent() | |
intent.action = "android.settings.APP_NOTIFICATION_SETTINGS" | |
intent.putExtra("android.provider.extra.APP_PACKAGE", "android") | |
startActivity(intent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent intent = new Intent("android.settings.APP_NOTIFICATION_SETTINGS"); | |
intent.putExtra("android.provider.extra.APP_PACKAGE", "android"); | |
startActivity(intent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stopLockTask() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startLockTask() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Checks if lock task mode is active or not | |
private fun lockTaskModeActive(): Boolean { | |
val activityManager = getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { | |
return activityManager.lockTaskModeState != ActivityManager.LOCK_TASK_MODE_NONE | |
} else { | |
return activityManager.isInLockTaskMode | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void uninstallApp(String packageName) { | |
Intent intent = new Intent(Intent.ACTION_DELETE); | |
intent.setData(Uri.parse("package:" + packageName)); | |
startActivity(intent); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void uninstallApp(String packageName) { | |
Intent intent = new Intent(Intent.ACTION_DELETE); | |
intent.setData(Uri.parse("package:" + packageName)); | |
startActivity(intent); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save mobx mobx-react |