Java calculation - Android Studio

I am making a unit converter app and at one point, I am converting grams to metric tons:
case "grams":
value *= 0.000001;
et.setText(Double.toString(value));
The output in the emulator is 0.0 instead of 0.000001 or 1E-6 .
Is there something wrong?
Thanks.

levimatheri said:
I am making a unit converter app and at one point, I am converting grams to metric tons:
case "grams":
value *= 0.000001;
et.setText(Double.toString(value));
The output in the emulator is 0.0 instead of 0.000001 or 1E-6 .
Is there something wrong?
Thanks.
Click to expand...
Click to collapse
First declaration of "value"?
Ciuffy's SM-G900F CM 12.1 spirit hath marked this way. Thank if helped your soul.

Related

Ameo/Athena upgrade with ipod hard disk

It has crossed my mind that it might be possible to put an ipod classic/video hard drive into the Athena. I have, unfortunately, no idea as to wether the current HD on my 8gig Ameo is CF or ZIF. Or wether the OS will see 40gb
Q Does anyone know what type HD interface is present in the Ameo and how does can I open the case? I have already taken the torx screws off the bottom but that does not free up anything and without knowing what happens next I am reluctant to break anything.
check this thread
http://forum.xda-developers.com/showthread.php?t=357502
post 110 onwards post 135 onwards post 157 onwards, post 188 onwards
advisable to read the whole thread really, a wealt of information and a great job and team effort fom some of this forum members.
By the way I believe that the limit of WM is 32MB somebody correct my if wrong
also please post in that thread if you get any findings, people keep duplicating threads and information all over the place.
regards
Thanks for that reference PBL, as you say all very interesting.
I must admint it looks a little daunting all the pics about taking the darn thing appart and then getting it back working again. I would guess that the 40gb hd or something of tha size is going to be physically too big. But I would happily settle for 32gb if it can be made to work.
PBL1 said:
By the way I believe that the limit of WM is 32MB somebody correct my if wrong
Click to expand...
Click to collapse
32MB is the limit for FAT12, not a limitation of WM per se. WM however reads FAT16/32 just fine, which means you can access up to 2GB/8TB (yes, you read that right). The Athena's HDD is formated in FAT32.
aemo said:
I would guess that the 40gb hd or something of tha size is going to be physically too big
Click to expand...
Click to collapse
You're right there - the iPod Classic uses 1.8" notebook HDDs, which are much larger than the sub-1" HDD used in the Athena.

Scientific Calculator For Android assistance

Hello,
I'm currently a college student and was looking around for some heavy-duty calculator applications for the G1 and stumbled on this. It seems not to have been updated in about 9 months, but the application itself seems very interesting and exceptionally useful. I was wondering if someone would be interested in picking up where they left off? Or atleast compiling an .apk for it?
Same here, maybe something similar to a TI 83 and up?
I would be very interested to see this developed more.
G1-evolve said:
Same here, maybe something similar to a TI 83 and up?
Click to expand...
Click to collapse
yeah can we get those sweet games on it?
orangeee said:
yeah can we get those sweet games on it?
Click to expand...
Click to collapse
Screw the games.. We need the calculator. If you want the game go get nesoid or something. lols..
You see the stock Calculater on the phone , If you press "Menu" their is an option for scientific calculator , Have you tred it?
Have you tried handyCalc?
http://www.cyrket.com/package/org.mmin.handycalc
prettyboy85712 said:
Have you tried handyCalc?
http://www.cyrket.com/package/org.mmin.handycalc
Click to expand...
Click to collapse
Yeah, THIS is the most powerfull software calculator i've ever seen.
And it's free. A little bit unusual to learn, but you have graphical output on screen
and everything you can think about.
Just type what you want and he does it for you.
It's very fast.
worldestroyer said:
Hello,
I'm currently a college student and was looking around for some heavy-duty calculator applications for the G1 and stumbled on this. It seems not to have been updated in about 9 months, but the application itself seems very interesting and exceptionally useful. I was wondering if someone would be interested in picking up where they left off? Or atleast compiling an .apk for it?
Click to expand...
Click to collapse
I downloaded the source-code and compiled it for you... There you go (attached).
Please note that I just compiled it... I don't even know how it works.
RZR
PG Calculator
I would like to recommend PG Calculator. It comes in free different versions: Free, Standard and Pro. Pro version can work with complex numbers.
The app has nice interface which can be changed using different skins. It can work in both Algebraic and RPN (Reverse Polish Notation) modes. Algebraic mode allows to process the mathematical expressions. Calculator has a library of common mathematical and physical constants and allows for user-defined variables.
Pro version has the Time Value of Money solver and also the IP Subnet calculator.

