Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Saturday, 24 May 2014

Birthday Reminder for Android


                      This application is a simple and user friendly to store birth dates and the other informations.It will trigger a notification and show you an alert on the birth date. From inside the app allows you to send greetings message and make call feature.

Key Features:
- Birthday information and user photo are stored internally and able to take backup
- Simple UI gives easy access.
- Allowing to import from phone contacts
- Simple settings to set default greetings message and reminder time.









Download this app from google play  

Sunday, 11 May 2014

EMI Calculator for Android


                         This application is used to calculate EMI (Equated Monthly Installment) for home loan, car loan, personal loan and other loan.

Key Features
  • You can share the emi details with others through SMS/Mail
  • You can see the detailed statistical report of emi calculation (Monthly Basis).
  • There is a option to have default values when loading the application.
  •  You can compare two EMI plans





Download this app from GooglePlay https://play.google.com/store/apps/details?id=com.sathish.emi

Saturday, 10 May 2014

2048 Number Puzzle for Android

                                It's a very simple but interesting game. The task is, you have to make a single tile value as 2048, 4096 and 8192. Just do swipe to move all the tiles from one side to another side. At that time two adjacent tiles (have the same number) will become double and one tile will become empty. Play and have fun.

- Scores will be saved in Cloud.
- Play well and unlock the Achievements.
- Game State will be saved while doing proper game exit.







Download it from Google Play 

Sunday, 11 August 2013

Proximity Sensor in Android example




                  

                      Proximity Sensor is used to determine how far the device is closer to an object. For example when user making/receiving a phone call, proximity sensor measures the distance between the device and the user's face.







I am going to implement this Proximity Sensor for playing/pause a music.

Steps to create the project::
  • create an android project.
  • create a layout xml with one textview (for updating playing/pause status).
  • place one music file in raw directory under res directory.
  • implement "SensorEventListener" interface and add unimplemented methods.
  • register the listener for Proximity Sensor.
  • play/pause the music based on the sensor.

activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >
    <TextView
        android:id="@+id/textView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:text="@string/hello_world"
        android:textAppearance="?android:attr/textAppearanceMedium"
        tools:context=".MainActivity" />
</RelativeLayout>



MainActivity.java

import java.io.IOException;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.view.Menu;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends Activity implements SensorEventListener{

    SensorManager sensorMgr;
    Sensor sensor;
    TextView textView;
    MediaPlayer player;
    boolean flag = false;
   
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
       
        textView = (TextView)findViewById(R.id.textView2);
        sensorMgr = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
        sensor = sensorMgr.getDefaultSensor(Sensor.TYPE_PROXIMITY);
       
        player = MediaPlayer.create(getApplicationContext(), R.raw.music_file);
        try {
            player.prepare();
        } catch (IllegalStateException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
   
    @Override
    protected void onResume() {
           super.onResume();
           sensorMgr.registerListener(this, sensor,SensorManager.SENSOR_DELAY_NORMAL);
    }
   
    @Override
    protected void onPause() {
        super.onPause();
        sensorMgr.unregisterListener(this);
        player.stop();
    }
   
    public void onAccuracyChanged(Sensor sensor, int accuracy) {       
    }

    public void onSensorChanged(SensorEvent event) {
        if(event.sensor.getType() == sensor.TYPE_PROXIMITY){
            if(event.values[0] == sensor.getMaximumRange()){
                if(flag == true){
                    player.pause();
                    textView.setText("Pause");
                    flag = false;
                }else{
                    player.start();
                    textView.setText("Now Playing..!");
                    flag = true;
                }  
            }
        }
    }
}


AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.sathish.example.proximitysensor"
    android:versionCode="1"
    android:versionName="1.0" >
    <uses-sdk
        android:minSdkVersion="7"
        android:targetSdkVersion="15" />
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainActivity"
            android:label="@string/title_activity_main" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest> 

screenshots










click here to download the source code.

Wednesday, 26 June 2013

Slider Puzzle for Android

Description:
                      A very primitive puzzle. The challenge is to get the numbers arranged in ascending order. A vintage game that will keep you hooked to it for hours! Play it a couple of times a day and this game will help you keep your brain sharp and active.

How to Play:
                   Easy to understand, challenging to play. Slide the numbers in the box around until they are in correct order left to right and top to bottom. The empty space is the open space that the adjacent squares are moved to. To move a number, click on it. Only numbers that are adjacent to the empty space can be moved. The empty space should end up in the bottom right corner when the puzzle has been solved.

Features:
  • It has 3 different levels Easy(3x3), Medium(4x4) and Hard(5x5).
  • High score will be calculated based on the number of moves. In case of a tie time taken will also be considered.
  • When you reach a new record it allows you to save your name and this app shows the top 5 records.

Screenshots:

 

 

 


click here to download this application from Google Play.