Skip to main content


Showing posts from August, 2010

Android Basics : Quick Start

First of all, basic question: How to learn Android?

“Google” it. (Sorry for the foul language =p)API & book references. experienced people.Think yourself.Ask in forum or send email.

Ok. Lets continue...

There are 4 basic components in Android application.

1. Activity
Displays a user interface component and respond to system/user initiated.An Application may contain one or more Activities. One Activity is then considered as the main entry point by the system.Each Activity can be invoked from other Applications/Activities.Example:public class Activity extends ApplicationContext {    protected void onCreate(Bundle savedState);    protected void onStart();    protected void onRestart();    protected void onResume();    protected void onPause();    protected void onStop();    protected void onDestroy(); } public class MyActivity extends Activity {}

2. View
The basic building block for …

Android: R.drawable.androidmarker not found

Found this while following through the Android Hello-MapView guide at

Theres this particular line at when you copy over into your code, it will give you error for the "R.drawable.androidmarker cannot be resolved".
mapOverlays = mapView.getOverlays(); drawable =this.getResources().getDrawable(R.drawable.androidmarker); itemizedoverlay =newHelloItemizedOverlay(drawable);
You can solve this easily by replacing "androidmarker" with "icon", which shown in the code below.
mapOverlays = mapView.getOverlays(); drawable = this.getResources().getDrawable(R.drawable.icon); itemizedoverlay = new HelloItemizedOverlay(drawable);
Note that I am using the default "Icon" for application here. As a result, you will get the icon shown in the image below - the application icon. :)

Actually, you can call the other default icons listed in Android API by calling android.R.drawable class. For example,
mapOverlays = mapView.getOverlays(); drawable =…

Joomla - Creating custom Login Page

There is an easy way to create a customized Login Page in Joomla.

1. Adding A Custom Module Position in Joomla 1.5

First, in Jooma administrator page, navigate to Extensions>Plugin Manager> and make sure "Content - Load Module" is enabled/active. If there is a red "x" beside the plugin, click it to change the status to active.

The plugin you just activated will allow you to use a syntax such as "{loadposition left}" in your content item(s) in order to render modules.

So now, lets say we want to create a custom module position, lets say "c_login_page". To create a module position named "splash_page", you will need to open the file  /templates/your_current_template/templateDetails.xml. You should see an array of predefined positions such as:
<position>left</position> <position>right</position> <position>top</position> /* Add this */ <position>c_login_page</position>
Save the file and u…

Android: Using GPS and Google Map

This is a step-by-step guide for beginners to follow and learn about Androids and Google Maps.

Creating the Project

Using Eclipse, create a new Android project.

To use GPS functionality in your Android application, you'll need to add the ACCESS_FINE_LOCATION permission to the AndroidManifest.xml file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""       package="com.coalition"       android:versionCode="1"       android:versionName="1.0">     <application android:icon="@drawable/icon" android:label="@string/app_name">         <activity android:name=".CoalitionActivity"                   android:label="@string/app_name">             <intent-filter>                 <action android:name="android.intent.action.MAIN" />                 <category android:name="…

Joomla Virtuemart related customization

After setting up Virtuemart in Jooma, naturally the the search module in Joomla to return the results of the products available. But, the default search in Joomla will return all the pages in Joomla, instead of the list of products.

To solve this, we can install search extensions (modules). There are a lot of free search modules out there, but I'm only going to introduce this particular AJAX search module called "VM Live Product Search". This module will return search results in a floating box for user to select from.

[Module] VM Live Product Search

To edit the CSS, go to
/public_html/shop/templates/default/css, and /public_html/shop/modules/mod_vm_live_product/css.

To Disable Auto Redirect
(I'm still working on it... hehe )

"Recently Viewed Products" section
To remove "Recently Viewed Products",
Go to Admin -> Co…

Virtuemart - Disable SKU

Been working on Joomla and VirtueMart lately :) On of the "customization" that people (client) always want is to disable or remove the SKU number from cart, or basket, or order details page.

Did a Google search a found out that there are quite a number of people out there offering solutions to remove SKU, but at a high price. Actually, you can hide the print of the SKU in the basket and order details page.

To disable SKU in "basket", find the file at
components/com_virtuemart/themes/default/templates/basket/basket_b2c.html.phpNote: If you are using other customized theme, go to ../theme/<your-theme>/ instead.

Inside that file around like 23 you will find the header of the column print
You can comment that or delete Usually, to be safe, I'll just comment it ( /* .......*/ ).

Then for the SKU code, around line 31, do the same thing, remove or comment it.

To disable SKU in "account order details" page, find the file …