0
我試圖設置一個android虛擬設備來測試與activesync-server
同步。 我跟着這些steps:使用android虛擬設備測試activesync
的問題是,同步是不工作的,但也有像連接錯誤沒有錯誤...
IMO的問題是,虛擬設備只有一個私有IP,所以服務器永遠不能發送任何東西給它?
所以我可能需要某種形式的轉發,如here:
但我不知道這是正確的,我也不能確定哪個端口轉發。
這裏是logcat的,當我想同步:
W/InputMethodManagerService( 148): Window already focused, ignoring focus gain of: [email protected] 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 [email protected] 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 [email protected] 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[[email protected]]( 477): Uncaught exception in EasSyncServicejava.lang.ArrayIndexOutOfBoundsException: length=32; index=32 E/Inbox[[email protected]]( 477): Sync ended due to an exception. D/dalvikvm( 477): GC_CONCURRENT freed 376K, 6% free 8420K/8903K, paused 5ms+18ms, total 66ms
感謝您的回答!雖然我無法解決您的問題,但我發現問題在於我使用的zpush協議存在配置問題。最後一個問題是,我無法在Android 4.2設備上添加ActiveSync帳戶。我只能添加Google帳戶。 Google是否禁用Android 4.2上的ActiveSync支持? – user1970122
是的,我認爲他們最近在GMail中禁用了ActiveSync。我不認爲這會在API層面上 - 但不是我的專業領域。 http://www.theverge.com/2012/12/14/3767626/google-dropping-google-sync-exchange-support-for-gmail-calendar-and – Booger