English 中文(简体)
为什么安妮特普里特公司在安的2.1条工作?
原标题:Why is AndroidHttpClient working on Android 2.1?

我的安乐文中有一条密码线[其部分代码下载图像]:

final AndroidHttpClient client = AndroidHttpClient.newInstance("Android");

the docs ,AndroidHttpClient , 仅可查阅,因为APIC8级(2.2)

然而,当我向2.1名支持者投稿时,这套人完全没有抱怨。 它甚至成功地下载了图像!

因此,为什么如此? 这是否意味着我可以依靠它从事生产(非养家)环境的工作? 或者是否对支持者有某种特殊意义?

问题回答

我认为,你可以在生产中使用AndroidHttpClient,与OS 2.1相配套。 可在OS 2.1源代码中找到这一类别。 此外,这一类别存在于Soul 1.6的源代码——。 更有甚者,第1.6和2.1号秘书处对这一类别的来源代码完全相同。 因此,我假定这一类别在安的2.1中是安全的。

但应当谨慎,执行<代码> 轻微改动,见文件2.3.x,没有增加新的方法,第二点是方法。

public static AndroidHttpClient newInstance (String userAgent, Context context)

更改了(原来的第二论点是SSLClientSessionCache sessionCache)。 因此,如果你不使用这一方法,所有东西都应受到罚款。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签