Skip to content

Commit 5520160

Browse files
authored
Update SDK使用说明.md
1 parent 1d47eae commit 5520160

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

SDK使用说明.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@
1010
当前使用model的bulid.gradle 最后加入 x.x.x为版本号请使用最新稳定版当前编写文档时最新版本1.0.1
1111
```java
1212
   compile 'org.yh.yhframe:WatchLib:last_version'
13+
14+
   //App 继承ShunQingApp 必须SDK初始化用
15+
   public class MyApp extends ShunQingApp
16+
{
17+
@Override
18+
public void onCreate()
19+
{
20+
super.onCreate();
21+
}
22+
......
23+
.....
24+
}
1325
```
1426
## 3,配置
1527
项目的bulid.gradle
@@ -23,10 +35,16 @@ allprojects {
2335
```
2436
## 4,百度地图Key配置
2537
```JAVA
26-
<!-- 百度地图Key -->
38+
<application
39+
....
40+
android:name=".MyApp"
41+
android:theme="@style/BaseAppTheme">
42+
<!-- 百度地图Key -->
2743
<meta-data
2844
android:name="com.baidu.lbsapi.API_KEY"
29-
android:value="你自己的key百度申请">
45+
android:value="a9G8YTwtEP6DlGtXMQefGFktB0m0eTMC"/>
46+
....
47+
</application>
3048
```
3149
## 5,同步项目
3250
## 6,新建一个普通的Activiy

0 commit comments

Comments
 (0)