Desktop softwares and information
Posts tagged android
Share DaysAndDate and get Ads removal code
Jul 8th
Long story short, everybody who recommended DaysAndDate or wrote reviews/shared experiences for it in three places in internet (blog, twitter, forum, etc.) will get an Ads removal code for DaysAndDate as a gift after they emailed the links of above places to william.xue@gmail.com.
If you like the application but hate the Ads, this is a chance to spread the application to world and get ride of the Ads from your device. Two birds with one stone. DO NOT WASTE IT!
It is running from now to 8/8/2010.
Quick introduction:
DaysAndDate tells you how many days between two dates or the date before/after several days. For example, how many days left to your next birthday from now? Or what is the date after your baby has been born 100 days?
Link to the DaysAndDate in Android Market:
market://search?q=pname:com.deskangel.DaysAndDate
Adjust brightness for Android devices
Jul 19th
The settings for brightness of buttons and screen are very rough in Android devices, like in HTC Hero. But if your rom is ROOTED, you can download and install AdjBrightness, which can adjust the brightness of the screen from the value 2 to 255.
There are six predefined values in the main page, simply click one of them to set the brightness. If the predefined values cannot fit your request, just type the brightness value you want in the edit box and set it.
Besides those, in the option page, you can find several settings:
- Auto restore: Tick this if you want AdjBrightness to restore the brightness after the screen turned on.
- Notification: Tick this, AdjBrightness will display a message on screen every after it set the brightness.
- Lock brightness: This is really cool. Tick this if you do not want other applications to change the brightness. After tick this, you needn’t tick the Auto restore.
- Lock off button light: This is for background light of keyboard. If you don’t like the light as well, tick this to turn off and lock it.
You can download this application from Google Market. Just search adjbrightness or access following link in your phone market://search?q=pname:com.deskangel.adjbrightness.
Always, if you encounter any problem, drop me an email.
给Android程序添加不同的广告平台
Jun 4th
本文假设已有一个广告,比如admob,然后添加另一广告,比如有米,用来在根据不同的语言自动调用不同的广告平台。
1. 在attrs.xml中追加一个declare-stylea,原有的属性不需要再定义。结果如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | < ?xml version="1.0" encoding="UTF-8"?> <resources> <declare -styleable name="com.admob.android.ads.AdView"> <attr name="testing" format="boolean" /> <attr name="backgroundColor" format="color" /> <attr name="textColor" format="color" /> <attr name="keywords" format="string" /> <attr name="refreshInterval" format="integer" /> <attr name="isGoneWithoutAd" format="boolean" /> </declare> <declare -styleable name="net.youmi.android.AdView"> <attr name="changeAdAnimation" format="boolean"/> <attr name="backgroundTransparent" format="integer"/> </declare> </resources> |
2. 为不同的区域创建不同的layout
首先在默认的layout目录中创建ads.xml文件,用于存放广告代码。在工程目录上右击,New->Android XML File,输入文件名ads.xml,结束。
然后为特定的语言创建ads.xml。在工程目录上右击,New->Android XML File,输入文件名ads.xml选择资源类型为Layout,添加Region为cn,添加Language为zh,结束。
3. 把针对于非中文的广告配置移动到layout/ads.xml文件中,如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | < ?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:admobsdk="http://schemas.android.com/apk/res/com.deskangel.dacalc" android:layout_width="wrap_content" android:layout_height="wrap_content"> <com .admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" admobsdk:backgroundColor="#000000" admobsdk:textColor="#FFFFFF" admobsdk:keywords="Android application" admobsdk:refreshInterval="60" admobsdk:testing="false" /> </merge> |
4. 把针对中文的广告配置移动到layout-zh-rCN/ads.xml文件中:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | < ?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:umadsdk="http://schemas.android.com/apk/res/com.deskangel.dacalc" android:layout_width="wrap_content" android:layout_height="wrap_content"> <net .youmi.android.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" umadsdk:refreshInterval="30" umadsdk:changeAdAnimation="false" umadsdk:backgroundTransparent="255" umadsdk:testing="false" umadsdk:isGoneWithoutAd="true" /> </merge> |
5. 在需要显示广告的地方添加:
1 2 3 4 5 | <include android:layout_height="wrap_content" layout="@layout/ads" android:id="@+id/incAds" android:layout_width="fill_parent" > </include> |
大功告成!非常简单的配置。
DaysAndDate 6.1.0.0 released
May 10th
The version 6.1.0.0 of DaysAndDate is released to Market (search ‘DeskAngel’ or ‘DaysAndDate’ to get it) just now. Now, it can
- Calculate days between two dates
- Calculate the date before/after several days
- Add record into favorite
- Auto update the favorite records
- Set alarm to records
- Add comment to dates
The Ads coming with DaysAndDate can be removed for the donators. If you want to support my work, please consider to donate to william.xue@gmail.com in Paypal.
DaCalc Support normal mode
May 6th
Normal mode in DaCalc means DaCalc can work as a common calculator. User can input expression by the calculator panel instead of composing a formula at first, then load it. It saves much time in the scenario when users only want to do some simple calculations.
The another mode in DaCalc is Formula mode, which comes with the first release.
Normal mode is the default mode, but switching between them is easy. Click ‘Load’ in menu to load a formula will switch DaCalc to Formula mode. Click ‘Reset’ in menu will switch back to Normal mode again.
You will notice that the number panel is a litter different for Normal mode and Formula mode.
Try it yourself!


Recent Comments