parsing - Parse whereEqualsTo not working in android -


i'm trying use parse in personal project faced problem when tried data new object called "image". i'm trying list of users select 1 , display images related selected user, if remove whereequalsto receive images related user i'm login in. if put whereequalsto receive nothing.

this code:

private void getuserimages(final string selectedusername) {      parsequery<parseobject> query = parsequery.getquery("image");      query.whereequalto("username", selectedusername);      query.findinbackground(new findcallback<parseobject>() {         @override         public void done(list<parseobject> objects, parseexception e) {             if (e == null) {                 if (objects.size() > 0){                     //do                 }             }         }     }); } 

this config class:

public void oncreate() {     super.oncreate();      parse.enablelocaldatastore(this);      parse.initialize(new parse.configuration.builder(this)             .applicationid("202ac01cxxxxxxxxxxa41d1136bc8a86213328b4")             .clientkey("76b883b596xxxxxxxxxf60f9352fdb926dde46e")             .server("http://ec2-xx-xx-xxx-59.us-east-2.compute.amazonaws.com:80/parse/")     .build());      parseacl defaultacl = new parseacl();      defaultacl.setpublicreadaccess(true);     parseacl.setdefaultacl(defaultacl, true); } 

enter image description here

someone has idea, how can fix this?

the parseuser class secured default. data stored in parseuser can modified user. default, data can still read client. thus, parseuser objects authenticated , can modified, whereas others read-only.

for object, can specify users allowed read object, , users allowed modify object. support type of security, each object has access control list, implemented parseacl class.

see documentation on how set access control list , give specific permissions.parse user documentation


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -