Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kaoshuangli9552
mockgps
提交
53df6017
M
mockgps
项目概览
kaoshuangli9552
/
mockgps
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mockgps
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
53df6017
编写于
2月 19, 2019
作者:
张
张灿阳
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug and add manual input locate
上级
f590ec1d
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
246 addition
and
92 deletion
+246
-92
.idea/caches/build_file_checksums.ser
.idea/caches/build_file_checksums.ser
+0
-0
.idea/misc.xml
.idea/misc.xml
+0
-25
.idea/vcs.xml
.idea/vcs.xml
+1
-1
app/build.gradle
app/build.gradle
+1
-1
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-1
app/src/main/java/com/example/mockgps/HistoryActivity.java
app/src/main/java/com/example/mockgps/HistoryActivity.java
+7
-3
app/src/main/java/com/example/mockgps/MainActivity.java
app/src/main/java/com/example/mockgps/MainActivity.java
+205
-59
app/src/main/res/layout/latlng_dialog.xml
app/src/main/res/layout/latlng_dialog.xml
+21
-0
app/src/main/res/menu/main.xml
app/src/main/res/menu/main.xml
+6
-0
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+2
-0
build.gradle
build.gradle
+1
-1
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+1
-1
未找到文件。
.idea/caches/build_file_checksums.ser
浏览文件 @
53df6017
无法预览此类型文件
.idea/misc.xml
浏览文件 @
53df6017
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"NullableNotNullManager"
>
<option
name=
"myDefaultNullable"
value=
"android.support.annotation.Nullable"
/>
<option
name=
"myDefaultNotNull"
value=
"android.support.annotation.NonNull"
/>
<option
name=
"myNullables"
>
<value>
<list
size=
"5"
>
<item
index=
"0"
class=
"java.lang.String"
itemvalue=
"org.jetbrains.annotations.Nullable"
/>
<item
index=
"1"
class=
"java.lang.String"
itemvalue=
"javax.annotation.Nullable"
/>
<item
index=
"2"
class=
"java.lang.String"
itemvalue=
"javax.annotation.CheckForNull"
/>
<item
index=
"3"
class=
"java.lang.String"
itemvalue=
"edu.umd.cs.findbugs.annotations.Nullable"
/>
<item
index=
"4"
class=
"java.lang.String"
itemvalue=
"android.support.annotation.Nullable"
/>
</list>
</value>
</option>
<option
name=
"myNotNulls"
>
<value>
<list
size=
"4"
>
<item
index=
"0"
class=
"java.lang.String"
itemvalue=
"org.jetbrains.annotations.NotNull"
/>
<item
index=
"1"
class=
"java.lang.String"
itemvalue=
"javax.annotation.Nonnull"
/>
<item
index=
"2"
class=
"java.lang.String"
itemvalue=
"edu.umd.cs.findbugs.annotations.NonNull"
/>
<item
index=
"3"
class=
"java.lang.String"
itemvalue=
"android.support.annotation.NonNull"
/>
</list>
</value>
</option>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_7"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
...
...
.idea/vcs.xml
浏览文件 @
53df6017
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"
$PROJECT_DIR$
"
vcs=
"Git"
/>
<mapping
directory=
""
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
app/build.gradle
浏览文件 @
53df6017
...
...
@@ -16,7 +16,7 @@ android {
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
}
buildToolsVersion
'2
7
.0.3'
buildToolsVersion
'2
8
.0.3'
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_7
targetCompatibility
JavaVersion
.
VERSION_1_7
...
...
app/src/main/AndroidManifest.xml
浏览文件 @
53df6017
...
...
@@ -56,7 +56,7 @@
<meta-data
android:name=
"com.baidu.lbsapi.API_KEY"
android:value=
"
8geZBnkT8aQ9zwWownqr9ZSesAfxnGbM
"
/>
android:value=
"
iDVeohokAwgulI0Yga4voEoqDaGqxL7y
"
/>
<activity
android:name=
"com.example.mockgps.StartActivity"
android:label=
"@string/app_name"
...
...
app/src/main/java/com/example/mockgps/HistoryActivity.java
浏览文件 @
53df6017
...
...
@@ -61,6 +61,10 @@ public class HistoryActivity extends AppCompatActivity {
listView
=
(
ListView
)
findViewById
(
R
.
id
.
list_view
);
noRecordText
=(
TextView
)
findViewById
(
R
.
id
.
no_record_textview
);
if
(
recordArchive
(
sqLiteDatabase
,
HistoryDBHelper
.
TABLE_NAME
)){
Log
.
d
(
"HistoryActivity"
,
"archive success"
);
}
initListView
();
...
...
@@ -117,9 +121,9 @@ public class HistoryActivity extends AppCompatActivity {
});
if
(
recordArchive
(
sqLiteDatabase
,
HistoryDBHelper
.
TABLE_NAME
)){
Log
.
d
(
"HistoryActivity"
,
"archive success"
);
}
//
if (recordArchive(sqLiteDatabase,HistoryDBHelper.TABLE_NAME)){
//
Log.d("HistoryActivity","archive success");
//
}
// sqLiteDatabase.close();
...
...
app/src/main/java/com/example/mockgps/MainActivity.java
浏览文件 @
53df6017
此差异已折叠。
点击以展开。
app/src/main/res/layout/latlng_dialog.xml
0 → 100644
浏览文件 @
53df6017
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<EditText
android:id=
"@+id/dialog_longitude"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10dp"
android:hint=
"longitude"
/>
<EditText
android:id=
"@+id/dialog_latitude"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/dialog_longitude"
android:layout_marginLeft=
"10dp"
android:hint=
"latitude"
/>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/menu/main.xml
浏览文件 @
53df6017
...
...
@@ -15,6 +15,12 @@
android:title=
"@string/action_setting"
app:showAsAction=
"never"
/>
<item
android:id=
"@+id/action_input"
android:orderInCategory=
"100"
android:title=
"@string/manual_input"
app:showAsAction=
"never"
/>
<item
android:id=
"@+id/action_resetMap"
android:orderInCategory=
"100"
...
...
app/src/main/res/values/strings.xml
浏览文件 @
53df6017
...
...
@@ -13,6 +13,8 @@
<string
name=
"startUse"
>
进入应用
</string>
<string
name=
"startImgDesp"
>
NULL
</string>
<string
name=
"resetmap"
>
重置地图
</string>
<string
name=
"manual_input"
>
经纬度定位
</string>
<string
name=
"author"
>
Author: hilavergil@gmail.com
</string>
<string
name=
"norecord"
>
无历史纪录
</string>
<string
name=
"safecode"
>
9D:8B:73:A5:DF:2A:36:3F:84:2D:38:55:BD:0A:57:C5:8F:50:44:69;com.example.mockgps
</string>
</resources>
build.gradle
浏览文件 @
53df6017
...
...
@@ -7,7 +7,7 @@ buildscript {
jcenter
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.3
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
// NOTE: Do not place your application dependencies here; they belong
...
...
gradle/wrapper/gradle-wrapper.properties
浏览文件 @
53df6017
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
6
-all.zip
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录