java - Application not running, android (eclipse) -
i wanted run applications directly through device. did necessary configurations , when run application eclipse lists devices choose from. device there , has serial number of 'samsung-gt_s5570..' target of 2.3.4. when click ok says installed , done, how come application doesn't start on phone ? there step run application or start ? out of curiosity mounting usb having not starting ?
update manifest file
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.myapp" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="17" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > </application> </manifest>
you need have activites
declared in manifest
or won't run. also, need 1 entry point app or won't know start. here example of mine. note launcher
, main
intent filters
<activity android:name="com.some.example.loginscreen" android:configchanges="keyboardhidden|orientation|locale" android:label="" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity>
note section in intent filters docs below
most applications have way start fresh, without reference particular data. activities can initiate applications have filters "android.intent.action.main" specified action. if represented in application launcher, specify "android.intent.category.launcher" category:
Comments
Post a Comment