Do I need to learn Java to program in Android Studio? - Java for Android App Development

Do I need to learn Java to program in Android Studio? Or I can just jump straight into it? If I must learn it, can u guys show me a great way of learning Java? (I have a Pascal basic BTW).

You definitely must. Java is the main language for android development and without knowing it you can't do anything advanced.
To start learning you can use docs.oracle.com/javase/tutorial/. But learning is nothing without practice so start your own project and use Java in it. It's relatively easy language so you can start quickly.

s0nicyouth said:
You definitely must. Java is the main language for android development and without knowing it you can't do anything advanced.
To start learning you can use docs.oracle.com/javase/tutorial/. But learning is nothing without practice so start your own project and use Java in it. It's relatively easy language so you can start quickly.
Click to expand...
Click to collapse
Thanks Brother i was also looking for some tutoral sites....and found nothing for my choice...i have basic knowledge in Java and Codes 2apps also..check my threads but can u plz send me some Video tutoral video for android app development i want to add advanced Features & libraries

ARGHA_DAS said:
Thanks Brother i was also looking for some tutoral sites....and found nothing for my choice...i have basic knowledge in Java and Codes 2apps also..check my threads but can u plz send me some Video tutoral video for android app development i want to add advanced Features & libraries
Click to expand...
Click to collapse
You are welcome. To be honest I don't know any video tutorial and personally I think the best way to learn programming is practice. So just use any Vogella's tutors and code your apps but always try to make them more complex.

Java is important for Android studio
Yes, you need to learn Java properly before visiting android studio.
Because Java is key to do programming in android studio for Android developers.
appninjaz.co.uk/services.html

I learned from a YouTube series called "mybringback" 5 years ago. It's still a good place to start. Also, a great website that interactively teaches you to code is Codecademy.com. They are mainly a web-development website, but recently added java to their courses. It may be worth trying as well.
Root it and boot it!
Current device: Asus ZenFone 2 (Z00AD/ZE551ML)
ROM: Resurrection Remix
Kernel: FlareM
Service: Straight Talk
Check out my apps on Google Play

I have collected many good tutorials for Java and Android here.
Hope it helps

It best to learn Java, but today you can also use Xamarin to develop cross platform apps using .net (Visual Studio 2015).

java is main language to android studio
if you are using android studio, Java is a must. But you don't have to learn core java, you can just jump in to android programming, coz there are lots of different library there.
i would suggest using android studio instead of others, beside they are free, they are directly from google

Yes, java is must in order to develop android apps. Android virtual machine runs java codes. So android apps needs to be in java.
Now a days, there are so many frameworks and tools available which allow you to develop android apps in other languages and convert the apps developed in other languages to java code to deploy and run on android.
I think it is a good idea to directly code in java as you can easily understand concepts involved in android os and develop apps that perform well proving best user experience.. It is not difficult to learn java and android framework to develop android apps.

As others have pointed out, yes you must. However, if you have Pascal/Delphi background, that helps a lot! So loops/ifs/functions are no stranger to you. You "only" need to learn about classes, interfaces and such stuff, not very hard.
Luckily for you, there's literally thousands of Java tutorials, books, videos, anything you can think of. I always like to stick with books from respected authors and/or the language authors. So for Java, I'd go with https://docs.oracle.com/javase/tutorial/java/nutsandbolts/index.html (just an example, there's tens of other valuable books/tutorials).

Related

What language and software uses android for programming?

