android:installLocationThe default install location for the application.The following keyword strings are accepted:ValueDescription"internalOnly"The a...
分类:
移动开发 时间:
2014-12-09 15:33:06
阅读次数:
183
转载并不是所有的东西都能往里放的。NSUserDefaults只支持: NSString, NSNumber, NSDate, NSArray, NSDictionary.NSUserDefaults的方法中用来记录一下永久保留的数据非常方便,不需要读写文件,而是保留到一个NSDictionary字...
分类:
移动开发 时间:
2014-12-09 15:28:43
阅读次数:
239
android:targetSdkVersionAn integer designating the API Level that the application targets. If not set, the default value equals that given to minSdkVe...
分类:
移动开发 时间:
2014-12-09 15:26:43
阅读次数:
204
// Str = @"PEK_LHR"NSRange range = [trafficeStr rangeOfString:@"_" options:NSBackwardsSearch];from = [trafficeStr substringToIndex:range.location];to ...
分类:
移动开发 时间:
2014-12-09 15:24:28
阅读次数:
241
iOS开发UI篇—CAlayer层的属性一、position和anchorPoint1.简单介绍CALayer有2个非常重要的属性:position和anchorPoint@property CGPoint position;用来设置CALayer在父层中的位置以父层的左上角为原点(0, 0)@pr...
分类:
移动开发 时间:
2014-12-09 15:26:46
阅读次数:
227
1.同一Apk中的同一包中的Activity调用时进程状况验证[1]创建Project: project name:FirstProject package:com.demo 默认Activity:MainActivity[2]添加一个新的Activity: name:SecondActivity[...
分类:
移动开发 时间:
2014-12-09 15:21:59
阅读次数:
204
1.功能概要Android-Universal-Image-Loader是一个开源的UI组件程序,该项目的目的是提供一个可重复使用的仪器为异步图像加载,缓存和显示。(1).使用多线程加载图片(2).灵活配置ImageLoader的基本参数,包括线程数、缓存方式、图片显示选项等;(3).图片异步加载缓...
分类:
移动开发 时间:
2014-12-09 15:22:39
阅读次数:
179
尊重原创、尊重作者,转载请标明出处:http://blog.csdn.net/lnb333666/article/details/41821149目前也没有可靠的方法来检查设备上是否有导航栏。可以使用KeyCharacterMap.deviceHasKey来检查设备上是否有某些物理键,比如说菜单键、...
分类:
移动开发 时间:
2014-12-09 15:21:07
阅读次数:
164
SQLite 一个非常流行的嵌入式数据库,它支持 SQL 语言,并且只利用很少的内存就有很好的性能。此外它还是开源的,任何人都可以使用它。许多开源项目((Mozilla, PHP, Python)都使用了 SQLite; Android 不自动提供数据库。在 Android 应用程序中使用 S...
分类:
移动开发 时间:
2014-12-09 15:19:38
阅读次数:
232
#import "ViewController.h"@interface ViewController (){ NSArray *pickerArray;}@property (weak, nonatomic) IBOutlet UIPickerView *myPickerView;@end@...
分类:
移动开发 时间:
2014-12-09 15:19:44
阅读次数:
239
本项目是一个简单的航空订票项目源码,服务端已经挂了,直接把登录逻辑注释掉截的主界面图,整个风格比较简洁清爽,项目貌似是个半成品,很多图片都没有替换,翻了翻源码登录注册时间选择列表展示这些功能也都做了(不过服务端挂了没办法演示),项目代码写的比较规范,注释量也还说的过去,感兴趣的朋友自己下载研究一下吧...
分类:
移动开发 时间:
2014-12-09 15:19:20
阅读次数:
178
Android上的奇葩问题真的是太多了,开始测试反馈说游戏在某些Android手机上随机crash,后来经过详细的测试发现随机闪退的手机都是搭载了高通骁龙800以上的CPU。然后连上真机当crash的时候错误的日志是:signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)...
分类:
移动开发 时间:
2014-12-09 15:15:06
阅读次数:
198
//需要导入支持库LocalAuthentication.framework#import //TouchID是否验证成功-(void)touchIDSuccess{ __block NSString *msg; [self.context evaluatePolicy:LAPolicyDev...
分类:
移动开发 时间:
2014-12-09 15:13:58
阅读次数:
157
Beginning with API Level 8, you can allow your application to be installed on the external storage (for example, the device's SD card). This is an opt...
分类:
移动开发 时间:
2014-12-09 15:11:54
阅读次数:
414
/**
* 分享应用.
*/
private void shareApk() {
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.addCategory("android.intent.category.DEFAULT");
intent.setTyp...
分类:
移动开发 时间:
2014-12-09 14:06:13
阅读次数:
160
Android的虚拟机是基于寄存器的Dalvik,它的最大堆大小一般是16M。但是Android采用的是Java语言编写,所以在很大程度上,Android的内存机制等同于Java的内存机制,在刚开始开发的时候,内存的限制问题会给我们带来内存溢出等严重问题。在我们不使用一些内存的时候,我们要尽量在Android或者其他平台上避免在运行其他程序时,保存必要的状态,使得一些死进程所带来的内存问题,应该尽...
分类:
移动开发 时间:
2014-12-09 14:04:30
阅读次数:
224
题目意思:51nod1294
http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1294
给出一个整数数组A,你可以将任何一个数修改为任意一个正整数,最终使得整个数组是严格递增的且均为正整数。问最少需要修改几个数?
Input
第1行:一个数N表示序列的长度(1 <= N <= 100000)。
第2 - N +...
分类:
移动开发 时间:
2014-12-09 14:03:58
阅读次数:
395