IT. Expert System.

Android Reference

WallpaperService


android.service.wallpaper

Class WallpaperService

  • All Implemented Interfaces:
    ComponentCallbacks, ComponentCallbacks2


    public abstract class WallpaperService
    extends Service
    A wallpaper service is responsible for showing a live wallpaper behind applications that would like to sit on top of it. This service object itself does very little -- its only purpose is to generate instances of WallpaperService.Engine as needed. Implementing a wallpaper thus involves subclassing from this, subclassing an Engine implementation, and implementing onCreateEngine() to return a new instance of your engine.
    • Field Detail

      • SERVICE_INTERFACE

        public static final String SERVICE_INTERFACE
        The Intent that must be declared as handled by the service. To be supported, the service must also require the android.Manifest.permission#BIND_WALLPAPER permission so that other applications can not abuse it.
        See Also:
        Constant Field Values
      • SERVICE_META_DATA

        public static final String SERVICE_META_DATA
        Name under which a WallpaperService component publishes information about itself. This meta-data must reference an XML resource containing a <wallpaper> tag.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WallpaperService

        public WallpaperService()
    • Method Detail

      • onCreate

        public void onCreate()
        Description copied from class: Service
        Called by the system when the service is first created. Do not call this method directly.
        Overrides:
        onCreate in class Service
      • onDestroy

        public void onDestroy()
        Description copied from class: Service
        Called by the system to notify a Service that it is no longer used and is being removed. The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object and it is effectively dead. Do not call this method directly.
        Overrides:
        onDestroy in class Service
      • onBind

        public final IBinder onBind(Intent intent)
        Implement to return the implementation of the internal accessibility service interface. Subclasses should not override.
        Specified by:
        onBind in class Service
        Parameters:
        intent - The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.
        Returns:
        Return an IBinder through which clients can call on to the service.
      • setCallbackLooper

        public void setCallbackLooper(Looper looper)
        This allows subclasses to change the thread that most callbacks occur on. Currently hidden because it is mostly needed for the image wallpaper (which runs in the system process and doesn't want to get stuck running on that seriously in use main thread). Not exposed right now because the semantics of this are not totally well defined and some callbacks can still happen on the main thread).
      • onCreateEngine

        public abstract WallpaperService.Engine onCreateEngine()
        Must be implemented to return a new instance of the wallpaper's engine. Note that multiple instances may be active at the same time, such as when the wallpaper is currently set as the active wallpaper and the user is in the wallpaper picker viewing a preview of it as well.
      • dump

        protected void dump(FileDescriptor fd,
                PrintWriter out,
                String[] args)
        Description copied from class: Service
        Print the Service's state into the given stream. This gets invoked if you run "adb shell dumpsys activity service <yourservicename>". This is distinct from "dumpsys <servicename>", which only works for named system services and which invokes the IBinder.dump(java.io.FileDescriptor, java.lang.String[]) method on the IBinder interface registered with ServiceManager.
        Overrides:
        dump in class Service
        Parameters:
        fd - The raw file descriptor that the dump is being sent to.
        out - The PrintWriter to which you should dump your state. This will be closed for you after you return.
        args - additional arguments to the dump request.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

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

License.
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: 1455 / . Delta: 0.00849 с