Is there any way to programm C++ applications on Android? I mean - using your Android device for programming and compiling projects.
-
ggogle first hit "android C++ programming": zdnet.com/blog/burnette/…Mitch Wheat– Mitch Wheat2011-01-02 00:44:10 +00:00Commented Jan 2, 2011 at 0:44
-
5@Mitch - the linked article as well as likely most/all Google hits are about programming C++ apps to run on Android. Which has very little to do with OP's question, which is creating and compiling and running resulted compiled C++ code entirely on Android device (e.g. an Android program serving as IDE and/or C++ compiler)DVK– DVK2011-01-02 00:46:19 +00:00Commented Jan 2, 2011 at 0:46
-
@Mitch: Roman is asking about writing C++ on an Android phone, as opposed to writing C++ on your computer and compiling it to run on Android; your link, however, was about the latter. (This is what DVK was saying, too.)Antal Spector-Zabusky– Antal Spector-Zabusky2011-01-02 00:49:04 +00:00Commented Jan 2, 2011 at 0:49
-
3@Mitch - the point is, if someone HAS an android device and nothing else (say on vacation/flight/other travel), or an Android "PC" replacement (think 10" tablets), and they'd rather hack/learn C++ than surf porn, I'd rather encourage such person than criticize them.DVK– DVK2011-01-02 01:10:20 +00:00Commented Jan 2, 2011 at 1:10
-
1@DVK: Really? "Delete Browsing History" ....Mitch Wheat– Mitch Wheat2011-01-02 01:11:51 +00:00Commented Jan 2, 2011 at 1:11
2 Answers
It really quite depends on what you want to do.
If you just want to see the output of some C++ code, you could use some online compilers such as Codepad or Ideone. Ideone also has an API, and there is an iPhone app called CodeToGo that uses it to provide the ability to "run" code in the app -- you could try to search or build something similar for Android.
Another possibility, although probably more complicated, is to install a full-blown linux distribution on your phone, for example, Debian (which has everything you'd need to install a compiler) -- there is a guide on how to do that here, and you can search for more on google.
1 Comment
It depends on the scope of what you want to do.
At the very least, you can do small snippets of C++ code by typing them in and running in your browser via http://codepad.org/