Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Monday, 9 December 2013

Build your first Hello World Android app Tutorial 2

We continue our series on Android apps. This post will help you create your first basic  ’Hello Word’ Android app and run it.  This app will display “Hello World ! ” on your device/emulator. It is the simplest program available in any programming language. It is  traditionally used to help beginners with the most basic syntax of Android development . It is also used to verify that the environment you have set up on your system for Android development is operating correctly.
For developing an Android app on your PC or laptop, you need to set up an Android development environment on your computer. You can do that by following our first post in the series here.

Once you set up your android development environment. Follow these simple steps:

Step 1 : Open Eclipse from ADT bundle –>Eclipse folder.




While opening Eclipse, a pop-up window will ask for a workspace folder. Select the folder in your hard drive where you would like to store your Android application projects.

Step 2 : Create a new Android application project by selecting File –> New –> Android Application Project.


Step 3 : Fill in your Android project details

Give  the application a name such as ” My First Android App “.  This name will be displayed in the app menu once you install this app on an Android device or an emulator. Name the project “First App” and type in a  package name where you would like to store all your Java files.  Make sure that  you select a unique package name (example: startup.village or your firstname.lastname) and type it in lower case keys to adhere with the coding standards.


Step 4 : Locate the project folder and expand it 

Eclipse will now show the user interface of your app (Graphical Layout of activity_mail.xml) with a ” Hello World ” TextView widget right in the middle of it by default.  You can also see a newly created project folder in the package explorer window with the given project name. Expand that folder to view files.


Your Hello World App is almost ready to run but before going ahead let us take a look at the folders and files in your projects folder for a better understanding.


src  : The ‘src’ folder  or the source folder contains your package name and Java files are stored in it.
res  :  The “res” folder or the resource folder stores all your  user interface design xml files, images,sound, videos etc. that will be used in your app.
R.java  :  You can find R.java file in the gen folder. R.java is where you have access to anything you have in your resources folder.
AndroidManifest.xml : Android manifest contains essential information about the application, information the system must have before it can run any of the application’s code.


Step  5  : Run your app 

Run your app for the first time by clicking on the ” Run ” button and select Run As –> Android Application.  The Android virtual device (AVD/emulator) will automatically pop up and run the application in it.


In case you have not set up an Android device , you can do it by following our previous article. You can also connect your “USB Debugging” enabled android smartphone/tablet and install this app in it.


Please watch this space for more Android development tutorials. If you have any doubts regarding this post, you can post your queries in the comment section below and we will be happy to help you.









Sunday, 1 December 2013

make an Android app on your computer - Tutorial 1

We are launching a new series where we will teach you everything that you need to know about making an Android app. It does not matter if you cannot afford a fancy Android tablet or a smartphone. We begin this series with a small tutorial on how to make an app using your laptop. All Android development tools are available on the web for free. You can start developing apps for Androids by following some simple steps described below:

System Requirement 

Development for Android can be done on any reasonably-sized computer with Windows or Linux. For a decent experience, a computer or laptop with the following configuration is recommended: a 2.0 GHz CPU with at least 3 GB of RAM and 1 GB of available hard disk space.  You don’t require an Android device to start developing as you can test your app in the Android virtual device that comes with the Android Development Tools Bundle.


Software Requirements 

Android Development Tools Bundle (contains Eclispse,  Android SDK, Device Emulator)
Java Development Kit or JDK (6 or 7)
Follow the steps below to set up an Android development environment:

Step 1 : Download JDK from the following Link



Now Install Java using the downloaded “jdk-7-windows-i586″  just like you install any other software.

Step 2 : Download ADT Bundle from the following link



Step 3 : Extract ADT bundle to a specific folder

Once you download the ADT Bundle , you will get a zip file named “adt-bundle-windows-x86″ which is roughly 400 MB in size.
Extract this zip file to any specific folder where you would like to set up your Android development tools.
Open that  folder to find two folders “Eclispe” and “sdk”. Open the eclipse folder.




Step 4 : Open Eclipse

In Eclipse folder click on the Eclipse icon.


Step 5 : Select your projects folder

Now the Android development tools will launch eclipse for the first time. It will take a while for it to set up until you reach the following screen:


Select the folder where you want your Android development projects to be stored and click OK.  Eclipse will be loaded and you are all set to start developing apps for Android. To start an Android app development project select  File –> New –> Android Application Project. 


Step 6 : Create an Android Virtual Device (AVD)

In case you don’t have an Android Device , you can easily create a virtual device by selecting Window –> AVD Manager –> New


In the following window, Give a name to your virtual device and Select 4.0 “Nexus S ” for device and Android 4.2 as target and click OK


Your virtual device is ready now and your Android development project can be tested. The Virtual device will pop up automatically when you run your project for testing. Be patient as it may take up to 5 mins for the device to load entirely.

Now you are all set to start developing your own Android apps. If you have any doubts regarding this post or get stuck while trying to set up an android development environment, you can post your queries in the comment section below and we will be happy to help you. we will post the second tutorial in the coming week. keep checking.
Happy Coding!














Saturday, 30 November 2013

Create you own android app free


Many people have asked me how to make their own android app so here is the tutorials.

Hi people out there today i am going to give you the most simple trick to make your own android app for your website , blog or anything, so that people can also browse your site easily by their android mobile phones.



First go to the following website and click create now - Link
And click Create now as in image below -



After that select the option you will prefer , suppose you want to make an android app for your website then you should click on the link that says website , if you want to make an android app for and pdf document then you should select the second option , and so on the third option.

If you wanna create an android app for your website click website , and a form like this will appear.



Fill out the form .
Give the link of the website that you want to create app for
Give the name of the app like 'cyber tycoon'.
Add a description for your website in the description box .
Chose  a custom icon if you want so.
now choose the category as blog don't change it otherwise your all will not work.

After clicking create app you will get  a form like this



Just fill up the form and click sign up and your account will be created .

And now you will be redirected to the download page of your app .
Now download the app and  upload it in and site that you would like  your fans to download from like , mediafire,4shared,google play,4mobile and much more.

If you want me to give you an tutorial on how to make an android game then comment below.