Calculating in android

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Calculating in android

Postby Drakenus » Wed May 19, 2010 8:49 pm

Hello,
I´m newbie to android, but i'm learning quickly
Before I have coded in PHP and Javascript...
But I would like tutorial where you can show me how to do some calculations like a calculator and I need to know how to input numbers in my app which is supposed to calculate equation ( I mean something easy like this 15/5+21-6+ln5-PI = xxx ) i read some texts and I didn't find solution and any example of it. please help
Thanks for help and tutorial if there will some
Drakenus
Freshman
Freshman
 
Posts: 2
Joined: Wed May 19, 2010 4:41 pm

Top

Re: Calculating in android

Postby Trip » Sat May 22, 2010 3:31 am

ditto ... any information on declaring functions would be useful
Trip
Junior Developer
Junior Developer
 
Posts: 19
Joined: Sat May 22, 2010 2:58 am

Re: Calculating in android

Postby Trip » Tue May 25, 2010 4:16 am

you'll need to break down your string and have functions to call the different operators with variables
shouldnt be to difficult

private Double domath(action, value, sourcevalue){};
Trip
Junior Developer
Junior Developer
 
Posts: 19
Joined: Sat May 22, 2010 2:58 am

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 9 guests