Dec 7, 2011

How to send Post data to PHP server in android

public boolean PostData() {
try {
// creating default Client
HttpClient mClient = new DefaultHttpClient();
// Connect URL
StringBuilder sb=new StringBuilder("URL_OF_WEB_SERVER");
// Establishing post connection to Specified URL
HttpPost mpost = new HttpPost(sb.toString());
// NameValuePair : A simple class encapsulating an attribute/value pair.
// List Size is 8 atributes
List nameValuepairs = new ArrayList(8);
// adding attributes to List
nameValuepairs.add(new BasicNameValuePair(name1,val1));
nameValuepairs.add(new BasicNameValuePair(name2,val2));
nameValuepairs.add(new BasicNameValuePair(name3,val3));
nameValuepairs.add(new BasicNameValuePair(name3,val3));
nameValuepairs.add(new BasicNameValuePair(name4,val4);
nameValuepairs.add(new BasicNameValuePair(name5,val5));
nameValuepairs.add(new BasicNameValuePair(name6,val6);
nameValuepairs.add(new BasicNameValuePair(name7,val7));
// UrlEncodedFormEntity :An entity composed of a list of url-encoded pairs. This is typically
// useful while sending an HTTP POST request.
mpost.setEntity(new UrlEncodedFormEntity(nameValuepairs));
// excute request and get response
HttpResponse responce = mClient.execute(mpost);
// get response content
HttpEntity entity = responce.getEntity();
// convert stream to String
BufferedReader buf = new BufferedReader(new InputStreamReader(entity.getContent()));
StringBuilder sb1 = new StringBuilder();
String line = null;
while ((line = buf.readLine()) != null) {
sb1.append(line+"\n");
}
Toast.makeText(getApplicationContext(), sb1.toString()+"",1).show();
tv.setText(sb1.toString());
isPosted = true;
} catch (UnsupportedEncodingException e) {
Log.w(" error ", e.toString());
} catch (Exception e) {
Log.w(" error ", e.toString());
}
return isPosted;
}

Retain ( Get 2 ) precision with Doubles in java

private void getRound() {
// this is very simple and interesting
double a = 5, b = 3, c;
c = a / b;
System.out.println(" round val is " + c);

// round val is : 1.6666666666666667
// if you want to only two precision point with double we
// can use formate option in String
// which takes 2 parameters one is formte specifier which
// shows dicimal places another double value
String s = String.format("%.2f", c);
double val = Double.parseDouble(s);
System.out.println(" val is :" + val);
// now out put will be : val is :1.67
}

Nov 21, 2011

Print special symbols like " , / , \ . ..

Hi Every ody ,

I some case we have to print some special symbols like ' , " , / , like

that case simply add (forward slash ) \ before printing special symbol

Example :
-----------
here i want to print below message :

Hello " tutorials-Android " by sravan

then use
String str="Hello \" tutorials-Android \" by sravan";

Program :
-----------


public class Demo {
public static void main(String[] args) {
//String str="Hello\"hai\" wat dng";
String str="Hello \" tutorials-Android \" by sravan";
System.out.println(str);

}

}


out Put :
--------

Hello " tutorials-Android " by sravan

Nov 14, 2011

How to Solve OutOfMemory Error (OOM) in Android ?


When you try to decode large files on your Android device (where you have only 16MB memory available) you wil surely get an OutOfMemory exception.

We have found that if you create a temp storage and pass it to BitmapFactory before decoding might help.

So, before using BitmapFactory.decodeFile() create a byte array of 16kb and pass it to temp storage in decoding process.

BitmapFactory.Options options = new BitmapFactory.Options();
options.inTempStorage = new byte[16*1024];

Bitmap bitmapImage = BitmapFactory.decodeFile(path,opt);

Also you might consider passing your own outputstream that streams out to server or other storage to minimize memory consumtion during the process.

PS, do not forget to bitmapImage.recycle() after usage.

Also consider using options.inSampleSize with values other than 1. From SDK: If set to a value > 1, requests the decoder to subsample the original image, returning a smaller image to save memory. (1 -> decodes full size; 2 -> decodes 1/4th size; 4 -> decode 1/16th size). Because you rarely need to show and have full size bitmap images on your phone. For manipulations smaller sizes are usually enough.

OutOfMemory exception when decoding with BitmapFactory



Google Android, Memory, and Bitmaps

Working on mobile devices forces one to make conscious decisions regarding coding choices, if for no other reason that resources are scarce (memory, screen size, bandwidth). Taking the easy route and ignoring wise mobile programming practices can take what could be a promising application and make it a disappointing user experience.

If you’ve spent any time with the Google Android SDK, and have tried to read a JPEG into a Bitmap using Media.getBitmap, you’ve almost certainly run into this little gem of an error message:

bitmap size exceeds VM budget

Unfortunately, since Android caps all applications’ VMs at 16MB in size, it only takes one or two big image reads to get you into trouble, regardless of all the garbage collection and Bitmap recycles you may try (see code snippet at the end of this post for more on that).

So, what’s a programmer to do?

Well, the only thing one can do is to read only what you need into memory. That means that you won’t be able to read in that 10MB jpeg sitting on your phone (at least, you won’t be able to read it reliably and / or repeatably) without trimming it down a bit.

The code below will do this for you; rather than calling Media.getBitmap, use this readBitmap function instead:





// Read bitmap
public Bitmap readBitmap(Uri selectedImage) {
Bitmap bm = null;
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 5;
AssetFileDescriptor fileDescriptor =null;
try {
fileDescriptor = this.getContentResolver().openAssetFileDescriptor(selectedImage,”r”);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
finally{
try {
bm = BitmapFactory.decodeFileDescriptor(fileDescriptor.getFileDescriptor(), null, options);
fileDescriptor.close();
} catch (IOException e) {
e.printStackTrace();
}
}
return bm;
}


The magic fairy dust in this function that allows you to trim down large bitmaps into digestible sizes is the options.inSampleSize property. inSampleSize – in this instance – takes a bitmap and reduces its height and width to 20% (1/5) of its original size. The larger the value of inSampleSize N (where N=5 in our example), the more the bitmap is reduced in size.

There’s also another coding practice that one should always use when dealing with Bitmaps in Android, and that is the use of the Bitmap recycle() method. The recycle() method frees up the memory associated with a bitmap’s pixels, and marks the bitmap as “dead”, meaning it will throw an exception if getPixels() or setPixels() is called, and will draw nothing.

In my projects, I have a helper function that does cleanup when I am finished using a Bitmap, named clearBitmap:

// Clear bitmap

public static void clearBitmap(Bitmap bm) {

bm.recycle();

System.gc();

}



Dealing with memory errors on Android apps seems to be the “problem child” issue that crops up the most (like too many threads on Blackberry apps – different post for a different day).

But like parenting a problem child, what’s called for is attention and intention to mitigate havoc wreaked.

Nov 11, 2011

Reading Names And Contacts In Android and Storing In Bean

import java.io.InputStream;
import profileit.utils.ContactsBean;
import profileit.utils.StaticUtils;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.os.Handler;
import android.provider.ContactsContract;
import android.provider.ContactsContract.Data;
import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.provider.ContactsContract.CommonDataKinds.StructuredName;
import android.view.WindowManager;

public class Splash extends Activity {
private final int DISPLAY_LENGTH = 2000;
static ContentResolver cr;
static Cursor cursor;
@Override
public void onCreate(Bundle si) {
super.onCreate(si);
// title bar removing
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.splash);
// call next activity specified delay time
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
// clear utils if necessary
StaticUtils.sALContacts.clear();
StaticUtils.sALNames.clear();

getHome();

}

}, DISPLAY_LENGTH);
}
// gettings Contacts
public void getHome() {

cr = getContentResolver();
Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, null,
null, null, null);

