如何在Android上运行的后台应用程序? [英] how to run application in background in android?

查看:159
本文介绍了如何在Android上运行的后台应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想打一个Android应用程序将继续在后台运行,当用户访问任何文件夹,图片或任何其他文件它通知使用他访问这个文件(文件名)的祝酒词。

Hi, I want to make an Android application that continues to run in background and when user accesses any folder, picture, or any other file it notifies using toasts that he accesses this file(filename).

推荐答案

您可以做到这一点通过使用服务的Andr​​oid系统。这里是一个很好的教程做。

You can do that by using Services in Android. Here is a nice tutorial for doing that.

服务

你也可以从我的程序存储库下载的样本。

Also you can download a sample from my respository.

这篇关于如何在Android上运行的后台应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