
android
adamin90
http:xpleeandroid.github.io
展开
-
android eclipse 导入 android support 源码
http://stackoverflow.com/questions/8543225/android-support-library-v4-getting-the-source-and-attaching-it-to-the-library1.新建 android-support-v4.jar.properties2. 内容src=F:/BaiduYunDownload/a原创 2015-05-26 16:27:49 · 449 阅读 · 0 评论 -
Android拍照上传至PHP服务器并写入MySql数据库(下)
Android实现调用系统相机,拍照: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); getFileUri(); intent.putExtra(MediaStore.EXTRA_OUTPUT, file_uri); startActivityForRe原创 2016-07-29 17:14:41 · 1951 阅读 · 1 评论 -
Android拍照上传至PHP服务器并写入MySql数据库(上)
需求分析需求很简单,Android客户端点击拍照后,进行Base64加密,自动上传至服务器,服务器接收上传的数据并解密后保存到指定文件夹下,并将图片信心写入数据库,并返回相应的Json数据。数据库创建数据库数据库名称为 turtorial_upload_image:CREATE DATABASE tutorial_upload_image;创建表我们要保存的信息是图片的名称和图片的路径,表名称是p原创 2016-07-29 17:13:46 · 3296 阅读 · 0 评论 -
翻译:no more findViewById
原文链接 https://medium.com/google-developers/no-more-findviewbyid-457457644885#.cs0jg2og6 翻译: Adamin90 转载请注明出处,谢谢! No More findViewByIdAndroid Studio开发android程序的一个小特点是数据绑定。我会在将来的文章中讲解它的其他一些优雅的特点,但是翻译 2016-07-29 17:08:00 · 439 阅读 · 0 评论 -
安卓中使用ThreadPoolExcutor
原文链接 https://medium.freecodecamp.com/threadpoolexecutor-in-android-8e9d22330ee3#.hiw1y4s2e 翻译: Adamin90 转载请注明出处,谢谢! 这篇文章将涉及到线程池,线程池执行程序,和他们在Android中的使用。 我们将使用很多的利用,详细的(thoroughly)介绍这些主题。 Threa翻译 2016-07-29 17:05:08 · 1426 阅读 · 0 评论 -
Android Studio AIDL 的使用 。
新建一个工程 ,包含app(server) 跟client两个module在server端 new -》 aidl 建立Girl.aidl// Girl.aidlpackage so.com.testserver;parcelable Girl;建立girl类package so.com.testserver;import android.os.Parcel;import android原创 2015-07-18 11:16:23 · 506 阅读 · 0 评论 -
android自定义view之(三) Making the View Interactive
Drawing a UI is only one part of creating a custom view. You also need to make your view respond to user input in a way that closely resembles the real-world action you’re mimicking. Objects should alw翻译 2015-06-15 15:42:28 · 559 阅读 · 0 评论 -
android自定义View之(二) Custom Drawing
The most important part of a custom view is its appearance. Custom drawing can be easy or complex according to your application’s needs. This lesson covers some of the most common operations. 自定义View中翻译 2015-06-12 17:05:19 · 575 阅读 · 0 评论 -
android Intent Flags详解
1. FLAG_GRANT_READ_URI_PERMISSION /** * If set, the recipient of this Intent will be granted permission to * perform read operations on the URI in the Intent's data and any URIs * specif原创 2015-06-08 17:57:14 · 6361 阅读 · 0 评论 -
Android中Parcelable接口用法
http://www.cnblogs.com/renqingping/archive/2012/10/25/Parcelable.html1. Parcelable接口Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing t转载 2015-05-25 17:35:10 · 404 阅读 · 0 评论 -
android 自定义view之(一) Creating a View Class
Creating a View ClassA well-designed custom view is much like any other well-designed class. It encapsulates a specific set of functionality with an easy to use interface, it uses CPU and memory effici翻译 2015-06-07 16:06:11 · 575 阅读 · 0 评论 -
一种在android中实现MVP模式的新思路
一种在android中实现MVP模式的新思路> * 原文链接 : android-mvp-an-alternate-approach * 译者 : FTExplore * 校对 : sundroid今天我想分享我自己在Android上实现MVP模式的方法。如果你对MVP模式还不熟悉或者你不清楚为什么要在Android应用中使用MVP模式,我建议你先阅读以下这篇维基百科的文章和这篇博客。使用Ac转载 2015-06-24 15:11:39 · 1303 阅读 · 0 评论 -
android 卡片翻转效果的实现
效果图:实现 : 一:创建Animator如图:第一个卡片要向左翻转消失 ,向右翻转出现第二张卡片向右翻转消失,向左翻转出现 。首先 card_flip_left_in.xml <objectAnimator android:valueFrom="1.0" android:valueTo="0.0"原创 2015-06-01 11:04:09 · 3240 阅读 · 0 评论 -
Google IO 2015
Android M 六项重大改进1.APP权限2.网络体验 优化内置App网页的浏览效果3.App链接 对App Links进行改进4.Android 支付 推出Android Pay 相比之前的安全性以及支持的国家和地区更多。兼容至4.0版本。5.电池 !!Android M 对电池进行了特殊的优化 全新的电源管理Doze6.USB Type-C支持 推出Ty原创 2015-05-29 03:17:56 · 766 阅读 · 0 评论 -
android Sqlite 模板 。
DatabaseHelper.javaimport android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteDatabase.CursorFactory;import android.database.sqlite.SQLiteOpen原创 2015-06-17 16:15:45 · 577 阅读 · 0 评论 -
Android webview解析 ,webview点击获取图片地址
webview 解析需求 : 解析webview内的商品图片地址,店铺头像定义内部类 Hand class Hand { @JavascriptInterface public void getImageurl(String data){// Log.e("网页内容", data); Document document=原创 2015-05-29 18:15:57 · 3574 阅读 · 0 评论 -
android 切换主题
http://www.cnblogs.com/likeandroid/p/4501758.html转载 2015-05-21 18:15:16 · 441 阅读 · 0 评论 -
安卓计算下载速度
昨天开始封装一个安卓多线程下载器,在写的过程中,猜测想加入检测下载过程中的速度,于是google一番,得出一个比较靠谱的答案,在此总结一下。 NANOSECONDSNANOSECONDS,毫微秒,十亿分之一秒,1s=1000000000毫微秒。CODE EXAMPLE long start = System.nanoTime(); //开始时间 long t原创 2016-07-29 17:16:20 · 2538 阅读 · 0 评论