Hey guys
We are doing an application that will facilitate the museum visitors experience
basically, we will be connecting the application to a Raspberry Pi that acts as a server
which will stream files to the user as he/she taps the designated room on the application
meaning that if for example the user was in the first room, he will tap the Room 1 then the application
will connect to the Raspberry Pi in Room 1 to retrieve the needed data (information about the artifacts in this room) from it which is a HTML page on the Raspberry Pi
We got confused when we were designing the application, in the Rooms buttons
So we assigned statically an IP address for the Raspberry Pi (192.168.0.1)
[code=java]public void browser1(View view) { Intent browserIntent = new Intent (Intent.ACTION_VIEW, Uri.parse("192.168.0.1")); startActivity(browserIntent); }
public void browser2(View view) { Intent browserIntent = new Intent (Intent.ACTION_VIEW, Uri.parse("google website")); startActivity(browserIntent); }[/code]
We tried first to make the button redirect us to Google and it worked as it is quoted above,
now in the first button above is the address of the Pi, but it did not work and we want the button to connect to the Pi in order to retrieve data from it
Can you guys help?
Thank you