Cut the Rope for IE on WP7

Switch to Desktop version on IE
visit http://www.cuttherope.ie
Go to settings and change from Drag to cut > Click to cut
Play
Tip: You have to tap on the rope to cut it.
Constant lags. I think its based on HTML5.
downloaderintruder said:
Switch to Desktop version on IE
visit http://www.cuttherope.ie
Go to settings and change from Drag to cut > Click to cut
Play
Tip: You have to tap on the rope to cut it.
Constant lags. I think its based on HTML5.
Click to expand...
Click to collapse
yes... I play this game on desktop pc, but i think it's a shame that it doesn't work as it should on wp....
Best game
yah good game to kill a few minutes
i wonder why the game is not in marketplace. couldn't be so difficult to port it.
unbenannt said:
i wonder why the game is not in marketplace. couldn't be so difficult to port it.
Click to expand...
Click to collapse
Hmm... How good are you in porting C++/java code to SL? FYI, original Android version of "Cut the Rope" has 1.5 MB compiled binary module plus 1.6 compiled java code. So it much easier to port it from iPhone/iPad (if you have good designed C++ classes) than to SL.
sensboston said:
Hmm... How good are you in porting C++/java code to SL? FYI, original Android version of "Cut the Rope" has 1.5 MB compiled binary module plus 1.6 compiled java code. So it much easier to port it from iPhone/iPad (if you have good designed C++ classes) than to SL.
Click to expand...
Click to collapse
i meant for the developers of "cut the rope" it could not be so difficult to port it to WP.. they wrote the game.. they could port it to any p-language.
anyway, it was one of the games, which i had searched for when i got my omnia and i really do think a game like this should have been on marketplace already..
unbenannt said:
i meant for the developers of "cut the rope" it could not be so difficult to port it to WP.. they wrote the game.. they could port it to any p-language.
Click to expand...
Click to collapse
Trust me, it's not an easy... Even for developers. Actually it's not a "port" but they should write a brand new XNA game. Of course they may reuse assets, algorithms and classes structures but it's a lot of work.
unbenannt said:
anyway, it was one of the games, which i had searched for when i got my omnia and i really do think a game like this should have been on marketplace already..
Click to expand...
Click to collapse
Check marketplace for "Spider Jack" game, it's pretty the same gameplay.
playing this when get bored
Playing this when get bored
Works with Opera, too
nice 1, 2 bad it's not a native wp7 app, i would pay for it

[CLOSED] Mobage Games Hacking

