Android find specific value in kinvey column but get java.lang.reflect.InvocationTargetException
Y
Yeong Shern
started a topic
over 4 years ago
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();
query.equals("macAddress",busID);
AsyncAppData<Entity> myEvents = mKinveyClient.appData("BusType", Entity.class);
myEvents.get(query, new KinveyListCallback<Entity>() {
@Override
public void onSuccess(Entity[] result) {
for (Entity entity : result) {
busType = entity.getId();
Log.e(TAG,"Bus ID is"+busType);
}
}
@Override
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?
Yeong Shern
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.
Is there any wrong statement for get my column ID?