I would say create a service. You could interface with your service via IDL.
Here's the binding activity: http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/app/RemoteServiceBinding.html And here's the remote service: http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/app/RemoteService.html There should be enough in there to get you started. On Jan 18, 11:22 pm, zcj0429 <[email protected]> wrote: > Thanks, Mark. > Now the situation for me is like this: I want to create a WifiControl > class to implement scan aps/connect/disconnec,etc functions. Then I > can call these methods in other activities directly instead of Intend > because I don't want to change the view when I call the methods. So > how to solve this problem? To create a service? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

