Hi guys , thanks for this amazing forum...here it goes my first thread....
according this:
http://stackoverflow.com/questions/14267482/android-programmatically-open-recent-apps-dialog
it is posible with this code:
any reflection guru can translate for a newbie ?
thanks in advanced
according this:
http://stackoverflow.com/questions/14267482/android-programmatically-open-recent-apps-dialog
it is posible with this code:
B4X:
Class serviceManagerClass = Class.forName("android.os.ServiceManager");
Method getService = serviceManagerClass.getMethod("getService", String.class);
IBinder retbinder = (IBinder) getService.invoke(serviceManagerClass, "statusbar");
Class statusBarClass = Class.forName(retbinder.getInterfaceDescriptor());
Object statusBarObject = statusBarClass.getClasses()[0].getMethod("asInterface", IBinder.class).invoke(null, new Object[] { retbinder });
Method clearAll = statusBarClass.getMethod("toggleRecentApps");
clearAll.setAccessible(true);
clearAll.invoke(statusBarObject);
any reflection guru can translate for a newbie ?
thanks in advanced