Andriod启动Service定时向服务发送请求(自己写),并震动

上传者: taozhulin | 上传时间: 2021-08-23 15:13:40 | 文件大小: 2.25MB | 文件类型: RAR
该工程是花了大半天时间查阅相关资料之后,在找到一个老外的demo基础上修改的,个人觉得对小白还是比较有用的. 包中并没有写访问服务端部分,这个有点累赘,和我们普通的http请求没有区别. 至于震动,铃声类的,看了下文档,都很简单,象征性的做了一下.

文件下载

资源详情

[{"title":"( 98 个子文件 2.25MB ) Andriod启动Service定时向服务发送请求(自己写),并震动","children":[{"title":"VisitServiceOnTimeDemo","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"anim","children":[{"title":"push_bottom_out.xml <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"push_bottom_in2.xml <span style='color:#111;'> 277B </span>","children":null,"spread":false},{"title":"push_bottom_in.xml <span style='color:#111;'> 278B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"fragment_main.xml <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"dialog_select_picker.xml <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-ldpi","children":[{"title":"ic_action_search.png <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 415B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"btn_style_alert_dialog_button.xml <span style='color:#111;'> 315B </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_special.xml <span style='color:#111;'> 317B </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_cancel.xml <span style='color:#111;'> 315B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 331B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"btn_style_alert_dialog_special_pressed.9.png <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_button_pressed.9.png <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_special_normal.9.png <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_cancel_normal.9.png <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_button_normal.9.png <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_background.9.png <span style='color:#111;'> 997B </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 100B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 388B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"cuc","children":[{"title":"vsot","children":[{"title":"MainActivity.java <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"SelectPicPopupWindow.java <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"ActionService.java <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"cuc","children":[{"title":"vsot","children":[{"title":"MainActivity$IncomingMessageHandler.class <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"R$bool.class <span style='color:#111;'> 715B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 771B </span>","children":null,"spread":false},{"title":"R$color.class <span style='color:#111;'> 546B </span>","children":null,"spread":false},{"title":"ActionService$IncomingMessageHandler.class <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"R$styleable.class <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 333B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"SelectPicPopupWindow.class <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false},{"title":"R$anim.class <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 4.97KB </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 9.45KB </span>","children":null,"spread":false},{"title":"SelectPicPopupWindow$1.class <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"R$integer.class <span style='color:#111;'> 397B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"ActionService.class <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 370B </span>","children":null,"spread":false},{"title":"MainActivity$3.class <span style='color:#111;'> 952B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 5.60KB </span>","children":null,"spread":false},{"title":"MainActivity$2.class <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"android","children":[{"title":"support","children":[{"title":"v7","children":[{"title":"appcompat","children":[{"title":"R$bool.class <span style='color:#111;'> 763B </span>","children":null,"spread":false},{"title":"R$color.class <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"R$styleable.class <span style='color:#111;'> 6.39KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 1015B </span>","children":null,"spread":false},{"title":"R$anim.class <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 5.02KB </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 9.36KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"R$integer.class <span style='color:#111;'> 445B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"dexedLibs","children":[{"title":"android-support-v7-appcompat-a39adf9d8ece7b5d91ef7268863e9fdd.jar <span style='color:#111;'> 146.62KB </span>","children":null,"spread":false},{"title":"android-support-v4-ef93e5f91db723b9353e8c89260289d3.jar <span style='color:#111;'> 236.50KB </span>","children":null,"spread":false},{"title":"appcompat_v7_2-2c5015f8b3838e1ec636fd00db712614.jar <span style='color:#111;'> 166B </span>","children":null,"spread":false}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-ldpi","children":[{"title":"ic_action_search.png <span style='color:#111;'> 311B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"btn_style_alert_dialog_special_pressed.9.png <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_button_pressed.9.png <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_special_normal.9.png <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_cancel_normal.9.png <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_button_normal.9.png <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"btn_style_alert_dialog_background.9.png <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 113B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"R.txt <span style='color:#111;'> 31.15KB </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 1.34MB </span>","children":null,"spread":false},{"title":"resources.ap_ <span style='color:#111;'> 388.22KB </span>","children":null,"spread":false},{"title":"VisitServiceOnTimeDemo.apk <span style='color:#111;'> 796.52KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 609B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 633.13KB </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 858B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"cuc","children":[{"title":"vsot","children":[{"title":"R.java <span style='color:#111;'> 177.69KB </span>","children":null,"spread":false},{"title":"BuildConfig.java <span style='color:#111;'> 154B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"android","children":[{"title":"support","children":[{"title":"v7","children":[{"title":"appcompat","children":[{"title":"R.java <span style='color:#111;'> 40.12KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • qq_26512147 :
    还可以吧吧
    2018-10-23
  • xxx003301 :
    不错,可以参考一下
    2017-10-27
  • emilymengfei :
    值得参考,很不错~
    2017-08-28
  • u012070498 :
    还不错。可以参考,对于当前项目很有用!
    2015-08-07
  • jkangb :
    简单的例子,还不错,参考一下。
    2014-09-28

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明