unresolved_external
unresolved_external

Reputation: 2018

How to override widget deleting function?

How can I add my own functionality to the method which is responsible for deleting widget ( when I drag and drop it on the recycle icon ). I need to be able to add some additional implementation. How can I do it?

Upvotes: 0

Views: 181

Answers (1)

Its not blank
Its not blank

Reputation: 3095

I have not tried this but youo can use this ...

@Override
public void onDeleted(Context context, int[] appWidgetIds) {
        //You code here
    super.onDeleted(context, appWidgetIds);
}

Upvotes: 1

Related Questions