搜索 内容详情
FusionApp自定义事件 > 程序启动源码
程序员 级别:v1  + 关注    收藏 支持(0) | 反对(0)原内容


第一部分

//自定义事件 > 程序启动
function clr()  
  import "java.io.File" 
  items={"浏览记录","缓存文件"}
  多选对话框=AlertDialog.Builder(this)
  .setTitle("清除记录")  
  .setPositiveButton("确定",function()
    if clearhistory==1 and clearall==1 then
      File(lstads).delete()
      File(lstwebads).delete()
      lst={}
      lstweb={}
      os.execute("pm clear "..activity.getPackageName())
    elseif clearhistory==0 and clearall==1 then
      os.execute("pm clear "..activity.getPackageName())
    elseif clearhistory==1 and clearall==0 then
      File(lstads).delete()
      File(lstwebads).delete()
      lst={}
      lstweb={}
以下内容只有回复后才可以浏览,请先登录


回到顶部顶端 回到底部底部