Change Spinner content on fly

by arnouf » Tue, 14 Apr 2009 04:09:15 GMT


Sponsored Links
 Hi all,

I've a ListActivity containing entries present in my db.
Each line of this list is a Linearlayout containing image and text.

To avoid to reload a part of my db each time, I load it one time.
Records are put in my list used to build my adapter.

I would like to set invisible some lines of this ListActivity when
user clicks on a button.

In debug mode, the view seems Gone, but even if I use forceLayout on
adapter or requestLayout, the list is not reloaded.

Do you have an idea?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to simulate Incoming Call on device?

Hallo,

is it possible to simulate the Call on the real device for debug as on
the emulator (with "telnet")? I know, it is no problem  via usb cable
to debuging on the real devices. But i can't find, how to simulate the
Call on the device via usb-cable. (I am working with Motorola
MileStone)

Please, help!

Thanks a lot!
C.B

-- 

2. how can i pass the values of one activity to another

*
one.java:

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class one extends Activity
{
Button click;
        Button click1;
    /** Called when the activity is first created. */
     public void onCreate(Bundle savedInstanceState)
     {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main2);

        click = (Button) findViewById(R.id.click);
        click.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View view)
            {
                Intent myIntent = new Intent(view.getContext(),two.class);
                startActivityForResult(myIntent, 0);
            }

        });
                        click1 = (Button) findViewById(R.id.click);
        click1.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View view)
            {
                Intent myIntent = new Intent(view.getContext(),two.class);
                startActivityForResult(myIntent, 0);
            }

        });
     }
}

two.java:

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class two extends ListActivity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
{
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mains);

        try {
URL Url = new URL("http://www.newkerala.com");

}
             catch (IOException e) .....................
                 {
e.printStackTrace();
}
..................
................
...............
.............
}


Now what i want whenever i select a button from one.java file it should pass
the URL in two.java and the URL is defined in one.java. In other words how
can i pass the different-different URL on the different-differentbutton

*

-- 

3. Aplikasi untuk blacklist panggilan

4. How to develop DIGITAL ZOOM on Camera preview?

5. How do I compile the connectbot source code?

6. How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

7. Local Search for SimpleCursorAdapter