Programming - General Questions and Answers

Say I wanted to make an app for android, what's the best language to code it in? I'm still learning so yeah.
sent from my r800i using XDA app.

Oh, dude. CSS for sure!

aden35 said:
Say I wanted to make an app for android, what's the best language to code it in? I'm still learning so yeah.
sent from my r800i using XDA app.
Click to expand...
Click to collapse
Do a forum search and you'll get a more detailed answer as its been asked before but basically there are at least two answers.
Java, using an ide such as eclipse as android is java based.
Or basic4android if your used to the basic style programming languages like visual basic on pc or if java seems hard to learn.
Dave
Sent from my LG P920 using Tapatalk

Thanks guys will try java
sent from my r800i using XDA app.

Oh and also how should I go about learning, is there a super website or something?
Sent from my R800a using XDA App

I would say Java for sure with Eclipse. I use thenewboston.com for java android tutorials.

Start here:
http://developer.android.com/index.html
Everything you need, the SDK, sample code and tutorials, etc. etc. all in one place.

Related

[Q] HELP!!! Tutorials On Application Development

So I want to make an app but have NO experience...are there any tutorials? I want to make simple and advanced apps(maybe for some extra cash? Lol) any help?
Sent from my DROIDX using Tapatalk
Why don't you go to the official android developers page?
Xda app
Not everyone knows how to find the pages they need. Perhaps provide a link? I assume he hasn't come across that yet since he's asking.
Sent from my Incredible using XDA App
http://developer.android.com/index.html here you go
Xda app
TheRedDrake said:
http://developer.android.com/index.html here you go
Xda app
Click to expand...
Click to collapse
Thank you, I will start there. I knew about it but not exactly where it was..also if there are other tutorials out there I would be more than happy to have them thanks
Sent from my DROIDX using Tapatalk
Are there any shorter guides or maybe easier way to go through I am overwhelmed with all of this info
Sent from my DROIDX using Tapatalk
tycoon177 said:
Are there any shorter guides or maybe easier way to go through I am overwhelmed with all of this info
Sent from my DROIDX using Tapatalk
Click to expand...
Click to collapse
Programming is always hard. I suggest starting with a simple app that has 3 screens and a couple of buttons for interaction and maybe some images.
Xda app
Do you have any suggestions for staring apps for this
Sent from my DROIDX using Tapatalk
Anyone?
Sent from my DROIDX using Tapatalk
tycoon177 said:
Anyone?
Sent from my DROIDX using Tapatalk
Click to expand...
Click to collapse
First of all, do you know how to write in Java? Because none of the tutorials I have found include that part. You will find it very hard if you don't! Pick up a book on Java, and read all the way through it first. I found books better than online for some reason. It doesn't matter if the book is a few years old, many of the concepts will be the same.
Then find some beginning tutorials for developing Android apps. I've found a few, and I will update this if I find any more, but here are some:
http://hackaday.com/2010/07/12/android-development-101-–-a-tutorial-series/
http://www.vogella.de/articles/Android/article.html
http://androidwizard.net/ -- Make sure you have a look at the beginner ones first, because there are many tutorials here.
Then if you require more detail, move on to the info at developer.android.com/ as it is more advanced (well its aimed at users who already know a bit).
I would also learn just some basics on how a program flows. It is essential since most programmers know several languages or are able to know how to read code without knowing the syntax. After you get the basics down, look through all the examples given with the SDK and see if you understand it. Hope that helps. Good luck!
Sent from my SAMSUNG-SGH-I897 using XDA App
Do you have a suggestion for the type of java for the book? I am using eclipse
Sent from my DROIDX using Tapatalk
Anyone
Sent from my DROIDX using Tapatalk
I read "Sams Teach Yourself Android Application Development in 24 Hours". It was pretty cheap and they also have a java one. It was a nice start, pretty good explanation of code and space out each part so not overwhelmed.
Sent from my GT-I9000 using XDA App
Should I read the java one first? And where would I get this book? Im just wanting to learn this.
Sent from my DROIDX using Tapatalk
I only read the android one. I would say read the android one and if you are lost after the second or third chapter, read it again (they are short) and if still not understanding then get the java one. It all depends on you're background and current knowledge...also remember Google is you're friend for words/statements that you don't recognize. Hope that helps, and.you can get book at barnes and noble or borders. It seems to be a common book.
//Excuse all typos as I am most
//likely sending from phone
Thank you I will look into getting that book
Sent from my DROIDX using Tapatalk
I got the android one and might have to get the java one after looking at this
Sent from my DROIDX using Tapatalk
Anything you don't understand you can just ask questions about and and we all can try to explain it in better terms for you.
//Excuse all typos as I am most
//likely sending from phone
realhades said:
Anything you don't understand you can just ask questions about and and we all can try to explain it in better terms for you.
//Excuse all typos as I am most
//likely sending from phone
Click to expand...
Click to collapse
Thank you
Sent from my DROIDX using Tapatalk

