Question: I am trying to run an `android` application in `Eclipse` using `Maven` .
Some `dependencies` are unfortunately stopping the run (could not be found or resolved). 
I have already checked that I have the dependencies in my repository.
Any suggestion is welcome.
Thank you for your time and consideration.

**Pom.xml :** 

```
<dependency>
        <groupId>android</groupId>
        <artifactId>android</artifactId>
        <version>4.4.2_r2</version>
        <scope>provided</scope> 
    </dependency>
    <dependency>
        <groupId>android.support</groupId>
        <artifactId>compatibility-v4</artifactId>
        <version>19.0.1</version>
    </dependency>

```

**Console's error message:**

```
The following artifacts could not be resolved: android:android:jar:4.4.2_r2, android.support:compatibility-v4:jar:19.0.1: Failure to find android:android:jar:4.4.2_r2 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

```

Answer: 
I like to handle this by using a custom `Application` class. For example:

```
public class Helper extends Application {

    private Context mContext;

    public void onCreate() {
        super.onCreate();
        mContext = this;
    }

    public Context getContext() {
        return mContext;
    }
}

```

This way you can get the context of the application every time you need it.
If you want to create a CameraHandler object in the same Activity, you can pass it like this :

```
ch = new CameraHandler(MainActivity.this);
ch.initializeCamera();

```

Else , you have to pass a parameter `Context` to your other class.