Skip to content

can't runing .... #22

Description

@workzj

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions