现在位置: 首页 > 移动开发 > 文章
log: Found 3 versions of android-support-v4.jar in the dependency list, [2014-05-04 14:03:58 - Hi****] but not all the versions are identical (check is based on SHA-1 only at this time). [2014-05-04 14:03:58 - Hi****] All versions of the libraries must be the same at this time. [2014-05-04 14:03:58 - Hi****] Versions found are: [2014-05-04 14:03:58 - Hi****] Path: E:\svn\03_ok\gala_new_first\...
阅读全文
2019年05月18日 移动开发 ⁄ 共 1248字 评论关闭
实现的基本原理就是,当按下BACK键时,会被onKeyDown捕获,判断是BACK键,则执行AppExit方法。 在AppExit方法中,会首先判断isAppExit的值,如果为false的话,则置为true,同时会弹出提示,并在2000毫秒(2秒)后发出一个消息,在Handler中将此值还原成false。 如果在发送消息间隔的2秒内,再次按了BACK键,则再次执行AppExit方法,此时isAppExit的值已为true,则会执行退出的方法。 转发自 http://blog.csdn.net/carterjin/...
阅读全文
http://hi.baidu.com/tozhang/item/4dfeaafb9aec2813d7ff8c99   ndroid限定EditText的输入类型为数字或者英文(包括大小写)  // 监听密码输入框的输入内容类型,不可以输入中文     TextWatcher mTextWatcher = new TextWatcher() {  @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void beforeTextChanged(CharSequence s, int start, int count, int af...
阅读全文
2019年05月16日 移动开发 ⁄ 共 2530字 评论关闭
网络编程 C/S,B/S系统架构。 手机客户端 Web App  Html5 C/S:客户/服务器 服务器端开发语言: java .net C/C++ php python Ruby Node.js  javascript 文本数据:JSON数据、XML数据。 图片数据: 音频数据: 视频数据: 数据通讯: HTTP协议的基本概念: ·全称“超文本传输协议”,浏览器和服务器之间的通信规则 ·HTTP协议永远是客户端发起请求,客户端回送响应。 客户端——>服务器端的数据格式:1.JSON 2.XML(使用较少)...
阅读全文
2019年05月15日 移动开发 ⁄ 共 16040字 评论关闭
Android This document will provide instructions for building the OpenSSL library for Android devices. If you need the FIPS Validated Object Module and the FIPS Capable Library, see FIPS Library and Android. Contents  [hide]  1 Executive Summary 1.1 Prepare the OpenSSL Sources 1.2 Build the OpenSSL Library 1.3 Install the OpenSSL Library 2 OpenSSL Library 2.1 Acquire th...
阅读全文
Eclipse 更新Android SDK后,新建项目出现各种问题,网上各种解决方案,搞了好久,总结一下。 1、出现error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton' 新建工程后,出现error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton' 这个是新建项目时,Target SDK和Co...
阅读全文
2019年05月10日 移动开发 ⁄ 共 5119字 评论关闭
转载:http://www.open-open.com/lib/view/open1385015058593.html 利用android sdk里面的 JSONObject和JSONArray把集合或者普通数据,转换成json格式的字符串 JSONObject和JSONArray解析json格式的字符串为集合或者一般数据 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 4...
阅读全文
2019年05月10日 移动开发 ⁄ 共 4338字 评论关闭
原文地址:http://www.open-open.com/lib/view/open1384349254555.html * 异步加载图片  * 使用方法:  * private AsyncImageLoader asyImg = new AsyncImageLoader();  * asyImg.LoadImage(productItems.get(position).getPic(), (ImageView)view.findViewById(R.id.pic));  */   public class AsyncImageLoader {     // 为了加快速度,在内存中开启缓存(主要应用于重复图片较多时,或者同一个图片要多次被访问,比如在List...
阅读全文
2019年05月10日 移动开发 ⁄ 共 5086字 评论关闭
Android类动态加载技术 Android应用开发在一般情况下,常规的开发方式和代码架构就能满足我们的普通需求。但是有些特殊问题,常常引发我们进一步的沉思。我们从沉思中产生顿悟,从而产生新的技术形式。 如何开发一个可以自定义控件的Android应用?就像eclipse一样,可以动态加载插件;如何让Android应用执行服务器上的不可预知的代码?如何对Android应用加密,而只在执行时自解密,从而防止被破解?…… 熟悉Java技术的朋友...
阅读全文
2019年05月09日 移动开发 ⁄ 共 14240字 评论关闭
应用场景: 在Android官方指出的Android的数据存储方式总共有五种,分别是:Shared Preferences、网络存储、文件存储、外储存储、SQLite。但是我们知道一般这些存储都只是在单独的一个应用程序之中达到一个数据的共享,而且这些知识在前面我都有介绍,有时候我们需要操作其他应用程序的一些数据,例如我们需要操作系统里的媒体库、通讯录等,这时我们就可能通过ContentProvider来满足我们的需求了 ContentProvider概述: Cont...
阅读全文