Skip to content

Any good at java?

Featured Replies

Im after a very simple java app for my iPhone is anyone can help me out.

Havent dont any Java for the last 3 years and as soon as i finished uni stopped caring about it.

All i want is an app to calculate Weight Watchers point :rolleyes:

So it needs two input boxes, a text field and a button to calculate it.

Formula is (Calories/70)+(Saturated Fat/4)

Im struggling to find my old java book that would tell me how to do it in about 5 minutes.

Cheers

Matt

Have you got a solve my error factory or do you only get that with the Enterprise Edition of the iPhone :rofl:

Seriously though shoot, what's the problem that means you can't work it out? :)

What sort of app, GUI or command line. If GUI is it AWT, or Swing or something else?

Do you have an API for the version of java on that phone?

I have no idea how the interface on the iPhone acts.

... nor if the phone uses some kind of mini-Java, nor how to upload applets.

There's probably a developer's SDK on the web somewhere.

Also is that KCal or Cal and sat fat in what unit g?

  • Author

Right i was digging to see what verison of java the iPhone has and found out that it doesnt support it:O

I just chose java as i knew something about it but anyway there is a calculator here

iPointsWatcher looking at the source can i just add my formula and then save the html file and upload it to my domain?

I just chose java as i knew something about it but anyway there is a calculator here

iPointsWatcher looking at the source can i just add my formula and then save the html file and upload it to my domain?

Depends on how well the iPhone supports JavaScript...

Other option if you're doing that would be to do the calculations server-side in PHP or similar...could be done in 5 minutes...

Rob.

Indeed, although of course you'd have to pay the bandwidth cost to use it every time.

  • Author

The iPhone handles that web page great as its formatted for the iPhone (tried it las night).

I also tried to adjust the source and it worked but its rounding the answers so do you know anyway of it just giving me the whole value rather than the rounded value?

Take the "Math.round" off the front of "points" maybe? ;):rolleyes:

Note: that may give a number with a stupid number of decimal places. Probably better would be to specify the number - i.e.

doc.result.value = Math.round(points,4);

for example, would give 4 places after the decimal point.

GIYF ;)

  • Author

Look im thick ok :p:D

Thanks for that

Indeed, although of course you'd have to pay the bandwidth cost to use it every time.

Could you install a webserver on an iPhone? :rubchin:

Rob.

From what I've just been reading, there is no native SDK for the iPhone. All apps have to be web apps. So no, you can't install a web server :D

  • Author

yet any way. A proper SDK is supposed to be coming so that you can sync apps.

Jobs mentioned it late last year but no date

From what I've just been reading, there is no native SDK for the iPhone. All apps have to be web apps. So no, you can't install a web server :D

Although, if you google for "iphone apache" there does seem to be a few people out there who've managed to get Apache with PHP running on their iPhones...

I'm strangely drawn to the idea... :sofahide:

Rob.

Hmmm - read "no supported SDK" :D

I'm not entirely clear what goes on inside an iPhone - I guess it's a Mac in a tiny box, so it looks like they're compiling their apps on another platform and copying the installers across, then running them under SSH. Not having an iPhone, or any other MAC to play with, I'm going to retire gracefully at this point :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Welcome to BRISKODA. Please note the following important links Terms of Use. We have a comprehensive Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.