Back to project page FloatCamera.
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.
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); } }