微信Android版本中,back键后退的功能是它自己监听的还是系统默认的?
阿神
阿神 2017-04-17 11:50:25
0
2
418

在微信订阅号或者服务号操作的时候,经常是跳转到微信内置的浏览器中查看网页,然后不断的跳转链接几次之后(比如买彩票、填表单之类的),再按back键,就会一步一步的后退(很多购物类APP也是这样),请问这里的功能是APP自己监听了back键呢还是Android系统的back就可以根据栈操作完成呢?
一般在写Android程序的时候对back键要做多少处理呢?
小白想不清楚,问问大家,求帮助~~

阿神
阿神

闭关修行中......

reply all(2)
Peter_Zhu

Implement it yourself.

That is to put a WebView in the Activity, listen to the Activity's onBackPressed() method, and execute the WebView.goBack() method to go back.

PHPzhong

It’s useless
It’s all written, and it says that the APP cannot be launched, and then adapts to the WeChat writing routine again
Of course I monitor it myself, after all, Android

I am a web user, and the processing is simple. One activity corresponds to one history stack
history===null will exit the APP

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!