Package android.ddm

Class DdmHandleAppName


  • public class DdmHandleAppName
    extends ChunkHandler
    Track our app name. We don't (currently) handle any inbound packets.
    • Field Detail

      • CHUNK_APNM

        public static final int CHUNK_APNM
    • Method Detail

      • register

        public static void register()
        Register for the messages we're interested in.
      • connected

        public void connected()
        Called when the DDM server connects. The handler is allowed to send messages to the server.
        Specified by:
        connected in class ChunkHandler
      • disconnected

        public void disconnected()
        Called when the DDM server disconnects. Can be used to disable periodic transmissions or clean up saved state.
        Specified by:
        disconnected in class ChunkHandler
      • setAppName

        public static void setAppName​(String name,
                                      int userId)
        Set the application name. Called when we get named, which may be before or after DDMS connects. For the latter we need to send up an APNM message.
      • getAppName

        public static String getAppName()