This forum is in archive mode. You will not be able to post new content.

Author Topic: How hard is it to code Android apps?  (Read 9182 times)

0 Members and 1 Guest are viewing this topic.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
How hard is it to code Android apps?
« on: September 13, 2011, 09:54:22 PM »
I'm a beginner in Java but not a beginner in coding. Started Java at the academy and we should have android app development on third semester or someshit. I can't wait that long and what they are teaching us now I already know :D

So how hard would it be to start making Android/iPhone apps in Java?
Any tips where to begin before I start researching?

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: How hard is it to code Android apps?
« Reply #1 on: September 13, 2011, 10:05:56 PM »
I don't really know a lot, but will post in this thread because I will be learning how to program Android apps in 2 months or so.
First, you have to get the Android SDK. Install Eclipse, download the SDK, install it, install Eclipse plugin.
Get an Android emulator. You wont want to have to insert your app in a real device each time you want to test it.
And, from what I know, it isn't too different from coding in java. You have an API for interact with Android and so on.

http://developer.android.com/sdk/index.html

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: How hard is it to code Android apps?
« Reply #2 on: September 13, 2011, 11:23:25 PM »
Only problem you will get to, is to connect the frontend(xml) to backend (java).      and the rest is just java:P and some api's
~Factionwars

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: How hard is it to code Android apps?
« Reply #3 on: November 03, 2011, 04:57:51 PM »
You don't need the xml. You can hard code the GUI if you wanted. But it is easier to use xml layout. Getting it into the code is really easy. Just a call to the api to get the GUI object (which will have its own ID), if it's a button or something like that, you need to use a listener method, but other than that, it's all cheddar.


You will need to look into the activity life-cycle, and there are a couple other concepts that are android specific. Like the dalvik virtual machine and setting the Android Manifest file.   
>>>import this
-----------------------------

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 226
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
Re: How hard is it to code Android apps?
« Reply #4 on: November 04, 2011, 07:58:07 AM »
isn't darvik vm is used to code android app?
iAmLuFFy

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: How hard is it to code Android apps?
« Reply #5 on: November 04, 2011, 02:44:15 PM »
isn't darvik vm is used to code android app?


Dalvik vm is used. Instead of using a stack based architecture, it uses register based architecture.


On the other hand, you can use Android's NDK which is coded with C/++. Then again, since it uses dalvik, in theory it can execute any vm bytecode. You can find more info here. 
>>>import this
-----------------------------

xor

  • Guest
Re: How hard is it to code Android apps?
« Reply #6 on: November 04, 2011, 03:20:25 PM »
It's about as easy as coding Java. You design the UI elements mostly in a gui / XML combination

Offline Satan911

  • VIP
  • Knight
  • *
  • Posts: 289
  • Cookies: 25
  • Retired god/admin
    • View Profile
Re: How hard is it to code Android apps?
« Reply #7 on: November 04, 2011, 11:03:54 PM »
About the same as Java but of course you are gonna have to learn the android specific functions and how the phone OS works. Here's the guide that got me started: http://www.vogella.de/articles/Android/article.html#overview

It's well explained and gives you some basic apps example. Good way to start.
Satan911
Evilzone Network Administrator

Offline I_Learning_I

  • Knight
  • **
  • Posts: 267
  • Cookies: 26
  • Nor black or white, not even grey. What hat am I?
    • View Profile
    • Hacking F0r Fr33
Re: How hard is it to code Android apps?
« Reply #8 on: November 17, 2011, 01:52:41 AM »
About the same as Java but of course you are gonna have to learn the android specific functions and how the phone OS works. Here's the guide that got me started: http://www.vogella.de/articles/Android/article.html#overview

It's well explained and gives you some basic apps example. Good way to start.
Exactly, which means it isn't even Java, it's an API.
I would say that will be hard in the beginning, specially if you're not used to Java, once you get use to it you need to get use to API, then it's easy :)

Now what I don't know is if the API is made well enough to be able to handle any CPU or Graphic Card and/or driver that might be installed, I've heard from several Java/Android coders that it's not at it's best, personally I've not tried it myself, so I wouldn't know.
If the API isn't well made it means you'll have to make lots and lots of lines just to check the Software and Hardware Versions and the to use the right functions and pass the right parameters.

Good luck on your coding ;)
Thanks for reading,
I_Learning_I

