Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在不使用按钮的情况下启动我的应用程序代码?
当有人单击应用程序图标时,我希望我的应用程序“就这样做”。
如果单击您的应用程序图标,您的活动将自动启动。
在 Activity 的 onCreate 中,您可以发送 Intent 来启动另一个 Activity。
如果您指的是应用程序中的图标,请参阅 xjaphx 答案。
您可以OnClickListener为您的图标设置一个,这将是一个ImageView.
OnClickListener
ImageView
I have a Flash <object> embed that is inside (first child of) a container <div>; the container div has the following properties (essential attributes summarized):
<object>
<div>