- XML code
package="talent.pad" <service android:name=".library.SocketService"> <intent-filter> <action android:name="talent.library.SocketService"></action> </intent-filter> </service> <activity android:name=".ActivityLogin" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
这种写法不行,启动失败,如果把SocketService也放到pad文件夹下就能启动
------解决方案--------------------
写全包名,看看