Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Android java parse class name via intent

Bundle extras = getIntent().getExtras();
String classname=extras.getString("class");
Class<?> clazz = Class.forName(classname);
Intent i = new Intent(Setting.this, clazz);
startActivity(i);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Android #java #parse #class #intent
ADD COMMENT
Topic
Name
2+8 =