IT. Expert System.

Android Reference


Class RemoteReceiver

    • Constructor Detail

      • RemoteReceiver

        public RemoteReceiver()
    • Method Detail

      • onReceive

        public void onReceive(Context context,
                     Intent intent)
        Description copied from class: BroadcastReceiver
        This method is called when the BroadcastReceiver is receiving an Intent broadcast. During this time you can use the other methods on BroadcastReceiver to view/modify the current result values. This method is always called within the main thread of its process, unless you explicitly asked for it to be scheduled on a different thread using Context.registerReceiver(BroadcastReceiver, IntentFilter, String, android.os.Handler). When it runs on the main thread you should never perform long-running operations in it (there is a timeout of 10 seconds that the system allows before considering the receiver to be blocked and a candidate to be killed). You cannot launch a popup dialog in your implementation of onReceive().

        If this BroadcastReceiver was launched through a <receiver> tag, then the object is no longer alive after returning from this function. This means you should not perform any operations that return a result to you asynchronously -- in particular, for interacting with services, you should use Context.startService(Intent) instead of Context.bindService(Intent, ServiceConnection, int). If you wish to interact with a service that is already running, you can use BroadcastReceiver.peekService(android.content.Context, android.content.Intent).

        The Intent filters used in Context.registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter) and in application manifests are not guaranteed to be exclusive. They are hints to the operating system about how to find suitable recipients. It is possible for senders to force delivery to specific recipients, bypassing filter resolution. For this reason, onReceive() implementations should respond only to known actions, ignoring any unexpected Intents that they may receive.

        Specified by:
        onReceive in class BroadcastReceiver
        context - The Context in which the receiver is running.
        intent - The Intent being received.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 4064 / 159534714. Delta: 0.04559 с