Log in or register to post comments

Connecting to a server

November 12, 2017 - 11:17am #1

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 (

[code=java]public void browser1(View view) {

        Intent browserIntent = new Intent (Intent.ACTION_VIEW, Uri.parse(""));



    public void browser2(View view) {

        Intent browserIntent = new Intent (Intent.ACTION_VIEW, Uri.parse("google website"));



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

Log in or register to post comments