if (cur.getCount() > 0) {
int count = 0;
while (cur.moveToNext()) {
// created bean for Storing data as a object
ContactsBean bean = new ContactsBean();
// getting contact id as a String
String contid = cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
// getting contact id as a long type
long contactId = cur.getLong(cur.getColumnIndex(ContactsContract.Contacts._ID));
// Log.e("iteratin started" + ++count, contid);
// fecthing contact name using contact ID allocated by OS
String name = getContacName(contactId);
if (name != null) {
// fecthing contact number using contact ID allocated by OS
String cNumber = getContactNumber(contactId);
if (cNumber != null) {
// Storing number in Bean
bean.setmPhoneNumber(cNumber);
} else {
bean.setmPhoneNumber(StaticUtils.sTstNoNumbMesg);
}
//fecthing Email using contact ID
String cEmail = StaticUtils.getContactEmail(cr, contactId);
if (cEmail != null) {
// Storing Email in Bean
bean.setmEmail(cEmail);
} else {
bean.setmEmail(StaticUtils.sTstNoEmailMesg);
}
//fecthing photo using contact ID, it returns as a stream
InputStream is = StaticUtils.getContactPhoto(cr, contactId);
if (is != null) {
// Storing photo in Bean
bean.setmPhoto(true);
} else {
bean.setmPhoto(!true);
}
if (cNumber != null || cEmail != null || is != null) {
bean.setmContact_Id(contid);
bean.setmName(name);
// storing Bean object into Arraylist
StaticUtils.sALContacts.add(bean);
// storing names in bean
StaticUtils.sALNames.add(name.toLowerCase());
// Log.e("contact name",StaticUtils.sALNames.toString());
// Log.e("contacts",StaticUtils.sALContacts.toString());
} else {
// Log.e("No contact for",name);
}
} else {
// Log.e("contact name may", "be null");
}
// Log.e("iteratin over" + count, contid);
}
}
}

// fecthing name using contact ID
public String getContacName(long contactId) {
// formarting URI for getting name
cursor = getContentResolver().query(
Data.CONTENT_URI,
new String[] { Data.DATA1 },
Data.CONTACT_ID + "=" + contactId + " and " + Data.MIMETYPE
+ "='" + StructuredName.CONTENT_ITEM_TYPE + "'", null,
null);
if (cursor == null) {
// Log.e("cursor ContacName", "is null");
return null;
} else {
try {
// Log.e("cursor ContacName", "is not null");
if (cursor.moveToFirst()) {
String data = cursor.getString(0);
if (data != null) {
// Log.e("data ContacName", "obj" + data);
return data;
} else {

// Log.e("data ContacName", "is null");
}
} else {
// Log.e("cursor move first ContacName", "failed");
}
} finally {
cursor.close();
}

}

return null;
}

// fecthing number using contact ID
public String getContactNumber(long contactId) {
// formarting URI for getting name
cursor = getContentResolver().query(
Data.CONTENT_URI,
new String[] { Data.DATA1 },
Data.CONTACT_ID + "=" + contactId + " and " + Data.MIMETYPE
+ "='" + Phone.CONTENT_ITEM_TYPE + "'", null, null);
if (cursor == null) {
// Log.e("cursor getPhone", "is null");
return null;
} else {
try {
// Log.e("cursor getPhone", "is not null");
if (cursor.moveToFirst()) {
String data = cursor.getString(0);
if (data != null) {
// Log.e("data getPhone", "obj" + data);
return data;
} else {
// Log.e("data getPhone", "is null");
}
} else {
// Log.e("cursor move first getPhone", "failed");
}
} finally {
cursor.close();
}
}
return null;

}

}

Nov 10, 2011

How to call Android contacts list?

Hi this is very import concept to Read Existing Contacts from Your Emulator or Device

There are three steps to this process.

1) Permissions

Add a permission to read contacts data to your application manifest.

 android:name="android.permission.READ_CONTACTS"/>

2) Calling the Contact Picker

Within your Activity, create an Intent that asks the system to find an Activity that can perform a PICK action from the items in the Contacts URI.

Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);

