As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Android find specific value in kinvey column but get java.lang.reflect.InvocationTargetException
Y
Yeong Shern
started a topic
about 7 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?