Jecke / CustomListView

0 stars 0 forks source link

Integrate Web note #4

Open Jecke opened 10 years ago

Jecke commented 10 years ago

Integrate an additional type of note which lets the user specify a URL. If the associated webpage is accessible then the app will create a thumbnail which can then be annotated like an image note.

hbraasch commented 10 years ago

Suggestion for comment: User scenario - User is in ActivityNoteAddNew... Sees another radiobutton called "Web Page" and clicks on it. ActivityWebBrowser executes (hopefully we can use a android built-in Intent here, which passes back the URL of the last served page). User surfs the web, starting from a default URL, or an URL passed on from ActivityNoteAddNew (if the note item is already a web note). If we design our own "Webbrowser" activity, me must give it a URL EditView so a user can enter a URL. In this case the last served web page is remembered and served). User closes the WebBrowser and the last served page URL is returned to ActivityNoteAddNew. In ActivityNoteAddNew, a thumbnail and lowres image is created, and saved as local images. Thumbnail is displayed in the little thumbnail position allocated for images. The Annotation menu items appear on the page. The URL appears as default text in the description field, if the field is empty. The user selects Annotation and follows the normal process to annotate the lowres image. User can select to change the description, so the URL does not have to be in the description. User returns to ActivityNoteStartup and the item will display as other image items with an image on the right, with "WWW" superimposed on it. User clicks in the image (unannotated at this stage) and the webbrowser opens, serving the URL. User clicks on the image(annotated at this stage), ActivityViewImage opens with the annotation displayed on the lowres image. User clicks on the annotated image, User is taken to a webbrowser which serves this URL.

Jecke commented 10 years ago

Some comments and suggestions:

  1. Android's webview is very limited and does not support JavaScript by default. Many websites use Java. We can enable that feature but that imposes a security risk for our app. Suggestions?
  2. How about we handle the URL like an extra field (like the number of the arrow annotation). My first design (see latest repo update) has a little text view below the Web Note tick box in ActivityAddNewOrEdit. That text is a display-only. The actual Description of the Web note is independent of the URL. The URL gets added somehow to the final Description. I could even imagine a placeholder in the Description where the user can add a reference to the URL (like a footnote).
  3. The new webactivity has a text view to add/change the URL and a WebView to change the content.
  4. A suggestion: Maybe we should split ActivityAddNewOrEdit in such a way that the activation of the Description field activates a separate window with a big and simple text editor. That would also allow us to get the footnote-URL for web notes (see 2.).
    Regards Jens
hbraasch commented 10 years ago

Sounds good, do what you think best and we'll get the feel of it once prototyped.

Jecke commented 10 years ago

Implemented as per Heinrich's suggestion. Needs to be tested. Works on simulator but Heinrich gets 'Media not found' if he uses Google Photo to display the image.