Call startActivityForResult, passing in this Intent (and a request code integer, PICK_CONTACTin this example). This will cause Android to launch an Activity that's registered to support ACTION_PICKon the People.CONTENT_URI, then return to this Activity when the selection is made (or canceled).

startActivityForResult(intent, PICK_CONTACT);

3) Listening for the Result

Also in your Activity, override the onActivityResult method to listen for the return from the 'select a contact' Activity you launched in step 2. You should check that the returned request code matches the value you're expecting, and that the result code is RESULT_OK.

You can get the URI of the selected contact by calling getData() on the data Intent parameter. To get the name of the selected contact you need to use that URI to create a new query and extract the name from the returned cursor.

@Override
public vo
id onActivityResult(int reqCode, int resultCode, Intent data) {
sup
er.onA


ctivityResult(reqCode, resultCode, data);

switch (reqCode) {
case (PICK_CONTACT) :
if (resultCode == Activity.RESULT_OK) {
Uri contactData = data.getData();
Cursor c = managedQuery(contactData, null, null, null, null);
if (c.moveToFirst()) {
String name = c.getString(c.getColumnIndexOrThrow(People.NAME));
// TODO Whatever you want to do with the selected contact name.
}
}
break;
}
}

Home Screen If No Contacts Contacts










For Online Training :

For Full Source Cliked Here

Oct 25, 2011

Android- Finishing Touches 5- Publishing on the Marketplace






Signing and publishing your application to the android marketplace used to be somewhat difficult, however it is quite simple! This tutorial show you everything you need for getting your application on the market place.

Android- Finishing Touches 4- ad Unit Id & current SDK info







Obtaining the Ad unit Id and talking about the current admob sdk, which is having some problems for applications that use the 2.2 platform.

The main error is :
Parser is not a BridgeXmlBlockParser!

The following classes could not be instantiated:
- com.google.ads.AdView
See the Error Log (Window Show View) for more details.

Android- Finishing Touches 3- Adding an Ad in XML Layout ( Adds )




What’s up guys? In this tutorial we will be adding to the manifest which will reference the admob jar library, and adding an ad within an xml layout that will generate our admob ad.

Android- Finishing Touches 2- Admob Jar & Permissions (Adds Based )




Once you have downloaded the Admob sdk, you will need to add the jar to the project’s build path, so we can use the admob methods. This tutorial shows you how. We will also add the permissions that we will need for admob ads.

Android- Finishing Touches 1- Downloading Admob SDK ( Adds Based SDK )



Near the end of your project? Need to add ads? This tutorial shows you how to download the Admob SDK for android.

Android The Basics 27- Animating a Bitmap




Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Be able to draw custom triangles to a view, or more specifically a canvas
- Understand basic graphic programming
-Animate a bitmap
-subscribe

Android The Basics 26- Drawing Rectangles on a Canvas





Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Learn how to use the canvas, and what it does.
-Set up a custom View class programming it strictly in Java
-subscribe

Android The Basics 25 - Custom View and Constructors





Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-How to build a class that we are going to use for animation.
-Learn briefly about constructors

Android The Basics 24- Setting Fullscreen and Fixed Screen



Android The Basics 24- Setting Fullscreen and Fixed Screen
Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Learn to set your Activity’s orientation permanently as portrait or landscape
-Learn about the requestWindowFeature to get rid of that nasty title
-Learn to set your Activity to fullscreen
-Learn about the and setting up flags
-Bam!
-Some other sweet stuff
-subscribe

Android The Basics 23- Set Wallpaper w Bitmap



Android The Basics 23- Set Wallpaper with a Bitmap

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Setup our wallpaper button
-convert our drawable int into a bitmap
-learn about the set wallpaper command
-Learn about permission

Android The Basics 22- Using an ImageView as a Button





Android The Basics 22- Using an ImageView as a Button

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Set our imageViews to be clickable and act like a button
-create our display ImageView and to have it change when a different Image is clicked

Android The Basics 21- Setting up XML for Wallpaper App




Android The Basics 21- Setting up XML for Wallpaper App
Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback. Sorry about the sound and the rapid movement in this tutorial.
In this lesson you will:-Create tutorial 3-Setup wallpaper app-HorizontalScrollView

