# Android App Widgets Tutorial

**URL:** <https://forums.kodeco.com/t/android-app-widgets-tutorial/41946>\
**Category:** 🎓 Courses & Articles\
**Created:** [April 25, 2018, 7:28pm UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946 "2018-04-25T19:28:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mateisuica](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mateisuica/32/93923_2.png) [@mateisuica](https://forums.kodeco.com/u/mateisuica)\
**Post date:** [April 25, 2018, 7:28pm UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946/1 "2018-04-25T19:28:30Z")

</div>

Learn how to give your users fast access to the most important functions of your Android app, right from their home screen, using App Widgets.

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/33-android-app-widgets-tutorial](https://www.raywenderlich.com/33-android-app-widgets-tutorial)

---

<div class="post-metadata">

**Author:** ![nishant87thite](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@nishant87thite](https://forums.kodeco.com/u/nishant87thite)\
**Post date:** [April 26, 2018, 5:32am UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946/2 "2018-04-26T05:32:24Z")

</div>

Amazing Matei ! Very straight and simple yet extremely helpful tutorial. Thanks a ton!

---

<div class="post-metadata">

**Author:** ![mateisuica](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mateisuica/32/93923_2.png) [@mateisuica](https://forums.kodeco.com/u/mateisuica)\
**Post date:** [April 26, 2018, 7:25am UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946/3 "2018-04-26T07:25:11Z")

</div>

Thank you. I appreciate your feedback, it made my day!

---

<div class="post-metadata">

**Author:** ![naeleno](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@naeleno](https://forums.kodeco.com/u/naeleno)\
**Post date:** [October 28, 2018, 2:35pm UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946/4 "2018-10-28T14:35:51Z")

</div>

thank you for this amazing tutorial.  
what if i want to make the user ability to change agrams from 7 to 10 for the long coffe as instance how can i implement this

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 31, 2018, 2:53am UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946/5 "2018-10-31T02:53:22Z")

</div>

@mateisuica Can you please help with this when you get a chance? Thank you - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![mateisuica](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mateisuica/32/93923_2.png) [@mateisuica](https://forums.kodeco.com/u/mateisuica)\
**Post date:** [October 31, 2018, 7:53am UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946/6 "2018-10-31T07:53:45Z")

</div>

You would need to add this configuration to the `CoffeeLoggerWidgetConfigureActivity`:

- add a field like “long coffee amoung (g)”
- save this value in `CoffeeLoggerPersistance` (or directly in the `SharedPreferences`)
- use the saved value when adding a long Coffee in the `MainActivity` (or Service)

It’s just like we’ve done with the coffee limit in the tutorial but with a new user preference. Don’t forget to use the default value if the user doesn’t enter a preference

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 31, 2018, 9:18am UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946/7 "2018-10-31T09:18:48Z")

</div>

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 31, 2018, 9:19am UTC](https://forums.kodeco.com/t/android-app-widgets-tutorial/41946/8 "2018-10-31T09:19:55Z")

</div>


