From the course: Android App Development: Working with Widgets

Unlock the full course today

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

Finalize the provider functions

Finalize the provider functions - Android Tutorial

From the course: Android App Development: Working with Widgets

Start my 1-month free trial

Finalize the provider functions

- [Instructor] So let's continue working on our class on update. So the first thing I'm going to do is fix that little issue here so it's 500 and in the bound we'll automatically add. And then let's go ahead and create an integer that we'll call app widget ID. And then we'll pass the app widget IDs. And basically where we're at in the loop 'cause this a for loop. So it's going to go through all the app widget IDs. And then this one, the only thing that we need to change on this line, basically what we're doing here is creating the views and then passing to the views what number that we have in our string here. This function here is going to create a randomized number which we have assigned to number and then we're going to pass it to this particular value here. So now we have it ready to go in the app widget text, which is basically if you look back at the XML layout here. So if we look into the tests dot XML this guy has a app widget text ID that we're going to update with the number…

Contents