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
$ 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.
3. Goto MainActivity.Java and add the three lines (without the comments!).
public class MainActivity extends Activity
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState)
//<<<<<<<< Add these three lines <<<<<
TextView text = new TextView(this);
text.setText("Hello World, Android");
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.
Step 4: Another App to Build/
Step 5: Other Tutorials.
Step 7: Other Ways to Develop Software.