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

Wednesday, 17 May 2017

X-Men Mutant academy 2


X-Men: Mutant academy 2

  - take part in superhero tournament. Use abilities of your fighter to crush opponents and become an arena king. In this dynamic Android game you can select among many superheroes and villains each having unique abilities and combat style. Take your favorite character on the arena and get ready for a battle against powerful opponents. Deliver powerful hits, make blocks, jump, dodge enemy attacks and apply superabilities and combos of course.

Game features:

  • Famous characters
  • 4 game modes
  • Handy system of controls
  • Exciting gameplay
[Download Apk 33 MB]

Darts master 3D

 
Darts master 3D:

Darts master 3D - throw darts to the rarget, try to get maximum points and win the contest. Aim carefully and don't miss. Cover a long way from the beginner to a real master of darts game in this exciting Android game. Train, improve your darts playing skills, complete interesting tasks, participate in the tournaments of different levels. Buy sets of darts and targets having unique design. Compete with other players from all over the world.

Game features:

  • Different game modes
  • Over 20 darts and targets
  • Over 100 levels
  • Board of leaders and achievements

[Download Apk 14 MB ]

Saturday, 6 May 2017

How to Build Android send massage java code

Android Sending SMS

There are following two ways to send SMS using Android device:

Using SmsManager to send SMS

Using Built-in Intent to send SMS

Using SmsManager to send SMS

The SmsManager manages SMS operations such as sending data to the given mobile device. You can create this object by calling the static method SmsManager.getDefault() as follows:

SmsManager smsManager =SmsManager.getDefault();

Once you have SmsManager object, you can use sendDataMessage() method to send SMS at the specified mobile number as below:

smsManager.sendTextMessage("phoneNo", null, "SMS text", null, null);

Apart from the above method, there are few other important functions available inSmsManager class. These methods are listed below:

S.N.

Method & Description

1

ArrayList<String>divideMessage(String text) 
This method divides a message text into several fragments, none bigger than the maximum SMS message size.

2

static SmsManager getDefault() 
This method is used to get the default instance of the SmsManager

3

void sendDataMessage(StringdestinationAddress, StringscAddress, short destinationPort, byte[] data, PendingIntentsentIntent, PendingIntentdeliveryIntent) 
This method is used to send a data based SMS to a specific application port.

4

voidsendMultipartTextMessage(StringdestinationAddress, StringscAddress, ArrayList<String> parts,ArrayList<PendingIntent>sentIntents,ArrayList<PendingIntent>deliveryIntents) 
Send a multi-part text based SMS.

5

void sendTextMessage(StringdestinationAddress, StringscAddress, String text,PendingIntent sentIntent,PendingIntent deliveryIntent) 
Send a text based SMS.

Example

Following example shows you in practical how to use SmsManager object to send an SMS to the given mobile number.

To experiment with this example, you will need actual Mobile device equipped with latest Android OS, otherwise you will have to struggle with emulator which may not work.

Step

Description

1

You will use Eclipse IDE to create an Android application and name it asSendSMSDemo under a packagecom.example.sendsmsdemo. While creating this project, make sure youTarget SDK and Compile With at the latest version of Android SDK to use higher levels of APIs.

2

Modify src/MainActivity.java file and add required code to take care of sending email.

3

Modify layout XML fileres/layout/activity_main.xml add any GUI component if required. I'm adding a simple GUI to take mobile number and SMS text to be sent and a simple button to send SMS.

4

Modify res/values/strings.xml to define required constant values

5

Modify AndroidManifest.xml as shown below

6

Run the application to launch Android emulator and verify the result of the changes done in the aplication.

Following is the content of the modified main activity filesrc/com.example.sendsmsdemo/MainActivity.java.

package com.example.sendsmsdemo;

 

import android.os.Bundle;

import android.app.Activity;

importandroid.telephony.SmsManager;

import android.util.Log;

import android.view.Menu;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

 

public class MainActivity extends Activity {

 

   Button sendBtn;

   EditText txtphoneNo;

   EditText txtMessage;

 

   @Override

   protected void onCreate(BundlesavedInstanceState) {

     super.onCreate(savedInstanceState);

     setContentView(R.layout.activity_main);

 

      sendBtn = (Button)findViewById(R.id.btnSendSMS);

      txtphoneNo = (EditText)findViewById(R.id.editTextPhoneNo);

      txtMessage = (EditText)findViewById(R.id.editTextSMS);

 

     sendBtn.setOnClickListener(newView.OnClickListener() {

         public void onClick(View view) {

            sendSMSMessage();

         }

      });

 

   }

   protected void sendSMSMessage() {

      Log.i("Send SMS", "");

 

      String phoneNo =txtphoneNo.getText().toString();

      String message =txtMessage.getText().toString();

 

      try {

         SmsManager smsManager =SmsManager.getDefault();

        smsManager.sendTextMessage(phoneNo, null, message, null, null);

        Toast.makeText(getApplicationContext(), "SMS sent.",

         Toast.LENGTH_LONG).show();

      } catch (Exception e) {

        Toast.makeText(getApplicationContext(),

         "SMS faild, please try again.",

         Toast.LENGTH_LONG).show();

         e.printStackTrace();

      }

   }

   @Override

   public booleanonCreateOptionsMenu(Menu menu) {

      // Inflate the menu; this adds items to the action bar if it is present.

     getMenuInflater().inflate(R.menu.main, menu);

      return true;

   }

}

Following will be the content ofres/layout/activity_main.xml file:

<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:orientation="vertical" >

 

   <TextView

  android:id="@+id/textViewPhoneNo"

  android:layout_width="wrap_content"

  android:layout_height="wrap_content"

  android:text="@string/phone_label" />

 

   <EditText

  android:id="@+id/editTextPhoneNo"

  android:layout_width="fill_parent"

  android:layout_height="wrap_content"

   android:inputType="phone"/>

 

   <TextView

  android:id="@+id/textViewMessage"

  android:layout_width="wrap_content"

  android:layout_height="wrap_content"

  android:text="@string/sms_label" />

 

   <EditText

   android:id="@+id/editTextSMS"

  android:layout_width="fill_parent"

  android:layout_height="wrap_content"

  android:inputType="textMultiLine"/>

 

   <Buttonandroid:id="@+id/btnSendSMS"

  android:layout_width="fill_parent"

  android:layout_height="wrap_content"

  android:text="@string/send_sms_label"/>

 

</LinearLayout>

Following will be the content ofres/values/strings.xml to define two new constants:

<?xml version="1.0" encoding="utf-8"?>

<resources>

 

    <string name="app_name">SendSMSDemo</string>

    <string name="action_settings">Settings</string>

    <string name="hello_world">Hello world!</string>

    <string name="phone_label">Enter Phone Number:</string>

    <string name="sms_label">Enter SMS Message:</string>

    <string name="send_sms_label">Send SMS</string>

   

</resources>

Following is the default content ofAndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>

<manifestxmlns:android="http://schemas.android.com/apk/res/android"

   package="com.example.sendsmsdemo"

    android:versionCode="1"

    android:versionName="1.0" >

 

    <uses-sdk

        android:minSdkVersion="8"

       android:targetSdkVersion="17" />

    <uses-permissionandroid:name="android.permission.SEND_SMS" />

 

    <application

        android:allowBackup="true"

       android:icon="@drawable/ic_launcher"

       android:label="@string/app_name"

       android:theme="@style/AppTheme" >

        <activity

           android:name="com.example.sendsmsdemo.MainActivity"

           android:label="@string/app_name" >

            <intent-filter>

                <actionandroid:name="android.intent.action.MAIN" />

 

                <categoryandroid:name="android.intent.category.LAUNCHER" />

            </intent-filter>

        </activity>

    </application>

 

