During Android development, every time startservice (intent) is called, The onstartcommand (intent, Int, INT) method of the service object will be called, and some processing will be done in the onstartcommand method. Then we noticed that this
Download the official Android 4.2 Documentation in chm format
Author: chszs, reprinted with note. Blog homepage: http://blog.csdn.net/chszs
A fan made the android 4.1 official document into a CHM, just like the jdk chm, which makes it extremely
Source code of the h264 decoder, port the h264 decoding part of FFMPEG to Android, perform in-depth deletion optimization, and pass the verification in the simulator (320x480.
ProgramJNI architecture. The interface, file reading, and video display
I. Basic usage of framebuffer:
1. linux is working in the protection mode, so user-mode processes cannot use the interrupt call provided in the graphics card BIOS as DOS to achieve direct screen writing, linux abstracts the framebuffer device for
If you describe a project in a language that seems pale and powerless, I just let him see what he sees and what he sees is what he gets. As shown in:
1. The project diagram is as follows:
2. Add shrotcut as follows:
3. After the shortcut cut is
Tasks, processes, and threadsThe components and Applications in Android are mostly static. When an application runs, it will inevitably need to care about the concept of processes and threads. In Android, the most distinctive concept in the Dynamic
Locationactivity. java/* locationactivity. java * @ author octobershiner * 2011 7 22 * se. hit * a code that shows how to locate a user and listen for location changes **/package uni. location; import android. app. activity; import android. content.
Document directory
1. multi-thread writing. Use a sqliteopenhelper. This ensures that a sqlitedatabase is used in multiple threads.
2. multi-threaded writing. Multiple sqliteopenhelper may cause an exception during insertion, resulting in an
In Android, you can play a video in three ways:
1. Use its own player. Specify action as action_view, data as Uri, and type as its MIME type.
2. Use videoview for playback. In the layout file, use videoview and mediacontroller to control it.
3. Use
I use liunx (UBUNTU) as an example:
1. Create an SD card image file
1) Open the terminal to enter the android SDK directory tools directory (such as my path is/home/XXX/android_install/android-sdk-linux_x86/tools );
2) Run mksdcard creation: root @
Document directory
Core server code:
Core client code:
We completed the "android entry: communicating with the server through XML data" function, but data transmission uses JSON instead of XML;
Note:
(1) When JSON is returned, the Content-Type
Articles that have been found for a long time
From: http://archive.cnblogs.com/a/2265135/
First: viewflipper + gesturedetector;
Second, rewrite the viewgroup to manage the view;
Third: Use the viewpager that comes with the system.
As for the first
To sign?
So many people develop Android, it is entirely possible that everyone will put the class name and package name into the same name. How can we distinguish this time? Signatures are differentiated at this time.
Because the developer may use
Android receives and sends text messages1. Android sends text messagesThe android API provides the smsmanager class for text message processing. The sendtextmessage (Num, null, content, pend, null) function is to sendText message method. The first
The following is a real working solution which will scrollWebViewOn a horizontal swipe as long as it can scroll. IfWebViewCannot further scroll, the next horizontal swipe will be consumed byViewPagerTo switch the page.Extending
WebView
With
Http://www.blogjava.net/caizh2009/archive/2010/06/11/323342.html
The most comprehensive collection of android development materials in history
This is the information I have collected from various places and uploaded to my resources for you to
I recently took the time to study Android system development and I am also interested in Android learning. At the beginning, I tried to find several project source codes on the Internet, the following lists the Android project source code. I hope it
Background:When the android source code is obtained in a Linux environment (the virtual machine is virtualbox,
Run the following command: repo init-u git: // android.git.kernel.org/platform/manifest.git:Fatal: unable to look up
Document directory
Shell script or Python?
Bootstrap and real Repo
The repo Bootstrap script calls init to complete the first-stage initialization only.
Second-stage repo init
Related posts
This article Reprinted from: http://www.worldhello.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service