0

So I searched up how to store Intents into sharedpreferences and I saw this post:

Any workaround to save an Intent in settings?

However, the answer that was proposed in that post used deprecated methods such as

Intent.getIntent(String);

and

Intent.toURI();

I was wondering if there were any other ways to store Intents without using these deprecated methods.

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
champa
  • 13
  • 6

1 Answers1

0

You can use toUri(int flags) as an alternative for toURI() and getActivity().getIntent(String) as an alternative for getIntent(String).

udi
  • 3,672
  • 2
  • 12
  • 33