0
您好,我需要从一个活动到另一个活动的光标值,但其显示为空。如何将光标从一个活动移动到另一个活动
public class TitleActivity extends ListActivity {
/** Called when the activity is first created. */
public Cursor titleCursor = null;
public String blogid;
public String language;
public String titleRowid;
public String rowid;
public int COUNT;
public JSONArray jarray;
protected NotificationManager notify = null;
private int requiredSpace = 0;
private String contentUrl = null;
private String updateTitlesUrl = null;
Cursor ePubDownloadCursor = null;
private Cursor deleteTitleCursor = null;
protected String magid;
protected String pdate;
protected int pos;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
initializeAllCursors();
} catch (Exception e) {
VSLog.error(this.getClass(),
"Error in start up activity" + e.getMessage());
}
}
private void initializeAllCursors() {
try {
// Contains download status , content and id
ePubDownloadCursor = managedQuery(
BlogProvider.Constants.CONTENT_URI,
ConstantValues.EPUBDOWNLOAD, null, null,
BlogProvider.Constants.PDATE + " DESC ");
// Contains deleted status , content and id
deleteTitleCursor = managedQuery(
BlogProvider.Constants.CONTENT_URI,
ConstantValues.EPUBDOWNLOAD, null, null,
BlogProvider.Constants.PDATE + " ASC ");
notify = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
} catch (Exception e) {
VSLog.error(this.getClass(),
"Error cursor inizilization" + e.getMessage());
}
}
我想在我的另一项活动deletetitle光标我是如何被plz帮助......我想知道我是怎么deleteTitlecursor我的另一项活动,因为我需要传递光标为我的另一个类。但我需要deleteTitle光标titleactivity也