Android Emulator を使用していて、ローカル ホストにあるルート ドキュメントに対して GET リクエストを実行しようとしています。このドキュメントはログインを許可します。
ログイン方法
* @param rootDocumentUri The Uri the login attempt is to be invoked against.
* @param loginSuccessfulCallback The callback that is called if the login attempt was successful.
* @param loginFailedCallback The callback that is called if the login attempt was not successful.
* @param timeout The length of time, in milliseconds, to wait for a response from the server.
*/
public void login(Uri rootDocumentUri, LoginCompletedListener loginSuccessfulCallback,
LoginCompletedListener loginFailedCallback, int timeout);
使用中の方法:
MobileBaseUri = Address for my Uri.
MobileApi.login(Uri.parse(MobileBaseUri), new LoginSuccessful(), new LoginFailed(), MobileSettings.getInstance().getHttpRequestTimeoutPeriod() );
ログインしようとすると、アプリケーションは RootDocument に対して GET を実行しますが、「HttpClient(1884): org.apache.http.conn.ConnectTimeoutException: Connect to /10.0.0.8:80 timed out」というメッセージだけが返されます。
タイムアウトは1分に設定されており、サーバーはローカルホスト上にあるため、ファイアウォールによってブロックされているはずです..
問題が何であるかを知っている人はいますか?
ありがとう。