need help to start app

155 views
Skip to first unread message

Balazs P

unread,
Mar 24, 2024, 4:45:12 AM3/24/24
to Automate for Android
I try to start an activity in an app, but i dont know how.

I get the recent activities via adb, and the what i need to replicate is:

  * RecentTaskInfo #0:
    id=478 stackId=478 userId=0 hasTask=true lastActiveTime=85083548
    baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.oceanwing.battery.cam cmp=com.oceanwing.battery.cam/.main.SplashActivity }
    baseActivity={com.oceanwing.battery.cam/com.oceanwing.battery.cam.main.CamMainActivity}
    topActivity={com.oceanwing.battery.cam/com.eufy.security.doorbell.video.ui.VDBLiveVideoActivity}
    realActivity={com.oceanwing.battery.cam/com.oceanwing.battery.cam.main.SplashActivity}
    isExcluded=false activityType=standard windowingMode=standard supportsSplitScreenMultiWindow=false
    taskDescription { colorBackground=#fffafafa colorPrimary=#fff5f5f5 iconRes=/0 iconBitmap=false resizeMode=RESIZE_MODE_RESIZEABLE_VIA_SDK_VERSION minWidth=-1 minHeight=-1 }

I can start the SplashActivit, but that just open the app. So how can i start the VDBLiveVideoActivity?

Thank you!

Henrik "The Developer" Lindqvist

unread,
Mar 24, 2024, 10:53:14 AM3/24/24
to Automate for Android
Try using the App start block:
  • Package: com.oceanwing.battery.cam
  • Activity class: com.eufy.security.doorbell.video.ui.VDBLiveVideoActivity
But as the documentations say, "If this block cause a ActivityNotFoundException or SecurityException failure is likely because the activity isn’t exported, it’s been temporarily or permanently disabled, or it’s secured by a permission to prevent third-party apps from launching it."
Reply all
Reply to author
Forward
0 new messages