What is ActivityThread?

In Android app, I’m analyzing an ActivityThread error raised (I’m using Android Studio). ActivityThread results to be an huge class… the problem seems to be not documented anywhere! Can you define exactly what is this? Logcat: 2019-12-19 13:55:43.955 3547-3547/nnnne.domains.dd.android E/ActivityThread: Service nnnne.domains.dd.android.PlatformService has leaked ServiceConnection [email protected] that was originally bound here android.app.ServiceConnectionLeaked: Service nnnne.domains.dd.android.PlatformService has…

Details

Is it good idea to take user id from SecurityContextholder in spring boot RestController..?

I am developing spring boot rest application for an ecommerce app, suppose i have endpoint /shipping-address which will fetch all the saved addresses for the user, is it good idea to take user id from SecurityContextHolder like Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal(); Long userId; if (principal instanceof UserPrincipal) { userId = ((UserPrincipal) principal).getId(); } or should…

Details