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.
I have followed the Android Files Guide to create a LinkedGenericJson entity with the putFile method to attach related file information to the entity. However, this is not working for me.
From the debugger I can see that when I issue a get from the AsynAppData class to extract data from my Datastore collection, I can successfully pull all the data from the collection, including field values and even the related file information as well. The problem is that my LinkedgenericJson entity does not recognise the related file json data as File information. It stores it as an "Unknown key" value in my entity.
Below is my entity construct. I can successfully map all the other fields to the data being pulled from the datastore, only the File data is being treated as an unknown key.
public class WordEntity extends LinkedGenericJson{
If/When the callback is success, I saw that my collection was null and that was crashing my app. I simply removed the _Id field that Kinvey automatically gives you when you create a new row.
Hope it helps
S
Shane Lee
said
almost 10 years ago
Post seems to have reformatted my text. Try again.
Shane Lee
From the debugger I can see that when I issue a get from the AsynAppData class to extract data from my Datastore collection, I can successfully pull all the data from the collection, including field values and even the related file information as well. The problem is that my LinkedgenericJson entity does not recognise the related file json data as File information. It stores it as an "Unknown key" value in my entity.
Below is my entity construct. I can successfully map all the other fields to the data being pulled from the datastore, only the File data is being treated as an unknown key.
public class WordEntity extends LinkedGenericJson{
@Key("_id")
private String id;
@Key("english_word")
private String english;
@Key("foreign_word")
private String foreign;
@Key("mnemonic_story")
private String story;
@Key("focus_word")
private String focus;
public WordEntity(){
putFile("image");
}