Hey guys im considering porting/recoding an app from VB.net to work on android, but i havent got a clue what language is used in android, could someone tell me its name or some sort of website with this information?
Finally if someone is experienced in programming apps for android, i would like to chat about a few capabilities of the language.
Thanks in advance!
Android is Java-ish based.
i would recommend you checking out the program Eclipse.
The main applayer is java based with some xml thrown in. But there is a native development kit that you can compile c c++ and many other languages to run on an android phone. But since java is virtual machine based an app written in java will run on all phones*(some caveats like os version) while the app in ndk will work on only hardware that it was designed for
Also, is Google not working? A simple search for "Android programming language" would answer this question
From something awesome
killersnowman said:
The main applayer is java based with some xml thrown in. But there is a native development kit that you can compile c c++ and many other languages to run on an android phone. But since java is virtual machine based an app written in java will run on all phones*(some caveats like os version) while the app in ndk will work on only hardware that it was designed for
From something awesome
Click to expand...
Click to collapse
hmmm, yes there is google but not what im exactly asking, and that makes me ask this:
You talk about c & c++ and other languages compilations to run on android phone, is vb.net a part of that list?
Could you show me a website or something that says more about that dev kit? im basically trying to port my apps from vb 2010 express (windows forms based) to android and if that thing is not possible should i use java to code it all over again?
Thanks in advance!
http://developer.android.com/sdk/ndk/ this is for the ndk but it is not as simple as just compiling your code with the ndk. You will need to rewrite some of it to actuallytie into the android apis
You should really just use the java sdk. You will reach more people and be able to find more help and info
And I stand corrected, while there are projects trying to bring other languages to the ndk it is at this point just C and C++
From something awesome
killersnowman said:
http://developer.android.com/sdk/ndk/ this is for the ndk but it is not as simple as just compiling your code with the ndk. You will need to rewrite some of it to actuallytie into the android apis
You should really just use the java sdk. You will reach more people and be able to find more help and info
And I stand corrected, while there are projects trying to bring other languages to the ndk it is at this point just C and C++
From something awesome
Click to expand...
Click to collapse
oh well in that case i will need to learn java.... thanks mate, i think its easier to just rewrite the whole thing really i like proper optimizations and ports most of the times lack them.
Thanks for the information thats all i needed.
PS: rep added
if you know vb.net well you'll have no real problem with java.. it just adds brackets and semicolons essentially lol. I learned java in college and then was thrown into the .net framework using c# and i love the .net framework.. its so hard for me to go from using Visual Studios to Eclipse to make an android application because Visual Studios (which im assuming you use, is so powerful).. But yes android is java code behind and html (preferred) GUI. You can make your GUI using java but trust me its terrible!
jr10000 said:
But yes android is java code behind and html (preferred) GUI. You can make your GUI using java but trust me its terrible!
Click to expand...
Click to collapse
Html? You mean xml?
Also try Intellij instead of Eclipse. Eclipse is way too bloated and IntellJ has some amazing autocomplete features. Its better in my opinion
From something awesome
jr10000 said:
if you know vb.net well you'll have no real problem with java.. it just adds brackets and semicolons essentially lol. I learned java in college and then was thrown into the .net framework using c# and i love the .net framework.. its so hard for me to go from using Visual Studios to Eclipse to make an android application because Visual Studios (which im assuming you use, is so powerful).. But yes android is java code behind and html (preferred) GUI. You can make your GUI using java but trust me its terrible!
Click to expand...
Click to collapse
what?? i really need a proper GUI ugh... yes im using visual studio, and indeed is amazing, the app i have and i want to port to android is windows form based, the most essential thing i would need about it is the calendar control :\
You can use Javascript+HTML5 (it's complicated to express here but the whole things is pretty much native).
Python aswell, use SL4x or Kivy (Kivy is pretty good but it's still too new).
Sorry, being hate Java too much.
Funnnny said:
You can use Javascript+HTML5 (it's complicated to express here but the whole things is pretty much native).
Python aswell, use SL4x or Kivy (Kivy is pretty good but it's still too new).
Sorry, being hate Java too much.
Click to expand...
Click to collapse
ok np, so to doublecheck this: to have an application with graphical interface i will need javascript and html5?
TheWarKeeper said:
ok np, so to doublecheck this: to have an application with graphical interface i will need javascript and html5?
Click to expand...
Click to collapse
I dont know why people spread extremely non standard practices to people getting started...
No you dont need javascript or html5.
Android has a ui layout system based in xml. Its just there to arrange objects that you can access from the java code. So a little xml and java is all you need
From something awesome
TheWarKeeper said:
ok np, so to doublecheck this: to have an application with graphical interface i will need javascript and html5?
Click to expand...
Click to collapse
The right way to do GUI is with Java, with the official SDK from Google.
Some non-standard way to do this is with Javascript (just a GUI wrapper from Javascript to Java) and Python (again wrapper to Python).
You can choose which way you want, many people I know didn't like Java, and they choose to use a web application, and then they want to embed this to a native Android application, so they go with Titanium Mobile or some others framework like that. It's not as good as Java, but it's some other way to start with your application (Web app first and then Native app)
Funnnny said:
The right way to do GUI is with Java, with the official SDK from Google.
Some non-standard way to do this is with Javascript (just a GUI wrapper from Javascript to Java) and Python (again wrapper to Python).
You can choose which way you want, many people I know didn't like Java, and they choose to use a web application, and then they want to embed this to a native Android application, so they go with Titanium Mobile or some others framework like that. It's not as good as Java, but it's some other way to start with your application (Web app first and then Native app)
Click to expand...
Click to collapse
i feel like i should probably stick with java, i want it to be quick and fast and have alot of stuff to code, the program should run in background so it must not affect performance at all, will use timers with a basic code ticking every second while on background and thats it really
TheWarKeeper said:
i feel like i should probably stick with java, i want it to be quick and fast and have alot of stuff to code, the program should run in background so it must not affect performance at all, will use timers with a basic code ticking every second while on background and thats it really
Click to expand...
Click to collapse
Then use java bro, it's an awesome programming language, I don't know why some people don't like it, each programmer should learn to get used to each language.
Anyway, for likes.. colors
Cheers, D4.
D4rKn3sSyS said:
Then use java bro, it's an awesome programming language, I don't know why some people don't like it, each programmer should learn to get used to each language.
Anyway, for likes.. colors
Cheers, D4.
Click to expand...
Click to collapse
well ive been learning vb and i will admit that im still on intermediate level, even though i know all the basic stuff such as messing with its own functions, etc i still havent used any of the apis for it, the main problem with programming is that if u learn a language you would waste your time learning that one or else if u go learn to many languages you will end up not knowing none of them at all.
Ill see if i can mess with java, some people say syntax is a bit similar to c & c++
EDIT: btw, im not saying i dont find java good, a programming language that will basically run on any machine independently of the OS makes the language itself possibly the best and most versatile around.
I'm learning Android and I use Java and XML. I'm still a beginner though.
Sent from my SGH-T959 using XDA App
I am just curious, software like Titanium Backup, or Angry Birds, which programming language do they use? Could this stuff be programmed with Eclipse in Java?
killersnowman said:
Html? You mean xml?
Also try Intellij instead of Eclipse. Eclipse is way too bloated and IntellJ has some amazing autocomplete features. Its better in my opinion
From something awesome
Click to expand...
Click to collapse
Hey, do you know how to use intellij idea fire Android development?
Sent from my GT-S5830 using xda premium

Android app development help?

Hello, I am a computer science student and i need some help getting into android programming, i know a bit, but frankly it aint much.
I know C++, C#,Visual Basic,(I know C++ the most) and i am currently taking a class on Java, but I want to get into android programming too!(I made a game for android a while back using unity.)
I don't need a tutorial from the ground up.
I know how setup the environment, sdk, run, etc.
I want to learn how to work with layouts and make them look cool,
basic app functionality, work my way to internet connected apps, databases, apps with root, gestures, all that fun stuff.
I am just wondering if anyone would share any info or site that helped them.
I am not that much of a noob to programming but i am to the android sdk and a rookie with java.
if any mentor would step up or something i would really appreciate it.
Thank you.
btw if you're feeling bored check out my game!
http://forum.xda-developers.com/showthread.php?t=2495430
Yes, i know its hard, i have a better version, i just haven't compiled and uploaded, i will soon.
I think best Website is always developer.android.com.
It hasn't only the API reference, but also Training section and much more.
Whenever I don't know sth I first visit this.
Regards
According to me you should go step wise step...Watch video tutorials on YT.
You can ping me for help.
Thanks
then go to java website and start learning java. Loads of tutorial stuff is on their website
java.com
then go and download the Android SDK in about 2-3 months when you've completed the above.
how to convert Shell script to apk file?????
hello gud evening to all
i am a ECE student...anyone can tell me how can i make a apk file by the use of Shell script...i have a shell script and just want to make a apk of this...
need help please...:crying:
Okay so i have been reading a lot and programming for weeks.
I am getting very comfortable with the android api. i've built a few of my own ****ty apps..
now i'm looking for a project to work on, something simple but not too simple either.
I need a little help with fragments and layouts and such, so if anybody has an idea for a project i could work on
or could teach me about fragments, feel free to post please? xD

[Q] New to Android app development

Good day everyone,
Please I am very very new to Android App development, I'm a complete nob but I really have a desire to build apps for the android platform. I recently downloaded an android tutorial pdf which I use to practice, I have installed on my PC ADT and Android Studio, but everything seems to complicated to me, the java language and everything looking soo hard. I managed to sail through and mastered the codes for Activities, Services but I got stuck when I got to the Content Providers chapter of the tut. The thing is I dnt knw how to write java.
Please what I need to know now is; what is the most basic of Android app development? Where do I have to start from first? and the steps to follow.
Thanks alot in advance
Yoozeey said:
Good day everyone,
Please I am very very new to Android App development, I'm a complete nob but I really have a desire to build apps for the android platform. I recently downloaded an android tutorial pdf which I use to practice, I have installed on my PC ADT and Android Studio, but everything seems to complicated to me, the java language and everything looking soo hard. I managed to sail through and mastered the codes for Activities, Services but I got stuck when I got to the Content Providers chapter of the tut. The thing is I dnt knw how to write java.
Please what I need to know now is; what is the most basic of Android app development? Where do I have to start from first? and the steps to follow.
Thanks alot in advance
Click to expand...
Click to collapse
If you're completely new to Java (and programming in general), you should learn it first. You don't need to know everything, but you should at least learn the basic syntax, variable types, and object oriented programming. I know MIT Opencourseware has free course materials on learning Java, it might be a good place to start.
Need Support
Hello Guyz,
I am a newbie. I just published my first android app in Google Play Store. I need your support to grow...please help me grow. Rate if you like this game:
play.google.com/store/apps/details?id=com.hachi72.flynofly
Thanks
Adding to flywheels, next you might want to check Android specific materials from official web-site. You need to learn base/fundamental, I believe this is why you stuck with Content Providers.

What is NDK ? why we use it ?

Welcome
I want to explain here shortly what is NDK ?
NDK stands for Native Development Kit. It is a good tool which enables you to use native languages like c/c++ in your apps besides android development code in java.
You may ask why i should this tool and write code in hard languages like c++ ?
Well, actually c++ is more complex than android code with java but it is very helpful in some apps like games
Especially, if you are ios and android developer and want to make a game, you will develope it for android by java then you will develope it by xcode and objective c for ios.
But if you made it by c++ using NDK, you will almostly use the same code in ios version and maybe make a little tweaks, so you will save a lot of time :good:
So it is very useful and time saver for apps will be made for ios and android platforms.
For more information about that, check android website by google for NDK and many other resources
Thanks for reading
........ and to think I thought NDK was the spark plugs you add to the development kit...... to give your work some Zing !

Develpoing GUI in Java

Hi everyone,
some days ago, i was substancially forced to join an Android project by my professor.
The fact is that his course was about C++ (your equivalent of that course should be Compuer Science II, and i have a good knowledge of C++), and this project is in Java. I have a little experience in Java (in fact, one of the courses that i am attending is focused on Java). Now, i think that in order to be a Computer Science engineer i have to fit myself to the situation ( i have some docs about the project) but i have no experience in Android app development and a very little knowledge of XML, so i ask you some help :good:.
What i have to do is to realize some GUI for his application. It is not very difficult, but i have no idea about from where i have to begin. In these 2 days i have managed to start some very simple application from Eclipse on my smartphones, but that's all, nothing more. So, is there any book or (better) some short guide or video to follow?
I use, as IDE, Eclipse (because i usually use it for Cpp, but some people said me that Android Studio should be better). I know that Eclipse is a really god IDE (For Cpp i tried also CodeBlocks, VisualStudio and Netbeans), but i know too that it raises some error that newbie user could not managed to solve easily: one of them is a java.lang.nullPointerException raised in every main.xml file...
Moreover, the project has to connect to a IBM Bluemix-stored database.
Last but not least please share a comment about my English (that, i have to admit, is not very good). I would really like to know how it - really - is.
(Excepting the typo in the thread title).
So, i ask you to kindly share resources (video, guides ...) about realizing GUI in Android.
Well first i'd recommend using android studio since it is the official ide for android by google, and I have worked with eclipse for 2 years and the android plugin is just too buggy.
About designing the ui it is usually done in xml rather than in code since its more intuitive and there is a preview.
You should start learning the basics and from there they teach you how to design the ui.
Try the official guide in the google developers section for android "developers android training"
Are you talking about https: //developer .android.com /training/index .html ?
Yes exactly, they have some nice guides there.
Here is a very nice guide for creating your first app in Android Studio: http://www.raywenderlich.com/78574/android-tutorial-for-beginners-part-1
Here is a layout tutorial: http://code.tutsplus.com/tutorials/android-user-interface-design-layout-basics--mobile-3671
Here is a compilation of Android beginners tutorials: http://www.sitepoint.com/12-android-tutorials-beginners/
If you give a more focused description of what you are trying to achieve (what are you intending to display and how do you want to display it), more focused tutorials can be suggested.
Best of luck
EliteRazor said:
Hi everyone,
some days ago, i was substancially forced to join an Android project by my professor.
The fact is that his course was about C++ (your equivalent of that course should be Compuer Science II, and i have a good knowledge of C++), and this project is in Java. I have a little experience in Java (in fact, one of the courses that i am attending is focused on Java). Now, i think that in order to be a Computer Science engineer i have to fit myself to the situation ( i have some docs about the project) but i have no experience in Android app development and a very little knowledge of XML, so i ask you some help :good:.
What i have to do is to realize some GUI for his application. It is not very difficult, but i have no idea about from where i have to begin. In these 2 days i have managed to start some very simple application from Eclipse on my smartphones, but that's all, nothing more. So, is there any book or (better) some short guide or video to follow?
I use, as IDE, Eclipse (because i usually use it for Cpp, but some people said me that Android Studio should be better). I know that Eclipse is a really god IDE (For Cpp i tried also CodeBlocks, VisualStudio and Netbeans), but i know too that it raises some error that newbie user could not managed to solve easily: one of them is a java.lang.nullPointerException raised in every main.xml file...
Moreover, the project has to connect to a IBM Bluemix-stored database.
Last but not least please share a comment about my English (that, i have to admit, is not very good). I would really like to know how it - really - is.
(Excepting the typo in the thread title).
So, i ask you to kindly share resources (video, guides ...) about realizing GUI in Android.
Click to expand...
Click to collapse
You can take a look at vogella web site tutorials
They have very usable tutorials, easy to understand.
Thanks everyone, i'll give a look to these resources

Resources