1.http://rts.lab.asu.edu/web_438/project_final/Talk%208%20AndroidArc_Binder.pdf 2.http://www.nds.rub.de/media/attachments/files/2012/03/binder.pdf...
分类:
移动开发 时间:
2015-11-17 19:33:26
阅读次数:
140
新建一个工程“blt”。-----------------------MainActivity.javapackagecom.example.blt;
importjava.io.IOException;
importjava.lang.reflect.InvocationTargetException;
importjava.lang.reflect.Method;
importjava.util.ArrayList;
importjava.util.Iterator;
importja..
分类:
移动开发 时间:
2015-11-17 19:21:20
阅读次数:
278
新建一个类。举例为MySurfaceViewpackagecom.example.blt;
importandroid.annotation.SuppressLint;
importandroid.content.Context;
importandroid.graphics.Canvas;
importandroid.graphics.Color;
importandroid.graphics.Paint;
importandroid.graphics.PixelFormat;
impo..
分类:
移动开发 时间:
2015-11-17 19:20:36
阅读次数:
277
在iOS8以前,我们都习惯性用UIAlertView去做提示框,iOS8以后,苹果提倡使用UIAlertController取代UIAlertView。#defineSYSTEM_VERSION[[UIDevicecurrentDevice].systemVersionfloatValue]if(SYSTEM_VERSION>=8.0){
UIAlertController*alertCtrl=[UIAlertControlleralertCon..
分类:
移动开发 时间:
2015-11-17 19:17:36
阅读次数:
146
importjava.io.File;importjava.text.SimpleDateFormat;importjava.util.Date;importandroid.net.Uri;importandroid.os.Bundle;importandroid.os.Environment;importandroid.provider.MediaStore;importandroid.app.Activity;importandroid.content.Intent;importandroid.datab..
分类:
移动开发 时间:
2015-11-17 19:11:35
阅读次数:
203
闲话不多说,直接入正题:我的环境:操作系统:osx10.10IDE:eclipselunaSDK:19默认你已经搭建好了SDK开发环境第一步,下载OSX平台下的ndk工具包:在我的网盘中比较新的r10版本可下载:http://pan.baidu.com/s/1eQhn9aq第二步,配置环境变量在你的用户目录下创建.bash_profile文件加入..
分类:
移动开发 时间:
2015-11-17 19:13:39
阅读次数:
175
iOS平台基于KVC的JSON与数据对象绑定
在iOS平台上,要操纵JSON数据并不困难,但是,我们还有更简单的解决方案,使用KVC,全称是Key-Value Coding。假设开发者(你)开发了一款应用,它的数据来自于外部对Web服务,要从Web服务中取回一些JSON数据,数据如下:...
分类:
移动开发 时间:
2015-11-17 19:06:55
阅读次数:
197
副标题:Take Picture without preview AndroidGoogle出于对隐私的保护,制定了一条门槛,即在Android应用开发中编写拍照程序是必需要有图像预览的。这会对那些恶意程序比如Android中泛滥的Service在后台偷偷记录手机用户的行为与周边信息。这样的门槛还包括手机厂商自带的相机软件在拍照时必须是有声音,这样要避免一些偷拍的情况。处于技术调研与一些特殊无害场景...
分类:
移动开发 时间:
2015-11-17 19:08:56
阅读次数:
294
1.简介使用自定义主题或者皮肤,可以将相关配置(颜色、大小等等)放在一个新的apk压缩文件中,目录结构保持一致,该apk文件放在任意可以访问到的目录即可,类似/system/framework/framework-res.apk,可根据软件的需要动态的加载主题文件。这里只介绍这一种实现方式,别的方式有兴趣的可以自己研究。主要实例化AssetManager对象和Resources对象来实现的Asse...
分类:
移动开发 时间:
2015-11-17 19:04:02
阅读次数:
211
说到线程,我想大家都不陌生,因为在开发时候或多或少都会用到线程,而通常创建线程有两种方式:
1、继承Thread类
2、实现Runnable接口
虽说这两种方式都可以创建出一个线程,不过它们之间还是有一点区别的,主要区别在于在多线程访问同一资源的情况下,用Runnable接口创建的线程可以处理同一资源,而用Thread类创建的线程则各自独立处理,各自拥有自己的资源。所以,在Java中大多数...
分类:
移动开发 时间:
2015-11-17 19:04:41
阅读次数:
202
1.回收某个textField下弹出的键盘1 - (BOOL)textFieldShouldReturn:(UITextField *)textField{2 3 [textField resignFirstResponder];4 return YES;5 6 }2.点击空白处回收...
分类:
移动开发 时间:
2015-11-17 19:02:01
阅读次数:
236
1. 安装1.1. 打开命令行curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh1.1.1. 错误 Failed to connect to github-c....
分类:
移动开发 时间:
2015-11-17 18:59:18
阅读次数:
141
//判断页面滚动到顶部和底部 $(window).scroll(function(){ var doc_height = $(document).height(); var scroll_top = $(document).scrollTop(); ...
分类:
移动开发 时间:
2015-11-17 18:58:57
阅读次数:
187
1.创建数组[objc] view plaincopy//创建一个空的数组NSArray*array=[NSArrayarray];//创建有1个元素的数组array=[NSArrayarrayWithObject:@"123"];//创建有多个元素的数组array=[NSArrayarrayWit...
分类:
移动开发 时间:
2015-11-17 18:58:32
阅读次数:
280
Property Animation动画有两个步聚:1.计算属性值2.为目标对象的属性设置属性值,即应用和刷新动画1、首先了解TypeEvaluator的用法(告诉动画系统如何从初始值过度到结束值)可能在大多数情况下我们使用属性动画的时候都不会用到TypeEvaluator,但是大家还是应该了解一下...
分类:
移动开发 时间:
2015-11-17 18:54:21
阅读次数:
217
背景: 最近一个月一直在做移植库的工作,将c代码到share library移植到Android平台。这就涉及到Android NDK(native develop kit)内容。这里只想记录下JNI(java native interface)经常遇到到问题。 问题1. 忘记delete lo.....
分类:
移动开发 时间:
2015-11-17 18:54:56
阅读次数:
141
在android app开发如火如荼的今天,如何让自己的App受人欢迎、如何增加app的下载量和使用量。。。。成为很多android应用开发前,必须讨论的问题。而ui设计则是提升客户视觉体验度、提升下载量和使用量等等的一个比较关键的因素。今天小编整了了一些android ui设计的基本元素,供an....
分类:
移动开发 时间:
2015-11-17 18:45:15
阅读次数:
215