hello, i want to develop an application who allow the user to change
the brightness of the screen when he change the volume (in same time
he can choose volume or brightness in all application). In src of
class AudioManager i've see this :
/**
* @hide Broadcast intent when the volume for a particular stream
type changes.
* Includes the stream and the new volume
*
* @see #EXTRA_VOLUME_STREAM_TYPE
* @see #EXTRA_VOLUME_STREAM_VALUE
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String VOLUME_CHANGED_ACTION =
"android.media.VOLUME_CHANGED_ACTION";
so i create a Broadcast Receiver to capture this event but nothing.
Anybody know how i can do this ? thanks.
the brightness of the screen when he change the volume (in same time
he can choose volume or brightness in all application). In src of
class AudioManager i've see this :
/**
* @hide Broadcast intent when the volume for a particular stream
type changes.
* Includes the stream and the new volume
*
* @see #EXTRA_VOLUME_STREAM_TYPE
* @see #EXTRA_VOLUME_STREAM_VALUE
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String VOLUME_CHANGED_ACTION =
"android.media.VOLUME_CHANGED_ACTION";
so i create a Broadcast Receiver to capture this event but nothing.
Anybody know how i can do this ? thanks.