Android Question Start service on share intent without showing UI

AiChan

Member
Licensed User
Longtime User
I want to handle a Share intent but no show an activity but just run a service that kicks off network code.

Sure I can so start the service when the activity opens but it showns the UI. I tried using the 'NoDisplay' theme on the activty but that results in a 'no responding' error.

I seem to read somewhere that I cant put intent filters direclty on a service (that would be nice) ?
 

AiChan

Member
Licensed User
Longtime User
Thanks for that tip, this work perfect :)

SetActivityAttribute(ShareActivity, android:theme, @android:style/Theme.Translucent.NoTitleBar)
 
Upvote 0
Top