Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Android devices generally cannot handle iCalendar-formatted files (.ics) &mdash; there is no way to just "open" such a file and have the information displayed. You would have to write some code (or use a library such as <a href="http://ical4j.sf.net/" rel="nofollow noreferrer">iCal4j</a>) to parse the information in the calendar file.</p> <p>Based on your question and comments, you need to break this into a few parts:</p> <ol> <li>Get the user's ID entered in the UI <ul> <li><code>String userId = ((EditText) findById(R.id.user_id)).getText.toString();</code></li> </ul></li> <li>Generate the user's unique calendar URL <ul> <li><code>static final String CALENDAR_BASE = "http://example.com/cal/";</code><br> <code>String escapedUserId = URLEncoder.encode(userId, "UTF-8");</code><br> <code>String url = CALENDAR_BASE + escapedUserId +"/events.ics";</code></li> </ul></li> <li>Retrieve the calendar file over HTTP</li> <li>Save the file locally <ul> <li><a href="https://stackoverflow.com/questions/576513/android-download-binary-file-problems">Android download binary file problems</a><br> (thanks to Pentium10)</li> </ul></li> <li>Display the calendar data to the user <ul> <li>Read the file from disk that you saved directly from the web</li> <li>Parse the data with iCal4j and display in whatever UI format you like</li> </ul></li> </ol> <p>You can search Stack Overflow or post a more particular question regarding any of the individual parts if you're unsure or need some more specific info. :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload