
Search In
Apple has provided a powerful api to play audio from text and here are the steps to achieve:
1- Import AVFoundation framework
2- Initialise AVSpeechSynthesizer(as below)
let synthesizer = AVSpeechSynthesizer()
3- Cre
To catch the states of every activity in our android application we have to implement ActivityLifecycleCallbacks. ActivityLifecycleCallbacks will have different override method as onActivityCreated, onActivityStarted, onActivityResumed, onActivityPau
The following should be used to automate a flash player:
WebDriver driver = new FirefoxDriver();
driver.navigate().to("http://www.youtube.com/watch?v=cwNmRCJAIXU");
FlashWebDriver flashObj = new FlashWebDriver(driver,"movie_player");
flashObj.call(
Hello All,
In this blog we will discuss about the different states of the Activity of your application running on any device or the emulator.So the first one of the highest priority one is going to be the Active state or the running state which basi
In the below example I have created Activity life cycle. Activity start's with a call on onCreate() callback method. There is a sequence of callback methods that start's an activity and a sequence of callback methods. See the below example for detail
If you want to send broadcasts within your application, LocalBroadcastManager is a more suitable option than sending global broadcast as:
1. The broadcasts sent by LocalBroadCastmanager can only be recieved inside the application so you
Android give facility to access the Wifi Network in your Application. You can access nearly every information of the connection.
Android have WifiManager API to handle all Wifi Connectivity.You can use it like this:
WifiManager wifiManagerObject;
In phonegap application there are many events that can be used and for these events the application code may add a listeners.
Lets take an example to evaluate this thing:
HTML:
<html>
<head>
<title>Events Example</tit
Hello Readers,
In today's post we will discuss about media plugin for Cordova apps. This plugin allows to record and play back audio files on a device. This plugin defines media constructor. We need to use this plugin with the device ready event
Cordova provides a plugin to play sounds in your mobile application. It can record an audio file and also play back audio file on the device.
Installing the plugin:
cordova plugin add cordova-plugin-media
It has a Media constructor. You ca