Android Interview Questions and Answers What is android?


Setting The Ordered Broadcast Intent Result Data



Download 0.77 Mb.
View original pdf
Page49/62
Date17.12.2020
Size0.77 Mb.
#54986
1   ...   45   46   47   48   49   50   51   52   ...   62
Android Interview Questions
8.2.1.3 Setting The Ordered Broadcast Intent Result Data
The methods public final void setResultCode(int code) public final void setResultData(String data) public final void setResultExtras (Bundle extras) will set the current values of the code data extras respectively. Alternatively all three can beset simultaneously using the public final void setResult(int code, String data, Bundle extras) method. Using any of these methods when the onReceive() method has not been invoked on an ordered broadcast Intent will result in a RuntimeException, except in one situation

Download 0.77 Mb.

Share with your friends:
1   ...   45   46   47   48   49   50   51   52   ...   62




The database is protected by copyright ©ininet.org 2024
send message

    Main page