Tuesday, February 18, 2014

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:
cited a floor wch18956441322 reply:
getDrawableForDens this method you add it? Plus you have to compile your own that module and push in.

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:
reference to the third floor wch18956441322 reply:
compile instructions can be found by reference to this method, you can put up Log?


Reply:
references, 4th Floor JackingNo1 reply:
Quote: references to the third floor wch18956441322 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;
}

return (d = null!) d:? getFullResDefaultActivityIcon ();
}


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:
references, 5th Floor wch18956441322 reply:
Quote: references to the 4th floor JackingNo1 reply:

Quote: references to the third floor wch18956441322 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;
}

return (d = null!) d:? getFullResDefaultActivityIcon ();
}


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