Transfer from HTTP://WWW.JIANSHU.COM/P/54902270249DPredecessors to organize some of the common Android Developer Web site, prepare a copy for future use, thank you.Website
Android Developer
Android website Domestic image
Problem descriptionVideo capture using V4L2, capturing video data with a resolution of (4:3) and previewing the image on an Android device using the Canvas,drawbitmap methodAndroid Device resolution is 540x960 (9:16), so the full screen preview when the image is stretched, how to solve this problem?No train of thought Ah, which great God Guide!!Here is the code of the picture, the gods help to seePublicvoid
The steps for calling camera preview in Android are as follows:
1. surfaceview Problems
//Define objectPrivateSurfaceview photoview;//Surfaceview object: (view component) Video DisplayPrivateSurfaceholder photoholder;//Surfaceholder object: (abstract interface) surfaceview support ClassPrivateCamera camera;//Camera object, camera Preview
//Surfaceview object
perfect solution to solve Android using zxing scan QR code changed to vertical screen, after the preview screen appeared stretched, distorted situation
First step: Findcom.zxing.cameraUnder the bagCameraConfigurationManager.javaIn the filevoid initFromCameraParameters(Camera camera)MethodStep two: InLog.d(TAG, "Screen resolution: " + screenResolution);Then add the following codenew Point();screenResolut
This example describes the solution to the problem of rotation in the preview screen when calling camera in Android programming. Share to everyone for your reference, specific as follows:
When calling camera write applications, the front and back camera situations are sometimes different. Sometimes, obviously after the camera is no problem, and call to the front camera, but reversed 180°, or other angles,
How Android displays custom fonts in the idea Eclipse UI Editor Preview
The font to be displayed will be copied to. Android-sdk/platforms/android-[version]/data/fonts folder below For example: Fontawesome-regular.ttf
Under Android-sdk/platforms/
Original URL: Http://stackoverflow.com/questions/24865120/any-way-to-implement-ble-notifications-in-android-l-previewThis question are not on Android Notificatinos, but BLE notifications (as the title may hint)I have got basic BLE peripheral mode working on Android-lIs there an any-to-implement BLE notifications in Android
the following skills:First, the tool OK (can be built independently of the development environment with the help of the installation guide). With a well-developed eclipse, you can build your Android project in good condition and work properly.Second, basic skills OK. With Java and Android development knowledge, can read code, can carry out basic development.7. How to advance after getting started?Once you
Android high-imitation photos, multiple choice, preview, and delete (remove photos) album functions
First, it is better to declare that it is better to teach people and fish than to teach people and fish. Only one idea can be provided. Of course, if you need the source code, you can ask me the source code privately for a fee: QQ: 508181017.
After nearly three years of work, I have never been able to take
Rendering problemsFailed to load the layoutlib:com/android/layoutlib/bridge/bridge:unsupported major.minor version 52.0The above error indicates that the version number is not supported, and the version number can be reduced. As API24 API23Problem compilation error in JDK version 1.7Build.gradle in lower version from 24.2.1 to 23.2.1dependencies { Compile Filetree (include: [' *.jar ']) ' junit:junit:4.12 '' com.android.support:appcompat-v7:23.2
When Eclipse creates an Android project, you are prompted when previewing the Layout.xml file: This version of the rendering library was more recent than your version of ADT plug- In. Please update ADT plug-in, resulting in the inability to preview the layout file properly.The source of the problem is that the SDK version does not match the ADT version. The problem is resolved as follows:Method One:Find the
official website
Android Developer
Android Training Chinese version
Android API Chinese Version
Android API Guide Chinese version
Android Design Guide Chinese version
Material Design Chinese version
combined with the AVD system to simulate the target device. But complete testing on real physical devices is essential, and the simulator is powerful, but it cannot emulate the characteristics of a single device. Therefore, a solid test plan must include simulators and real-world devices. After all, your users will not be able to run your app emulator, right?
Android Tools #6:logcat
Logcat is the name of the
Error Reporting:Exception raised during rendering:java.lang.System.arraycopy ([Ci[cii) VException details is logged in Window > Show View > Error LogProblem Analysis:Enter the XML source file to find a warning, prompted to add inputtype or hint elements, add after the interface still can't preview ...Take a closer look at the currently used API level API 20:android 4.4W, which is an API for wearable devices
Reprint please indicate source: http://blog.csdn.net/lmj623565791/article/details/39480503, this article from: "Zhang Hongyang's Blog"The previous article has been taken to achieve the freedom of zooming in and out of the picture, a brief introduction of the next matrix; for details, please refer to: Android gesture detection to create a picture preview that supports zoom panning (top); This article continu
After Android uses Zxing to scan the QR code and change it to a portrait screen, the preview screen is stretched and distorted.
Perfect solution: After Android uses Zxing to scan the QR code and changes it to a portrait screen, the preview screen is stretched and distorted.
Step 1: Find
com.zxing.cameraPackage
Camer
official website
Android Developer
Android Training Chinese version
Android API Chinese Version
Android API Guide Chinese version
Android Design Guide Chinese version
Material Design Chinese version
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.