File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ android {
9
9
minSdkVersion 17
10
10
targetSdkVersion 24
11
11
versionCode 3
12
- versionName " 0.0.4"
13
-
12
+ versionName " 0.0.3"
14
13
generatedDensities = []
15
14
16
15
}
@@ -48,4 +47,4 @@ dependencies {
48
47
compile ' com.android.support:cardview-v7:24.2.1'
49
48
compile ' com.android.support:support-v4:24.2.1'
50
49
compile ' com.google.android.exoplayer:exoplayer:r1.5.3'
51
- }
50
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "version":0.0.5 ,
3
- "newInThisUpdate":"bug fixations \n Stability",
4
- "appDownloadUrl":"https://github.com/zeseeit/AnyAudio/releases/download/v1 .0.3 -alpha/anyaudio.apk"
2
+ "version":4 ,
3
+ "newInThisUpdate":"v0.0.3-alpha testing \n bug fixations \n Stability",
4
+ "appDownloadUrl":"https://github.com/zeseeit/AnyAudio/releases/download/v0 .0.4 -alpha/anyaudio.apk"
5
5
}
Original file line number Diff line number Diff line change 35
35
*/
36
36
public class UpdateCheckService extends Service {
37
37
38
- private static final long CHECK_UPDATE_INTERVAL = 6 * 60 * 60 * 1000 ; // 6 hrs interval
39
- // private static final long CHECK_UPDATE_INTERVAL = 20 * 1000; // 6 hrs interval
38
+ // private static final long CHECK_UPDATE_INTERVAL = 6 * 60 * 60 * 1000; // 6 hrs interval
39
+ private static final long CHECK_UPDATE_INTERVAL = 20 * 1000 ; // 20 sec interval
40
40
private static final int SERVER_TIMEOUT_LIMIT = 10 * 1000 ; // 10 sec
41
41
private static Timer mTimer ;
42
42
Handler mHandler = new Handler ();
@@ -135,7 +135,7 @@ public void handleNewUpdateResponse(String response) {
135
135
double newVersion = updateResp .getDouble ("version" );
136
136
String updateDescription = updateResp .getString ("newInThisUpdate" );
137
137
String downloadUrl = updateResp .getString ("appDownloadUrl" );
138
- Log .d ("UpdateServiceTest" ," Version " +newVersion +" update Des " +updateDescription );
138
+ Log .d ("UpdateServiceTest" ," new Version " +newVersion + " old version " + getCurrentAppVersionCode () +" update Des " +updateDescription );
139
139
140
140
if (newVersion > getCurrentAppVersionCode ()) {
141
141
// write update to shared pref..
You can’t perform that action at this time.
0 commit comments