Formula:<blockquote class="tr_bq">1*height x 2*width </blockquote>Real sises of some android:<ul><li>Samsung  galaxy i5500: 320x240</li><ul><li>Using formula, the background image size will be: 320x480</li></ul></ul><div>Source</div>

Create the rule: <pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> $ gksudo gedit /etc/udev/rules.d/51-android.rules </pre>Copy and paste the following udev rules in the text editor that opened up which contains...

We are going to create a Non Rectangular Button, so create the custom class and xml:Class:<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> package rectangular.button; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent;...

It’s so easy:<ol><li> Create the gestures library (the gestures that you will use…) with the gestures example from android official SDK or download the GestureBuilder.zip from here Files. It will create a file under sd card called gestures.</li><li> Create your project </li><li> Create a folder named raw under the res folder of your proyect.</li></ol><div></div><div>You can...

A global .gitignore file can also be used by adding one to your global git config. For example, you might create the file ~/.gitignore_global and add some rules to it. To add this to your config, run git config –global core.excludesfile ~/.gitignore_globalSome good rules to add to this file:<pre style="background-image:...