def get_app_name(self):
main_activity_name = self.get_main_activity()<EOL>app_name = self.get_element('<STR_LIT>', '<STR_LIT:label>', name=main_activity_name)<EOL>if not app_name:<EOL><INDENT>app_name = self.get_element('<STR_LIT>', '<STR_LIT:label>')<EOL><DEDENT>if app_name.startswith("<STR_LIT:@>"):<EOL><INDENT>res_id = int(app_name[<NUM_LIT:1>:], <NUM_LIT:16>)<EOL>res_parser = self.get_android_resources()<EOL>try:<EOL><INDENT>app_name = res_parser.get_resolved_res_configs(<EOL>res_id,<EOL>ARSCResTableConfig.default_config())[<NUM_LIT:0>][<NUM_LIT:1>]<EOL><DEDENT>except Exception as e:<EOL><INDENT>anconf.warning("<STR_LIT>" % e)<EOL>app_name = "<STR_LIT>"<EOL><DEDENT><DEDENT>return app_name<EOL>
Return the appname of the APK

:rtype: string