操作步骤:
1.使用svn客户端检出项目
2.添加Android
cd 项目跟路径
cordova platform add android
3.bower 安装
bower install
4.npm 安装
npm install
5.运行Android
cordova run android
6.启动web服务
grunt serve
说明:
1.步骤1-4在命令行...
分类:
移动开发 时间:
2015-05-04 18:19:27
阅读次数:
145
二维码扫描源码下载:http://download.csdn.net/download/haogaoming123/8417143...
分类:
移动开发 时间:
2015-05-04 18:13:23
阅读次数:
125
官方定义:
Otto is an event bus designed to decouple different parts of your application while still allowing them to communicate efficiently.
原理
观察者模式 + 注解 + 反射
Otto实现篇
这里要注意几...
分类:
移动开发 时间:
2015-05-04 18:10:43
阅读次数:
261
1. 在"ViewController.h"中增加两个手势property.
?
1
2
@property
(nonatomic, strong) UISwipeGestureRecognizer *leftSwipeGestureRecognizer;
@property
(nonatomic, strong) ...
分类:
移动开发 时间:
2015-05-04 18:11:11
阅读次数:
221
实现Android arm64(aarch64)中的so注入(inject) ,并且兼容x86和arm。如果没有搞错,这是国内外第一份公开的arm64注入的针对性完整资料~~
代码基于 ariesjzj 的 http://blog.csdn.net/jinzhuojun/article/details/9900105,增加了对arm64的支持。(目前已经开始有64位安卓手机)
同样,代码由...
分类:
移动开发 时间:
2015-05-04 18:10:25
阅读次数:
1266
系统:Win8.1-32位
软件:ADT-Bundle 23.0
我碰到的问题是每次开启都无法加载,不管是重启系统还是其他情况。
找到两种解决方法:
1.删掉workspace下的.metadata\.plugins\org.eclipse.core.resources\.projects文件夹,重启eclipse。
2.删掉C:\Users\用户名\.android文...
分类:
移动开发 时间:
2015-05-04 18:07:36
阅读次数:
146
??
硬盘缓存策略:
LimitedAgeDiscCache(设定文件存活的最长时间,当超过这个值,就删除该文件)
UnlimitedDiscCache(这个缓存类没有任何的限制)
继承关系:
public class LimitedAgeDiscCache extends BaseDiscCache
public abstractclass BaseDiscCach...
分类:
移动开发 时间:
2015-05-04 18:08:00
阅读次数:
187
经常看到很多应用会在ActionBar上放一个刷新按钮用来刷新页面内容。当点击这个按钮时,按钮不断旋转,同时刷新内容,刷新完成后,动画停止。
主要实现逻辑如下:
@Override
public
boolean
onOptionsItemSelected(MenuItem item) {
switch
(item.getItemId(...
分类:
移动开发 时间:
2015-05-04 18:06:13
阅读次数:
170
首先说下让自己的程序支持iPhone6和6+,第一种使用官方提供的launch screen.xib,这个直接看官方文档即可,这里不再多述;第二种方法是和之前iPhone5的类似,比较简单,为iPhone6和6+添加两张特殊的png
iPhone6:命名:Default-375w-667h@2x.png 分辨率:750*1334
6+ 命名:Default-414w-736h@3x...
分类:
移动开发 时间:
2015-05-04 18:05:24
阅读次数:
135
May is finally here, which I have been looking forward for a while.The past month--April has been really terrible and troublesome, even though I had t...
分类:
移动开发 时间:
2015-05-04 17:51:47
阅读次数:
145
Python onAndroidPosted onApril 29, 2015byAlexander TaylorThere are an increasing number of resources about different ways of running Python on Android...
分类:
移动开发 时间:
2015-05-04 17:52:04
阅读次数:
221
最近出现了java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{*****Activity}: java.lang.ClassNotFoundException: Didn't find class "***...
分类:
移动开发 时间:
2015-05-04 17:51:49
阅读次数:
174
http://blog.csdn.net/androidlinuxg/article/details/17069173还在百度Google导出搜索如何进行USB接口的HID进行开发吗?网站上很多文章并不完善,这方便的也介绍的不多,我看了很多资料,借助网上的一些代码,整理了以下信息,希望能给大家提供便...
分类:
移动开发 时间:
2015-05-04 17:47:28
阅读次数:
298
原文网址:http://bbs.csdn.net/topics/390882717?page=1问题1.我在自己程序有开一个Timer定时去readCharacteristic,每次read可以成功,但是在此过程中再调用writeCharacteristic之后发现BLE设备没有接收到设置的数据,没...
分类:
移动开发 时间:
2015-05-04 17:46:30
阅读次数:
594
原文网址:http://sunbofu.blog.51cto.com/6431507/1280441Android中的listview目测是一个使用频率很高的组件,所以今天来总结一下listview的基础的用法。一、最基本的绑定java代码:12345678910111213141516171819...
分类:
移动开发 时间:
2015-05-04 17:47:35
阅读次数:
259