Sưu tầm từ link này: http://android.stackexchange.com/questions/41146/creating-app-and-swap-partition-for-android?rq=1 /system : This is mounted read-only in normal mode, and the place where "the system" is installed (Android core apps plus most of the pre-installed "bloatware"). No matter if it shows "220 MB available", as a normal user cannot make any use of that "free space" internal storage ( /data ): This is where the user installs his apps, and where all the user data reside. Most crucial part, and the place where your report states "11 MB free" -- which most likely will trigger the "insufficient memory" error, see insufficient-memory ). To free up space here, you can do things like... uninstall apps you once installed but no longer need (most efficient part) move apps to SDCard (see app2sd ). Apps must explicitly support this (though there are root-methods to enforce the others, it might have side-effects). Still,...
an Administrator Interface Introduction In the first three tutorials, we have developed a MVC component that retrieves its data from a table in the database. Currently, there is no way to add data to the database except to do it manually using another tool. In this tutorial, we will develop an administrator section for our component which will make it possible to manage the entries in the database. Creating the Basic Framework The basic framework of the administrator panel is very similar to the site portion. The main entry point for the administrator section of the component is admin.hello.php. This file is identical to the hello.php file that was used in the site portion except the name of the controller it loads will be changed to HellosController. The default controller is also called controller.php and this file is identical to the default controller in the site portion, with the exception that the controller is named HellosController instead of HelloController. This difference is...
Model-View-Controller Component - Part 3 - Using the Database Introduction In the first two tutorials, we showed you how to build a simple model-view-controller component. We had one view which retrieved data from a model (which was created in the 2nd tutorial). In this tutorial, we will be working with the model. Instead of the data being hard coded in the model, the model will retrieve the data from a table in the database. This tutorial will demonstrate how to use the JDatabase class to retrieve data from the database. Retrieving the Data Our model currently has one method: getGreeting(). This method is very simple - all it does is return the hard-coded greeting. To make things more interesting, we will load the greeting from a database table. We will demonstrate later how to create an SQL file and add the appropriate code to the XML manifest file so that the table and some sample data will be created when the component is installed. For now, we will simply replace our return statem...
Nhận xét
Đăng nhận xét