C++ Ide - C++ or Other Android Development Languages

Hey,
I use visual studio for programming in C++ and am interested in learning to develop for android. I have previously done so in eclipse but it has been 2 years or so and that was in Java. I am interested in programming in C++ and was curious what IDE y'all used.
Thanks,
Fish.

MrFish. said:
Hey,
I use visual studio for programming in C++ and am interested in learning to develop for android. I have previously done so in eclipse but it has been 2 years or so and that was in Java. I am interested in programming in C++ and was curious what IDE y'all used.
Thanks,
Fish.
Click to expand...
Click to collapse
I suggest you to use Qt
You can programing in c++ for android

If you're on Windows, Visual C++ isn't a bad choice (esp. the latest editions which include Android support!). But if you're on Linux and/or programming on both Windows and Linux, Qt Creator is my favourite by all means.

Personally, I prefer CLion by JetBrains (the company that creates IntelliJ and Android Studio). Although it is a commercial IDE, you can have free license for student or open source project.

THGDev said:
Personally, I prefer CLion by JetBrains (the company that creates IntelliJ and Android Studio). Although it is a commercial IDE, you can have free license for student or open source project.
Click to expand...
Click to collapse
CLion is amazing! It works really well with Rust plugin too.

Related

Best Books/online classes

Any thoughts on the best books and/or online classes to learn Java and Android developing.
There is one Android class at a UC school by me but it is $650 for like 6 meetings.
Thanks
1) Best source to get started with Java: http://java.sun.com/docs/books/tutorial/
2) For Android, check out "Busy Coder's Guide To Android"
It's not free, but it's not expensive either ($40 for 1 year subscription and updates).
You get 3 books: basic & advanced Android, together with a tutorial.
If found these books very informative and it helped me alot during my first Android application.
Covers up to Android 2.1 API.
Big Java by Cay Horstman is an excellent book and the one my university recommends for our Software Workshop 1 (Java) module.
We're ranked 5th in the UK for computer science so we can't be that wrong
http://www.anddev.org/
Lots and lots of tutorials.
finally a forum dedicated to this...**** yes im excited. now i know what imma be doing in my spare time at school hahahah. i already was on the forums 24/7....
So, is it alright to step directly to android?
Or is it Java first??
I would say Java first...
Another good book: Professional Android Application Development
And don't forget the tutorials and sample code at http://developer.android.com/resources/samples/get.html
RationalGaze said:
I would say Java first...
Another good book: Professional Android Application Development
And don't forget the tutorials and sample code at http://developer.android.com/resources/samples/get.html
Click to expand...
Click to collapse
The first book above is now into it's second edition which is obviously the one, of the two, to go for given the rate at which Android is changing. I've just bought that & the last edition of Thinking in Java.
Two more great books, they are very good, from the basics up to professional. They are updated with Android version 2 so relatively new:
Apress' Beginning Android 2
http://apress.com/book/view/1430226293
Apress' Pro Android 2
http://apress.com/book/view/1430226595
Oh and Java books are not so mandatory because Android is not REALLY Java, it's Google's own implementation, the basics are Java, but almost
everything is possible without knowing Java and reading these books.
Chapell said:
Oh and Java books are not so mandatory because Android is not REALLY Java, it's Google's own implementation, the basics are Java, but almost
everything is possible without knowing Java and reading these books.
Click to expand...
Click to collapse
The principal programming language for Android is Java. What you mean perhaps is that Android doesn't use the common Java class libraries such as AWT & Swing, but rather its own.
To code effectively you must understand OOP, the Java language & Android's class libraries. There's no way around that.
cauli said:
The principal programming language for Android is Java. What you mean perhaps is that Android doesn't use the common Java class libraries such as AWT & Swing, but rather its own.
To code effectively you must understand OOP, the Java language & Android's class libraries. There's no way around that.
Click to expand...
Click to collapse
Yeah, I know that the programming language is Java. What I mean is if someone has knowledge about OOP and has experience with other programming languages (C++, C#, etc) there is no need to buy a book about Java. Just learn the syntax in 1-2 hour(s). During Android programming you'll be using the Android's classes almost all the time, so it's not the same like really programming some java app from the beginning.
Here is a good set of video tutorials targeted towards programmers that provides a quick down and dirty intro to Android programming and concepts.
http://android.voxisland.com/
I find the biggest challenge having never really learned Java much is learning the Android API. Coming from C the syntax is very familiar.
I am looking to start learning on my own and got this link form Andrew Web.
http://oreilly.com/catalog/0636920001690
Anyone have or heard anything about these videos?

Native C# Android?

Has anyone seen this?
http://blog.xamarin.com/2012/05/01/android-in-c-sharp/
This could be the bomb... coding in C# for Android natively!! Even maybe some of the good developers here at XDA could make a C# native Android ROM with a Dalvik machine for compatibility with non-C# market apps??
They have made tests and it seems that C# ROMs run like 5-8 times faster and leech much less power ...
Cheers!!!
Java and C# is brother actually. Both have virtual machines, both came from C++. But creating a new variation of one of these is so unreliable. Dalvik is Basically Java's clone but not very succesful clone. Mono is C#'s VM's clone and very reliable. Linux, Mac and Windows has Mono Ports (actually windows has .net framework) Mono is great but you know microsoft doesn't like UNIX like systems especially linux based ones. Thus C# programming could be harder for people. Also C# for phones could be awesome. Since 2000's We already have javaVMs on phones. Why Not C#. (python is good too but google wants a new language called GO)
Repeal said:
...Mono is great but you know microsoft doesn't like UNIX like systems especially linux based ones...
Click to expand...
Click to collapse
I think the problem is much greater with Google since they won't want a M$ programming language in their OS ... and that's a reason for which I'm sure they won't never support C# Android, but another thing are community ROMs.
Let time judge it.. but I think its good stuff...
Not only they do not 'want', they probably are not allowed as c# has patents. Look what is happening to google with java now owned by oracle..

What is the best language for developement?

Hi,
I am new to app developing world.
I dont know about app developement languages for android which are now used.
Gonna start to learn a language to develope?
Which is the best one to learn as a first language?
And plz guid me what i need to do right here right now.
By the way, I know html, css, javascript, jquery, php... I work as a web developer but wanna get into app developement.
Thanks
Sent from my HTC A310e using xda app-developers app
cyber-terrorist said:
Hi,
I am new to app developing world.
I dont know about app developement languages for android which are now used.
Gonna start to learn a language to develope?
Which is the best one to learn as a first language?
And plz guid me what i need to do right here right now.
By the way, I know html, css, javascript, jquery, php... I work as a web developer but wanna get into app developement.
Thanks
Click to expand...
Click to collapse
The biggest thing to pick up is object orientation (if you want to actually be a *good* developer ). I know php can be OO, but that doesn't mean you do have any experience of it as it doesn't have to be.
Java really is the way to go if you're starting from scratch with Android app development. You'll already be familiar with the C style syntax from javascript and PHP, but not enough for me to recommend using C/C++.
Have a look here...
http://developer.android.com/training/basics/firstapp/index.html
That's where I started, purely because it covers setting up the development environment and making simple apps.
Other than that, head over to stackoverflow.com (http://stackoverflow.com/questions/tagged/android+java). It is invaluable as a developer.
Have fun
Edit: Actually, I forgot one major option for someone with your skills...
http://phonegap.com/
It allows you to create apps using web development skills and builds for Android, iOS, BB, WP and a few others, all from the same code. I've used it to create a couple of small apps and it's pretty impressive.
Hi,
Thanks for your guidence,
Now I can start to learn java, but... Could u plz help me what to use to code?
I have eclipse but I dont know how it works as it is like windows command prompt which I do NOT have any expreince in such an environment.
By the way, can I use java programming language to code a windows software or a linux one?
Cause i need both pc app developement and mobile app development.
Thanks in advance.
The best.
Sent from my HTC A310e
No eclipse is not like that. I tried it months ago when trying to learn Java. It's likely MVS. You can find many guides about how to do it. You have to download eclipse and ADT and android SDK in order to begin your developments. Since I have some experiences using it, if you got a problem whenever you set-up it, just pm me. I will try to help you.
Good Luck n Happy Coding.
java or c, read the demo code,step by step, u ll get it, good luck.
Sent from my GT-I9100 using xda app-developers app
Language info
Hey Guys,
I am new here,i know C and C++ language.
Currently Learning .net But i am interested to learn java on my own..with the help of
google development
My Question is
IF Someone Learns it from there can he create cool apps and start generating revenues through it
and how much time period it will take to completly learn and start earning through android app
SnakeEyesNinja said:
Hey Guys,
I am new here,i know C and C++ language.
Currently Learning .net But i am interested to learn java on my own..with the help of
google development
My Question is
IF Someone Learns it from there can he create cool apps and start generating revenues through it
and how much time period it will take to completly learn and start earning through android app
Click to expand...
Click to collapse
Ehm, sorry I haven't learn Java. But I guess there are many things you can do with Java + C++
Yeah java is a cery good lang for dev.
Combination of java and c++ that sounds More interesting.
Sent from my WT19i using xda premium
SnakeEyesNinja said:
Hey Guys,
I am new here,i know C and C++ language.
Currently Learning .net But i am interested to learn java on my own..with the help of
google development
My Question is
IF Someone Learns it from there can he create cool apps and start generating revenues through it
and how much time period it will take to completly learn and start earning through android app
Click to expand...
Click to collapse
Not sure about mobile apps, but if you are good Java or .Net developer your earnings are guaranteed.
cyber-terrorist said:
Hi,
I am new to app developing world.
I dont know about app developement languages for android which are now used.
Gonna start to learn a language to develope?
Which is the best one to learn as a first language?
And plz guid me what i need to do right here right now.
By the way, I know html, css, javascript, jquery, php... I work as a web developer but wanna get into app developement.
Thanks
Sent from my HTC A310e using xda app-developers app
Click to expand...
Click to collapse
For the devlopment of androind apps you need to learn JAVA because most of apps are devloped in JAVA. But, to understand JAVA, you need to learn the concept of OOP (Object Oriented Programming). The Best Way to learn the concept of OOP you should concentrate to C++, that's where the concept of OOP starts. JAVA is used for the logical operations in the app. for designing part you should lean XML.
To View the Basic of android app devlopment. download AIDE {Android Integrated Devlopment Environment} this is a SDK for application devlopment.
vishjoshi said:
For the devlopment of androind apps you need to learn JAVA because most of apps are devloped in JAVA. But, to understand JAVA, you need to learn the concept of OOP (Object Oriented Programming). The Best Way to learn the concept of OOP you should concentrate to C++, that's where the concept of OOP starts. JAVA is used for the logical operations in the app. for designing part you should lean XML.
To View the Basic of android app devlopment. download AIDE {Android Integrated Devlopment Environment} this is a SDK for application devlopment.
Click to expand...
Click to collapse
And i guess to work for NDK layer you still need c.
Thanks,
Amit
amit.rai said:
And i guess to work for NDK layer you still need c.
Click to expand...
Click to collapse
No, C is an Procedure Oreinted Programming Language. You need C++ to work for NDK. To learn C++ you have to learn C language to know the basic concepts of language.NDK is based on command-line tools and requires invoking them manually to build, deploy and debug the apps
Thank You,
Vishal Joshi.
vishjoshi said:
No, C is an Procedure Oreinted Programming Language. You need C++ to work for NDK. To learn C++ you have to learn C language to know the basic concepts of language.NDK is based on command-line tools and requires invoking them manually to build, deploy and debug the apps
Thank You,
Vishal Joshi.
Click to expand...
Click to collapse
Does this means i cannot write a .so library in NDK using c ? i mean do i necessary need Class and cpp files ? are you sure ?
Thanks,
Amit
amit.rai said:
Does this means i cannot write a .so library in NDK using c ? i mean do i necessary need Class and cpp files ? are you sure ?
Thanks,
Amit
Click to expand...
Click to collapse
Don't worry, you can write your libs in C with the NDK.
svdree said:
Don't worry, you can write your libs in C with the NDK.
Click to expand...
Click to collapse
Hi svdree,
Thanks for confirming it. I was trying to correct vishal, as i dont find any restriction to use c++ in android, as few of my middleware are written in c only, and infact running example is openssl is properly compiled and ported which is written in c.
~Amit
amit.rai said:
Hi svdree,
Thanks for confirming it. I was trying to correct vishal, as i dont find any restriction to use c++ in android, as few of my middleware are written in c only, and infact running example is openssl is properly compiled and ported which is written in c.
~Amit
Click to expand...
Click to collapse
Sorry Amit, I didn't knew about C, I saw in wikipedia, u can write in C, As per my knowladge it was in my mind that we cannot use C languase as it is a procedure oriented language. C & C++ both can be used. bt check out this link. This Shows that NDK will not benifit most of the apps.
http://developer.android.com/tools/sdk/ndk/index.html
amit.rai said:
Hi svdree,
Thanks for confirming it. I was trying to correct vishal, as i dont find any restriction to use c++ in android, as few of my middleware are written in c only, and infact running example is openssl is properly compiled and ported which is written in c.
~Amit
Click to expand...
Click to collapse
Only restriction is that programming in C/C++ in Android adds much overhead proportionally to the amount of communication Java<->C/C++ So really take that into consideration.

language for android app development

Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Emmm....I think python won't help. By the way what languages do you know? If you like you can continue your project with Mono Android. Which is compatible with Microsoft Visual Studio and you can do many things easier with it. In that case you have to know C#. Here's the thread with many links. http://forum.xda-developers.com/showthread.php?t=2223114
Sent from my SonyX8 using Tapatalk 2
---------- Post added at 11:57 AM ---------- Previous post was at 11:55 AM ----------
Here's the thread for setup Mono Android. http://forum.xda-developers.com/showthread.php?t=2223010
Btw if you would like to go on this, pm me problems you have, I will help you as I can. Good luck.
Sent from my SonyX8 using Tapatalk 2
virk36 said:
Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Click to expand...
Click to collapse
Do yourself a favor and simply use Java if possible. That is how they intended to develop on Android. In my experience anything else is good only if specifically needed.
JAVA is the most used language to make apps for Android but there are alternatives and the biggest I see is Mono fro Android which uses C# as a programming language
const_char said:
Do yourself a favor and simply use Java if possible. That is how they intended to develop on Android. In my experience anything else is good only if specifically needed.
Click to expand...
Click to collapse
I second that. Android is mostly designed around C and Java. Even if you code C/C++, you sometimes have to use JNI to call back into Java, because some functionality is only exposed in a Java package, not in native code.
So Java is the best way to make full use of the Android platform, and gives you the best compatibility. Most tools, documentation and other resources are also aimed at Java development.
Java is default android development language
virk36 said:
Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Click to expand...
Click to collapse
you can develop android app with python but maybe your released app size is so big
because your app must statically have python interpreter.
it is not easy stuff, if you have not many experience of android development.
python is not too far from java or c/c++ so it may help anyway, but now you should go to java ...
but the most important is now to know how to use the Android framework
Nowadays, Java is the most useful language to create application for android, but I will prefer mono for C# as a programming language.
yeah...man u should use java it would really help u.....i m 14 i too wanna develop apps...so i learn JAVA it's the best ....
By the way gud luck with ur project
Sent from my IRIS402 using xda app-developers app

Just Curios

What are the advantages of developing android apps in C++ rather than in JAVA?
The biggest advantage for me is that you can have a shared codebase between the platforms.
The best example is creating cross-platform games. If you write the game code in C++ you only need to write a small amount of code specific for current platform (e.g. Android) that just runs your C++ code right after the start.
Just take a look at Cocos2D-x game engine project (its open-source) and how many platforms it supports because its written in C++.
What are the advantages of developing android apps in C++ rather than in JAVA
OkieKokie said:
What are the advantages of developing android apps in C++ rather than in JAVA?
Click to expand...
Click to collapse
Mainly for game. Most of the mainstream 3D engine are written in C/C++, so for game developer, they can make use of the current c/c++ 3D engine directly without rewriting from scratch.

Categories

Resources