[android-developers] Re: Is it possible to create an "activity" instance using constructor like a common Java class?

2009-01-19 Thread Mark Murphy
zcj0429 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

[android-developers] Re: Is it possible to create an "activity" instance using constructor like a common Java class?

2009-01-19 Thread zcj0429
Thanks, Torgny. I will have a try --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, sen

[android-developers] Re: Is it possible to create an "activity" instance using constructor like a common Java class?

2009-01-18 Thread Torgny
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/

[android-developers] Re: Is it possible to create an "activity" instance using constructor like a common Java class?

2009-01-18 Thread zcj0429
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 s

[android-developers] Re: Is it possible to create an "activity" instance using constructor like a common Java class?

2009-01-18 Thread Mark Murphy
zcj0429 wrote: > Hi: >I'm now doubting if it is possible to create an "activity" instance > using constructor like a common Java class. Then I can call the method > of the activity directly instead of using intent. I try a few times > but all failed. Can someone tell me is it possible? No, th