Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!

Tim Moores

Saloon Keeper
+ Follow
since Sep 21, 2011
Tim likes ...
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
UK / DE
Cows and Likes
Cows
Total received
158
In last 30 days
0
Total given
20
Likes
Total received
1213
Received in last 30 days
10
Total given
547
Given in last 30 days
4
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tim Moores

That sounds like the question you asked in https://coderanch.com/t/732319/mobile/Speech-synthesis-API-android, where you got an answer already. Let's continue the discussion over there; I'm closing this topic.
18 hours ago
What kind of data is this? How is it structured, and what purpose does it have?

The most common use of localized text is to display the GUI in different languages, based on the user's choice of language. Those texts would generally be held in properties files in the Java world. You can find extensive tutorials on that at https://docs.oracle.com/javase/tutorial/i18n/intro/.
Why WebView? It's severely limited in how far it can interact with the device; I doubt that there is a voice input/output solution that works with it.

If the web site that is displayed in the WebView is under your control, you can use a JavaScript interface to send the text to speak to native code in your app, and then use Android's speech synthesis API to speak it.
2 days ago
How, specifically, does it not work?

This kind of automation might be possible with JMeter, but I'm not sure it has facilities for dealing with certificates. You may have to install those in the JDK's certificate store.
Does the browser still support applets? Most browsers don't these days.
4 days ago
I see. Then it would be more like this:
5 days ago
Somewwhat like this. myMethod never knows what kind of List it gets, just that it does, in fact, get a List.

5 days ago
I think it's best not to think of this exercise being about HTML at all. Parsing HTML would be vastly more complicated than what is asked here. Also, most forms of HTML can't be valid or even well-formed (both words have very specific meaning in this context), since they're not XML.

So this exercise is specifically about what is described in the problem description, and nothing else; certainly it's not about HTML.
5 days ago
It seems view binding does not work for some reason. ButterKnife is obsolete these days; consider using Android's own view binding instead.
6 days ago




This should just be



6 days ago
JSP
Yes, that is clear. What do you have so far, and where are you stuck making progress?
1 week ago
Welcome to the Ranch.

Please tell us a bit more about the type of project. You mentioned JavaScript - is this part of a web site? But then you mentioned Java, so it can't run entirely in the browser. TellTheDetails
1 week ago
If you are distributing the app as a jar file, you can include any resources in the jar file, and load them via something like

InputStream inputStream = getClass().getClassLoader().getResourceAsStream("image.png"))
Found it. Based on file dates, it seems I worked on this in 2010. Can't believe it's been 10 years since then. My dabbling was based on https://www.wiley.com/en-us/Semantic+Web+Programming-p-9780470418017. The web site has example code for the book; check out the "HelloSemanticWeb" example in chapter 2. That got me started. I'm attaching the source code for that example.
1 week ago
That would be the Apache Jena library. I wrote some sample code with that years ago. I'll try to find it tomorrow, maybe it'll help you.
1 week ago