Mobile Artificial Intelligence Projects
上QQ阅读APP看书,第一时间看更新

Creating an Android app to predict house prices

In this section, we are going to consume the model through the RESTful API via an Android app. The purpose of this section is to demonstrate how a model can be consumed and used by an Android app. Here, we have assumed that you are familiar with the basics of Java programming. The same approach can be used for any similar use case, even on web apps. The following steps are covered in this section:

  • Downloading and installing Android Studio
  • Creating a new Android project with a single screen
  • Designing the layout of the screen
  • Adding a functionality to accept input
  • Adding a functionality to consume the RESTful API that serves the model
  • Additional notes