Fixed Surfing to download all linked content like images and iframes, also added FTP download

This commit is contained in:
Ziver Koc 2014-07-31 14:41:40 +02:00
parent d9fac2807a
commit 21e55f12c4
9 changed files with 107 additions and 45 deletions

View file

@ -35,8 +35,10 @@ public class CSVWriter {
public CSVWriter(Context context){
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
String path = prefs.getString("logging_path", "/sdcard/uecontrol/");
if(!path.endsWith("/")) path += "/";
file = new File(
prefs.getString("logging_path", "/sdcard/uecontrol/"),
path,
"log_"+fileDateFormater.format(System.currentTimeMillis())+".log");
ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);

View file

@ -91,7 +91,10 @@ public class Configurator {
public String getNiceName(){return niceName;}
public ConfigType getType(){return type;}
public String getString(){return value.toString();}
public String getString(){
if(value == null)
return null;
return value.toString();}
public void setString(String v){
switch(type){