开发者

How to save Intents

I have launcher buttons in my app that can be set by the user to either launch an application or a shortcut. The problem Im having is how to save those intents and then reload them when the application is closed and restarted. I was saving two strings for the package name and activity name and recreating the intent which works for simple applicati开发者_如何学Goon launches but doesnt work for things that have extra data like DirectDials or Saved Navigation locations.


Have you tried using the Intent class's toUri() method? All the data for the Intent should be in the URI.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