Tuesday, June 30, 2015

Creating your first android application using Android Studio Part 1

This lesson shows how to create a new project using Android Studio.

Below screen show the options on starting Android Studio.

Select Start a new Android Studio Project. New screen as shown below will open. Enter all the fields - Application name, project location ( package name is also editable) then Click Next.
Choose the Android version for your target audience. After selecting API versions click Next
Next select the Activity Home screen for your application. Android studio provides in built code sample for various home screen layouts. Please choose the basic one - blank activity for learning purpose for now.


Next give proper name to your activity default one is MainActivity and we will continue with this only and select Finish.

After this Android studio will create all necessary folders and files for your project and open the below window for working on your project.


Lets first understand the project structure before working on project.

An Android project contains everything that defines your Android app, from app source code to build configurations and test code. The SDK tools require that your projects follow a specific structure so it can compile and package your application correctly.  Below screenshot 
.idea
Directory for IntelliJ IDEA settings.
app
Application module directories and files.
build
This directory stories the build output for all project modules.
gradle
Contains the gradler-wrapper files.
.gitignore
Specifies the untracked files that Git should ignore.
build.gradle
Customizable properties for the build system. You can edit this file to specify the default build settings used by the application modules and also set the location of your keystore and key alias so that the build tools can sign your application when building in release mode. This file is integral to the project, so maintain it in a source revision control system.
gradle.properties
Project-wide Gradle settings.
gradlew
Gradle startup script for Unix.
gradlew.bat
Gradle startup script for Windows.
local.properties
Customizable computer-specific properties for the build system, such as the path to the SDK installation. Because the content of the file is specific to the local installation of the SDK, the local.properties should not be maintained in a source revision control system.
.iml
Module file created by the IntelliJ IDEA to store module information.
settings.gradle
Specifies the sub-projects to build.

We will continue in next Part...

Friday, January 27, 2012

How to use ExpandableListView

Working with ExpandableListView is very complex, so to make things simpler I will explain you how to use this ListView in few simple steps. This example will display 3 category of vehicles in a ExpandableList.

Firstly we will create the Layout files for Main Activity, GroupView and ChildView Layout.
MainActivity: main.xml


<?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" >
    <ExpandableListView
        android:id="@+id/listView"
        android:layout_width="match_parent"
        android:layout_height="fill_parent" >
    </ExpandableListView>
</LinearLayout>

Thursday, December 29, 2011

How to Root Samsung Galaxy SL I9003 on Gingerbread 2.3.6 DDKP1/DDKP2 Firmware

This tutorial will guide you to root your Samsung Galaxy SL GT-I9003 with latest DDKP2 Gingerbread 2.3.6 firmwares. So, before you proceed ensure that you are on the DDKP2 versions. To check visit the path Settings > About Phone > Firmware Version where it will show DDKP1 / DDKP2 2.3.6. Just in case if it shown any other firmware version then this article is not for you.
Disclaimer: We should not be held responsible in any manner just in case if anything wrong happens to your device, which is a very unlikely event if you follow the procedure which is mentioned below.

Rooting Information: Please note that once you root the device the warranty will get void, so keep a note of this. The only way with which you can revoke the root access is that you need to again re apply the firmware update of DDKP1 or DDKP2 so that the warranty will get void.
Many of the Users ask us in the comments section on what is Rooting and what are its advantages.

What is Rooting and its Advantages:
Rooting is a process wherein the system files are provided with the access by the third party applications due to which the customization becomes possible.
Rooting allows you to customize the phone with the help of custom ROMs and also allows you to make use of other apps which require the rooting access.
The only disadvantage is that the warranty gets void, though it can be regained by updating with any of the stock or default firmwares.
So, let’s check out on what are the list of Pre Requisites you need to follow before moving to the procedure.