使用android虚拟设备测试activesync

时间:2013-01-11 13:35:24

标签: android activesync

我正在尝试设置一个Android虚拟设备来测试与activesync-server的同步。 我遵循了这些steps:

问题是同步根本不起作用,但没有连接错误等错误......

IMO的问题是虚拟设备只有一个私有IP,所以服务器永远不能发送任何东西吗?

所以我可能需要某种转发,例如here:

但我不确定这是否正确,我也不确定应转发哪些端口。

当我要同步时,这是logcat:

W/InputMethodManagerService(  148): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41302038 attribute=null
I/Choreographer(  274): Skipped 41 frames!  The application may be doing too much work on its main thread.
D/dalvikvm(  477): GC_CONCURRENT freed 396K, 6% free 8392K/8903K, paused 15ms+7ms, total 527ms
D/dalvikvm(  274): GC_CONCURRENT freed 360K, 11% free 9493K/10567K, paused 29ms+48ms, total 142ms
I/EAS ContactsSyncAdapterService(  477): Contact sync requested for test@example.com
D/dalvikvm(  148): GREF has increased to 601
D/dalvikvm(  477): WAIT_FOR_CONCURRENT_GC blocked 0ms
I/Choreographer(  274): Skipped 33 frames!  The application may be doing too much work on its main thread.
D/dalvikvm(  477): GC_EXPLICIT freed 333K, 7% free 8355K/8903K, paused 78ms+32ms, total 1269ms
I/EAS EmailSyncAdapterService(  477): performSync
I/EAS EmailSyncAdapterService(  477): Mail sync requested for test@example.com
D/dalvikvm(  460): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm(  460): GC_EXPLICIT freed 216K, 5% free 8483K/8839K, paused 145ms+94ms, total 914ms
D/dalvikvm(  148): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm(  148): GC_EXPLICIT freed 510K, 7% free 11338K/12167K, paused 8ms+35ms, total 323ms
D/dalvikvm(  274): GC_CONCURRENT freed 415K, 11% free 9486K/10567K, paused 25ms+28ms, total 125ms
E/Inbox[test@example.com](  477): Uncaught exception in EasSyncServicejava.lang.ArrayIndexOutOfBoundsException: length=32; index=32
E/Inbox[test@example.com](  477): Sync ended due to an exception.
D/dalvikvm(  477): GC_CONCURRENT freed 376K, 6% free 8420K/8903K, paused 5ms+18ms, total 66ms

1 个答案:

答案 0 :(得分:0)

我不认为这是您的网络设置的问题。您的同步代码中似乎有错误,导致进程停止:

E /Inboxtest@example.com:EasSyncServicejava.lang.ArrayIndexOutOfBoundsException中未捕获的异常:length = 32;指数= 32 E /Inboxtest@example.com:由于异常而导致同步结束。

>

将此代码包装在try / catch块中,以更好地了解发生的情况。