- 浏览: 130493 次
- 性别:
- 来自: 武汉
最新评论
-
酱油党:
你这个方法只能截当前activity,想要截取任意地方,怎么办 ...
全屏截图 -
月下独酌:
sxchao2008 写道/sdcard/cacerts.bk ...
android https之二 -
sxchao2008:
/sdcard/cacerts.bks 这个证书可以到网上随便 ...
android https之二 -
月下独酌:
Rhamiss 写道请问这是从sdcard安装ca证书的源代码 ...
android https之三 -
月下独酌:
Rhamiss 写道请问这是从sdcard安装ca证书的源代码 ...
android https之三
文章列表
android https之三
- 博客分类:
- android
android https之一
android https之二
android https之三
private static void installCert(String host, int port, String passwd,
String sslProtocol) {
try {
String trustStorePath = System
.getProperty("javax.net.ssl.trustStore");
// File keystoreFile = new File(trustStorePath) ...
android https之二
- 博客分类:
- android
android https之一
android https之二
android https之三
private HttpClient makeHttpsClient(String keyStorePasswd, int port) {
try {
KeyStore trustStore = KeyStore.getInstance(KeyStore
.getDefaultType());
String trustStorePath = System
.getProperty("javax.net.ssl.trustStore" ...
android https之一
- 博客分类:
- android
android https之一
android https之二
android https之三
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.KeyManagementException;
import java.securit ...
//自定义httpclient
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.UnrecoverableKeyException;
import java.s ...
private static void setProxy(HttpRequest request, HttpClient httpClient) {
NetworkInfo networkInfo = UpgradeApplication.getNetworkInfo();
if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) {
Log.i(UpgradeApplication.TAG, &qu ...
styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.CustomDialog" parent="android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/activityshape</item>
& ...
Adapter的用法
- 博客分类:
- android
Adapter的用法:
public class ListAdapter extends BaseAdapter {
private Context mContext;
private ArrayList<String> mTitles = new ArrayList<String>();
private ArrayList<String> mDialogue = new ArrayList<String>();
private ArrayList<Boolean> mExpa ...
http://www.cnblogs.com/fantaisie/archive/2011/01/25/1915155.html
public byte[] getBitmapByte(Drawable drawalbe) {
BitmapDrawable db = (BitmapDrawable) drawalbe;
Bitmap bitmap = db.getBitmap();
ByteArrayOutputStream out = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
try {
out.flush();
out.close();
} ...
图片自动切换
res/drawable/update.xml
<animation-list
xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/update_1" android:duration="200" />
<item android:drawable="@drawa ...
查看状态
svn st xxx xxx/
纳入版本控制(不会影响服务器)
svn add xxx xxx/
提交(执行后回提示添加注释)
svn ci xxx xxxx/
同步
svn up
Settings中语种选项有很多,而自己常用的不多
要修改android默认语言选项,可以将mk文件中的
PRODUCT_LOCALES := zh_HK en_US zh_CN cs_CZ da_DK de_DE el_GR es_ES es_US fi_FI fr_FR it_IT ja_JP ko_KR nb_NO nl_NL pl_PL pt_BR pt_PT ru_RU sv_SE tr_TR zh_TW zh_HK ro_RO sk_SK
修改为
PRODUCT_LOCALES := zh_HK en_US
编译出来的系统可选的语种只有香港和英文
android编译时添加库第三方库文件:
android\customization\custom_normal\vendor\third-party\libs\Android_cust.mk 中
----------------------------------------------------
include $(CLEAR_VARS)
LOCAL_PREBUILT_LIBS += libhello-jni.so
include $(BUILD_MULTI_PREBUILT)
-----------------------------------------------------
在 ...
android_recovery_介绍
,just mark
How to Use Android Downloads Provider
Posted on June 3, 2010 by deli
“Good programmers write solid code, while great programmers reuse the code of good programmers”
— W. Jason Gilmore, the author of “Beginning PHP and MySQL”
In Android Platform, it supports some ways to download files from ...