What programming language do Android developers use?? - Java for Android App Development

A) What programming language do Android developers use??
B) and what language are most apps written on?

B) Java
http://developer.android.com/guide/topics/fundamentals.html Everything to get started is there.

Android programming is done in linux, apps are written in java.

jroid said:
Android programming is done in linux, apps are written in java.
Click to expand...
Click to collapse
Android programming can be done on any OS platform.

kopykatkiller said:
Android programming can be done on any OS platform.
Click to expand...
Click to collapse
Yes, but the operating system is based in linux.
Sent from my Vibrant using Tapatalk

bahnburner said:
Yes, but the operating system is based in linux.
Sent from my Vibrant using Tapatalk
Click to expand...
Click to collapse
Yeah, but the way he said it sounded wrong. The Android kernel is programmed in c,c++ and is a Linux based os. You can program apps for Android in most languages now: c++, c, and ruby just to name a few. Most choose java since google has pushed it enough and made it simple.
Sent from my Samsung Vibrant using the XDA App

The app itself is written in java. And, there is some XML.
Check out eclipse.
Here is a help site for windows: but you can apply it to linux or macosx
http://www.vogella.de/articles/Android/article.html

SuperMiguel said:
A) What programming language do Android developers use??
B) and what language are most apps written on?
Click to expand...
Click to collapse
GREEK.......................................

dattas said:
Yeah, but the way he said it sounded wrong. The Android kernel is programmed in c,c++ and is a Linux based os. You can program apps for Android in most languages now: c++, c, and ruby just to name a few. Most choose java since google has pushed it enough and made it simple.
Sent from my Samsung Vibrant using the XDA App
Click to expand...
Click to collapse
This. Java is certainly the most widely-used and most supported by Google, but more and more compilers and VMs are emerging. For example, the MonoDroid project is working on a Mono VM for apps written in C#.

PHP is also on the rise
http://www.infoworld.com/d/develope...-google-android-652?source=rss_infoworld_news
http://www.slideshare.net/coogle/building-php-powered-android-applications

bahnburner said:
Yes, but the operating system is based in linux.
Sent from my Vibrant using Tapatalk
Click to expand...
Click to collapse
Linux isn't a language. The user is asking for programming languages.

Pretty sure you can also code apps in C using the NDK. Or maybe that's just OS code, can't remember. Either way it runs extraordinarily faster than Java obviously.
EDIT: Just read up on it and apparently you can only embed C in apps using the NDK in conjunction with the SDK

I think I am going to jump in. I am a software/web developer and I have the Android SDK, Eclipse, Visual Studio 2008 and a number of other tools on my dev box. I love coding in C# but I can do Java and some other stuff too. What is a good way to get my feet wet....aka "Hello World" ?

frankencat said:
I think I am going to jump in. I am a software/web developer and I have the Android SDK, Eclipse, Visual Studio 2008 and a number of other tools on my dev box. I love coding in C# but I can do Java and some other stuff too. What is a good way to get my feet wet....aka "Hello World" ?
Click to expand...
Click to collapse
http://developer.android.com/guide/tutorials/hello-world.html
http://www.vogella.de/articles/Android/article.html

Thanks. I just got Eclipse (Helios) setup with the ADT pluging and I am messing around with the emulator. So this is basically what it used for testing/debugging etc. or is there something better?

frankencat said:
Thanks. I just got Eclipse (Helios) setup with the ADT pluging and I am messing around with the emulator. So this is basically what it used for testing/debugging etc. or is there something better?
Click to expand...
Click to collapse
That's pretty much it. You won't enjoy anything remotely on the level of what you're used to out of something like Visual Studio, but once you figure out Eclipse (and that can take awhile, it's probably one of the more inscrutable modern-style IDEs I've ever used, and I've been doing this for 30 years; and I'm sure I'll get flamed for that)... but once you see the world through Eclipse's eyes, it's about like writing any other app.
I've gotten into Android dev and back out again several times. Usually I get tired of Google's rather sub-par developer support and go back to some type of paying project.
But for some reason, there is a certain kick to seeing your app run on a phone the first few times.

frankencat said:
Thanks. I just got Eclipse (Helios) setup with the ADT pluging and I am messing around with the emulator. So this is basically what it used for testing/debugging etc. or is there something better?
Click to expand...
Click to collapse
Yeah you can either use the Virtual Android Device to test your app OR use your phone and you the ADT plugin will install the app onto your device. The emulator takes a long time to start up. Whenever I'm bored and want to write a app for fun, I tend to use my old device (G1) as a debugging device because I can't stand how long emulator takes to stat up.

