Wednesday, March 31, 2010

Android Utility class - Activity navigation.

ActivityHelper
In this article helps to create and use the utility class for activity navigation.


1. Create a normal class
    public class ActivityHelper { }


2. Define the utility method using the static factory method
    1. public static Intent createActivityIntent(Activity activity,Class preconditionActivityClazz) { } -used to create a intent       
    2. public static void startOriginalActivityAndFinish(Activity preconditionActivity) { } - Return to the old activity
    3. public static void startNewActivityAndFinish(Activity activity,Intent intent) { } - Finish the current Activty and start a new activity.    

3. Implementation
    Intent intent = ActivityHelper.createActivityIntent(MainActivity.this,TargetActivity.class);   
    Using this intent we can navigate the screen
    startNewActivityAndFinish(intent); -> now the Activity moves to the TargetActivity and close the current activty.
    startOriginalActivityAndFinish(TargetActivity.this); - Return back to orginal activity.
   
   

Sample Code
public class ActivityHelper {
    static private final String EXTRA_WRAPPED_INTENT = "ActivityHelper_wrappedIntent";
    /**
     * Create a precondition activity intent.
     * @param activity the original activity
     * @param preconditionActivityClazz the precondition activity's class
     * @return an intent which will launch the precondition activity.
     */
    public static Intent createActivityIntent(Activity activity,
            Class preconditionActivityClazz) {
        Intent newIntent = new Intent();
        newIntent.setClass(activity, preconditionActivityClazz);
        newIntent.putExtra(EXTRA_WRAPPED_INTENT, activity.getIntent());
        return newIntent;
    }

    /**
     * Start the original activity, and finish the precondition activity.     
     * @param preconditionActivity
     */
    public static void startOriginalActivityAndFinish(
            Activity preconditionActivity) {
        preconditionActivity.startActivity((Intent) preconditionActivity.getIntent().getParcelableExtra(EXTRA_WRAPPED_INTENT));
        preconditionActivity.finish();

    }

    /**
     * Start the precondition activity using a given intent, which should have
     * been created by calling createPreconditionIntent.
     * @param activity
     * @param intent
     */
    public static void startNewActivityAndFinish(Activity activity,
            Intent intent) {
        activity.startActivity(intent);
        activity.finish();
    }

}



HTC HD2 Games: Deer Hunter 3D v1.9



Welcome to the most realistic hunting simulation game on mobile. Set your sights on deer, moose, bears and more with true-to-life senses and behaviors. Hunt in scenic 3D environments around the world featuring changing seasons and weather conditions. Unlock new weapons, skills, and hunts by bagging the biggest kills.



Download This HD2 Game Here:

Tuesday, March 30, 2010

HTC HD2 Apps: XDA Shutdown v1.01

 Use this App to :

- soft reset your HD2 (stop removing your battery to reset your HD2)

