Android

closed account (NUj6URfi)
How do I port a pc game to android? Do I just include liraries or do I have to rewrite all my code?
Last edited on
closed account (NUj6URfi)
Please help.
Last edited on
closed account (NUj6URfi)
Please?
nobody knows your code...

But yes, it's very likely that you need to rewrite your code, even if you wrote it in java (which is the language for Android)
closed account (NUj6URfi)
It is c++ code and I know my code and java was not built for android. What libraries do I use from the sdk and ndk? What is the equivalant of getline, cin, if, and cout? I use iostream.
It is c++ code and I know my code and java was not built for android
it was customized for Android


if you want to use ndk, read this:
http://developer.android.com/tools/sdk/ndk/index.html


Since Android is based on Linux you can theoretically run a program that's written for linux. All you have to do is compile it for that target processor (usually ARM) and maybe install some missing libraries. [Rewriting is probably easier.]

There's also qt for android:
http://qt-project.org/search/tag/android

What is the equivalant of getline, cin, if, and cout?
With files you can still use streams. In a GUI driven environment there're listboxes, textboxes etc. No cin or cout
Topic archived. No new replies allowed.