Chandudroid
Tuesday, 2 August 2011
Opening an Activity with string in Android
try
{
String className =
'com.almondmendoza.library.openActivity'
;
Intent openNewIntent =
new
Intent(
this
, Class.forName( className ) );
startActivity( openNewIntent );
}
catch
(ClassNotFoundException e) {
e.printStackTrace();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment