Easy tool to draw a nine patch image
I have created a new tool to to draw a nine patch image for android online. Its free and easy to use! Please try it out: http://draw9patch.com/
View ArticleSimple PHP script to determine if a image is a valid 9 patch png image
This is a PHP script to determine if an image is an valid 9 patch PNG image that can be used in an android application <?php $src = dirname(__FILE__).'/btn.9.png'; //change me...
View ArticleDesign a splash screen for android
Here is a good summary of what to consider when designing a splash screen for android: http://stackoverflow.com/questions/5523888/android-how-to-design-image-for-splash-screen
View ArticleLogout from all android activities
If you have some activities in an android application and what to close all activities without having to worry about the back button, you can register a broadcast receiver that get triggered when you...
View ArticleConvert time greater than 24H in MsSQL
If you have a time like 24:00 or even 28:12 in SQL and want to convert it to a normal time this is the way to do it: SELECT [time] = RIGHT(’0′+ RTRIM(CAST(substring(’28:12′,1,2)%24 as...
View ArticleChat bubbles in Android
Here is a simple project that shows how to make chat bubbles in android. http://warting.github.com/AndroidChatBubbles/ It’s a good project to inspect if you want to learn some basic stuff from the...
View ArticleMy set of android devices used for testing
Earlier this morning, I asked which android devices are goot to use as test units for different ansdroid versions when developing. I got no clear answer and I found no updated guide online. I have...
View ArticleSplunk is spamming by pretending to send out personalized emails
Splunk is spamming by pretending to send out personalized emails without unsubscribe link which apparently is automated and does not understand that the same message is sent to the same person multiple...
View ArticleKeep aspect ratio in android ImageView
I just wanted a ImageView in an android layout to fill the parents width and scale X while keeping aspect ratio, my solution was to create a custom image view and since i knew the image always have a...
View ArticleSimple javascript to validate java packageName
Here is a simple javascript that validates a java package name function isValidJavaPackageName(packageName, warn) { if(packageName.length < 3) { if(warn) alert('to short!'); return false; }...
View Article