Thanks guys. I have my first little app up and running in the VAD emulator.
I found out that you need Eclipse 3.5 (not 3.6) and the JRE 1.6 for everything to be happy. Now where to go from here....

This is turning into a nice little getting started thread. I hope people who have other suggestions for noob developers will continue to post.

dex1701 said:
This. Java is certainly the most widely-used and most supported by Google, but more and more compilers and VMs are emerging. For example, the MonoDroid project is working on a Mono VM for apps written in C#.
Click to expand...
Click to collapse
Google is also big on Python (Google app engine), supposedly there will be support to create .apk's using python in the feature.

Related

*****X on G1?

any of you l33t linux users know if we can install *****x on this thing?
sodenrox said:
any of you l33t linux users know if we can install *****x on this thing?
Click to expand...
Click to collapse
Not unless someone ports it for Android. Keep in mind, Android is **NOT** Linux. It only uses it's kernal
sodenrox said:
any of you l33t linux users know if we can install *****x on this thing?
Click to expand...
Click to collapse
if you have shell access, use ConnectBot and screen+*****x on the linux box.
jasonparekh said:
if you have shell access, use ConnectBot and screen+*****x on the linux box.
Click to expand...
Click to collapse
This is the way to go.
What it *****x written in, mostly C? The android app framework uses java, it would take a complete rewrite. Can't really be called a port.
syrusfrost said:
This is the way to go.
What it *****x written in, mostly C? The android app framework uses java, it would take a complete rewrite. Can't really be called a port.
Click to expand...
Click to collapse
Sorry...Saturday... was and am toasted
Moral of the story is, it's not easy to just install
momentarylapseofreason said:
Sorry...Saturday... was and am toasted
Moral of the story is, it's not easy to just install
Click to expand...
Click to collapse
Oh nothing to be sorry about, you show that you have a better grasp of the architecture of Android OS than 90% here by distinguishing between an OS and a Kernel.
so its using the linux kernel just not linux? lol
sodenrox said:
so its using the linux kernel just not linux? lol
Click to expand...
Click to collapse
Common misconception. There is no "linux" out side of the Linux kernel. The most basic form of OS that runs ontop of the Linux kernel is all of the GNU software. That you would call GNU/Linux OS if you wanted too.
Of course the major distributions kind of perpetuate the misconception... meh.
I am using connectbot to connect to shell that is running *****X. It works well but drains a bit of battery. Come hang out in #android on irc.efnet.net
007wrx said:
I am using connectbot to connect to shell that is running *****X. It works well but drains a bit of battery. Come hang out in #android on irc.efnet.net
Click to expand...
Click to collapse
how do I connect to that shell?
You have to have your own shell. You can purchase them for a few $ a month.

[q] running java application on iconia a500

