android
文章平均质量分 55
lufengdie
用了都说好�
展开
-
实现录音,播放,以及Socket的上传和下载。。【处女作】
近期因为工作的原因,写了一个如题的测试例子,本人从事android时间有限,请各位慢点拍砖、、 主程序如下: package com.kingtone.www.record; import java.io.BufferedInputStream;原创 2011-10-17 10:52:23 · 1813 阅读 · 2 评论 -
Android 打包签名 从生成keystore到完成签名 -- 转
参见官网: [url]http://developer.android.com/tools/publishing/app-signing.html[/url] 进入生成工具: [img]http://dl.iteye.com/upload/attachment/350487/057fad20-1f4e-30fd-a34f-24d047d6ee0b.j...原创 2010-11-18 09:55:49 · 77 阅读 · 0 评论 -
android APK包 反编译
一.反编译Apk得到Java源代码 转载自:http://hi.baidu.com/%CB%BF%D4%B5%CC%EC%CF%C2/blog/item/2284e2debafc541e495403ec.html 工具下载:需用到dex2jar和JD-GUI这2个工具 dex2jar下载地址:http://laichao.googlecode.com/files/de...原创 2011-02-21 09:56:01 · 87 阅读 · 0 评论 -
gradle 配置文件 build.gradle 属性详解
gradle 配置文件 build.gradle 属性详解原创 2015-08-13 22:50:08 · 3430 阅读 · 0 评论 -
gralde build
gradle clean 清空build文件夹 gradle build 构建工程,会生成build文件夹构建过程如下: 红框中是 lint 提示,报告输出地址见下图: 打开lint报告: 包含Correctness Performance Internationalization Bi-directional Text Lint原创 2015-08-18 13:41:35 · 777 阅读 · 0 评论 -
解决 获取View的width和Height为0的4种方法
当我们动态创建某些View时,需要通过获取他们的width和height来确定别的view的布局,但是在onCreate()获取view的width和height会得到0.view.getWidth()和view.getHeight()为0的根本原因是控件还没有完成绘制,你必须等待系统将绘制完View时才能获得。这种情况当你需要使用动态布局(使用wrap_content或match_parent)就转载 2015-08-26 15:05:45 · 2845 阅读 · 0 评论 -
Android中http多线程下载
参考了一篇博客,但是原创 2014-06-11 20:27:33 · 675 阅读 · 0 评论 -
android 传感器
文章中有部分为转载内容! android中传感器日前已经出现了很多种。 传感器类型:方向、加速度(重力)、光线、磁场、距离(临近性)、温度等。 方向传感器: Sensor.TYPE_ORIENTATION 加速度(重力)传感器: Sensor.TYPE_ACCELEROMETER 光线传感器: Sensor.TY原创 2011-12-03 18:47:40 · 404 阅读 · 0 评论 -
android 调用系统应用
显示网页: 1. Uri uri = Uri.parse("http://www.google.com"); 2. Intent it = new Intent(Intent.ACTION_VIEW,uri); 3. startActivity(it); 显示地图: 1. Uri uri = Uri.parse("geo:38.899533,-77.03647转载 2011-11-06 17:53:57 · 479 阅读 · 0 评论 -
Android中shape的使用
Android中常常使用shape来定义控件的一些显示属性,今天看了一些shape的使用,对shape有了大体的了解,稍作总结: 先看下面的代码: android:startColor="#ff8c00"转载 2011-11-17 11:57:53 · 410 阅读 · 0 评论 -
Android下affinities和任务(task)
转自: 097的文章 本文参考了官方Dev Guide文档,简单介绍Android下的affinities和任务(task)。 Activity和Task task就好像是能包含很多activity的栈。 默认情况下,一个转载 2011-10-19 13:22:55 · 446 阅读 · 0 评论 -
android 签名被篡改(Keystore was tampered with, or password was incorrect)
在配置自定义签名时出现了"Keystore was tampered with, or password was incorrect"错误! 参考文档发现: If necessary, you can change the location/name of the debug keystore/key or supply a custom debug keystore/ke...原创 2011-12-20 16:05:12 · 237 阅读 · 0 评论