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
int sdk = android.os.Build.VERSION.SDK_INT; | |
if(sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) { | |
setBackgroundDrawable(); | |
} else { | |
setBackground(); | |
} |
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
@SuppressLint("NewApi") | |
@Override | |
public void onWindowFocusChanged(final boolean hasFocus) { | |
super.onWindowFocusChanged(hasFocus); | |
if (hasFocus) { | |
mDecorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | |
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | |
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); | |
} |
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
// create .bash_profile | |
touch .bash_profile | |
// open file with TextEdit | |
open -e .bash_profile | |
// insert line into TextEdit | |
export PATH=$PATH:/Users/tvn/Software/adt-bundle-mac-x86_64-20130911/sdk/platform-tools/ | |
// save TextEdit and reload file |
NewerOlder