Questions about Android technology and careers are welcome.

Source: Internet
Author: User


Blog from: http://blog.csdn.net/liuxian13183, reprint annotated source! All Rights Reserved!


Recently some time, but QQ Group asked more questions, can not answer each, if there is value, please come to this article comments below the question,


I will reply in time, and the essence of the part included in to help more people, thank you!


1, the introduction of the students can first look at the environment configuration,

Android Primary First talk---the configuration of the Android development environment
then download the Android demo study,

Demo for Android API

then look at the beginner-intermediate-advanced, to the lower-level code in the blog category and other categories, others do not understand, to blog under the comments.

2, PHP learning, http://phpbook.phpxy.com

3, answer Csdnblogger asked-about the timing and background service issues: http://blog.csdn.net/reboot123/article/details/52597333

4, answer Csdnblogger asked-about Android and development issues: http://blog.csdn.net/reboot123/article/details/52604824

5. Answer Csdnblogger questions about career development and team management: http://blog.csdn.net/reboot123/article/details/52605165

6, answer Csdnblogger asked-about VR to replace the Android problem: http://blog.csdn.net/reboot123/article/details/52605470

7. The Devil's Economics: http://freakonomics.com/archive/

8, inary XML file line #8: Error inflating class fragment XML files fragment path Yes, the way to look at it is right

Analysis: This kind of problem is most anxious, obviously design is correct, but compile failed

Answer: Often the compiler tool does not recompile, clean a bit to solve the problem, it is recommended to use Android Studio more than eclipse useful

Conclusion:inflate error. Before loading, the activity transforms your XML file into a view through the inflate tool, which is set to the activity, in fact the window layer, so that the user can see the interface you set.

It can be understood that: The XML file is the configuration file of the view, inflate is to re-draw the view in the XML configuration, with the human gene cloning a person, because there are rules, so you can directly get the results of the rule set.


9. encrypted transmission, sever sends a data to the client (public key certificate and hash value), the result I intercept, will change A to B data (public key certificate and hash value); The client sends data to sever, I take the private key to decrypt the data, and then use public key A to encrypt it. Send it to sever; feel completely insecure!

Reason: The above ignores a data, is the random code, followed by the encryption algorithm. Key = Public key * Random code, data = key * Parameter string, even if you know the public key, do not know the private key, in principle, also can not get the real random code, and each transmission of data, must be key encryption, sever will be recognized; if the random code changes every few minutes, the cracked people more crazy (from The session failure mechanism is linked to the thought). So the HTTPS request is secure.

The key to HTTPS encryption is the algorithm, the RSA algorithm is an asymmetric cryptographic algorithm, so-called asymmetric, that is, the algorithm needs a pair of keys, using one of the encryption, you need to use another to decrypt. RSA's algorithm involves three parameters, N, E1, E2. where n is the product of two large prime numbers p and Q, and the number of bits occupied by the binary representation of n is the so-called key length. E1 and E2 are a pair of related values, E1 can be arbitrarily taken, but require E1 with (p-1) * (q-1) coprime, then E2, request (E2*E1) mod ((p-1) * (q-1)) = 1. (N,E1), (N,E2) is the key pair. where (N,E1) is the public key, (N,E2) is the private key. [1] RSA plus decryption algorithm is identical, set A is plaintext, B is ciphertext, then: a=b^e2 mod n;b=a^e1 mod n; (Public key cryptography, public key encryption, private key decryption) E1 and E2 can be used interchangeably, namely: a=b^e1 mod n;b=a^e2 mod n;

MORE: http://blog.jobbole.com/48369/

10, how to learn the ListView scroll to the bottom?

In the Onscroll method of the ListView, the Listener lastvisibleposition equals the items number minus 1, i.e. scrolling to the bottom

11, how to deal with the picture color?

If you want to reduce the image recognition, you can set the image ImageView Alpha value from 0 to 1, you can take a decimal, in turn, the recognition degree increased

Change the color of the picture, such as various filter effects, mainly by changing the RGB value to solve, generally through the matrix to operate relatively simple

MORE: http://blog.csdn.net/lpjishu/article/details/45533557


Questions about Android technology and careers are welcome.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.