cancel
Showing results for 
Search instead for 
Did you mean: 

problems syncing android native app

Former Member
0 Kudos

Hi,

I had problems syncing my native android app and whenever you try to synchronize Closes:

1. App initialization (ok)

2. Set connection properties (ok)

3. App registration (ok)

4. Sync data (fails and closes app)

someone could help me to find the error log?

someone has been the same?

if (!xxxxDB.isSynchronized("default")) {

xxxxDB.disableChangeLog();

xxxxDB.synchronize(); // Initial Synchronize

SynchronizationGroup sg = xxxxDB.getSynchronizationGroup("default");

sg.setEnableSIS(true);

sg.save();

xxxxDB.synchronize();

}

xxxxDB.enableChangeLog();

} catch (SynchronizeException e) {

System.out.println("Exception1 " + e);

System.out.println("Cause " + e.getCause());

System.out.println("Msg " + e.getMessage());

e.printStackTrace();

} catch (Exception e) {

System.out.println("Exception2 " + e);

e.printStackTrace();

} finally {

// initializationDone = true;

}

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Carlos,

Can you look at sample project given at here

You may also check this document

Rgrds,

JK

midhun_vp
Active Contributor
0 Kudos

What is the error you are getting ?

In which line of code error occurs ?

Give more information on the issue. Sync with SCC credentials.

Midhun VP

Former Member
0 Kudos

Hi,

It really is not a mistake .. the app is closed when it starts to sync .. the app is properly recorded in the SCC .. but not synchronizing ...

this is the block of code that performs synchronization

if (!xxxxDB.isSynchronized("default")) {

xxxxDB.disableChangeLog();

xxxxDB.synchronize(); // Initial Synchronize

SynchronizationGroup sg = xxxxDB.getSynchronizationGroup("default");

sg.setEnableSIS(true);

sg.save();

xxxxDB.synchronize();

}

xxxxDB.enableChangeLog();

} catch (SynchronizeException e) {

System.out.println("Exception1 " + e);

System.out.println("Cause " + e.getCause());

System.out.println("Msg " + e.getMessage());

e.printStackTrace();

} catch (Exception e) {

System.out.println("Exception2 " + e);

e.printStackTrace();

} finally {

// initializationDone = true;

}