notifyDataSetChanged doesn't update screen

by ..:: Rodrigo ::.. » Tue, 27 Apr 2010 05:04:56 GMT


Sponsored Links
 Hi everybody!
I've a question about ListActivity & ListView & CursorAdpater.
The problem is that my listview isn't updating when I call
notifyDataSetChanged method from adapter, after I delete an item from
database.

Anybody knows what's happening?

Thanks for the help...

--



notifyDataSetChanged doesn't update screen

by Kumar Bibek » Tue, 27 Apr 2010 13:10:29 GMT


 Show some code. That will help us figure out what's wrong.

THanks and Regards,
Kumar Bibek



>


Sponsored Links


Other Threads

1. google gears in webview! (works only in browser)

Hi,
i made a test
http://www.checkdent.com/mobile/gps2.html
based on the demo:
http://code.google.com/apis/gears/api_geolocation.html#getpermission

when i open it from android browser i get my location.
but opened from within a webview, nothing happens??

i already gave several permissions
<uses-permission android:name="android.permission.INTERNET"></uses-
permission>
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission
android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></
uses-permission>

but still no success!

what do i have to do?

thx
chris

-- 

2. Intent runtime error: Source not found

I create 2 simple activities, first activity is to login, after that
proceed to the second activity. However, the intent is having some
runtime error: saying that the sources is not found. these are my
codes:

public class Login extends Activity {
        private EditText text;
        private Button clearPinButton;
        private Button loginButton;

        private OnClickListener clearPinListener = new OnClickListener() {
        public void onClick(View v) {
                text.setText("");
        }
    };

    private OnClickListener loginListener = new OnClickListener() {
        public void onClick(View v) {
                 Intent intent = new Intent();
                 intent.setClass(Login.this, Browse.class);
                 // intent.putExtra("com.android.samples.SpecialValue",
"Hello, Joe!");
                 startActivity(intent);
        }
    };

....

public class Browse extends TabActivity {

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


<application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".Login"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".Browse"></activity>
        </application>


anyone can help me on this?

-- 

3. Force Close on calling add/insert to ArrayAdapter

4. App not showing up for Evo users?

5. Using SoundPool.load(FileDescriptor, ... ) to load a sound file

6. Is it possible to draw to a home screen icon?

7. upgrade android di LG GW620 dibatalkan......