Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[] apps = CodeModuleManager.getModuleHandles();
- ApplicationDescriptor[] ad;
- ApplicationDescriptor holder;
- String[] args = {"google.com"};
- for(int i = 0, len = apps.length; i < len; i ++){
- ad = CodeModuleManager.getApplicationDescriptors(apps[i]);
- if(ad != null){
- for(int j = 0, adlen = ad.length; j < adlen; j++){
- if(ad[j].getName().equals("Opera Mini")){
- holder = new ApplicationDescriptor(ad[j], args);
- try {
- ApplicationManager.getApplicationManager().runApplication(holder);
- break; //Needed
- } catch (ApplicationManagerException failedToOpen) {}
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement