1. Are you ready for the Galaxy S20? Here is everything we know so far!

Creating windows with WindowManager is slow

Discussion in 'Android Development' started by monInspiration, May 17, 2020.

  1. monInspiration

    Thread Starter

    I have to create several windows in AccessibilityService. I'm doing it now with next code:
    WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE); wm.addView(view,params);
    But the creating\removing windows needs 800-1000ms for creating simple window for now. I've already tried adding WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, but it didn't help.
    Maybe there is some tips\tools to make it faster?
     


Loading...
Similar Threads - Creating windows WindowManager
  1. Kayem59
    Replies:
    4
    Views:
    291
  2. sersaber
    Replies:
    1
    Views:
    225
  3. MoodyBlues
    Replies:
    8
    Views:
    1,208
  4. harrytapp
    Replies:
    0
    Views:
    171
  5. mdsousa
    Replies:
    0
    Views:
    503
  6. mdsousa
    Replies:
    3
    Views:
    433
  7. Stokestack
    Replies:
    0
    Views:
    618
  8. TheOuz
    Replies:
    0
    Views:
    587
  9. raccoon95
    Replies:
    0
    Views:
    463
  10. James Mountain
    Replies:
    1
    Views:
    565

Share This Page

Loading...