Wednesday, April 23, 2014

Community Q & A Section 2: Where Deng Ping-depth understanding of Android


Current Community Q & A ( 4 February 21 - April 27 ), and we are honored to have invited senior level Android system experts dengfan answer for everyone to learn about the Android system, understanding, development other aspects of the issue, during which Deng teacher also on their latest masterpiece "in-depth understanding of Android: Wi-Fi, NFC and GPS volumes" to answer your questions with you to understand the realization of the principle Android Framework.



dengfan flat Senior Systems Engineer Android, Android system design and implementation for a very in-depth research, has served as Tieto senior software architect. Best-selling book "in-depth understanding of Android" series Producer and writer, has published best-selling book "in-depth understanding of Android: Volume I", "in-depth understanding of Android: Volume II" and "in-depth understanding of Android: Wi-Fi, NFC and GPS volume" and so on. Like research, willing to share, is active in a series of articles perennial CSDN community, authored Android Framework source code analysis by the readers.

Where Deng Ping teachers blog: http://blog.csdn.net/Innost/

interview dengfan flat: depth understanding of the Android development
interview dengfan flat: quickly learning Android development on the road Road


After Q, Deng Ping teachers who will be selected from all three participating and ask questions of friends, send the new "in-depth understanding of Android: Wi-Fi, NFC and GPS roll"



In order to create a better atmosphere quiz, we do not welcome any discussion with irrelevant, spray irrigation and no brain child.

We enthusiastically welcome the following questions, in reply to this post, participate in activities and ask questions to get 100 available points.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Do android development for three years, but all is the application layer, how to improve the technology?
Reply:
Ask a development question: To design a tachograph, but because of the limited storage capacity of the phone, wifi want to save data to the mobile hard disk, what is feasible? What protocol communication better?
Reply:
The reply was deleted administrator at 2014-04-21 11:30:57

Reply:
I was learning java recently wanted to learn android, I do not know what the teacher can give learning course, thank you
Reply:
Tang, I ask when reading Android source code, how evasive, often do not understand the total by some, but not the focus of the code is vague ~ Thank you
Reply:
Ordinary teacher, I have a surfaceView, directly in xml layout there, and then through findViewById found in the activity, whereas no new out. Under such circumstances, I am part of the machine debugging, sometimes did not enter surfaceCreated methods. I mi1 is ok, but m 2, htc it often appears not entered this method, what is the reason.
Reply:
Before I do embedded development and use of C for three years, want to turn android java-based application development Earlier able to vocational learning route? Thank you
Reply:
Deng teacher, I just graduated a year from the start of the android, has been developed to make the application layer, is now doing the set-top box. STB little information, how do I learn. I want to understand android, learning how the system. Seeking instructor ~ ~
Reply:
cited a floor qjbagu reply:
do android development for three years, but all is the application layer, how to improve the technology?

Hi: do not use no future, nor is it does not improve technology. The key question is what do companies make you oh.
This also requires a combination of your own interests to answer. Any technology, as long as the in-depth study, can be improved.

Reply:
reference to the second floor qiandayong reply:
ask developers questions: To design a tachograph, but because of the limited storage capacity of the phone and want to save data via wifi to move the hard drive, what is feasible? What protocol communication better?

Mobile hard disk? No system should be above Kazakhstan. Only the hard drive connected to the tachograph, the received data logger and then saved to the hard disk.
Is replaced by the hard phone memory. Are now moving into an USB hard disk, for recorder, it is an external USB storage.
It should be easy to achieve.
Reply:
I have linux Jiaoshu (including the boot, kernel, shell), do not know how to quickly transition to the android come here?
Reply:
reference to the 6th floor cclovescw reply:
extraordinary teacher, I have a surfaceView, directly in xml layout in there, and then found by findViewById in activity , without new out. Under such circumstances, I am part of the machine debugging, sometimes did not enter surfaceCreated methods. I mi1 is ok, but m 2, htc it often appears not entered this method, what is the reason.

My name is dengfan level. Ha ha. I did not plant, I'm afraid not help you. Have to rely on your own pondering, come on!
Reply:
Deng teacher Hello, can tell us about android memory optimization, performance optimization some experience and experience it? Thank you very much!
Reply:
Teacher Hello, I compile a ROM cm11, can not enter the second screen interface Brush (android logo screen, so I can not get log information), continue to reboot, or ask the system to streamline those in the kernel configuration step by step troubleshooting? Thank you, teacher
Reply:
Ask, Wi-Fi P2P itself has no security mechanism is used to ensure the trust relationship between the devices? In addition, the Bluetooth Special is now BLE and hot, Deng teachers have no plans to talk about Bluetooth?
Reply:
Deng teacher, I used cnavas drew two curves, can calculate the similarity between these two curves it? Or that there is a standard curve, and the other two curves to be compared, how to determine the most similar to that curve with the standard curve it?
Reply:
references, 4th Floor yhk215492323 reply:
I was learning java recently wanted to learn android, I do not know what the teacher can give learning course, thank you

