ndk C中不打log
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LAME_LIBMP3_DIR := libmp3lame LOCAL_MODULE := mp3lame LOCAL_SRC_FILES :=\ $(LAME_LIBMP3_DIR)/bitstr…
- 200
- 0
- 阅读全文
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LAME_LIBMP3_DIR := libmp3lame LOCAL_MODULE := mp3lame LOCAL_SRC_FILES :=\ $(LAME_LIBMP3_DIR)/bitstr…
先cd刀native方法的文件中.然后javahcd app/src/main/java/ 然后javah javah -d ../jni -jni com.testsmirk.mp3demo.MainActivity
启动: Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); Log.d(TAG, "click() called "+Util…
当当前 x 小于左后的 x 就可以 returnjava switch (ev.getAction()) { case MotionEvent.ACTION_MOVE: float lim = ev.getX() - lastX; LogUtil.d(lim + ""); if …
此时我是相对于整个View居中所以就谢了getWidth()/2``canvas.drawText("this is a test", getWidth() / 2, baseLineY, textPaint); Y轴居中要给予baseLine,这个baseLine的概念就是字符…
sudo update-alternatives --config java然后提示 There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ----…
Installation failed with message INSTALL_CANCELED_BY_USER.这是miui8.1新加的功能. 开启USB安装和USB调试即可(要登录.)..MIUI大法好.
<android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <…
打包遇到Error: Expected resource of type styleable [ResourceType]这个异常,起初在stackoverflow上看到这个人说 加上code>@SuppressWarnings("ResourceType")