#### Repository https://github.com/project-travel-mate/Travel-Mate #### Travel Mate https://project-travel-mate.github.io/Travel-Mate/ <blockquote> <p>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. The platform basically uses a mash-up technology. The app provides solutions for every possible problem a traveller might face during the course of his or her entire journey.</p> <p>While travelling from one place to another, there are a lot of factors to be considered to make the trip a memorable one. Our platform helps the traveller with anything and everything that he or she might need, from the moment he or she plans the journey till the time he or she is back home happy and content. The platform includes a wide variety of options - from selection of Mode of Transport, to finding out about the destination city, to provision of best music, novels, depending on the mood of the traveller.</p> </blockquote> ### New Features - What feature(s) did you add? The App has travel related checklist feature and the new feature was to create home screen widget to show the selcted checklist items on it. [Link to Feature Request](https://github.com/project-travel-mate/Travel-Mate/issues/118) - How did you implement it/them? **References** https://medium.com/android-bits/android-widgets-ad3d166458d3 https://developer.android.com/guide/topics/appwidgets/ ! Added local database using room persistence library and created utility [WidgetCheckListDao](https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/java/dao/WidgetCheckListDao.java) make CRUD operation even in detached fragments at home screen. Next, to create home screen widget used below XML layout structure which is responsible for widget creation. As you can see the code `android:updatePeriodMillis="1800000"` is for updating the widget. ``` <?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:initialKeyguardLayout="@layout/checklist_widget" android:initialLayout="@layout/checklist_widget" android:minHeight="150dp" android:minWidth="110dp" android:resizeMode="horizontal|vertical" android:updatePeriodMillis="1800000" android:widgetCategory="home_screen|keyguard" /> ``` Created another two layouts to add checklist items inside the widget listview. [checklist_widget](https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/res/layout/checklist_widget.xml) [checklist_widget_item](https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/res/layout/checklist_widget_item.xml) Here the final step is to bind UI elements on home screen widget and update it frequently. The following two class are reaponsible to do that. [CheckListWidgetProvider](https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/java/widget/CheckListWidgetProvider.java) [CheckListWidgetService](https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/java/widget/CheckListWidgetService.java) and included these in `Menifest.xml` in `reciever` and `service` tag respectively. ``` <receiver android:name="widget.CheckListWidgetProvider" > <intent-filter> <!-- This widget provider receives broadcast with following action name or simply onUpdate of AppWidgetProvider is called --> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> </intent-filter> <!-- linking up xml file of appwidget-provider to AppWidgetProvider --> <meta-data android:name="android.appwidget.provider" android:resource="@xml/checklist_widget_info" /> </receiver> <service android:name="widget.CheckListWidgetService" android:permission="android.permission.BIND_REMOTEVIEWS" /> ``` [**Pull Requests**](https://github.com/project-travel-mate/Travel-Mate/pull/462) ### Github Account https://github.com/santoshhiremani
author | hiremani | ||||||
---|---|---|---|---|---|---|---|
permlink | implemented-home-screen-widget-feature-to-travel-mate-android-app-1537778418325 | ||||||
category | utopian-io | ||||||
json_metadata | {"app":"steeditor/0.1.2","format":"markdown","image":["https://ipfs.busy.org/ipfs/QmeiDgYVENXJu3UYqfv1rm31LU9FxeXFYbkmut1xourozt","https://ipfs.busy.org/ipfs/QmRLiH8kdascgBcyccMKisNkzKxWse3Fw2jSxJZare9MaC"],"tags":["utopian-io","development"],"users":["layout","xml"],"links":["https://github.com/project-travel-mate/Travel-Mate","https://project-travel-mate.github.io/Travel-Mate/","https://github.com/project-travel-mate/Travel-Mate/issues/118","https://medium.com/android-bits/android-widgets-ad3d166458d3","https://developer.android.com/guide/topics/appwidgets/","https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/java/dao/WidgetCheckListDao.java","http://schemas.android.com/apk/res/android","https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/res/layout/checklist_widget.xml","https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/res/layout/checklist_widget_item.xml","https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/java/widget/CheckListWidgetProvider.java","https://github.com/project-travel-mate/Travel-Mate/blob/master/Android/app/src/main/java/widget/CheckListWidgetService.java","https://github.com/project-travel-mate/Travel-Mate/pull/462","https://github.com/santoshhiremani"]} | ||||||
created | 2018-09-24 08:40:21 | ||||||
last_update | 2018-09-24 08:40:21 | ||||||
depth | 0 | ||||||
children | 7 | ||||||
last_payout | 2018-10-01 08:40:21 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 40.716 HBD | ||||||
curator_payout_value | 13.978 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 4,297 | ||||||
author_reputation | 7,035,336,488,338 | ||||||
root_title | "Implemented Home Screen widget Feature to Travel Mate Android app" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 100,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 72,105,884 | ||||||
net_rshares | 40,941,797,101,227 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
yuxi | 0 | 3,097,715,510 | 10% | ||
doughtaker | 0 | 11,753,028,824 | 50% | ||
andrejcibik | 0 | 85,650,496,755 | 100% | ||
leir | 0 | 1,847,307,436 | 50% | ||
espoem | 0 | 1,003,950,791 | 1.73% | ||
utopian-io | 0 | 40,598,299,184,853 | 28.53% | ||
amosbastian | 0 | 30,936,326,150 | 37.94% | ||
tdre | 0 | 13,854,706,538 | 100% | ||
grzesiekb | 0 | 111,912,200,983 | 100% | ||
jjay | 0 | 414,119,149 | 100% | ||
neokuduk | 0 | 1,358,864,693 | 100% | ||
sudefteri | 0 | 2,625,161,156 | 100% | ||
akifane | 0 | 496,534,057 | 100% | ||
mansyaprime | 0 | 5,858,428,767 | 100% | ||
ryuna.siege | 0 | 208,699,453 | 100% | ||
earnestcar | 0 | 576,232,571 | 100% | ||
yaroslav199 | 0 | 576,212,075 | 100% | ||
merry1990 | 0 | 576,041,584 | 100% | ||
alina34 | 0 | 576,026,280 | 100% | ||
maikl960 | 0 | 576,026,280 | 100% | ||
sergbog | 0 | 576,026,280 | 100% | ||
aleks02 | 0 | 574,718,685 | 100% | ||
izydorjasiski | 0 | 576,026,280 | 100% | ||
bestgirl | 0 | 576,026,280 | 100% | ||
artemnezlobin | 0 | 576,105,625 | 100% | ||
felicjann | 0 | 576,026,280 | 100% | ||
natik303 | 0 | 576,026,280 | 100% | ||
vayuzhipsch | 0 | 576,274,338 | 100% | ||
bndage | 0 | 576,344,993 | 100% | ||
supan4ik | 0 | 576,658,529 | 100% | ||
ervandkarapet | 0 | 576,255,903 | 100% | ||
conditionkentish | 0 | 576,229,199 | 100% | ||
sometimesrampant | 0 | 575,910,608 | 100% | ||
nicemetric | 0 | 575,912,176 | 100% | ||
ahullcortege | 0 | 576,012,956 | 100% | ||
basiks | 0 | 576,475,596 | 100% | ||
pavlovdinar | 0 | 576,070,230 | 100% | ||
carsonbak | 0 | 576,250,456 | 100% | ||
gunterjos | 0 | 576,240,815 | 100% | ||
lemonydietary | 0 | 576,274,713 | 100% | ||
rubydetails | 0 | 576,219,623 | 100% | ||
publicchord | 0 | 576,110,925 | 100% | ||
wigeonfeatures | 0 | 576,353,631 | 100% | ||
anycases | 0 | 575,981,355 | 100% | ||
polygontackle | 0 | 576,207,775 | 100% | ||
sochivec | 0 | 576,228,591 | 100% | ||
homebox567 | 0 | 576,280,796 | 100% | ||
dkapitonov | 0 | 575,970,853 | 100% | ||
scholarjeans | 0 | 576,300,248 | 100% | ||
pollfullscreen | 0 | 576,033,409 | 100% | ||
corvushilt | 0 | 576,407,558 | 100% | ||
swayspleeny | 0 | 576,438,411 | 100% | ||
heapimport | 0 | 576,046,166 | 100% | ||
breadsplonk | 0 | 576,381,142 | 100% | ||
recognizedesert | 0 | 576,651,419 | 100% | ||
iauns | 0 | 20,999,497,683 | 25% | ||
beerlimey | 0 | 575,613,145 | 100% | ||
replysoldier | 0 | 575,901,639 | 100% | ||
hiremani | 0 | 2,735,684,718 | 100% | ||
nfc | 0 | 7,072,827,090 | 1% | ||
teamcr | 0 | 756,308,422 | 100% | ||
curbot | 0 | 4,046,088,816 | 10% | ||
inrgerm | 0 | 576,026,280 | 100% | ||
lettersacrobatic | 0 | 576,026,280 | 100% | ||
bangersmippery | 0 | 576,026,280 | 100% | ||
repressfight | 0 | 576,026,280 | 100% | ||
clustergummy | 0 | 576,026,280 | 100% | ||
wigeonpate | 0 | 576,026,280 | 100% | ||
pakistaniride | 0 | 576,026,280 | 100% | ||
sillyboast | 0 | 576,026,280 | 100% | ||
pseudosled | 0 | 576,026,280 | 100% | ||
turbulentsooty | 0 | 576,026,280 | 100% | ||
implorelot | 0 | 576,026,280 | 100% | ||
demonicbabinet | 0 | 576,026,280 | 100% | ||
skvoz | 0 | 576,026,280 | 100% | ||
anatharl1982 | 0 | 576,026,280 | 100% | ||
pavel.klyuev | 0 | 576,026,280 | 100% | ||
ivan.rogach | 0 | 576,026,280 | 100% | ||
daniltoloknov | 0 | 576,026,280 | 100% | ||
morenets-1994 | 0 | 576,026,280 | 100% | ||
msalla | 0 | 576,026,280 | 100% | ||
windworlmetmigu | 0 | 575,979,455 | 100% | ||
scenlingworl | 0 | 575,979,455 | 100% | ||
biotuamascyha | 0 | 575,979,455 | 100% |
Thanks for the contribution, @hiremani! The widget looks nice and useful for people who use Travel Mate, great work! I would recommend you lead your comments with space, because otherwise it looks like commented out code (in my opinion). Also, was wondering something about the pull request itself: in the section "Type of change" they ask you to put an X for everything that is valid. You selected all three, but it seems to me like the last two contradict each other, haha: * New feature (**non-breaking** change which adds functionality) * **Breaking change** (fix or feature that would cause existing functionality to not work as expected) Looking forward to seeing more of your contributions! --- Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/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](https://review.utopian.io/result/3/2331212). ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | amosbastian |
---|---|
permlink | re-hiremani-implemented-home-screen-widget-feature-to-travel-mate-android-app-1537778418325-20180930t000734527z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["hiremani"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2331212","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2018-09-30 00:07:33 |
last_update | 2018-09-30 00:07:33 |
depth | 1 |
children | 2 |
last_payout | 2018-10-07 00:07:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 10.560 HBD |
curator_payout_value | 3.463 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,196 |
author_reputation | 174,473,586,900,705 |
root_title | "Implemented Home Screen widget Feature to Travel Mate Android app" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 72,333,708 |
net_rshares | 7,092,095,061,186 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mys | 0 | 10,265,914,072 | 11.18% | ||
pixelfan | 0 | 924,392,033 | 0.54% | ||
espoem | 0 | 28,732,435 | 0.1% | ||
utopian-io | 0 | 7,026,319,492,754 | 4.87% | ||
zapncrap | 0 | 1,726,689,209 | 5% | ||
curx | 0 | 1,781,260,988 | 5% | ||
oups | 0 | 12,985,812,959 | 25% | ||
organicgardener | 0 | 3,977,070,433 | 25% | ||
hakancelik | 0 | 11,043,452,230 | 30% | ||
mightypanda | 0 | 21,723,706,665 | 30% | ||
fastandcurious | 0 | 1,040,220,578 | 30% | ||
mops2e | 0 | 278,316,830 | 10% |
Thank you for the review... Yes i will consider your suggestion in my next contribution, Even i had same confusion in selection so checked all 3.... :)
author | hiremani |
---|---|
permlink | re-amosbastian-re-hiremani-implemented-home-screen-widget-feature-to-travel-mate-android-app-1537778418325-20180930t174648768z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-09-30 17:46:48 |
last_update | 2018-09-30 17:46:48 |
depth | 2 |
children | 0 |
last_payout | 2018-10-07 17:46:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 151 |
author_reputation | 7,035,336,488,338 |
root_title | "Implemented Home Screen widget Feature to Travel Mate Android app" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 72,367,571 |
net_rshares | 0 |
Thank you for your review, @amosbastian! So far this week you've reviewed 6 contributions. Keep up the good work!
author | utopian-io |
---|---|
permlink | re-re-hiremani-implemented-home-screen-widget-feature-to-travel-mate-android-app-1537778418325-20180930t000734527z-20181002t145041z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.1"}" |
created | 2018-10-02 14:50:42 |
last_update | 2018-10-02 14:50:42 |
depth | 2 |
children | 0 |
last_payout | 2018-10-09 14:50:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 114 |
author_reputation | 152,955,367,999,756 |
root_title | "Implemented Home Screen widget Feature to Travel Mate Android app" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 72,485,394 |
net_rshares | 0 |
@ibar !price steem
author | hiremani |
---|---|
permlink | re-hiremani-implemented-home-screen-widget-feature-to-travel-mate-android-app-1537778418325-20181001t145709663z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["ibar"],"app":"steemit/0.1"} |
created | 2018-10-01 14:57:09 |
last_update | 2018-10-01 14:57:09 |
depth | 1 |
children | 1 |
last_payout | 2018-10-08 14:57:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 18 |
author_reputation | 7,035,336,488,338 |
root_title | "Implemented Home Screen widget Feature to Travel Mate Android app" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 72,418,766 |
net_rshares | 0 |
`$0.8391709757679103` Upvote ibar's comment to Support! Get list of coin [ids here](https://api.coingecko.com/api/v3/coins/list) and you will use `id` names with commands to make it work.
author | ibar |
---|---|
permlink | re-hiremani-implemented-home-screen-widget-feature-to-travel-mate-android-app-1537778418325-20181001t145709663z-ibar-crypto-seeker |
category | utopian-io |
json_metadata | "" |
created | 2018-10-01 14:57:18 |
last_update | 2018-10-01 14:57:18 |
depth | 2 |
children | 0 |
last_payout | 2018-10-08 14:57:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 190 |
author_reputation | 364,171,302 |
root_title | "Implemented Home Screen widget Feature to Travel Mate Android app" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 72,418,771 |
net_rshares | 0 |
@hiremani !price steem
author | hiremani |
---|---|
permlink | re-hiremani-implemented-home-screen-widget-feature-to-travel-mate-android-app-1537778418325-20181001t150408676z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["hiremani"],"app":"steemit/0.1"} |
created | 2018-10-01 15:04:09 |
last_update | 2018-10-01 15:04:09 |
depth | 1 |
children | 0 |
last_payout | 2018-10-08 15:04:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 22 |
author_reputation | 7,035,336,488,338 |
root_title | "Implemented Home Screen widget Feature to Travel Mate Android app" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 72,419,249 |
net_rshares | 0 |
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](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)). **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | re-implemented-home-screen-widget-feature-to-travel-mate-android-app-1537778418325-20180930t142631z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.1"}" |
created | 2018-09-30 14:26:33 |
last_update | 2018-09-30 14:26:33 |
depth | 1 |
children | 0 |
last_payout | 2018-10-07 14:26:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 590 |
author_reputation | 152,955,367,999,756 |
root_title | "Implemented Home Screen widget Feature to Travel Mate Android app" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 72,358,039 |
net_rshares | 0 |