Open-source Android development framework ------- PowerFramework usage experience (1) general introduction,. netframework open-source
PowerFramework is a framework application that covers almost all basic Android functions. This framework is currently open-source and developers can perform secondary development based on this framework. With the developer's own uidesign, you can quickly develop Android applications with basic application functions.
Framework and DEMO file http://www.ideayapai.com/Application/Home/View/default/PowerFamily/index-2.htm
The complete framework provides the following main functions:
Serial number |
Function |
Main Category |
Remarks |
1 |
Asynchronous image loading |
ImageTask |
Asynchronous image loading. You can specify whether the image is cached or not. 1. cache-SD card, path configurable 2. Image Compression 3. Local and network images can be loaded 4. thumbnails can be displayed when the url is a local video file. 5. Chinese url image address FileNotFoundException Solution |
2 |
Built-in browser |
BrowserActivity |
Implement built-in browser functions. Encapsulate WebView implementation to complete basic browser functions. It must be referenced in the library source code, but not in the jar file format. 1. Title color and menu content can be configured according to Intent 2. Complete menu functions 3. Cookie synchronization with HTTPRequest |
3 |
Network request |
HTTPRequest |
Implement the network request function. Encapsulate the GET and POST methods, use Bundle to pass in request parameters, and return request data in onRequestOver. Note: Android 6.0 removes the HTTPClient of Apache, so the current source code does not support more 1. Both http and https are supported in the same way. 2. GET/POST are used in the same way 3. The cookie is automatically processed and synchronized with BrowserActivity to provide the clearCookie method. 4. Request Thread Pool 5. File Download 6. upload an uploadFile (used in a general state) 7. An error is returned in JSON format. error ex: {"status": false, "message": "network connection timeout "} |
4 |
Cache |
Cache |
Implements the cache of network requests without directly combining with HTTPRequest. SQLite is used for hard disk storage and Bundle for memory storage. Up to 50 memory caches can be cached. You can set LEN_MAX_MEMORY_CAHCE to modify the cache. 1. Memory and SQLite Cache 2. cache using NoSQL's key-value Idea 3. images can be serialized and cached. |
5 |
Run Linux commands |
CMD |
Run Linux commands. 1. It must be used with root permission to provide query methods 2. There may not be any returned information for success |
6 |
Database Operations |
DBFarmer |
Database operations, which are used in a similar way as FinalDB, but with more streamlined content. 1. Directly Save the object 2. Save the string 3. Force insert (ignore Object id) 4. Retrieve the object or object list directly from the database 6. select/update supports by item 7. delete data, tables, and databases |
7 |
Basic Activity |
BaseActivity |
We recommend that all the activities that reference this project inherit BaseActivty. 1. Standard Development: Control initialization in init and data initialization in initData 2. automatically process immersive title bars after 4.4 3. Network change monitoring 4. Call the exit () method at any time to exit the entire application. 5. Page gesture finish |
8 |
SQL connection |
MySQL |
Directly operate on MySQL on the server. This function is unavailable because the third-party server is suspended ). |
9 |
Breakpoint download |
BreakDownload |
Breakpoint download. The file is divided into multiple files, seek to different locations, downloaded locally, and then connected together. Reconnect is supported. |
10 |
Data Table View |
TableView |
The table view used to display complex data should be used in reference source code. In different modes (if choppy is found), you should set (switch) the model and setModel. 1. Multi-Level complex menus 2. sliding with the combination of horizontal and vertical ScrollView to achieve a large amount of data 3. Custom Complex menus 4. html tags are supported. 5. automatically calculate the row width |
11 |
Circular Image |
RoundImageView |
The circular image is used in the same way as ImageView. |
12 |
Tool |
See the com. rederxu. tools Package. |
1. ActivityUtils, convenient findViewById 2. Base64Utils, various Transcoding 3. BitmapUtils 4. DeviceUtils 5. Dialog: Custom dialog, available under reference source code 6. DisplyUtils to obtain information about the screen, and switch between the pix and dip. 7. FileUtils, file tools, and complete related operations 8. HanziToPinyin: converts Chinese characters to PinYin characters. 9. ImageUtils 10. IntentUtils 11. MathUtils 12. OpenFile: Use a local application to open various files 13. RegularUtils 14. The root permission is required for ScreenShotUtils, screenshots, and out-of-app screenshots. 15. StorageUtils, storage-related 16. StringUtils 17. UriUtils |
Welcome to the QQ Group for discussion: 575026537