[Q] Requirements for basic app developing for a dummy

Hi,
I wanted to know what are the skills and languages you need to know for android app development. Currently I have zerrooo knowledge about app development n all. I havent studied computer languages ever so I have a few Questions
1. What are the skills or languages you need to learn to start with?
2. Can you learn it at home with books or ebooks?
3. How long does it take to learn a language e.g C++ (I know it takes alot of time so i'm ready for it )
Please answer these n help me from where i can start learnin from ultraaa basics
Thanks
It will be a long time, but it's not possible.
You have to learn Java and XML to develop for Android. I think you should practice a lot with writing apps for pc and after that you can move on to Android.
For your second question I have to say I learned everything from books. There are a lot of them on the internet too so you don't have to buy if you don't like.
Learning a programming language takes a long time, there are some books which says you can learn it in 24 hours, it's true, but you won't be able to create your own apps. For this you will have to practice a lot, but it depends on you have much time does it take. (Learning XML isn't as hard as Java, but you should learn Java first)
Thankssss alot for your help...im looking forward to start with java...btw is c and c++ necessary for android dev?
Sent from my Nexus One using XDA Premium App
If you want to write android programs you don't need c/c++, however you can use them to make your program run faster, but it is for programs like 3d games.
Sent from my GT-I5700 using XDA Premium App
Soo can anyone guide me dat from where can i start learnin java?? I dun av even da basic knowledge about any language so keep that in mind from where should i start?
Sent from my Nexus One using XDA Premium App
There are some tutorials on the website of java, but I never used them so I don't know how good they are. I can recommend you reading a book, maybe "Teach Yourself Java in 24 Hours" is the best as it starts from the beginning of programming.
Sent from my GT-I5700 using XDA Premium App
Thats great so ure sayin it starts from the basics like even the definitions.of what a code is lol
Sent from my Nexus One using XDA Premium App
Something like that, but almost every programming book is like that. It will tell you how to write, compile, loops, data structures, oop and anything else
Sent from my GT-I5700 using XDA Premium App
Thank you, it would be help.
imho, to be able to write good aplications, you need to be gifted, I was learning PHP for two years, I was doing some Pascal, Delphi, C++ and Visual Basic in high school, and I knew the basics, and I could imagine how it works and how do I need it to work, but somehow, I was never smart enough to get more complicated apps to work, no matter how hard I tried... my brain just probably doesnt work that way... :/
Maybe your, but as I have never had any problem I thought everybody can learn it. However everybody should try and if he isn't "talented" he can stop learning it
Sent from my GT-I5700 using XDA Premium App

[Q] How to build an Android App ?

Is it possible to build my own android app (even if I am a noob with no real knowledge of programming)?
I know of "App Inventor for Android", but it barely has any options from what I see
):
I basically want to build an Alarm Clock for myself
(and maybe other will like it too)
THANKS
benyben123 said:
Is it possible to build my own android app (even if I am a noob with no real knowledge of programming)?
I know of "App Inventor for Android", but it barely has any options from what I see
):
I basically want to build an Alarm Clock for myself
(and maybe other will like it too)
THANKS
Click to expand...
Click to collapse
To make an Android app, you should learn java. Then look at the documentation for developers on the official Android website. If you do not know how to code, then you will end up with some premade app, that gives you little customization as to what it is. I do not know how to code but when I have the time, I will learn.
Sent from my LG-P999 using XDA App
Where does one learn how to code? Is that something people learn in Computer Scenic degrees?
just wondering...
Use this video to learn.! Its much easier and from a reputable source.! Its an hour long though. They explain very well, I thing they also have a rom development vid also.! Subscribe to them.
http://m.youtube.com/#/watch?deskto...e.com/watch?v=lESZqCflB0o&v=lESZqCflB0o&gl=US
Sent from my PG86100 using XDA App
ognimnella said:
Use this video to learn.! Its much easier and from a reputable source.! Its an hour long though. They explain very well, I thing they also have a rom development vid also.!
http://m.youtube.com/#/watch?deskto...e.com/watch?v=lESZqCflB0o&v=lESZqCflB0o&gl=US
Sent from my PG86100 using XDA App
Click to expand...
Click to collapse
Thank you!!! the Link is broken though
The code is written in java. Learning java (plenty of books and websites out there to learn the basics) is step one. Downloading the android SDK and Eclipse or Netbeans IDE is step two. That's it. Once you learn the basics of java you'll know what to do with the sdk and the ide, both have detailed instructions in the programs help section to help, as the "hello world" script is their beginners walkthrough example. Also, there are some good video tutorials on you tube that walk you through the entire process from getting the SDK to posting your app on the android market. As is the case with most questions, google is your friend, and you tube is his brother.
Sent from my myTouch_4G_Slide using xda premium
benyben123 said:
Thank you!!! the Link is broken though
Click to expand...
Click to collapse
Hey (The new Youtube is very convenient, this new link is a link to a bunch of videos) I am currently studying these videos and find them EXTREMELY helpful, this is a more visual approach, because like most, reading words for 3 hours doesnt work, and apologies for the previous link, I sent it from my phone!
Check out these vids by MarakanaTechTV HERE
Thanks so much !
No probs man.!
Sent from my PG86100 using XDA App

