To handle a wide range of resolutions and sizes.
For images, Android uses DPI as the unit. If you select an image, right-click the image under win and you will see the DPI attribute. The higher the DPI, the finer the image. For a mobile phone or display device, a pixel is a point, so DPI = PPI. In turn, it is often said that the height and height of the phone screen PPI are equivalent to the DPI value taken into account when writing a program.
The Ret
, please ferry or put your dog. Simply put, you can use it as a service that shares music, videos, and images between different devices. For example, videos on a computer can be played on a mobile phone, pictures on your mobile phone can be viewed on your computer. You do not need to copy any images. Of course WiFi is needed. If you only have a wireless network card and do not have a wireless route, you can use connectify to build a Wireless AP.Note:T
Tech blog TechCrunch published an analysis on Wednesday titled Matt BurnsArticleIn order to occupy the Android Market, many manufacturers have made great efforts to expand their product lines and launch cheap models.These low-cost hardware design shanzhai, short battery life, and many preset useless software, so the use time is short, and users are urged not to buy cheap Android
, URI, file, resource ID, and so on. Basically meet most of the needs. Although loading local pictures is not as complex as network pictures, I recommend using glide to load local pictures. Because it is memory friendly, but also "secretly" to help us do a lot of things. For example, memory cache, bitmap multiplexing, fixed photo direction, and so on. Of course,
Lead:Today's Android apps are mostly combined to take pictures and choose from albums (of course, this is the product dog thing, the beginning of the topic). )Today in the writing of a functional module encountered an embarrassing problem, the same is the photo to get the image function, on the colleague's Samsung run no problem, but on my mobile phone on a run on the system-level modification of the
In the development of Android applications, you may encounter similar friends in the circle of photos or albums to choose a picture of the scene, take pictures or select pictures in the display when the picture is not the angle, obviously is the vertical version of the picture, showing the absence of lying.This is because on some specific
} } } Catch(Exception e) {e.printstacktrace (); } }; }.start (); }}The configuration is ready to run and see the effect.Let's talk about the small details of the case.Because the picture if every time to load, every time from the Internet to read the data stream, display to the phone above, so it is easy to waste customer traffic, so the first visit can download
For pictures taken by calling the system in android, the returned image is rotated 90 degrees,
Reposted blog: http://blog.csdn.net/walker02/article/details/8211628
A problem encountered during project development: When Samsung's mobile phone was selected for mobile phone photos, the pictures were not displayed normally. After research, it was found that the
Multi-Touch (MultiTouch) refers to a technique that allows a computer user to control a graphical interface through multiple fingers at the same time. and multi-touch technology is a single touch, single touch device has been for many years, small size of the touch-type mobile phone, the most common in large size is the bank ATM and queuing query machine and so on.Multi-touch technology in the actual development process, the most used is the amplification function. For example, there are some pi
Reprinted blog: http://blog.csdn.net/walker02/article/details/8211628A problem encountered in the development of the project, Samsung mobile phone photos in the selection of images appear abnormal, the study found that should be mobile phone shots of the picture rotated 90 degrees, some pictures rotated 180 degrees, some phones are normal. In the forum found a method, you can get the properties of the pictu
Since basically all Android phones support images with a ratio of 4:3 and 16:9, sometimes the custom Surfaceview size does not meet these two proportions and will deform.Another situation is that the default previewsize and the ratio of our view will also cause deformation; the solution is from params.getsupportedpreviewsizes () Choose the appropriate proportions and then params.setpreviewsize (), at which
In a previous company to do an app inside the upload avatar function, then studied for a long time, found an article about the H5 Camera and album calls, so it solved the problem!! I record here so that some people need, can refer to!!!!The following is a complete HTML page content, placed on the server and then browse on it, only support chrome and Safari core browser, QQ browser, Chrome,safari browser can be. Different phones and browsers do not sho
phone is to swipe to the left, exit is to the right, in order to avoid some of the phone's default animation, you can start the page and exit the page after the code, add the following code, to avoid the default transition effectoverridePendingTransition(0, 0);The source code of the project I put on GitHub, welcome to view!Have any questions or discuss, please leave a message or contact me Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced
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.