FileDocCategorySizeDatePackage
AndroidSystemService.javaAPI DocAndroid 1.5 API2264Wed May 06 22:42:46 BST 2009com.android.im.service

AndroidSystemService

public class AndroidSystemService extends com.android.im.engine.SystemService

Fields Summary
private static AndroidSystemService
sInstance
private android.content.Context
mContext
private AndroidHeartBeatService
mHeartbeatServcie
private AndroidSmsService
mSmsService
Constructors Summary
private AndroidSystemService()

    
Methods Summary
public com.android.im.engine.HeartbeatServicegetHeartbeatService()

        if(mContext == null) {
            throw new IllegalStateException("Hasn't been initialized yet");
        }
        if (mHeartbeatServcie == null) {
            mHeartbeatServcie = new AndroidHeartBeatService(mContext);
        }
        return mHeartbeatServcie;
    
public static com.android.im.service.AndroidSystemServicegetInstance()

        if (sInstance == null) {
            sInstance = new AndroidSystemService();
        }
        return sInstance;
    
public com.android.im.engine.SmsServicegetSmsService()

        if(mContext == null) {
            throw new IllegalStateException("Hasn't been initialized yet");
        }
        if (mSmsService == null) {
            mSmsService = new AndroidSmsService(mContext);
        }
        return mSmsService;
    
public voidinitialize(android.content.Context context)

        mContext = context;
    
public voidshutdown()

        if (mHeartbeatServcie != null) {
            mHeartbeatServcie.stopAll();
        }
        if (mSmsService != null) {
            mSmsService.stop();
        }