</manifest>

Let's try to run your SendSMSDemoapplication. I assume you have connected your actual Android Mobile device with your computer. To run the app from Eclipse, open one of your project's activity files and click Run icon from the toolbar. Before starting your application, Eclipse will display following window to select an option where you want to run your Android application.

Select your mobile device as an option and then check your mobile device which will display following screen:

Now you can enter a desired mobile number and a text message to be sent on that number. Finally click on Sed SMS button to send your SMS. Make sure your GSM connection is working fine to deliver your SMS to its recipient.

You can take a number of SMS separated by comma and then inside your program you will have to parse them into an array string and finally you can use a loop to send message to all the given numbers. That's how you can write your own SMS client. Next section will show you how to use existing SMS client to send SMS.

Using Built-in Intent to send SMS

You can use Android Intent to send SMS by calling built-in SMS functionality of the Android. Following section explains different parts of our Intent object required to send an SMS.

Intent Object - Action to send SMS

You will use ACTION_VIEW action to launch an SMS client installed on your Android device. Following is simple syntax to create an intent with ACTION_VIEW action

Intent smsIntent = new Intent(Intent.ACTION_VIEW);

Intent Object - Data/Type to send SMS

To send an SMS you need to specify smsto:as URI using setData() method and data type will be to vnd.android-dir/mms-sms usingsetType() method as follows:

smsIntent.setData(Uri.parse("smsto:"));

smsIntent.setType("vnd.android-dir/mms-sms");

Intent Object - Extra to send SMS

Android has built-in support to add phone number and text message to send an SMS as follows:

smsIntent.putExtra("address"  , new String("0123456789;3393993300"));

smsIntent.putExtra("sms_body"  , "Test SMS to Angilla");

 

Here address and sms_body are case sensitive and should be specified in small characters only. You can specify more than one number in single string but separated by semi-colon (;).

Example

Following example shows you in practical how to use Intent object to launch SMS client to send an SMS to the given recipients.

To experiment with this example, you will need actual Mobile device equipped with latest Android OS, otherwise you will have to struggle with emulator which may not work.

Step

Description

1

You will use Eclipse IDE to create an Android application and name it asSendSMSDemo under a packagecom.example.sendsmsdemo. While creating this project, make sure youTarget SDK and Compile With at the latest version of Android SDK to use higher levels of APIs.

2

Modify src/MainActivity.java file and add required code to take care of sending SMS.

3

Modify layout XML fileres/layout/activity_main.xml add any GUI component if required. I'm adding a simple button to launch SMS Client.

4

Modify res/values/strings.xml to define required constant values

5

Modify AndroidManifest.xml as shown below

6

Run the application to launch Android emulator and verify the result of the changes done in the aplication.

Following is the content of the modified main activity filesrc/com.example.sendsmsdemo/MainActivity.java.

package com.example.sendsmsdemo;

 

import android.net.Uri;

import android.os.Bundle;

import android.app.Activity;

import android.content.Intent;

import android.util.Log;

import android.view.Menu;

import android.view.View;

import android.widget.Button;

import android.widget.Toast;

 

public class MainActivity extends Activity {

 

   @Override

   protected void onCreate(BundlesavedInstanceState) {

     super.onCreate(savedInstanceState);

     setContentView(R.layout.activity_main);

 

      Button startBtn = (Button)findViewById(R.id.sendSMS);

     startBtn.setOnClickListener(newView.OnClickListener() {

         public void onClick(View view) {

         sendSMS();

      }

   });

 

   }

   protected void sendSMS() {

      Log.i("Send SMS", "");

 

      Intent smsIntent = new Intent(Intent.ACTION_VIEW);

     smsIntent.setData(Uri.parse("smsto:"));

     smsIntent.setType("vnd.android-dir/mms-sms");

 

      smsIntent.putExtra("address" , new String ("0123456789"));

     smsIntent.putExtra("sms_body"  , "Test SMS to Angilla");

      try {

         startActivity(smsIntent);

         finish();

         Log.i("Finished sending SMS...", "");

      } catch (android.content.ActivityNotFoundExceptionex) {

        Toast.makeText(MainActivity.this,

         "SMS faild, please try again later.",Toast.LENGTH_SHORT).show();

      }

   }

