Tuesday, 30 September 2014

Android games

What is an Android game app template?
An Android game app template is a template created by AppsGeyser and is upgraded and personalized by you, the app maker. The templates that have been created include shooting games, puzzle style games and coloring games, all you need to do as an app maker is plan your style and upload your chosen images.
Why are Android game apps suitable for businesses?
1: Branding – When you create a game using the different templates you are given the choice to choose your own images. The images that you choose should represent your branding and be consistent throughout all of your products and marketing materials. The more the user plays the game the more they will begin to remember your branding and will recognize it outside of the game too.
2: Usage – Games are addictive, the idea behind a game is to get users to use your app and return to your app frequently. The frequent usage of your app will not only increase your monetization of the app, but will also increase your opportunity to push your brand. As I described in the previous point, the more an app user sees your brand style the more likely it is that they will remember your brand outside of the game.
3:Loyalty – Loyalty comes from the combination of branding and app usage, the more a person uses the app and becomes used to the branding you have implemented the more likely it is that when outside the game they will choose your brand above other brands when given a choice. The reason that the users are more likely to choose your brand above others is because they have formed an alliance with your brand through the game, they have begun to trust your brand and therefore feel comfortable and loyal to your brand .
Android game apps are a fantastic way to incite excitement in your audience, gain additional users and retain existing clientele. Use a game in your marketing strategy and see if it works for you.
We’d love to hear your thoughts in the comments or on Facebook or Twitter,
If you’re interested in making your own Android apps. 

Thursday, 27 March 2014

Do You Really Need Security Apps On Your Android device? - See more at: http://www.techtree.com/cont

Installing a security software on your personal computer is a norm, but the trend hasn't fully taken off among users of smartphones. The type of information we share and access through our mobile devices is of greater interest to cyber-criminals today than it has ever been. However, do that make it necessary for us to install security apps on smartphones?
Android is currently the largest mobile operating system, and while it is built on Linux, which is a fairly secure platform, security threats do exist. However, unlike with PCs where security software are primarily used to fend off threats, with smartphones and tablets these apps do a lot more than just detect and block malware.

The biggest security risk for any mobile device user still revolves around losing the device. All major Android security apps nowadays have features to remotely lock your phone and even wipe the device's memory clean. This however doesn't justify installing such apps, since Google already offers the service through its Android Device Manager.

