Check if a Service is running in Android

private boolean isMyServiceRunning() {
 ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
 for (RunningServiceInfo For  that is larger than the machine memory, we consider it as Big Data (only in our case as there are many other definitions of Big Data). service : manager.getRunningServices(Integer.MAX_VALUE)) {
 if ("com.example.MyService".equals(service.service.getClassName())) {
 return true;
 return false;

Win an iPad 2 for the best user level in tPori – Schogini Systems’ new explosive iPhone/iPod game

YouTube Preview Image

Sunnyvale, CA March 31, 2011– Schogini Systems has launched tPori, a strategic puzzle game for iPhone that requires users to put their ability to think quick and plan perfectly to move a fireball across a series of blocks to ignite the bomb. The game offers multiple levels of challenging game-play, plus the ability to create custom levels that can be shared with the entire tPori playing community. In fact, the company has come out with a blast of an offer that will reward an iPad 2 to the person who submits the top rated level.

Schogini Systems will be running a contest for their latest, explosive game – tPori, from March 31 to April 30, 2011, for the most popular level designer. Create a challenging level for tPori and you could be the winner of an iPad 2!

In tPori, the objective is to move a fireball across a maze of blocks to ignite a bomb as quickly as possible. Players will need to avoid all of the Green Elements, which will extinguish their fire balls, while using the friendlier elements to help accomplish their mission of igniting the bomb and making it explode.

Some of the blocks in tPori can be removed with a tap, while others are immovable. The player’s success with tPori lies in quickly understanding the elements and creating the perfect strategy to solve the puzzle. This game offers the players an ‘undo’ option in every level, so they can reconsider their strategy after each move. This unique feature allows gamers to better their game-play each time.

With tPori’s unique Level Builder, players have the opportunity to design their own challenging and innovative levels. They can share these designs with other players in the tPori playing community. tPori’s Level Loader enable players to install levels designed and created by others. Added to this the most popular designs will be permanently added to future versions of the game, with the creator’s name engraved. Also, gamers can play and add levels from the Global level list into their favorite list, play it and also rate it. The application also allows you to share your thoughts via Facebook, Twitter and Email. It also allows you to send feedback about the game-play.

“We’re excited about this game because it includes all the elements we enjoy in a good game – quick thinking, smart strategy and explosions!” said Ajith Kumar, the company’s spokesperson. “It provides unlimited possibilities to explode the bomb with the fireball. The key is to blow the whole thing up as quick as possible.”

tPori features:

• Innovative game of strategy that is fun and captivating
• An addictive game of skill and strategy that is easy to learn, but hard to put down
• Race against time to score the most points
• 3 skill levels make the game fun for both beginners, experts and veteran gamers
• Veteran gamers can publish the solutions for a level to the tPori playing community

tPori is available on the App Store for just US$1.99. More details on the game and the iPad 2 contest for custom level creators can be found at the company’s website,

Blast your way !! Win the iPad2…

An Introduction to android’s new framework component : Fragment

A fragment is a new framework component that allows us to separate distinct elements of an activity into self-contained modules that define their own UI and lifecycle. To create a fragment, we must extend the Fragment class and implement several lifecycle callback methods, similar to an Activity. We can then combine multiple fragments in a single activity to build a multi-pane UI in which each pane manages its own lifecycle and user inputs.

We can also use a fragment without providing a UI and instead use the fragment as a worker for the activity, such as to manage the progress of a download that occurs only while the activity is running.

Features of Fragment:

1. Fragments are self-contained and you can reuse them in multiple activities

2.  Add, remove, replace and animate fragments inside the activity

3.  We can add fragments to a back stack managed by the activity, preserving the state of fragments as they are changed and allowing the user to navigate backward through the different states

4.  By providing alternative layouts, you can mix and match fragments, based on the screen size and orientation

5. Fragments have direct access to their container activity and can contribute items to the activity’s Action Bar


Executing application at Bootime on Android

In Android OS, we can start an application at boot time. BroadcastReaceivers are used for implementing this. They can listen for defined system or custom defined intents. They are executed when the intent is fired, even when the application is not running at the moment. You can define custom actions and fire them manually to control custom receivers, but there are several predefined broadcast within the operating system that are fired automatically on certain events.One among them is android.intent.action.BOOT_COMPLETED action. To receive this action one has to extend the Broadcastreceiver class accordingly.

A sample code snippet is Shown Below:


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".LaunchActivity" android:label="@string/app_name">
<action android:name="android.intent.action.MAIN" />
<receiver android:name="MyIntentReceiver">
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
<uses-sdk android:minSdkVersion="3" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

Java Coding:

package com.schogini.bootAPP;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class MyIntentReceiver extends BroadcastReceiver {
//This is called when boot completes
public void onReceive(Context context, Intent intent) {
//Set what activity should launch after boot completes
Intent startupBootIntent = new Intent(context, LaunchActivity.class);//new class to be launched

Usage Scenario:
An anti-virus/anti-malware app
A security app
Mobile Anti-theft App
Mail Client…etc