Calling close() on a Cursor that's backing a ListView

by Mark Murphy » Sat, 10 Apr 2010 01:27:07 GMT


Sponsored Links
 


This is intentional. The Cursor is tied to the UI thread once you put it
in a CursorAdapter and attach that CursorAdapter to an AdapterView
(e.g., ListView).

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training in NYC: 4-6 June 2010:  http://guruloft.com 

--



Other Threads

1. When the new activity starts, the data of previous activity is gone.

Hi Pranav,
I guess you implemented your logic like this:

Button previous = (Button) findViewById(.....);
previous.setOnClickListener(new OnClickListener(){
   public void onClick(View v) {
        Intent i = new Intent();
        i.setClassName(the name of the previous activiy.....);
        startActivity(i);
 }});


Try the below way:
Button next = (Button) findViewByid(.....);
 next.setOnClickListener(new OnClickListener(){
   public void onClick(View v) {
        Intent i = new Intent();
        i.setClassName(the name of the next activity.....);
        i.putExtra();....... //to pass this activity's data to next
        startActivity(i);
 }});

 Button previous = (Button) findViewById(.....);
previous.setOnClickListener(new OnClickListener(){
   public void onClick(View v) {
        finish();
 }});

What you need to do is passing the current activity's data to next
Activity;  When you press the Prev button, you will find Android keeps
the inputed strings  in the EditText and other editable views
automatically.......
Hope this can help you.

2009/12/31 android09 <pranav.jaja...@gmail.com>

> 

2. wifi dirumah,biar dimakan robot ijo

Quote pak citra:
"Kalo gua sih pake fastnet yg paket yg 135rb 384kbps (2010 ini harganya naik jd 
195rb tapi diupgrade ke 512). Trus beli Wireless router (DLink, sekitar 400-500 
rb kalo gak salah).Trus biar koneksi bisa di split, minta bantuin temen yg 
ngerti, hehehe....Tapi prinsipnya sih, kalo pake PC, musti punya 2 LAN card. Yg 
1 buat konek "didaftarin" ke fastnet, yg 1 buat kita pake.Kalo di rumah ada 1 
laptop dan 1 PC ber-wireless. MAC address yg dipake buat "didaftarin" ke 
fastnet pake LAN laptop, jadi kalo laptop konek ke internet kudu pake wifi, 
soalnya kan LAN nya udah kepake.Jadi PC, Droid, sm device2 wireless lainnya 
tinggal konek ke wifi.Gitu lah kira2... caranya gua gak ngerti, tapi prinsipnya 
gitu lah.Kalo ada temen2 lain yg bisa nerangin dengan bahasa yg mudah silahkan. 
:)"

--------------------------
Kalo mau nanya2 cari info tentang ginian?
(Fastnet,pasang wifi dimana ya?)

*solo region..

JAPRI yudhis...@gmail.com
ym yudhistyaksyatria

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. Places Directory

4. Has anyone written a 2D scene graph yet?

5. Fwd: bug gmaps dan my map editor

6. Can you put in duplicate app names on the Android Market?

7. help regarding implementation of SAX parser in android