| Index: samples/android_sample/jni/resource.h
|
| diff --git a/samples/android_sample/jni/resource.h b/samples/android_sample/jni/resource.h
|
| index 54233a0c47bd7707951b78838bf7ee71d2c5c8f0..eeec42410a824d55d81c31295f65e46285d29074 100644
|
| --- a/samples/android_sample/jni/resource.h
|
| +++ b/samples/android_sample/jni/resource.h
|
| @@ -1,8 +1,14 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| #ifndef RESOURCE_H
|
| #define RESOURCE_H
|
|
|
| #include <android_native_app_glue.h>
|
|
|
| +#include "jni/log.h"
|
| +
|
| class Resource {
|
| public:
|
| Resource(android_app* application, const char* path)
|
| @@ -34,8 +40,8 @@ class Resource {
|
| asset_ = AAssetManager_open(asset_manager_, path_, AASSET_MODE_UNKNOWN);
|
| if (asset_ != NULL) {
|
| descriptor_ = AAsset_openFileDescriptor(asset_, &start_, &length_);
|
| - Log::Print("%s has start %d, length %d, fd %d",
|
| - path_, start_, length_, descriptor_);
|
| + LOGI("%s has start %d, length %d, fd %d",
|
| + path_, start_, length_, descriptor_);
|
| return 0;
|
| }
|
| return -1;
|
| @@ -63,4 +69,3 @@ class Resource {
|
| };
|
|
|
| #endif
|
| -
|
|
|