Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider replacing java.util.timer* with android Handler class #1832

Open
mcomella opened this issue Jan 25, 2018 · 3 comments
Open

Consider replacing java.util.timer* with android Handler class #1832

mcomella opened this issue Jan 25, 2018 · 3 comments

Comments

@mcomella
Copy link

From bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=1268612

The Timer class creates a separate thread, which can affect the performance of resource-constrained mobile devices. The Android Handler class can be used to synchronize such events with separate threads, such as the main thread. See 1 for an example implementation.

This bug is specifically for the mozstumbler (I'll file another for the main code base). For a list of uses of the timer class:

https://mxr.mozilla.org/mozilla-central/search?string=java.util.timer&find=mobile%2Fandroid&findi=&filter=^[^\0]*%24&hitlimit=&tree=mozilla-central

Victor, can you take a look at this?

@abhishekd08
Copy link

Can I work on this ?

@mcomella
Copy link
Author

@abhishekd08 I don't think anyone is working on this code base. If you're looking to work on an Android project at Mozilla, may I recommend Focus for Android?

@abhishekd08
Copy link

I am beginner in open source development, I am more than happy to work on any project. I will look into "Focus for Android" suggested by you. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants