Life cycle of activities and services

I want to create an application that will one day be launched and not represent the main (instead, user interface) service start. The question is, is the action a remote finish () function, stopping the service?

 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //where lauching the service
        this.finish();
    }
}
+4
source share
4 answers

.finish()only closes activity. the service will continue to work.

+3
source

Start the service first and the finish () will complete the actual activity

+3
source

onStart , , .

0

, .finish()

0
source

All Articles