Creating An Android App with No Java Experience - Java for Android App Development

Hi everyone!
I hope everyone is having a great Christmas. I just got a nexus 7 for Christmas and really want to make an android app now. I've learned other languages before like HTML 5, CSS3, but not java. How should I go about learning java and then making an app? Thanks and enjoy the break!
Sent from my Nexus 7 using xda app-developers app

In my opinion best thing is to buy a book about developing android apps.
---------------------------------
Phone : Samsung Galaxy Mini S5570
OS:
•AOSP ICS Touchwiz V5 by A_U
•Android 4.0.4
•Baseband XWKS2
•Kernel: 2.6.37.6 Badass v1.9 by alin.p
•Recovery CWM v4.0.0.5
Mods:
PureAudio, Mounts2SD, ODEX through Universal ODEX script, AdBlock by AdAway
---------------------------------
Gesendet von Tapatalk

Sorry, html nor css3 is comparable with java!! If you know JavaScript or PHP that would be an advantage.
Don't buy a book about android developing: you'll get frustrated! Learn java first: It isn't as hard as you think after a week: Don't give up. If you know java, android will be much more easy!
Regards

EmptinessFiller said:
Sorry, html nor css3 is comparable with java!! If you know JavaScript or PHP that would be an advantage.
Don't buy a book about android developing: you'll get frustrated! Learn java first: It isn't as hard as you think after a week: Don't give up. If you know java, android will be much more easy!
Regards
Click to expand...
Click to collapse
What's the best way to learn java?
Sent from my Nexus 7 using xda app-developers app

way many java tutorials are available on the net.
And java is very easy language to learn, and developing android is very easy as well.

TIProgrammer84 said:
What's the best way to learn java?
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
I always recommend the Head First Java book.

krikor1 said:
way many java tutorials are available on the net.
And java is very easy language to learn, and developing android is very easy as well.
Click to expand...
Click to collapse
Do you have some tutorials links regarding Java for android ? I am looking for a good tutorial to start but with all the options I'm scared of wasting my time with tutorial that are too complicated or just bad...

The "Programming Mobile Applications for Android Handheld Systems" course starts on Coursera on 21-th january. May be it will be useful for you.

Java for Android is slightly different from regular Java. That is, the programming language itself is the same, but some of the packages (libraries) are different.
I think it's best to start with regular Java (for desktop apps), because there's a lot more books, tutorials and other resources to get you started. Once you know the basics of the Java language, you can then move to Android.
I can recommend Netbeans as a good IDE for starting with Java development.
The official IDE for Android is Eclipse, with a special Android plugin provided by Google. I don't find Eclipse very userfriendly, and it is not that stable either, so I don't think it's that good for beginners.
Some code I develop for Android today, I develop with Netbeans as a regular Java app first, then import the code into Eclipse and modify it to work for Android. But that's mostly the 'business end' code (I mainly develop graphical/rendering stuff...). UI code is entirely different for regular Java and Android, so it wouldn't make sense to do that in Netbeans first.

Youtube or Amazon will help you.
For learning Java I can recommend the newboston videos on youtube, his Android series even explains the java in good detail.
There are some good books for java, check Amazon reviews for the best ones. I like the Dietal How to Program, Java: The complete reference, and Java for Dummies.

Related

Does android support c++

