You are here


Regular Expression, 3 digi number, only 5 times' numbers are allowed

Blog Terms: 

Number from 0-999, only 5 times' numbers are allowed: 0, 5, 10, 15, 20... 995
The following is the test in javascript:

var reg = new RegExp('^(\\d{0,2}[0,5])$');

How to upload Multiple APK in Android Market

Blog Terms: 

Android Market supports multi APK from July, as Google said, this is good solution help developers manage their products more effectively in Android Market, and help users to avoid compatible problem. I havnt noticed this news until many users complained me that they can not download my app from Google Market, they got "Compatibility Problem", but the app ran well in their devices before July.

Android USB driver for HTC Desire S

Blog Terms: 

In android developing i found Eclipse ADT can not detect my new HTC Desire S, even i have updated the newest USB driver from Google. Someone said it need HTC Sync. But i found it is not necessary, you can find the HTC USB driver here:

HTC Android USB Driver for Microsoft PC

 install and everything works fine!

How to Add Logging to Ant Builds

Blog Terms: 

The Apache Ant build tool is a great aid in automating builds and deployments.
When the build fails, however, diagnosing the problem can be painful -
especially if it only occurs intermittently. Logging details of the Ant
build can therefore be useful.

Test Push service with MDS and BlackBerry Widgets

Blog Terms: 

 You will find the both push demo and the blackberry widgets demo soure here:

I have done everything following the tuturial step by step, but when i tried to send push data using the push demo, i always get the "400 Response error' from local MDS server.
Logs:  400 PushServlet: FAILED -#06 The specified delivery method is not possible

(T)Android - Driving Direction (Route Path)

The DrivingDirection package ( is
removed since Android SDK 1.1. However, in this article, you will leanr
how to adopt driving direction function in
MapView object without the DrivingDirection package.

Read more:


Some Andorid WMS clients

Blog Terms: 

1. gvSIG Mini is a free viewer of many On/Offline Maps:
- OpenStreetMap
- Yahoo
- Microsoft Bing
- Google Maps
- Ordnance Survey (UK)
- Yandex (RU)
- etc

It also has interesting features, such as:
- WMS & WMS-C Client
- Route calculation
- Address/POI search
- Share location (twitter, SMS, e-mail, facebook, ...)
- GPS, cell & WiFi location
- Navigation mode
- Compass support
- Street View integration
- Layer configuration downloader
- QuickZoom: SlideBar or DoubleTap
- Android 2.1 support (now from 1.5 up to 2.1)

Determining whether or not a polygon (2D) has its vertices ordered clockwise or counterclockwise(T)

Blog Terms: 

Org link:


Determining whether or not a polygon (2D) has its
vertices ordered clockwise or counterclockwise
Written by Paul Bourke
March 1998

Subscribe to RSS - Programming