[HapRamp Android] Transaction History, Wallet improvements and User Search

in utopian-io •  6 years ago  (edited)

GitHub Repository:

https://github.com/hapramp/Hapramp-Android


Drawing.png

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

  1. users search
  2. wallet information
  3. transaction history view along with memo.

This gif will give you a tour of all three updates combined--

hapramp-app-updates.gif


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.


Screenshot_2018-07-12-17-52-50-714_com.hapramp_pixel_really_blue_portrait.png

Code Snippet

We need to use database_api for getting state of a user`s transfer history.

The following method illustrates the http call:
transfer-carbon.png

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)


wallet_pixel_really_blue_portrait.png

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
steem_calc.png

Method used to calculate Steem Reputation
reputation_calc.png


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.


Screenshot_2018-07-13-14-56-28-870_com.hapramp_pixel_really_blue_portrait.png

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.

user_search.png


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




Join the conversation on Discord


Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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.

Is there a reason you are calling the API yourself and not using a wrapper (not sure if there is one for Java)?

Yes you are right.
There is one named SteemJ which provides many functionalities.
Since we are using SteemConnect for most of the purpose,SteemJ is a large library, so taking use SteemJ for small calls will be infeasible. Hence we decided to make plain Http call.

Also, was curious why your tab size is so large? It makes the code very wide and less readable (in my opinion).

Actually my Studio IDE had an incorrect editorconfig. Due to which i was getting correct view here but when i pushed the code, it changed there on GitHub.
I assure to rectify it in the next update.

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


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!