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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -