Hi!
I'm trying to implement work with attachments in offline mode. But when I call the method GeodatabaseFeatureTable.addAttachment it just returns -1. Moreover the state of app gets corrupted after this call and the app is not even able to do queries. This issue appears if and only if some other application was called from my app e.g. the file was selected from gallery. If I just hardcode the path to a file then this method does not cause any problems.
Any ideas?
Thanks in advance.
Solved! Go to Solution.
Updated SDK and reinstall the app. The problem has dissapeared.
Updated SDK and reinstall the app. The problem has dissapeared.
i am also facing some related problem. I am not able to attach my image in feature layer. Can u please help me..
Thanks
Rhitz
We found the reason of this problem. It happend because the geodatabase got corrupted due to wrong call Geodatabase.dispose() method.