Skip to content

FAQActivity

stardust edited this page Feb 20, 2023 · 1 revision

FAQActivity

The FAQActivity class contains the logic for the Frequently Asked Questions activity.

onCreate

Method is called when the activity is created. In this method, the toolbar and layout is set. Also, the contact items are added.

Parameters:

  • Bundle savedInstanceState

Return value:

  • none

addQuestionItem

Prepares faq_questions.json to be parsed, then adds Question objects into the faqList ArrayList.

Parameters:

  • none

Return value:

  • none

parseJson

Parses faq_questions.json and adds Question objects into the faqList ArrayList.

Parameters:

  • String toString
    • faq_questions.json parsed into a string.

Return value:

  • none
Clone this wiki locally