Start a new topic

Android find specific value in kinvey column but get java.lang.reflect.InvocationTargetException

I want to get that column ID from the value i key in, when the value compare and match, it will return me a String value. So i created this method, "busID" is contain macAddress value string i key in. 


    public String findBusType(String busID){

        mKinveyClient = new Client.Builder(appKey,appSecret,this).build();
        Query query = mKinveyClient.query();
        AsyncAppData<Entity> myEvents = mKinveyClient.appData("BusType", Entity.class);
        myEvents.get(query, new KinveyListCallback<Entity>() {
            public void onSuccess(Entity[] result) {

                for (Entity entity : result) {
                    busType = entity.getId();
                    Log.e(TAG,"Bus ID is"+busType);

            public void onFailure(Throwable throwable) {

                Log.e(TAG,"Fail to get result "+throwable.toString());

        return busType;


Is there any wrong statement for get my column ID?

(98.8 KB)
Login or Signup to post a comment