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. 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 You can do this by starting proxy activity: Note that you have
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); }
a which is
PendingIntent . This
pending call activity is
b . You want to get the results of
B
A ->
Pending - & gt;
Proxy Activity - & gt;
Startup Specialty Users - & gt;
B . Thus, you will get results in your
ProxyActivity activity from
B
startActivityForResult () In
ProxyActivity.onCreate () .
Comments
Post a Comment