i am facing problem with running on emulator and android device, i have created the emulator and connected with phone as well .
in Manifest file mainActivity if i give
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
its connecting to the phone and app runs success, but in emulator not running,
if i change category like below code its working with launching with emulator and not working launching on phone .
<category android:name="android.intent.category.DEFAULT" />
Could any one tell me what is the best intent-filter i have to give to run both emulator and phone.
Aucun commentaire:
Enregistrer un commentaire