I have this WebView that brings up my school’s lunch menu.
Is there a way to bring up a new menu every month using switch and case, or if an then?
This is the code that I have for my webview.
webPDF.loadUrl("https://docs.google.com/gview?embedded=true&url=" +
"http://www.longcountyhs.com/files/Menus/Aug_Lunch_WMS_LCHS.pdf");
Maybe instead of doing that, is it possible to do something like this?
webPDF.loadUrl("https://docs.google.com/gview?embedded=true&url=" +
"http://www.longcountyhs.com/files/Menus/" + "MONTH" + "_Lunch_WMS_LCHS.pdf");
To get the month you can use
DateFormatSymbolsalong with a calendar instance.So something like: