2011-10-01 22:47:55 +00:00
<!DOCTYPE html>
< html >
< head >
< meta charset = 'utf-8' >
< meta http-equiv = "cache-control" content = "no-cache, must-revalidate" >
< title > EnvayaSMS: Testing EnvayaSMS< / title >
< link rel = 'stylesheet' type = 'text/css' href = '/styles/site.css' / >
< / head >
< body >
< a href = "http://github.com/youngj/EnvayaSMS" > < img style = "position: absolute; top: 0; right: 0; border: 0;" src = "http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt = "Fork me on GitHub" / > < / a >
< div id = "container" >
< a style = 'float:left' href = "/" > < img src = '/media/icon.png' height = '72' width = '72' style = 'margin-right:10px' / > < / a >
< h1 style = 'padding-top:13px' > < a href = "/" > EnvayaSMS< / a >
< span class = "small" >
SMS gateway for Android
< / span >
< / h1 >
< div class = 'menu' style = 'clear:both;padding-top:5px' >
< a href = '/' > Home< / a >
·
< a href = '/install/' > Install< / a >
·
< a class = 'active' href = '/test/' > Test< / a >
·
< a href = '/how/' > How it Works< / a >
·
< a href = '/serverapi/' > API Reference< / a >
·
< a href = '/faq/' > FAQ< / a >
·
< a href = '/history/' > History< / a >
·
< a href = '/community/' > Community< / a >
< / div >
< h2 > Testing EnvayaSMS< / h2 >
2012-03-16 02:16:54 +00:00
< p >
2011-10-01 22:47:55 +00:00
< img src = '/media/avd.png' width = '242' height = '227' style = 'float:right;padding-left:10px;' / >
If you don't yet have an Android phone, you can test EnvayaSMS in an emulated phone on your computer.
< / p >
< p >
With this method, you can test EnvayaSMS for free
and figure out if EnvayaSMS will work for your project
without needing to get an actual phone or subscribe to mobile service.
< / p >
< p >
The following steps explain how to set up EnvayaSMS on an Android Virtual Device:
< / p >
< ol >
2011-10-02 02:00:24 +00:00
< li > Install the < a href = 'http://developer.android.com/sdk/' > Android SDK< / a > on your computer< / li >
2011-10-01 22:47:55 +00:00
< li > Create a new Android Virtual Device with a target of Android 1.6 or higher. Specify a size for the SD card (necessary to download EnvayaSMS via the browser)< / li >
< li > Start the virtual device< / li >
< li > Open the Browser app and go to < a href = '/install/' > sms.envaya.org/install< / a > < / li >
< li > Click on the EnvayaSMS-release.apk link to download EnvayaSMS.< br / >
< small > Note: Android Market does not work in the emulator.< / small > < / li >
< li > Install EnvayaSMS< / li >
< li > Configure EnvayaSMS with the settings of your development server. < br / >
2011-10-10 23:21:30 +00:00
< small > Note: Use < code > 10.0.2.2< / code > as the host in the Server URL. Do not enter < code > localhost< / code > , since this would refer to the AVD itself).< / small >
2011-10-01 22:47:55 +00:00
< / li >
2011-10-02 00:17:57 +00:00
< li >
2011-10-01 22:47:55 +00:00
To simulate incoming SMS on the emulator:
< ul >
2011-10-02 00:17:57 +00:00
< li >
2011-10-02 00:21:34 +00:00
< img src = '/media/telnet.png' width = '226' height = '95' style = 'float:right;padding-left:10px' / >
using a telnet client (on your computer), connect to < code > localhost:5554< / code > < br / >
2011-10-01 22:47:55 +00:00
< small > Note: on Windows, you can install < a href = 'http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html' > puttytel< / a > .< / small >
< / li >
< li > type < code > sms send [phonenumber] [text message]< / code > to send messages to the emulator.< br / >
< small > Note: the emulator cannot receive MMS messages.< / small >
< / li >
< / ul >
< / li >
< / ol >
2011-10-10 00:07:56 +00:00
< h3 > EnvayaSMS Request Simulator< / h3 >
< p >
The < a href = 'https://raw.github.com/youngj/EnvayaSMS/master/server/php/example/www/test.html' > EnvayaSMS Request Simulator< / a >
is a standalone HTML file that allows you to simulate EnvayaSMS's HTTP requests entirely in your browser via JavaScript.
< / p >
< p >
This may be helpful when developing and testing your server implementation. For example, you could write automated
tests in Selenium that use EnvayaSMS Request Simulator to make sure that your server implementation works correctly.
< / p >
< p >
To use EnvayaSMS Request Simulator, just copy the HTML file somewhere on your site, and open it in a web browser.
The URL of the EnvayaSMS Request Simulator must be on the same domain as the Server URL.
< / p >
< h3 > Using a Real Phone with a Development Server< / h3 >
2011-10-01 22:47:55 +00:00
< p >
Of course, you can also test EnvayaSMS by connecting a real Android phone to your development web server.
For more information, see the < a href = '/faq/#q_tunnel' > FAQ< / a > .
< / p >
< div class = "footer" >
get the source code on GitHub : < a href = "http://github.com/youngj/EnvayaSMS" > youngj/EnvayaSMS< / a >
< / div >
< / div >
< script type = "text/javascript" >
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25868450-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
< / script >
< / body >
< / html >