Android 应用程序没有主要 Activity?
我希望我的应用程序除了启动时或它包含的小部件特别请求之外不显示任何活动。换句话说,我希望它在启动应用程序时找到并启动主要活动,但否则我根本不希望显示任何活动,除非意图明确要求它。我不希望应用程序进入前台意味着主要活动始终显示。除启动时外,如何抑制主要活动?谢谢
I would like for my application to not show any activity except on launch or specifically requested by the widget it contains. In other words I want it to find and launch the main activity on Launching the app, but otherwise I don't want any Activity at all to show unless an intent specifically requests it. I don't want the app coming to the foreground to mean that the main activity always displays. How can the main activity be supressed except on launch? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据反馈,答案是 Android 应用程序不需要主要活动。
Based on Feedback the Answer is that no main activity is required for an Android application.