From the course: Android App Development: Working with Widgets

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Introduction to the widget provider

Introduction to the widget provider - Android Tutorial

From the course: Android App Development: Working with Widgets

Start my 1-month free trial

Introduction to the widget provider

- [Narrator] The widget provider is where the logic and settings of the widgets are done. In other words, in order to make your widget function you need to work with the provider classes. So if we take a look back at the code that was generated for us, we have two files that part of the widget provider. You have the test.java here. And you can find it in the Java folder, inside of the com.example.helloworld. And the second one is the test on the core info.xml. Which you can find in the resources folder, under XML folder here. So if we take a look at the test.java file, this is where you have all the methods to update your widget. Now we're going to explore these methods in the following videos. And in this file you have all the settings that we've created when we created the widget. So basically when you created the widget, you add all these settings that you add to set. So for example, the minimum width and the minimum height were set by the number of cells. So if you select 4x1…

Contents