i build on windows7 use NDKR10D and AOSP is android 4.4
the code like this :
android::sp<android::SurfaceComposerClient> sc = new android::SurfaceComposerClient();
if ((err = sc->initCheck()) != android::NO_ERROR) {
MCERROR("Unable to initialize SurfaceComposerClient");
return err;
}
all ways return error , why ? i checked the android4.4 source , and class SurfaceComposerClient:
SurfaceComposerClient::SurfaceComposerClient()
: mStatus(NO_INIT), mComposer(Composer::getInstance())
{
}
status_t SurfaceComposerClient::initCheck() const {
return mStatus;
}
the code means , initCheck is allways return NO_INIT .
i build on windows7 use NDKR10D and AOSP is android 4.4
the code like this :
all ways return error , why ? i checked the android4.4 source , and class SurfaceComposerClient:
SurfaceComposerClient::SurfaceComposerClient()
: mStatus(NO_INIT), mComposer(Composer::getInstance())
{
}
status_t SurfaceComposerClient::initCheck() const {
return mStatus;
}
the code means , initCheck is allways return NO_INIT .