Hi there,
I'm making a shopping list app which basically uploads your shopping list to a php file and also downloads all the updates anyone else has made to the list.
I'm using record stores w/ record enumeration and an item object
Basically i want to be able to send off all the elements in the record store to the php file using a thread. The trouble comes from, do i need to pass the record store to the thread? and how do i get the data back and update the record store?
At the moment i cant see how my Send data class is going to update the record store of the main midlet.
Thanks in advance
edi
public GetDataClass(Midlet parentMidlet, String URL, RecordStore tempRecordStore)
{
try
{
populateLocalRecordStore(tempRecordStore);
this.parentMidlet = parentMidlet;
this.URL = URL;
}
catch(Exception e)
{
System.out.println(e.toString());
}
}
the populate record store takes the record store that has been passed and literally loops through all records and inserts them into the local rs. The problem comes from when i want to pass the data back to the main form/recordstore
edit
How do i update the record store in the main form from within the thread (what has been returned from the http request)