Thank you for your answer, it makes sense. This is very helpful, and I will 
reorganized my app.

уторак, 18. октобар 2016. 17.20.45 UTC+2, Steve Gabrilowitz је написао/ла:
>
> it's not a Studio thing, it's an Android thing.  You can not start a 
> service until the user explicitly starts an activity first, this is to 
> prevent a malicious app from covertly starting a service that does nasty 
> things without the user ever knowing about it!  You likely want to give the 
> user some control over the service anyhow, at least the ability to turn it 
> on and off.  This is nicely accomplished by a configuration activity which 
> will satisfy the activity requirement.
>
> On Oct 18, 2016 10:39 AM, "Petar Petrovic" <[email protected] 
> <javascript:>> wrote:
>
>> Hello everyone. I'm making service app in Android Studio. I tried with 
>> onBOOT receiver, and it is working when I add Activity, but I don't need 
>> Activity. Can someone help me? Is it possible from android studio to 
>> achieve that?
>> Problems are android configuration for applications, where default 
>> Activity is started, and Manifest file where you can specify Activity and 
>> launching.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/4631e020-e187-4357-b504-ba9be9122b9a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-developers/4631e020-e187-4357-b504-ba9be9122b9a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/58eac89e-11e8-40a4-b228-2e4831831725%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to