![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
小粒麦子
这个作者很懒,什么都没留下…
展开
-
Android程序调试时生成main.out.xml文件
今天在调试一个Demo时,修改了布局文件layout\main.xml,然后ctrl + F11运行, 结果碰到下面的错误:[2010-06-26 16:48:10 - ListViewDemo] Error in an XML file: aborting build.[2010-06-26 16:48:10 - ListViewDemo] res\layout\main.xml:0:转载 2012-03-12 15:08:00 · 654 阅读 · 0 评论 -
Failed to allocate memory: 8
Failed to allocate memory:8 This application has requested theRuntime to terminate it in an unusual way.Please contact the application's support team for more information.ADB起不起来解决方原创 2012-10-19 15:16:35 · 686 阅读 · 0 评论 -
Eclipse导入代码更改默认字符集
Eclipse更改默认字符集 设置UTF-8eclipse中UTF-8设置1.windows->Preferences 打开"首选项"对话框;2.然后,general->Workspace,右 侧Text file encoding,选择Other,改变为UTF-8。3.Web->打开,把CSS、HTML、JSP、JavaScript、 XML等设置为UTF-8。或在这里更原创 2012-04-23 11:16:37 · 3443 阅读 · 0 评论 -
Eclipse导入android工程,无法显示xml布局
Eclipse导入android工程,无法显示xml布局 解决办法是: step1. Project ->Clean step2. 重启 Eclipse原创 2012-04-20 18:18:59 · 3346 阅读 · 1 评论 -
Eclipse导入Android工程,出现default与Displaying的问题解决
Eclipse导入android工程时出现如下提示:[15:04:03- XXX]'default'isnot a best matchfor any device/locale combination. [ 15:04:03- XXX]Displaying itwith'Locale Language ___Region __, 解决原创 2012-04-20 18:11:10 · 6185 阅读 · 2 评论 -
获取Android的Java源代码并在Eclipse中关联查看的方法
下载我已经打包好的Android 2.3(gingerbread)的java源代码压缩包:下载地址:http://lizongbo.googlecode.com/files/android_gingerbread_javasrc.zip来源:http://code.google.com/p/lizongbo/downloads/list下载后复制到E:\Java\android\jav转载 2012-04-26 16:24:19 · 701 阅读 · 0 评论 -
从列表中获取文件名称的方法
可用java的方法是用substring()方法。public String getFileName(String path){ int start=path.lastIndexOf("/"); int end=path.lastIndexOf("."); if(start原创 2012-03-22 17:23:10 · 504 阅读 · 0 评论 -
Intents and Intent Filters
Intents and Intent Filters三种应用程序基本组件——activity, service和broadcast receiver——是使用称为intent的消息来激活的。Intent消息传递是一种组件间运行时绑定的机制. intent是Intent对象, 它包含了需要做的操作的描述, 或者, 对于广播来说, 包含了正在通知的消息内容. 对于向这三种组件发转载 2012-03-19 16:34:55 · 480 阅读 · 0 评论 -
Android Dev Guide—— Application Fundamentals(中文版)
正文 应用程序基础(Application Fundamentals)Android应用程序使用Java做为开发语言。aapt工具把编译后的Java代码连同其它应用程序需要的数据和资源文件一起打包到一个Android包文件中,这个文件使用.apk做为扩展名,它是分发应用程序并安装到移动设备的媒介,用户只需下载并安装此文件到他们的设备。单一.apk文件中的所有代码被认为是一个应用程序。转载 2012-03-16 14:07:28 · 4197 阅读 · 0 评论 -
BroadCast讲解
BroadCastReceiver 源码位于: framework/base/core/java/android.content.BroadcastReceiver.java 广播接收者( BroadcastReceiver )用于接收广播 Intent ,广播 Intent 的发送是通过调用 Context.sendBroadcast() 、 Context.sendOrdered转载 2012-03-30 17:27:05 · 1165 阅读 · 0 评论 -
Android的Notification的用法
Notification的使用,包括基本用法,自定义的View,以及更多的控制方法。另一种Android中常用到的提示方法Toast的用法请参见《教程:在Android中使用Toast进行提示》我们先看下Notification的几个主要组成部分:Icon:不解释Ticker Text:Notification刚出来的时候,在状态栏上滚动的字幕,如果很长,会自动分割滚动转载 2012-03-23 18:22:39 · 629 阅读 · 0 评论