Android Open Source - Gcal_Importer Model4 Top






From Project

Back to project page Gcal_Importer.

License

The source code is released under:

Apache License

If you think the Android project Gcal_Importer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package net.crappo.android.androics;
//  w  w  w  .  j  a  va 2  s .  c  om
import java.io.FileInputStream;
import java.util.ArrayList;

import net.fortuna.ical4j.data.CalendarBuilder;
import net.fortuna.ical4j.model.Calendar;
import net.fortuna.ical4j.model.Property;

public class Model4Top {
    public ArrayList<Property> calNames;

    public Model4Top() {
        calNames = new ArrayList<Property>();
    }

    public void addCalName(String pathStr) {
        Calendar calendar = null;
        try { // TopActivity????????????????????????????????????????????????????(????Property?Component???????)
            FileInputStream fin = new FileInputStream(pathStr);
            CalendarBuilder builder = new CalendarBuilder();
            calendar = builder.build(fin);
            calNames.add(calendar.getProperties().getProperty("X-WR-CALNAME"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}




Java Source Code List

net.crappo.android.androics.AccountAuthService.java
net.crappo.android.androics.AndroIcsAuthenticator.java
net.crappo.android.androics.BrowserForDownLoadActivity.java
net.crappo.android.androics.Model4EventList.java
net.crappo.android.androics.Model4Top.java
net.crappo.android.androics.ShowEventListActivity.java
net.crappo.android.androics.ShowEventListAsync.java
net.crappo.android.androics.SimpleFileDialog.java
net.crappo.android.androics.TopActivity.java
net.crappo.android.androics.TopIcsListAsync.java
net.crappo.android.androics.ZipInOutMethods.java