Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Hello, Is there a way to set a connection timeout on my mobile app when trying to synchronize with mobilink server. When my mobilink server is down the application freezes for more than a minute.

This question is marked "community wiki".

asked 28 Mar '12, 11:16

katalun4o's gravatar image

accept rate: 85%

edited 06 Mar '13, 18:05

Graham%20Hurst's gravatar image

Graham Hurst

permanent link

answered 28 Mar '12, 11:29

Graham%20Hurst's gravatar image

Graham Hurst
accept rate: 29%

I cannot find out how to set this parameter, i am using it in android application

        SyncParms syncParms = _conn.createSyncParms(SyncParms.HTTP_STREAM,"sa", "SyncModel");
(29 Mar '12, 02:51) katalun4o
Replies hidden

Set it using the setLivenessTimeout method on your SyncParms object.

(29 Mar '12, 10:01) Bill Somers

You might also want to add a progress indication "dialog" with an option to cancel. It would need to implement SyncObserver and have the syncProgress method return false to continue or true to cancel.

Also, if your app "freezes" are you not using a worker thread?

Even though it doesn't implement an observer or use a separate worker thread for synchronization, you might be interested in Tom Slee's push sample using UltraLiteJ on Android.

(29 Mar '12, 12:42) Graham Hurst
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 28 Mar '12, 11:16

question was seen: 6,560 times

last updated: 06 Mar '13, 18:05