Android implements the video client app step by step (1)
I have developed a complete video client app. Now, I will share it with you for beginners to learn. (You don't have to watch it. It's relatively simple. It's just for beginners ), exchange and learn from each other. There are some functions of the project, and I am not a lot of time. I can only update them from time to time. I can only explain how to implement it step by step and relevant knowledge points. You can check the relevant information on your own. I will also use it in many places. I want to tell you a specific principle or something, but I cannot tell you clearly, and I have limited ability to express myself. You can only look at it.
Also, let's talk about how to add advertisements to the advertising platform, publish the market, and obtain revenue (To be honest, my app, add advertisements, basically no revenue, let's talk to our new friends about this. Of course, if your app is creative, well-developed, with a large volume of downloads and a large number of users, it is easy to get rich with an app.
The interface can be obtained at will, but the artist won't. Let's take a look ,:
1. png(533.08 KB, downloads: 0)
Download the attachment and save it to the album.
Upload 15 minutes ago
2. png(1.44 MB, downloads: 0)
Download the attachment and save it to the album.
Upload 14 minutes ago
3. png(834.21 KB, downloads: 0)
Download the attachment and save it to the album.
Upload 14 minutes ago
Note: video resources are sdks provided by the open platform. According to the official api documentation, you can easily obtain the corresponding data, which is more convenient. (56 video open platform ).
1. register the 56 video open platform account, create an application, obtain the application id and secret key, download the android sdk, and decompress the sdk. You can see the detailed help documentation and instructions.
2. Open eclipse to create a project. My project name is MyVideoPlayer, and the app name is video, and the package name is com. hck. videoplayer.
Copy the package in libs in the decompressed file to the lib file of the project.
3. Introduce outsourcing lib library files. To put it down, because there are many video formats for resources, the android native sdk cannot support so many formats, so here I use an open-source video playing library, supports basic video formats.
Download the package, decompress it, import it to eclipse, and click the project we created -- Right-click, properties, android, add, and click the library file we imported, and then click OK, OK
5. png(49.71 KB, downloads: 0)
Download the attachment and save it to the album.
Uploaded half an hour ago
4. Create a new feature module package.
I will create the following packages here. you can create your own packages as needed. Ui package, place activity; adpter package, place adpter; bean package, place our object;
Data Package, some global data, and so on; interfaces package, place interface; util package, some tool classes; widge package, some custom views;
. Net Package, and network-related. After creation
7. png(21.44 KB, downloads: 0)
Download the attachment and save it to the album.
Upload 17 minutes ago
The preparation is basically complete. Let's talk about it today. Let's continue later.