ITeye博客

2014 年文章归档

共 18 篇文章

智能手机界面适配之HTML5

有一种目标如java一样,一次编写到处运行,在移动设备流行的当下,有木有可能只实现一套页面,就能够在所有平台的浏览器下访问网站,显示适合的效果呢?答案是肯定的 HTML5带来了希望, 使用Viewport及Media Queries样式模块 移动设备样式之媒体查询HTML5<一> 移动设备样式之媒体查询HTML5<二>

2014-11-22 13:30 · android

android webview开发html5之二

android webview开发html5之性能优化 android webview开发html5之WebViewClient-WebChromeClient android webview开发html5之自定义js alert方法 android webview开发html5之文件下载

2014-11-08 10:34 · android

android webview开发html5

android webview开发html5 在android使用webview开发Html5时,html5使用了缓存,需要配置webview开启 // 设置可以使用localStorage myWebView.getSettings().setDomStorageEnabled(true); android webview开发html5之开启AppCache // 应用可以有数据库 myWebView.getSettings().setDatabaseEnabled(true); String databasePath = this.getApplicationContext() .get…

2014-11-08 10:31 · android

spring mvc返回json串解决手机应用网络请求综合贴

spring mvc返回json串解决手机应用网络请求 spring mvc返回json串解决手机应用网络请求二 spring mvc返回json串解决手机应用网络请求三 spring mvc返回json串解决手机应用网络请求(四) spring mvc返回json串解决手机应用网络请求(五) spring mvc解决手机应用上传文件及多文件上传处理(六)

2014-11-07 11:14 · android · spring MVC · spring

spring mvc返回json串解决手机应用网络请求二

转载: http://www.apk-doc.net/spring-mvc/spring-mvc-json-2.html 前面第一篇讲述了, 搭建spring mvc环境 ,这里我们主要使用spring mvc的注解方式快速构建web 注解: @Controller 表示控制器 @RequestMapping("/hello") 表示控制器访问路径为/hello @ResponseBody 表示返回的是json串 /** * * @author 喧嚣求静 * * blog:www.apk-doc.net * * * * * */ @Controller public class HelloW…

2014-11-07 11:05

spring mvc返回json串解决手机应用网络请求

转载: http://www.apk-doc.net/spring-mvc/spring-mvc-json.html 做app应用开发时,手机客户端适合处理json串,而在java开发中,最方便的快速简洁的服务端开发技术莫过于使用spring mvc注解方式构建web应用返回json串 第一步: 搭建spring mvc环境: 工程依赖jar <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-cl…

2014-11-07 11:00 · android · spring MVC · spring

html5做的游戏,未来还是有发展前景啊

游戏 熊出没 别踩白块VS快咬小苹果 简单塔防小游戏

2014-11-02 15:59 · android

android开发,eclipse adt插件中没有Annotation Processin

因为要使用开源 androidannotations 注解,发现eclipse没有Annotation Processin 解决办法: 博客来源: http://www.apk-doc.net/android/android-eclipse-adt.html 需要配置插件: http://download.eclipse.org/releases/juno

2014-10-31 20:30 · android

android设置头像

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#F3F1DA" android:orientation="vertical" > <!-- title --> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_c…

2014-04-19 11:01

android图片工具类

package com.mm.mmcalendar.utils; import java.io.ByteArrayOutputStream; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PixelFormat; import android.gra…

2014-04-19 11:00

android开发环境中借助windows中的explorer实现文件夹定位打开

2014-04-17 21:28 · android

android开发中使用pinyin4android转换汉字为pinying

public class Chinese2SpellUtils { /** * 使用pinyin4android.jar将汉字转换为拼音 * https://code.google.com/p/pinyin4android/downloads/detail?name=pinyin4android1.0.jar&can=2&q= * @param chineseStr * @return */ public static String chineneToSpell(Context context,String chineseStr) { if (isChinese(chineseStr)) {…

2014-04-17 14:46 · android

跑马灯结合TextSwitcher实现系统公告栏

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="5dp" android:orientation="horizontal" > <TextView android:id="@id/swicherLabelTxt" android:…

2014-04-15 10:08 · android · android View展现特效

android自动更新升级APP

private void checkVersion( AppVersion appVersion){ if(StringUtils.isEmpty(appVersion.getNum())){ UIHelper.ToastMessage(Setting.this, "获取不到最新版本,请稍后重试"); return ; } if(Version.getName(Setting.this).compareTo(appVersion.getNum())>=0){ UIHelper.ToastMessage(Setting.this, "当前版本号:"+appVersion.getNum()+"已…

2014-04-01 18:45 · android

遮罩层效果

/** * 遮罩层效果 * * @param process * 主要实现layoutId布局中的查找控件并绑数据和事件并关联到dialog * @param maskStyle * 风格 <0时用默认 * @param layoutId * 布局 <0时用默认 * @param msgTip * 展示的提示信息 * @param listener * 窗口消失时监听接口,为Null空时不处理 * */ public static void maskLayerDialog(Context context, int maskStyle, int layoutId, String msgTip,…

2014-04-01 18:42 · android

过滤特殊字符及表情符

//这个我从逆向考虑,找出常用合法的字符,其他为非法,过滤即可 public String stringFilter(String str) throws PatternSyntaxException { // 只允许字母和数字和中文//[\\pp‘’“” string regex = &quot;^[A-Za-z\\d\\u4E00-\\u9FA5\\p{P}‘’“”]+$&quot;; Pattern p = Pattern.compile(regEx); StringBuilder sb = new StringBuilder(str); for (int len = str.leng…

2014-04-01 14:07

android用ndk开发jni

Windows下怎么配置NDK开发环境 Android如何使用NDK进行JNI开发 windows xp 中cygwin 下载android源码

2014-02-15 19:08 · android · android 网文摘记

android常用开源库volly下载

文章首发:安卓技术原创apkdoc 1. 什么是Volley 在这之前,我们在程序中需要和网络通信的时候,大体使用的东西莫过于AsyncTaskLoader,HttpURLConnection,AsyncTask,HTTPClient(Apache)等,今年的Google I/O 2013上,Volley发布了。Volley是Android平台上的网络通信库,能使网络通信更快,更简单,更健壮。 这是Volley名称的由来: a burst or emission of many things or a large amount at once Volley主页 https://android…

2014-02-11 22:10 · android