This article describes two ways for Android studio to import zxing, for informational purposes only. 1. Direct Complie Import
1.1 Build.gradle Direct Complie of items that need to be scanned using zxing for two-dimensional code
compile '
Android Support library for scanning and identifying barcodesAndroid supports scanning barcodes. But there's no real machine in hand, and I can't understand whether the feature is an application or an API-calling feature. But find a free Open-source
If you have apk files that you want to run, but don't have Android devices, then Genymotion will be a good solution.
1, installation
Download Link: https://cloud.genymotion.com/page/launchpad/download/need to register an account on the official
This article is from the following two articles of the finishing summaryhttp://chinagdg.org/2016/01/picking-your-compilesdkversion-minsdkversion-targetsdkversion/http://www.race604.com/android-targetsdkversion/
Here is a simple introduction, the
Let's talk briefly about the use and value of Rxjava
Use: asynchronous (ie, thread jump)Value: In the face of complex logic, it is still concise , code easy to read
RXJAVA2 and Rxjava The biggest difference is flowable , this flowable replaces the
The app UI has multiple views, including edittext. after entering the interface, the focus automatically falls on the first edittext and a soft keyboard is displayed.
There are two ways to solve this problem:
1. Transfer the focus to another view:
Contract class)
The contract class defines some features that use content resource identifiers (URIs), column names, intent actions, and content providers to help applicationsProgramA constant of work. Contract classes are not automatically
Due to xxxx's browser business customization requirements, secondary development is required based on the android browser application. The following section uses the browser source code to share some problems and experiences encountered during the
1. Use ihardwareservice for direct control
Android1.5 previously provided this interface directly. Later, we need to do it ourselves.
Create a new Android. OS package in your project and create an ihardwareservice. aidl file. The content is as
Most of the time, the use of touch screen fling, scroll and other gesture (gesture) operations will greatly improve the user experience of the application, such as rolling the screen in the browser using scroll gestures, use fling to flip pages in
Exploration of positioning service (GPS) on Android platform)
Note: Do not forget to add permissions for all of the following operations:
Locationmanager
You can use locationmanager to locate, track, and approaching devices. It
For the neon version of xbmc-android compilation method, refer to the official documentation:
Https://github.com/xbmc/android/blob/android-rebase-11/docs/README.android
My target platform is hi3716c, and its CPU feature is: SWP half thumb fastmult
According to the previous introduction, surfaceflinger serves as a server process, and upper-layer applications (as clients) communicate with it through the binder method. Surfaceflinger, as a thread, is divided into three parts:
1. The processing
The following describes each layer:
* Blue part-user space application
The application layer, including the Android Application, framework, and system Runtime Library. The underlying layer is related to the system Runtime Library, and the display is
There are very few BT drivers on the Internet, so I recorded the steps during the development process. For mutual learning and discussion.
1. Migration of Bt DRIVER:
1. enableeffectch in boadconfig. mk
Board_have_bluetooth: = true
2. Implement
For more information, see:
How accurate is Android GPS? Part 1: understanding location datahow accurate is Android GPS? Part 2-consuming real-time locations
Google developer docs-location strategies
Android blog-deep dive into location
GPS testing
OkHttp custom retries and okhttp custom retries
This article mainly applies Interceptor of OkHttp to customize the number of retries
Although the retryOnConnectionFailure (true) method provided by OkHttp can achieve retry, it does not support custom
Android IJKPlayer has an error in buffer settings and after playing for a long time.
IJKPlayer dragging the playback progress will result in a new request for data without using buffered data. Therefore, you should try to control the buffer size to
Android N (API level 24.) discards Html. fromHtml (String), and adds an api discard warning to ios
From API level 24, fromHtml (String) is discarded and replaced by fromHtml (String source, int flags ).
Flags:
FROM_HTML_MODE_COMPACT: Use a
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