Implementing new features to Travel Mate Android Application
Repository
https://github.com/project-travel-mate/Travel-Mate
A must-have app for those interested in travel. The app provides users with various features from choosing the correct destination to making all the bookings and to easily organizing the trip.
New Features
There were two open new feature in repo issue list to create some cool utilities for the travellers. Implemented as per requirement described in the issue description.
- Currency Converter
Link to issue
Purpose of this implementation is to create currency converter utility to convert most of the currencies, currently backend supports around 180+ currencies and provides answers to 2 decimal places for great accuracy.
In this implementation i have created material design UI to select two different currencies using listview selectors. Rest API call requires two currency codes to be convert and intern it returns converted value back.
/**
* Convert currency
* and set result to result_textview
*/
private void convertCurrency() {
// to fetch weather forecast by city name
String uri = API_LINK_V2 + "get-currency-conversion-rate/" + first_country_short + "/" + second_country_short;
Log.v("EXECUTING", uri);
mDialog.show();
//Set up client
OkHttpClient client = new OkHttpClient();
//Execute request
Request request = new Request.Builder()
.header("Authorization", "Token " + mToken)
.url(uri)
.build();
//Setup callback
client.newCall(request).enqueue(new Callback() {
@Override
public void onFailure(Call call, IOException e) {
mDialog.hide();
mHandler.post(() -> {
Log.e("Request Failed", "Message : " + e.getMessage());
cancelAnimation();
networkError();
});
}
..............
- Compass
The smartphones have a small magnetometer built in, which can measure the Earth’s magnetic field. This information is combined with an accelerator that acquires information regarding the phone’s position in space. Using SensorEventListener retrieved device accelerometer values to move compass handle.
Pull Requests
GitHub Account
GitHub account : https://github.com/santoshhiremani
Thank you for your contribution. It's good to see you have worked on one of the famous open source repositories. Few thoughts for your next contribution
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 for your review, @codingdefined!
So far this week you've reviewed 9 contributions. Keep up the good work!
Thank you very much for your feedback and support ! :), Yes I missed some crucial things over here and definitely you'll get to see in my next contribution.
Hey, @hiremani!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Uncomplicated article. I learned a lot of new things. I signed up and voted. I will be glad to mutual subscription))))
Congratulations @hiremani! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :
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:
SteemFest³ - SteemitBoard support the Travel Reimbursement Fund.
Hi @hiremani!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server