Sometimes you see some very good layout, will consider how others realize, recall reference, then it is necessary to decompile. Tools to use Apktool.bat and Aapt.exe and Apktool.jar (to the latest version) download the top two URLs are http:// Apktool.shoujifans.com/apktool.jar requirements is the latest version, so to the official website to download http://ibotpeaches.github.io/Apktool/if too troublesome, go to my web site download, packaged. Download link http://download.csdn.net/detail/u0103
This method is used by the shell and makefile combinationWallpapers: = $ (Shell ls packages/apps/hyst_apps/newbingolauncher_c/default_wallpaper_config/)Product_copy_files + = $ (foreach wallpaper,$ (wallpapers), $ (if $ (findstring customized_config,$ (wallpaper)), \packages/apps/hyst_apps/newbingolauncher_c/default_wallpaper_config/$ (Wallpaper): system/$ (wallpaper), \packages/apps/hyst_apps/newbingolauncher_c/default_wallpaper_config/$ (Wallpaper): system/wallpaper/$ (Wallpaper) ))The first s
This method is used by the shell and makefile combinationWallpapers: = $ (Shell ls packages/apps/hyst_apps/newbingolauncher_c/default_wallpaper_config/)Product_copy_files + = $ (foreach wallpaper,$ (wallpapers), $ (if $ (findstring customized_config,$ (wallpaper)), \packages/apps/hyst_apps/newbingolauncher_c/default_wallpaper_config/$ (Wallpaper): system/$ (wallpaper), \packages/apps/hyst_apps/newbingolauncher_c/default_wallpaper_config/$ (Wallpaper): system/wallpaper/$ (Wallpaper) ))The first s
BKJIA Editor's note: Android consists of four main components: Activity, ContentProvider, Service, and Intent. To run Android files, you need to read and write files from four components. This article describes how to read and write Android
There are four main components of Android: Activity, ContentProvider, Service, intent. The operation of the Android file mainly requires reading and writing four components of the file. This article will show you how to read and write Android files and want to be helpful to friends who are developing
Some time ago, I processed Android music file information. I checked online and found that the Android system provided mediascanner, mediaprovider, mediastore, and other interfaces and provided a set of database tables, share content to users through content provider. Description: [Android data is private] data can be shared through the content provider method. I
()); outputStream.close(); } catch (Exception e) { e.printStackTrace(); }
Running result:
The internal storage directory of your app is marked by the package name of your app and stored in the specific directory [data/com. example. xx] of the Android file system. Technically, if you set the file to readable, other apps can read your internal file. However, other apps n
following resources:
Res/drawable: generally used to store image resources. Such as logo.
Res/layout: layout file.
Res/values: stores strings, such as program names.
However, Android can also use other types of resources. Three types are introduced today:
Res/xml: stores xml files. Similar to the aforementioned resources, the resource files
export the file by clicking on the "Floppy left arrow" icon in the upper right corner of File explorer. The first parameter of the Openfileoutput () method specifies the file name, cannot contain the path delimiter "/", and if the file does not exist, Android automatically creates it. The created file is saved in the/data/data/ If the file is too large to be stored on the phone's file directory, it needs t
directly call the File.delete () method to delete. If the file is stored on an internal store, you can also call the Context.deletefile (String name) method class to delete the file.When the user uninstalls your app, the Android system will delete your files: 1, all files stored
or classes, but also try to make the program readable. So we can also merge dataactivity and filebuttononclickevent. Start the simulator and deploy our program. Enter the file name and content, and click Save. Where is the file stored on Android? We know that android is implemented based on Linux. So its root directory is "/", and our
use the system to call syslog To retrieve these messages. You can use the dmesg tool or the klogd daemon to retrieve these messages. Proc is a memory file system. Each time you read a file, kmsg is actually a circular buffer inside the kernel. After each read, the circular buffer is considered to have been processed (that is, it turns into invalid content), so it is normal for you to read it empty again. Why is it so much like this? The circular buffer size is limited, the kernel may write some
following resources:
Res/drawable: Usually used for storing picture resources. such as logo and so on.
Res/layout: Layout file.
Res/values: Store string, such as program name.
But Android can actually use other types of resources. Today we introduce 3 types as follows:
Res/xml: Store XML files, similar to previous resources, the resource files
Resources in Android refer to non-code parts and external files. This document provides a detailed overview of resource usage. For more information, see
Resource Access in Android
Resources in Android refer to non-code parts and external files.
Generally, native
the public files to the external store:
Copy Code code as follows:
Public File Getalbumstoragedir (String albumname) {
Get user's public picture directory
File File = new file (Environment.getexternalstoragepublicdirectory (
environment.directory_pictures), albumname);
if (!file.mkdirs ()) {
LOG.E (Log_tag, "Directory not created");
}
return file;
}
2. Proprietary files
access to resources in Android
The resources in Android refer to the non code part, which refers to the external file.
Assets are typically stored in native files, such as MP3 files, and Android programs cannot be accessed direct
1, File cachedir = Context.getcachedir ();The application internal storage (data file private) file is stored in this path, do not need to request permission, when the application is uninstalled, the files in the directory will be deleted.It is important to note that the directory of this file is related to the storage location of the application,When the application is moved to an external storage device,
InAndroidProjectFolderThe main resource files are stored in res.FolderThe following describesFunctionFor more information, seeAndroidProjectFolderThe main resource files are stored in res.FolderInside1: assetsFolderIs to store native files without compilation and processing,
export the file by clicking on the "Floppy left arrow" icon in the upper right corner of File explorer. The first parameter of the Openfileoutput () method specifies the file name, cannot contain the path delimiter "/", and if the file does not exist, Android automatically creates it. The created file is saved in the/data/data/ If the file is too large to be stored on the phone's file directory, it needs t
private to the program, and you do not need to go through the android permission check when accessing it, you can still directly access it using Java I/O APIs. The so-called non-private data is only files or data stored on sdcard,
You can use Java I/O APIs to directly open files on sdcard.
1. filereader file = new f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.