loading

Traditionally if you wanted to build an application for Android, you had
to install a set of programs on the desktop computer. Doing so could cause a majority of problems.

:

$ gcc progname.c -o progname

or

$ ./config

$ make

$ sudo make install

Step 1: An Environment to Develop Code.

Now there are Android application
environments now for direct use on Android such as the Nexus 7. Such an application is called AIDE (Android integrated development environment). You can get Aide directly from Google play and download it directly to your device.

Step 2: Starting and Using the Environment.

1. Get AIDE. It can be downloaded from the Play™ store.

2. Open up AIDE and it will ask to create a new project.

AppName: HelloWorld

PackageName: com.meetdageeks.HelloWorld

3. Goto MainActivity.Java and add the three lines (without the comments!).

[code]

package com.HelloWorld;
import android.app.*;

import android.os.*;

import android.view.*;

import android.widget.*;

public class MainActivity extends Activity

{

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

@Override

public void onCreate(Bundle savedInstanceState)

{

super.onCreate(savedInstanceState);

//setContentView(R.layout.main);

//<<<<<<<< Add these three lines <<<<<

TextView text = new TextView(this);

text.setText("Hello World, Android");

setContentView(text);

//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

}

}

[/code]


4. Click the 3 dots (or dashes) in the top right and hit run. It may ask you to allow installation from unknown sources. Done!

Step 3: Finishing Up.

And you can check it from the installed apps lists.
Written from the same Android that created the project.

Note You still can develop html, javascript. and css applications without a compiler.

Step 4: Another App to Build/

Step 6: Htrnl, Javascript, and Css.

In progress.

Step 7: Other Ways to Develop Software.

In progress.

<p>great help =)</p>
<p>Thanx.</p>
<p>Cool project.</p>
<p>That's cool, I wasn't aware you could develop for the Nexus while using it. </p>
<p>Many thanks to the people who developed aide.</p>

About This Instructable

6,122views

35favorites

License:

Bio: computoman.blogspot.com Bytesize articles instead of a trilogy in one post.
More by Computothought:Coffeepot meals Easy sun hat Easy cakes and pies. 
Add instructable to: