I'm working on an android application providing a service.
I'd like to have the application and the service running on one process.
My manifest:
<application
android:process="@string/my_process"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
...
</activity>
<service
android:name=".core.MessengerService"
android:enabled="true"
android:process="@string/my_process" >
<intent-filter>
...
</intent-filter>
</service>
...
</application>
But when I debug step by step my application on an Android 6.0 device, I get the freezing message "Application is waiting for the debugger to attach @my_progress
...". (This problem does not occur on my Android 4.4 device)
And when I seperate the application and the service into 2 different proccesses, the debug works properly on my Android 6.0 device.
I'd like to have the application and the service running on one process.
Then get rid of all android:process
attributes in your manifest. The default is that all components run in a single process.
And when I seperate the application and the service into 2 different proccesses
That does not happen. An Application
singleton is created in every process.