1 Replies - 1997 Views - Last Post: 28 January 2010 - 05:39 PM

#1 c47man   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-January 10

how do you convert formulas to java for the Droid?

Posted 23 January 2010 - 10:16 AM

I am a cameraman and I want to make an app for my Moto Droid that will
calculate my depth of field given four inputs. I am literally brand
new to javascript and this programming stuff, so I was wondering if
anyone could help me out.

I have a very basic GUI set up using Droiddraw which allows me to
input my 4 variables, which are:

Focus (@+id/focust)
Focal Length (@+id/flt)
Aperture (@+id/apt)
Circle of Confusion (@+id/coct)


Equations for this calculation are located here: http://www.dofmaster.../equations.html

I think I can figure out formatting, calculation buttons, etc. but
coding the actual math is more than a bit confusing...

I've never done java before and I only want to make this app because the existing ones don't fit my needs. Can someone please show me how to convert a mathematical formula to Java? I'm away from my home computer atm but I will post up my .xml and .java files when I get back.

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: how do you convert formulas to java for the Droid?

#2 DSaad   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 12-December 09

Re: how do you convert formulas to java for the Droid?

Posted 28 January 2010 - 05:39 PM

To develop applications for Android, you will need a java IDE, such as Eclipse (free), as well as the Android SDK installed (also free).

http://www.eclipse.org/

Installation Guide

http://developer.and....html#preparing

From my experience, math operators are nearly the same in most modern languages. Once you sort out your logic, converting the syntax to Java based code will not be too difficult.

Best of luck.
-D
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1