   @Override

   public booleanonCreateOptionsMenu(Menu menu) {

      // Inflate the menu; this adds items to the action bar if it is present.

     getMenuInflater().inflate(R.menu.main, menu);

      return true;

   }

}

Following will be the content ofres/layout/activity_main.xml file:

<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"

  android:layout_width="fill_parent"

  android:layout_height="fill_parent"

   android:orientation="vertical" >

 

   <Buttonandroid:id="@+id/sendSMS"

  android:layout_width="fill_parent"

  android:layout_height="wrap_content"

  android:text="@string/compose_sms"/>

   

</LinearLayout>

Following will be the content ofres/values/strings.xml to define two new constants:

<?xml version="1.0" encoding="utf-8"?>

<resources>

 

    <string name="app_name">SendSMSDemo</string>

    <string name="hello_world">Hello world!</string>

    <string name="action_settings">Settings</string>

    <string name="compose_sms">Compose SMS</string>

 

</resources>

Following is the default content ofAndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>

<manifestxmlns:android="http://schemas.android.com/apk/res/android"

   package="com.example.sendsmsdemo"

    android:versionCode="1"

    android:versionName="1.0" >

 

    <uses-sdk

        android:minSdkVersion="8"

       android:targetSdkVersion="17" />

 

    <application

        android:allowBackup="true"

       android:icon="@drawable/ic_launcher"

       android:label="@string/app_name"

       android:theme="@style/AppTheme" >

        <activity

           android:name="com.example.sendsmsdemo.MainActivity"

           android:label="@string/app_name" >

            <intent-filter>

                <actionandroid:name="android.intent.action.MAIN" />

 

                <categoryandroid:name="android.intent.category.LAUNCHER" />

            </intent-filter>

        </activity>

    </application>

</manifest>

Let's try to run your SendSMSDemoapplication. I assume you have connected your actual Android Mobile device with your computer. To run the app from Eclipse, open one of your project's activity files and click Run icon from the toolbar. Before starting your application, Eclipse will display following window to select an option where you want to run your Android application.

Select your mobile device as an option and then check your mobile device which will display following screen:

Now use Compose SMS button to launch Android built-in SMS clients which is shown below

You can modify either of the given default fields and finally use send SMS button (marked with red rectangle) to send your SMS to the mentioned recipient.

Monday, 1 May 2017

Standoff 2 Android Game

Standoff 2

Action Online Shooter 


Standoff 2 Android Game

 
 Standoff 2 - move across the battle field, find enemies and pull the trigger first. Try to avoid death and destroy maximum enemies. Take part in armed conflict between terrorists and special squads in this Android game. Hold modern weapon in your hands harder and go to fight. Help the members of your squad and shoot accurately trying to make headshots. Test various weapons in combat environment and develop your own game style. Win battles and increase your rating.

Need Internet connection 
Game features:
  • Different maps
  • High quality graphics
  • Fight against other players
  • Handy system of controls
 [[ Download Apk ]] Android 2.3 and higher. v0.2.0  [26.4 MB] [apk]

[[  Download OBB  ]]  Android 2.3 and higher. Game cache. v0.2.0  [119.2 MB]  [zip]

Brave blade Andoird Game

Brave blade 

Android 3.1 and higher. v1.0.2 [73.1 MB] [apk]
 
[[  Download OBB   ]]
Android 3.1 and higher. Game cache. v1.0.2 [195.7 MB] [zip]

Game features:

  • Cute characters
  • 3 different fractions
  • Many upgrades
  • Interesting tasks
  • Character development