Android The Basics 20: Using ListView to open Activities






Android The Basics 20: Using ListView to open Activities

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Create more toast
-Finish ListView

Android The Basics 19: String Array and ListView






Android The Basics 19: String Array and ListView

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-set up a single item for our listview in xml
-Create a String[]

Android The Basics 18: Creating a ScrollView






Android The Basics 17 : Toast to Built-in Themes

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Learn about built in android themes and how to use them
-Learn to show toast messages

Android The Basics 17 : Toast to Built-in Themes





Android The Basics 17 : Toast to Built-in Themes

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Learn about built in android themes and how to use them
-Learn to show toast messages

Android The Basics 16: hardware menu button & Menu inflater items




Android The Basics 16: hardware menu button & Menu inflater items

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-set up a new activity
-set up the menu folder with a custom menu
-learn about the menu inflater
-learn how to access the menu button of the phones hardware

Android The Basics 15: Finish programming our RadioGroup for Style/Gravity




Android The Basics 15: Finish programming our RadioGroup for Style/Gravity

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-learn to program our radio groups
-set up the OnCheckChangedListener
-learn to set our text’s style & gravity

Android The Basics 14: using the getText() and setText() methods




Android The Basics 14: using the getText() and setText() methods

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

pretty boring/lame tutorial, but we will be using some new methods( setText & getText)

In this lesson you will:
-start doing something with the tutorialOne class
-set up some variables
-use the setText & getText methods

Android The Basics 13: Finish new XML and Learn about Weight




Android The Basics 13: Finish new XML and Learn about Weight

In this lesson you will:
-Learn about the weight set up in XML
-set up the gravity as well
-set up our radiogroup in a horzontal linear layout

Android The Basics 12: Setup a More Advanced XML



Android The Basics 12- Setup a More Advanced XML

In this lesson you will:
-Learn about the weight set up in XML
-set up the gravity as well

Android The Basics 11: Button & Sound Review (final)




Android The Basics 11- Button & Sound Review (final)

Here are the acceptable raw types:

http://developer.android.com/guide/appendix/media-formats.html

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Add a sound to the button
-Learn about the final prefix and the difference from defining it for the whole class.
-Thumbs up this video

Android The Basics 10: Introduction to the Button



Android The Basics 10- Introduction to the Button
In this lesson you will:

-Create a new layout called tutorial1.xml

-Create a new class called tutorialOne.java

-Introduction to the defining and using the button to start a new activity

-Maybe understand a little be more about the Activity cycle?!?!?

-set up our new Intent in the android manifest

-Thumbs up this video

Android The Basics 9 : Adding Sound with MediaPlayer



In this lesson you will:
-Add some sound to our Splash Screen in our myMain class
-Learn about the start, pause, & release methods from the MediaPlayer class
-Get a better understanding of why we added the onDestroy, onResume, & onPause methods.
-Understand the differences between setting up a local variable & a variable that can be use by the whole class

Next we will be learning about the how to use the buttons to actually do something!

Android The Basics 8: Intro to Threads (finish splash Activity)




to Threads (finish splash Activity)

In this lesson you will:
-Finish our thread
-Get our splash screen up and running
-Learn about Threads the methods they can include
-Correct some mistakes
-Set up a new activity in the Android Manifest
-Set up the onCreate method for our myMenu class

This video is the 8th in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.

If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

Peace guys,

-Trav

HERE IS THE CODE FOR THIS TUTORIAL

main.java :

package com.mybringback.thebasics;

import android.app.Activity;

import android.content.Intent;

import android.os.Bundle;



