누군가가 버튼을 누르면 내 애플리케이션의 첫 번째 화면에서 새로운 활동이 시작됩니다.Android 액티비티가 시작되지 않음
StoryBoard를 시작하려고 할 때 어떤 이유로 MainScreen이 단순히 다시로드되는 것처럼 보입니다.
내 응용 프로그램의 첫 번째 활동을 MainScreen이라고합니다. StoryBoard를 시작하려고하는데 제대로하고 있습니까?
Intent myIntent = new Intent(MainScreen.this, StoryBoard.class);
myIntent.putExtra("sportName", sportName);
myIntent.putExtra("stories", storiesAsArray);
myIntent.setClass(this, StoryBoard.class);
startActivity(myIntent);
당신이 AndroidManifest.xml을의 스토리 보드 파일을 선언 했 시도? –
예, 나는 그것이 선언이 <활동 안드로이드 : 이름 = 안드로이드 "스토리 보드."라벨 = "@ 문자열/APP_NAME" 안드로이드 : 테마 = "@ 안드로이드 : 스타일/Theme.NoTitleBar"> – user1154644
을 귀하' setClass()'라인은 이미 생성자에 그 정보를 제공했기 때문에 불필요합니다. – CommonsWare