I have some problems with the doc and the code-examples. If i want to change from one activity to another, i use
Using java Syntax Highlighting
- Intent intent = new Intent();
- intent.setClass(Forwarding.this, ForwardTarget.class);
- startActivity(intent);
- finish();
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
ok. but the doc description (for eg. "chaining multiple calls into a single statement." is not so understandable for me:
public Intent setClass(Context packageContext, Class cls)
Convenience for calling setComponent(ComponentName) with the name returned by a Class object.
Parameters
packageContext A Context of the application package implementing this class.
cls The class name to set, equivalent to setClassName(context, cls.getName()).
Returns
* Returns the same Intent object, for chaining multiple calls into a single statement.
See Also
* setComponent(ComponentName)
any ideas what they mean?
thx, alex




):

