`
maricoliu
  • 浏览: 54137 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
  In the chapter entitled Working with Directories on iPhone OS we looked at the NSFileManager, NSFileHandle and NSData Foundation Framework classes and discussed how the NSFileManager class in particular enables us to work with directories when developing iPhone based applications. We also spent ...
A. 确保xcodebuild命令能正常运行 如果使用xcodebuild命令出现如下错误: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) 解决办法: xcode-select -switch 新的xcode路径 如 sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer B. xcodebuild使用 1. 查看xcode版本 ...
NSThread使用 1.创建并启动线程   thread = [[NSThread alloc]initWithTarget:self selector:@selector(startMonitor) object:nil]; [thread start];    2.停止线程     先向线程发送cancel消息,将线程标记为停止,然后在合适的地方判断线程是否标记为退出,如果是,则发送exit消息,真正退出线程   - (void)getInfo:(id)sender { if (!running) { NSLog(@& ...
既然pyobjc能够使用cocoa提供的这么多库函数,那对我们有没有一些实际的作用呢?联想到在自动化测试中,appscript有些操作目前还是无法实现的,例如: 无法实现点击屏幕任意坐标(appscript中未找到类似的api) 无法双击某个控件(通过appscript两次调用控件的click方法是不生效的) 无法实现控件上右键…… 现在,这些appscript无法完成的操作,通过pyobjc又找到了另一条实现的途径,我们可以借助pyobjc,来构造并触发我们需要的鼠标事件,cocoa的 CoreGraphics库中就包含了构造所有鼠标事件的方法,在苹果开发者网站上了解了这些函数的使用 ...
  在windows上可以使用itools开启ssh隧道,然后使用putty ssh 到ios,这是比较简单的   今天介绍下另一种ssh到ios上的方法,不用itools,也不用putty,全部在命令行下完成   前提: 1.越狱的设备 2.设备上安装了openSSH,在cydia中安装   1. 用usbmuxd代替itools来完成ssh隧道的开启,使之能够从usb上ssh 下载地址: http://cgit.sukimashita.com/usbmuxd.git/ 解压后进去到python-client目录
 http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation iOS Automated Tests with UIAutomation April 8, 2012 • tweet Quick introduction Automated tests are very useful to test your app “while you sleep”. It enables you to quickly track regressions and performance issues, an ...
Android 系统中使用GDB调试C程序   调试环境说明: 操作系统:Ubuntu 11.10 32bit Android源码版本:Android 4.0.3 r1 Emulator:Android4.0.3   注:本文以调试Android源码自带的memtest程序做为例子,调试前已经编译过一次
转自:http://blog.csdn.net/eustoma/article/details/6706492     本文主要介绍的是Android中很重要也最为复杂的媒体播放器(MediaPlayer)部分的架构。对于Android这样一个完整又相对复杂的系统,一个MediaPlayer功能的实现不在其具体的功能,而 ...
sourceinsight3使用过程中,如果是大工程,总是出现抽筋的现象,CPU使用、内存占用都很高,阅读android源码不断出现无响应。后发现主要是因为ss有体贴的sync机制。 处理办法: 1.去掉同步,options->perferences->general->backgroud synchronization every [ ] 前面的钩; 2.updata revoery file every[ ]改一个大参数。
http://blog.csdn.net/fengyifei11228/article/details/5729445   所谓回调,就是客户程序C调用服务程序S中的某个函数A,然后S又在某个时候反过来调用C中的某个函数B,对于C来说,这个B便叫做回调函数。例如Win32下的窗口过程函数就是一个典型的回调函数。一般说来,C不会自己调用B,C提供B的目的就是让S来调用它,而且是C不得不提供。由于S并不知道C提供的B姓甚名谁,所以S会约定B的接口规范(函数原型),然后由C提前通过S的一个函数R告诉S自己将要使用B函数,这个过程称为回调函数的注册,R称为注册函数。Web Service以及Jav ...
双系统卸载Ubuntu http://www.linuxidc.com/Linux/2010-03/25129.htm Win7下安装Ubuntuhttp://blog.csdn.net/woshixingaaa/article/details/5780974
Android* 应用性能评估   2011年10月09日 08:00       作者:Tuan H. Bui概述 要优化应用以提供最佳用户体验,了解该应用对于某个特定平台的性能需求十分重要。在 Linux* 操作系统上,我们可使用 vmstat 来监控应用的 ...
Android自带单元测试的运行方法,有兴趣的可以尝试下: 1.下载Android源码,并执行一次编译 2.使用模拟器加载编译完成的三个镜像 内核可以使用/prebuilt/android-arm/kernel/kernel-qeum-armv7 注意使用-partition-size 选项增大系统磁盘大小 ./emulator –system /android-src/out/target/product/generic/system.img –data /android-src/out/target/product/generic/userdata.img -ramdisk /a ...
在命令行输入: emulator -help,即可显示emulator支持的所有命令。 Android Emulator usage:     emulator [options] [-qemu args] options:     -sysdir <dir>                 在目录<dir>中搜索system.img     -system <file>                读取system.img文件<file>        -datadir <dir>                写 ...
Oprofile 移植 工具的编译参考 http://blog.csdn.net/louieuser/article/details/6152175 工具使用: 1.创建一个AVD,启动模拟器时,用我们编译好的kernel替换SDK自带的kernel C:\Users\maricoliu>emulator @android2.3 -partition-size 300 -kernel ~\kernel-qemu 注:由于要向系统中push我们的程序,请分配足够的大小,否则会出现no space left on device错误,用-partition-size指定大小 2.安装bu ...
Global site tag (gtag.js) - Google Analytics