Skip to content

Tag: java

startActivity() in BroadcastReceiver

I am trying to create an application that calls the sender of an SMS as soon as the smartphone receives an SMS. This is my code: But it dials and calls the sender only when the application is in foreground, while I’d like it to work always. Using the debugger, the execution flows, but it is unable to st…

Is there a way to get HTTP request parameter using wildcard?

We have a service that get values from formData in http requests. Some parameters are packaging1_1 or packaging1_2 or packaging1_3 etc We are using the following code to get the parameter value from HttpServletRequest request Is there any way to use the code with wildcard in the last number? e.g. Answer No, y…

Jetty Websocket Authentication

I play the Jetty Websocket use example here : https://github.com/jetty-project/embedded-jetty-websocket-examples (i use native-jetty-websocket-example) I just move from websocketpp (C++) to Java Jetty Websocket and i just wonder is there any way for me to authen the connection before the connection move to th…