Wikipedia Search

Published on February 27, 2022

🍭 REMINDER: You might want to check out my On Your Birthday app, which uses the same API to get famous people born on your birthday.

🏷️ Tags: #api, #json

Description

I do not want to focus on user interface and design, what really matters is the concept behind this app.

This is a sample application for users who want to search webpages in Wikipedia. This might be helpful, with the Google Search tutorial, if you would like to build your own browser. The user will be asked to enter a keyword, and then the application will show a list of relevant Wikipedia searches. The user can either load the webpage into a label, or into a WebViewer.

Note that the application uses 2 web APIs - one to load the result into the label with Wikipedia api with Plain Text Search Results (thank you @SteveJG!), and one I just found myself, which gives me a list of relevant searches and snippets.

Note that the second API returns snippets in HTML format. So, I decided to add a label in HTML format. We put the HTML text into the label, then load the label's text into the ListView, since ListView does not have HTMLFormat.

The aiStarter emulator cannot perform complicated Web get requests, so I suggest you to use a Genymotion emulator, an Android Studio emulator or on an actual phone.

This app is available in the MIT App Inventor Apps gallery! Visit here to view it in the gallery, or visit here for the MIT App Inventor community official post.

NOTE: This is a DEMO app, I will not update this app anymore. Also, it is made open source. A part of the AIA file is in this guide.

Version

Current version: 1.0

Acknowledgements

  • Thanks for MIT App Inventor and Thunkable X, for provind me amazing building tools.

  • Thanks to SteveJG in MIT App Inventor community!

  • The application icon (duck-profile.jpg) is a watermark of AICODE.

Screenshots

Tests

Tested successfully on Google Pixel 2 on Android Emulator and Xiaomi 11 5G NE Lite.

Downloads

AIA file: this app is a demo app, made open source, which means that I will provide AIA file. Download button below.

APK file: download button below.

Please email me if you find any bugs, no matter major or minor. I will usually update my app once a month if I find any bugs.

TERMS & CONDITIONS

By installing, remixing or sharing my app, you agree to follow these terms and conditions.

  1. Have fun using the app! There are no viruses, trojan horses, advertizements, or premium options.

  2. You are allowed to modify this AIA file, but as CC-BY-SA, if you do remix this material, please give credit by mentioning Gordon Lu, AICODE and providing a link to this website.

  3. This, along with the MIT App Inventor community post, are the only authorized place to download this application. As an organization, you are not allowed to host and advertize this application on your website, document, tweet, blog, article or any software you made without my authorization. You are also reminded not to include a direct download link of this application on your website without my permission. If you are interested in the actions listed above, please contact me via email. Do remember that if you violate term no. 3, AICODE has the right to flag your website, document, tweet, blog or article as a violation of copyright, or other legal actions will be taken. Please contact me if you find anyone do this.

However, you can copy the link of this webpage and share it to someone as a personal identity (not as an organization), or sharing it on these authorized forums: App Inventor, Kodular, Niotron, Appzard and Android Builder communities. The term organization includes schools, markets and app stores, companies and social groups. Thank you for your understanding.

Those organizations are authorized to advertize my application:

  • Kodular admins

  • MIT App Inventor admins

  1. Selling this application/product to anyone is not allowed unless authorized by AICODE.

  2. These terms and conditions are written and issued on December 20, 2021, along with the new version of 4.0.0. AICODE has the total permission to edit these terms and conditions anytime.