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