Browser, Camera and Media Demos
Harry
· 11 Sep 2026
· 10 views
Web Browser
A WebView renders web pages inside your app:
WebView wv = (WebView) findViewById(R.id.webview);
wv.getSettings().setJavaScriptEnabled(true);
wv.loadUrl("https://groovygrails.in");
Camera
Take photos with the camera activity or a raw preview surface.


Sound and Text-to-Speech
Play audio with MediaPlayer and speak with TextToSpeech:
MediaPlayer mp = MediaPlayer.create(this, R.raw.ding);
mp.start();

Email and Contacts
Compose emails with an intent and read call history:
Intent i = new Intent(Intent.ACTION_SENDTO,
Uri.parse("mailto:"));
i.putExtra(Intent.EXTRA_TEXT, "Hello!");
startActivity(i);

Key Points
- Intents hand work to other apps without writing your own UI.
- WebView embeds browsers; MediaPlayer plays sound.
- Content providers expose data like contacts and call logs.