CheckedTextView.isChecked

by stanlick » Fri, 16 Oct 2009 23:31:21 GMT


Sponsored Links
 This is a two part question:

1) Is there a preferred listener for this control?  I notice in order
to get this work, I had to listen for
AdapterView.OnItemSelectedListener and AdapterView.OnItemClickListener

2) Within my onItemClick method, the value of control.isChecked() is
opposite the GUI.  IOW, when I check the box, it returns false.  When
I uncheck, it returns true.

Peace,
Scott
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. getHostByName failing

My application tries to open a socket to a remote (ie. out on the
internet) server but fails with an "Unknown host" exception.  I've
simplified the code and plugged it into HelloAndroid as follows:

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        try {
        openSocket("www.google.com", 80);
        } catch (IOException e) {
        e.printStackTrace();
        }
    }

    private Socket sock;

    private void openSocket(String host, int port) throws IOException
{
        InetAddress inet = InetAddress.getByName(host);  // exception
raised here
        sock = new Socket();
        sock.connect(new InetSocketAddress(inet, port), 3000);
    }

}

As the emulator's web browser can connect to www.google.com
successfully I assume my network configuration is correct.  I even
disabled the firewall on my development machine but to no avail.

BTW my application will connect to a different server and port - I'm
just using google.com & 80 as an example.

All help appreciated.

richard.

--~--~---------~--~----~------------~-------~--~----~

2. reg porting android on target pxa270 arm based board

Dear all
            im new to android...i ve downloaded the android
kernel-2.6.25 and ported successfully on a pxa 270 arm based platform.
Now got the android file system images (system.tar.gz and data.tar.gz)
from a link..can some body help me out to port this file system in my
arm based board..also i need to know how to run android applications on
a pxa 270 processor using dalvik..

thanks in advance..

regards
krithika
e-consystems

--~--~---------~--~----~------------~-------~--~----~

3. Mail api or access to mail authentication?

4. DL Android

5. MapView showing GPS positions incorrect

6. Contacts.PresenceColumns documentation/API mismatch.

7. Question regarding default Contacts application.