Does the service recycle the parent application in Google Glass?

I have a service that works in the same process.

<service android:name=".service.GlassService" android:exported="true" android:label="@string/app_name" /> 

I start the service using startService ().

  startService(new Intent(this, GlassService.class)); 

When I scroll and exit the application, the service lives on . When I kill it from DDMS, the service reboots , calling the service with START_STICKY and START_NOT_STICKY does not matter.

The only way to stop the service is when I explicitly call stopService () or stopItself () or by omitting startService ().

This does not apply to other Android devices. Is this behavior typical of Google Glass?

+7
android google-glass google-gdk
source share
1 answer

Usually people use services. These are lengthy processes that are commonly used to process background processing or to synchronize data with a content provider. So it is an easy extension that they can survive their parental process.

A source:

+1
source share

All Articles