I am trying to use parse.com for my android application. I read the tutorial and I am able to insert the data but how do I retrieve it. I have attached the image of the my database
How to retrieve data of all the client Names from that database?
Parse Server uses MongoDB or PostgreSQL as a database. You can deploy and run Parse Server on your own infrastructure. You can develop and test your app locally using Node.
Parse Server has long-term stability compared to any such vendor-based platform. Parse Server is undoubtedly better than Firebase to develop Android, iOS, or web application APIs with a strong community background and feature-rich open-source platform.
You can get the values this:
ParseQuery<ParseObject> query = ParseQuery.getQuery("UserMaster");
query.whereEqualTo("userName",user_name);
query.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> userList, ParseException e) {
dlg.dismiss();
Log.d("klakla", "get: " + e+userList.size());
if (e == null) {
if (userList.size()>0) {
for (int i = 0; i < userList.size(); i++) {
ParseObject p = userList.get(i);
email = p.getString("email");
password = p.getString("password");
} }
}
else {
Log.d("score", "Error: " + e.getMessage());
// Alert.alertOneBtn(getActivity(),"Something went wrong!");
}
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With