This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST:https://api.zaim.net/v2/home/money/payment?currency_code=JPY&category_id=1386826&amount=250&date=2014-04-02&genre_id=6471825&place=xxxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE_TAGS := tests | |
LOCAL_SRC_FILES := $(call all-java-files-under, src) | |
LOCAL_PACKAGE_NAME := HelloNDK | |
LOCAL_SDK_VERSION := 14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
defaultConfig { | |
... | |
ndk { | |
moduleName "xxxx" | |
ldLibs "dl", "log" | |
stl "gnustl_shared" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Project] | |
|-- src | |
|-- main | |
|-- java | |
|-- jni | |
|-- xxxx.c | |
|-- xxxx.h | |
|-- jniLibs | |
|-- armeabi | |
|-- xxxx.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Display display = getWindowManager().getDefaultDisplay(); | |
Point size = new Point(); | |
overrideGetSize(display, size); | |
void overrideGetSize(Display display, Point outSize) { | |
try { | |
// test for new method to trigger exception | |
Class pointClass = Class.forName("android.graphics.Point"); | |
Method newGetSize = Display.class.getMethod("getSize", new Class[]{ pointClass }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# アラインを設定する | |
zipalign -v 4 [infile.apk] [outfile.apk] | |
# アラインが正しく設定されたか確認する | |
zipalign -c -v 4 [outfile.apk] |