摘要: public class MainActivity extendsActivity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);TextView textView =(TextView) findViewById(R.id.test);TelephonyManager tm = (TelephonyManager) this .getSystemService(Con. 阅读全文
posted @ 2013-04-27 14:22 kanrun 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 来源于:http://yefei.iteye.com/blog/1098023在导入已经存在的项目时出现的错误Re-installation failed due to different application signatures调试信息如下:[2011-06-09 10:08:37 - ApiDemos] Re-installation failed due to different application signatures.[2011-06-09 10:08:37 - ApiDemos] You must perform a full uninstall of the applic 阅读全文
posted @ 2013-04-27 14:08 kanrun 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.eoeandroid.com/forum.php?mod=viewthread&tid=183034昨晚研读 ApiDemo 源码至 com.example.android.apis.text.Link 类。首先,看一下其运行效果: 要给 TextView 加上效果,方式主要有几种: 第一种,自动应用效果,使用 android:autolink 属性,如: Java代码?代码片段,双击复制0102030405060708091011 android:id="@+id/text1" android:layout_width="m 阅读全文
posted @ 2013-04-27 13:35 kanrun 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 首先创建一个style文件在values文件夹下<?xml version="1.0" encoding="utf-8"?><resources> <style name="StyleBarTitle"> <item name="android:layout_gravity">center_vertical</item> <item name="android:layout_width">0dp</item> & 阅读全文
posted @ 2013-04-27 13:32 kanrun 阅读(748) 评论(0) 推荐(0) 编辑