为您找到相关结果23,388个
java导出到excel常用的几种方式总结_java_脚本之家
package com.volvo.admin.charging.provider.service.impl; import org.apache.poi.ss.usermodel.BorderStyle; import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.FillPatternType; import org.apache.poi.ss.usermodel.Font; import org.apache.poi.ss.usermodel.HorizontalAlignment; ...
www.jb51.net/program/284679f...htm 2024-9-14
Android开发中的简单设置技巧集锦_Android_脚本之家
frameworks\base\core\res\res\drawable-hdpi:ic_lock_idle_charging.png 14去掉锁屏时显示充电百分比在: frameworks\base\core\res\res\values-zh-rCN中strings.xml 的lockscreen_plugged_in 括号中的内容及括号 !! 15去掉动态桌面背景选项: packages\wallpapers\Basic 中AndroidManifest.xml的<service>这些,如星系注...
www.jb51.net/article/875...htm 2024-9-13
Android实现动态曲线绘制_Android_脚本之家
case BatteryManager.BATTERY_STATUS_CHARGING: BatteryStatus = "充电状态"; break; case BatteryManager.BATTERY_STATUS_DISCHARGING: BatteryStatus = "放电状态"; break; case BatteryManager.BATTERY_STATUS_NOT_CHARGING: BatteryStatus = "未充电"; break; case BatteryManager.BATTERY_STATUS_FULL: BatteryStatus = ...
www.jb51.net/article/2533...htm 2024-9-14
开发效率翻倍的Web API使用技巧_JavaScript_脚本之家
document.querySelector('#battery-status').textContent = battery.charging ? '正在充电' : '未充电'; } 这个例子展示了如何使用Web Battery API来获取电池的状态信息,并在页面上显示当前电量和电池状态。 在这个例子中,我们使用了navigator.getBattery()方法来获取电池信息,并使用battery.addEventListener()方法...
www.jb51.net/article/2842...htm 2024-9-15
WorkManager解决应用退出后继续运行后台任务_Android_脚本之家
.setRequiresCharging(true) .build(); 5. 提交WorkRequest 1 2 3 WorkManager .getInstance(myContext) .enqueue(uploadWorkRequest); 使用enqueue将WorkManager任务提交给系统。 多进程WorkManager 从WorkManager 2.6版本开始,支持多进程的使用场景。可以在一个进程中设置服务,让服务在另一个进程中被调度。
www.jb51.net/program/293564k...htm 2024-9-15
Android应用保活实践详解_Android_脚本之家
builder.setRequiresCharging(true) // 当插入充电器,执行该任务 mJobScheduler?.schedule(builder.build()) } return Service.START_STICKY } private fun startService(context: Context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (KeepLive.foregroundNotification != null) { val inten...
www.jb51.net/article/1603...htm 2024-9-13
Android开发sensor旋转屏问题解决示例_应用技巧_脚本之家
mIsCharging=false mIsPowerSaveOn=false mIsLowDataExpected=false mIsCarModeOn=false mUnsolicitedResponseFilter=127 mIsWifiConnected=true mIsAlwaysSignalStrengthReportingEnabled=false Local logs: 2021-08-22T13:15:02.576 - Screen on for display=Display id 0: DisplayInfo{"内置屏幕", displayId 0, FLAG_SE...
www.jb51.net/article/2774...htm 2024-9-13
myBatis实现三级嵌套复杂对象的赋值问题_java_脚本之家
select a.id as id, a.station_id as station_id, a.operator_id as operator_id, a.equipment_owner_id as equipment_owner_id, a.station_name as station_name, a.country_code as country_code, a.area_code as area_code, a.address as address, a.station_tel as station_tel, a.service_...
www.jb51.net/article/1995...htm 2024-9-15