1
A
回答
2
你可以使用:http://twitter4j.org/en/index.html或https://github.com/sugree/twitter-android-sdk
或者類似的東西:
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(url);
HttpResponse response;
String output ="";
try {
response = httpclient.execute(httpget);
HttpEntity entity = response.getEntity();
if (entity != null) {
InputStream instream = entity.getContent();
//IOUtilities is a class by romanian guy...
output = IOUtilities.readString(instream);
instream.close();
}
} catch (ClientProtocolException e) {
} catch (IOException e){
Log.e(TAG, "ERROR: Failed to open GET_REQUEST "+ e);
}
相關問題
- 1. Android上的Twitter實施
- 2. Twitter的庫ASP.NET MVC實現REST API
- 3. Twitter的API來實現黑莓
- 4. Android上的Twitter
- 5. 在Android API上實現操作欄7
- 6. 如何在UWP上實現Twitter的oauth2?
- 7. Twitter上的OAuth API?
- 8. BlueMix上的Twitter API
- 9. Android上的iCalendar實現?
- 10. Android上的Bonjour實現
- 11. 使用twitter api在android上傳圖片至twitter
- 12. Android開發:Twitter上的SSO
- 13. iOS Twitter搜索API實體
- 14. 由C或Java實現的Android API?
- 15. Android實現上的實時照片?
- 16. 在Android上實現Office 365 API的問題(Xamarin)
- 17. Android:使用Twitter API 1.1 oAuth
- 18. 爲oauth實現twitter gem
- 19. 在Twitter上使用Twitter api註銷?
- 20. Android:在surfaceview上實現admob
- 21. 在Android上實現WebServices
- 22. 在Android中實現Facebook Graph Api搜索
- 23. 如何在Android中實現Google Places API?
- 24. Android原生NDK OpenGL ES:未實現API
- 25. 如何在oriceon/oauth-5-laravel twitter api中實現友誼/存在?
- 26. 用於Twitter Feed實時分析的API?
- 27. Twitter Android上的Chill crash
- 28. REST API設計(Twitter)上
- 29. Android在Twitter上發帖
- 30. API實現
感謝您的答覆,但我必須實現從我還沒有實現從無到有的API。請爲我提供一些教程來實現Twitter的API。 – 2011-05-26 13:55:12
感謝這一點,但我已經看到這個我已經下載了本教程給出的文件,並將這個jar文件存儲在我的應用程序中,因爲它們在本教程中有所體現,但他們無法解釋進一步的步驟。所以你可以給我另一個教程的鏈接,將它保存在我的應用程序中後,應該用jar文件完成什麼。 – 2011-05-26 14:09:37
http://twitter4j.org/en/code-examples.html這裏給出一些例子。 – Nallath 2011-05-26 14:19:12