xor

  • Guest
Re: How hard is it to code Android apps?
« Reply #9 on: November 17, 2011, 12:59:46 PM »
I_Learning_I:

It IS Java just with an API on top. You could write an entire game on it by barely even touching the API, just using Java.

Offline I_Learning_I

  • Knight
  • **
  • Posts: 267
  • Cookies: 26
  • Nor black or white, not even grey. What hat am I?
    • View Profile
    • Hacking F0r Fr33
Re: How hard is it to code Android apps?
« Reply #10 on: November 17, 2011, 04:11:08 PM »
I_Learning_I:

It IS Java just with an API on top. You could write an entire game on it by barely even touching the API, just using Java.
Code: [Select]
http://stackoverflow.com/questions/5371109/why-doesnt-android-platform-run-desktop-appsThis is what I meant.
Also I believe that not all the imports are the same for both Java and Android coding.
Of course that an if() will be recognized, but that's not what I'm not talking about that.
Thanks for reading,
I_Learning_I

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: How hard is it to code Android apps?
« Reply #11 on: November 17, 2011, 11:36:37 PM »
Exactly, which means it isn't even Java, it's an API.
I would say that will be hard in the beginning, specially if you're not used to Java, once you get use to it you need to get use to API, then it's easy :)

Now what I don't know is if the API is made well enough to be able to handle any CPU or Graphic Card and/or driver that might be installed, I've heard from several Java/Android coders that it's not at it's best, personally I've not tried it myself, so I wouldn't know.
If the API isn't well made it means you'll have to make lots and lots of lines just to check the Software and Hardware Versions and the to use the right functions and pass the right parameters.

Good luck on your coding ;)


For anything graphic/GPU wise you will be using OpenGL ES. It's just like regular OpenGL, but without the high level abstractions like GLUT you would have on a desktop.


On the other hand, if it is a game you want to make, there are libs out there to help you out. I've been using libgdx for a while now, and it makes things really easy. The good thing about libgdx is, it is regular java. You write two "interfaces", on for desktop the other for the phone. Each is about 10 lines of code. Then you can code the game separate from the platforms and it will work on android and desktop.


You could always code android apps with the NDK instead of the SDK, with the NDK you can skip all the java crap and code directly in C/++.


Here is a video about getting up and running with libgdx:
http://www.youtube.com/watch?v=vLx_72qxK_0
>>>import this
-----------------------------

Offline darkwolfzero

  • NULL
  • Posts: 3
  • Cookies: 0
    • View Profile
Re: How hard is it to code Android apps?
« Reply #12 on: January 24, 2012, 04:47:59 AM »
I definitely agree with techb, and what has been said so far.


again here are the important things:
-If you know java, it is easy.
-If you want to create a game use a already development game engine like libgdx or andEngine according on what you want to do, if you want 3d, use unity, except it is kind of expense if I remember right.
-The "hardest" part about android game development is dealing with all the different screen sizes and resolutions of all the android phones out there, that is why using a android game engine is highly recommended.


also, if you can figure it out, I would recommend mybringback tutorials, or the tutorials he did for thenewboston (if you like video tutorials) if you like reading, there are a lot of blog post and open source projects you can easily find what you are looking for.
 


good luck,
Dwolf

Offline lordarnoud

  • Peasant
  • *
  • Posts: 112
  • Cookies: 6
    • View Profile
Re: How hard is it to code Android apps?
« Reply #13 on: January 24, 2012, 10:14:05 AM »
we just made an app that contacts a rest service and shows the data and tbh it was fairly easy ;) i don't think you'll have too much trouble.
« Last Edit: January 24, 2012, 10:14:25 AM by lordarnoud »

Offline leewillz

  • Serf
  • *
  • Posts: 23
  • Cookies: 2
  • import java.help.me
    • View Profile
Re: How hard is it to code Android apps?
« Reply #14 on: May 12, 2012, 09:29:08 PM »
Iphone apps are programmed in objective-c, u need a mac for it u can use something like VMWare and host it on windows/unix but its probably bette to use a mac, anyway objective c isnt the hardest language to learn plus it comes with an ide called Xcode which does the apple design guidelines for you so all the gui is dealt in a storyboard feature, its probably easier than java if im honest and java is a piece off piss to learn so thats saying something!

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.