Wednesday, 17 July 2013
Wednesday, 27 February 2013
Tuesday, 26 February 2013
VISIT NOW
Tuesday, February 26, 2013
No comments
A good news for all
Android ituts is to be changed to .com domain
VISIT NOW
www.androidituts.com
Android ituts is to be changed to .com domain
VISIT NOW
www.androidituts.com
Wednesday, 6 February 2013
Android Emulator Keyboard Shortcuts
Android Emulator Keyboard Shortcuts
| Emulator Device Key | Keyboard Key |
|---|---|
| Home | HOME |
| Back | Esc |
| Menu (left softkey) | F2 or Page-up button |
| Star (right softkey) | Shift-F2 or Page Down |
| Call/dial button | F3 |
| Hangup/end call button | F4 |
| Search | F5 |
| Toggle trackball mode | F6 |
| Enter trackball mode temporarily | Delete |
| DPad left/up/right/down | KEYPAD_4/8/6/2 |
| DPad center click | KEYPAD_5 |
| Onion alpha increase/decrease | KEYPAD_MULTIPLY(*) / KEYPAD_DIVIDE(/) |
| Power button | F7 |
| Audio volume up button | KEYPAD_PLUS, Ctrl-5 |
| Audio volume down button | KEYPAD_MINUS, Ctrl-F6 |
| Camera button | Ctrl-KEYPAD_5, Ctrl-F3 |
| Switch to previous layout orientation | KEYPAD_7, Ctrl-F11 |
| Switch to next layout orientation | KEYPAD_9, Ctrl-F12 |
| Toggle cell networking on/off | F8 |
| Toggle code profiling | F9 |
| Toggle fullscreen mode | Alt-Enter |
Wednesday, 16 January 2013
Location Alert Android Apps
Location Alert Android Apps
Location Alert Android Apps
Location AlertIgost TechnologiesDescription |
Location Alert is an android application which will alert you before you reach your destination. Just simply set the location where you want to go and you can get engaged in any other works, location alert will remind you before the location reaches.
• Are you the one who travels often alone?.. Sometimes you will sleep right? Now u doesn’t have to worry about that, location alert will wake up you.
• If you want to buy something from the super market and in your journey even if you forget about that, just set an alert before you start your journey .Location alert will remind you before the super market reaches.
• Do you love travelling?... IF you are the one who like to explore new places, you don’t have to worry just set the places you want to go in Location alert and enjoy your journey .The alarm will rings before you reaches each preset locations.
Key features of Location alert are:
*You can easily search all the places.
*Our algorithm uses less gps so that it will not drain the phones battery.
*Just in a single click you can see your current position in the map.
*Depending on your input of places the Location alert will suggest some places.
*You can transfer the application to SD card.
*You can easily manage all the locations you marked in the map.
*Pop up text about the location will appear when the alarm rings.
This Android app will helps everyone in their journey to new places without the drainage of your phones battery.
For any questions and suggestions contact us on
android@igosttech.com
Apps ScreenShots
• Are you the one who travels often alone?.. Sometimes you will sleep right? Now u doesn’t have to worry about that, location alert will wake up you.
• If you want to buy something from the super market and in your journey even if you forget about that, just set an alert before you start your journey .Location alert will remind you before the super market reaches.
• Do you love travelling?... IF you are the one who like to explore new places, you don’t have to worry just set the places you want to go in Location alert and enjoy your journey .The alarm will rings before you reaches each preset locations.
Key features of Location alert are:
*You can easily search all the places.
*Our algorithm uses less gps so that it will not drain the phones battery.
*Just in a single click you can see your current position in the map.
*Depending on your input of places the Location alert will suggest some places.
*You can transfer the application to SD card.
*You can easily manage all the locations you marked in the map.
*Pop up text about the location will appear when the alarm rings.
This Android app will helps everyone in their journey to new places without the drainage of your phones battery.
For any questions and suggestions contact us on
android@igosttech.com
Apps ScreenShots
Friday, 11 January 2013
Android Spinner Tutorial
Android Spinner Tutorial
In this tutorial i am going to teach you how to you spinner drop down in the Android applications.It allows users to select items from the drop down menu.
STEP BY STEP
1.Create an Android Project
2.Open string.xml file from the resource folder and add the following code showing bellow
strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">AndroidSpinnerExample</string>
<string name="spinner_title">Select Category</string>
</resources>
3.Then open main.xml and copy paste the bellow code.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:padding="10dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<!-- Text Label -->
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:text="Select Mobile:"
android:layout_marginBottom="5dp"
/>
<!-- Spinner Element -->
<Spinner
android:id="@+id/spinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:prompt="@string/spinner_title"
/>
</LinearLayout>
4.Open main activity class file and extend it from OnItemSelectedListener
public class SpinnerActivity extends Activity extends Activity
implements OnItemSelectedListener
5.After that copy and paste the bellow code in mainActivity file
package com.roney.spinner;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.Toast;
import android.widget.AdapterView.OnItemSelectedListener;
public class SpinnerActivity extends Activity implements OnItemSelectedListener
{
private Object gt;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Spinner element
Spinner spinner = (Spinner) findViewById(R.id.spinner);
// Spinner click listener
spinner.setOnItemSelectedListener(this);
// Spinner Drop down elements
List<String>
categories = new ArrayList<
String>();
categories.add("Automobile");
categories.add("Business Services");
categories.add("Computers");
categories.add("Education");
categories.add("Personal");
categories.add("Travel");
// Creating adapter for spinner
ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, categories);
// Drop down layout style - list view with radio button
dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
// attaching data adapter to spinner
spinner.setAdapter(dataAdapter);
}
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id)
{
// On selecting a spinner item
String item = parent.getItemAtPosition(position).toString();
// Showing selected spinner item
Toast.makeText(parent.getContext(), "Selected: " + item, Toast.LENGTH_LONG).show();
}
public void onNothingSelected(AdapterView<?> arg0) {
// TODO Auto-generated method stub
}
@Override
public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,long arg3)
{
// TODO Auto-generated method stub
}
@Override
public void onNothingSelected(AdapterView<?> arg0)
{
// TODO Auto-generated method stub
}}
6.Output is shown bellow
Wednesday, 26 December 2012
Android Checkbox Tutorial
Android Checkbox Tutorial
In this tutorial am going to show how to use checkbox in android.Basically the checkbox is used for receive user input.Lets find how it works in android.
STEP BY STEP
1.Create an Android Project
2.Create a strings.xml file in res/values folder.
Copy and paste the given bellow code.
<resources>
<string name="app_name">CheckboxExample</string>
<string name="linux_box">Android</string>
<string name="macos_box">Apple</string>
<string name="windows_box">Windows</string>
<string name="display_label">Display</string>
<string name="menu_settings">Settings</string>
</resources>
3.In this project we are adding three checkbox and when any of the checkbox
is selected,the corresponding message will be shown in a toast.
4.Open the main.xml file and copy and paste the bellow code.
<LinearLayout xmlns: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/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Android iTuts"
android:paddingLeft="130px"
android:textAppearance="? android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Your choice"
android:textAppearance="?android:attr/textAppearanceMedium" />
<CheckBox
android:id="@+id/checkandroid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Android" />
<CheckBox
android:id="@+id/checkapple"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Apple" />
<CheckBox
android:id="@+id/checkwindows"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Windows" />
</LinearLayout>
5.Open the main Activity file and put the given bellow code.
package com.roney.checkbox;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.CheckBox;
import android.widget.Toast;
public class CheckboxActivity extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
CheckBox android=(CheckBox) findViewById(R.id.checkandroid);
android.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
if (((CheckBox) v).isChecked())
{
Toast.makeText(CheckboxActivity.this,"Your choice is Android", Toast.LENGTH_LONG).show();
}
}
});
CheckBox apple=(CheckBox) findViewById(R.id.checkapple);
apple.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
if (((CheckBox) v).isChecked())
{
Toast.makeText(CheckboxActivity.this,"Your choice is Apple", Toast.LENGTH_LONG).show();
}
}
});
CheckBox windows=(CheckBox) findViewById(R.id.checkwindows);
windows.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
if (((CheckBox) v).isChecked())
{
Toast.makeText(CheckboxActivity.this,"Your choice is Windows", Toast.LENGTH_LONG).show();
}
}
});
}
}
6.Ouput is shown bellow
If you need to run this application in the android smartphone
Wednesday, 19 December 2012
Android Toast Tutorial
Android Toast Tutorial
In this tutorial,i am going to show how to create a simple toast display when a button is clicked.This tutorial is one of the simplest tutorial in the android.
Toast is used to show the notification or message when an action occur.
STEP BY STEP
1.Create a project
2.In this tutorials when a button is clicked,a toast will show the message.
Select the main.xml file from res/layout.
Copy and paste the bellow code.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<Button
android:id="@+id/buttonToast"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Display Toast" />
</LinearLayout>
3.Select the main activity file
Copy and pste the given bellow code.
package com.roney.toast;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
public class ToastActivity extends Activity
{
private Button button;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
button = (Button) findViewById(R.id.buttonToast);
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0)
{
Toast.makeText(getApplicationContext(),
"Button is clicked", Toast.LENGTH_LONG).show();
}
});
}
}
4.Toast.makeText is used to declare the message to display
5.The output is given bellow
If you need to run this application in the android smartphone
Sunday, 9 December 2012
Android WebView Tutorial
Android WebView Tutorial
In this tutorial,i am going to teach you how to create an android application to redirect directly to the website which is provided in the project by simply selecting the app shortcuts.
STEP BY STEP
1.Create a new Android Project.
2.Select the main.xml file in the res/layout.
Then select the WebView
Component from the Composite as like shown in the bellow figure.
- Refer:-Components in Composite
3.Drag and drop the WebView component to the main.xml
After that the main.xml will looks like as given bellow.
4.Then the main.xml code has been like given bellow.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<WebView
android:id="@+id/webView1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
5.Select the MainActivity class file.Copy paste the given bellow code.
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
public class SiteviewActivity extends Activity
{
/** Called when the activity is first created. */
private WebView webView;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("http://www.androidituts.blogspot.com");
}
}
Change the required changes in the package name as well as the web url which you need to view.
6.WebView requires INTERNET Permission
- To add the permission manually.Take AndroidManifest.xml
- Then take Permissions-->Add-->Usess Permissions-->Select the required permissions from the combo box provided.
Then the AndroidManifest.xml code wiil as given bellow.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.roney.web"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".SiteviewActivity"
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>
7.Run the application
If you need to run this application in the android smartphone
Hope you understand how it works.
" Ask your doubts and comments please "
Wednesday, 5 December 2012
How to run an Android Project in a Android phone
How to run an Android Project
in a Android phone
In this tutorial,i am going to show how to run the android project application in a android smart phone.First of all,the developer need to know where the project is saving in the system.
Normally the workspace of the android project of Eclipse will be in the
My Document file itself in Windows XP and in User folder in Windows 7.
First step is to find the workspace of Android Project.It is easy to find by searching the path from the Eclipse.
If you find the workspace folder.Select the ANDROID project which you want to execute in the smartphone.
Consider the steps
Hera consider the bellow example.
1.Selecting the project named helloworld from workspace is shown bellow.
2.In the helloworld folder.Select the bin folder
3.In the bin folder,helloworld.apk file is kept as like in the bellow figure.
4.Copy and paste the helloworld.apk file into your smartphone by using
bluetooth or wire transfering.
bluetooth or wire transfering.
5.After transering the file,the file can be taken where it is copied earlier.
If you use bluetooth for file transfering the file will be in the Bluetooth
folder in the MyFiles folder in the android smartphone.
folder in the MyFiles folder in the android smartphone.
6.Select the file.After selecting the user interface provide an option to
Instal or Cancel.
Instal or Cancel.
7.Select Instal to instal the application in the smart phone.
8.After instalation,the shortcut will be available in the icons in the phone.
9.In this case,the icon called helloworld with default android icon will be
available along with the other shortcuts.
available along with the other shortcuts.
10.Select the icon.Then the output will be shown as like in the emulator in
the Eclipse.
the Eclipse.
Hope you all understand.
"Please mention comments and queries"
Tuesday, 4 December 2012
Android Detect Internet Connection Status
Android Detect Internet Connection Status
In most of the application running in android needs internet.So it is very important in every application to check whether the internet is available or not.
STEP BY STEP
1.Create a new Android Project.
2.After creating the project,add the required permissions in your
AndroidManifest.xml file.
AndroidManifest.xml file.
- To access the internet we need internet permission.
- To detect network status we need ACCESS_NETWORK_STATE permission.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.detectinternetconnection"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".AndroidDetectInternetConnectionActivity"
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>
<!-- Internet Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Network State Permissions -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
- To add the permission manually.Take AndroidManifest.xml
- Then take Permissions-->Add-->Uses Permissions-->Select the required permissions from the combo box provided.
3.Create a class file named as ConnectionDetector.java and apply the
following code.
following code.
4.Whenever user needs to check the internet connection,we use the function
called isConnectingToInternet()
5.In this tutorial,i am placing a button to show the internet status by a click.
6.Open the main.xml file and copy the bellow code.
|
Subscribe to:
Posts (Atom)
THIS IS FEATURED POST 1 TITLE
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
THIS IS FEATURED POST 2 TITLE
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
THIS IS FEATURED POST 3 TITLE
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
THIS IS FEATURED POST 4 TITLE
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam


























