There are some devices that the extension of installed app is not ‘.apk". Such like Aliyun Phone, which use’.lar’ as the app extension. So on these phones, all resources can’t be loaded correctly because s_strResourcePath is not set.
Can I simply remove the check code ‘tmp.find(“.apk”) == string::npos’ ? Since the path is passed from jni call which is returned by Android SDK. It should be right anyway.