I used to think that the service is a backgroundProgramIn fact, it is not. The service is just an activity without interface. If time-consuming operations are put in onstart, it will throw
ANR (no response) error. If you want to keep running in the
The common method for saving logs in Chinese medicine projects is to use Android logcat to save logs, as long as the service is copied from the Internet to the project, it can be used. At the beginning, I also did this. In the case of few logs, it
Get File Size
Public static final int max_attachment_upload_size = (5*1024*1024 );
File file = new file ("/sdcard/default/aaa.txt ");
Long size = file. Length (); // get the file size, in bytes
If (size> email. max_attachment_upload_size) //
Recently want to get examples of Android waterfall stream, online looking for some examples, I feel too much trouble https://github.com/dodola/android_waterfall
So I wrote
The most obvious feature of the so-called waterfall stream is that the width
A few days ago, my boss told me why we didn't sell a product to others. I read this article and understood it.
Http://www.36kr.com/p/44964.html
Gartner's latest report said that Android phones surpassed the iPhone in terms of shipments with a
Transfer http://wang-peng1.iteye.com/blog/523869
In gradientdrawable1's attempt, I finally learned the shape. I used to understand it clearly. Now I finally figured out what was in it. I also admired Google's intentions and deliberately set some
Common OpenGL ES APIs:
Gl_triangle_strip: continuous triangle drawing
Gl_triangle_fan: triangular slice
Glclearcolor (0.f, 0.f, 0.f, 1.f); // set the background color of the mode window. The color is the rgba value.
Glviewport (0, 0,
We learned how to draw 2D polygon last time. We can use OpenGL to draw some images through vertex data, but we can see that the images we draw are all monochrome. we can imagine that we didn't color the images.
There are two ways to color the image:
Five Alarm types:Public static final int elapsed_realtime
// When the system is sleep, this type of alarm will not wake up the system. It is not passed until the system is wake up next time. The time used for this alarm is relative time, starting
Integrate javascript API documentation into Android projects, which is simple and practical. At this time, you can no longer use the original UI. With HTML + JS + CSS, you can make various UIS.
It should be noted that, using this method to develop
Neighboringcellinfo. aidl
Package Android. telephony; parcelable neighboringcellinfo;
Itelephony. aidl
/* * copyright (c) 2007 the android open source project * licensed under the Apache license, version 2.0 (the "License"); * you may not use
There is such a situation that you have never met.
We want to internationalize Android resources, but sometimes we need to dynamically change the content of the string. You cannot write all the situations to string. xml.
What should I do?
Suppose we
Writing efficient code should be the goal pursued by every programmer and an important factor to improve their coding capabilities.
However, it is not easy to achieve this. It requires long-term accumulation, consideration, and practice.
Favorite
[Thanks for reference]: http://mukeshyadav4u.blogspot.com/2012/06/integrating-zxing-qr-code-scanner-into.html
Using the connection method, I found that no result is returned after the reading is successful, and then I checked the source code. The
[This article lists the obtained information and uses the right as a record]
1. decompress the software. In this article, we use WinRAR: Decompress xxx.apk to obtain classes. Dex.
2. Download dex2jar from the https://code.google.com/p/dex2jar/ and
To use SSL on Android, the first step is to generate a certificate.
1. Certificate generation
1.1 generate a server certificate
keytool -genkey -alias test -keystore test.jks
1.2 export the CERT in the keystore to generate the client Verification
Post: http://zouyuefu.wordpress.com/2011/04/02/android%E5%BC%80%E5%8F%91%E5%B8%B8%E8%A7%81%E9%97% AE %E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3/
1. illegalargumentexception: view not attached to window manager form leakage: solution: Define the UI
The encoder uses the x264 open-source library,
Easy to understand
A jni library is encapsulated
The csdn resources of the encoding library in BBS are too difficult to use.
Http://www.eoeandroid.com/forum.php? MoD = viewthread & tid = 52739 &
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