Coder Social home page Coder Social logo

productrxtask's Introduction

ProductRxTask

Task You need to create an android app for filling up forms. The difference is that the fields in the form need to match a "survey" table that is present on our server.

  1. The first API provides a way to retrieve schema of this survey table. As per the schema returned, create a survey form. Use as much information present in the table description as you can.
  2. Get user to fill the form and submit using the second API..
  3. Display all the survey results submitted so far by using the third api in the attached.

Solution

The solution of the above task is break down into following steps:

  1. Used MVP architecture. So the business logic, view and endpoints are kept separate for writing robust and testable code.
  2. For networking, I have used OkHttp3 library by square for connecting with REST api in asyncronous mode. All the UI updates are done in Main UI Thread and differnet thread for networking.
  3. Used Swipe Pull to refresh from android native support library.
  4. Used RecyclerView to display the array of json data after parsing them.
  5. App handles success, failure and somewhat ux friendly.
  6. Tab and ViewPager to display FormFragment and result Fragment.

Connectivity Manager isn't integrated to tell about networking state. A better User interface isn't implemented as this is just an assignment. Not going into production anytime. Material Animations and transitions haven't been implemented.

productrxtask's People

Contributors

rohitrfactor avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.