摘要: 闲的蛋疼的人生,没有压力,所以人变得碌碌无为,立刻加压吧!自己想做一个电子书,所以就反编译了一个豌豆荚的软件,仅作学习交流 只用,以下为学习过程,应该写的很细,最后将会增添源代码,计划用两天做完,若做不完,从第二年天开始不睡觉,立贴为誓首先主Activity是:StarActivey,第一段: p... 阅读全文
posted @ 2015-11-16 15:20 kanrun 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Android编译选项eng、user、userdebug的区别分类:技术Android2013-09-02 11:335210人阅读评论(0)收藏举报eng:debug 版本user: release 版本userDebug版本:部分debug版本要了解Android编译选项eng、user和us... 阅读全文
posted @ 2015-04-29 14:34 kanrun 阅读(446) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---1 在TabHost设置布局文件时,写成了<Tabhost></Tabhost>,正确的应改为<TabHost></TabHost>2 同理于<Linearlayout></Linearlayout>,正确的应该为<LinearLayout></LinearLayout>3---恢复内容结束--- 阅读全文
posted @ 2013-05-08 13:35 kanrun 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(562) 评论(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 阅读(747) 评论(0) 推荐(0) 编辑
摘要: package com.java.list;import java.util.Iterator;import java.util.LinkedList;import java.util.List;public class ListTest1 {public static void main(String[] args){//全部显示list里面的内容String A="a",B="b",C="c",D="d",E="e";List<String> list1=new LinkedLi 阅读全文
posted @ 2013-04-24 12:03 kanrun 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 第一次编写的失误:不知道如何处理图片。首先是new view 然后new imageview ,再通过一个linearation 将两个view添加,最后toast将linearation添加到viewpackage com.android.test;import android.app.Activity;import android.os.Bundle;import android.view.Gravity;import android.view.View;import android.view.View.OnClickListener;import android.widget.Butto 阅读全文
posted @ 2013-03-21 14:02 kanrun 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 编写时遇到的问题:声明int变量时没有声明public,在重写ondraw方法时。没有继承,并且没有canvas;布局时Lineration写在了外面;重绘的语句不会写;第一个文件:package com.android.test;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.view.View;public class DrawView extends View { 阅读全文
posted @ 2013-03-19 14:05 kanrun 阅读(136) 评论(0) 推荐(0) 编辑