程式範例-StartService. //啟用Service. Intent i = new Intent(this, MyService.class);. startService(i);. . AndroidManifest:. .
docs.google.com