[HapRamp Android] Transaction History, Wallet improvements and User Search
GitHub Repository:
https://github.com/hapramp/Hapramp-Android
New Features
To make Android app useful and complete so that users can take all possible actions on the Steem, we are continuously adding new features to it.
Now HapRamp's Android app supports
- users search
- wallet information
- transaction history view along with memo.
This gif will give you a tour of all three updates combined--
1. Transaction History
Now users can see the wallet transaction history on HapRamp's Android app. From the user's profile, one need to click on My Wallet and tap on Go To History.
Here is how it looks like.
Code Snippet
We need to use database_api
for getting state of a user`s transfer history.
The following method illustrates the http call:
After this, we have to parse response for each of the type of operation
(author_reward, curation_reward, comment_benefactor_reward , transfer, claim_balance etc.)
2. Improvements in the Steem Wallet View
Previously, in the HapRamp's app, only the Steem and Steem Dollars were visible. (Here is the corresponding update).
This time, I've updated it with a more informative view which shows:
- Steem
- Steem Power
- Steem dollars
- Savings balance
- Estimated Account Value
- Current Conversion Rate (STEEM to USD and SBD to USD)
Code Snippet
Steem Power and Steem Reputation are the two things we need to calculate from the raw data.
Method used to calculate Steem Power
Method used to calculate Steem Reputation
3. User Search
Now on HapRamp's Android app it is possible to search and view profile of any user on the Steem. You need to go to search and query for a username of a profile.
Code Snippet
For searching account from a segment of strings, we used condenser_api.lookup_accounts
.
As user goes typing, user accounts matching to that is returned as response.
GitHub Account
@bxute - https://github.com/bxute
Commits
https://github.com/hapramp/Hapramp-Android/commit/69dc96f12f7f7eec7b1a23efd8be5dc4e296c8fd
https://github.com/hapramp/Hapramp-Android/commit/dd73e5a7f20840665aa1c914fc729e41e802ec26
https://github.com/hapramp/Hapramp-Android/commit/144a961aa424179be5df07e218e1f255ced3c148
https://github.com/hapramp/Hapramp-Android/commit/467ea4f629e3c25e293b1322a7fe833288a82711
https://github.com/hapramp/Hapramp-Android/commit/98530de50f9dc82a348a25a1f25c2b28984f52be
Thanks for the contribution, @bxute! You've added some great features, good work!
Is there a reason you are calling the API yourself and not using a wrapper (not sure if there is one for Java)? Also, was curious why your tab size is so large? It makes the code very wide and less readable (in my opinion).
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Thank you very much @amosbastian for reviewing my work.
Hey @bxute
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Congratulations @bxute! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of upvotes
Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Play-off for third result
Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes