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");

WebView browser example

Camera

Take photos with the camera activity or a raw preview surface.

Camera example

Camera wallpaper example

Sound and Text-to-Speech

Play audio with MediaPlayer and speak with TextToSpeech:

MediaPlayer mp = MediaPlayer.create(this, R.raw.ding);
mp.start();

Sound playback example

Text to speech example

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);

Email intent example

Call log query example

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.
Share this post:

Comments (0)

Please login or register to comment.