Question: I am trying to finish one activity from another.
For that purpose I am having **only** the component name of that activity.
How can i finish that ?

Answer: 
> 
> Question - is it not possible to ignore the apachehttpclient library provided by google and use a newer version of the library instead? 
> 
> 
> 

It is not. The [Apache HttpClient Android Port](http://hc.apache.org/httpcomponents-client-4.3.x/android-port.html) can deployed along-side with the old version shipped with the platform. 

> 
> Why isnt this possible?
> 
> 
> 

It is believed to be for security reasons.
You need to give the below code snippet in the dependencies section in the build.gradle file of you app module.

```
  configurations {
        compile.exclude group: "org.apache.httpcomponents", module: "httpclient"
    }

```