Game Concept

Hi everyone! I have a question: does anybody have an idea for an easy game that i could make?
Sent from my MT11i using xda premium
Depends. How much do you already know?
Make a simple pong game for two players using multitouch?
Yes, but how? I'm a noob
Sent from my MT11i using xda premium
And when i tried installing eclipse, there was an error. So plz help.
Sent from my MT11i using xda premium
TheEnz53 said:
And when i tried installing eclipse, there was an error. So plz help.
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Well it would be better if you could give more specific info about what error you get where exactly you are getting stuck while installing it.
Here's a link to a tutorial to set up eclipse.
www.vogella.com/articles/Eclipse/article.html
This is probably the wrong forum for this kind of a question. Not to mention that threads here just get lost really quick. You might want to try the Q&A forum next time.
I am guessing you might not be knowing much about programming either. So instead of trying to make a game at this point focus on learning to program. Search for Java tutorials on youtube and google
The errors gone and i have my first app. So plz help with a game app.
Sent from my MT11i using xda premium
Here is a simple open source game - https://code.google.com/p/newtonscradle/
Really, your approach is just wrong.
Nobody can help you if you don't know any basic of java programming (at least).
First of all you have to read java and android documentation, then open some tutorials in eclipse and play with them, then start with simple apps and progressively make it more difficult. At the end you'll be ready for a great game.
There's no short way unless you want cut and copy stuff and don't care about learning something.
xdaid said:
Really, your approach is just wrong.
Nobody can help you if you don't know any basic of java programming (at least).
First of all you have to read java and android documentation, then open some tutorials in eclipse and play with them, then start with simple apps and progressively make it more difficult. At the end you'll be ready for a great game.
There's no short way unless you want cut and copy stuff and don't care about learning something.
Click to expand...
Click to collapse
+1
Theres more to a simple game than to a simple app. Start by buying a book on Java if you really want to get serious about it.
If you just open up that open source project linked above or maybe any example game in the SDK you'll see how complex a simple game can really be for someone who is new to programming.
Make a text based Mafia game, I don't think there are any of those yet.
I don't want to upset you but if you jump straight to the android without a basic knowledge of object oriented programming the learning curve can be quite steep.
As said above, the best thing to do would be to get your hands dirty with basic java coding first.
I read this before jumping to the Android world: Introduction to Java Programming by Daniel Liang A much recommended and well-written reading.
I know java basics
Sent from my MT11i using xda premium
The_R said:
+1
Theres more to a simple game than to a simple app. Start by buying a book on Java if you really want to get serious about it.
If you just open up that open source project linked above or maybe any example game in the SDK you'll see how complex a simple game can really be for someone who is new to programming.
Click to expand...
Click to collapse
I have a Java and android dev. book
Sent from my MT11i using xda premium

How would one learn to create software

