权限是一种安全机制。Android权限主要用于限制应用程序内部某些具有限制性特性的功能使用以及应用程序之间的组件访问。在Android开发中,基本上都会遇到联网的需求,我们知道都需要加上联网所需要的权限:1 实际上,在开发过程中,当我们使用了某些系统特性的功能,且此类特性需要包含相应权限时,如果在A...
分类:
移动开发 时间:
2014-06-28 17:10:23
阅读次数:
263
问题webView调用JS出错。 class TestJS { ...... public TestJS(){ } public void save(String data){ webView.loadUrl("javascript: alert(" + data +")");...
分类:
移动开发 时间:
2014-06-28 17:07:40
阅读次数:
284
所需文件: Java: 开发基础环境,版本号为Java SE 7,JDK和JRE这两个都要下载的 JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html JRE:http...
分类:
移动开发 时间:
2014-06-28 17:04:59
阅读次数:
289
[[UIApplicationsharedApplication] beginBackgroundTaskWithExpirationHandler: ^() { //程序在10分钟内未被系统关闭或者强制关闭,则程序会调用此代码块,可以在这里做一些保存或者清理工作 }];
分类:
移动开发 时间:
2014-06-28 16:58:55
阅读次数:
178
问题描写叙述:因为通过測试环境导出的dmp过大,但要求尽快导入至生产server,请网络室打通防火墙后发现測试网络为100M而生产网络贵为1000M却无法发挥不论什么作用即使通过networklink效率也太低,考虑到两台设备物理位置距离较远无法通过千兆线直连的情况下,最后选择通过移动硬盘作为中转传...
分类:
移动开发 时间:
2014-06-28 16:55:33
阅读次数:
238
每 个iPhone应用程序都有一个UIApplication,UIApplication是iPhone应用程序的开始并且负责初始化并显示 UIWindow,并负责加载应用程序的第一个UIView到UIWindow窗体中。UIApplication的另一个任务是帮助管理应用程序的生命 周期,而UIAp...
分类:
移动开发 时间:
2014-06-28 16:50:44
阅读次数:
152
原文:http://mobile.51cto.com/android-265238.htm1、在Android XML文件中设置字体可以采用Android:typeface,例如android:typeface=”monospace”。在这里例子中我们在Activity中对android:text=...
分类:
移动开发 时间:
2014-06-28 16:36:29
阅读次数:
219
https://oj.leetcode.com/problems/trapping-rain-water/模拟题,计算出在凹凸处存水量。对于一个位置 i ,分别计算出它左边的最大值 left (从左扫描一遍), 右边的最大值 right(从右扫描一遍) 。找left right中的最小值,如果大于 ...
分类:
移动开发 时间:
2014-06-28 16:32:30
阅读次数:
222
在自定义tableView中,为cell添加button点击事件后,如何获取其对应的序号?1、创建tableView:先创建一个成员变量:@interface MyCameraViewController (){ UITableView *_tableView;}@end在viewDidLoad中....
分类:
移动开发 时间:
2014-06-28 16:29:13
阅读次数:
347
iOS开发UI篇—手势识别器(长按+轻扫)一、长按事件 1 // 2 // YYViewController.m 3 // 03-长按 4 // 5 // Created by apple on 14-6-19. 6 // Copyright (c) 2014年 itcase. All ri...
分类:
移动开发 时间:
2014-06-28 16:21:31
阅读次数:
361
一、垃圾回收机制(GC garbage collection): 1、由一个系统级的线程自动检查释放无用对象占用的内存。 2、垃圾回收机制有多重不同的算法来实现垃圾回收机制。但是整体的思路是:发现无用对象->回收无用对象占用的空间。 3、垃圾回收机制的优缺点: 优点:自动释放内存,简...
分类:
移动开发 时间:
2014-06-28 16:14:55
阅读次数:
279
TIWAudio 所在单元及继承链:IWCompAudio.TIWAudio 主要成员:property AudioFile: TIWFileReference //property FocusOutline: Boolean //property AlternateAudioFile: ...
分类:
移动开发 时间:
2014-06-28 15:58:49
阅读次数:
464
Tochangetheinstalledapplicationname,inXcode:1.SelectyourTargetontheleftsideunderGroups&Files2.SelectFile>GetInfo3.SelecttheBuildtab4.FromtheConfigurat...
分类:
移动开发 时间:
2014-06-28 15:49:15
阅读次数:
205
IOS开发UI篇—手势识别器(拖拽+旋转+缩放)一、拖拽示例代码: 1 // 2 // YYViewController.m 3 // 06-拖拽事件 4 // 5 // Created by apple on 14-6-19. 6 // Copyright (c) 2014年 itcase...
分类:
移动开发 时间:
2014-06-28 15:36:33
阅读次数:
392
什么是Activity,就是我们所看到的 需要理解以下四句话: 1.一个Activity就是一个类,并且这个类需要集成Activity; 2.需要重写OnCreat方法 3.每个Activity都需要在AndroidManifest.xml中进行配置 xml中加入了说明...
分类:
移动开发 时间:
2014-06-28 15:27:42
阅读次数:
215
Debugging with Assertions (断言调试) 断言是一个假设逻辑条件为真的运行时检查机制.在执行任意代码之前,可以使用断言来确认一个基本的条件情况.如果条件判断为真,代码将继续执行,如果条件为假,代码将会结束,应 用程序也会退出. 如果在调试环境中,运行的代码触发了一个断言...
分类:
移动开发 时间:
2014-06-28 15:11:36
阅读次数:
225
Recently I am trying to run the sliding menu examples which was given in this blog:http://www.curious-creature.org/2012/12/14/android-recipe-3-sliding...
分类:
移动开发 时间:
2014-06-28 15:06:19
阅读次数:
421
学习视频来自:http://www.marschen.com/
分类:
移动开发 时间:
2014-06-28 14:55:58
阅读次数:
216
BACKGROUNDA single physical platform may be segregated into a plurality of virtual networks. Here, the physical platform incorporates at least one vir...
分类:
移动开发 时间:
2014-06-28 14:46:39
阅读次数:
330
BACKGROUNDAs recognized in Revision 2.0 of the Intel® Virtualization Technology Specification for the Intel® Itanium® Architecture (VT-I), dated April...
分类:
移动开发 时间:
2014-06-28 14:40:32
阅读次数:
246