I have seen this question:
How to get the current application icon in ios
Now i could get application path from process pid, then according the question above,with the code blow,i could not get the application icon.
NSBundle* bundle = [NSBundle bundleWithPath:apppath];
NSArray *infostmp = [[bundle infoDictionary] objectForKey:@"CFBundleIconFiles"];
if(infostmp){
NSString* iconPath = [[NSString alloc] initWithString:[infostmp objectAtIndex:0]];
UIImage* icon =[UIImage imageWithContentsOfFile:iconPath];
}