获取当前 Activity 的包名和类名

AndroidRocket

项目地址: eicky/AndroidRocket 
简介:获取当前 Activity 的包名和类名
更多: 作者    提 Bug    示例 APK   
标签:
activity- currentActivity- track- topActivity-

获取当前 Activity 的类名和包名

由来

每次接手一个别人的项目的时候,是不是感觉特别烦躁,为啥?

  • 老板叫修改一个页面的界面,不知道当前的 class 文件在哪里

  • 看前后页面的跳转逻辑,不知道在对应文件在哪里

通过查询百度,我们知道用命令行adb shell dumpsys activity activities可以查询,但是发现不方便,所以便有了AndroidRocket 

效果图

截屏

安装体验

AndroidRocket.apk

使用方法

  • 6.0 以上版本需要悬浮窗权限。所以打开AndroidRocket时,会进入权限管理页面。勾选悬浮窗权限才能正常使用。

    截屏

  • 然后开启辅助功能(无障碍功能) 注:部分手机需要手动打开设置进行对应的权限开启(如:小米、魅族)

    截屏

  • 返回 app,点击开启悬浮窗按钮,即可使用(当然也可以在 Log 信息里面查看,Log 的 TAG 为Eicky) 截屏

关于我

License

Copyright 2017 Eicky

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值