mirror of https://github.com/axmolengine/axmol.git
fix bug #12200
solve warning ""Service Intent must be explicit: Intent { act=com.enhance.gameservice.IGameTuningService }""
This commit is contained in:
parent
a364d6ecfc
commit
79b3d70b60
|
@ -116,7 +116,9 @@ public class Cocos2dxHelper {
|
|||
sInited = true;
|
||||
|
||||
//Enhance API modification begin
|
||||
activity.getApplicationContext().bindService(new Intent(IGameTuningService.class.getName()), connection, Context.BIND_AUTO_CREATE);
|
||||
Intent serviceIntent = new Intent(IGameTuningService.class.getName());
|
||||
serviceIntent.setPackage("com.enhance.gameservice");
|
||||
boolean suc = activity.getApplicationContext().bindService(serviceIntent, connection, Context.BIND_AUTO_CREATE);
|
||||
//Enhance API modification end
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue