I want to use geoFence by kitLocate in android but i am facing unkonwn errors,
my MainActivity.java

package com.nabia.geofence;

import com.kl.kitlocate.class_interface.KLGeofence;
import com.kl.kitlocate.interfaces.KLApplication;
import com.kl.kitlocate.interfaces.KLLocation;
import com.kl.kitlocate.interfaces.KitLocate;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import nabia.kigeofence.R;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        KitLocate.initKitLocate(this, "584da03d-18d7-4701-9808-eec48f65e797");

        KLLocation.addGeofence(this, 31.54381f, 74.28253f, 250, KLGeofence.Type.IN, "home" );

        KLLocation.registerGeofencing(this, GeofenceCallBackHandler.class);
    }
    @Override
    protected void onStart() {
        KLApplication.onActivityStart(this);
        super.onStart();
    }

    @Override
    protected void onStop() {
        KLApplication.onActivityStop(this);
        super.onStop();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}

my GeofenceCallBackHandler.java file is

package com.nabia.geofence;

import java.util.ArrayList;

import com.kl.kitlocate.class_interface.KLGeofence;
import com.kl.kitlocate.class_interface.KLLocalNotification;
import com.kl.kitlocate.utilities.interfaces.IKLGeofenceResponse;

import android.content.Context;
import nabia.kigeofence.R;

public class GeofenceCallBackHandler implements IKLGeofenceResponse {

    @Override
    public void geofenceIn(Context arg0, ArrayList<KLGeofence> arg1) {
        new KLLocalNotification(arg0, "Hi, I am in home", R.drawable.ic_launcher).setDefaultSound(true).setContentTitle("GeoFence in").send();

    }

    @Override
    public void geofenceInArm(Context arg0, ArrayList<KLGeofence> arg1) {
        // TODO Auto-generated method stub

    }

    @Override
    public void geofenceOut(Context arg0, ArrayList<KLGeofence> arg1) {

    }

    @Override
    public void geofenceOutArm(Context arg0, ArrayList<KLGeofence> arg1) {
        // TODO Auto-generated method stub

    }

}

my manifest.xml file is 



<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="nabia.kigeofence"
    android:versionCode="1"
    android:versionName="1.0" > <uses-sdk
        android:minSdkVersion="17"
        android:targetSdkVersion="21" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <permission android:name="com.kl.kitlocate.KITLOCATE"
        android:protectionLevel="signatureOrSystem"
        android:label="kitLocate broadcast permission"/> <uses-permission android:name="com.kl.kitlocate.KITLOCATE" /> <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" > <activity
            android:name=".MainActivity"
            android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <receiver android:name="com.kl.kitlocate.receivers.KLBroadcastReceiver"
            android:exported="true"> <intent-filter> <action android:name="android.intent.BOOT_COMPLETED" /> </intent-filter> </receiver> <service android:name="com.kl.kitlocation.services.KLLocationServices"
            android:label="KitLocate Services"/> <service android:name="com.kl.kitlocation.services.KLAccelerometerServices"
            android:label="KitLocate IDLE Services"/> <service android:name="com.kl.kitlocation.services.KLResourceServices"
            android:label="KitLocate rescue"/> </application> </manifest>

my activity_main.xml file is

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.nabia.geofence.MainActivity" > <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" /> </RelativeLayout>

Please tell me how can i resolve these errors to run my app.

Please post the exact complete error message - copy/paste it, don't just give us your summarised version

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.