android - Pass and get back unique event ID per action -


i'm developing smartwatch extension android email app (aqua mail).

something possible older liveware apis, , can't find way of doing new smartware apis is:

... being able pass unique per-event opaque id app smartware, , obtain when processing user actions. there sourceid, in case corresponds mail account, not individual message.

the motivation implement message-specific actions, e.g. being able mark individual message "read" right smartwatch, or open on phone smartwatch.

i guessing want implement notification extension. pass own per-event id, use friend_key column in event table. defined in notification.eventcolumns.friend_key of smartextensionapi library.

you can also:

  • obtain unique id set smart connect specific event
  • define own set of actions performed on events (up 3 actions per source)

when user reads event on smartwatch, event marked read automatically, in internal smartconnect database. if user chooses perform action on event, scrolling down , pressing action, extension notified action through view_event_intent intent. intent includes information event id, source id, , action chosen user. can obtain friend_key easily, , perform action have defined.

check out samplenotification extension contained in sony add-on sdk, , there additional documentation smart extension apis here.

hope helps, cheers!


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -