Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi people.
i'm developing an android application & making a "Service" to download Some Data.
i want to know can i make a button Dynamically in my Service ?
another Question is : can i find elements (Button , layouts ...) from Service ?
i read about services and it says "Service" is a programm which runs in Background in a different thread and it doesn't have any Interactions whit user . i think it means we cant Create or find any element in "Service". please let me know your opinion . Thank you
Posted
Updated 4-Jan-15 4:32am
v2

1 solution

You can't create. As the name "service" suggests, it would serve you something. You provide some input and ask for some output. That's it. It can't control the UI.
 
Share this answer
 
Comments
seyed mahmud shahrokni 4-Jan-15 13:05pm    
thank you
Most welcome. 😊

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900