As im now beginning too learn and compile in c++ and objective c i was wandering does android support it could i build a game in openGL and c++ or is it strictly java? thanks
Also i want to be able to work on the go but the best environment i could find was this https://play.google.com/store/apps/details?id=com.didactic.DeuterIDE&hl=en
any suggestions please don't say run Ubuntu natively.
sorry if this post is better suited in Q an A or Development
gears177 said:
As im now beginning too learn and compile in c++ and objective c i was wandering does android support it could i build a game in openGL and c++ or is it strictly java? thanks
Also i want to be able to work on the go but the best environment i could find was this https://play.google.com/store/apps/details?id=com.didactic.DeuterIDE&hl=en
any suggestions please don't say run Ubuntu natively.
Click to expand...
Click to collapse
Take a look at the Android NDK (Native Development Kit). You can build native code and compile with C/C++, although it is best integrated with a Java project to build the final APK. You can't use Objective-C, however. We don't have Cocoa Touch haha
I personally haven't used the NDK but I've looked at it and it does provide a complete ARM toolchain. NVIDIA also provide some additional Tegra profiling tools that integrate with the NDK.
blackthund3r said:
Take a look at the Android NDK (Native Development Kit). You can build native code and compile with C/C++, although it is best integrated with a Java project to build the final APK. You can't use Objective-C, however. We don't have Cocoa Touch haha
I personally haven't used the NDK but I've looked at it and it does provide a complete ARM toolchain. NVIDIA also provide some additional Tegra profiling tools that integrate with the NDK.
Click to expand...
Click to collapse
hmm thanks so objective c is out most likely i will integrate it with Java to since my c skills are not great yet....for a mobile environment you recommend Android NDK?
gears177 said:
hmm thanks so objective c is out most likely i will integrate it with Java to since my c skills are not great yet....for a mobile environment you recommend Android NDK?
Click to expand...
Click to collapse
Well, the SDK for proper app development (in java mainly) but you can integrate that with the NDK for native code in C/C++
Sent from my A500 using Tapatalk 2
blackthund3r said:
Well, the SDK for proper app development (in java mainly) but you can integrate that with the NDK for native code in C/C++
Sent from my A500 using Tapatalk 2
Click to expand...
Click to collapse
thanx will do so if i got this right building a game in c++ in openGL will work but recommended to integrate it into java for the apk

[Q] Moving over to Java from Actionscript3

