android152 Notes 2

Source: Internet
Author: User

What is the difference between padding and margin in the UI? Padding the text to the border, margin is the control to the parent form.

 A view to display in the interface  OnDraw is displayed on the interface.  29. Please explain the relationship between message, Handler, message Queue, Looper in the single-threaded model. Inside the main thread there is a looper loop that iterates over the message queue, and the message contains handler to process the message.

30. What is the full name of Aidl? How does it work? AndroidInterfaceDefinition language (Android Interface Definition Language), a method used to access remote services across process access methods. One as the client one as the server side. The IDL inside Java is a way for Java to access across processes. Aidl inside is an interface, the server has a aidl file, and will generate the corresponding Java file, in the Onbind method returns the Binder object implemented this interface, the client will get to implement the interface object, you can call the object inside the method, The client will also have aidl files and corresponding Java files. Implement the Pacelble interface when passing complex type objects. How to work Day7 querystudent. Phone defender Itelephony interface hangs up the phone. 31please explain the difference between the Android program runtime permissions and the file system permissions. Android program execution needs to read to security sensitive items must be declared in Androidmanifest.xml related permission requests, call, access network, get coordinates, read and write SD card, read and write contacts, etc... The user will be prompted when installing ... the permissions for the drwx file system are Linux permissions. For example, sharedpreference inside the Context.mode.PrivateContext.Mode.world_read_able context.mode_world_writeable 777 own group other32There are many browsers installed on the system, can you specify a browser to access the specified page? Find the corresponding browser's intent filter, pass the data URI, activate this intent Intent Intent=NewIntent ();       Intent.setclassname (PackageName, className); Intent.seturi ()33use and understanding of the main thread of Android. The main UI thread cannot perform time-consuming operations, Service,content provider,receive,activity These are running on the main thread that cannot perform time-consuming operations, activity5 seconds, receive10 seconds, service20 seconds, Content provider5 seconds. 

android152 Notes 2

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.