About android4.0 launcher2 source modification of error compiled to run, seeking guidance
The source code into eclipse, compile, run there will be no bind_widget permissions, and then tend to use a lot of blog says adb command apk app into the system folder, then there is no lack of permission abnormalities, and again said no Resources.getDrawableForDens methods But this approach obviously exists, I do not know how to solve, seeking the guidance of the great God<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) -> Reply: getDrawableForDens this method you add it? Plus you have to compile your own that module, and push into Reply:
Not ah, yes android.jar package already has, as shown: Reply: Compilation instructions can be found by reference to this method, you can put up Log? Reply:
Reply:
public Drawable getFullResIcon (Resources resources, int iconId) { Drawable d; try { d = resources.getDrawableForDensity (iconId, mIconDpi); } Catch (Resources.NotFoundException e) { d = null; }
Your machine is running version android test how much? This function is Added in API level 15; http://developer.android.com/reference/android/content/res/Resources.html # getDrawableForDensity% 28int,% 20int% 29
Reply:
Compilation instructions can be found by reference to this method, you can put up Log?
public Drawable getFullResIcon (Resources resources, int iconId) { Drawable d; try { d = resources.getDrawableForDensity (iconId, mIconDpi); } Catch (Resources.NotFoundException e) { d = null; }
Your machine is running version android test how much? This function is Added in API level 15; http://developer.android.com/reference/android/content/res/Resources.html # getDrawableForDensity% 28int,% 20int% 29
Ah thank you solve the problem, the problem is indeed a version of
No comments:
Post a Comment