Hi
i need to run some JAVA APPLICATION on Acer Iconia A500, but i can't find JVM for my tablet.
Any ideas?
thank you
Sorry No Support for Java Virtual Machine yet so Java Applets will not run on the tablets for android. be nice if we can get java support for android sometime soon.
I read something the other day that I thought was pretty interesting...RIM and Google claim that they have the full web with Flash, but if you think about it, Java is all over the web and without Java support, that's not the full web at all.
Sent from my A500 using XDA Premium App
java and javascript are different... and both rim and android support javascript, check your settings.
n1nj4dude said:
java and javascript are different... and both rim and android support javascript, check your settings.
Click to expand...
Click to collapse
I'm aware of that, especially since Android is based in Java. But even so, Minecraft is on the web and I can't run it. No Java app support. Not full web.
rorytmeadows said:
I'm aware of that, especially since Android is based in Java. But even so, Minecraft is on the web and I can't run it. No Java app support. Not full web.
Click to expand...
Click to collapse
So to be clear, since my linux computer won't run microsoft silverlight content, then under the same conclusion, its not full web..
n1nj4dude said:
So to be clear, since my linux computer won't run microsoft silverlight content, then under the same conclusion, its not full web..
Click to expand...
Click to collapse
I'd agree. I'm not a big follower of Linux, yet, but I wasn't aware of that. That's too bad.
Sent from my A500 using XDA Premium App
there's an website around that will convert JARs and J2MEs to apks..
http://www.netmite.com/android/srv/2.0/getapk.php
rorytmeadows said:
I'd agree. I'm not a big follower of Linux, yet, but I wasn't aware of that. That's too bad.
Sent from my A500 using XDA Premium App
Click to expand...
Click to collapse
But Android is also based on Linux kernels and and other Linux components. Has the same generic command lines to navigate around the file structure.
daswahnsinn said:
But Android is also based on Linux kernels and and other Linux components. Has the same generic command lines to navigate around the file structure.
Click to expand...
Click to collapse
I'm aware of that. All I'm saying is if you're a Toyota dealer and you don't have any Camry's on the lot, don't claim that you have every Toyota car in stock.
Technically, it does have full html not web. Java applets and support are an add-on. Android is coded different it was built for phones. This move to tablets is a big move not just adding a bigger screen and better video support. Java support will come once it is profitable for Android/Google.
rorytmeadows is right, certain things just don't work, but thats apple and oranges.
Windows can do somethings that others can't due to its popularity,
Linux can do things that can't be done by others due to superiority.
Mac can do nothing due to the lack of real users just people who like fruit.
rorytmeadows said:
I'm aware of that. All I'm saying is if you're a Toyota dealer and you don't have any Camry's on the lot, don't claim that you have every Toyota car in stock.
Click to expand...
Click to collapse
What a dumbass.....for real.
SlCKB0Y said:
What a dumbass.....for real.
Click to expand...
Click to collapse
Yeah, I know, right? All for saying something logical...

[Q] Overclock possible?

Hello! Question about overclocking the tab 10.1v!
Is it possible to overclock the tab? It doesn't feel so smooth like the SGS2!
PS: And how it look with sms or whatsapp? Is it possible to include the "phone" function to the tab?
Fist try rooting and change the CPU profile from Interactive to Performance or onDemand - There is a massive response gain from this
What needs to be done to OC is make a Kernal with proper voltages and CPU Frequency to hand the demands. and not constantly bootloop
danikristijan said:
PS: And how it look with sms or whatsapp? Is it possible to include the "phone" function to the tab?
Click to expand...
Click to collapse
It's Linux you can do anything you dam well please if you go out and Learn UNIX, C, C++, C#, Java, Java again because you forgot that Var and var look exactly the same in a text editor, Realized you forgot everything about UNIX, C, C++, C# Re Learned them.
Then spend 4 Years trying to build apps and everything that you make doesn't seem to work as well as things other people program, so you go do research optimization research get bulked down with several thousand lines of code for 1 line which is being talked about.
Only to realize that the reason your apps aren't living up to your expectations is because you weren't wearing your lucky belt when you compiled it...
Or you could go out and buy this brilliant device called a phone if you are unsure of what they are here is a resource i found usefully http://tinyurl.com/3xpwmt7
danikristijan said:
Hello! Question about overclocking the tab 10.1v!
Is it possible to overclock the tab? It doesn't feel so smooth like the SGS2!
PS: And how it look with sms or whatsapp? Is it possible to include the "phone" function to the tab?
Click to expand...
Click to collapse
Please do not post Questions or Problems in the Development Forum Thanks
Moving to General
I have seen that the motorola xoom (also tegra2) is possible to overclock. Is this now also possible/compatible to use the kernel from xoom on galaxy tab?
Sent from my GT-I9100 using XDA App
danikristijan said:
I have seen that the motorola xoom (also tegra2) is possible to overclock. Is this now also possible/compatible to use the kernel from xoom on galaxy tab?
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Open up the kernal and see if you find all that is needed to drive these tabs (probably a good move to strip out what isn't needed as well)
BTW i have a reading list which i found usefull in learning this stuff if you like.
-Linux system programing -o'reilly
Books on C programing
-The C programing Language 2nd -Brian W. Kernighan & Dennis M. Ritchie, prentice hall, 1988
-C in a nutshell -o'reilly
-C poket refrence -o'reilly
-Expert C programing -Peter van der Linden
-C Programming FAQs -steve summit
Linux programing
-UNIX Network Programming vol1 & 2 -W. Richard Stevens
-PThreads Programing -o'reilly
-Managing GNU make -o'reilly
-Essential CVS -o'reilly
-Version control with subversion -o'reilly
-GBD Poket Refrence -o'reilly
-Linux in a nutshell -o'reilly
Linux Kernel
-Linux Kernal Development -Robert Love ,Novell Press
-Linux device drivers -o'reilly
Operating system design
-Operating Systems -Harvey Deitel
-UNIX systems for modern architectures
After that the AOSP tutorials will make sense and you can get craking
Sent from my GT-P7100 using XDA Premium App
http://forum.xda-developers.com/showthread.php?t=1138167
pershoot said:
http://forum.xda-developers.com/showthread.php?t=1138167
Click to expand...
Click to collapse
It f'ed my tablet up pretty bad. I might exchange and see if I can get one that likes to be OCed.
ericc191 said:
It f'ed my tablet up pretty bad. I might exchange and see if I can get one that likes to be OCed.
Click to expand...
Click to collapse
First off post logs in the thread (i cant fix something blind).
I need to know the exact scenario and what was being done.
If you are looping follow my recovery method. it is failsafe (ive used it today alone like 4/5 times while testing).
Then reflash the kernel and post logs if you face issue.
Be aware, it is easy to boot loop this thing. It may not have been from the kernel.
Please get accustomed to the process.
pershoot said:
First off post logs in the thread (i cant fix something blind).
I need to know the exact scenario and what was being done.
If you are looping follow my recovery method. it is failsafe (ive used it today alone like 4/5 times while testing).
Then reflash the kernel and post logs if you face issue.
Click to expand...
Click to collapse
I didn't even think to do that. And, I'll look for your guide.
pershoot said:
http://forum.xda-developers.com/showthread.php?t=1138167
Click to expand...
Click to collapse
Hello and thanks for your work and your link!
Is this kernel also for GT10,1v? (GT7100)
Regards

IPA to APK

can someone of the developers make a converter.
IPA to APK converter, something like the PSXperia tool.
Doesn't work, ipa is iPhone and apk is Android
Posts like this remind me of when Super Nintendo came out and all these parents were freaking out on the evening news that their kids would want it and it wasn't fair... and that they should make an "adapter" so that the old NES system could play the new games. LOL
This has got to be the stupidest question I have ever seen on XDA.
Agreed
Sent from my R800i using XDA Premium App
PaulForde said:
This has got to be the stupidest question I have ever seen on XDA.
Click to expand...
Click to collapse
More so than this one?
http://forum.xda-developers.com/showthread.php?t=1370549
I like IPA... But I also like APK.
But which one's better ?
.........
There's only one way to find out......
DeadlyDazza said:
I like IPA... But I also like APK.
But which one's better ?
.........
There's only one way to find out......
Click to expand...
Click to collapse
whats that? u have me wondering now...
Lmao
Swyped from my Xperia Play via Tapatalk
Wow...
You guys need to calm down. It's just a question. You don't need to make him look like an idiot, you look like an idiot when calling him one. Just sayin.
Anyway, sorry, its not that easy. I wish it was that easy and often wondered the same thing at times.
Excpet the guy who ask the question your all idiota since devlopers are working on this just havent said whsts going on for a while it can be done just takes so much work
lyricalchaos said:
Excpet the guy who ask the question your all idiota since devlopers are working on this just havent said whsts going on for a while it can be done just takes so much work
Click to expand...
Click to collapse
Developers are working on what? An .ipa to .apk converter? Lmfao Android uses java. Its not even the same language as the iPhone
Sent from my R800i using Tapatalk
Rofl the other one is funnier lol can my xplay be 3d
Sent from my SPH-D710 using XDA App
lyricalchaos said:
Excpet the guy who ask the question your all idiota since devlopers are working on this just havent said whsts going on for a while it can be done just takes so much work
Click to expand...
Click to collapse
Spoken by someone who has never written a program in his life.
The logistics of this requires human interaction. Android programs are written in a COMPLETELY different language than iOS programs. While both programming languages can produce the same results, and obviously use the same graphics data and stuff like that, a human programmer must make that conversion as how they get to that end result is completely different.
No developers are working on this. Its a waste of time.
Question: if I remember properly, Android uses a virtual machine, called Dalvik, to run Java code. Could Dalvik actually run Objective C (iOS language) code somehow?
Logseman said:
Question: if I remember properly, Android uses a virtual machine, called Dalvik, to run Java code. Could Dalvik actually run Objective C (iOS language) code somehow?
Click to expand...
Click to collapse
programs that are coded in C run natively they dont run in a VM like android apps. Thats why its possible to use android apps on other platforms (providing they have the dalvik VM) like the blackberry playbook but you couldn't do that the other way around.
Logseman said:
Question: if I remember properly, Android uses a virtual machine, called Dalvik, to run Java code. Could Dalvik actually run Objective C (iOS language) code somehow?
Click to expand...
Click to collapse
The Dalvik VM is just a Java VM right?
Sent from my R800i using Tapatalk
I remember reading somewhere that it doesn't actually run Java code by itself...
AndroHero said:
The Dalvik VM is just a Java VM right?
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
Logseman said:
I remember reading somewhere that it doesn't actually run Java code by itself...
Click to expand...
Click to collapse
No its not just a Java VM and actually works quite differently than a normal Java VM. A regular Java VM works almost like an Emulator within the device running it. The Dalvik VM actually takes the program and uses its own class libraries, it converts some of the java files when its compiled into its own format. This saves space and memory usage, due to the programs obviously needing to be run on devices with limited memory.
The Android SDK also has an ungodly huge amount of libraries within it as well withe specific code design to do basically anything.
have an idea ask Google to try and create android to read IPA or other formats then android will be the best as developers will want to create games, apps and other things and make life easier for everyone as it will be like this in left hand iphone in right hand Samsung galaxy s2 really good android phone which will you pick me i would go for the Samsung as it's better as i have one but if it could run IPA. Iphone will probably unexistant just saying but it's best to ask google. for more easier methods to create games and apps just like ipa is really easy to create apps

Which program should I use?

Hello XDA Devs. I am pretty new to the concept of people like me creating apps. I am very inexperienced and I am trying to make a game for my android phone. I knew that Google had an Android SDK but I learned that Adobe's Flash Professional can create apps for Android as well. So which program should I use to create a game?
Sent from my SGH-M919 using xda app-developers app
Indianssj said:
Hello XDA Devs. I am pretty new to the concept of people like me creating apps. I am very inexperienced and I am trying to make a game for my android phone. I knew that Google had an Android SDK but I learned that Adobe's Flash Professional can create apps for Android as well. So which program should I use to create a game?
Sent from my SGH-M919 using xda app-developers app
Click to expand...
Click to collapse
Uh, I wouldn't use the Adobe Flash thing. First of all, it should be slower and Adobe doesn't provide flash player support for Jelly Bean and later. So it runs on old phone only. (I know there are ways to get flash on newer versions. But they aren't optimal.)
So use the SDK. It offers much more functions.
You can use an engine like AndEngine though. I'd recommend that. However, you need to know Java and the Android part.
Although I agree with going down the Java route, as you will be able to do a LOT more with it, Adobe Air is a viable platform for a Flash developer. (It's not the same as the flash plugin for browsers.)
Have a look here for more info...
http://www.adobe.com/products/air.html
Archer said:
Although I agree with going down the Java route, as you will be able to do a LOT more with it, Adobe Air is a viable platform for a Flash developer. (It's not the same as the flash plugin for browsers.)
Have a look here for more info...
http://www.adobe.com/products/air.html
Click to expand...
Click to collapse
Thanks.
I just though of all apps in whose description you can find a sentence like "You need to have flash player installed.".
Did you try Adobe Air?
nikwen said:
Thanks.
I just though of all apps in whose description you can find a sentence like "You need to have flash player installed.".
Did you try Adobe Air?
Click to expand...
Click to collapse
I've not used it for a long time, no. I know it's compatible with my HTC One, and that's running Android 4.2, so it's been kept up-to-date. I did think it was the way to go for a long time, purely because of the fact that it's cross-platform, but I have less faith in it now. If I want cross-platform then I use Phonegap.
I'm curious now. Going to install it and have a play around
Archer said:
I've not used it for a long time, no. I know it's compatible with my HTC One, and that's running Android 4.2, so it's been kept up-to-date. I did think it was the way to go for a long time, purely because of the fact that it's cross-platform, but I have less faith in it now. If I want cross-platform then I use Phonegap.
I'm curious now. Going to install it and have a play around
Click to expand...
Click to collapse
I'm curious, too. Please keep us updated.
As mentioned above you could used engines like AndEngine. But if you are new to java as well then I suggest learning java and move on to creating simple apps. You can use websites like thenewboston or other various tutorials all over the net. Make use of youtube and google... they will help you.

Categories

Resources