Hi guys,
I have successfully developed and released my game to the market. However I did this using Adobe AIR and the Starling Framework.
After many compatibility issues/limitations, I am now considering re-coding my game in Java. I have setup my IDE and SDKs according to how developer.android.com suggest.
Does anyone know of any good books or tutorials to help get me on my way quickly to getting my app up and running in Java.
I know this is a vague question, but any recommendations of tutorials or books will be very helpful.
Thanks!:laugh:
And I have heard that libgdx is a good framework to be using?
First of all you have to consider if you are going to use a 2D-3D engine or just go with full native android sdk.
What's your choice?
taomorpheus said:
First of all you have to consider if you are going to use a 2D-3D engine or just go with full native android sdk.
What's your choice?
Click to expand...
Click to collapse
Sorry for the delay. Well, probably 2D. Maybe somebody can take a look at my current flash game and then tell me if it is possible using only the android SDK. Wouldn't want to use an engine if it's not necessary.
I'm not trying to pawn downloads off you guys here XD
Link to Google Play (yes, it's free): https://play.google.com/store/apps/details?id=air.co.za.rainisfalling.SheepJump&hl=en
That's quite a good book for game devs : http://books.google.fr/books/about/..._Development.html?id=-IBpqY51DfwC&redir_esc=y
If you need to learn the basics of Android development, I recommend you watch thenewboston's 200 video tutorials series for beginners on youtube : http://www.youtube.com/watch?v=1j4prh3NAZE&playnext=1&list=PL33384E9848C4F55E&feature=results_main

Planning to learn coding games for android - need help

I would love to create an android game. So I am planning to start learning it.
I have coded an application already and I think I know the basics. So now I want to get into game programming which is too complex if I heard it right.
I would like my fellow developers who have experience in coding games to give me some links and tutorials which will come handy for newbie like me.
Thanks in advance!
obscurant1st said:
I would love to create an android game. So I am planning to start learning it.
I have coded an application already and I think I know the basics. So now I want to get into game programming which is too complex if I heard it right.
I would like my fellow developers who have experience in coding games to give me some links and tutorials which will come handy for newbie like me.
Thanks in advance!
Click to expand...
Click to collapse
I think the best way to learn any new area of software development is to get stuck into a project. I've been working in various embedded and real-time environments for years but a couple of years ago myself and a couple of mates decided to try to make a game. At the time we wanted to learn C# so we dived into the XNA framework & made something that ran on Windows & XBox. It was never released, but I learned a lot of new stuff. Started with their tutorials and went from there. I can't help with links and so on for Android but don't be put off by the idea that games are too complex - the first software job I ever did was on a full size submarine simulator for the Navy & that really was complicated!
I think that this is a very good piece of advice: http://www.raywenderlich.com/12065/how-to-create-a-simple-android-game
It helped me very much.
Coding games has become very easy these days thanks to the superb engines but some do come at a premium price
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
Coding games has become very easy these days thanks to the superb engines but some do come at a premium price
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
I agree. But Andengine is free and very good. Look at the link I gave above.
I used Unity3D for my class project before. It's very nice and easy to use. You should check it out
there is a great guide on xda: link.
ciao99 said:
there is a great guide on xda: link.
Click to expand...
Click to collapse
Thanks I have started learning!
Also another great resource is the new Boston. You can see them here and select Java Game Development. http://thenewboston.org/tutorials.php
You can also learn regular Java and Android development on that Site!
Sent from my Nexus 4 using Tapatalk 2
When I started to learn android game developing I found some very useful tutorials at: obviam.net. Look for the series 'Getting started in android development with libgdx'.
This series uses the framework libGDX, which enables you to write your game once and easily port it to many different platforms.
Fíghter02 said:
When I started to learn android game developing I found some very useful tutorials at: obviam.net. Look for the series 'Getting started in android development with libgdx'.
This series uses the framework libGDX, which enables you to write your game once and easily port it to many different platforms.
Click to expand...
Click to collapse
I totally support this. I created my first Android game (Rock Ninja) with no previous game development experience thanks to the awesome Libgdx framework/community.
Yeah, LibGDX great thing and very easy to learn on GoogleCode's wiki page by simply reading topics one by one. Of course if you are familiar with java first
I'm also member of libGDX community, even helped to fix some bugs in particle editor. But after deeper look at this engine, you find some problems in deployment on other platforms. So, I'm looking at the Unity 3d now, besides it became free for android and iOS version.
Widesteppe said:
I'm also member of libGDX community, even helped to fix some bugs in particle editor. But after deeper look at this engine, you find some problems in deployment on other platforms. So, I'm looking at the Unity 3d now, besides it became free for android and iOS version.
Click to expand...
Click to collapse
True, iOS is still work in progress with Libgdx. Good news is that the new RoboVM backend(that will replace Monotouch/Xamarin) is looking really promising and a first app has already been successfully published to the Appstore.
I have a decent stash of books on mobile development. I would start with either monogame, libGDX(provided you know openGL), AndEngine, Unity3D, or use cross platform tools that turn HTML5/CSS3/Javascript into native code. Give me a PM if you need anything, best of luck :good:
Monkey_King said:
I have a decent stash of books on mobile development. I would start with either monogame, libGDX(provided you know openGL), AndEngine, Unity3D, or use cross platform tools that turn HTML5/CSS3/Javascript into native code. Give me a PM if you need anything, best of luck :good:
Click to expand...
Click to collapse
You don't need any knowledge of OpenGL for Libgdx, everything is abstracted out for you.
ob1cat said:
You don't need any knowledge of OpenGL for Libgdx, everything is abstracted out for you.
Click to expand...
Click to collapse
Isn't the GLSL used in LibGDX?
Monkey_King said:
Isn't the GLSL used in LibGDX?
Click to expand...
Click to collapse
Internally yes, but it's abstracted by the framework for you not to need to worry about it.

How do i create a simple app

I'm totally new to programming & i wanna know what software do i need to create my 1st app .Also,i would like to know what would you suggest as a good start.
riffraffboss said:
I'm totally new to programming & i wanna know what software do i need to create my 1st app .Also,i would like to know what would you suggest as a good start.
Click to expand...
Click to collapse
Maybe you start with reading some android book. They have some simple examples that you can play with.
riffraffboss said:
I'm totally new to programming & i wanna know what software do i need to create my 1st app .Also,i would like to know what would you suggest as a good start.
Click to expand...
Click to collapse
I highly recommend you to read a book called Head First Java. Once all your concepts are clear, then start reading Head First Android to know the basics about Android app development. Good luck
You should start with googling Hello world application for android. Next you need Eclipse with ADT plug-in (mostly used IMO) plus Android SDK as dev tools.
abcdjdj said:
I highly recommend you to read a book called Head First Java. Once all your concepts are clear, then start reading Head First Android to know the basics about Android app development. Good luck
Click to expand...
Click to collapse
That's the book I also recommend to everyone who hasn't got very much expirience with programming. It is easy to understand and fun to read. So get that book and learn Java first. However, you can skip the parts about designing the user interface (UI) as that is completely different for Android.
Afterwards get a book about Android programming. You need a good understanding of Java for that though.
Software which you will need is Eclipse and the Android SDK.
Basics
You need to learn the concepts of Java, (reading the books as suggested) and try experimenting and changing what you've learn through Eclipse
Gutsycat said:
You should start with googling Hello world application for android. Next you need Eclipse with ADT plug-in (mostly used IMO) plus Android SDK as dev tools.
Click to expand...
Click to collapse
I have personally read Head First Java and agree its a good place for you to start. I had been learning for about a year on and off when I finally picked up the book. It was like a light switch turned on and finally started wrapping my ahead around the things I had been failing to comprehend.
I want to point out to those some things to those that think they are just going to jump in and start developing world class apps. First thats not going to happen. Learning Java and other parts of Android are like learning whole new languages in their own. You have to learn to walk before you can run. But for those that really want to do it, don't give up and you will eventually get there. :cyclops:
You can also find many beginner's java tutorials(they may not be as good as the books). But once you have the concept you should be on your way to app development.
Sent from my SGH-M919 using xda app-developers app
riffraffboss said:
I'm totally new to programming & i wanna know what software do i need to create my 1st app .Also,i would like to know what would you suggest as a good start.
Click to expand...
Click to collapse
I think the best and complete way is studing the java tutorials provided by oracle and the android tutorials by google.
You can start with the basics of object programming and the fundamentals of java and android.
After, use the advanced tutorials for specific concepts.
pizandroid said:
I think the best and complete way is studing the java tutorials provided by oracle and the android tutorials by google.
You can start with the basics of object programming and the fundamentals of java and android.
After, use the advanced tutorials for specific concepts.
Click to expand...
Click to collapse
In my opinion there are better tutorials than Google's ones for beginners. Too complicated for newbies in my view.
download adt and create helloword app
download adt and create helloword app
riffraffboss said:
I'm totally new to programming & i wanna know what software do i need to create my 1st app .Also,i would like to know what would you suggest as a good start.
Click to expand...
Click to collapse
Hi !
I answered your question here. Of course you need to know Java before you start with Android programming.

411 on game development.

I need help/advice. Ive been looking everywhere YouTube,Google. I'm trying to find the right software and info on building my own android game..I have eclipse but don't know java or any other programming language to save my life. Anyone have any advice on what I need or a website to teach me.
Sent from my SCH-I605 using xda app-developers app
nachoandroid85 said:
I need help/advice. Ive been looking everywhere YouTube,Google. I'm trying to find the right software and info on building my own android game..I have eclipse but don't know java or any other programming language to save my life. Anyone have any advice on what I need or a website to teach me.
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I'm not aware of any great game building templates for android, so this post only has to do with making your own software from scratch.
I would go to the android developer site, and download the Android Development Tools: http://developer .android.com/sdk/index.html (remove the space)
Then I would read up on Java and try to make increasingly difficult projects. Don't even start with android, get a java book (Java Illuminated and Big Java are good ones) and learn the basics of Java. If you know another language already, that won't be too hard. Then, start looking through the android development website, which has a lot of good tutorials.
Once you have an idea for the game, write it out, figure out what you need each piece to do, and then you'll have a much easier time writing your game, because you'll have specific questions that can be answered by the tutorials or your fellow developers here at xda :fingers-crossed:
Have fun and good luck!
nachoandroid85 said:
I need help/advice. Ive been looking everywhere YouTube,Google. I'm trying to find the right software and info on building my own android game..I have eclipse but don't know java or any other programming language to save my life. Anyone have any advice on what I need or a website to teach me.
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
You can try the GameMaker, but you will need to know at least the basics of any programming language (variables, conditionals, loops,...)
Consider learning Unity 3D. Its an amazing tool for both 3d and now 2d games.
You can use and learn Unity in easy way, internet is full of Unity tutorials.

Categories

Resources