Mod edit: Thread closed as it's just calling for spams!
Hi to all, i search any tipe to Hacking the Mobage Games (Rage of bramuth, Blood Brothers, and for the others games). Thanks for all type of helps.
Inviato dal mio Desire HD con Tapatalk 2
Use gameCIH but you'll need root access for that program. Works like cheat engine on windows If you are familiar with it.
Sent from my virtuous powered HTC Desire HD.
You do know that app piracy is not supported on XDA.
It's not piracy that he's talking about. He's talking about hacking phone saved scores, money, etc.
Sent from my HTC Desire HD using xda premium
Those are online games. I don't think GameCIH would work on them.
I maybe mistaken though.
Sent from my HTC Inspire 4G using xda premium
Thanks To all Helps, i have tried the Progam What We Telled ( I HAve Root, And IceColdSandwich Rom) But Whe Don't Work, i have tried to isert the imput for the coins, and for the other objekt, but nothing changed... other ideas...? Thanks A Lott to All Helpers.
I' M Interessed In Particulary For The " Blood Brothers " Game, To Hacking The MobaCoin Unity, To Have The Possibility To Buy The " Epics " Miniature Without Real Money......
Thancks To We Helps And We Patience.
Hi I Ask For Any Other Helps To Resolving The My " Hacking " Problem... I Aktualy Have The IceColdSandwich 8.7 Rom...Any Suggeriment For My RequestFor The " Blood Brothers " Game To Hacking Them???
All Helps And Instruction Are Welcome.
Thancks To All.
krisdanny84 said:
Hi I Ask For Any Other Helps To Resolving The My " Hacking " Problem... I Aktualy Have The IceColdSandwich 8.7 Rom...Any Suggeriment For My RequestFor The " Blood Brothers " Game To Hacking Them???
All Helps And Instruction Are Welcome.
Thancks To All.
Click to expand...
Click to collapse
U can check this.
The settings need to check what language do you need to search (java,html5,etc). Look closely at settings.
You are right. It won't work on online game.
Sent from my SGH-T999 using xda app-developers app
Not true...
coszy said:
You are right. It won't work on online game.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
This is NOT true. Also, there is the myth that Multi-Player online games cannot be hacked and that TOO is not true.
You have to think "outside the box"...you see, most newer games have the crucial data (such as gold, coins, xp and etc) stored on their servers...thus when the client's (your android phone) value does not match the server values, the client will either crash, just revert back to the original value (the value from the server). So how to overcome some of these things? Hacking the obvious as I said, the gold, coins and such will more than likely not work...but things like:
1 = $10
2 = $20
3 = $30
4 = $40
5 = $50
When you are buying items...if you click 1, it says $10 and to press something to confirm the buy...if you toggle it to 2, it has a higher amount...well, you can hack the value of the $...you search for 10, toggle it to 2 (so it shows $20) and then hack 20...and etc until a single value remains...change that to let's say $1, and you get 5 or more items for $1. Or you can reverse it and hack the AMOUNT, so for $50 you get 99999 items.
Here's an example, but I won't elaborate on it...it's about trial and error, but I will tell you the general idea of what you have to do:
If you are playing a Mobage game or similar that uses "ENERGY", you more than likely cannot hack the energy...nor the coins/gold. So, what to hack then? I've hacked XP to raise the level, thus being much stronger and use the limited energy I have to attack/kill the stronger creatures and get "faster" XP and COINS with the limited energy that I have. If you can't hack the XP, then the power or strength...all of it is temporary, but the xp and/or gold you obtain will remain valid afterwards. You then just wait until your energy replenishes and rinse and repeat. What I would have to do in one week I can do in one single day and get a jump start on people.
To be honest, it makes the game "boring" after a while must faster but when you do find a hack and exploit it there isn't a better thrill! :laugh:
P.S. And yes this works on some GREE games and especially good to use on RPG type games and etc...here are some names to google for game hacking apks:
Game Killer
CIH
DaxAttack Hack (newest, but not sure if it's the best)
moba coin hack - get unlimited moba coins, works for all mobage games
confirmed working on blood brothers, so should work for all.
http://games-unlocked.com/go/moba-coin-hack-unlimited-coins-android-iphone/
bugs_bunny01 said:
moba coin hack - get unlimited moba coins, works for all mobage games
confirmed working on blood brothers, so should work for all.
http://games-unlocked.com/go/moba-coin-hack-unlimited-coins-android-iphone/
Click to expand...
Click to collapse
cant download
hrieone said:
cant download
Click to expand...
Click to collapse
Me neither, mostly those downloads where you have to fill in a survey are scams.
Don't think that it would've worked anyway.
krisdanny84 said:
Hi to all, i search any tipe to Hacking the Mobage Games (Rage of bramuth, Blood Brothers, and for the others games). Thanks for all type of helps.
Inviato dal mio Desire HD con Tapatalk 2
Click to expand...
Click to collapse
ok heres a nice trick for unlimited energie, with a rooted mobile dl gmt time app, this will allow you to speed game clocks up , notice thay when u run the game , that every time you click a link, the game will refresh and remove the extra energy , so whilest on the map once you have none left just click foward , (it will bring your count to 0 , but because it will refil in 1/100 of a second just keep going foward one step at a time
Where can I find gmt time app?
Ty
Sent from my SGH-T999 using xda premium
from the google play store , I actually discovered it via xda forums somewhere a few months ago
its developed by good mood droid
moba coin hack
This works for free moba coins, tested and working on my Galaxy S2 no root required.
Can add up to 10,525 at a time
http://www.bit.ly/freemobacoins
bugs_bunny01 said:
This works for free moba coins, tested and working on my Galaxy S2 no root required.
Can add up to 10,525 at a time
http://www.bit.ly/freemobacoins
Click to expand...
Click to collapse
Yeah another survey scam site.
If it works so wonderfully upload the file itself or tell the one who made it to let people pay normally.
WackyJoe said:
This is NOT true. Also, there is the myth that Multi-Player online games cannot be hacked and that TOO is not true.
You have to think "outside the box"...you see, most newer games have the crucial data (such as gold, coins, xp and etc) stored on their servers...thus when the client's (your android phone) value does not match the server values, the client will either crash, just revert back to the original value (the value from the server). So how to overcome some of these things? Hacking the obvious as I said, the gold, coins and such will more than likely not work...but things like:
1 = $10
2 = $20
3 = $30
4 = $40
5 = $50
When you are buying items...if you click 1, it says $10 and to press something to confirm the buy...if you toggle it to 2, it has a higher amount...well, you can hack the value of the $...you search for 10, toggle it to 2 (so it shows $20) and then hack 20...and etc until a single value remains...change that to let's say $1, and you get 5 or more items for $1. Or you can reverse it and hack the AMOUNT, so for $50 you get 99999 items.
Here's an example, but I won't elaborate on it...it's about trial and error, but I will tell you the general idea of what you have to do:
If you are playing a Mobage game or similar that uses "ENERGY", you more than likely cannot hack the energy...nor the coins/gold. So, what to hack then? I've hacked XP to raise the level, thus being much stronger and use the limited energy I have to attack/kill the stronger creatures and get "faster" XP and COINS with the limited energy that I have. If you can't hack the XP, then the power or strength...all of it is temporary, but the xp and/or gold you obtain will remain valid afterwards. You then just wait until your energy replenishes and rinse and repeat. What I would have to do in one week I can do in one single day and get a jump start on people.
To be honest, it makes the game "boring" after a while must faster but when you do find a hack and exploit it there isn't a better thrill! :laugh:
P.S. And yes this works on some GREE games and especially good to use on RPG type games and etc...here are some names to google for game hacking apks:
Game Killer
CIH
DaxAttack Hack (newest, but not sure if it's the best)
Click to expand...
Click to collapse
Hi im playing dot (defender of texel) how would you change the xp in that game any ideas?
Dan

Graphing Calculator App?

Sorry if starting a new thread isn't exactly appropriate. I wasn't certain what to search for, but I was wondering if there was a graphing calculator app that could run on our Nooks, similar to the stock calculator on CM11. That would be convenient for my Algebra work. Thanks!
yattaro said:
Sorry if starting a new thread isn't exactly appropriate. I wasn't certain what to search for, but I was wondering if there was a graphing calculator app that could run on our Nooks, similar to the stock calculator on CM11. That would be convenient for my Algebra work. Thanks!
Click to expand...
Click to collapse
I'll look around a bit more, but I haven't had any luck on this before. I've been looking for an app ike this since I started Algebra 1 last year.
Algebra 2 is great, isn't it?
thenookieforlife3 said:
I'll look around a bit more, but I haven't had any luck on this before. I've been looking for an app ike this since I started Algebra 1 last year.
Algebra 2 is great, isn't it?
Click to expand...
Click to collapse
If only WabbitEmu worked on 2.1. That would be almost perfect.
As for Algebra 2, it's an okay class when you have a good teacher... In my class, about ten people almost failed until they decided a D to a 0.5. And now this quarter that's not happening and alongside passing, we have to also make a 2.0 GPA to stay in the school (since it's a magnet school). Also, it's kinda funny how we keep running into each other today, wouldn't you agree?
yattaro said:
If only WabbitEmu worked on 2.1. That would be almost perfect.
As for Algebra 2, it's an okay class when you have a good teacher... In my class, about ten people almost failed until they decided a D to a 0.5. And now this quarter that's not happening and alongside passing, we have to also make a 2.0 GPA to stay in the school (since it's a magnet school). Also, it's kinda funny how we keep running into each other today, wouldn't you agree?
Click to expand...
Click to collapse
Well, I'm homeschooled, so Algebra 2 is taught by my mom/a computer program, and it's super fun and easy for me.
Definitely funny - especially considering we're around the same age.
Ive actually had a bit of luck with Andie Graph(just had to get the roms through other means online) and it runs pretty nicely on the eink screen
dombeef said:
Ive actually had a bit of luck with Andie Graph(just had to get the roms through other means online) and it runs pretty nicely on the eink screen
Click to expand...
Click to collapse
Great, I'll give it a go!
Just because I'm lazy, would you post the .apk? You can find it in /data/app.
thenookieforlife3 said:
Great, I'll give it a go!
Just because I'm lazy, would you post the .apk? You can find it in /data/app.
Click to expand...
Click to collapse
I would, if I still had it installed Its from the google play store, it shouldnt be that bad to download it there
Wow! That app is better than sliced bread
Back in the day I used to run the Virtual TI on my laptop to show students what I was talking about and to run various lab instruments for demo purposes. I don't imagine I could do that with this app but I bet it would run an isotope half-life simulation I wrote for the calculator. Gotta try and dig that up just for fun.
Thanks for mentioning the app!
dombeef said:
I would, if I still had it installed Its from the google play store, it shouldnt be that bad to download it there
Click to expand...
Click to collapse
True, but not true - I don't have Play installed and don't want to go through all the trouble of downloading multiple wrong-version .apks from the Internet. That's why it'd be great if you could post the .apk.
thenookieforlife3 said:
True, but not true - I don't have Play installed and don't want to go through all the trouble of downloading multiple wrong-version .apks from the Internet. That's why it'd be great if you could post the .apk.
Click to expand...
Click to collapse
I don't have my Nook in front of me now, so I can't tell you version compatibility, but I got it on my phone. I have posted the *.apk here: https://www.dropbox.com/s/ro0q5bwua4xyxkr/net.supware.tipro-1.apk?dl=0
For legal reasons, I can't include the ROM image of course, but you can find it elsewhere. It is suggested to pull it straight from a real calculator, but mine's an NSpire with an 84 keypad, which doesn't allow you to image the 84 ROM for some reason, and the images from TI's website don't work, so I'm at a loss with this app.
yattaro said:
I don't have my Nook in front of me now, so I can't tell you version compatibility, but I got it on my phone. I have posted the *.apk here: https://www.dropbox.com/s/ro0q5bwua4xyxkr/net.supware.tipro-1.apk?dl=0
For legal reasons, I can't include the ROM image of course, but you can find it elsewhere. It is suggested to pull it straight from a real calculator, but mine's an NSpire with an 84 keypad, which doesn't allow you to image the 84 ROM for some reason, and the images from TI's website don't work, so I'm at a loss with this app.
Click to expand...
Click to collapse
Okay, I'll try that link.
Kind of lost on the other stuff
So I got the chance to load Andie on my Nook (the version in my Dropbox works). Works like a charm! Attached are some pics. As far as obtaining a ROM goes, you can get WabbitEmu (on a newer device of course) and use that to compile a ROM (I think the 83 Plus is the newest that Andie supports). From there, extract it from /data/user/0/com.Revsoft.Wabbitemu/cache/ (the file should be named "calculator name.ROM) and copy it to the Nook's SD card (anywhere is fine as long as it's on the card).

Categories

Resources