Thursday, October 20, 2011

Android HoneyComb emulator facing performance issues


I have observed the Android 3.0 Honeycomb emulator is very slow compare to the other version of emulator like mobile .Google have agreed that it has some performance related issues in it .As of for temporary purpose i have minimized the slowness.

Things i followed to improve the android 3.0 Honeycomb emulator performance.

1.Increase the RAM Size of your system to more than 2 GB and 1GB in emulator .
2.Increase SD card size .
3.Add  property in AndroidManifest.xml as android:hardwareAccelerated="true".
4.Clear the temporary files every day before you  start eclipse and Emulator.Because it creates a lot of files in temp and  occupies lot of memory in C drive .

I hope it will solve the problem some extend.................:)

Users Features of Android 4.0

Simple, beautiful, beyond smart

Android 4.0 builds on the things people love most about Android — easy multitasking, rich notifications, customizable home screens, resizable widgets, and deep interactivity — and adds powerful new ways of communicating and sharing.

Check more on this here Android 4.0 for Users

New Developer Features of Android 4.0 Version


Android 4.0 brings a unified UI framework that lets developers create elegant, innovative apps for phones, tablets, and more. It includes all of the familiar Android 3.x interface elements and APIs — fragments, content loaders, Action Bar, rich notifications, resizable home screen widgets, and more — as well as new elements and APIs.
For developers, the unified UI framework in Android 4.0 means new UI tools, consistent design practices, simplified code and resources, and streamlined development across the range of Android-powered devices.


Check the features here Android Android 4.0 Developer Features

Officially Unveiled Android 4.0 ice cream sandwich


Google and Samsung together unveiled the New Android 4.0 and level 13 which is very impressive and advanced compare to older version. It is completely mobile supported version. 


It has many new stunning features .

Simple, beautiful, beyond smart

Android 4.0 builds on the things people love most about Android — easy multitasking, rich notifications, customizable home screens, resizable widgets, and deep interactivity — and adds powerful new ways of communicating and sharing.

It Has Refined, evolved UI.
 You can read more on this here Android 4.0 User Guide

 

Wednesday, September 21, 2011

Android AVD Creation

Set up the AVD

Go to windows -> Android SDK and AVD Manager


 
 Click new


Give a name to the AVD and fill the other information as follows and click Create AVD



  After Create AVD you will see like this


Now you need to press Start and Lunch.
And Last but not the least RUN the Project ---> Run as Android Application.



This is how our first program look like




For Project creation See this link http://adroit-android.blogspot.com/2011/09/android-project-setup.html

Tuesday, September 20, 2011

Android Project Setup

Creating Android Project

Here we going to create Android project which will display Hello world message.
Enter Clt + N the new resource dialog will open, type Android and select Android Project



New project window will open enter the Project name select the Build target 2.2 or higher . Enter application name and package name.



Eclipse will create project with following structure



Android Project Structure

Src : This folder have all the java files
Gen : This folder contain R.java which is a android generated file . R.java contain id for all of the resources under the ‘Res’ folder which can be used in the java file to access those resources.
Res : Contains project resource files
Drawable : all the images and theme files store in this directory
Layout : This folder contain the xml files which having the screen layout.
String.xml : all the hard coded values are stored in this file. This is use full for multi-language

AndroidManifest.xml : This file have application lever configuration information. This file include declaration of all activities ,Services , User Permission , Screen orientation etc.



The main.xml will have the layout for the display panel which shows the Hello world message. The panel specify the main layout and a Text field in it which display the message.


In the above panel the TextField reading the message from the string.xml file the content of which will be look like bellow.


The Android generated R.java will look like this at this stage.




Android Activity life cycle.





 In the above diagram we can see that the onCreate method is the first method to execute. The layout for the activity has to specify in the onCreate method using the method setContentView(). Here you can see that how the android generated R class element used to refer to the resource file.





After completion of project creation we need to run the application , for that we need android AVD(Android Virtual Machine).The Procedure for Creating AVD........follow this Android AVD

http://adroit-android.blogspot.com/2011/09/android-avd-creation.html

Monday, September 19, 2011

Using link text or button in Android to redirect to url given

Using link text or button in Android

Here use the below code for link ,when clicked on the link or any linkItem it will redirect to the  page with given url .
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(http://www.adroit-android.blogspot.com/));
            startActivity(browserIntent);

Wednesday, September 14, 2011

Android Environment Setup


This tutorial will help to set up the environment for Android ,give an idea of Android project structure and an example program to start with Android.

Set up Eclipse

1. Download Eclipse from http://www.eclipse.org/downloads/ and setup the Eclipse

2. Install Android SDK from http://developer.android.com/sdk/index.html select the .exe

3. Install the Android plugin for Eclipse

Go to Help -> Install New Software


Enter the plugin URL as https://dl-ssl.google.com/android/eclipse/
and click Add
 
Enter the plugin name and click OK. This will load all the components of the plugin
 
Click Select All and click Next
 
Click Next

 

Accept the license agreement and click Finish

 
Once the plugin installation finish it will ask to restart the Eclipse

Now loading an Android SDK in eclipse.

SetUp Android Environment 


Go to Windows -> Preferences.


 
Select Android from the left panel and in the right panel brows to the Android SDK location and click OK



Next Apply and Ok .