How do apps (phone and desktop apps) connect to the internet and access other system files, such as, contacts, storage,etc?
This might be quite obvious but I am quite new to this stuff and would appreciate if someone could explain. If the question is confusing I will provide some examples: Youtube app, for instance, how does it connect to the internet and also how is it able to access your camera if you want to record a video? I see how browsers can do it - They are meant for you to connect you to other websites and be able to view those content, but how do apps do it? I would really appreciate if you could link me to something or explain it yourself. Thank You!
7/28/2018 3:06:25 PMBeginner
1 AnswerNew Answer
they are 2 different worlds but here goes something broad. In Android, we have permissions; if you noticed when you download an app it says this app has access to x and x and x etc. The operating system is set up for Java code to use the drivers that talk to the hardware. Hardware being the camera, wifi module, and storage system (of course theres more such as gps, mic, heat sensors, touch screen, pressure, external buttons, vibration module, etc.). If you physically remove a module, the code will work, but nothing happens. For computers its easier since hardware access is a little easier now, but its all talking to drivers in the end. Thats why when you plug in a new device, peripheral, or module, it asks for drivers, or else the computer wont be able to talk to the device