一个班级内有多项活动?
所以我想做的就是这个。我想要一个包含其他启动活动的类的类,但我不确定这是否可能,甚至是一个好主意。一个例子:
public class General{
public class Activity1 extends Activity{
//Start Activity
}
}
有没有办法调用这样的活动?
So what I want to do is this. I want to have a class that contains other classes which start activities, but I'm not sure if its possible, or even a good idea. An Example:
public class General{
public class Activity1 extends Activity{
//Start Activity
}
}
Is there a way to call such an activity?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我选择的解决方案是使用包。在这里阅读后 http://developer.android.com/guide /topics/manifest/manifest-intro.html 和此处 Android:将多个 Java 包包含到 Manifest ,这似乎是一个更好的方法做我上面说的。
So the solution I chose to go with was to use packages. After reading about it here http://developer.android.com/guide/topics/manifest/manifest-intro.html and here Android: Including multiple Java Packages to Manifest , it seems like a better method to do what I stated above.