Author Topic: How to start programming for android?  (Read 1453 times)

0 Members and 1 Guest are viewing this topic.

Offline s3my0n

  • Knight
  • **
  • Posts: 276
  • Cookies: 58
    • View Profile
    • ::1
How to start programming for android?
« on: August 02, 2012, 06:45:38 am »
Hey guys, I posted this on another forum, but no one replied  :-\ .

Any android programmers here? What's the best way to start programming for android?
 What tools do I need, editors, and most importantly what reading material would you suggest.
 I want to program for version 2.3.4 and up. Any innuendos I should know?
 
 Thanks!
Easter egg in all *nix systems: E(){ E|E& };E

Offline Lionofgod

  • Knight
  • **
  • Posts: 164
  • Cookies: 6
    • View Profile

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: How to start programming for android?
« Reply #2 on: August 02, 2012, 09:06:34 am »
I would recommend you to check out this link:  http://developer.android.com/training/basics/firstapp/index.html
"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline Daemon

  • VIP
  • Baron
  • *
  • Posts: 845
  • Cookies: 153
  • A wise man fears a gentle mans anger
    • View Profile
Re: How to start programming for android?
« Reply #3 on: August 02, 2012, 09:18:45 am »
Check out the ebooks section, theres a good book or three in there on android programming that start from step 1. That's how I'm planning on learning it when I finally get around to it lol

This lifestyle is strictly DIY or GTFO - lucid

Because sexploits are for h0edays - noncetonic


Xires burns the souls of HF skids as a power supply

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: How to start programming for android?
« Reply #4 on: August 02, 2012, 09:32:33 am »
I'm an android developer. Somehow I think you would the last in my mind to ask for help regarding coding :P haven't you been here before with great python snippets?

Either way, I started not long ago either. Since Android-dev is Java based, it really, really helps if you first know Java. I was also coding in Java long time before I started android. So I would advise you to learn a bit of Java first.

What you really need to start is ideas to code. Official docs from http://developer.android.com are sufficient but sometimes they are confusing, then there's Stackoverflow where all my problems get resolved without asking :)

I started with android how I always start - thinking of some projects and doing them. I actually never read coding books (maybe I should...?) because they tend to "wear out" and get old.

For tools, just use what is supplied, tools that everyone use - Eclipse and Android-SDK. Integrating android-sdk into Eclipse is very easy, there are lots of videos on youtube.
Speaking of youtube, I also watched some videos on there to get me started with how an android app is constructed. I watched "The new boston" videos, they have lots of them and they are kinda great.

Having an android phone would help a lot as well, because the emulator lacks some features, like control of the processes and debugging with phone is much faster. Emulator is slow, debugging is sluggish, not to mention the waiting for the emulator to boot up each time you start it...
To use your phone, make sure you have installed HTC drivers (or google, but I prefer HTC if the phone is HTC of course), then plug it in with a USB cable and Eclipse will automagically use it instead of an emulator. If you would need the drivers, I'll upload them.

I dunno what else to say... maybe take a look at my past projects for some insight? You can find them here and here. I also wrote a small article about android singletons here.
« Last Edit: August 02, 2012, 09:33:40 am by Kulverstukas »

Offline s3my0n

  • Knight
  • **
  • Posts: 276
  • Cookies: 58
    • View Profile
    • ::1
Re: How to start programming for android?
« Reply #5 on: August 02, 2012, 11:14:17 am »
Thanks Kulverstukas! I knew you would help, since I saw one of your apps posted here.
I recently acquired an Android phone, Huawei 8850, 1GHz processor and 512MB RAM :P
Easter egg in all *nix systems: E(){ E|E& };E

Offline EmilKXZ

  • Peasant
  • *
  • Posts: 109
  • Cookies: 10
  • likes monies :p
    • View Profile
    • EmilKXZ
Re: How to start programming for android?
« Reply #6 on: August 03, 2012, 08:59:21 pm »
I've tried to go with Android development too, but I don't own an Android phone, and I'm still a bit reluctant to learn Java, in my personal opinion, things get sluggish already by installing the JRE/JDK. I don't know if I should advice this, but there are frameworks you could use to get around Java. Of course, with Java you have all the control you'd want (same with Assembly and a computer, if you want to get around you use other languages). I've tried cross-platform programming with Adobe Flex, if you want a single codebase of your project and deployment to iOS, Android and Playbook, and if you know already HTML, CSS and Javascript, go for learning PhoneGap.

If you'll be just coding simple applications for companies, ad campaigns, etc. I don't think you'll need much of the advanced access Java can offer to you. If you cannot wait like me and want quick results, with straightforward procedures, try any of these frameworks.  ;D

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: How to start programming for android?
« Reply #7 on: August 03, 2012, 09:48:58 pm »
Any of those click-n-create programs will get you no where. They are good for quick and easy stuff, but if you want to make more control and more complex apps, you won't get around the Android-SDK.

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: How to start programming for android?
« Reply #8 on: August 03, 2012, 10:27:23 pm »
You could use Flash and port to Android and IOS with AIR. Also you could do it with C/++ and android NDK. There is a way to use C# too, I don't remember how to port but I know it can be done.
>>>import this
-----------------------------