随笔 - 395  文章 - 3  评论 - 49  阅读 - 85万
05 2015 档案
广播发送和接受者
摘要:http://blog.csdn.net/xiazdong/article/details/7768807广播接收者核心代码同步广播发送方核心代码:[java]view plaincopyIntentintent=newIntent();intent.setAction("...");Context... 阅读全文
posted @ 2015-05-30 10:38 wf110 阅读(322) 评论(0) 推荐(0) 编辑
contentProvider 内容提供者
摘要:http://blog.csdn.net/woshixuye/article/details/8280879实例代码当数据需要在应用程序间共享时,我们就可以利用ContentProvider为数据定义一个URI。之后其他应用程序对数据进行查询或者修改时,只需要从当前上下文对象获得一个ContentR... 阅读全文
posted @ 2015-05-30 10:22 wf110 阅读(187) 评论(0) 推荐(0) 编辑
自定义控件,开关左右滑动
摘要:自定义控件一般的思路都是根据图片,自己绘制相应的控件布局文件 1 10 11 16 17 1 import com.itheima27.slidebutton.R; 2 import com.itheima27.slidebutton.interf.OnToggleStateChang... 阅读全文
posted @ 2015-05-29 17:46 wf110 阅读(546) 评论(0) 推荐(0) 编辑
手指多点触控事件
摘要:1 package com.itheima.touch; 2 3 import android.app.Activity; 4 import android.graphics.Matrix; 5 import android.graphics.PointF; 6 import and... 阅读全文
posted @ 2015-05-29 13:42 wf110 阅读(336) 评论(0) 推荐(0) 编辑
android 传感器
摘要:1 package com.itheima.sensor; 2 3 import android.app.Activity; 4 import android.hardware.Sensor; 5 import android.hardware.SensorEvent; 6 import and... 阅读全文
posted @ 2015-05-28 10:56 wf110 阅读(169) 评论(0) 推荐(0) 编辑
frame动画
摘要:1 2 4 5 6 7 8 9 10 11 12 13 14 15 View Code 1 package com.itheima.frame; 2 3 import android.app.A... 阅读全文
posted @ 2015-05-28 10:09 wf110 阅读(132) 评论(0) 推荐(0) 编辑
android tween动画效果
摘要:anim文件夹下 1 2 4 5 11 12 View Code 1 package com.itheima.tween; 2 3 import android.app.Activity; 4 import android.os.Bundle; 5 import android.vi... 阅读全文
posted @ 2015-05-28 09:56 wf110 阅读(202) 评论(0) 推荐(0) 编辑
加载图片 获取屏幕宽高
摘要:1 package com.itheima.getimage; 2 3 import android.app.Activity; 4 import android.content.Intent; 5 import android.database.Cursor; 6 import android... 阅读全文
posted @ 2015-05-28 09:36 wf110 阅读(570) 评论(0) 推荐(0) 编辑
音频、摄像机操作
摘要:一.多媒体 1.音频播放 MediaPlayer, prepareAsync() SeekBar TelephonyManager, PhoneStateListener 2.音频池 SoundPool一次性可以加载多段音频 load(), play(), unload() 3.视频播放 ... 阅读全文
posted @ 2015-05-28 09:09 wf110 阅读(249) 评论(0) 推荐(0) 编辑
调用系统相机及摄像机
摘要:1 package com.itheima.systemcamera; 2 3 import android.app.Activity; 4 import android.content.Intent; 5 import android.net.Uri; 6 import android.os.... 阅读全文
posted @ 2015-05-28 08:59 wf110 阅读(230) 评论(0) 推荐(0) 编辑
图片的放大缩小
摘要:布局文件 1 11 12 15 16 22 23 29 30 36 37 43 44 45 50 51 View Code代码 1 public class MainActivity extends Activi... 阅读全文
posted @ 2015-05-28 08:50 wf110 阅读(342) 评论(0) 推荐(0) 编辑
haxm intelx86加速模拟器的安装
摘要:http://blog.csdn.net/huang9012/article/details/18082601如果安装了还出现创建模拟器 选项 CPU/abi的时候还出现no system images installed for this target参考http://zhidao.baidu.c... 阅读全文
posted @ 2015-05-27 12:55 wf110 阅读(389) 评论(0) 推荐(0) 编辑
mac eclipse 下安装subclipse
摘要:参考http://www.cnblogs.com/yinxiangpei/articles/3859057.html推荐安装homebrew在安装javahl时注意版本对应http://subclipse.tigris.org/wiki/JavaHL如果brew install --universa... 阅读全文
posted @ 2015-05-27 12:51 wf110 阅读(254) 评论(0) 推荐(0) 编辑
文件多线程下载实现
摘要:布局文件 1 - 2 - 3 - 4 5 6 7 8 9 10 11 View CodeMyHandler.java 1 package com.itheima.download; 2 3 import java.io.File; 4 im... 阅读全文
posted @ 2015-05-25 16:39 wf110 阅读(1089) 评论(0) 推荐(0) 编辑
安卓程序如何保证低内存下依然存在
摘要:创建通知,并且把当前的activity放到前台可以保证低内存条件下当前activity依然存在Notification n=new .....startForeground(Process.myPid(),n); 阅读全文
posted @ 2015-05-25 16:32 wf110 阅读(181) 评论(0) 推荐(0) 编辑
listview
摘要:二.ListView 1.什么是ListView 2.构建ListView 3.适配器 4.事件监听 5.拖动到顶部底部刷新 阅读全文
posted @ 2015-05-12 20:19 wf110 阅读(133) 评论(0) 推荐(0) 编辑
数据库操作
摘要:1 package com.itheima.sqlite.dao; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import android.content.Context; 7 import andr... 阅读全文
posted @ 2015-05-12 16:28 wf110 阅读(245) 评论(0) 推荐(0) 编辑
数据存储
摘要:使用SharedPreferences进行数据存储 1 很多时候我们开发的软件需要向用户提供软件参数设置功能,例如我们常用的QQ,用户可以设置是否允许陌生人添加自己为好友。对于软件配置参数的保存,如果是window软件通常我们会采用ini文件进行保存,如果是j2se应用,我们会采用propertie... 阅读全文
posted @ 2015-05-12 16:25 wf110 阅读(340) 评论(0) 推荐(0) 编辑
测试
摘要:1 在实际开发中,开发android软件的过程需要不断地进行测试。而使用Junit测试框架,侧是正规Android开发的必用技术,在Junit中可以得到组件,可以模拟发送事件和检测程序处理的正确性。 2 第一步:首先在AndroidManifest.xml中加入下面红色代码: 3 5 6 ... 阅读全文
posted @ 2015-05-12 16:23 wf110 阅读(214) 评论(0) 推荐(0) 编辑
布局
摘要:五大布局Layout: LinearLayout 线性布局 RelativeLayout 相对布局 AbsoluteLayout 绝对布局 TableLayout 表格布局 FrameLayout 帧布局LinearLayout 线性布局android:orientation="horizontal... 阅读全文
posted @ 2015-05-12 16:22 wf110 阅读(256) 评论(0) 推荐(0) 编辑
android xml操作
摘要:1 import java.io.FileInputStream; 2 import java.io.FileOutputStream; 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import org.xml... 阅读全文
posted @ 2015-05-12 16:17 wf110 阅读(417) 评论(0) 推荐(0) 编辑
测试相关、sdk卡读取
摘要:测试: monkey 猴子 测试整个系统 adb shell monkey -v 1000 (-v 指定模拟测试的事件数量) 测试某个程序 adb shell monkey -p -v 事件的数量 android下Junit测试配置信息: 在AndroidManifest.xml中配置一下信... 阅读全文
posted @ 2015-05-12 16:16 wf110 阅读(486) 评论(0) 推荐(0) 编辑
android 基本知识
摘要:307966990 lyd@itcast.com 13716040037 李印东 东东通信技术: 1G 模拟制式 语音通话. 2G GSM, CDMA 收发短信和邮件. 2.5G GPRS, EDGE 访问wap网络数据(图片, 壁纸, 小说). 3G WCDMA(联通), CDMA2000(电信)... 阅读全文
posted @ 2015-05-12 16:15 wf110 阅读(210) 评论(0) 推荐(0) 编辑
股票k线
摘要:与上一篇文章相比k线图主要的难点 1.tooltip的定制化显示: 当手指触摸手机屏幕上下拖动可能会手指的事件陷入图表无法进行上下拖动 tooltip:{followMouseMove} followMouseMove为true的话手指左右移动框中数据会发生改变但是无法上下移动,false的话图表框 阅读全文
posted @ 2015-05-05 20:18 wf110 阅读(4728) 评论(17) 推荐(0) 编辑
highstock实现股票分时
摘要:highchart学习网站www.highcharts.comhttp://www.hcharts.cn/docs/index.phphttp://www.hcharts.cn/api/highstock.php实现效果://谷歌手机浏览器酷似有bug,不过在iPhone5上图正确显示传入数据:股票... 阅读全文
posted @ 2015-05-05 19:55 wf110 阅读(11133) 评论(16) 推荐(2) 编辑
jquery 源码剖析1
摘要:()(); 闭包,让声明的变量变成局部变量,使外部无法访问,防止和其他代码冲突,互不影响。(function(){})(); 和一般执行方法一样的。jQuery=function(){ return new jQuery.prototype.init();} jQuery.init=... 阅读全文
posted @ 2015-05-02 17:24 wf110 阅读(165) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示