以下为Androi内存优化的几种代码处理,示例代码,仅供参考:
?1. 生成Bitmap:
InputStream is =this.getResources().openRawResource(R.drawable.pic1);
BitmapFactory.Options options=newBitmapFactory.Options();
options.inJu...
分类:
移动开发 时间:
2014-12-17 12:47:18
阅读次数:
184
在安卓开发中用到底部菜单栏 需要用到RadioButton这个组件 实际应用的过程中,需要对按钮进行点击,为了让用户知道是否点击可这个按钮,可以设置点击后 ,该按钮的颜色或者背景发生变化。layout中这部分的代码为: 1 10 可以看到RadioButton中 androi...
分类:
移动开发 时间:
2014-12-11 23:58:57
阅读次数:
457
已屏蔽掉触摸冲突,直接上代码
package com.pobing.extra.views;
import com.example.iphonebut.R;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Canvas;
import androi...
分类:
其他好文 时间:
2014-12-10 14:15:35
阅读次数:
211
Exception raised during rendering: java.lang.System.arraycopy本文地址: http://blog.csdn.net/caroline_wendyError: Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V错误导致UI无法显示,原因是Androi...
分类:
移动开发 时间:
2014-12-09 09:20:27
阅读次数:
246
趁周末的时间,研究了一下ionic的apk构建过程,还算顺利,步骤简单记录如下。
1、下载node.js并安装(www.nodejs.org)
2、npm install -g cordova ionic
3、ionic start myapp tabs 或ionic start myapp sidemenu 或ionic start myapp blank
4、安装JAVA,Androi...
分类:
其他好文 时间:
2014-12-07 17:53:07
阅读次数:
535
android之实现SeekBar拖动组件:布局:layout/activity_main.xml<LinearLayoutxmlns: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"androi..
分类:
移动开发 时间:
2014-12-07 06:51:18
阅读次数:
163
android中实现Https基本就这两种方式:
一种是不验证证书,一种是有验证证书(预防钓鱼)。 第二种方式实现复杂一些,需要将cer证书转换成BKS类型。这种方式也只能简单的防止钓鱼,不能有效的防止钓鱼。防止钓鱼最终还是靠用户分辨,在正规渠道下载应用。应用证书也能起到验证客户端的功能,个人认为使用证书验证客户端不合适,如果使用证书验证客户端,证书必须存放在应用程序中或使用时下载,androi...
分类:
Web程序 时间:
2014-12-05 21:25:41
阅读次数:
204
随着版本的更迭,应用程序编程接口(API)等级不断发生。下面将目前为止所有API等级罗列出来,并与Android各版本一一对应。API等级1:Android 1.0API等级2:Android 1.1 Petit FourAPI等级3:Android 1.5 CupcakeAPI等级4:Androi...
分类:
移动开发 时间:
2014-12-05 19:12:11
阅读次数:
177
今天浏览stackoverflow 发现一个有趣的问题:which was more preferable as performance wise and without error cause to delete all the row from table in sqlite in androi...
分类:
数据库 时间:
2014-11-30 22:52:21
阅读次数:
223
一.android.app.Fragment 与 android.support.v4.app.Fragment 区别support.v4.app.Fragment是为了给低版本Android使用的jar包android.app.Fragment支持的最低版本是Android3.0 – androi...
分类:
移动开发 时间:
2014-11-30 13:48:07
阅读次数:
155