0

I am looking for a method to display a webpage when somebody connects to my hotspot

.Is there a way I could implement this?

animuson
  • 53,861
  • 28
  • 137
  • 147
opc0de
  • 11,557
  • 14
  • 94
  • 187

1 Answers1

0

Not sure what the Android access restrictions are, but assuming your app has the network read / write / bind permissions, the simplest thing to do is simple embed Jetty and get it to start a server on the specified port, example are : http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty

EDIT: Upon further reading of your question that's just the start, you will need to block all other network traffic until the client has accepted the captive portal above.

Hope I helped

md_5

md_5
  • 630
  • 9
  • 26