- shut down your HD2 (less wear and tear on your hardware button's)

- send your HD2 to sleep mode (can be changed to "screen off" in the menu button)

- use "screen off" when charging with activesync to charge faster.



More Information about this app can be found here:

http://forum.xda-developers.com/showthread.php?t=544016

* This skin was made by Phonatic 


Download This HD2 App Here:

HTC HD2 Apps: Google Translator v1.6



Google Translator is free online translator using translate.google.com

- Support for translation in both directions for more than 40 languages

- Consumes almost no traffic, because works directly through the google api.



 just select your input language on the right box. and your output language on the right box.

write or paste the text you want to translate.

hit Translate, and your done!



Requirements:Microsoft .NET CF 3.5



Download This HD2 App Here:

HTC HD2 Apps: TorchButton v2.3



Use the camera DUAL LED as a flashlight.

Dropped your keys? Finding something behind the bench?

Just start TorchButton to enable the LED on the back of your device.

Start TorchButton again to turn it off.





Download This HD2 App Here:

Monday, March 29, 2010

HTC HD2 Apps: OPEN web Radio v1.30



Simple application which allows you to listen to Internet radio.

 * Ability to add your favorite station.



 * Radio stations are played using Windows Media Player

 * program takes a minimum amount of data.



Download This HD2 App Here:





HTC HD2 Apps: SlideIT Keyboard v4.1.0.3






















SlideIT is the best way to enter text into Touchscreen devices.

With SlideIT you can multiply your writing speed after a few days of use.



From now on, just Slide along the letters with your

finger or stylus, and words will “magically” appear.



SlideIT supports the following languages:







 Czech  Danish  Dutch
 Finnish  French  German
 Hebrew  Hungarian  Italian
 Norwegian  Portuguese  Russian
 Spanish  Swedish



All languages are in this download file, install yours after you install the main app (and after soft reset).



Download This HD2 App Here:






Sharing Matrix






Rapid Share

Sunday, March 28, 2010

HTC HD2 Games: Guitar Hero 5 v1.0







Crank up the amps, step into the spotlight and prepare to command the stage!

Rock out anytime, anywhere with this rhythm-based, three button game that stays true to the original.



Download This HD2 Game Here:





Sharing Matrix



Rapid Share

HTC HD2 Games: Monopoly Here And Now v15.0.38



MONOPOLY just like you remember it but with some modern updates, now for your HD2.





Buy and sell properties like Waikiki Beach, Fenway Park, and more. Dynamic animated tokens include a hybrid car, a mobile phone, and a labradoodle. Use simple controls to roll the dice, move, and keep score.

Demonstrate your trading savvy as you buy, sell, and put your competitors out of business. Pass and play with up to four players and compete to win all the cash!





Download This HD2 Game Here:



Saturday, March 27, 2010

HTC HD2 Games: The Sims 3 World Adventures v35.1.32



An all-new Sims experience from the #1 best-selling PC franchise!

The Sims3 World Adventures from EA Mobile takes your Sims on thrilling adventures to world famous destinations.

Explore destinations in Egypt, China, France, and America. Enjoy an international twist on Sims-style gameplay with 55 new goals and 4 new mini-games — plus personas, careers, and quests. Also select new exotic furniture and ingredients.

The Sims3 World Adventures. New Lands. New Adventures



• Travel to 4 thrilling new destination (China, Egypt, France & America)

• Achieve up to 55 new Goals

• Enjoy 6+ hours of open-ended gameplay

• Play 4 New Mini-games: Traveling (Avoid airsickness), Excavation, Trading, Language skills

• Get new Personas, Careers, and Quests, and acquire new exotic Furniture, Ingredients and Recipes

 

Download This HD2 Game Here:



HTC HD2 Apps: Shazam Encore v2.1







Lovin’ that tune? Shazam can identify music anywhere: from the TV, radio, or in a bar. With this premium version of Shazam, you will get Unlimited* Tags plus full features of the application such as: Tag Chart, Similar Tracks, Artist Bios, Reviews and Discographies for a one-off fee.

Shazam is quick and simple to use:

1) Hold your phone towards the music and select Tag Now

2) Within seconds, you’ll know the artist, track and other interesting info

3) From the Tag Details you can buy related content and share the discovery with your friends

4) Find out what’s hot and popular and search over 8 million songs

*See Terms of Use for Usage Policy. **Standard data charges apply.





Download This HD2 App Here:










Talk about it on our Facebook page.
Sharing Matrix

Rapid Share

Friday, March 26, 2010

HTC HD2 Games: Panoramic Ultimate Sudoku v1.0







Panoramic Ultimate Sudoku features three challenging logic-based puzzle games, Sudoku, Killer Sudoku and Kakuro.



In Sudoku the goal of the game is to fill the cells of a nine by nine grid with the digits 1 through 9. Kakuro combines the elements of Sudoku with the strategy of a crossword puzzle. Except the crossword clues are the total sum of all of the values in each vertical or horizontal section. The goal of the game is to fill each cell with a number from 1 through 9. Killer Sudoku combines elements of Sudoku with Kakuro - usually, no initial numbers are given, but the 9×9 grid is divided into regions, each with a number that the sum of all numbers in the region must add up to and with no repeated numerals. These must be filled in while obeying the standard rules of Sudoku.



· Three (3) Challenging games included: Sudoku, Killer Sudoku & Kakuro

· Ten (10) Skins to choose from with multiple background colors

· Choose or take a picture with your device camera and set that as your game background image

· Over 1 billion possible puzzles

· Game state always saved, even when you turn off your phone

· Sudoku and Killer Sudoku both offer five (5) difficulty settings

· Kakuro offers three (3) difficulty settings and three (3) grid size



Download This HD2 Game Here:


FileSonic







Rapid Share

Thursday, March 25, 2010

HTC HD2 Games: PDA Poker Art v1.0





PDA Poker Art is a high-performance realization of the popular poker version Texas Hold’em.


Feature
  • * The modes “Fixed-Limit” and “No-Limit” are supported

  • * The kind of “blind-raise” can be chosen (per time-unit / per hand)

  • * Statistical data available

  • * Sound-support

  • * Game speed can be set

  • * Supported languages: English, German, French

  • * Graphic is optimized for small screens

  • * Playing ability of the opponent can be adjusted individually

  • * Outstanding artificial intelligence





    • * Different types of players are supported (from loose passive to tight aggressive)

    • * Attitude of the human player is taken into account

    • * Pursuits different strategies like bluff, semi-bluff, blind-stealing, or slow-play

    • * Dynamic acting

    • * Poker-typical situations like position, number of players, potsize, table stake are taken into consideration


