This article describes the method of using the jspf plugin framework on Android. Share it for your reference. The details are as follows:
jspf (Java Simple Plugin Framework) is a plug-in framework that integrates many concepts of IoC frameworks.
package ; import ; import ; import ; import ; import ; import ; import ; import ; public class JSPFDemo extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { (savedInstanceState); setContentView(); // Loading and adding plugins via class uri PluginManager pm = (); (new ClassURI().toURI()); // Getting the CoolPlugin CoolPlugin plugin = (); // Setting the text of a TextView with the help of the CoolPlugin TextView textView = (TextView) findViewById(); (()); } }
I hope this article will be helpful to everyone's Android programming design.