Skip to content

Commit

Permalink
fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang111 authored May 22, 2017
1 parent 7b4cad2 commit e17af0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ExtractThumbnail (Bitmap source, int width, int height)

* Static variables do not directly or indirectly refer to Activity, Service and so on. This will use the Activity and all the objects it references can not be freed, and then the user will run for a long time and the memory will go up.

* Handler mechanism has a feature is not with the Activity, Service life cycle end and end. In other words, if you post a Delay Runnable, and then Runnable before the implementation of the exit from the Activity, Runnable to the time or to be executed. If the Runnable inside contains the operation to update the view, the program crashes.
* Handler mechanism has a feature is not with the Activity, Service's life cycle ends. In other words, if you post a Delay Runnable, and then Runnable before the implementation of the exit from the Activity, Runnable to the time or to be executed. If Runnable contains an updated view operation, it may cause a memory leak, so you can call removeCallbacksAndMessages() to remove the message waiting for execution of this Handler.

* Many people in the sub-thread update View like to use Context.runOnUiThread, this method has a drawback, that is, but the End of the life cycle, such as Activity has been destroyed, a call will collapse.

Expand Down

0 comments on commit e17af0b

Please sign in to comment.