You CAN write programs on Android devices :
RFO BASIC! is a dialect of Dartmouth Basic that allows you to write and run programs directly on your Android device. In addition to the traditional Basic features, your have access to:
Graphics (with Multi-touch),
Data Structures such as:Array/List/Stack
Text and Byte file I/O,
User defined functions,
TCP/IP Client and Server Sockets
BASIC! programs may be complied into applications. There are two processes provided for this. One process generates a home screen shortcut but requires BASIC! installed to run. The other process generates a stand alone application that does not need BASIC! installed. The resulting application can be offered on the Android Market.
https://market.android.com/details?id=c ... ullVersion
Mobile BASIC is an Android Application that allows you to easily develop small program directly on your Android Phone or Tablet. Mobile BASIC can be used to write a variety of applications including:- Personal Productivity, Business, Education and Special Interest Applications.
o Structured Dialect of BASIC:- No line numbers, IF THEN ELSEIF ELSE ENDING, REPEAT UNTIL, WHILE ENDWHILE etc.
o Strongly Typed Language with 8 data types: BOOLEAN, BYTE, SHORT, INTEGER, LONG, FLOAT
and a lot of programming languages are available :
Light Basic Interpreter
Lumah – Lua