位于/Users/你电脑名/Library/Developer/Xcode/DerivedData
下的缓存文件占很大的缓存空间,如果长时间不删除xcode下的缓存文件,就会导致硬盘空间越来越小直到Directory
not empty。删除了缓存文件再运行就不会再报错。
删除DerivedData: 打开看了终端输入 sudo chmod -R 777 /Users/xxx/Li...
分类:
移动开发 时间:
2014-07-08 21:39:21
阅读次数:
240
IntentService可以做什么:
如果你有一个任务,分成n个子任务,需要它们按照顺序完成。如果需要放到一个服务中完成,那么IntentService就会使最好的选择。
IntentService是什么:
IntentService是一个Service(看起来像废话,但是我第一眼看到这个名字,首先注意的是Intent啊。),所以如果自定义一个IntentService的话,一定要...
分类:
其他好文 时间:
2014-07-08 18:50:24
阅读次数:
194
1.首先安装插件管理器 Pathogen
Install to ~/.vim/autoload/pathogen.vim
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim在Centos家目录中新建.vimrc文件,添加...
分类:
其他好文 时间:
2014-07-08 15:42:58
阅读次数:
220
情景:在一台真机中运行项目。
提示:Could not change executable permissions on the application.
解决:真机中已经有一个同名的应用。bundle identifier 一样。删掉那个应用就可以了。
参考:http://stackoverflow.com/questions/12547706/could-not-change-execu...
分类:
移动开发 时间:
2014-07-08 14:22:34
阅读次数:
289
一、Asp.net 自带Bundle的使用: 1. 在Globale中注册与配置 BundleConfig.RegisterBundles(BundleTable.Bundles);public class BundleConfig { // For more information on Bund...
分类:
Web程序 时间:
2014-07-06 21:32:28
阅读次数:
232
如果我们要检测app版本的更新,那么我们必须获取当前运行app版本的版本信息和appstore 上发布的最新版本的信息。当前运行版本信息可以通过info.plist文件中的bundle version中获取:NSDictionary *infoDic = [[NSBundle mainBundle]...
分类:
移动开发 时间:
2014-07-06 15:21:31
阅读次数:
189
今天来按照apidemos提供的方法来实现slow loading的效果.
Main.java
import android.app.ListActivity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view...
在项目中用到开机自动运行功能,因此学习了下,在此作为笔记记录下。
主要是以下4个步骤:
1、原理了解:
通过搜查资料发现,当Android启动时,会发出一个系统广播,内容为ACTION_BOOT_COMPLETED,它的字符串常量表示为android.intent.action.BOOT_COMPLETED,因此我们只需要在自己的应用中接收这个广播,然后启动APP即可。
2、编写接收...
分类:
移动开发 时间:
2014-07-06 09:26:44
阅读次数:
294
0x0 引言
我们知道,在Android上的Intent-based攻击很普遍,这种攻击轻则导致应用程序崩溃,重则可能演变提权漏洞。当然,通过静态特征匹配,Intent-based的恶意样本还是很容易被识别出来的。
然后,最近出现了一种基于Android Browser的攻击手段——Intent scheme URLs攻击。这种攻击方式利用了浏览器保护措施的不足,通过浏览器作为桥梁间接实...
分类:
移动开发 时间:
2014-07-06 09:05:56
阅读次数:
219
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, reqCode);//reqCode是返回的code。
但是在有些手机会在protected void onActivityResult(int requestCode...
分类:
移动开发 时间:
2014-07-06 00:28:15
阅读次数:
321