- 博客(18)
- 资源 (6)
- 收藏
- 关注
转载 那些年在WebView上踩过的坑
之前我在Android中使用WebView与JS交互全解析一文中,介绍了通过Webview和JS的交互方式,但Webview这个控件简直是让人又爱又恨,各种你想不到的错误在各种奇怪的手机上,各种不一样的版本里,所以我想通过这篇博客总结Webview开发中的不得不注意的一些坑。1.WebView的内存泄露问题 问题描述: webview内存泄露的情况还是很严重的,尤其是当你加载的页面
2016-11-30 16:14:05 554
转载 AndroidStudio使用NDK配置方法
配置Gradle生成so在AndroidStudio2.1及以前我是通过下面的方式配置NDK的,不知道是从哪个版本开始的,我第一次在AS上使用NDK的时候用的就是AndroidStudio2.1了。首先在gradle.properties里面添加 Android.useDeprecatedNDK = trueandroid{}下的defaultconfig{}代码块中添加n
2016-11-28 15:09:51 344
转载 NDK-CPP语言-常用算法及综合案例
com_tz_ndk_cpp_NDKCpp.h/* DO NOT EDIT THIS FILE - it is machine generated */#include /* Header for class com_tz_ndk_cpp_NDKCpp */#ifndef _Included_com_tz_ndk_cpp_NDKCpp#define _Included_com_tz_
2016-11-28 14:19:25 544
转载 NDK-CPP语言-函数对象+谓词+函数绑定
com_tz_ndk_cpp_NDKCpp.h/* DO NOT EDIT THIS FILE - it is machine generated */#include /* Header for class com_tz_ndk_cpp_NDKCpp */#ifndef _Included_com_tz_ndk_cpp_NDKCpp#define _Included_com_tz_
2016-11-28 14:11:36 327
转载 android中进行https连接的方式
如果不需要验证服务器端证书,直接照这里做 public class Demo extends Activity { /** Called when the activity is first created. */ private TextView text; @Override public void onCrea
2016-11-24 14:46:20 537
转载 NDK-CPP语言-queue队列+stack栈+list+set+map
com_tz_ndk_cpp_NDKCpp.h/* DO NOT EDIT THIS FILE - it is machine generated */#include /* Header for class com_tz_ndk_cpp_NDKCpp */#ifndef _Included_com_tz_ndk_cpp_NDKCpp#define _Included_com_tz_
2016-11-22 15:56:20 1321
转载 NDK-CPP语言-string字符串+vector容器+deque双向队列
com_tz_ndk_cpp_NDKCpp.h/* DO NOT EDIT THIS FILE - it is machine generated */#include /* Header for class com_tz_ndk_cpp_NDKCpp */#ifndef _Included_com_tz_ndk_cpp_NDKCpp#define _Included_com
2016-11-22 15:45:59 543
转载 NDK-CPP语言-异常处理+IO流
#include #include // using namespace std;//2.C++语言:异常处理//2.1.C++语言:异常处理-语法-方法内部处理异常// int main(){// //规定性别0和1(0代表男,1代表女)// int sex = 0;// //规定0-200// int age = -300;//
2016-11-22 15:39:27 599
转载 c++类型转换
//// Created by Dream on 2016/11/12.//#include #include #include "com_tz_ndk_cpp_NDKCpp.h"using namespace std;//1.C++语言:模版类中重载运算符//#include "Company.cpp"//#include "Student.hpp"//#includ
2016-11-22 15:36:31 741
转载 Android代码混淆常见配置
项目发布之前混淆是必不可少的工作,混淆可以增加别人反编译阅读代码的难度,还可以缩小APK包。 一、使用原理: 见:ProGuard的作用、使用及bug分析(http://www.trinea.cn/android/proguard-use/); Proguard语法及常用proguard.cfg代码段(http://www.trinea.cn/android/proguard-gr
2016-11-17 15:08:29 320
转载 NDK-CPP语言-模版类运算符重载+模版类static关键字+类型转换
布局文件:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_
2016-11-14 16:45:39 618
转载 NDK-CPP语言-纯虚函数+函数模版+模版类
布局文件:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_
2016-11-14 16:32:21 857
转载 NDK-CPP语言-继承
布局文件:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_
2016-11-14 16:25:22 592
转载 NDK-CPP语言-运算符重载
布局文件:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_
2016-11-14 16:07:17 495
转载 NDK-CPP语言-构造函数+New和Delete和Static关键字+对象大小
public class NDKCpp { //1.C++中构造函数 public native void callCppConstruct(); //2.C++中new关键字、delete关键字 public native void callCppNewOrDelete(); //3.C++中static关键字 public native v
2016-11-07 15:42:21 573
转载 NDK_CPP语言-构造函数+析构函数+拷贝函数
public class NDKCppInterface { //1.C++中构造函数 public native void executeCppCustruct(); //2.C++中析构函数 public native void executeCppDesctruct(); //3.C++中拷贝函数和赋值运算 public native v
2016-11-07 15:20:02 895
转载 NDK-CPP语言-指针引用+函数指针+函数重载
public class NDKCInterface { public native void executeCConst();}public class NDKCppInterface { //1.学习C++中的常量(包括和C中的常量的区别) public native void executeCppConst(); //2.C++指针的引用
2016-11-07 15:07:42 1184
转载 Android xml资源文件中@、@android:type、@*、?、@+含义和区别
一.@代表引用资源1.引用自定义资源。格式:@[package:]type/nameandroid:text="@string/hello"2.引用系统资源。格式:@android:type/name android:textColor="@android:color/opaque_red" 注意:其实@android:type/name
2016-11-03 16:58:16 242
ormlite-4.48
2014-11-29
jdk-6u45-linux-x64.part2
2013-07-31
jdk-6u45-linux-x64.part1
2013-07-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人