Tuesday, February 18, 2014
Intent intent1 = new Intent (ActivityMain.this, ActivityFrameLayou.classt)
I looked at the constructor has an API Intent is written
public Intent (Context packageContext, Class cls)
Since:. API Level 1 Create an intent for a specific component All other fields (action, data, type, class) are null, though they can be modified later with explicit calls This provides a convenient way to create an intent that is intended. to execute a hard-coded class name, rather than relying on the system to find an appropriate class for you; see setComponent (ComponentName) for more information on the repercussions of this
.
Parameters
packageContext A Context of the application package implementing this class.
cls The component class that is to be used for the intent.
See Also
setClass (Context, Class)
setComponent (ComponentName)
Intent (String, android.net.Uri, Context, Class)
Why are they above parameters correspond well this sentence The component class that is to be used for the intent mean:?. Component class for the purpose, is a function of the class can also be passed as a parameter, ActivityMain.this is the class name. this I have not seen this usage ah<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Do not parameter passing reference class? In this show you a lot to learn java,,,
Reply:
Story, seeking teachings ago learned java, I used to do embedded software development, the company now let you do use android, just give me a week to learn java, the second week of the four components of learning to do an android application demo, I Alexander, seeking guidance
Reply:
In fact, not necessarily using android java development, delphi language can also support mobile development environment or other platforms can be developed, advanced coding Well, you do embed this fear than I understand it, you can not get it working and learning java certainly like I now see. h and. cpp file is a look at the bible, abandon it, wants quick little difficulty,,,
Reply:
To be honest, I do not want, but the company can not help myself sometimes this arrangement, then the people's list, not enough manpower to catch on everywhere Ding a
Reply:
You can say that you and the company to write the underlying android, ah, the bottom is embedded, the underlying drivers and api you can develop, which is likened to the application layer Cock much,,,
Reply:
android driver linux system with general written inside the drive is still a difference, and I are nobodies Furthermore, less than half the official entry, but only 知其一不知其二 do the bottom, also intends to study with Sage, the company which has specially engaged in driving the kernel, we can not turn
Reply:
Click on the shopping encounter you asked two questions. Activity.this, is the Activity class itself, and this alone is the current default object itself, in fact, you do not first take care of what the meaning of this function requires you what type parameters into the parameters of what you would have to make up a chant.
Reply:
If not wrong, then, Intent listed for the landlord to jump between Activity, Context packageContext under this format is the name of the current Activity, for example Activity01.this. Behind. Class is a pointer to jump Activity, for example Activity02.class. Then startActivity (intent) to complete Activity01 to Activity02 jump.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment