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.
所以我有一个类在我的游戏中绘制并完成所有提升,它扩展了 SurfaceView。我想开始一个新的活动,显示玩家死后的得分。GameOver 活动有得分。我该怎么做呢?
Context context = getContext(); // from MySurfaceView/Activity Intent intent = new Intent(context, GameOver.class); context.startActivity(intent);