Hi all,

We use M-Biz to perform an application sync.

However, we want to use the M-Biz client application to connect to the
internet whenever performing a data sync (Mobilink/Ultralite) as the M-Biz
client uses the default internet profile and there is a bug in 9.0.2. in
getting it to connect to the internet.

We use the code below.

Is there any adverse effect is doing so?
Is there a need to disconnect?
Does it have any side effects to the locked state of the M-Biz user account
if using this method?

Cheers,

Shao


databaseSchema = conn.databaseSchema;
publicationSchema =
databaseSchema.getPublicationSchema(publicationName);
publicationMask =
publicationSchema.getMask();
syncParameters.setPublicationMask(publicationMask);
conn.saveSyncParms();

if (!avantgo.isOnline()) {
// INT00332 put PDA online
avantgo.connect();
}

conn.synchronize();

if (avantgo.isOnline()) {
// INT00332 put PDA offline
avantgo.disconnect();
}

syncResult = conn.syncResult;
authStatus = syncResult.getAuthStatus();