Download This HD2 Game Here:



HTC HD2 Apps: SlideIT Keyboard v3.1.2.1

















SlideIT is the best way to enter text into Touchscreen devices.

With SlideIT you can multiply your writing speed after a few days of use.



From now on, just Slide along the letters with your

finger or stylus, and words will “magically” appear.



SlideIT supports the following languages:







 Czech  Danish  Dutch
 Finnish  French  German
 Hebrew  Hungarian  Italian
 Norwegian  Portuguese  Russian
 Spanish  Swedish



All languages are in this download file, install yours after you install the main app (and after soft reset).



Download This HD2 App Here:

You probably want the latest version here: slideIT 4.1.0.3

Wednesday, March 24, 2010

Android Hudson Setup

Not yet completed....

Android CodeReview Tool Setup - PMD

In this article help us to setup the Code Review tool for android.
Installing PMD
First, we need to install the PMD Eclipse plugin by following the instructions on the plugin page. Goto Help> Install New Software > Click Add

Add the link : http://pmd.sf.net/eclipse


Install the PMD for Eclipse 3


Configure PMD your project
1.  In the project properties, select the PMD page. Enable PMD needs to be checked to run PMD automatically. Otherwise, you will need to manually start PMD each time you want to check your code using the PMD submenu  and older violations will not be removed automatically once you fix your code,  you will need to use the clear violations in the PMD submenu.



2. The “Handle high priority violations as errors” property needs to be unchecked. This is a new property in the 3.2.6 version of the PMD eclipse plugin. When that option is checked, the Android plugin will refuse to deploy your application if the project contains high level violations. So unless you have a development rule stating that there should be no high level violations in your project at any time, this option should be disabled.


3. With that setup, PMD will be enabled but it will be using the default ruleset shared by all projects in the workspace and that is not really adequate for Android development. To define a specific set of rules for your project, check the last box on the PMD page to create a file named “.ruleset” at the top level of your project. The configuration is now complete, press “OK” and then select “Yes” on the next popup.

4. Ensure the .ruleset and .pmd files has been created successfully.

5. Check the Code using the PMD
Select the Project and rightclick and select PMD > Check Code With PMD

6. check the Result in the Violations Overview.


JUnit Setup For Android

Here we are discuss about the JUnit implementation in android application
1. Overview of JUnit in Android
2. Create a Junit Enables Android Application
3. Create a Sample Testcase.

Oveview
The popular JUnit test framework is integrated into Android.
JUnit, if used properly, brings two major benefits to the test implementation.
    * JUnit enforces the hierarchical organization of the test cases
    * The pattern JUnit is based on guarantees the independence of the test cases and minimizes their interference.


Android test cases classes should inherit from android.test.AndroidTestCase  instead of junit.framework.TestCase.
The main difference between the two is that AndroidTestCase knows about the Context object and provides method to obtain the current Context.
As many Android API methods need the Context object,  this makes coding of Android test cases much easier.            
Make a seperate folder for Junit test Class. Because it should be remove while move to production.

Steps to Implement the JUnit.
1. Create a project
2. Add uses-library and instrumentation in  AndroidManifeast.xml
3. Create a StartupTestSuite
4. Create a Testcase class
5. Run the Apps

Create a Project
Create an android project using your IDE and create a basic component for the application. In this blog i have created a MainActivity which get the text based input from the user.
Requirement  : User enter the His/Her name and password and submit the form.
I have created the following Layout.


SCM - SVN Setup for android



My Setup for Google Android Development Environment

Here we discussed my android environment. I have setup my android environment for various proces.
I belive the following items are esstential for project development and make easy our development. 

  1. Source Code Management Setup 
  2. Project Management Tool - Not Yet Done [As of now i am tracking milestone in a excel sheet]
  3. Android Setup 
  4. Integrated development environment
  5. Code Review With PMD
  6. Testing - JUnit configuration.
  7. Build Tool. 


Source Code Management Setup 

A managment process to record the data. 

What benefits do Source Code Management tools provide?

SCM tools help development teams in many ways:
    * Collaboration: SCM tools prevent one user from accidentally overwriting the changes of another, allowing many developers to work on the same code without stepping one each other's toes.
    * History: SCM tools track the complete development history of the software, including the exact changes which have occurred between releases and who made those changes.
    * Release notes generation: Given the tracking of each change, the SCM can be used to generate notes for their software releases which accurately capture all of the changes included in the new release.
    * Documentation and test management: SCM tools can be used to manage not just software source code, but also test suites and documentation for their software.
    * Change notifications: To keep interested members of the team informed when changes occur to the source code. 

Who uses SCM tools?

SCM tools are used by:
    * Project developers who are writing source code.
    * Project testers who need to download the very latest changes.
    * Advanced users who want to try out code that is not yet stable, mature or released. 

What SCM tools does SourceForge.net support?
    * Subversion
    * Git
    * Mercurial
    * Bazaar
    * CVS 

Subversion
A tool for software developers which supports collaborative development of software within a team, and the tracking of changes to software source code over time. Subversion is used by developers, and advanced users who need the very latest changes to the software (before releases occur).

Developers should familiarize themselves with Subversion by reading Version Control with Subversion. 

Reference :
http://sourceforge.net/apps/trac/sourceforge/wiki/What%20is%20Source%20Code%20Management
http://sourceforge.net/apps/trac/sourceforge/wiki/Subversion

Click here[Setup SVN Environment] you can get more information.



Project Management Tool - Not Yet Done [As of now i am tracking milestone in a excel sheet]
Project management is the discipline of planning, organizing, and managing resources to bring about the successful completion of specific project goals and objectives. It is sometimes conflated with program management, however technically a program is actually a higher level construct: a group of related and somehow interdependent projects.

Android Setup

Check the Following blog to setup the android setup
Reference :
http://about-android.blogspot.com/2009/11/about-android-first-of-all-android_09.html

Integrated Development Environment
MOTODEV Studio is Motorola's robust IDE for developing exceptional mobile device applications for a wide range of Motorola products

You can download from : http://developer.motorola.com/docstools/motodevstudio/

Code Review With PMD
Code review is systematic examination (often as peer review) of computer source code intended to find and fix mistakes  overlooked in the initial development phase, improving both the overall quality of software and the developers' skills.

Reference :
http://about-android.blogspot.com/2009/11/about-android-first-of-all-android_09.html

Testing - JUnit configuration.
In computer programming, unit testing  is a software verification and validation method in which a programmer tests if individual units of source code are fit for use. A unit is the smallest testable part of an application. In procedural programming a unit may be an individual function or procedure.
Here we are using the Instrumentation Framework to write test cases.

Reference :
http://about-android.blogspot.com/2009/11/about-android-first-of-all-android_09.html


Build Tool.
In software engineering, continuous integration (CI) implements continuous processes of applying quality control - small pieces of effort, applied frequently. Continuous integration aims to improve the quality of software, and to reduce the time taken to deliver it, by replacing the traditional practice of applying quality control after completing all development.

Here we are discussing Hudson for
continuous integration build

Reference :
http://about-android.blogspot.com/2009/11/about-android-first-of-all-android_09.html




HTC HD2 Apps: SPB Time v3.2.0







SPB Time is an advanced, skinnable time toolbox for your Windows Mobile phone. Analog and digital clock modes, World clock, timers and stopwatches, and advanced alarms. A lot of time-related functions in this world's bestselling application!









Time

Any kind of clock you like



* Analog clock

* Digital clock

* Calendar



Tools

A lot of time-related functions in this world's bestselling application



* World time for 10 000+ cities

* Stopwatches

* Countdown timers

* Moon calendar



User Interface and Experience

Highly customizable finger-friendly user interface



* Finger friendly interface

* Online skin catalog

* 3D globe with zoom and animation

* SPB Mobile Shell widgets



Alarms

Various alarm types to fit your lifestyle



* Classic alarms

* Bio alarms

* Paranoid alarms


Download This HD2 App Here:

HTC HD2 Games: James Cameron’s Avatar v2.5.0





James Cameron’s Avatar™ takes us to a spectacular world beyond imagination, where a reluctant hero embarks on a journey of redemption and discovery as he leads an epic battle to save a civilization. In the official Avatar mobile game, the planet Pandora’s last hope lies with the human Jake Sully. Transferring his consciousness into a human-Na’vi hybrid – a living, breathing body that resembles the Na’vi but possesses the human subject’s thoughts, feelings and personality – Jake undertakes his mission as an ‘avatar.’ Join Jake in the mobile game’s original, action-packed adventure. Undertake a mission to liberate a planet, unite the Na’vi tribes, and revive the legendary Sacred Weapon. As Jake, you’ll explore lush jungles, soar through the skies on a banshee, survive ferocious battles, and develop fantastic powers in your struggle to save a world and a people.



Download This HD2 Game Here:









Sharing Matrix



Rapid Share