How to create an image button in Android

How to create an image button in Android   1.  Introduction This tutorial will examine a method to generate an image button.   2.  When to apply Based on user’s knowledge of design, vary kinds of images can be drawn. However, this tutorial will only show the way to create a simple animated button.   3.  Advantages and disadvantages The most important advantage of this method is that users can define their own image button based on their requirements. However, in order to obtain proper animated button, user must find or have very relative images. These kinds of image are quite difficult to find online, except if user can draw their own object in several states.   4.  Requirements A group of images is which display a single object in...

How to use Google Geocoding API

Lecturer: George Nguyen Author: Vu Thien Nguyen Hung (s3311347) Dang Hoang Long (s3324816) 1. Introduction GPS is a popular feature on smartphones. People use this mainly for mapping and directions. When working with location-based service, developer usually has to convert between addresses and geographic coordinates (latitude – longitude), which is called geocoding. Android has a library to support this functionality but it has a known issue when working with AVD 2.2 (it still works on actual device). A solution to this problem is using Google Geocoding API. 2. When you should apply this? You need to convert between addresses and geographic coordinates. You work with Android Virtual Device 2.2. 3. Advantages & disadvantages 3.1. Advantages The request...

How-To : Create your own simple Sprite for J2ME Animation

Introduction Copyright is always a hug problem that not only RMIT students but also everyone using Internet are struggling with whenever we want to use or share any materials. This How-To Page will demonstrate a simple way to create your own sprite for J2ME animation usage. Advantages & Disadvantages Advantage : No need to worry about Free Loyalty issue. Flexibility and creativity when creating your own animation. Disadvantage : In the scope of this tutorial, animation will be very simple. Requirements Adobe Photoshop or Adobe Illustrator (any version would work) In this tutorial, Adobe Photoshop CS5 will be using to demonstrate. Steps & Screen shots We need to pre-calculate the size needed for making new file. For example : We mean to create 5...

How to – Exploring the game loop

Introduction The heart and soul of every game is its game loop, which is a loop that is used to run almost every aspect of the game. In this how-to, we will explore the various ways you can code your game loop to maximize its efficiency in a mobile device. There are a few steps that are common in every game loop, which is handling inputs and rendering. For this assignment, this would be enough for many games out there. However, some will also include AI calculations, physics calculations, etc. For the purpose of this how-to, we will have a simple game loop consisting of 1 method for updating the game states and handling inputs, and another for rendering. A simple game loop can be just 1 thread, looping over the 2 methods as fast as possible. A more complicated,...

How to drop and create an image

Introduction In this lecture, I would like to tell you how to drop and create an image. When should you apply this? In this case, you just store  only one image and reuse it many time. Therefore the size of your programs will reduce instantly. Advantages Reducing your program size. Disadvantages You have to program hardly. Requirements Working well with array. Steps & Screen shots Step 1: Analyse an image. You have to know where a new image, which you want, was store in a big image. For example, You have a big image like this : 1     2     3     4      5     6     7     8     9     10 11   12   13   14    15   16  17  18   19    20 21   22   23  24   25   26   27  28  29   30 31   32   33  34   35   36   37  38...

How To Make An Application With Touch Screen Support

I ntroduction In this article, I would like to introduce to you how to make an application with J2ME able to use touch screen  on supported devices. After this article, I hope you can have another idea about design an application or game with touch events instead of key events.   When should you apply this? You should apply these methods only when you know clearly about a specific type of device and aim to develop the application for that type. Because each type of device have different API and may be support or may be not also. Therefore, you should read the device API to ensure that it supports or not.   Advantages & disadvantages Advantages: Another way to interact with the application instead of key events and it’s quite convenient and...

How to resize image to fullscreen.

1. Introduction: At times, you will need to resize the image in order to fit it to the screen size and I’m going to show you how to resize the image to fit to full screen. 2. When should you apply this?: When there are some pictures that you really like but you don’t know how to use photoshop to resize it. It is also useful in case you want to test your game in multiple screen sizes. 3. Advantages & disadvantages : Adv: - You can make the image bigger by doing this. For example, the real size is 100×200 and the screen size is 200×300, you can save some KB by doing this, especially for games with many backgrounds, this is a must. - You can resize from whatever the size is to fit your screen, you don’t need to do it from photoshop because...