<transcript><audio_36>remain will remain on and hence the energy wastage wasted now we will see as you earn we have seen the previous talks that Android applications have activity</transcript><transcript><audio_37>broadcast receiver services etc so we will see what is the expected way to write an activity and using wakelocks now we know that activity started on on create event and it is destroyed in on</transcript><transcript><audio_38>destroy or call back when the activity is forced it is in it is not in the fold down but visible so in that time when it is for it will call the on voice coil pack if the developer has released the wake lock</transcript><transcript><audio_39>in on destroy but not in on poles that will create a no-slip work because the application is not running it is paused but still the device is the component is in high-power state so wake lock should be released in on pause call back also and then again it should be acquired in</transcript><transcript><audio_40>on release on resume call back similarly in service there is a on start command if the service is fine service then on unbind and on handle intent callbacks at the end of these callbacks the desired</transcript><transcript><audio_41>star should be completed and the wakelock should be released and in the broadcast receiver also on receive call back shoot at the end of it it should complete the desire task as well as it</transcript><transcript><audio_42>should release the wakelock now for analyzing all these whether the application has no sleep bug or not we can do state static dead of data flow analysis so that the no sleep code paths</transcript> remain will remain on and hence the energy wastage wasted now we will see as you earn we have seen the previous talks that Android applications have activity broadcast receiver services etc so we will see what is the expected way to write an activity and using wakelocks now we know that activity started on on create event and it is destroyed in on destroy or call back when the activity is forced it is in it is not in the fold down but visible so in that time when it is for it will call the on voice coil pack if the developer has released the wake lock in on destroy but not in on poles that will create a no-slip work because the application is not running it is paused but still the device is the component is in high-power state so wake lock should be released in on pause call back also and then again it should be acquired in on release on resume call back similarly in service there is a on start command if the service is fine service then on unbind and on handle intent callbacks at the end of these callbacks the desired star should be completed and the wakelock should be released and in the broadcast receiver also on receive call back shoot at the end of it it should complete the desire task as well as it should release the wakelock now for analyzing all these whether the application has no sleep bug or not we can do state static dead of data flow analysis so that the no sleep code paths
{"source": "grass-yt-cc-by.1Dub_u8P5PE|shard_10058|create_multimodal_data.extract_yt_and_generate_transcripts.24|shard_10058|create_multimodal_data.generate_captions.39", "params": {"id": "1Dub_u8P5PE", "channel_id": "UC3lp1Pk33sziERUwvmiNBqQ", "duration": 1314, "view_count": 33, "age_limit": 0, "chapters": [{"start_time": 0, "end_time": 162.0, "title": "<Untitled Chapter 1>"}, {"start_time": 162.0, "title": "Division of Power consumption", "end_time": 307.0}, {"start_time": 307.0, "title": "Power Management in Android", "end_time": 392.0}, {"start_time": 392.0, "title": "Usage of Wakelock", "end_time": 606.0}, {"start_time": 606.0, "title": "No Sleep Bug Enter", "end_time": 804.0}, {"start_time": 804.0, "title": "No Sleep Bug Analysis", "end_time": 1121.0}, {"start_time": 1121.0, "title": "Optimizations in Network Applications(6)", "end_time": 1152.0}, {"start_time": 1152.0, "title": "Optimizations in Network Applications(7)", "end_time": 1314}], "like_count": 0, "channel_follower_count": 34700, "license": "Creative Commons Attribution license (reuse allowed)", "uploader_id": "@StudioIITBombay", "yt_tar_file": "/leonardo_work/EUHPC_E03_068/audio/fixed_download/grass-yt-cc-by//shard_10058/1Dub_u8P5PE.tar.gz"}}