RSS图片
Android
Ok… I started to do some Android devel… And I started to like it, even if it is based on Java, works in Eclipse and has a ton of classes. Now, the first project is a widget (weather widget). For this, there’s this “AppWidgetProvider” class that implements the design and functions for data retrieval (using threads), and also a configuration Activity. When the configuration activity finishes (......
作者:发表于:2012-4-18 点击:2 评论:0
      本文介绍的是Android手机系统的文件夹结构,帮助大家更直观地了解系统,作为查询工具加入收藏夹还是很不错的!!\\system\\app这个里面主要存放的是常规下载的应用程序,可以看到都是以APK格式结尾的文件。在这个文件夹下的程序为系统默认的组件,自己安装的软件将不会出现在这里,而是\\data\\文件夹中。 下面是详细的介绍:\\system\\app\\AlarmClock.apk 闹钟 \\system\\app\\AlarmClock.odex\......
作者:发表于:2012-4-17 点击:1 评论:0
插件开发调试的时候,会自动打开一个xls文件。如果我们想指定调试某个excel文件的话 可以使用以下语句 #if DEBUG this.Application.Workbooks.Open(@"fileFullName"); #endif...
作者:发表于:2012-4-13 点击:0 评论:0
调试的时候logcat中无法输出,显示以下信息Unable to open log device '/dev/log/main' : No such file or directory it ...我的是自定义rom,logcat默认被关闭了需要手动开启 1)进入/system/etc/init.d/目录,找到XXspeedyMain,或者XXlotcat(注XX代表数字)2) 查找行内容 "rm /dev/log/main"(不包含引号)3)使用#将其注释,即"# rm /dev/log/main" (不包含引号)4)保存文件,重启机器,如果想再次屏蔽的时候,删除步骤3中的井号即可....
作者:发表于:2012-4-13 点击:24 评论:0
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:background="@android:color/white" >     <ImageButton        android:id="@+id/btnSch" ......
作者:发表于:2012-4-12 点击:10 评论:0
最近把机器刷到4.0了跑了一下自己的app,发现下载xml文件部分抛出异常:java.io.FileNotFoundException: http://www.jpfocus.com/xxxx.xml可是在2.3的系统却可以正常下载我的代码: URL url = new URL(urlstr);HttpURLConnection httpCon = (HttpURLConnection) url.openConnection();httpCon.setRequestMethod("GET");httpCon.setDoOutput(true);httpCon.connect();原因:4.0中设置httpCon.setDoOutput(true),将导致请求以post方式提......
作者:发表于:2012-3-24 点击:138 评论:0
Sharing content in Android using ACTION_SEND Intent Very often, you might want to enable the ability for users to share some content (either text, link or an image) from your Android app. Users can share the content using email, twitter, Facebook, sms or through numerous other ways. The users might already have installed some custom apps for each one of the above service. So instead of coding a......
作者:发表于:2012-3-11 点击:16 评论:0
这个问题恶心我好几天,我2个手机,其中的一个可以显示admob广告条,另一个死活出不来,后来发现android也有host文件控制跳转如果发现无法显示广告,logcat显示以下错误的话,查看/system/etc/host文件中是否将googleads.g.doubleclick.net转向了127.0.0.1将其注释后即可显示广告logcat info may be shown as follows:03-07 21:27:43.713: W/Ads(5189): IOException connecting to ad url.03-07 21:27:43.713: W/Ads(5189): java.net.Con......
作者:发表于:2012-3-8 点击:93 评论:0
保持android 屏幕常亮的方法 前言   学习android一段时间了,为了进一步了解android的应用是如何设计开发的,决定详细研究几个开源的android应用。从一些开源应用中吸收点东西,一边进行量的积累,一边探索android的学习研究方向。这里我首先选择了jwood的 Standup Timer 项目。本文将把研究的内容笔记整理,建立一个索引列表。 PowerManager.WakeLock   PowerManager.WakerLock是我分析Standup Timer源代码时发......
作者:发表于:2012-2-23 点击:13 评论:0
本文围绕 .9.png 格式图片讨论以下两个话题:  1. 该格式图片的特点  2. 制作方式    一 .9.png 格式的文件的特点    与传统的png 格式图片相比, 9.png 格式图片在图片四周有一圈一个像素点组成的边沿,该边沿用于对图片的可扩展区和内容显示区进行定义。     这种格式的图片在android 环境下具有自适应调节大小的能力。    (1)允许开发人员定义可扩展......
作者:发表于:2012-2-18 点击:22 评论:0