android - onActivityResult for PendingIntent -


How do I get the result of the activity started with the Notification Manager?

In other words, I need to get the result code from a pending identity.

  Public Zero Test (Reference Reference) {Notification Notification = New Notification (blank, "Text", System Quantity Time Millise ()); Intent = intent (intent.ACTION_VIEW); Intent.setData (Uri.parse ("http://www.example.com")); Pending pending vertical positioning = pending.activity (reference, 0, intent, 0); Notification.Setlat EventInfo (context, "text", "text", pending pending); Information Manager Notice (0, Notification); }   

I have to be notified when the browser's activity ends.

OBS: This code is outside of an activity, which is why it receives the reference in the form of parameters

Assume that your activity is a which is PendingIntent . This pending call activity is b . You want to get the results of B

You can do this by starting proxy activity: A -> Pending - & gt; Proxy Activity - & gt; Startup Specialty Users - & gt; B . Thus, you will get results in your ProxyActivity activity from B

Note that you have startActivityForResult () In ProxyActivity.onCreate () .

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -