-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modernize codebase #68
Comments
Working on adding back the (required) legal notices, as per: https://developers.google.com/android/guides/opensource. However this throws the following exception:
Updated base style in rwapp/res/values/styles.xml to:
And set main activity theme to android:theme="@style/Theme.AppCompat.Light.DarkActionBar" > (for now) in AndroidManifest.xml of app, but still does not work properly. Needs some more tinkering. |
Tried to have RwBoundActivity inherit from AppCompatActivity, but this breaks other things. Have to find another way to deal with displaying open source licenses information. The easiest is probably to have our own text with the proper notices about the open source libraries used. For now this includes Roundware, the Picasso library (http://square.github.io/picasso/), and Google Play Services for the maps and location (and ExoPlayer? Anything else?). Have to figure out what text to use though. @hburgund Any thoughts on this one? PS: Found this https://medium.com/@jokatavr/how-to-use-android-open-source-notices-299a0635b5c2 which gets it to work (without having to change everything to AppCompat). However the list of licenses it shows is empty :( So apparently the POMs of the libraries included by the Gradle build files do not follow the standard for mentioning the license information. |
The issue with the Home - Info button opening a browser to display the information probably is caused by the https redirect. In strings.xml the resource is listed as:
Opening this URL in a browser redirects it to https://... On Android in the app the webview loads the regular (http) URL, but is not setup to handle the redirect so Android wants to open a browser to deal with it (regular Android behaviour). A simple fix is to setup the webview (in RwMainActivity) so that it loads all opened URLs into itself:
However all links in the info webpage will then also be opened in the webview. |
If I understand correctly, this seems like a fine solution for now. We don't need the ability to load urls linked in the info screen anywhere other than the webview itself. This is what you are saying, yes? |
Yes it is. Although I noticed that the info content for Landmarking contains links to Flikr for some of the photo's used. Clicking those opens the Flikr website, which has a download link for the Flikr app, which attempts to open the Google Play Store (app), which ends in a weird error message in the (Info) webview. So safest then if you remove all hyperlinks from the info web content. |
Cause of the Google Map not working probably related to running in the Android Emulator (have to install Google Play Services), and different debug and release Google maps API keys required (no Build Variants defined). |
I can make sure only links that open up reasonably well are included in the info screen, no problem. |
user_message
if returned when requesting stream)The text was updated successfully, but these errors were encountered: