[APP] Android L Calculator

Search This thread

virjog

Member
Nov 27, 2009
11
22
Hey guys,

I managed to convert the demo calculator on the Polymer Project website into an .apk so we can use the material design calculator on our phone.

Let me know what you guys think.

Here are some screenshots:

xFIh0D2.png


t7Y1iip.png


I44XNys.png
 

Attachments

  • viral-calculator.apk
    224.9 KB · Views: 46,806
Last edited:

miseusegau

Senior Member
Sep 20, 2012
2,440
4,307
savona
py5y7y7e.jpg


The graphic is very nice but I've noticed lag in addition to wrong results:rolleyes:, a good place to work..;)
 
Last edited:

ATZ-007

Senior Member
Sep 7, 2009
1,162
325
London
What the hell is 50+10%? 10% of what? That doesn't make any sense.

I was just testing the calculator.

This is the first thing came to my head. Calculation makes perfect sense,

10% of 50 is 5

So it’s 50 + 5 + 10

Don’t think this calculator can handle percentage.






Garbage in Garbage out
go back to school sonny :p

Your comment has no value what so ever. Waste of digital space. Don’t think it’s me who needs to go back to school.

Sent from my Nexus 5 using XDA Free mobile app
 

Attachments

  • Screenshot_2014-07-02-18-14-57.png
    Screenshot_2014-07-02-18-14-57.png
    162.7 KB · Views: 1,295
Last edited:

Molitro

Senior Member
Oct 19, 2010
744
167
Google Pixel 5
ASUS ZenFone 8
I was just testing the calculator.

This is the first thing came to my head. Calculation makes perfect sense,

10% of 50 is 5

So it’s 50 + 5 + 10

Don’t think this calculator can handle percentage.








Your comment has no value what so ever. Waste of digital space. Don’t think it’s me who needs to go back to school.

Sent from my Nexus 5 using XDA Free mobile app

Actually they're right. Regardless of some calculators spitting back a result, that expression is mathematically meaningless.

Swiftkey'd from my Nexus 5
 

projectvomit

Senior Member
Jul 8, 2009
119
33
Bolivar
ATZ is right. His math is a bit strange. However, a calculator should correct this and change 10% to 5. Try the math with most calculator and it will give you 65. More advanced ones will change 10% to 0.10 which would give you 60.1.

Sent from my Nexus 5 using XDA Premium 4 mobile app
 
Last edited:

Molitro

Senior Member
Oct 19, 2010
744
167
Google Pixel 5
ASUS ZenFone 8
ATZ is right. His math is a bit strange. However, a calculator should correct this and change 10% to 5. Try the math with most calculator and it will give you 65. More advanced ones will change 10% to 0.10 which would give you 60.1.

Sent from my Nexus 5 using XDA Premium 4 mobile app

You have a point, the correct answer to that should be 60.1, but in any case is a bad mathematical expression and shouldn't be used.

Hell I never use the % symbol when doing math in the first place, but that's another matter.

Swiftkey'd from my Nexus 5
 

projectvomit

Senior Member
Jul 8, 2009
119
33
Bolivar
You have a point, the correct answer to that should be 60.1, but in any case is a bad mathematical expression and shouldn't be used.

Hell I never use the % symbol when doing math in the first place, but that's another matter.

Swiftkey'd from my Nexus 5

I agree 100% ;) . I just don't understand the attacks on someone trying point out a potential problem and try trying to help in a forum. Thank you ATZ!

Sent from my Nexus 5 using XDA Premium 4 mobile app
 

ATZ-007

Senior Member
Sep 7, 2009
1,162
325
London
Sorry guys, my math may seem strange but I do use % at work and sometimes I use my phone to do it. This calculator can't calculate % so that I'd point it out.

Sent from my Nexus 5 using XDA Free mobile app
 

projectvomit

Senior Member
Jul 8, 2009
119
33
Bolivar
So back to the app. Any number longer than 7 digits will be cut off. Font size does not change to accommodate for large numerical values. And no, this mathematical expression does not make sense. It's only to show an issue with font size adjustment.

Sent from my Nexus 5 using XDA Premium 4 mobile app
 

projectvomit

Senior Member
Jul 8, 2009
119
33
Bolivar
Oops here are the screens

Sent from my Nexus 5 using XDA Premium 4 mobile app
 

Attachments

  • 1404400385413.jpg
    1404400385413.jpg
    78.6 KB · Views: 822
  • 1404400409954.jpg
    1404400409954.jpg
    87.6 KB · Views: 827

Molitro

Senior Member
Oct 19, 2010
744
167
Google Pixel 5
ASUS ZenFone 8
Sorry guys, my math may seem strange but I do use % at work and sometimes I use my phone to do it. This calculator can't calculate % so that I'd point it out.

Sent from my Nexus 5 using XDA Free mobile app

The point we're making is that it's not that the calculator doesn't handle %, but that your way of writing it is wrong.

50+10% doesn't mean 50+ (10% of 50). In principle, as I said, I'd call that wrong because is not clear what you want. Or in any case it would mean 50 + 10*1/100, that is, 50 + 0.1

Swiftkey'd from my Nexus 5
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    Hey guys,

    I managed to convert the demo calculator on the Polymer Project website into an .apk so we can use the material design calculator on our phone.

    Let me know what you guys think.

    Here are some screenshots:

    xFIh0D2.png


    t7Y1iip.png


    I44XNys.png
    4
    Results seems incorrect.

    50+10%+10 shows 50

    Correct answer is 65

    Sent from my Nexus 5 using XDA Free mobile app

    Garbage in Garbage out
    go back to school sonny :p
    3
    The reason it lags is because of this (possible) assumption. The application needs full network access in order to work. Which means the dev probably just created a linked web app.

    How this works? You create an app with no actionbar and remove the controls. In the code direct the app to a URL with WebView and give it internet permissions in your Manifest.

    Outcome - You get an app the automatically redirects to a URL that was in the code, in other means. The URL for the Polymer Calculator example.

    Anyways, its still nice though.
    2
    Results seems incorrect.

    50+10%+10 shows 50

    Correct answer is 65

    Sent from my Nexus 5 using XDA Free mobile app
    2
    What the hell is 50+10%? 10% of what? That doesn't make any sense.

    I was just testing the calculator.

    This is the first thing came to my head. Calculation makes perfect sense,

    10% of 50 is 5

    So it’s 50 + 5 + 10

    Don’t think this calculator can handle percentage.






    Garbage in Garbage out
    go back to school sonny :p

    Your comment has no value what so ever. Waste of digital space. Don’t think it’s me who needs to go back to school.

    Sent from my Nexus 5 using XDA Free mobile app