logo       

[android-beginners] numeric datatype in sqlite, and display problem.: msg#01160

AndroidBeginners

Subject: [android-beginners] numeric datatype in sqlite, and display problem.


...
Cursor c = ppp.getAll();

String[] from = new String[] {"name","gender","income"};

int[] to = new int[] { R.id.text1,R.id.text2,R.id.text3};

SimpleCursorAdapter peoples = new SimpleCursorAdapter
(this,R.layout.money_row, c, from, to);

setListAdapter(peoples );

Try to use SimpleCursorAdapter to display data, but a question.

a field type is numeric.
when display it
the value is 2000.12345 will be display 2000.12, save it in database
field is 2000.1234
the value is 1.1234567 will be display 1.12346, save it in database
field is 1.1234567

what's the problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise