Mobile phones in various Android operating systems are a wide array of screens, and the differences in screen resolutions can be imagined. Currently, WVGA = 800x480, hvga = 480x320, and qvga = 320x240. Of course, there are also meizu M9 dvga = 960x640, and Motorola's fwvga = 854x480.
In fact, do you use a lot of padding in your layout XML file? If so, it hurts. T
Some SamSung mobile phones close the screen, just open the screen, the foreground activity will resume status, because we use the cocos2d-x engine, the default resume and activity resume event is consistent, we re-open the closed Sound in resume, so after the user lights up the screen (not unlocked ), you will hear in-game sound (if our game is on the frontend when the screen is off ).
To solve this problem
(1) Procedures
Android API's AudioManager provides a method to adjust the volume of mobile phones.
audioMa.adjustVolume(AudioManager.ADJUST_LOWER, 0);
audioMa.adjustVolume(AudioManager.ADJUST_RAISE, 0);You can also adjust the voice mode of your phone to vibrate or mute.
Au
A new mobile phone virus named MMarketPay. A has already spread in China. Currently, about 0.1 million mobile phones are infected, involving 9 app stores in China.
This virus was discovered by TrustGo and named it 'mmarketpay. a'-the malware will automatically buy software from the domestic App Store (M-Market. TrustGo provides evidence that the applications of t
Xiaomi mobile phones cannot directly run the Android Studio program, androidstudioReproduced from: http://www.jianshu.com/p/6588c69b42cfProblem description:
After Android Studio is upgraded to Version 2.3, Xiaomi mobile MIUI cannot directly click Run to Run the
X can be interpreted as hdpi according to the mobile phone screen standard, 480x320 is mdpi, and 320x240 is ldpi. According to the latest data, hdpi and mdpi of all Android mobile phones account for a ratio of more;
System Version, up to 2.1 ~ The proportion of 2.3 is also an absolute proportion. We can use this as t
I have been in touch with Android for a while. I personally feel that the android page self-adaptation is much more complicated than the web. Because Mobile Phone development requires multiple screens, I will summarize the following: different layoutAndroid mobile phones hav
[Excerpted from] http://zwkufo.blog.163.com/blog/static/2588251201126113638144/
In Linux, when debugging Android phones on a real machine, you often encounter insufficient permissions for device errors. In addition, ADB devices may be garbled and you are not authorized to perform any ADB operations. The following configuration method can solve this problem (the environment is UBUNTU ):
1. Enter terminal
Some htc phones seems to use a class of type HotspotProfile to keep its configuration. So, before callingsetWifiApEnabled, you need set the ssid in htc's way: [java]
Boolean isHtc = false; try {isHtc = WifiConfiguration. class. getDeclaredField ("mWifiApProfile ")! = Null;} catch (java. lang. noSuchFieldException e) {isHtc = false;} WifiConfiguration apConfig = new WifiConfiguration (); apConfig. SSID = "H3c_xx"; apConfig. preSharedKey = "h3a7ch3c"; a
During the development of the Android Wear application, both the watch and the phone need to be operated simultaneously, and the phone and watch can be operated simultaneously via Bluetooth.1 turn on the watch and phone's debug settingsTurn on USB debugging for your phoneOpen the developer option for the Watch settings, check debug over Bluetooth if it is the first time to use the watch debug, need to find about in setting, click 7 times Open Develope
If the driver is installed in win, you can send at through the Super Terminal or serial port tool. After a long time, you can send at to your mobile phone under mongotun. To sum up, you need to issue the AT command in Linux: the serial port debugging assistant cutecom and the Linux Command modprobe (this command very import needs to be supplemented ).
First, install cutecom. you can install it through apt. After installation, you can send at in the fo
"Android uses Shape to draw dotted lines and display solid lines on mobile phones above 4.0" solution: androidshape
Problem description:
Use the following code to draw a dotted line:
The code for referencing dotted lines in the layout file is as follows:
Note: dotted_line is the name of the shape file.
The image in the graphical layout view th
", Toast.length_short). Show (); } } Public voidonclick10 (view view) {if(Environment.getexternalstoragestate (). Equals (environment.media_mounted)) {//1. Get the content you want to store//String content = Et_5.gettext (). toString (); //2. Get the external storage directory with package name--only to the root directoryString Sdpath =environment.getexternalstoragedirectory (). GetAbsolutePath (); //Toast.maketext (activitydata.this, "sdpath=" +sdpath, Toast.length_long). Show (); //the
/libglesv2_tegra_impl.so
#05 pc 00002498/system/lib/egl/libglesv2_tegra.so (gldrawelements +2c)
#06 PC 003a7a70/data/app-lib/com.tencent.tmgp.sgamece-1/libunity.so
#07 PC 001f85c8/data/app-lib/com.tencent.tmgp.sgamece-1/libunity.so
#08 PC 00388524/data/app-lib/com.tencent.tmgp.sgamece-1/libunity.so
#09 PC 003864f4/data/app-lib/com.tencent.tmgp.sgamece-1/libunity.so
#10 PC 00319a60/data/app-lib/com.tencent.tmgp.sg
This script is used to uninstall all third-party applications installed on android phones. it mainly uses the adbshellpm and adbuninstall commands, if you need this script, you can refer to it to uninstall all third-party applications installed on your android phone. the script mainly uses the adb shell pm and adb uninstall commands, therefore, you must configure
Import java. io. File;Import android. OS. Environment;Import android. OS. StatFs;/** Mobile phone and SD card memory acquisition***/Public class MemoryManager{
// Obtain the memory space available for the mobile phone. The returned unit is MB.Public float getMemorySize (){File path = Environment. getDataDirectory ();St
1280x720 (HD) pixel density 342PPI4.5-inch resolution of 960*540 (QHD) pixel density 245PPI4.5-inch resolution is 1280x720 (HD) pixel density 326PPI4.5-inch resolution is 1920x1080 (FHD) pixel density 490PPI4.7-inch resolution is 1280x720 (HD) pixel density 312PPI4.7-inch resolution is 1280x720 (HD) pixel density 312PPI4.7-inch resolution is 1280x720 (HD) pixel density 312PPI5.0-inch resolution of 480x800 (WVGA) pixel density 186PPI5.0-inch resolution 1024x768 (XGA) pixel density 256PPI5.0-inch
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.