应用程序的Andr​​oid后,通知上安装的设备 - 如何?应用程序、通知、设备、oid

2023-09-06 04:37:05 作者:兄弟视命°

我想补充一个状态栏通知我的Andr​​oid应用程序。该通知应在安装应用程序后,在状态栏显示。我有一个后台服务的应用程序,它是在那里我可以把通知code。我如何触发安装应用程序后,才通知?

任何有识之士来解决这个问题将是非常有益的。

感谢。

解决方案   

我如何触发安装应用程序后,才通知?

您无法做到这一点。没有你的code将在安装立即运行。

I would like to add a Status Bar Notification for my Android App. This notification should be shown on the Status Bar after the App is installed. I have a background service for the App which is where I could put the notification code. How do I trigger the Notification only after the App is installed?

Any insight to solve this problem will be very helpful.

Thanks.

解决方案

How do I trigger the Notification only after the App is installed?

You cannot do this. None of your code will run immediately upon install.