Note that there are some explanatory texts on larger screens.

plurals
  1. USAlan McTavish
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. CONodeList statements = doc.getElementsByTagName("statement"); int l = statements.getLength(); for (i=0; i<l; i++) { s = statements.item(i).getChildNodes().item(0).getNodeValue(); db.execSQL(s); // if i = (l/100) { ** send message back to the progress bar ** } } //System.out.println("Lines written; " + i); } catch (Throwable t) { System.out.println(t.toString()); } I am not sure how to send the message from within the OnCreate in the DbHelper class. Any further help would be appreciated.
      singulars
    2. CO,sorry, I'm new to this commenting lark ;o) What I have at the moment is my main activity sets up a thread which calls a small function which, in turn calls the DbHelper class (separate file!) I hope this will work when I try to show you the code. new Thread(new Runnable(){ public void run() { loadData(); pd.dismiss(); } }).start(); and private void loadData() { DbAdapter mDbHelper; mDbHelper = new DbAdapter(this); mDbHelper.close(); } See next comment ...
      singulars
    3. COHi again Amazed, As always, thanks very much for your help in this matter. I found a bit of Delphi code which I was able to convert. It used the API calls similar to Aarons code and I worked out how to use 'WM_CAP_GRAB_FRAME' to put the image on the clipboard. From there on in it was easy to save it as a picture using Realbasic's Clipboard object. I've given you the credit because you deserve it - you inspire me! Cheers, Alan ...
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload