在用户安装应用时检索 Android_Id

Retrieving Android_Id on the moment user installs the app

如何在用户安装 app.In 时在 android 应用程序中检索一些数据(对于 eg.Android ID)换句话说,我想保存 Adnroid_ID即使用户甚至没有打开应用程序。提前致谢。 P.S。我已经有了检索代码 Android_ID(不需要那个)

查看回答类似问题的答案How to start a Service when .apk is Installed for the first time

简而言之,在应用程序启动之前无法执行任何操作。