getLiveCard
creates a new live card, so you should only call it once when your service is started and cache the LiveCard
instance that you receive.
You can also cache the RemoteViews
instance at the same time. To update the card after it's published, you'll just need to manually call setViews
on the LiveCard
again after you call any of the RemoteViews
setters.