2011-03-23 22 views
0

我跟隨他們通過android SDK分發的亞馬遜樣本。我做的幾乎完全同樣的事情在我的應用程序,但我得到以下異常:無法通過Android使用移動SDK與亞馬遜SimpleDB進行交談

I/SSLSocketFactory( 967): Using factory [email protected]0062b40 
I/SSLSocketFactory( 967): Using factory [email protected]0062b40 
W/HttpClient( 967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com 
I/SSLSocketFactory( 967): Using factory [email protected]0062b40 
W/HttpClient( 967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com 
I/SSLSocketFactory( 967): Using factory [email protected]0062b40 
W/HttpClient( 967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com 
I/SSLSocketFactory( 967): Using factory [email protected]0062b40 
W/HttpClient( 967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com 
E/Guild::createMessageItem: ( 967): java.net.UnknownHostException: sdb.us-west-1.amazonaws.com 

這裏是我的要求:

I/com.amazonaws.request( 967): Sending Request: POST https://sdb.us-west-1.amazonaws.com/Parameters: (Attribute.3.Value: t9, Attribute.4.Name: created_by, SignatureMethod: asdedd, Attribute.5.Value: 2011-03-22 20:51:20, AWSAccessKeyId:<acccessid>, Attribute.1.Name: message_id, Attribute.3.Name: description, Timestamp: 2011-03-23T00:51:21.170Z, Signature: <securitycode>, Attribute.6.Name: modified, Attribute.2.Name: title, Attribute.2.Value: t3, Action: PutAttributes, ItemName: x1300841480654, DomainName: messages, Attribute.1.Value: x1300841480654, Attribute.6.Value: 2011-03-22 20:51:20, Version: 2009-04-15, SignatureVersion: 2, Attribute.5.Name: created, Attribute.4.Value: [email protected],) 

有什麼建議?

回答

0

我想通了。這是我在AndroidManifest.xml文件中丟失的內容:

<uses-permission android:name="android.permission.INTERNET"/>