Why does android RemoteView class provide only setOnClickPendingIntent -



Why does android RemoteView class provide only setOnClickPendingIntent -

android's remoteview class provides method setonclickpendingintent instead of setonclicklistener. reason ? what's advantage of using pendingintent in case ?

iirc

a remote view not running in applications process, hence has utilize ipc tell app clicked. asynchronous , "pending" click, not instant click. name reflects subtle behaviour difference.

#setonclickpendingintent(int, android.app.pendingintent)

vs

#setonclicklistener(android.view.view.onclicklistener)

android android-pendingintent remoteview android-remoteview

Comments