Android Open Source - FloatCamera Statebar Service






From Project

Back to project page FloatCamera.

License

The source code is released under:

Apache License

If you think the Android project FloatCamera listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.kenai.camera;
// ww  w.  j  a v  a  2s  .  c o m
import com.kenai.function.mzstore.XMZyanzheng;

import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class StatebarService extends Service{

  @Override
  public IBinder onBind(Intent intent) {
    // TODO ??????????
    return null;
  }
  
  @Override
  public void onCreate() {
    super.onCreate();
    Notification noti=new Notification(R.drawable.ic_launcher, "", 0);
    PendingIntent pi=PendingIntent.getService(this, 0, new Intent(this,CameraTake_pictureService.class), 0);
    noti.setLatestEventInfo(this, "Catch", "click to snap a picture", pi);
    if(XMZyanzheng.get_isLawful(this));
    startForeground(R.drawable.ic_launcher, noti);
  }
  
  @Override
  public void onDestroy() {
    super.onDestroy();
    stopForeground(true);
    
  }

}




Java Source Code List

cc.kenai.mainlib.face.XFace.java
com.kenai.camera.CameraBroadcast.java
com.kenai.camera.CameraEnv.java
com.kenai.camera.CameraFaceService.java
com.kenai.camera.CameraPreview.java
com.kenai.camera.CameraService.java
com.kenai.camera.CameraTake_pictureService.java
com.kenai.camera.CameraTime.java
com.kenai.camera.KenaiActivity.java
com.kenai.camera.KenaiBroadcast.java
com.kenai.camera.KenaiService.java
com.kenai.camera.PushMessageReceiver.java
com.kenai.camera.StatebarService.java
com.kenai.function.camera.XCamera.java