There are many learning course. From the perspective of knowledge accumulation Look, refer http://blog.csdn.net/Innost/article/details/7648869
In terms of learning, reference http://www.csdn.net/article/2013-05-08/2815118
However, I still need to work requirements recommended to selected right direction.

Reply:
references, 5th Floor jianwang0412 reply:
Tang, Will read Android source code, how evasive, often do not understand the total by some, but The code is not the focus of the fuzzy ~ Thank you

This .... I recently read kernel code, also have this problem. No way in a short time is difficult to get a big picture, so you have to come in small steps, and then sum up and reflect. Learn what things look. For source code analysis, I believe that even at work, this is the only way to go.
Come on!
Reply:
reference to the 7th floor tpzhou_whut reply:
before I do embedded development and use of C for three years, want to turn android Earlier java-based application development Can you give a professional, learning course? Thank you

Brothers, embedded development is now the core technology of the future, why engage in the application? Do not penny wise, pound-foolish ah.
Applications are promising to engage in, but for you, then grasp the basic embedded knowledge, I think you can understand simple application development.
Or, you can learn programming on linux.
Reply:
reference to the 10th floor Innost reply:
Quote: references to the second floor qiandayong reply:

Ask a development question: To design a tachograph, but because of the limited storage capacity of the phone, wifi want to save data to the mobile hard disk, what is feasible? What protocol communication better?

Mobile hard disk? No system should be above Kazakhstan. Only the hard drive connected to the tachograph, the received data logger and then saved to the hard disk.
Is replaced by the hard phone memory. Are now moving into an USB hard disk, for recorder, it is an external USB storage.
It should be easy to achieve.


Mobile also charge it, I do not know the phone's usb port can not be extended? This is relatively simple, focusing on the development of the recorder on it.
Reply:
reference to the 13th floor heroxuetao reply:
Deng teacher Hello, can tell us about android memory optimization, performance optimization some experience and experience it? Thank you very much!

http://blog.csdn.net/innost/article/details/9008691 Android system performance tuning tools introduced from this entry.
In addition, these books online particularly concentrated in linux performance.

Reply:
cited 20 floor qiandayong reply:
Quote: references to the 10th floor Innost reply:

Quote: references to the second floor qiandayong reply:

Ask a development question: To design a tachograph, but because of the limited storage capacity of the phone, wifi want to save data to the mobile hard disk, what is feasible? What protocol communication better?

Mobile hard disk? No system should be above Kazakhstan. Only the hard drive connected to the tachograph, the received data logger and then saved to the hard disk.
Is replaced by the hard phone memory. Are now moving into an USB hard disk, for recorder, it is an external USB storage.
It should be easy to achieve.


Mobile also charge it, I do not know the phone's usb port can not be extended? This is relatively simple, focusing on the development of the recorder on it.

Can be expanded, and now mobile phones support USB Host it. But I have not tried.
Reply:
reference to the 16th floor u013067629 reply:
Deng teacher, I used cnavas drew two curves, Can you calculate the similarity between these two curves it? Or that there is a standard curve, and the other two curves to be compared, how to determine the most similar to that curve with the standard curve it?

Such a complex issue, I can not answer. sorry
Oh
Reply:
It does not matter, then I think about it, you read that Android developers to quickly learn the way of the road very touching, a lot of things worth learning from.
Reply:
I would like to ask the teacher Deng, how to analyze android source code. Currently only stage in the application layer, is not familiar with what the Linux kernel? How to proceed should the hood that does not disrupt the battle?
Reply:
cited 15 floor u014176406 reply:
ask, Wi-Fi P2P itself has no security mechanism is used to ensure the trust relationship between the devices? In addition, the Bluetooth Special is now BLE and hot, Deng teachers have no plans to talk about Bluetooth?

There are two sides exchanged P2P protocol to ensure key security. This, in my book there. You are interested can look at.
Bluetooth not interested, because it is just another protocol + achieve nothing. I currently do not have much interest in this technology.
Oh
Reply:
reference to the 14th floor fengyr reply:
teacher Hello, I can not enter to compile a ROM cm11, brush the second screen interface (android logo screen, it is not obtain log information), continue to reboot, or ask the system to streamline those in the kernel configuration step by step troubleshooting? Thank you teacher

I suggest you take a serial port, and then look at kernel log it.
Reply:
reference to the 25th floor xxm282828 reply:
Deng teacher I would like to ask, how to analyze the android source code. Currently only stage in the application layer, is not familiar with what the Linux kernel? How to proceed should the hood that does not disrupt the battle?

Brothers, http://www.csdn.net/article/2013-05-08/2815118 this you can refer to.
There http://blog.csdn.net/Innost/article/details/7648869 learn roadmap.
Thank you
Reply:
reference to the 12th floor Innost reply:
Quote: references to the 6th floor cclovescw reply:

Ordinary teacher, I have a surfaceView, directly in xml layout there, and then through findViewById found in the activity, whereas no new out. Under such circumstances, I am part of the machine debugging, sometimes did not enter surfaceCreated methods. I mi1 is ok, but m 2, htc it often appears not entered this method, what is the reason.