public class main extends Activity {

/** Called when the activity is first created. */

@Override

public void onCreate(Bundle TravisIsAwesome) {

super.onCreate(TravisIsAwesome);

setContentView(R.layout.splash);

Thread logoTimer = new Thread(){

public void run(){

try{

sleep(5000);

Intent menuIntent = new Intent(“com.mybringback.thebasics.MENU”);

startActivity(menuIntent);

} catch (InterruptedException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

finally{

finish();

}

}

};

logoTimer.start();

}

}

Android Manifest:




package=”com.mybringback.thebasics”

android:versionCode=”1″

android:versionName=”1.0″>










android:label=”@string/app_name”>












android:label=”@string/app_name”>















menu.java:

package com.mybringback.thebasics;

import android.app.Activity;

import android.os.Bundle;

public class menu extends Activity {

@Override

protected void onCreate(Bundle savedInstanceState) {

// TODO Auto-generated method stub

super.onCreate(savedInstanceState);

setContentView(R.layout.main);

}

@Override

protected void onPause() {

// TODO Auto-generated method stub

super.onPause();

}

}

Android The Basics 7 : Setting up our Splash Activity



Here is the link for learning more about android Activity: http://developer.android.com/reference/android/app/Activity.html

Whats up Bringers, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:

Learn about Activities, and how add the proper layout for an Activity
Start typing some Java.
Create a new class
Learn a little about Threads, and how start creating a Thread variable
This video is the 7th in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.
If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

Android The Basics 6 : Introduction to Java & Raw folder



Android The Basics 6 – Introduction to Java & Raw folder

Supported files:

http://developer.android.com/guide/appendix/media-formats.html

Whats up Bringers, thanks for watching my videos, i would love it if you subscribe and give me some feedback.

Name Range
long -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
int –2,147,483,648 to 2,147,483,647
short — 32,768 to 32,767

I listed what we will be going over in this lesson below, if you know java you may want to just setup the stuff listed below. Because after we set those items up, I will just be quickly going over some java code, and briefly describing what it means. If you are a beginner, you will most likely be confused by the end of this lesson, but I promise you will understand after watching the next few lessons, so, please don’t be discouraged if you don’t completely understand everything mentioned in this tutorial. Just know that it is hard to describe everything in depth within 10 minutes. Thanks again for watching

First

In this lesson you will:
-add to the splash.xml layout
-add another picture to the drawable folder that will be our splash screen.
-add the resource folder “raw” and add a audio clip to it. (.mp3)
-create a new activity/ new Java class called myMenu
-get a very brief understanding of the Java
-Be introduced to creating variables

This video is the 6th in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.

Android The Basics 5 : XML made Simple & Java Intro



Android The Basics 5- XML made Simple & Java Intro

What’s up my peepz? (who says peepz anymore?) This lesson will get you up and running, and even if you are an absolute beginner, you can do it. Please subscribe and thumbs up the video and you will be a pro in no time

In this lesson you will learn:
-XML, the Easy way, using the Graphical Layout
-Accessing Properties Tab (and other tabs) in Eclipse
-Making a Button
-Introduction to the id reference in Java
-New XML functions
-Introduction/Review of how the Manifest calls the Java activity which calls the XML layout
-Create a new XML layout
-HOMEWORK: create 3 different icons and place them in the appropriate folders ( create one icon 150x150px for the high density folder, one 75×75 for medium, and one 35×35 for the low density folder)

This video is the 5 in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.

Android The Basics 4 : XML programming & background image




Android The Basics 4- XML programming & background image

This video is from the Android- The Basics Series from mybringback.com

What’s up my peepz? (who says peepz anymore?) This lesson will get you up and running, and even if you are an absolute beginner, you can do it. Please subscribe and thumbs up the video and you will be a pro in no time

In this lesson you will learn:
-A better understanding of XML
-Adding a Button
-Find coding that even when we don’t remember the exact coding
-Basics of the Linear Layout
-New XML functions
-Adding our picture to the background of our app
-Running our program on the emulator

This video is the 4 in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.

If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

Android The Basics 3 : Intro to XML and Custom Layouts



What’s up my peepz? (who says peepz anymore?) This lesson will get you up and running, and even an absolute beginner can do it. Please subscribe and thumbs up the video and you will be a pro in no time
In this lesson you will learn:
-Fix the error within the project
-clean project
-start the Android emulator
-Start learning XML to create layouts (learn the TextView coding)
-Learn about referencing strings in resources folder

This video is the 3 in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android applications. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.

If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

Setting up a Project and Explaining how to import...




This video is from the mybringback series Android: The Basics

What’s up my peepz? (who says peepz anymore?) This lesson will get you up and running, and even an absolute beginner can do it. Sorry I still have that nasty cold, so please forgive my sniffing noises, my strange nasally voice, and other distractions. Please subscribe and thumbs up the video and you will be a pro in no time

In this lesson you will learn:
-How to set an Android Project in Eclipse
-Understand the basic layout of the project, such as the folders
-How to add a picture to the project that we will later use as a background

This video is the 2 in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.

If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

How to Install Java ,Eclipse ,Android SDK + ADT into Eclipse IDE on Windows OS. (tutorial)






http://www.eclipse.org/downloads/
Android SDK: http://developer.android.com/sdk/index.html
Android ADT: http://developer.android.com/sdk/eclipse-adt.html

Additional help link: http://developer.android.com/sdk/installing.html

Join the forum and use some other great resources for learning android development at www.mybringback.com

What’s up my peepz? (who says peepz anymore?) This lesson will get you up and running, and even if you are an absolute beginner, you can do it. Please subscribe and thumbs up the video and you will be a pro in no time

In this lesson you will learn:

-Installing Eclipse
-Set up the link to the ADT
-Setting up the SDK and different android platforms
-Setting up the AVD

This video is the first in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.

If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

Oct 15, 2011

Android Syllabus briefly

Click on Image for Preview


Android Syllabus




Learn Android Programming which is a mobile operating system that uses a modified version of the Linux kernel. It allows developers to write managed code in the Java language, controlling the device via Google-developed Java libraries. The Android Programming training program covers t
opics like Android introduction, SQL basics, Java basics and many more. This course on Android programming is designed for software developers interested in designing, creating, deploying and testing applications for the Android™ mobile phone platform. It is valuable to both amateurs and experts, who already have experience in developing mobile applications for other platforms.

A ) Introducing Android


  • Installing Development Tools
  • Your First Android™ Application
  • Using the Emulator
  • Android developer tools
  • Eclipse, IDEs and Tools


