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
- (BOOL)isAACHardwareEncoderAvailable | |
{ | |
OSStatus status; | |
UInt32 size;; | |
UInt32 encoderSpecifier = kAudioFormatMPEG4AAC; | |
status = AudioFormatGetPropertyInfo(kAudioFormatProperty_Encoders, | |
sizeof(encoderSpecifier), | |
&encoderSpecifier, | |
&size); | |
check_osstatus(status, @"AudioFormatGetPropertyInfo fail"); |
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
#!/bin/sh | |
mkdir node_modules | |
cd node_modules | |
git clone https://github.com/dhruvbird/http-sync.git | |
cd http-sync | |
node-gyp configure | |
node-gyp build | |
cp build/Release/curllib.node . |
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
public static final void cleanupView(final ViewGroup viewGroup, final View view) { | |
if(view != null){ | |
view.setBackgroundDrawable(null); | |
if(view instanceof ImageView) { | |
ImageView v = (ImageView)view; | |
v.setImageDrawable(null); | |
} | |
else if(view instanceof ImageButton) { | |
ImageButton v = (ImageButton)view; | |
v.setImageDrawable(null); |
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
#!/bin/sh | |
SOURCE=$1 | |
CLONE=$2 | |
PREFIX='.vmwarevm' | |
cp -rf $SOURCE $CLONE | |
cd $CLONE | |
SOURCE=$(echo $SOURCE | sed -e s/\\$PREFIX//) |
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
#!/bin/sh | |
LIBNAME=$1 | |
mkdir -p usr/local/lib | |
lipo -create \ | |
armv6/usr/local/lib/$1.a \ | |
armv7/usr/local/lib/$1.a \ | |
i386/usr/local/lib/$1.a \ |
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
#ifndef LOG_H | |
#define LOG_H | |
#ifdef ANDROID | |
# include <android/log.h> | |
# ifndef ANDROID_LOG_TAG | |
# ANDROID_LOG_TAG "NATIVE_LOG" | |
# endif /* ANDROID_LOG_TAG */ | |
# ifndef ANDROID_LOG_LEVEL |
NewerOlder