Jar cross call in android structure

I am changing the structure of the jelly bean to be able to power off when the power button is long pressed.

In frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

,

I need to call the class: ShutdownThread to open the power off dialog.

PhoneWindowManager.java

is inside android.policy.jar

ShutdownThread.java

is inside services.jar

Services Android.mk

useandroid.policy library

LOCAL_MODULE:= services

LOCAL_JAVA_LIBRARIES := android.policy

      

In the policy, Android.mk

I need to add a service library to be able to use ShutdownThread

LOCAL_MODULE := android.policy

LOCAL_JAVA_LIBRARIES := services (<---I add this)

      

If I only mm the current folder, it compiles fine and works fine.

But when I clear the android assembly, I get an error that cannot find the ShutdownThread symbol.

How to solve this situation?

+3
android jar frameworks


source to share


No one has answered this question yet

Check out similar questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2097
Is there a way to run Python on Android?
1858
"Debug certificate expired" error in Android Eclipse plugins
1844
What is "Context" on Android?
1348
How to "add existing frames" in Xcode 4?
947
Android Studio: add jar as library?



All Articles
Loading...
X
Show
Funny
Dev
Pics