author | Xeli |
Sun, 27 Nov 2011 00:54:00 +0100 | |
changeset 6446 | a49d01b96185 |
parent 6437 | 4ed58839b13b |
child 6458 | eadb2db1ae83 |
permissions | -rw-r--r-- |
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
1 |
/* |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
2 |
* Hedgewars for Android. An Android port of Hedgewars, a free turn based strategy game |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
3 |
* Copyright (c) 2011 Richard Deurwaarder <xeli@xelification.com> |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
4 |
* |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License as published by |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
7 |
* the Free Software Foundation; version 2 of the License |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
8 |
* |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
13 |
* |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
17 |
*/ |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
18 |
|
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
19 |
|
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
20 |
package org.hedgewars.hedgeroid.Downloader; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
21 |
|
6350 | 22 |
import java.util.Deque; |
6343 | 23 |
import java.util.LinkedList; |
6350 | 24 |
import java.util.List; |
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
25 |
|
6049
7bc38086d771
wops missed this one: removed a 'fix' eclipse put in there
Xeli
parents:
6047
diff
changeset
|
26 |
import org.hedgewars.hedgeroid.R; |
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
27 |
|
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
28 |
import android.app.Notification; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
29 |
import android.app.NotificationManager; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
30 |
import android.app.PendingIntent; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
31 |
import android.app.Service; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
32 |
import android.content.Intent; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
33 |
import android.os.Handler; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
34 |
import android.os.IBinder; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
35 |
import android.os.Message; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
36 |
import android.os.Messenger; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
37 |
import android.os.RemoteException; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
38 |
import android.widget.RemoteViews; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
39 |
|
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
40 |
public class DownloadService extends Service { |
6343 | 41 |
public final static String INTENT_TASKID = "taskId"; |
42 |
public final static String INTENT_TASK = "task"; |
|
43 |
||
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
44 |
public static final String PREF_DOWNLOADED = "downloaded"; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
45 |
public static final int MSG_CANCEL = 0; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
46 |
public static final int MSG_UNREGISTER_CLIENT = 2; |
6350 | 47 |
public final static int MSG_ADDTASK = 4; |
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
48 |
|
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
49 |
public static final int NOTIFICATION_PROCESSING = 0; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
50 |
public static final int NOTIFICATION_DONE = 1; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
51 |
|
6343 | 52 |
private DownloadAsyncTask asyncExecutor; |
6350 | 53 |
|
54 |
private DownloadHandler handler = new DownloadHandler(); |
|
55 |
private final Messenger messenger = new Messenger(handler); |
|
56 |
||
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
57 |
private NotificationManager nM; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
58 |
private RemoteViews contentView; |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
59 |
|
6350 | 60 |
private Deque<DownloadTask> downloadTasks = new LinkedList<DownloadTask>(); |
6437
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
61 |
private DownloadTask currentTask = null; |
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
62 |
|
6350 | 63 |
public class DownloadHandler extends Handler{ |
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
64 |
|
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
65 |
public void handleMessage(Message msg){ |
6350 | 66 |
if(msg.obj != null){ |
67 |
DownloadPackage pack = (DownloadPackage) msg.obj; |
|
68 |
DownloadTask task = null; |
|
69 |
Messenger replyToMessenger = msg.replyTo; |
|
70 |
for(DownloadTask _task : downloadTasks){ |
|
71 |
if(_task.getPackage().equals(pack)){ |
|
72 |
task = _task; |
|
73 |
break; |
|
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
74 |
} |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
75 |
} |
6350 | 76 |
|
77 |
switch(msg.what){ |
|
78 |
case MSG_ADDTASK: |
|
79 |
if(task == null){ |
|
80 |
task = new DownloadTask(pack); |
|
81 |
downloadTasks.add(task); |
|
82 |
} |
|
83 |
||
84 |
task.addClient(replyToMessenger); |
|
85 |
runNextTask(); |
|
86 |
return; |
|
87 |
case MSG_CANCEL: |
|
6437
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
88 |
if(task != null && task.getPackage().equals(pack) && task.getStatus() == TASK_STATE.PENDING){ |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
89 |
downloadTasks.remove(task); |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
90 |
} |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
91 |
if(currentTask.getPackage().equals(pack)){ |
6350 | 92 |
asyncExecutor.cancel(false); |
93 |
} |
|
94 |
return; |
|
95 |
case MSG_UNREGISTER_CLIENT: |
|
96 |
if(task != null){ |
|
97 |
task.removeClient(replyToMessenger); |
|
98 |
} |
|
99 |
return; |
|
100 |
} |
|
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
101 |
} |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
102 |
} |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
103 |
} |
6350 | 104 |
|
105 |
public void onCreate(){ |
|
106 |
super.onCreate(); |
|
107 |
nM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); |
|
108 |
} |
|
6343 | 109 |
public IBinder onBind(Intent intent) { |
110 |
return messenger.getBinder(); |
|
111 |
} |
|
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
112 |
|
6350 | 113 |
private void runNextTask(){ |
114 |
if(asyncExecutor == null){//if (task isnt running right now) ... |
|
6437
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
115 |
currentTask = downloadTasks.pollFirst(); |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
116 |
if(currentTask != null){ |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
117 |
asyncExecutor = new DownloadAsyncTask(currentTask); |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
118 |
asyncExecutor.execute(currentTask.getPackage()); |
6343 | 119 |
} |
120 |
} |
|
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
121 |
} |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
122 |
|
6343 | 123 |
public void onDestroy(){ |
124 |
super.onDestroy(); |
|
125 |
asyncExecutor.cancel(false); |
|
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
126 |
} |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
127 |
|
6350 | 128 |
class DownloadTask { |
129 |
private final DownloadPackage pack; |
|
130 |
private TASK_STATE status = TASK_STATE.PENDING; |
|
131 |
private Notification progressNotification, doneNotification; |
|
132 |
||
133 |
//I expect little to no removeClient calls that's why we go for a list rather than a map |
|
134 |
private final List<Messenger> clients; |
|
135 |
||
136 |
public DownloadTask(DownloadPackage _pack){ |
|
137 |
pack = _pack; |
|
138 |
clients = new LinkedList<Messenger>(); |
|
139 |
} |
|
140 |
||
141 |
public void addClient(Messenger messenger){ |
|
142 |
clients.add(messenger); |
|
143 |
} |
|
144 |
public void removeClient(Messenger messenger){ |
|
145 |
clients.remove(messenger); |
|
146 |
} |
|
147 |
||
148 |
public DownloadPackage getPackage(){ |
|
149 |
return pack; |
|
150 |
} |
|
151 |
||
152 |
public TASK_STATE getStatus(){ |
|
153 |
return status; |
|
154 |
} |
|
155 |
||
156 |
public void sendMessageToClients(Message msg){ |
|
157 |
for(Messenger messenger : clients){ |
|
158 |
try { |
|
159 |
messenger.send(msg); |
|
160 |
} catch (RemoteException e) { |
|
161 |
e.printStackTrace(); |
|
162 |
} |
|
163 |
} |
|
164 |
} |
|
165 |
||
166 |
/* |
|
167 |
* Callbacks called from the async tasks |
|
168 |
*/ |
|
6343 | 169 |
|
6350 | 170 |
//Thread safe method to let clients know the processing is starting and will process int max kbytes |
171 |
public void start(int max){ |
|
172 |
progressNotification = new Notification(R.drawable.statusbar, getString(R.string.notification_title), System.currentTimeMillis()); |
|
173 |
progressNotification.flags |= Notification.FLAG_ONGOING_EVENT; |
|
174 |
||
175 |
contentView = new RemoteViews(getPackageName(), R.layout.notification); |
|
176 |
contentView.setProgressBar(R.id.notification_progress, 100, 34, false); |
|
177 |
progressNotification.contentView = contentView; |
|
178 |
||
179 |
PendingIntent contentIntent = PendingIntent.getActivity(DownloadService.this, 0, new Intent(DownloadService.this, DownloadFragment.class), Intent.FLAG_ACTIVITY_NEW_TASK); |
|
180 |
progressNotification.contentIntent = contentIntent; |
|
181 |
||
6437
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
182 |
startForeground(NOTIFICATION_PROCESSING, progressNotification); |
6350 | 183 |
|
184 |
Message msg = Message.obtain(null, DownloadFragment.MSG_START, max, 0); |
|
185 |
sendMessageToClients(msg); |
|
186 |
} |
|
187 |
||
188 |
//periodically gets called by the ASyncTask, we can't tell for sure when it's called |
|
189 |
public void update(int progress, int max, String fileName){ |
|
190 |
progress = (progress/1024); |
|
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
191 |
|
6350 | 192 |
contentView.setProgressBar(R.id.notification_progress, max, progress, false); |
193 |
contentView.setTextViewText(R.id.progressbar_sub, String.format("%dkb/%dkb (Compressed sizes)", progress, max)); |
|
194 |
nM.notify(NOTIFICATION_PROCESSING, progressNotification); |
|
195 |
||
196 |
sendMessageToClients(Message.obtain(handler, DownloadFragment.MSG_UPDATE, progress, max, fileName)); |
|
197 |
} |
|
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
198 |
|
6350 | 199 |
//Call back from the ASync task when the task has either run into an error or finished otherwise |
6437
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
200 |
public void done(int result){ |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
201 |
switch(result){ |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
202 |
case DownloadAsyncTask.EXIT_SUCCESS: sendMessageToClients(Message.obtain(handler, DownloadFragment.MSG_DONE)); break; |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
203 |
case DownloadAsyncTask.EXIT_CONNERROR: sendMessageToClients(Message.obtain(handler, DownloadFragment.MSG_FAILED)); break; |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
204 |
case DownloadAsyncTask.EXIT_FNF: sendMessageToClients(Message.obtain(handler, DownloadFragment.MSG_FAILED)); break; |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
205 |
case DownloadAsyncTask.EXIT_MD5: sendMessageToClients(Message.obtain(handler, DownloadFragment.MSG_FAILED)); break; |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
206 |
case DownloadAsyncTask.EXIT_URLFAIL: sendMessageToClients(Message.obtain(handler, DownloadFragment.MSG_FAILED)); break; |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
207 |
case DownloadAsyncTask.EXIT_CANCELLED: sendMessageToClients(Message.obtain(handler, DownloadFragment.MSG_DONE)); break; |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
208 |
} |
4ed58839b13b
Android: fixed serviceconnectionleak, made the result code of asynctask a bit better, fix cancel button
Xeli
parents:
6350
diff
changeset
|
209 |
|
6350 | 210 |
stopForeground(true); |
211 |
nM.cancel(NOTIFICATION_PROCESSING); |
|
212 |
||
213 |
String title = getString(R.string.notification_title); |
|
214 |
||
215 |
doneNotification = new Notification(R.drawable.icon, title, System.currentTimeMillis()); |
|
216 |
doneNotification.flags |= Notification.FLAG_AUTO_CANCEL; |
|
217 |
PendingIntent contentIntent = PendingIntent.getActivity(DownloadService.this, 0, new Intent(DownloadService.this, DownloadListActivity.class), Intent.FLAG_ACTIVITY_NEW_TASK); |
|
218 |
doneNotification.setLatestEventInfo(DownloadService.this, title, getString(R.string.notification_done) + pack, contentIntent); |
|
219 |
nM.notify(pack.getId(), doneNotification); |
|
220 |
||
221 |
asyncExecutor = null; |
|
222 |
runNextTask();//see if there are more tasks |
|
223 |
} |
|
224 |
||
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
225 |
} |
6343 | 226 |
|
6350 | 227 |
enum TASK_STATE{ |
228 |
RUNNING, FINISHED, PENDING; |
|
6047
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
229 |
} |
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
230 |
|
10011f051f9c
Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff
changeset
|
231 |
} |