Author Topic: Programming for Android  (Read 4219 times)

0 Members and 1 Guest are viewing this topic.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Programming for Android
« on: May 15, 2011, 01:54:16 am »
I'm starting this just for general discussion of programming for Android in Java. Discuss away.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Programming for Android
« Reply #1 on: May 15, 2011, 02:00:10 am »
The SDK is very well done, but the fragments/activities/surfaces/views confuse me a bit.
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Programming for Android
« Reply #2 on: May 15, 2011, 02:17:02 am »
What exactly do you want to know?
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Programming for Android
« Reply #3 on: May 15, 2011, 02:19:46 am »
Well, I guess the issue really comes with when each one is used...I don't fully understand all the functionality of the SDK yet, so I'm still learning about what situations are ideal to really look at using things such as either threads or timers for updating views, and even then whether I should update a regular view or a SurfaceView with callback or all those things. It's really just situational questions about what's the best way to do things...
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Programming for Android
« Reply #4 on: May 15, 2011, 02:35:32 am »
Well, SurfaceViews are used for graphics rendering. My suggestion is to have an entirely separate thread entirely for the purpose of calling
Code: [Select]
c = surface.lockCanvas();
//draw on Canvas c
surface.unlockAndPost(c);

Regular views are used more for input events an such. For example, I have a regular view that I have extended and turned into a Joystick class. I have that separated from the SurfaceView that I use for rendering.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: Programming for Android
« Reply #5 on: May 22, 2011, 03:10:46 pm »
hmm speaking of java and android are you able to program and compile java into java bytecode and run it on android? I have tried to google this and never found the solution.. I would like it if I could do programming on say.. a motorola xoom.
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Programming for Android
« Reply #6 on: May 22, 2011, 03:25:38 pm »
As far as I know there isn't a way to write actual apps on the android itself...
There's something about Tuesday...


Pushpins 'n' stuff...