project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadPackage.java
equal
deleted
inserted
replaced
18 |
18 |
19 package org.hedgewars.hedgeroid.Downloader; |
19 package org.hedgewars.hedgeroid.Downloader; |
20 |
20 |
21 import java.io.IOException; |
21 import java.io.IOException; |
22 |
22 |
23 import org.hedgewars.hedgeroid.Utils; |
23 import org.hedgewars.hedgeroid.util.FileUtils; |
24 import org.xmlpull.v1.XmlPullParser; |
24 import org.xmlpull.v1.XmlPullParser; |
25 import org.xmlpull.v1.XmlPullParserException; |
25 import org.xmlpull.v1.XmlPullParserException; |
26 |
26 |
27 import android.content.Context; |
27 import android.content.Context; |
28 import android.content.SharedPreferences; |
28 import android.content.SharedPreferences; |
134 }catch (NumberFormatException e){ |
134 }catch (NumberFormatException e){ |
135 e.printStackTrace(); |
135 e.printStackTrace(); |
136 version = -1; |
136 version = -1; |
137 } |
137 } |
138 }else if(name.equals("path")){ |
138 }else if(name.equals("path")){ |
139 path = Utils.getDataPath(c) + text; |
139 path = FileUtils.getDataPath(c) + text; |
140 }else if(name.equals("representation")){ |
140 }else if(name.equals("representation")){ |
141 representation = text; |
141 representation = text; |
142 }else if(name.equals("description")){ |
142 }else if(name.equals("description")){ |
143 description = text; |
143 description = text; |
144 }else if(name.equals("uniqueid")){ |
144 }else if(name.equals("uniqueid")){ |