是否有活动ID在Android应用程序?应用程序、ID、Android

由网友(喂丶快到我心里来)分享简介:我正在写一个Android应用程序,我有一个问题。我做几个报警我的应用程序,其中的每一个连接的其他活动。我想知道,如果有可能,以确定这些活动,因为用户可以删除报警(从数据库)和活动将仍然在运行。I'm writing an Android app and I've got a problem. I make few...

我正在写一个Android应用程序,我有一个问题。我做几个报警我的应用程序,其中的每一个连接的其他活动。我想知道,如果有可能,以确定这些活动,因为用户可以删除报警(从数据库)和活动将仍然在运行。

I'm writing an Android app and I've got a problem. I make few alarms in my app, each of them is connected another activity. I'd like to know if is there possibility to identify each of these activity, because user can delete alarm(from database) and activity will be still running.

现在的应用程序正在运行的罚款一个报警,但如果我例如设置三个闹钟则只有最后一个是工作的罚款。

Now the app is running fine for one alarm, but if I set for example three alarms then only the last one is working fine.

非常感谢您的帮助!

推荐答案

您可以使用活动散列code()...它是独一无二的。

You could use the Activities hashCode()... its unique.

阅读全文

相关推荐

最新文章