开发者

Multiple activities within a class?

开发者 https://www.devze.com 2023-03-22 06:57 出处:网络
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:

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 Gene开发者_如何学Goral{
     public class Activity1 extends Activity{
          //Start Activity
     }
}

Is there a way to call such an activity?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消