随笔分类 -  Android

摘要:前几天一直在做一个简单的android的简单的天气预报,但是在解析json的时候遇到一些问题,因为之前没有接触过json,所以这次做得时候首先查看了json的相关知识:首先、服务器端项目要导入json的jar包和json所依赖的jar包至builtPath路径下(这些可以到JSON-lib官网下载:... 阅读全文
posted @ 2014-12-23 13:02 Rui.peng 阅读(1489) 评论(0) 推荐(0)
摘要:Service概念及用途:A service is an application component that can perform long-running operations in the background and does not provide a user interface。通常... 阅读全文
posted @ 2014-12-04 17:30 Rui.peng 阅读(213) 评论(4) 推荐(0)
摘要:SharedPreference是Android提供的一种轻量级的数据存储方式,主要用来存储一些简单的配置信息,其以键值对的方式存储,使得我们能很方便进行读取和存入 SharedPreference 文件保存在/data/data//shared_prefs 路径下 通过Activity自... 阅读全文
posted @ 2014-12-04 17:07 Rui.peng 阅读(4052) 评论(0) 推荐(0)
摘要:将下列代码放在同一个 线性布局里面 阅读全文
posted @ 2014-11-13 08:43 Rui.peng 阅读(814) 评论(0) 推荐(0)
摘要:在layout中配置信息android:digits="1234567890.+-*/%\n()"限制输入框中只能输入自己定义的这些字符串 如果输入其它将不予以显示android:phoneNumber="true"限制输入框中只能输入手机号码android:password="true"限制输入框... 阅读全文
posted @ 2014-11-07 23:41 Rui.peng 阅读(681) 评论(0) 推荐(0)
摘要:public void onClick(View arg0) { String str = editText0.getText().toString(); Toast.makeText(SampleActivity.this,str, Toast.LENGTH_... 阅读全文
posted @ 2014-11-07 23:40 Rui.peng 阅读(689) 评论(0) 推荐(0)
摘要:public static boolean checkChinese(String sequence) { final String format = "[\\u4E00-\\u9FA5\\uF900-\\uFA2D]"; boolean result = false; ... 阅读全文
posted @ 2014-11-07 23:20 Rui.peng 阅读(818) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-11-07 23:14 Rui.peng 阅读(1066) 评论(0) 推荐(0)
摘要:人脸识别之触摸图片显示对应的文字xml文件: (用来显示你触摸图片对应显示的内容)java文件:package com.TouchEventDemo;import android.app.Activity;import android.os.Bundle;import android.view.... 阅读全文
posted @ 2014-10-18 15:20 Rui.peng 阅读(487) 评论(0) 推荐(0)