最近学习了一段时间的Android,在网上找了些小的Demo,自己模拟这做了下,首先谢谢那些提供例子的朋友今天主要学习的是简单的Dialog的使用(实现退出对话框)和自定义对话框1.实现退出对话框普通模式的对话框使用比较简单,主要是设置对话框标题、设置对话框内容、设置对话框中的按钮,以及增加监听事件...
分类:
移动开发 时间:
2015-05-26 01:32:52
阅读次数:
477
片段1for(int i =0;i<10;i++) { NSLog(@"i=%d",i); dispatch_queue_t mySerialQueue = dispatch_queue_create("com.biostime.xxx", NULL); __block int d = i; dis...
分类:
移动开发 时间:
2015-05-26 01:27:23
阅读次数:
195
本文主要讨论一种非常方便的抓取Android和iphone手机网络数据包的办法,以及介绍wireshark最常用的技巧抓包工具介绍(1).网页抓包工具 Chrome浏览器插件 FireBug 插件 HttpWatch Fiddler 在浏览器chrome和firefox中可以使用插件抓取网络包,ht...
分类:
移动开发 时间:
2015-05-26 01:28:13
阅读次数:
268
一、完整性校验原理 所谓完整性校验就是我们用各种算法来计算一个文件的完整性,防止这个文件被修改。其中常用的方法就是计算一个文件的CRC32的值或者计算一个文件的哈希值。我们在防止apk被反编译的方法中也可以...
分类:
移动开发 时间:
2015-05-26 00:24:19
阅读次数:
183
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"...
分类:
移动开发 时间:
2015-05-26 00:21:42
阅读次数:
194
发现有些朋友对这4个属性的使用时机和规律不是很明白,就自己总结了一些。...
分类:
移动开发 时间:
2015-05-26 00:16:35
阅读次数:
241
#include#include#includeusing namespace std;int bag[1001];struct Case{ int c,w;}apple[1010];/*int cmp(Case a,Case b){ return (1.0*a.w/a.c)>(1.0*b.w/b....
分类:
移动开发 时间:
2015-05-26 00:13:23
阅读次数:
177
Volley 是 Google 在 2013 I/O 大会上推出的 Android 异步网络请求框架和图片加载框架。特别适合数据量小,通信频繁的网络操作。Volley 主要是通过两种 Diapatch Thread 不断从 RequestQueue 中取出请求,根据是否已缓存调用 Cache ...
分类:
移动开发 时间:
2015-05-26 00:09:01
阅读次数:
415
搜集的常用第三方库一:网络请求库 1.AFNetworking github地址:https://github.com/AFNetworking/AFNetworking 2.ASIHttpRequest github地址:https://github.com/pokeb/asi-http-requ...
分类:
移动开发 时间:
2015-05-26 00:05:14
阅读次数:
229
首先需要准备Android SDK包,我是在windows上操作的,在PATH中配置YOUT_SDK_PATH\android-sdk-windows\platform-tools 和 YOUT_SDK_PATH\android-sdk-windows\tools这样就可以直接在命令行中使用adb和...
分类:
移动开发 时间:
2015-05-26 00:03:53
阅读次数:
213
怎样设置包括第一栏在内相同高度的section(小技巧,虽然容易但容易忽略)
*第一步,在viewdidload里将尾部设为0,table.sectionFooterHeight = 0;(代理方法)- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
...
分类:
移动开发 时间:
2015-05-25 22:38:07
阅读次数:
166
java-Android编程规范
一 目录规范
系统目录规范
Requriement 要求相关文档
Design 设计
Planning&Log 计划-日志-会议
Help 帮助
Source或者Src 源代码及单元测试
Deployment 发布-部署-public
Test 集成测试-系...
分类:
移动开发 时间:
2015-05-25 22:37:36
阅读次数:
175
DialogFragment是在Android3.0(API level 11)中引入的,它代替了已经不建议使用的AlertDialog。
DialogFragment高效地封装和管理对话框的生命周期,并让Fragment和它包含的对话框的状态保持一致。那么,已经有了AlertDialog为什么要引入DialogFragment呢?
DialogFragment对话框出现的意义
...
分类:
移动开发 时间:
2015-05-25 22:35:46
阅读次数:
432
iOS中文字体自定义
//汉字字体倾斜
NSInteger number = 55;//倾斜值
CGAffineTransform matrix = CGAffineTransformMake(1, 0, tanf(number * (CGFloat)M_PI / 180), 1, 0, 0);
UIFontDescriptor *desc = [UIFontDescriptor fontDescriptorWithName:[UIFont systemFontOfSize:17].fontNam...
分类:
移动开发 时间:
2015-05-25 22:36:42
阅读次数:
164
在Android开发中,有时需要应用第三方框架,那么就需要把第三方项目导入到Eclipse中,并完成依赖。接下来详细讲一下该过程...
分类:
移动开发 时间:
2015-05-25 22:34:32
阅读次数:
256
现在物联网搞的轰轰烈烈的,小米的手环等一系列产品,下面我们就来研究一下小米手环的记步功能 工具类
package com.zsl.bluetoothdemo.ble;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.Blueto...
分类:
移动开发 时间:
2015-05-25 22:34:07
阅读次数:
407
EventBus——Android开发中一个优雅的组件间通信的方式...
分类:
移动开发 时间:
2015-05-25 22:35:53
阅读次数:
233