ライブラリプロジェクト google-play-services_lib を読み込む
res/AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
| #include <linux/suspend.h> | |
| #include <linux/suspend_ioctls.h> | |
| #include <linux/utsname.h> | |
| #include <linux/freezer.h> | |
| struct swsusp_info { | |
| struct new_utsname uts; | |
| u32 version_code; | |
| unsigned long num_physpages; | |
| int cpus; |
| project build/ | |
| diff --git a/core/main.mk b/core/main.mk | |
| index 6af33f4..b2703c6 100755 | |
| --- a/core/main.mk | |
| +++ b/core/main.mk | |
| @@ -60,7 +60,7 @@ $(warning * You are using version $(MAKE_VERSION) of make.) | |
| $(warning * Android can only be built by versions 3.81 and 3.82.) | |
| $(warning * see https://source.android.com/source/download.html) | |
| $(warning ********************************************************************************) |
| diff --git a/device/amlogic/m201_8189_1G/Kernel.mk b/device/amlogic/m201_8189_1G/Kernel.mk | |
| index 6f5159b..e4ce7be 100755 | |
| --- a/device/amlogic/m201_8189_1G/Kernel.mk | |
| +++ b/device/amlogic/m201_8189_1G/Kernel.mk | |
| @@ -30,8 +30,8 @@ mkdir -p $(TARGET_OUT)/lib | |
| #cp $(UMP_OUT)/ump.ko $(PRODUCT_OUT)/root/boot/ | |
| cp $(MALI_OUT)/mali.ko $(PRODUCT_OUT)/root/boot/ | |
| -#cp $(WIFI_OUT)/broadcom/drivers/ap6xxx/broadcm_40181/dhd.ko $(TARGET_OUT)/lib/ | |
| -cp $(WIFI_OUT)/realtek/drivers/8189es/rtl8189ES/8189es.ko $(TARGET_OUT)/lib/ |
| /* | |
| ** $Id: lua.c,v 1.206.1.1 2013/04/12 18:48:47 roberto Exp $ | |
| ** Lua stand-alone interpreter | |
| ** See Copyright Notice in lua.h | |
| */ | |
| #include <signal.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> |
Since this is on Hacker News and reddit...
_t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *s.type * name, however, is entirely intentional.| ## Android Studio 快捷键盘 | |
| 分类: Android屌丝攻城狮 2014-02-25 18:19 2313人阅读 评论(0) 收藏 举报 | |
| 终于抛弃了卡顿恶心的Eclipse,在使用一个月Android Studio 之后,对Android Studio 的设计实在是非常敬佩,虽然现在Android Studio 版本还处于0.4.5 | |
| 我使用的Mac下的,但是功能已经很强大了,Android Studio 的Gradle 刚开始不太好用,习惯了之后发现是在是太舒服了,整个工程都是松耦合的。像 | |
| 插件一样。 | |
| 虽然Android Studio 你可以自己修改键盘快捷键映射方式,你可以直接选择Eclispse的键盘映射,由于我用的是Mac OS 感觉还是AndroidStudio自带的 | |
| 键盘挺好用的,在这里大概归类下 | |
| Alt+回车 导入包,自动修正 | |
| Crtl+X 剪贴 删除本行 ,之前用Eclipse Ctrl+D 就是删除,在AndroidStudio 中是复制本行到下一行,找了好久都没找到删除本行快捷键的 汗 | |
| Ctrl+N 查找类 |
| package main | |
| import ( | |
| "database/sql" | |
| "encoding/json" | |
| "html/template" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "runtime" |
dnsmasq的配置文件由/etc/config/dhcp决定
####禁用 dnsmasq 的 DNS 功能
在该文件 config dnsmasq下添加
option port 54
如果你的 WAN 口是 PPPOE 等方式连接,而且系统日志中有
DHCP packet received on eth0.2 which has no address
就再添加
| // get screen layout long | |
| int long = getResources().getConfiguration().screenLayout | |
| & Configuration.SCREENLAYOUT_LONG_MASK; | |
| switch (long) { | |
| case Configuration.SCREENLAYOUT_LONG_YES: | |
| // Long screens, such as WQVGA, WVGA, FWVGA | |
| break; | |
| case Configuration.SCREENLAYOUT_LONG_NO: |