How to Query Data Android Mobile Apps in Mesosfer Backend as a Service

This is a tutorial about How to Query Data Android Mobile Apps in Mesosfer Backend as a Service

Introduction

This Tutorial is the sixth session of Android Mobile Apps series.In this tutorial you will be required some dependency source code you created in the previous session. In this session, we’ll create module to get all data in a Mesosfer Bucket.

Getting Started

We have tried to do a query and filter user data in the previous session. There is bucket menu in Mesosfer Backend as a Service, you can create dynamic table and curtomize based on what you need.

In this session you will try to make a bucket in Mesosfer and then display it in Android Apps.

In the picture above, you have created Animal bucket which has 3 foot column (Number), isMamal (Boolean), and the name (String). The bucket number or the number of columns and data types can be defined according to your needs. Then for the next you need to create a new activity (DataActivity).

In the last variable initialization, there’s a method updateAndShowDataList. The data will be conducted from Mesosfer Backend as a Service. Define Your bucket name before the data retrieval process starts. In the code below, you will take the existing data in the Bucket “Animal” which is the bucket you created previously.

Conclusion

We have created module to get all data on Mesosfer Bucket. Very simple and quick, isn’t it? Mesosfer helps you connect your project to the cloud. Cut off the development process so you can straight into the delivery process instead stumble on the complicated infrastructure.