The main question is whether you will create an API that is synchronous or asynchronous.
Synchronous API
- API /AsyncTask ( ) , .
- , ,
- , API, .
API
API, :)
Android ( ), , API ( ..).
PendingIntent (, ). , , .
- . " ". , , parcelable, . - , "" -. , .
, Java- , Android.