[Q] Code and Compile C++ on Android 2.2 - Android Apps and Games

Hello
I'm interested in being able to code (with syntax-highlighting) multiple C++ files on my dual-booting Android 2.2 HTC Touch Pro2.
Could you please recommend programs with this capability, preferably free?
Thanks in advance,
Panarchy
FYI: I am aware that it is possible to load gcc on Android, where do I download that from, and is there an IDE with a click-to-compile feature?

I would love to be able to do this with C.

Dedicated Android C++ SDK
Hi buttsev and friends,
We've just released MoSync Android C/C++ SDK, so now its possible to program Android in C++ without the hassle of using the NDK, no more messing around with interfacing to Java.
We are an open source project, so we would really appreciate all the feedback you can give us.
You can get it at mosync.com
Thanks
Tony

MoSyncTony said:
Hi buttsev and friends,
We've just released MoSync Android C/C++ SDK, so now its possible to program Android in C++ without the hassle of using the NDK, no more messing around with interfacing to Java.
We are an open source project, so we would really appreciate all the feedback you can give us.
You can get it at mosync.com
Thanks
Tony
Click to expand...
Click to collapse
afaik, he wants to code and compile on his android phone.
same thing I'm interested in

What about the Android NDK? (hxxp://developer.android.com/sdk/ndk/index.html)

Related

Best Development Environment (IDE) for Android

Just downloaded the SDK 1.0 from
http://code.google.com/android
But now i learnt it also Require IDE Integrated Development Environment to Develop Application for Android Phones.
I think there are 2 IDE available
Eclipse 3.4 or JDK 6
Which is the Best IDE so i can started Developing Application for Google Android OS ?
I would recommend to go for Eclipse. Much better user support and bigger community. So once you've got questions the probability to find answers with Eclipse is higher, imo.
JDK 6 is not IDE, its java development kit, and it needed to create android apps.
I'd recomend use intellij idea, cuz eclipse is quite unstable and too complex.
Eclipse is the only IDE that supports Android development at the moment.
new development ide for android
I am currently working on a new IDE – 'Meme IDE' for ANDROID, WM and Apple IOS.
Here is the link to the hello world video I made.
http://vimeo.com/20599586
It is planned to launch in april as its not quite finished yet but it works! and the plan is to make the design and deployment of cross platform apps more efficient while protecting functional depth in each.
Have a look and let me know what you think.
Joe
Lol!!! Depends on what OS you are running!(Windows) Eclipse is perfectly stable and u dont install it, it runs standalone! I am a IT major in College and have gone to programming competitions where they prefer you to use Eclipse over Netbeans, JGrasp, etc for java based languages. And you need all of it. the JDK, Eclipse, and Android SDK. JDK == java development kit, eclipse is your program to create code in and the android SDK is where essentially where all the different types of methods are like in the JDK but specifically designed for the Android Operating System. You should use Eclipse bc it has intellisence and since you dont know what an IDE is, not to be mean or anything, you should do more research before jumping into it because you will get overwhelmed quickly.
I'll give a try to meme!!
Great response. Very clear and concise and put it all in perspective for me! Thanks so much for this advice.
Cheers, Mike
Delete please... I forgot to quote post I was referring to...see next post! cheers, Mike
Nice concise helpful response - thanks
jr10000 said:
Lol!!! Depends on what OS you are running!(Windows) Eclipse is perfectly stable and u dont install it, it runs standalone! I am a IT major in College and have gone to programming competitions where they prefer you to use Eclipse over Netbeans, JGrasp, etc for java based languages. And you need all of it. the JDK, Eclipse, and Android SDK. JDK == java development kit, eclipse is your program to create code in and the android SDK is where essentially where all the different types of methods are like in the JDK but specifically designed for the Android Operating System. You should use Eclipse bc it has intellisence and since you dont know what an IDE is, not to be mean or anything, you should do more research before jumping into it because you will get overwhelmed quickly.
Click to expand...
Click to collapse
Great response. Very clear and concise and put it all in perspective for me! Thanks so much for this advice.
Cheers, Mike

[q] guys, can anyone attach a simplest android apk along with its source code in c++

OK. im learning the c++ programming language. I want to understand some simplest android apps first. That is why i asked to attach simplest apk with its source code in c++. Presently im learning c++ with microsoft visual studio 2010. And what compiler do u recommend me for dealing with android apks.
Similar simplest things with other programming languages are also needed as im planning to learn other languages also. Pls specify them.
Hoping to hear some suggestions and guidance from u. Thanks in advance.......

Where should I start if I wanted to start developing ROMs?

I have coding experience in C++ and windows programming languages, but I haven't a clue about android. I tried searching google and this forum for a good master thread or even a book, but haven't had much luck.
Can anyone help me out?
jojo54696 said:
I have coding experience in C++ and windows programming languages, but I haven't a clue about android. I tried searching google and this forum for a good master thread or even a book, but haven't had much luck.
Can anyone help me out?
Click to expand...
Click to collapse
same here
Hello I am new to xda and I would like to start developing new custom roms and kernels however I do not know where to start.
Just some background info about me:
I am 15 yrs old
I am have programmed in the following:
c++
visual basic
c#
asm
Java
javascript
html
android 2.2 framework
window phone 7 framework
xml
ios
XNA
I have done computer repair for people along with console repair
Tools I have used:
visual studio
android sdk
eclipse
dreamweaver
dev c++
Photoshop
appmobi xdk
phonegap xda
xcode iphone sdk
and some more
Phone I currently have:
evo 3d
I am a noob to making roms and I do not know how to start if someone could help me or point me into the right direction that would great. Thanks
Click to expand...
Click to collapse
that was my post and still no replys
First of all, learn and become comfortable with Java. If you're not comfortable with Java you're going to have some problems since besides the c libraries/kernel the android source is Java/XML.
Second, you need to decide if you're going to be messing with pre-built ROMs (or RUUs or whatever) or the actual AOSP. Actual AOSP is the actual source code but if you're modding a pre-built ROM you're going to have to also learn how to deal with smali code (which as far as I know is basically machine code [if you know what that is]).. Eris has a pretty good guide-in-progress which I'll find and post here later if I can.
It's a lot of work and a lot of looking and learning and not very clear. I have a lot of respect for the people who do it a lot I'm thinking of dabbling soon...
Edit:
here: http://teambamf.net/showthread.php/2793-Guide-Eris-s-Ultimate-Guide-to-ROM-ing-and-Porting

development question

im looking to develop roms for tf300, htc one x and the sgs3, i have programming experience and understand the framework android runs from, however some things i dont get are where do i get source code, kernel source, compiler information, tools, etc. its seems to be all over the place, is it java for all android apps or c++? im totally confused and cant seem to find a central point with information for new developers
can anyone help me at all
mox123 said:
im looking to develop roms for tf300, htc one x and the sgs3, i have programming experience and understand the framework android runs from, however some things i dont get are where do i get source code, kernel source, compiler information, tools, etc. its seems to be all over the place, is it java for all android apps or c++? im totally confused and cant seem to find a central point with information for new developers
can anyone help me at all
Click to expand...
Click to collapse
developer.android.com is best reference also good tutors on youtube java is officially the language for Android but you can use native C/C++ to build components that's why you have NDK at download
ruscan.calin said:
developer.android.com is best reference also good tutors on youtube java is officially the language for Android but you can use native C/C++ to build components that's why you have NDK at download
Click to expand...
Click to collapse
do you develop yourself ruscan?

[Q] Which Language should I learn?

Hello all,
So this summer after my classes get out I was looking to pick up a programming language so that I can get an idea of how to develop apps and modify android ROMs on my own and I was wondering what the developer community would recommend?
I have a basic knowledge of unix commands and took a semester long class of C++ but that was several years ago. So which language would you all recommend? Any text-books or guides that I could purchase? Thanks for all of your valuable input.
TheEmpyre said:
Hello all,
So this summer after my classes get out I was looking to pick up a programming language so that I can get an idea of how to develop apps and modify android ROMs on my own and I was wondering what the developer community would recommend?
I have a basic knowledge of unix commands and took a semester long class of C++ but that was several years ago. So which language would you all recommend? Any text-books or guides that I could purchase? Thanks for all of your valuable input.
Click to expand...
Click to collapse
If you haven't learned java or XML learn lose since that is pretty much what almost all of android's base is coded on
Learn java
click thank ?☺ once I helped you
instagram: cwfei
TheEmpyre said:
Hello all,
So this summer after my classes get out I was looking to pick up a programming language so that I can get an idea of how to develop apps and modify android ROMs on my own and I was wondering what the developer community would recommend?
I have a basic knowledge of unix commands and took a semester long class of C++ but that was several years ago. So which language would you all recommend? Any text-books or guides that I could purchase? Thanks for all of your valuable input.
Click to expand...
Click to collapse
Hello, look for information in the eclipse ide for android web, there is plenty of info there
I thought you are asking about French, Spanish or something like that lol :cyclops:
cfmusicman said:
If you haven't learned java or XML learn lose since that is pretty much what almost all of android's base is coded on
Click to expand...
Click to collapse
Then until now I always was wrong because I thought Android is based on Linux kernel (either 2.x or 3.x) and Linux's native coding language is C/C++, AFAIK
jwoegerbauer said:
Then until now I always was wrong because I thought Android is based on Linux kernel (either 2.x or 3.x) and Linux's native coding language is C/C++, AFAIK
Click to expand...
Click to collapse
It is but the apps and frameworks are in java and XML
cfmusicman said:
It is but the apps and frameworks are in java and XML
Click to expand...
Click to collapse
Would there be much utility in learning C++ first before java if my main purpose is to code for android platform?
Sent from my HTC One X using Tapatalk 2
cfmusicman said:
It is but the apps and frameworks are in java and XML
Click to expand...
Click to collapse
Absolutely wrong. Android( a Linux derivat ) isn't Java. Hence an application written in Java never runs under Android.
TheEmpyre said:
Would there be much utility in learning C++ first before java if my main purpose is to code for android platform?
Click to expand...
Click to collapse
See here: http://www.linuxforums.org/forum/programming-scripting/72084-c-c-tutorials.html#post375466
Baltasar1 said:
Absolutely wrong. Android( a Linux derivat ) isn't Java. Hence an application written in Java never runs under Android.
See here: http://www.linuxforums.org/forum/programming-scripting/72084-c-c-tutorials.html#post375466
Click to expand...
Click to collapse
Thanks for the abundance of links. I take it you would recommend learning C++ first?
Sent from my Nexus 10 using Tapatalk HD
Baltasar1 said:
Absolutely wrong. Android( a Linux derivat ) isn't Java. Hence an application written in Java never runs under Android.
Click to expand...
Click to collapse
No, you are wrong because in Android, most of the things like apps (Which you see as the apk's) are written in Java, not only the apps on Google Play, but also the System apps like Camera, Dialer, Settings etc. The things which is written in C/C++ will be the native libraries and the Kernel, as it uses a modified Linux Kernel which in turn is written in C.
I don't understand on what authorities you say "An application written in Java never runs under Android" Seriously?! You really need to consult an App Developer and ask him which language he used for writing apps. Please don't mislead the OP.
@ OP - Learning C++ is good and you'll get an initial idea of programming structure and how it works and as C++ is based on OOP, learning Java won't be much hassle because it too is based on OOP. The fundamentals and structure will be the same, only some changes in the syntax, which you can easily pickup.
jwoegerbauer said:
Then until now I always was wrong because I thought Android is based on Linux kernel (either 2.x or 3.x) and Linux's native coding language is C/C++, AFAIK
Click to expand...
Click to collapse
You are actually right over there because indeed Android's kernel is based on Linux kernel which is being modified by Google and is written in C. Its not just a raw Linux kernel downloadable from kernel.org and those are being modified by Google in order to work with Android. If you check the kernel version you get an initial idea because the latest Linux Kernel version is 3.9.x and the latest Google modified Linux kernel which is used in devices (Introduced in Nexus 4) is 3.4.x. There are explanations from Google's side why they are not using Linux Foundation's latest kernel versions.
cfmusicman said:
It is but the apps and frameworks are in java and XML
Click to expand...
Click to collapse
True that. :good:

Categories

Resources