src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java

branch
ICAL4J_EMBED_1
changeset 21
af4693956263
parent 10
262b0d479a96
child 22
e8c0da59391a
equal deleted inserted replaced
2:ef2c9a4942d8 4:eecd5c8a50b3
70 import org.gege.caldavsyncadapter.caldav.entities.CalendarEvent; 70 import org.gege.caldavsyncadapter.caldav.entities.CalendarEvent;
71 71
72 import java.net.URISyntaxException; 72 import java.net.URISyntaxException;
73 import java.text.ParseException; 73 import java.text.ParseException;
74 74
75 import com.europalab.caldavsyn.Appctxpro;
76
75 //import android.accounts.Account; 77 //import android.accounts.Account;
76 //import android.content.ContentProviderClient; 78 //import android.content.ContentProviderClient;
77 //import android.content.ContentValues; 79 //import android.content.ContentValues;
78 //import android.content.SyncStats; 80 //import android.content.SyncStats;
79 //import android.os.RemoteException; 81 //import android.os.RemoteException;
315 * @see CalendarEvent#fetchBody() 317 * @see CalendarEvent#fetchBody()
316 */ 318 */
317 public boolean createIcs(String strUid) { 319 public boolean createIcs(String strUid) {
318 boolean Result = false; 320 boolean Result = false;
319 TimeZone timeZone = null; 321 TimeZone timeZone = null;
322 //Thread.currentThread().setContextClassLoader(Context.getApplicationContext().getClassLoader());
323 Thread.currentThread().setContextClassLoader(Appctxpro.getContext().getClassLoader());
320 TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry(); 324 TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry();
321 //TODO: do not simply create the ics-file new. take into account the RAWDATA if available 325 //TODO: do not simply create the ics-file new. take into account the RAWDATA if available
322 /* 326 /*
323 * dtstart=1365598800000 327 * dtstart=1365598800000
324 * dtend=1365602400000 328 * dtend=1365602400000

mercurial