登录
首页 » Java » 漂亮的时间选择器

漂亮的时间选择器

于 2020-09-29 发布
0 293
下载积分: 1 下载次数: 0

代码说明:

一款封装好的类似iphone的时间选择器

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • android 判断双SD卡_CheckDoubleSDCard 例子源码
    android 判断双SD卡_CheckDoubleSDCard 例子源码
    2014-10-01下载
    积分:1
  • Android用Intent实现Camera 拍照功能
    Android用Intent实现Camera 拍照功能
    2014-01-19下载
    积分:1
  • android 短信拦截 实例完整源码下载
    可实现拦截短信,自动转发的功能。 部分代码:import android.app.AlarmManager;import android.app.PendingIntent;import android.app.Service;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.os.IBinder;import android.os.PowerManager;import android.os.PowerManager.WakeLock;public class MyService extends Service{ SMSReceiver rs=null; static MyService service; private static PendingIntent pi = null; public static AlarmManager am = null; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { // TODO Auto-generated method stub super.onCreate(); service=this; pm = (PowerManager) getSystemService(Context.POWER_SERVICE); registerAlarm(); acquireWakeLock(this); registerRecever(); } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); releaseWakeLock(); unregisterAlarm(); } private void registerRecever(){ rs=new SMSReceiver(); IntentFilter filter=new IntentFilter(); filter.addAction("android.provider.Telephony.SMS_RECEIVED"); filter.setPriority(1000); registerReceiver(rs, filter); } @Override public int onStartCommand(Intent intent, int flags, int startId) { // TODO Auto-generated method stub if(rs==null)registerRecever(); return START_STICKY; } public static WakeLock wakeLock = null; private static PowerManager pm = null; public static synchronized void acquireWakeLock(Context c) { if (null == wakeLock) { wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "smslock"); wakeLock.acquire(); } } public static synchronized void releaseWakeLock() { if (wakeLock == null) return; if (wakeLock.isHeld()) { wakeLock.release(); wakeLock = null; } } /** * 启动重复型定时器 */ public static void registerAlarm() { if(Config.getAlarm())return; Intent intent = new Intent(service, AlarmReceiver.class); pi = PendingIntent.getBroadcast(service, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); // 设置一个PendingIntent对象,发送广播 am = (AlarmManager) service.getSystemService(Context.ALARM_SERVICE); // 获取AlarmManager对象, Config.setAlarm(true); am.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), 30*60*1000, pi); } /** * 取消定时器 */ public static void unregisterAlarm() { am.cancel(pi); am = null; Config.setAlarm(false); }}
    2014-05-21下载
    积分:1
  • android仿淘宝,自动获取短信验证码 例子
    android仿淘宝,自动获取短信验证码 例子
    2014-09-13下载
    积分:1
  • android 百度定位实例
    简单定位
    2015-06-23下载
    积分:1
  • android 个人通讯录示例源码(入门级)
    实验是做一个个人通讯录,实现有一个登陆界面,可修改登陆密码,实现手机通讯录的基本功能,包括添加手机联系人,查询手机联系人,删除手机联系人,导入联系人,以及拨打电话、发送短信、发送邮件等功能。以java语言为主体,xml布局,结合Android移动开发平台等实现对安卓手机通讯录的基本操作,做到能够完好的运行。
    2019-04-18下载
    积分:1
  • java 微信公众号地理位置获取
    java 微信公众号地理位置获取
    2018-08-17下载
    积分:1
  • android 手机短信验证码例子源码下载
    android 手机短信验证码例子源码下载
    2015-04-25下载
    积分:1
  • android点赞效果
    android点赞效果,点赞 1 效果,自下而上 弹出 1提示,不错
    2014-02-27下载
    积分:1
  • 远程视频监控
    【核心代码】 public interface CameraSource {  static final String LOG_TAG = "camera";  /**  * Open the camera source for subsequent use via calls to capture().  *   * @return true if the camera source was successfully opened.  */  boolean open();  /**  * Close the camera source. Calling close on a closed CameraSource is  * permitted but has no effect. The camera source may be reopened after  * being closed.  */  void close();  /**  * The width of the captured image.  *   * @return the width of the capture in pixels  */  int getWidth();  /**  * The height of the captured image.  *   * @return the height of the capture in pixels  */  int getHeight();  /**  * Attempts to render the current camera view onto the supplied canvas.  * The capture will be rendered into the rectangle (0,0,width,height).  * Outstanding transformations on the canvas may alter this.  *   * @param canvas the canvas to which the captured pixel data will be written  * @return true iff a frame was successfully written to the canvas  */  boolean capture(Canvas canvas);  boolean saveImage(String savePath, String fileName); }
    2013-12-04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载