I am interested i n learning how to create software for my phone I have a Samsung vibrant anybody who can offer any help I will accept it openly
Sent from my SGH-T959 using xda app-developers app
Hello I'm in the same boat. I was told to practice JavaScript and HTML. Believe me I've spent all day reading and searching and I have a head ache
Sent from my Sensation using xda app-developers app
Development for Android is done mostly in Java. It is very simple programming language, after a few weeks of practice you should be good at it. Here you have a tutorial on how to create first Application: http://developer.android.com/training/basics/firstapp/index.html
miki100 said:
Development for Android is done mostly in Java. It is very simple programming language, after a few weeks of practice you should be good at it. Here you have a tutorial on how to create first Application: http://developer.android.com/training/basics/firstapp/index.html
Click to expand...
Click to collapse
Not applications I'm talking a about things like roms
Sent from my SGH-T959 using xda app-developers app
The New Boston
The new boston has a 200 video series on android application development. It's a little bit dated but if you go to http://thenewboston.org/index.php. It shows you specifically how to develop for android 2.2 (froyo). that being said most (if not all) of those applications should fun just fine on any OS 2.2 and above.
The main things is that you are using the API level from 2.2 so unless you change it later on you won't be able to use newer features. BUT... it can take someone from 'eeerrr I think this be mah keyburd' to 'Yeah, i just wrote and android app and put it on the market. BYAAAH!!!'.
Definitely worth checking out. I checked it out and when they came out they were cuttign edge pretty much (like a year ago lol).
Once again http://thenewboston.org/index.php
---------- Post added at 09:42 AM ---------- Previous post was at 09:32 AM ----------
HA... I just realized that you said ROMS. well that is a completely different story... that is really trial and error until you figure out how everything works.
If you aren't running on ubuntu then download virtual box:
https://www.virtualbox.org/wiki/Downloads
Once you have that the EASIEST way to get started is to download the ISO for ubuntu 10.04:
http://releases.ubuntu.com/lucid/
Once you have created the Virtual machine with ubuntu 10.04(simply because it is the best for development):
http://www.youtube.com/watch?v=jC6jSiGSbUE
Then I recommend to get your environment setup you follow the instruction at the below site:
http://www.freeyourandroid.com/guide/compile-ics
Now that I actually read what you were askign for and am not a complete tard... hope this helps.
I looked it up and it also gave me a link on how to set up Ubuntu. So my next question is, where do you get source codes? I myself have a vibrant so of course it doesn't get source code updates although I know that some ports are from the gnex
Sent from my SGH-T959 using xda app-developers app
Is it fairly easy to pick up then? I program in a language called SAS and I have done bits of Java and VB in the past.
LeChuck85 said:
Is it fairly easy to pick up then? I program in a language called SAS and I have done bits of Java and VB in the past.
Click to expand...
Click to collapse
That's what I'm trying to figure out I haven't done programming but I usually pick up quick on tgings I would ask a dev for my service but they have a lot on their plate as it is
Sent from my SGH-T959 using xda app-developers app
sounds like xda veterans should compile an Android rom "how to for dumb dumbs" e book and put it for sale in the play store and on Amazon self publishing. you'd probably make a fair amount for yourselves and the site, depending on how you went about it; problem is I think all forums on this site would then be totally flooded with repeats, duplicate functions mods, crap roms, and just generally bring the average level of code down to hella-sloppy levels. yikes, pick your poison
I understand that serving requires a lot of time butnim serious about this. Not o my that my friend has an lg lucid and I have other people who would like development for that pho e which I would help with hopefully
Sent from my SGH-T959 using xda app-developers app
I understand that deving requires a lot of time butnim serious about this. Not o my that my friend has an lg lucid and I have other people who would like development for that pho e which I would help with hopefully
Sent from my SGH-T959 using xda app-developers app
skinzy98 said:
Not applications I'm talking a about things like roms
Sent from my SGH-T959 using xda app-developers app
Click to expand...
Click to collapse
roms are also largely in java (or davlik, anyway)
You can start by compiling something like CM10 (not an easy task, I might add).
Most devs begin because there's something they are itching to have but that doesn't exist. Once you've successfully compiled, you can start tweaking these things in.
is there no how-to guide somewhere for your-first-compiling and what-files-do post for dummies somewhere?
Sent from my EVO using xda app-developers app
wlpywd said:
is there no how-to guide somewhere for your-first-compiling and what-files-do post for dummies somewhere?
Sent from my EVO using xda app-developers app
Click to expand...
Click to collapse
Yes I did recently find one in the vibrant forum on how to setup and compile using Ubuntu
Sent from my SGH-T959 using xda app-developers app
thanks
Sent from my EVO using xda app-developers app

Categories

Resources