Introduction
Hey guys. I'm working on an Android application for XDATV. We've never really featured a fully functional application on XDATV before. I thought it was high time we did that.
Noter is a note taking application. It is a good representation of several basic Anrdoid APIs.
source & download
Subversion Repository: http://xda-adk.googlecode.com
Project Checkout: svn checkout http://xda-adk.googlecode.com/svn/trunk/EclipseProjects/xdatv-noter
Image of app: http://i50.tinypic.com/qs8ro8.png
App download: https://code.google.com/p/xda-adk/downloads/detail?name=XDATVNoter.apk
goals
Demonstrate proper coding style and development.
Introduce n00bs to app development.
Make an expandable single-class app which will have the ability to integrate into future projects.
Questions and Contributions
If you have a question, please ask. I am in no way, shape, or form an Android app development expert. I do java more than anything else, not so much with Android. If you've got something to contribute, please do! If you spot a problem in the code, then let me know and I'll give you credit on the SVN Commit.
I think this is an awesome idea. Many of the developers here don't know the Android framework but have worked with lots of C based languages, so picking up Java (if we need to) is not that big a deal. Hopefully this will be the kind of thing that we can follow and learn the OS and framework as we go along. I know it's ideal for me, being a 20 years Windows developer.
Archer said:
I think this is an awesome idea. Many of the developers here don't know the Android framework but have worked with lots of C based languages, so picking up Java (if we need to) is not that big a deal. Hopefully this will be the kind of thing that we can follow and learn the OS and framework as we go along. I know it's ideal for me, being a 20 years Windows developer.
Click to expand...
Click to collapse
Yeah! That's the idea. Once the video is released I will publish it in the OP as well. I hope its understandable. If not, that's why we have this thread available.
The onclick view thing is handy:good:
hi adam! In the title of the video you mentioned testing, which i missed a little in the video. what methods or tools do you use for unit testing and stuff?
I'm sorry to clog up this thread with a post about help, but I couldn't find a thread for the series for tutorials Adam released about a year ago.
At around 8:34 in part one (http://www.youtube.com/watch?list=P...=31cxmLN09ss&feature=player_detailpage#t=513s), Adam adds a button to his test-app thing. It will not let me do this. It shows a no symbol over my cursor when I drag it over the display. I selected the .xml through res and layout just like he did. Only different thing I can tell I am doing is using 4.0 API instead of 2.3.
I have no experience with coding or doing work with Android so I apologize for any common mistakes.
klownk said:
hi adam! In the title of the video you mentioned testing, which i missed a little in the video. what methods or tools do you use for unit testing and stuff?
Click to expand...
Click to collapse
Just the standard tools. A device and a device emulator.
hi der!
is their any file named "notes.txt" is created.? if yes where can i find it?
and yeah thank you!.. am just a beginner and this helped me a lot!
Edit :
i also added "WRITE_EXTERNAL_STORAGE" permission in android manifest!
but still cant find noter.txt file anywhere as mentions in MainActivity.java file!
please help!
1031Vulcan said:
I'm sorry to clog up this thread with a post about help, but I couldn't find a thread for the series for tutorials Adam released about a year ago.
At around 8:34 in part one (http://www.youtube.com/watch?list=P...=31cxmLN09ss&feature=player_detailpage#t=513s), Adam adds a button to his test-app thing. It will not let me do this. It shows a no symbol over my cursor when I drag it over the display. I selected the .xml through res and layout just like he did. Only different thing I can tell I am doing is using 4.0 API instead of 2.3.
I have no experience with coding or doing work with Android so I apologize for any common mistakes.
Click to expand...
Click to collapse
You have to drag it from the bar on the left. There are a set of controls over there which you can select and drag/drop.
ateeq72 said:
hi der!
is their any file named "notes.txt" is created.? if yes where can i find it?
and yeah thank you!.. am just a beginner and this helped me a lot!
Edit :
i also added "WRITE_EXTERNAL_STORAGE" permission in android manifest!
but still cant find noter.txt file anywhere as mentions in MainActivity.java file!
please help!
Click to expand...
Click to collapse
Its in /data/data/tv.xda.noter/files/notes.txt You need to be "Noter" or root to access this file.
Nice video, thanks!
Don't forget to close your output stream; probably more dangerous than forgetting to close an input stream if anything's buffered. Also it's maybe stylistic, but I much prefer Reader/Writer for textual data. If you like System.out style, you can do:
PrintWriter out = new PrintWriter(new OutputStreamWriter(openFileOutput(FILENAME, Context.MODE_APPEND)));
Really great job Adam. I'm going to watch a second time tint and build the app along with the video, you have some points that are helpful that I hadn't thought of before.
Edit:
Adam, I just watched and built along with the video. What action did you do at 15:24, I can see you did something called Refactor, but I'm not familiar with it. Can you explain what it does and why you did it? Thank you!!!
Sent from my Nexus 7 using xda premium
marty331 said:
Really great job Adam. I'm going to watch a second time tint and build the app along with the video, you have some points that are helpful that I hadn't thought of before.
Edit:
Adam, I just watched and built along with the video. What action did you do at 15:24, I can see you did something called Refactor, but I'm not familiar with it. Can you explain what it does and why you did it? Thank you!!!
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
I just moved some code into methods and changed some names. Refactoring means renaming or moving or a number of other operations. Basically, you clean things up with a refactoring. Refactoring is an operation the IDE does safely so when methods or variables move, all the calls point at the newly refactored method or variable.
AdamOutler said:
I just moved some code into methods and changed some names. Refactoring means renaming or moving or a number of other operations. Basically, you clean things up with a refactoring. Refactoring is an operation the IDE does safely so when methods or variables move, all the calls point at the newly refactored method or variable.
Click to expand...
Click to collapse
Awesome, great to know. I'll try using this in the future!
Sweet tutorial! Will be using this as starting point for the app I want to develop. Quick issue though. When I first implement the OnClickListener, it has an error with 56 fixes available, the top two being imports. Which one of these do I pick? I see you chose something from a dropdown, but the video sped up and I can't see which one it was.
A random package said:
Sweet tutorial! Will be using this as starting point for the app I want to develop. Quick issue though. When I first implement the OnClickListener, it has an error with 56 fixes available, the top two being imports. Which one of these do I pick? I see you chose something from a dropdown, but the video sped up and I can't see which one it was.
Click to expand...
Click to collapse
There are 2 common OnClickListener classes like you say, one of them is probably View.OnClickListener and the other DialogInterface.OnClickListener. Use the View.OnClickListener any time that you are attaching it to a widget in your normal layout. Use the DialogInterface.OnClickListnener any time you have created an AlertDialog and are listening to one of its buttons.
Sweet, thank you! :good:
File Location
Hey Adam
In the video you haven't mentioned how to choose the file location.
Please guide me on this.
Thanks
pawan.dewani said:
Hey Adam
In the video you haven't mentioned how to choose the file location.
Please guide me on this.
Thanks
Click to expand...
Click to collapse
that's done in the fileinputstream portion. new FileInputStream("filename"), or you can do new FileInputStream(new File("filename", "/path/tofile"));
Related
A new development tool is now available for Android devices: Basic4android.
Basic4android syntax is similar to Visual Basic with support for objects.
Basic4android includes a GUI designer that supports multiple screens and resolutions.
I believe that this tool is much simpler to start with than Eclipse + Java.
Compiled applications are regular APK files, and the performance is similar to Java performance.
You can see more information here: basic4ppc[dot]com
Does it have a tutorial or may some one leave a brief training here?
thanks for finding something like this. I've always wanted to create my own apps and now I can and with this program it looks pretty good.
Does it have a tutorial or may some one leave a brief training here?
Click to expand...
Click to collapse
There are several tutorials in the documentation center.
basic4ppc[dot]com/android/documentation.html
Sorry that I cannot post working links...
Erel said:
There are several tutorials in the documentation center.
basic4ppc[dot]com/android/documentation.html
Sorry that I cannot post working links...
Click to expand...
Click to collapse
Godsend. I've been self-learning Java this week and slowing developing my first two apps using Eclipse. I've got a good grasp of the language but I was always better with vb.
Thanks heaps
I had Basic4PPC for WM Development, then Android came along. I'm glad the author has released Basic4Android as well!
Doug
Looks very promising!! Though I would have liked to see C# instead of visual basic coding. I can't even remember it anymore. It's been so long since I have used visual basic!! Lol. Maybe it's time to study up. I have refused to use have for a number of reasons!
Sent from my Droid using magical powers.
Does anyone have now experiences with that programm? I have an application written in VB for Windows Mobile. I want to change that to Android.
Would be nice to get some information before i buy this tool.
Wow, this looks interesting. Might pick this up
Edit: wow this was an old topic..
Sent from my Nexus S using Tapatalk
I tried it, seems to hard to get it to run any app, has a glitch
I tried it, seems to hard to get it to run any app, has a glitch
Click to expand...
Click to collapse
It shouldn't be difficult. If you like you can post this issue in Basic4android forums. I'm sure that it will be solvable.
I use mostly b4a, it is very simple and there is a lot of help on the forums, and people developing libraries and code classes.
I am learning on android studio now, but I have been happy developing with b4a!
Hello XDA,
I have just finished my first year of high school, and have spent 2 years around Windows Mobile and Android.
I want to start developing in different parts of Android, Applications being the top priority.
I have found and got many guides such as Sam's Teach Yourself for helping me build applications.
I know I can't start off building advanced apps. But the place I need help is where should I start, and what things I should learn such as Java, Adobe Air being a few.
If you guys can please maybe make a list I should follow or something...This would be greatly appreciated,
Thanks A lot
If you have an idea about java, the next step is to "google" for "Android Developers"...
I think it's the perfect place for beginners in Android Development...♫ ♪
Yep, you'll definitely need to learn Java. Knowing some Object Oriented concepts will help too.
The recommended IDE (Integrated Developer Environment) for Android is Eclipse (it's free!). I personally use IntelliJ (community edition is free - less features, but it's got all you need for Android dev).
Looking at tutorials etc is really good - imo the best way to learn is hands-on learning. A good starting place is the developer docs: http://developer.android.com/resources/browser.html?tag=tutorial
Once you've followed a couple of those, you'll probably be exploring new/random classes, so looking at the reference will help too: http://developer.android.com/reference/packages.html
Of course the best way is to just try something out to get started - even if it is something simple, or verbatim from the tutorials.
As for what app to start with... a simple one is always good. But what is important is make something that you feel like you need/want to use yourself. That way you will be more motivated to follow through with the idea, and you'll be your own user, thus be able to make good improvements
Thank you so much
Thanks a lot. I would have no idea where to start, despite many guides available out there.
Both you have made it a lot simpler.
Thanks once again.
pigeonaras said:
If you have an idea about java, the next step is to "google" for "Android Developers"...
I think it's the perfect place for beginners in Android Development...♫ ♪
Click to expand...
Click to collapse
pyko said:
Yep, you'll definitely need to learn Java. Knowing some Object Oriented concepts will help too.
The recommended IDE (Integrated Developer Environment) for Android is Eclipse (it's free!). I personally use IntelliJ (community edition is free - less features, but it's got all you need for Android dev).
Looking at tutorials etc is really good - imo the best way to learn is hands-on learning. A good starting place is the developer docs: http://developer.android.com/resources/browser.html?tag=tutorial
Once you've followed a couple of those, you'll probably be exploring new/random classes, so looking at the reference will help too: http://developer.android.com/reference/packages.html
Of course the best way is to just try something out to get started - even if it is something simple, or verbatim from the tutorials.
As for what app to start with... a simple one is always good. But what is important is make something that you feel like you need/want to use yourself. That way you will be more motivated to follow through with the idea, and you'll be your own user, thus be able to make good improvements
Click to expand...
Click to collapse
No problems
Oh, forgot to mention in my original post... the only reason I'm using IntelliJ is because I use it at work (so used to the shortcuts etc).
imo, both IDEs are comparable - just what you are used to.
If you haven't used either, probably go with Eclipse since there are a lot more tutorials/guides out there related to dev with Eclipse/Android.
I started developing about 8 months ago. I am going to be a Junior in High School, so we are in the same boat here.lol
Anyways, I spent a lot of time looking at many books and resources. Alos another thing that helps is to teach your self how stuff works by studying source codes. But dont only do this. Look at tut's and other resources as well. Remember, start small then work your way up! Dont go out and try to make a super amazing awesome app. You will just frustrate your self. So start simple. I was making small apps that only had text when i first started. Now where am i you may ask? I am the developer of the Android Markets only Honeycomb Launcher and a couple other larger apps!
Just remember it takes time, alittle money, patiences and PRACTICE! Make an app or at least work on an app EVERYDAY if possible.
If you get stuck use the resources on the Android site that Android gave to us.
http://developer.android.com/guide/topics/fundamentals/activities.html
Check out the DEV guides, resources and sample code.
Also, do you have eclipse and Android SDK already set up?
ZAIGHAM ALI said:
Hello XDA,
I have just finished my first year of high school, and have spent 2 years around Windows Mobile and Android.
Click to expand...
Click to collapse
I finished my 2nd year of high school, got an HTC Sensation 4G recently and am looking to make roms for other phones (currently looking at the Nexus S). I am getting bored so I would think it would be awesome if we could team up of something and create some roms for phones or something. I'm young like you, looking to make use of my general coding skills(had iPhone for 2 years, so i have some experience with jailbreaking and modding, etc.)
Would be very glad if we could team up or something and who knows, maybe become the next Cyanogen! Looking for a hobby, not profit.
Have a good day!
matistight said:
I finished my 2nd year of high school, got an HTC Sensation 4G recently and am looking to make roms for other phones (currently looking at the Nexus S). I am getting bored so I would think it would be awesome if we could team up of something and create some roms for phones or something. I'm young like you, looking to make use of my general coding skills(had iPhone for 2 years, so i have some experience with jailbreaking and modding, etc.)
Would be very glad if we could team up or something and who knows, maybe become the next Cyanogen! Looking for a hobby, not profit.
Have a good day!
Click to expand...
Click to collapse
Creating a ROM right off the back??? You are going to end up throwing your computer out the window! I know a few ROM developers and they say it is VERY challenging and frustrating at times.
I recommend you two join together or with others and create some apps first. Start small then work your way up...
IntelSoftApps said:
Creating a ROM right off the back??? You are going to end up throwing your computer out the window! I know a few ROM developers and they say it is VERY challenging and frustrating at times.
I recommend you two join together or with others and create some apps first. Start small then work your way up...
Click to expand...
Click to collapse
i concur... The Android operating system, including the Linux kernel, consists of roughly 12 million lines of code including 3 million lines of XML, 2.8 million lines of C, 2.1 million lines of Java, and 1.75 million lines of C++.
wrap your head around that... =)
depending on how complicated you want to go, you can try using phonegap or html5 to create apps, if not, you would need to learn java
PS: you want to make a rom from scratch? what?
Thanks to everybody above i really really appreciate it, i learnt a lot of nice advice.
killersnowman said:
i concur... The Android operating system, including the Linux kernel, consists of roughly 12 million lines of code including 3 million lines of XML, 2.8 million lines of C, 2.1 million lines of Java, and 1.75 million lines of C++.
wrap your head around that... =)
Click to expand...
Click to collapse
That is A LOT of code!!! You guys should probably start with the "Hello, Android" tutorial. That can be a challenge if you dont know how to work eclipse. But luckily, Android provides a nice little "Hello, Android" tutorial.
P.S. You or anyone will never past Cyanogenmod for awhile. I think they know what they are doing.lol
But it is always good to dream big! Like i want to be a Trillionare.lol (I dont even know how to spell it) "But dreams do come try"
Hey guys, I'm a senior now. I have done the hello Android tutorial, and I have the Android dev for dummies, but I know nothing about java and xml programming.
Thanks for the advice. If anyone else has any other tutorials, let me know. Thanks.
Sent from my PC36100 using XDA Premium App
I am in the exact same position as you. I have just got the "Head First Java" book, but I dont think it looks like it will help that much.
monkeychef said:
Hey guys, I'm a senior now. I have done the hello Android tutorial, and I have the Android dev for dummies, but I know nothing about java and xml programming.
Thanks for the advice. If anyone else has any other tutorials, let me know. Thanks.
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
See i was in that boat like you guys were, and it SUCKS! All of the tutorials are very simple textviews and buttons, but nothing that really teaches you all that much java.
Heres what i suggest. Play with the source of apps. Download some source codes and create new android projects in eclipse from THAT source. (LET ME KNOW IF YOU NEED HELP WITH THAT)
And with in those projects, view all of the sources and xml files. Learn how stuff works. such as imports and buttons and permissions. I first started messing with layouts, xml files, strings, and buttons. This is good, BUT you will get to a point were you will see force closes. Thats because the java must match... That got me into looking at the java files more and more. Now that is almost the first thing i dive into.
Like i said along time ago, i am not anywhere close to being an expert at all! But i am getting a good handle on Android in the following ways...
- Visit XDA daily and other sites. Stay up to date and learn what is going on now. not what was being developed a month ago. Stuff is aways changing!
- Surround yourself with a group of developers! They can and will be your BEST friends! As many of you had said before, many of you want a hobby not a profit. Trust me, thats what everyone says.lol. There is some good money to be made out there!!! Some of your best developers can make every developer on a team some money. They also have your back if you get lost or stuck on something.
- Try finding people in your same boat or position. Kind of like the other kid on the site... You two can work something out. Exchange emails. share names and interest. This doesn't mean y'all need to hold hands but just create some chit chat once in awhile. If you learned something, tell him about it!
- USE YOUR F'IN RESOURCES!!! Android/Google made this AMZING site called Android.com. On that site they have developer guides, resources, tut's, and even sample code! Another amazing resource is Stackoverflow.com. Here you can find a lot of answers to any problem. I must have visited that site 1000 times.lol
and dont forget about GOOGLE.COM. ask questions in your search, but be SPECIFIC. Be sure to include "Android" in your search so you can get android support not some iPhone or Windows support...
Anyways, just get out there! try to be the best you can! Absorb as much as you can. LIVE ANDROID! but also have a life.lol
IntelSoftApps said:
All of the tutorials are very simple textviews and buttons, but nothing that really teaches you all that much java.
Click to expand...
Click to collapse
very true. i had been a java programmer for 4 years prior to learning android dev and what really got me going was coming up with an idea for an app and moving to make that a reality. if you just go through and do tutorials you wont get as much out of it as actually trying to make something you can use, be it a small and simple something.
also, i had always done command line java programs and had ignored the java swing ui like the plague, but android has a great layout and ui system. if you are learning java for use in android dont be disheartened by javax.swing package
You should definitely learn an object oriented programming language first before delving into android. I would recommend Java as it is what you will use for a lot of development. A lot of these guides and tutorials including that dummies book expect you to know what a public vs private class is or what inheritance is.
Also another big part of android is XML. At least learn the basics of XML.
I recommend the Java for dummies book as it provides a good introduction to many of the Java concepts that you will need. Java and eclipse can be quite a lot of fun once you get to know it.
Sent from my Nexus S using XDA Premium App
If your a starter, I recommend to go for web based right way, I'm confident that in the near future most mobile device applications will be mainly web based just like desktops.
Thanks a lot, I will get that book asap.
apreichner said:
You should definitely learn an object oriented programming language first before delving into android. I would recommend Java as it is what you will use for a lot of development. A lot of these guides and tutorials including that dummies book expect you to know what a public vs private class is or what inheritance is.
Also another big part of android is XML. At least learn the basics of XML.
I recommend the Java for dummies book as it provides a good introduction to many of the Java concepts that you will need. Java and eclipse can be quite a lot of fun once you get to know it.
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
Sent from my SEX10 using XDA App
Sorry, but what "web-based" ?
Kevincod said:
If your a starter, I recommend to go for web based right way, I'm confident that in the near future most mobile device applications will be mainly web based just like desktops.
Click to expand...
Click to collapse
Sent from my SEX10 using XDA App
So I'm just beginning to try getting into development and saw from several users on here that the first step would be to learn Java, so my obvious question is what's the best way to do that? I have little programming experience. I believe I correctly installed JDK and also have Eclipse and AndroidSDK. A brief but clear explanation pointing me in the right direction would be appreciated. Thank you for anyone who can help.
Imnice777 said:
So I'm just beginning to try getting into development and saw from several users on here that the first step would be to learn Java, so my obvious question is what's the best way to do that? I have little programming experience. I believe I correctly installed JDK and also have Eclipse and AndroidSDK. A brief but clear explanation pointing me in the right direction would be appreciated. Thank you for anyone who can help.
Click to expand...
Click to collapse
The first thing you should do is ignore the AndroidSDK for a while !
It's not worth touching a phone before you can at the very least write a few simple Java programs.
Start with a single class that prints some stuff out to the screen and go from there.
Once you are comfortable with the syntax, I'd say you'd need to be able to write a standalone Java program that has, say, 10 classes in it as a first step.
PicomatStudios said:
The first thing you should do is ignore the AndroidSDK for a while !
It's not worth touching a phone before you can at the very least write a few simple Java programs.
Start with a single class that prints some stuff out to the screen and go from there.
Once you are comfortable with the syntax, I'd say you'd need to be able to write a standalone Java program that has, say, 10 classes in it as a first step.
Click to expand...
Click to collapse
Thanks for the advice! I'd definitely agree that I should be able to read and write at least basic code before putting anything to use, however where should I learn how to write the classes? I downloaded the Headfirst Java textbook because I saw people talking about it and seemed pretty legit. Do you know anything about it or how to go about using it? I can't seem to open the .class or .java files even though I believe I correctly installed JDK. Is there a better place to learn? Thanks for any help you give, clearly I'm new to this, however very interested.
Imnice777 said:
Thanks for the advice! I'd definitely agree that I should be able to read and write at least basic code before putting anything to use, however where should I learn how to write the classes? I downloaded the Headfirst Java textbook because I saw people talking about it and seemed pretty legit. Do you know anything about it or how to go about using it? I can't seem to open the .class or .java files even though I believe I correctly installed JDK. Is there a better place to learn? Thanks for any help you give, clearly I'm new to this, however very interested.
Click to expand...
Click to collapse
I liked the official tutorials much and I'm sure you would like it too.
Just focus on the concept for a while before proceeding any farther.
Good luck.
http://docs.oracle.com/javase/tutorial/java/index.html
Imnice777 said:
So I'm just beginning to try getting into development and saw from several users on here that the first step would be to learn Java, so my obvious question is what's the best way to do that? I have little programming experience. I believe I correctly installed JDK and also have Eclipse and AndroidSDK. A brief but clear explanation pointing me in the right direction would be appreciated. Thank you for anyone who can help.
Click to expand...
Click to collapse
If you want to learn java for android application development then i would refer you to thenewboston
They have 200 videos for Android Application Development starting from the basics.
Saurabh Shah
----------------------------------------------------------------
Hit Thanks :good:
Thanks both of you. I've been looking at the official tutorials on Oracle but some videos would definitely help too. I have a little programming experience so it's making sense to me, just trying to get all the terms right. Videos will help me out with the explanations. Thanks again!
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
Many people like the New Boston videos:
Java (Beginner): http://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28
Java (Intermediate): http://www.youtube.com/playlist?list=PL27BCE863B6A864E3
Android: http://www.youtube.com/playlist?list=PL2F07DBCDCC01493A
I haven't watched any of their videos as I'm one who learns best reading up on that topic.
EDIT: Sorry, didn't see a-ssassi-n's post.
nikwen said:
Many people like the New Boston videos:
Java (Beginner): http://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28
Java (Intermediate): http://www.youtube.com/playlist?list=PL27BCE863B6A864E3
Android: http://www.youtube.com/playlist?list=PL2F07DBCDCC01493A
I haven't watched any of their videos as I'm one who learns best reading up on that topic.
EDIT: Sorry, didn't see a-ssassi-n's post.
Click to expand...
Click to collapse
It's all good, if anything this just confirms that they're good videos lol...if you have any suggestions that have yet to be mentioned, feel free to add them. Thanks.
Imnice777 said:
It's all good, if anything this just confirms that they're good videos lol...if you have any suggestions that have yet to be mentioned, feel free to add them. Thanks.
Click to expand...
Click to collapse
Yeah, if you want a book, I can recommend the Head First Java book. That's how I learned it.
You can also have a look at the Vogella tutorials, especially for Android specific things.
One tip: If you learn Java just to be able to develop for Android, skip the UI parts. They are completely different on Android.
nikwen said:
Yeah, if you want a book, I can recommend the Head First Java book. That's how I learned it.
You can also have a look at the Vogella tutorials, especially for Android specific things.
One tip: If you learn Java just to be able to develop for Android, skip the UI parts. They are completely different on Android.
Click to expand...
Click to collapse
Sounds good, I have already downloaded the Head First Java book, however I haven't been able to utilize it as of yet. Am I supposed to compile the lessons first? Run them with Eclipse?
Imnice777 said:
Sounds good, I have already downloaded the Head First Java book, however I haven't been able to utilize it as of yet. Am I supposed to compile the lessons first? Run them with Eclipse?
Click to expand...
Click to collapse
In my opinion that depends on how much knowledge of other programming languages you have.
If you already know how to use for/while/do-while-loops and if/switch-conditions, you might want to skip those examples. Do it just if you're sure you don't need them.
I didn't run any of the codes. (Wanted to start with Android as soon as possible. :laugh I learn very well just by reading on programming languages because they are basically all the same. So it's not difficult to learn another language if you already know another one.
However, I ran the examples in the books I used to learn my very first languages (Delphi and Python). I just skipped them for Java.
Decide whether it will be helpful for you. If you're in doubt, run them.
The textbook for JAVA in our college is 'Starting out with JAVA' by Tony Gaddis and its really very good for beginners. Just give it a try.
Just read the tutorials, create a new project and start tinkering around. If you have questions, ask them in appropriate java forums.
Tr-man said:
Just read the tutorials, create a new project and start tinkering around. If you have questions, ask them in appropriate java forums.
Click to expand...
Click to collapse
... like this one.
nikwen said:
Many people like the New Boston videos:
Java (Beginner): http://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28
Java (Intermediate): http://www.youtube.com/playlist?list=PL27BCE863B6A864E3
Android: http://www.youtube.com/playlist?list=PL2F07DBCDCC01493A
I haven't watched any of their videos as I'm one who learns best reading up on that topic.
EDIT: Sorry, didn't see a-ssassi-n's post.
Click to expand...
Click to collapse
Now there is a TheNewBoston Android app as well https://play.google.com/store/apps/details?id=com.Thenewboston
Hello everyone,
This is my first thread on XDA, and also my first time using github. I have been learning java for android for ~3 years now, and feel there is still much to learn. As an all-time gamer, I would absolutely love to make one of my own.
I have recently started my 1st open-source project on github. I am still learning quite a bit, and am looking to create a retro-style, turn-based RPG for android. Any collaberators feel free to chime in, offer advice, bring new ideas to the table, etc...
This project is just beginning and the downloads may not be fully functional as of yet. Downloads serve mainly for testing purposes for now, but feel free to check it out. Please let me know what you think.
WORKING SO FAR:
* Stats and Inventory Databases
* Character creation (Choose name and class)
* Simple Battle mechanics
* Enemy Database
* Random enemy from database used in battles
* Level-ups
* Status Screen
* Viewing pre-populated Inventory (No using/exchanging items yet)
KNOWN ISSUES:
* Re-positioning Virual D-Pad when it's size is bigger than screen causes a force close
* D-Pad position gets skewed when re-sizing caused by it not accommodating for D-Pad Position setting
* Map's/Area's bounds are not set (Graphics still being worked on)
Storyline:
Unknowingly, you are a demigod. Half mortal, half god. Ever since your early teenage years, you have had "incidents" in which you never quite understood the nature of. Sudden outrages, blackouts, and waking up feeling completely exhausted.
The more the hero aged, the more frequent the uncontrollable events would occur. Finally the hero can't help but to believe it is some sort of witchcraft, cursed as a child. For this may not be completely false, the hero is soon to find out his true origins...
Github link: https://github.com/MattMatt0240/DemiGod
* Licensed under GNU GPL v3
Credits:
@nikwen (introducing the idea of open-source to me/ help in development threads)
@ADDICT.ANK (collaborator, helping hand)
@sak-venom1997 (collaborator, helping hand)
Please let me know if you're left out
FAQs/downloads/screenshots
Download:
* Alpha v0.02 (Preview/Testing)
* Alpha v0.01 (Preview/Testing)
MattMatt0240 said:
Credits:
@nikwen (introducing the idea of open-source to me/ help in development threads)
@ADDICT.ANK (collaberator, helping hand)
Please let me know if you're left out
Click to expand...
Click to collapse
Well great. Thanx bro you created the thread required
and pls reserve a couple of post row for later updating..
Lets go for it then.
As i developer i see firm reasons to join it
But few questions arise in my mind and it will be good for all if answered in the op
* What is the storyline for this game ?
* Under which lisense is this app available ? (Creative Commons ,GPL ..)
I suggests adding requests for things you want to add in the github repo
Sent from my GT-S5302 using Tapatalk 2
sak-venom1997 said:
As i developer i see firm reasons to join it
But few questions arise in my mind and it will be good for all if answered in the op
* What is the storyline for this game ?
* Under which lisense is this app available ? (Creative Commons ,GPL ..)
I suggests adding requests for things you want to add in the github repo
Sent from my GT-S5302 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for the suggestion. This is my first thread here on XDA, also my 1st time using github(or any repo for that matter).
Pretty much my 1st time taking my code anywhere else from my personal computer and sharing my code/ideas with anyone besides my wife (who could care less about all of it). I have been learning java/android all by myself for a while, and could use some help and/or insight from someone more experienced.
Welcome aboard :thumbup:
Noted to self thrice via tapatalk
MattMatt0240 said:
Credits:
@nikwen (introducing the idea of open-source to me/ help in development threads)
@ADDICT.ANK (collaborator, helping hand)
@sak-venom1997 (collaborator, helping hand)
Please let me know if you're left out
Click to expand...
Click to collapse
Haha. Thanks.
MattMatt0240 said:
Reserved for FAQs/downloads/screenshots
Click to expand...
Click to collapse
Wow, looks good. Is that a mockup or do you already have this working?
nikwen said:
Haha. Thanks.
Wow, looks good. Is that a mockup or do you already have this working?
Click to expand...
Click to collapse
I started working on this a while back (in a different project to learn from). Realized many of my errors in doing so, so started fresh. The screenshot is just a basic idea of how I want the gameplay to look like, and is not quite functional yet. I do all of the art myself (so far) but there are many aspects in which I'm not quite sure how to make work, such as inventory/shops, and maps.
If there's anything you see that you feel can be improved, please feel free to let me know
Thanks nikwen!
Noted to self thrice via tapatalk
Would you mind pushing the merged code to new branched and deleting the bin folder
These non essential files make the repo huge and people like me with slow internet have problems synchronising
Sent from my GT-S5302 using Tapatalk 2
sak-venom1997 said:
Would you mind pushing the merged code to new branched and deleting the bin folder
These non essential files make the repo huge and people like me with slow internet have problems synchronising
Sent from my GT-S5302 using Tapatalk 2
Click to expand...
Click to collapse
Yeah, I meant to do it sooner. Been busy the last few days, will do it soon. Should be done by the time you get on. I don't have much of a base yet, this is really just the start of an idea.
Noted to self thrice via tapatalk
Should be good now sak. I have slow internet as well, very slow unless I manage to find 4g at my house. I downsized the repo quite a bit, so it should be better for us all
Noted to self thrice via tapatalk
@sak-venom1997 I added a PreferenceActivity (settings) and made the D-Pad repositionable via those settings
If you get a chance, check it out and let me know what you think.
Noted to self thrice via tapatalk
MattMatt0240 said:
@sak-venom1997 I added a PreferenceActivity (settings) and made the D-Pad repositionable via those settings
If you get a chance, check it out and let me know what you think.
Noted to self thrice via tapatalk
Click to expand...
Click to collapse
What's about posting apks here or on Github every now and then? I'd love to give it a try but I don't want to build it myself every time.
nikwen said:
What's about posting apks here or on Github every now and then? I'd love to give it a try but I don't want to build it myself every time.
Click to expand...
Click to collapse
Wow, still new to github, didn't know they had a release system I could do that and put a link in the O/P. Keep in mind that (at this point) it isn't necessarily playable, but at least everyone could get a feel for it and put up suggestions
Noted to self thrice via tapatalk
MattMatt0240 said:
Wow, still new to github, didn't know they had a release system I could do that and put a link in the O/P. Keep in mind that (at this point) it isn't necessarily playable, but at least everyone could get a feel for it and put up suggestions
Noted to self thrice via tapatalk
Click to expand...
Click to collapse
Exactly.
So do it and lets gather the suggestions.
Sent from my LT26i using xda premium
nikwen said:
What's about posting apks here or on Github every now and then? I'd love to give it a try but I don't want to build it myself every time.
Click to expand...
Click to collapse
ADDICT.ANK said:
Exactly.
So do it and lets gather the suggestions.
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
Added download link to 3rd post. Constructive criticism is welcomed
Noted to self thrice via tapatalk
MattMatt0240 said:
Added download link to 3rd post. Constructive criticism is welcomed
Noted to self thrice via tapatalk
Click to expand...
Click to collapse
Thanks.
Looks good. Crashes very often but it's good considering that it's in its infancy. :good:
Will the character turn around when he's moved?
For sure I'll follow the development.
nikwen said:
Thanks.
Looks good. Crashes very often but it's good considering that it's in its infancy. :good:
Will the character turn around when he's moved?
For sure I'll follow the development.
Click to expand...
Click to collapse
Yes, I just need to crack down on drawing up some sprites Lol. Crashes may be caused by not creating a character first, and possibly a few other things that will be put in order in final production.
I was thinking of having the user being presented with a "setup" screen where they will have to adjust the D-Pad position and size. There's a few bugs in there I think. All of the activities are placed on the title screen temporarily simply for ease of access during development.
Regardless, thanks for the feedback, and yes it is still very early. I'm trying, and learning a whole lot quite fast
Noted to self thrice via tapatalk
Just a little update:
I have been working on trying to find an organized mapping system and think I found a satisfying solution. Before it was all hard-coded in java files leaving it a mess to read, and an activity for every "map" area.
Now, the maps will all be written in XML with a number identifier, which corresponds to the appropriate tile, translated by a separate java class. I tried using JSON, but @nikwen made a valid point... XML is more versatile and easier to read/use, thanks bud!
The inventory database has the path to the corresponding asset icon for each item, making it possible to match "xItem" with its relative icon. I was thinking I should do the same for enemies (once they are drawn). Enemy images are 100x100 pixels, used in battles, whereas item icons are the standard 32x32 px.
I also started playing around with animations, and obviously have much to learn on it.
I'll update the OP with another download, not much progress but still a lot of changes. Anybody feel free to chime in.
Noted to self thrice via tapatalk
MattMatt0240 said:
Just a little update:
I have been working on trying to find an organized mapping system and think I found a satisfying solution. Before it was all hard-coded in java files leaving it a mess to read, and an activity for every "map" area.
Now, the maps will all be written in XML with a number identifier, which corresponds to the appropriate tile, translated by a separate java class. I tried using JSON, but @nikwen made a valid point... XML is more versatile and easier to read/use, thanks bud!
The inventory database has the path to the corresponding asset icon for each item, making it possible to match "xItem" with its relative icon. I was thinking I should do the same for enemies (once they are drawn). Enemy images are 100x100 pixels, used in battles, whereas item icons are the standard 32x32 px.
I also started playing around with animations, and obviously have much to learn on it.
I'll update the OP with another download, not much progress but still a lot of changes. Anybody feel free to chime in.
Noted to self thrice via tapatalk
Click to expand...
Click to collapse
Good progress.
Looking forward to more improvements.
Hey guys! I'm new to app development world, I have a good amount of knowledge of c/c++ and learning java right now (I'm an engineering student), and totally interested in making my own app for android, I have made some basic apps, but it would be a real help if I get a good tutorial for bigger apps and also a tutorial for 2-D gaming on this platform for now....thanks in advanced!
I just recommend you to visit http://d.android.com/training it'll introduce you in all the basics and advanced techniques.
Not this buddy....I want a bit simpler tutorial....that one is too vast, I want a tutorial that specifically teaches for one particular type of app, example: making a 2-D game, or building a browser, or a messaging app, etc.
Sent from my Nexus 7 using xda app-developers app
rulerofthehell said:
Not this buddy....I want a bit simpler tutorial....that one is too vast, I want a tutorial that specifically teaches for one particular type of app, example: making a 2-D game, or building a browser, or a messaging app, etc.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
I think those topics are a collection of hundreds of patterns, knowledge, implementation and understanding, so better to start simple rather than ....well.... as the saying goes...learn to walk first before you try and pilot a space shuttle
Just a suggestion
Note : there maybe dvd sets that show what you ask, but I would suspect it would be months if not years of learning for a nice grounding in what you will need.
I know basic bro....
deanwray said:
I think those topics are a collection of hundreds of patterns, knowledge, implementation and understanding, so better to start simple rather than ....well.... as the saying goes...learn to walk first before you try and pilot a space shuttle
Just a suggestion
Note : there maybe dvd sets that show what you ask, but I would suspect it would be months if not years of learning for a nice grounding in what you will need.
Click to expand...
Click to collapse
I just said I made a few basic apps, I don't wanna sound rude but I have learned to "walk" , just needs a few directions before I start to fly.
rulerofthehell said:
I just said I made a few basic apps, I don't wanna sound rude but I have learned to "walk" , just needs a few directions before I start to fly.
Click to expand...
Click to collapse
Sorry was speed reading to just try and offer help... as I said there are lots of resources, but for something like a game, you have mass resources based on the tech/engine you choose (http://stackoverflow.com/questions/17163446/what-is-the-best-2d-game-engine-for-android)... if you choose one of the popular ones there are tonnes of resource. As for building an app, it's just a little ambiguous. A screen that displays a black view fullscreen is an app. I think it's best to evaluate the market see whats missing or can be improved upon and start that way.
BTW I was confused on you saying you wanted simpler than d.android.com/training (which is like the starting point from zero) But I think I get what your asking now
That helps a lot thanks!
deanwray said:
if you choose one of the popular ones there are tonnes of resource. As for building an app, it's just a little ambiguous. A screen that displays a black view fullscreen is an app. I think it's best to evaluate the market see whats missing or can be improved upon and start that way.
BTW I was confused on you saying you wanted simpler than d.android.com/training (which is like the starting point from zero) But I think I get what your asking now
Click to expand...
Click to collapse
Thanks man! That helps a lot and if I may ask for more then are there any tutorials for simple multiplayer games....I know I have to set up a server to which a user can connect to,but I don't exactly know how to do that...so a tutorial on it would help
Also tutorials on multiplayer games via Bluetooth connection would be nice
rulerofthehell said:
Thanks man! That helps a lot and if I may ask for more then are there any tutorials for simple multiplayer games....I know I have to set up a server to which a user can connect to,but I don't exactly know how to do that...so a tutorial on it would help
Also tutorials on multiplayer games via Bluetooth connection would be nice
Click to expand...
Click to collapse
that I cant help with and would be on par with you in having to google, if I were to speculate then I would assume that lots of the core elements like profile linking, indents, scores/stats and states are/can be handled by the new google play services game stuff... but just have a read on google/android site, cause I would say yes to having a server for MMO games but no if it's either 1 to 1 or not realtime.
btw not many do bluetooth these days, wifi network or wifi direct for local games
I highly recommend "android bootcamp series" (sorry I can't add link, so please write it in google).
This screencasts explain all building blocks in Android in easy way
Check vogella.com, you'll find a bunch of examples. Really helpful.