Installing security apps on Android devices could become essential when sideloading software from 3rd party vendors (not Google's Play Store), which are often bloated with malware. Despite Google's attempts to keep its store as clean as possible, apps which pose a security threat still do exist. There is a simple fix to this, which is installing apps only from trusted developers on the Play Store.

Another way in which the security of your mobile device can be compromised is via browser and email clients. Just as with PCs, these devices are susceptible to attack from information stealing threats which get downloaded through cookies and files from unknown emails. If you aren't an avid user of your smartphone to access the depths of the web, the level of threat you face is massively decreased.

Although making financial transactions on mobile devices may not be as big in India as it is overseas, the trend of online shopping using smartphones and tablets is indeed growing. This does pose a threat as miscreants can log your credit and debit card numbers, as well as other valuable information. Using apps from trusted stores to shop goes a long way since most of them value your security and have built in features that keep your information private.

As of now the use of security apps on Android devices is largely dependent on the kind of information you access and share. While they may seem unnecessary for casual users, security apps are highly recommended for power users who feel the need to infinitely mod or make full use of the Android platform.

While keeping your information safe may be one of the pros of using security apps, there are a few cons too. Firstly such apps eat into some of the processing power of your phone, and with lower power devices this could mean the difference between laggy graphics and smooth brilliance. Second, to access the full host of benefits from security apps, you often have to pay for them, but there are free options available on the Android market. Lastly, if you aren't paying for your apps, the only way makers can earn money is by selling consumer information to advertising companies, if this is something that annoys you then it's best to rethink how to ward off security threats on your Android device.

Friday, 22 November 2013


Android Login Screen Using HttpClient

In Android we can use HTTP POST request with org.apache.http.client.HttpClient to post data to a URL. This sample project illustrate how we can post data to a URL and get the response. 
Here is the screen shot of login screen.
Try the same with the below code :
Code
package com.sencide;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class AndroidLogin extends Activity implements OnClickListener {
  
 Button ok,back,exit;
 TextView result;
  
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
         
        // Login button clicked
        ok = (Button)findViewById(R.id.btn_login);
        ok.setOnClickListener(this);
         
        result = (TextView)findViewById(R.id.lbl_result);
         
    }
     
    public void postLoginData() {
        // Create a new HttpClient and Post Header
        HttpClient httpclient = new DefaultHttpClient();
         
        /* login.php returns true if username and password is equal to saranga */
        HttpPost httppost = new HttpPost("http://localhost_address");

        try {
            // Add user name and password
         EditText uname = (EditText)findViewById(R.id.txt_username);
         String username = uname.getText().toString();

         EditText pword = (EditText)findViewById(R.id.txt_password);
         String password = pword.getText().toString();
          
            List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
            nameValuePairs.add(new BasicNameValuePair("username", username));
            nameValuePairs.add(new BasicNameValuePair("password", password));
            httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

            // Execute HTTP Post Request
            Log.w("SENCIDE", "Execute HTTP Post Request");
            HttpResponse response = httpclient.execute(httppost);
             
            String str = inputStreamToString(response.getEntity().getContent()).toString();
            Log.w("SENCIDE", str);
             
            if(str.toString().equalsIgnoreCase("true"))
            {
             Log.w("SENCIDE", "TRUE");
             result.setText("Login successful");  
            }else
            {
             Log.w("SENCIDE", "FALSE");
             result.setText(str);            
            }

        } catch (ClientProtocolException e) {
         e.printStackTrace();
        } catch (IOException e) {
         e.printStackTrace();
        }
    }
   
    private StringBuilder inputStreamToString(InputStream is) {
     String line = "";
     StringBuilder total = new StringBuilder();
     // Wrap a BufferedReader around the InputStream
     BufferedReader rd = new BufferedReader(new InputStreamReader(is));
     // Read response until the end
     try {
      while ((line = rd.readLine()) != null) {
        total.append(line);
      }
     } catch (IOException e) {
      e.printStackTrace();
     }
     // Return full string
     return total;
    }

    @Override
    public void onClick(View view) {
      if(view == ok){
        postLoginData();
      }
    }

}



Following code is the content of mail.xml file that is used in the above code.
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://localhost_address"
> 
<EditText android:layout_width="150px" android:layout_height="wrap_content" android:textSize="18sp" android:id="@+id/txt_username" android:layout_y="132dip" android:layout_x="128dip"></EditText>
<EditText android:layout_width="150px" android:layout_height="wrap_content" android:textSize="18sp" android:password="true" android:id="@+id/txt_password" android:layout_x="128dip" android:layout_y="192dip"></EditText>
<Button android:layout_width="100px" android:layout_height="wrap_content" android:id="@+id/btn_login" android:layout_x="178dip" android:layout_y="252dip" android:text="Login"></Button>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/lbl_username" android:text="User Name" android:layout_x="37dip" android:layout_y="150dip"></TextView>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/lbl_password" android:text="Password" android:layout_y="207dip" android:layout_x="50dip"></TextView>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/lbl_top" android:textSize="16sp" android:typeface="sans" android:text="Please Loggin First" android:layout_x="29dip" android:layout_y="94dip"></TextView>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_y="312dip" android:layout_x="50dip" android:id="@+id/lbl_result"></TextView>
</AbsoluteLayout>


Following code is the content of AndroidManifest.xml file that is used in this project. There note that I have add the line <uses-permission android:name= "android.permission.INTERNET".
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://localhost_address"
      package="com.sencide"
      android:versionCode="1"
      android:versionName="1.0">

 <uses-permission android:name="android.permission.INTERNET" />
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".AndroidLogin"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
</manifest>