I want to launch "Photos" application (the stock apple one) through a jailbreak tweak. I have hooked the springboard, overridden the methods I need and now I need to launch the "Photos" app. My problem is, there's no URL set up for it. So how do I do it? Thanks in advance! :)
#import <UIKit/UIKit.h>
#import <substrate.h>
#import <SBApplication.h>
@interface UIApplication (ScreenShooter)
//-(void)applicationOpenURL:(id)url;
@end
%hook SBScreenFlash
-(void)stopFlash {
%orig;
//[[UIApplication sharedApplication] applicationOpenURL:[NSURL URLWithString:[NSString stringWithFormat:@"com.apple.mobileslideshow"]]];
SBApplication *app = [[objc_getClass("SBApplicationController") sharedInstance] applicationWithDisplayIdentifier:@"com.apple.mobileslideshow"];
[[objc_getClass("SBUIController") sharedInstance] activateApplicationFromSwitcher: app];
}
%end