设置方法:在AndroidManifest.xml中的Activity里加一个属性android:screenOrientation。例如设置该Activity为横向screenOrientation的值有以下几种:landscape:横向portrait:纵向unspecified:默认值,由系统...
分类:
移动开发 时间:
2015-07-09 11:01:39
阅读次数:
164
DevicePolicyManager 类:设备策略管理器 安全设备
Android 2.2 SDK提供了一个可管理和操作设备的API叫DevicePolicyManager,
使用这个API你可以接管手机的应用权限,对手机做出很多大胆的操 作,
比如锁屏、恢复出厂设置、设置密码、强制清除密码,修改密码、设置屏幕灯光渐暗时间间隔等操作。
这个API让你的程序直接掌握了系统的命脉。
...
分类:
移动开发 时间:
2015-07-06 12:24:10
阅读次数:
772
Android手机在禁用屏幕旋转的情况下,该如何在程序中动态的设置屏幕可旋转与不可旋转呢?该工具类即可满足需求。...
分类:
移动开发 时间:
2015-07-03 19:15:52
阅读次数:
205
1.常规设置屏幕旋转 (Device Orientation || info.plist-----这两个地方的设置是同步的)1)targets->General->Deployment Info->Device Orientation 直接勾选想要的设备定位全局属性2)Supporting File...
分类:
移动开发 时间:
2015-06-17 12:55:38
阅读次数:
126
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @endViewController.m 1 #import "ViewController.h" 2 #import "KMLabel....
分类:
其他好文 时间:
2015-06-16 20:52:35
阅读次数:
178
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSMutableDictionary *mDicFontName;...
分类:
其他好文 时间:
2015-06-15 11:11:13
阅读次数:
138
cocos2d-x 设置屏幕方向 横屏 || 竖屏需要根据各个平台分别进行设置。android修改项目根目录proj.android\AndroidManifest.xml 文件中的android:screenOrientation属性值,portrait 为竖屏,landscape为横屏Windo...
分类:
其他好文 时间:
2015-06-12 09:46:04
阅读次数:
126
VST1: TVirtualStringTree; //按钮公用函数,根据不同 标签tag区分,Screen.Cursor := crHourGlass; //设置屏幕鼠标的形状为crhourGlass with VST1 do try Start := GetTickCount; /...
分类:
其他好文 时间:
2015-05-26 14:11:12
阅读次数:
184
一、设备旋转(上苹果商店有风险)*这种方法当在General中勾选了Device Orieation 的Protrait后再用下面代码不能设置屏幕旋转至横屏。if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientati...
分类:
其他好文 时间:
2015-05-23 15:31:21
阅读次数:
119
应用中读取、设置屏幕亮度package com.catcher.testcompass;import android.app.Activity;import android.os.Bundle;import android.provider.Settings;import android.provi...
分类:
移动开发 时间:
2015-05-20 22:12:19
阅读次数:
194