[android-developers] How to create listview in a dialog

2008-12-28 Thread zcj0429
Hi: I'm now looking for a method to create listview in a dialog. The method I'm now using is create an adaptor called connAdapter, the code is: --- public class ConnAdapter extends BaseAdapter{ private f

[android-developers] Re: How to create listview in a dialog

2008-12-29 Thread zcj0429
Thank you for your reply, for android. But after I change the code, erroes occur. And the information tells these two codes go wrong: ListView dlv = (ListView)findViewById(R.id.conn_list); dlv.setAdapter(bConnAdapter); And now I'm thinking whether my list adaptor is right. Because when I creatin

[android-developers] add listener to listview in dialog

2009-01-05 Thread zcj0429
Hi: I'm now create a listview in a dialog. But I don't know how to detected if an item is clicked. Then background activity is "PreferenceActivity", and the "onListItemClick" method seems not work. Here is the relevant code: --

[android-developers] what the ScanResult.capabilities actually is?

2009-01-14 Thread zcj0429
Hi: I'm now working on an applaction which needs wifi function. However, I don't have a G1, I can only do some work on the emulator. So can some one be so kind to tell me what the ScanResult.capabilities actually is ? Because in the documents it only says that it's a string describing authentic

[android-developers] Re: what the ScanResult.capabilities actually is?

2009-01-15 Thread zcj0429
no one repley? --~--~-~--~~~---~--~~ 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, send email to android-

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

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

[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-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] how android connects to a specific AP?

2009-01-19 Thread zcj0429
Hi: I read through the doc and fonud there is no method to connect to a specific AP in the WifiManager class. Do I miss something? Or android connect to AP automatically? Any information will be appreciated, thanks --~--~-~--~~~---~--~~ You received this messa

[android-developers] Re: how android connects to a specific AP?

2009-01-20 Thread zcj0429
no reply? Anyone knows how to connect to a specific access point? --~--~-~--~~~---~--~~ 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

[android-developers] About the IM to show the message received

2008-10-14 Thread zcj0429
Hi, experts: I'm now trying to develop an IM on Android. Now the problem is like this: I manage the connection and chat in a service. And I edit the message in another activity. So when I receive a message, how can I show it in the same interface which I edit the message just as the MSN does.

[android-developers] How can host machine connect to emulator using socket

2009-02-01 Thread zcj0429
Hi, everyone: How can my host machine connect to emulator using socket? In my application, I need emulator to open a server socket, then host machine connects to emulator as a client. But when host creates the socket using "10.0.2.15:x" (x is the port which emulator is listenning), it

[android-developers] Re: How can host machine connect to emulator using socket

2009-02-02 Thread zcj0429
Thanks, David On Feb 2, 9:36 pm, David Turner wrote: > You will need to setup a network redirection, > seehttp://code.google.com/android/reference/emulator.html#emulatornetwor... > > On Mon, Feb 2, 2009 at 6:57 AM, zcj0429 wrote: > > > Hi, everyone: > >    How can

[android-developers] How to set the texts in one textview to be different colors?

2009-02-16 Thread zcj0429
Hello, everyone: How to set the color of texts which are in the same textview to be different? I'm now developing a simple IM, so I need to show the message. But I want to make the color of text which I receive to be different from that myself edit. Any one can help? --~--~-~--~~--