Android Programming Society Of GTBIT

Online Courses

Modern era is powered with INTERNET, its not always paying heavy bills for some chit chats and facebook scrolling  :p .
Here is a way you can save ample bucks and learn as well..
Spending healthy amounts on learning new courses in our locality and cherishing ourselves with a piece of hard bond paper( also known as certificate) is a common tradition and a culture among us.

There are many other options available as well ,which suits your pocket and intensifies your brain muscles .
Some online study course providers which offers many courses(MANY TIMES FREE) on various grounds and technologies. #keepLearning 


Come Join Us !

Play games? Use apps? Wonder how to make them? Want to learn how to make cool apps and Games?
Android techies GTBIT is conducting fast track recruitment for fresh batches(those who missed last time or couldn't make it) for ANDROID DEVELOPMENT and GAME DEVELOPMENT(UNITY3D).
WHEN : 17th feb 2016,Wednesday
WHERE : lab 16, lab block
TIME : 1.30 PM to 3.00 PM
For more info: -
WhatsApp at: Ashish 9899840966

Best Free Android Tutorials

Free Websites

As a beginner, it is best to start with Android based websites which will give you a detailed description of all the aspects of an Android App (i.e. how does it look and feel) along with the capabilities of an Android platform.

1. Official Developer Tutorial 
2. Official Developer Tutorials Community 
3. VogelaAndroid 
4. Android Tutorials By Core Servlets 
5. Android Hive
6. Java Code Geeks
7. Edumobile 
8. HelloAndroidTutorialForAndroid
9. Marakana Android Tutorial 
10. HigherPass
11.  Tutorial By TutsPlusLearn Android
12.Android Programmer Guru 
13. Newboston Tutorial
14. Android Example

Free Video Tutorials

These video tutorials are a very effective way to start out with Android. The massive tutorial series available online contains tons of free content, which is bound to teach you coding in the best possible manner
  1. By Udemy
  2. By OreillyMedia
  3. By MarakanaTechTV
  4. By Android User Group
  5. XDA Developers
  6. Other YouTube Playlists

Free E-books

The web is loaded with hundreds of free e-books on Android programming which contain all the fundamental concepts pertaining to the language, both at the beginner as well as advanced levels. You will not only be introduced to the language but will also get to learn important application like creating user interface, connecting to the network, storing data, etc.
  1. Android Tutorial By Stanford University
  2. The Complete Android Guide
  3. Android Tutorial
  4. Commonsware Android
  5. Andbook
  6. E Reading Llib Android eBook
  7. App Inventor eBook
  8. Android Security eBook

Android Device Manager

ADM is an amazing tool which lets you locate your phone from a browser. It allows you to ring it if you’re trying to locate your phone in a room and remotely wipe the device if it goes missing.
If you have an Android device, you already have it and you should take 20 seconds to make sure it’s activated. Go to your apps list and Google settings and activate ADM from there. You will then need to go to Settings>Security>Device Administators to make sure ADM has admin rights, and you’re all done!
You can check to see if it’s working by going to this address on a PC:

Draw via Touch Android

Draw with a Canvas

When you're writing an application in which you would like to perform specialized drawing and/or control the animation of graphics, you should do so by drawing through a Canvas. A Canvas works for you as a pretense, or interface, to the actual surface upon which your graphics will be drawn — it holds all of your "draw" calls. Via the Canvas, your drawing is actually performed upon an underlying Bitmap, which is placed into the window.

The framework divides drawing into two areas:
  • What to draw, handled by Canvas
  • How to draw, handled by Paint.
For instance, Canvas provides a method to draw a line, while Paint provides methods to define that line's color.Canvas has a method to draw a rectangle, while Paint defines whether to fill that rectangle with a color or leave it empty. Simply put, Canvas defines shapes that you can draw on the screen, while Paint defines the color, style, font, and so forth of each shape you draw.

ListView In Android

In Android, ListView let you arranges components in a vertical scrollable list.

                                            DOWNLOAD LISTVIEW PACKAGE

   package com.example.listvieww;

import android.os.Bundle;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class MainActivity extends ListActivity {
String classes[]={"MainActivity2","bavvy","cassy"};
 protected void onCreate(Bundle savedInstanceState) {
  setListAdapter(new ArrayAdapter<String>(MainActivity.this,android.R.layout.simple_list_item_1,classes));

 protected void onListItemClick(ListView l, View v, int position, long id) {
  // TODO Auto-generated method stub
  String savvy=classes[position];
  super.onListItemClick(l, v, position, id);
  Class ourClass=Class.forName("com.example.listvieww."+savvy);
  Intent ourIntent=new Intent(MainActivity.this,ourClass);
  catch (ClassNotFoundException e){



Using Intents In Android App.

There are two types of intents:
  • Explicit intents specify the component to start by name (the fully-qualified class name). You'll typically use an explicit intent to start a component in your own app, because you know the class name of the activity or service you want to start. For example, start a new activity in response to a user action or start a service to download a file in the background.
  • Implicit intents do not name a specific component, but instead declare a general action to perform, which allows a component from another app to handle it. For example, if you want to show the user a location on a map, you can use an implicit intent to request that another capable app show a specified location on a map.
When you create an explicit intent to start an activity or service, the system immediately starts the app component specified in the Intent object.
Figure 1. Illustration of how an implicit intent is delivered through the system to start another activity: [1] Activity A creates an Intent with an action description and passes it to startActivity(). [2] The Android System searches all apps for an intent filter that matches the intent. When a match is found, [3] the system starts the matching activity (Activity B) by invoking itsonCreate() method and passing it the Intent.
When you create an implicit intent, the Android system finds the appropriate component to start by comparing the contents of the intent to the intent filters declared in the manifest file of other apps on the device. If the intent matches an intent filter, the system starts that component and delivers it the Intent object. If multiple intent filters are compatible, the system displays a dialog so the user can pick which app to use.
An intent filter is an expression in an app's manifest file that specifies the type of intents that the component would like to receive. For instance, by declaring an intent filter for an activity, you make it possible for other apps to directly start your activity with a certain kind of intent. Likewise, if you do not declare any intent filters for an activity, then it can be started only with an explicit intent.
Caution: To ensure your app is secure, always use an explicit intent when starting a Service and do not declare intent filters for your services. Using an implicit intent to start a service is a security hazard because you cannot be certain what service will respond to the intent, and the user cannot see which service starts.

                                      EXPLICIT INTENT
                                  DOWNLOAD PACKAGE

package com.example.bavvy;

import android.os.Bundle;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends Activity {
 EditText e1;
 Button b1;

 protected void onCreate(Bundle savedInstanceState) {
  e1=(EditText) findViewById(;
  b1=(Button) findViewById(;
  b1.setOnClickListener(new OnClickListener() {
   public void onClick(View v) {
    Intent intent=new Intent(MainActivity.this, Second.class);
    intent.putExtra("thetext", e1.getText().toString());
    // TODO Auto-generated method stub
  } );

 public boolean onCreateOptionsMenu(Menu menu) {
  // Inflate the menu; this adds items to the action bar if it is present.
  getMenuInflater().inflate(, menu);
  return true;