Monday, December 10, 2012

How to change android system volume Up/Down ???

    Through AudioManager, we can set the volume up/down.

Today I faced this issue while working with media-volume-control
2) duplicate class error
  I just removed the and compilation is going smooth

3) How to copy the eclipse project into android source code and compile it ???
 copy the application project into android source code's packages/apps/ folder
within the application project,Add with below contents:

 LOCAL_PATH:= $(call my-dir)
 include $(CLEAR_VARS)
 LOCAL_MODULE_TAGS := optional
 LOCAL_SRC_FILES := $(call all-subdir-java-files)
 LOCAL_PACKAGE_NAME := VolumeControl_S #Target package name
 include $(BUILD_PACKAGE)

 From android folder give source build/,lunch and then
 cd to packages/apps/yourApplication/ and give mm command. This will build the application code & create the APK file.

No comments: