-3

I am developing an android application.In my group some members done 2-3 files and i have to make my java file as the initial activity page.My pages are Welcomepage.xml and StartActivity.java.Other members have java files but those files should execute after the execution of my java file.How can i do this ?

4

1 に答える 1

1

あなたの質問は非常に漠然としていて、Javaファイルの意味がよくわかりませんが、Activityから派生したクラスを意味していると思います.

この場合、探しているのはインテントだと思います。Android のドキュメントをご覧ください。

http://developer.android.com/guide/components/intents-filters.html

それに加えて、AndroidManifest.xml でMAIN Intent-Filterを設定することを忘れないでください。これにより、アプリの起動時に起動されるアクティビティが確実になります。

<activity android:name=".YourActivity"
          android:label="@string/app_name">
          <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
          </intent-filter>
</activity>

将来のために、質問をより正確に書いてください。

于 2013-10-16T21:11:10.220 に答える