It’s more fun in programming –
many people consider this kind of stuffs as their fashion way of exploring the
world of technology by developing computer programs and mobile apps that runs
on various platform. The latest trends is developing Apps in Android, why
Android? Now a day, smartphone are widely used by many users where the
powerof Android Operating System runs
dependent on its hardware. To learn Android programming is not a big deal to
cover all programming languages to enable you writes mobile application. However,
basic knowledge in programming is advantage. Basic Android programming was
based (Linux Kernel) on Java, its looks like very similar. For instance,
Android runs dependent on its Software Development Kit (SDK) every time you
create and run the program. To
setup
Android, you must download first the
Android Developer Tools (ADT) bundled that includes everything
you need for developing apps. This package includes the following:
·
Eclipse + ADT plugin
·
Android SDK Tools
·
Android Platform-tools
·
The latest Android platform
·
The latest Android system image for the emulator
It’s not quite difficult to configure if you
follow the steps.
Android comes in many flavors
(version) to taste, and makes sweeter as many flavors to come. For developers,
you must aware the target version wants to develop Apps because the version may
vary the compatibility of hardware in every device. It includes the target device,
if it is design for smartphone, Tablets, or TV. In addition, common issues in
developing Apps are the compatibility of the said versions. It’s not like a
desktop application where the hardware and screen size has minimal issue.
My Android Apps I made will run on other smartphone devices?
Not necessary! Android will run
only on its own hardware compatibility, if you have an Android Phone any Apps
can install on your device. However, as what I have said, it depends on what
version of Android Phone and Apps you have. If you are going to develop Apps,
you must specify the minimum target version in order the other Android users
not get problem during their installation. For instance, make a regular updates
about your Apps by simply giving them a versions.
Android sample code in XML layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".AndroidBasic" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>
Android sample code
package com.test.test;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class AndroidBasic extends
Activity {
@Override
protected
void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_android_basic);
}
@Override
public
boolean onCreateOptionsMenu(Menu menu) {
//
Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.android_basic,
menu);
return
true;
}
}
Keep on exploring Android
Programming, many websites will teach you online regarding this matter. Hope
this is very helpful in Basic understanding in Android Programming.