This file contains hidden or 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 static void logOut(String string) { | |
| if (string.length() > 3000) { | |
| int length = string.length(); | |
| String str = string; | |
| while (length > 3000) { | |
| Log.w("MYAPP", str.substring(0, 3000)); | |
| str = str.substring(3000); | |
| length = str.length(); |
This file contains hidden or 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
| //ON Activity | |
| @Override | |
| public void onConfigurationChanged(Configuration newConfig) { | |
| super.onConfigurationChanged(newConfig); | |
| if(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { | |
| //Landscape orientation | |
| } else if(newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) { |
This file contains hidden or 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
| // this will calculate and return Pixel value by getting DP value | |
| public static int getDPbyPixcel(int pix) { | |
| return (int) (pix * HYGlobal.density + 0.5f); | |
| } |
NewerOlder