|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/android-mysql-retrofit-crud-with-search-and-pagination/
课程评论:没有评论
课程名称:Android MySQL Retrofit2 Multipart CRUD, Search, Pagination 课程概述: 本课程旨在教授如何使用Retrofit进行MySQL的CRUD操作,包括多部分图像的上传和下载。数据处理在软件开发中至关重要,尤其是在开发应用程序时与数据库的交互显得尤为重要。课程的创作者在肯尼亚内罗毕为多个非政府组织开发应用,因此希望通过这门课程简化MySQL的操作,并创建一个高效、实用的HTTP请求解决方案。 主要学习内容: - 如何执行所有CRUD操作:插入、选择、更新和删除数据。 - 快速的服务器端搜索与分页。 - 使用Retrofit作为HTTP客户端,在后台线程中执行HTTP请求。 - 编写面向对象的优质PHP代码,以便Java背景的学生能够轻松理解。 - 设计并实现应用的引导页面、仪表盘、详细页面、数据录入页面和列表页面。 - 创建可重用的真实世界应用模板,供初学者修改和使用。 - 实时编码整个应用的过程。 教学风格: 课程预计不需要学生具备应用开发经验,只需能够安装Android Studio即可,适合初学者和中级开发者。授课采取逐行编码的形式,并对每个方法逐步讲解,确保学生能够跟上学习进度。 课程完成后,您将能够创建涉及CRUD操作的应用。课程中提供的模板可以有效地用于各种MySQL或Firebase应用,确保您所开发的应用能够可靠运行,并能流畅处理大量数据。此外,课程中还将教授如何处理异常情况,并优化应用性能,确保其响应迅速。 技术内容: - Retrofit:作为HTTP客户端,简化网络请求与JSON数据映射,避免了直接使用JSONArray和JSONObject。 - RecyclerView:强大的适配器视图,灵活处理分页。 - CollapsingToolbarLayout:提供良好的用户界面设计。 - LovelyDialogs:用于处理异常和警告的美观对话框。 - Calligraphy:用于加载自定义字体,提升应用的视觉吸引力。 支持服务: 课程创作者有丰富的YouTube教学经验,愿意为学生提供支持,并欢迎反馈以不断改进自身的教学质量。
LATEST PROJECT - Retrofit CRUD Multipart Image Upload/DownloadMaking any type of Software is all about data manipulation, be it pixels, images, text. Being able to write to and read from a database is therefore of paramount importance if you desire to create any meaningful app. Unfortunately there are surprisingly not many android tutorials online that give you an all in one solution for this.I have been making apps for several NGOs here in Nairobi,Kenya and mostly I use MySQL, sometimes Firebase. Hence I have decided to produce a course to make working with MySQL and performing HTTP requests as easy as possible yet robust enough to be used in production.Main Things You Will LearnThis course aims to teach you the following:How to Perform all CRUD operations against MySQL: INSERT SELECT UPDATE DELETE.How to perform a fast server side search and pagination.How to use retrofit as all in one solution HTTP Client to make HTTP Requests in the background thread.How to write Object Oriented quality PHP code to perform CRUD, search and pagination for students coming from Java background who find most PHP code in the web weird and dirty looking.How to design and incorporate splash screen, dashboard, detail pages, data entry pages and listing pages into a an app.How to Create a reusable real world app template that can be modified by inexperienced programmers.The process of coding a full app in realtime.My Style of TeachingI have done many tutorials in YouTube in Java,Android and C# mainly, so am able to take students through a full course, covering everything, emphasizing important part yet moving at an amazing peace.My courses assume no experience at all in app creation. Maybe my only assumption is that you can install android studio. Hence beginners can find this course very important. Intermediates can also benefit from this course as we cover several intermediate topics like Making HTTP requests and achieving pagination and search highlighting.We code line by line and at the same time narrate and explain. We explain method by method.What Can I create after this course?Any app that involves CRUD. Your imagination is your limit.For example recently I have used this template to create for a client an app. I will also be using this as a template to create other mysql apps as well as Firebase. Hence if you follow this course keenly, you will be able to create any type of app that involves CRUD.Your app will be able to perform reliably in production. Your app won't crush as we have handled exceptions reliably. For example if there is no connection or user enters wrong data. A beautiful dialog gets shown to the user informing of him of the error.The app will be very fast, no matter how many hundreds of thousands or millions of rows you have. This is because the app doesn't download all data at once. Instead short HTTP requests are made as the user scrolls through the recyclerview. The pagination takes place at the database engine level which is heavily optimized. The client downloads just a small chunk of data weighing a few bytes.Your users will be able to take advantage of a search feature that doesn't slow your app. This because the search also occurs at the database level. This is a multi-column search, hence you can add as many columns in as you want. I have used two columns as an example in this app.What if I don't know PHP? How will I maintain the app?Well you are in luck. The PHP code is the easiest to understand code you will ever find especially if you are a Java/C#/Python developer. It's completely Object Oriented and is written in a single file. That file has only two classes. One class where you add the database credentials and the other class performs all the CRUD operations. All you will need to do is replace the table name and database name.What Technologies does this course teach and Why?The technologies that we use to create this simple app. And we cover them in a practical manner by coding.1. Retrofit We use it as our HTTP Client. It takes advantage of GSON as a dependency, using it to map our JSON data to our model classes. Thus this saves us from having to use JSONArray and JSONObjects to parse our JSON data. Moreover Retrofit allows us uniquely map our HTTP requests using an interface. This gives us a higher level of abstraction and makes our code maintenable and clean.We use it's enqueue method to queue and asynchronously send our HTTP requests. Thus we are liberated from having to deal with AsyncTasks here and there.Retrofit also allows us abstract our response from the server easily in a response model class. Moreover handling of Failure is abstracted away for us, thus we only have to log or show the exception message. No more try-catch blocks.2. RecyclerViewIt's the most powerful adapterview in android. It's more powerful and flexible than ListView. We rely on it's onScroll events to do our pagination.We will use it almost all our upcoming courses.3. CollapsingToolbarLayoutIt's great and beautiful. It allows us show an image on top. It gives our app material design feel.4. LovelyDialogsRather than showing exceptions and warnings in toasts, we use the lovely dialogs. I will use this library in many of my upcoming courses. It's beautiful and is easy to wrap in a utility method that can then be invoked from anywhere.Moreover it gives almost 4 dialog options: info,single-choice,multi-choice and input. It allows us easily align the dialog contents, control number of buttons shown, assign custom dialog images and handle onclick events.5. CalligraphyFor your app to dominate play store you need the app to feel and taste nice. Fonts will make massively help with that. However not old fonts like sans serif and Times New Roman. We need custom fonts. Those you can download from the web.Calligraphy is the best custom font library. I show you how to use it to load any font throughout your app or in individual widgets.Do you provide support?Obviously. I come from a YouTube background so am used to providing support to my students. I also welcome suggestions to improve myself as I enjoy learning, sharing and growing.