1.
Cursor C = ...;
For (C.movetofirst ();! c.isafterlast (); C.movetonext ()) {
C...
}
2.
Cursor CURSOR=...L
For (Cursor.movetofirst ();!cursor.isafterlast (); Cursor.movetonext ()) {
Cursor.getstring (Cursor.getcolumnindex ("Name"));
Cursor.getint (Cursor.getcolumnindex ("CellPhone"));
Cursor.getint (Cursor.getcolumnindex ("Phone"));
Cursor.getstring (Cursor.getcolumnindex ("Address"));
}
Avoid: Do not traverse cursor directly to obtain data, such as: Cursor.getint (Cursor.getcolumnindex ("CellPhone"));
Android development, how to make eclipse file explore have root access to access to the Data folder
In Eclipse, which integrates the DDMS tool, only the data document of the phone simulator can be accessed if the connection to the peripheral is inaccessible, only through the command line of the CMD console to gain root access
After the phone root, use
R.E. Manager to the data, Data\data, data\data\xxxx your project these folders right to read and writable