B ) Building Blocks
  • The Big Picture

  • Application Life Cycle
  • Application Components
  • Using Resources

    C ) Java with AndroidAndroid Syllabus
    • Java as referenced in Android
    • Android™ User Interface
    • The Example Application
    • Design by Declaration
    • Opening Screen Design
    • Using Alternate Resources
    • The About Box
    • Applying Styles
    • Adding a Menu
    • Adding Preferences


    D ) Local Data Storage

    • Adding Preferences
    • Remembering the State of the App
    • Using the Internal File System
    • Accessing SD Cards


    E ) Handling Multiple Activities
    • Usinng Intents
    • Intent Filters

    F ) SQL
    • Introducing SQLite on Android™
    • SQL Basics
    • Database Connectivity
    • Data Binding
    • Using ContentProvider
    • Implementing ContentProvider


    G ) Locating and Sensing
    • Working with Locations
    • Sensors


    H ) Publishing Applications
    • Locating and Sensing
    • Android Market
    • Signing applications and publishing


    I ) Choice of Advanced Topics
    • Text to Speech Conversion
    • Geo tagging
    • Services
    • Multimedia
    • Objectives



    Upon completion of this course, you will be able to,


    Build your own Android apps
    Explain the differences between Android™ and other mobile development environments
    Understand how Android™ applications work, their life cycle, manifest, Intents, and using external resources
    Design and develop useful Android™ applications with compelling user interfaces by using, extending, and creating your own layouts and Views and using Menus
    Use advanced Android features like GPS access, mapping, and the camera
    Target Audience

    This course is designed for software developers interested in designing, creating, deploying and testing applications for the Android™ mobile phone platform. It is valuable to both novices and gurus, who already have experience in developing mobile applications for other platforms.

    Prerequisites

    Experience in Java and Swing is a big plus, but not critical.
  • Main Topics