My name is dengfan level. Ha ha. I did not plant, I'm afraid not help you. Have to rely on your own pondering, come on!

Haha, sorry, Deng teacher. Your office has been on the books I read, I did not expect a long time, names are read wrong.
Reply:
Deng teacher, I was engaged in the development of embedded driver, only the C programming. On top of the little things do not understand. But the interview that this is not acceptable. Will Where should I start to understand the underlying interface with the upper it? Need to learn java? Thank you!
Reply:
stir android games, how to start.
Reply:
cited 31 floor fangmingshijie reply:
stir android games, how to start.

Engage in the game has a lot of books, the first Baidu's Oh
Reply:
reference to the 30th floor luomuxiaoxiao98 reply:
Deng teacher, I was engaged in the development of embedded driver, only the C programming. On top of the little things do not understand. But the interview that this is not acceptable. Will Where should I start to understand the underlying interface with the upper it? Need to learn java? Thank you!

In the android environment, only know how to drive development, for fear that it would be more narrow face. Best android achieve HAL layer understand.
Therefore, C + + about the next. Then HAL layer corresponds to the module about the next.
Java understand nothing.

Reply:
Support what the experts see it, huh
Reply:
Learning android just six months, also began to learn quickly, recently was slow, and ask how to improve the efficiency and what route to go? Thank you teacher!
Reply:
I now have a four-part interface running on millet box, which listview can not get focus Will focus on aspects of what a good item?
Reply:
Seniors Hello, I do Andrews more than two years. Sometimes found the development process, there may need to use the bottom of the handle, but I'm learning Java background, do not understand Linux, is there some books or tutorials that can build NDK development platform and learn his language?
Reply:
Can not figure out, a reference to Android, some people asked not to learn Java.
Reply:
Teacher! Android game really so difficult? Is it from the application layer to the game it really so difficult?
Reply:
Deng teacher, I would like to ask Fragment commonly used before and did not launch any advantage compared to the relative layout.
Online users say Fragment is compatible with Google for the launch of the tablet.
But I ask: Compatible relatively flat layout can not be done? With Fragment, OK, background does not have to determine is not flat / high resolution yet? Given Fragment and relative placement compared to what good is it?
Reply:
cited 35 floor ziyi0318612 reply:
learning android just six months, also began to learn quickly, recently was slow, and ask how to improve efficiency and take what Directions? Thank you teacher!

You have passed the threshold, then into a bottleneck. Only persevere. This kind of thing, in any industry, in any discipline, and even live inside there.
Only stick.
Reply:
cited 36 floor xiaoxiongzhuzhu reply:
I now have a four-part interface running on millet box, which listview Will not get the focus on the focus areas have What is a good item?

See the source code, or take a closer look sdk.
There will be no separate data specifically about focus. This stuff is just a small part of a large structure, most people are not too concerned.
Reply:
Teacher! Just contact android, android can later if you want to have a cross-level study of the Great Leap Forward, and how the system should learn? I am now doing the application layer development. .
Reply:
cited 37 floor tempersitu reply:
predecessors Hello, I do sometimes find Android more than two years in the development process, there may need to use the underlying. deal, but I was learning Java background, do not understand Linux, is there some books or tutorials can build NDK development platform and learning his language it?

Do not know linux, you have to learn. No one is born to understand java, linux know of.
Many books have lost the foundation books. You have to determine what they want, and then select the appropriate method for your books.
Then adhere to the study, practice.

Reply:
reference to the 39th floor zhang1317725 reply:
teacher! Android game really so difficult? Is it from the application layer to the game it really so difficult?

Nothing is unachievable.
As long as you are conscientious, no difficult. This is a commonplace truth, I believe you understand this truth, the next step you believe the truth, then do it would be finished
Oh
Come on!
Reply:
reference to the 40th floor wyj23114 reply:
Deng teacher, I would like to ask Fragment commonly used before and did not launch any advantage compared to the relative layout.
Online users say Fragment is compatible with Google for the launch of the tablet.
But I ask: Compatible relatively flat layout can not be done? With Fragment, OK, background does not have to determine is not flat / high resolution yet? Given Fragment and relative placement compared to what good is it?

I do not know ah, anyway, is certainly good, or else it will not toss this stuff out.
Oh
Reply:
To support it!
Reply:
cited a floor qjbagu reply:
do android development for three years, but all is the application layer, how to improve the technology?


Ditto, the development for nearly four years, there is no good direction, has been doing the application layer app, work is less than the depth of the bottom of things, has been hovering in the upper, confused, seeking to break!
Reply:
cited 43 floor u011424698 reply:
teacher! Just contact android, android can later if you want to have a cross-level study of the Great Leap Forward, and how the system should learn? I am now doing the application layer development. .

First application to do, and so feel applications mean nothing to do bored. Do the other.
Until that time, I believe this will be able to answer your own question.
In short, things to do first hand, to achieve the ultimate. Doing framework, and doing nothing essentially different app,
The basic requirement is to analyze problems, problem-solving abilities.
Reply:
Cheer about!

No comments:

Post a Comment