Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは私は私のアプリに複数のハンドラーを持っています、そして約5分間プレイした後、android.os.messageの保持されたヒープサイズは10mbです。この問題を解決するにはどうすればよいですか?
多くのハンドラーではなく1つのハンドラーを使用して、すべてを投稿します
Message.obtain()コンストラクターではなく、メッセージの作成に使用します
Message.obtain()
postDelayedを避けてください