Brave blade - gather a squad of fearless mercenaries and fight against hordes of evil mutants. Apply incredible abilities of different heroes in the battles. In this Android game you will take part in the battles against demonic enemies and meet beautiful girls. Complete exciting campaign missions and add new mercenaries to your squad. Gather an invincible team of characters of different classes. Apply magic and legendary weapons of the heroes, make efficient combos and crush strong opponents. Train heroes and improve their parameters.

To know how to install OBB files  [click here]

WW1 Sky of the western front: Air battle Android game

WW1 Sky of the western front: Air battle


WW1 Sky of the western front: Air battle


[[  Download Here Free  ]]    Android 2.3 and higher. v1.0 [40.8 MB] [apk]
Game features:
  • 18 fighting aircrafts
  • 40 interesting missions
  • 10 extra missions
  • Various game modes

control classic airplanes of the World War I time and take part in air battles in the sky over Europe. Become an air ace completing dangerous missions in this Android game. Crash planes of your enemy precisely shooting from the weapon placed in your fighting aircraft. Destroy enemy airships and balloons. Hit ground objects such as enemy headquarters, tanks, military machinery and others. Get money for the completed tasks and buy new planes with unique characteristics. 

Enjoy flying guys !!!!!!!!
Best luck.

Empire strike Android game

[Tested and love It ]Empire strike: Modern warlords

Bored from Clash Of Clans and its versions 
Welcome to Modern Warlords  



Empire strike: Modern warlords for Android is very popular and thousands of gamers around the world would be glad to get it without any payments. And we can help you! To download the game for free, we recommend you to select your phone model, and then our system will choose the most suitable apk files. Downloading is very simple: select the desired file and click "download free Empire strike: Modern warlords apk", then select one of the ways you want to get the file. Just a few easy steps and you are enjoying full version of the game for tablet or phone! 


create a powerful military emipre. Build military headquarters, enlarge your army, fight for the control over the world. In this Android game you can become a commander and ruler. Start your way from building your own base and making it stronger. Build barracks, workshops, research centers and other necessary objects. Enlarge number of infantry soldiers, artillery and other combat machinery. Defend your base from enemies. Attack bases of other players, expand your empire, make alliances.

Game features:

  • Huge map
  • Many combat units
  • Various constructions
  • Fight against other players
[[  Download Direct  ]]  Android 3.0 and higher. v1.0.4 [41.5 MB] [apk]


Enjoy the game guys

Saturday, 29 April 2017

PhoneGap Android development Framework

Phone Gap Framework / Desktop Application 

Android development Framework / Tool Phonegap

The PhoneGap Desktop App is the easiest way to get started with PhoneGap. It’s an alternative to the PhoneGap CLI, yet it uses the same libraries under-the-hood.

There’s no complicated installation. You don’t need git, npm, or even node.js. We include all of the important parts for you, so that you can focus on creating your next app!

1 ) Download 

Download Phone Gap for Windows
Download Phone Gap for Mac      

2 )     Extract the Zip file and Install the Application on your system

3 )     Use  Application On your system any time

How to use it

Total installation of PhoneGap and environment
Youtube video

 Open the application


After that 
  1. Click the + on the left-panel.
  2. Select Create new PhoneGap project…
    • Choose a local path to save your project
    • Choose a name for your project, such as “Hello World”
  3. Select Create project.
Phonegap application create project

   Start the Server


    Ip address of your server is mentioned On the green bar
    If the server has not started, click the arrow (>) to the right of your app’s name.

Phonegap application server

 Pair App with PhoneGap Developer App

Phonegap connect with developer app / server
To know about PhoneGap Developer app click here

Get Start Development


It’s now business as usual. You can now edit and immediately preview your project on a device.
  1. Open www/index.html.
  2. Edit any content.
  3. Save the file.
  4. See the updates appear on your device.      
Phonegap create code final
Enjoy coding ...........
Wait for the next post 
Keep reading