filmov
tv
Android S7E4 : PHP MySQL - PDF Viewer with GridView

Показать описание
In this tutorial we will see how to select PDF documents from mysql database, list them with images and text also from mysql database and render the PDF Document in a new activity for reading.
We will store PDF documents, PDF images, PDF name, description and author in mysql database. Then these will be downloaded and shown in a custom GridView with images and text. When the user clicks a single PDF document, we will render it internally with the android pdf viewer library.
As we download PDFs from our mysql we will be showing a progressbar. The PDF documents get downloaded from php mysql server in a background thread so our app will remain responsive throughout.
What is a PDF ?
PDF stands for Portable Document Format and is basically a file format for rendering documents including text formatting and images.
That file format can then read independent of application software, hardware and even operating systems. It's portable.
What is GridView?
A view that shows items in two-dimensional scrolling grid. The items in the grid come from the ListAdapter associated with this view.
What is a Database?
A database, generally speaking, refers to any organized collection of data
What is MySQL ?
MySQL is an open source, multithreaded, relational database management system created by Michael “Monty” Widenius in 1995.
Many businesses these days develop and maintain custom software with MySQL. Additionally, majority of the most popular websites(e.g Wikipedia) and software use MySQL for their database.
MySQLi
PHP has mysqli extension which allows us to access the functionality provided by MySQL 4.1 and above.
As an extension, mysqli exposes APIs to the PHP programmer, to allow us work with MySQL database programmatically.
Insert PDFs to MySQL
Well we now need to insert our pdf details into mysql database. For this app, we'll assume that this is done at the server level, maybe via some web interface. We are not uploading PDF documents from the device to the PHP server then downloading them again.
What is PHP?
PHP is a server-side programming language used for creating dynamic websites and interactive web applications.
The acronym PHP originally stood for Personal Home Page, but as its functionality grew this was changed to PHP: Hypertext Preprocessor.
WHAT WE LEARN IN THIS TUTORIAL:
1. Select PDF Documents from PHP MySQL database and show them in gridview.
2. Save PDF documents in mysql database.
3. Android PHP MySQL tutorial.
4. Android PHP MySQL GridView tutorial.
5. Android PDF Viewer example.
7. Fast Networking Library mysql.
Let's start.
Комментарии