tag:blogger.com,1999:blog-91245487437183681672024-03-08T14:11:27.929+01:00Java GroupSergii Zagriichukhttp://www.blogger.com/profile/01998245453959101215noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-9124548743718368167.post-35461817653167438532011-07-15T17:21:00.001+02:002011-07-15T17:22:04.409+02:00I have moved to my siteHi All,<br />
I've moved all content to my site , you can follow to <a href="http://codingstories.com/">http://codingstories.com/</a> to read old and new posts.Sergii Zagriichukhttp://www.blogger.com/profile/01998245453959101215noreply@blogger.com0tag:blogger.com,1999:blog-9124548743718368167.post-12561798433125336362011-07-13T23:31:00.002+02:002011-07-13T23:54:10.367+02:00Android: Localization<strong>Introduction</strong><br />
<br />
The next step in development Android application will be <strong>localization</strong>. I've read documentation from official site and from <a href="http://www.icanlocalize.com/">http://www.icanlocalize.com/</a> and decided to describe it.<br />
<strong><br />
</strong><br />
<strong>Sequence of resources lookup.</strong><br />
<br />
How does android lookup the resources from applications?<br />
The example of lookup steps below:<br />
<ol style="color: #404040; font-family: 'Lucida Grande', Verdana, 'Bitstream Vera Sans', Arial, sans-serif; font-size: 12px; line-height: 19px;"><li><em>‘res/values-en-rUS/strings.xml’</em></li>
<li><em>‘res/values-en/strings.xml’</em></li>
<li><em>‘res/values/strings.xml’</em></li>
</ol>Firsltly Android looks for resources in <strong>en-rUS</strong> folder if not found, looks in <strong>-en</strong> folder and just after it in default. <strong>If resource has been found</strong> then the search <strong>stops</strong>.<br />
<br />
<strong>Dismantle folders structure</strong><br />
<br />
The next question that worried me : What does it mean <b>-rUS</b> why is not just en?<br />
The answer is, There are countries with two or more official languages for example <span style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 14px;">Switzerland </span>but there no Swiss language just French or/and German. The fisrt -<symbol>- (in our example<b> -en-</b>) means<strong> language</strong>, <b>-r </b>means <strong>region </strong>and after -r name of region. For instance for French language in Switzerland will be<br />
<em> res/values-fr-rCH</em><br />
This rules works for other resources like pictures and so on.<br />
<strong><br />
</strong><br />
<strong>Conclusion</strong><br />
<br />
If you want to localize your application just: <br />
<ul><li>create folders for all localized resources using above convention </li>
<li>put localized files into folders</li>
<li>start your application</li>
</ul>P.S. And yes you must not to use strings in code just from resource files.<br />
<ul></ul>And that is all ...<br />
Cheers!Sergii Zagriichukhttp://www.blogger.com/profile/01998245453959101215noreply@blogger.com0tag:blogger.com,1999:blog-9124548743718368167.post-27840094088725791802011-07-06T11:11:00.006+02:002011-07-13T12:22:37.818+02:00Android: Amazing story about sending SMS messages from the code.Hi,<br />
I have found amazing case of sending sms messages from the code.<br />
<strong><br />
</strong><br />
<strong>Task</strong><br />
I need to send SMS message from my test method and test behavior of parsing it. Just for this post we are interesting in first part: Sending SMS message from code.<br />
I’ve written next simple code:<br />
<span class="Apple-style-span" style="color: #006000; font-family: monospace;"><span class="Apple-style-span" style="font-size: 12px; line-height: 14px;"><br />
</span></span><br />
<pre class="csharpcode">final SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(<span class="str">"5554"</span>, <span class="kwrd">null</span>, <span class="str">"Test"</span>, <span class="kwrd">null</span>, <span class="kwrd">null</span>);
</pre><br />
and tried to test it. Just put this code in simple test method and run Android Unit Test. The result is … nothing!!! Why?!! I did not understand …<br />
<br />
<strong>Solution</strong><br />
After hours of investigation and reading documentation and blogs I decided to try the same manipulation, BUT, just on two emulators. I have started two emulators on 5554 and 5556 and tried start test project on 5554 but send message to 5556. Simple changes in code below:<br />
<br />
<pre class="csharpcode">final SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(<span class="str">"5556"</span>, <span class="kwrd">null</span>, <span class="str">"Test"</span>, <span class="kwrd">null</span>, <span class="kwrd">null</span>);
</pre><br />
And … and … I was surprised,<strong> I can see message “Test”</strong> on 5556 emulator and it is <strong>perfectly</strong>!<br />
Cheers!Sergii Zagriichukhttp://www.blogger.com/profile/01998245453959101215noreply@blogger.com0tag:blogger.com,1999:blog-9124548743718368167.post-50514308814795720712011-07-05T19:21:00.008+02:002011-07-12T00:55:46.888+02:00Android: Problems of run Unit Tests<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: small;"><span style="font-size: small;">Hi, </span><br />
<span style="font-size: small;">I have created separate project for testing my Android Application and tried to start it.</span><br />
<span style="font-size: small;">After starting I have received next error:</span><br />
</span> </span><br />
<div id="codeSnippetWrapper" style="background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; cursor: text; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 20px; max-height: 200px; overflow-x: auto; overflow-y: auto; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; width: 97.5%;"><pre id="codeSnippet" style="background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><span style="font-size: small;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Test run failed: Unable to find instrumentation info for:
ComponentInfo {<span style="color: blue;"><</span>my package<span style="color: blue;">></span>/android<span style="color: red;">.</span>test<span style="color: red;">.</span>InstrumentationTestRunner}</span></span></pre><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">After few hours of investigation I have found solution for this situation.<br />
<br />
<span style="font-size: small;"><strong>Problem:</strong></span><br />
So, Problem is package in the manifest files. The package in “real” project manifest file and test manifest file are equal. For instance look at the package <strong>com.blogspot.jugvn </strong>in both manifests<br />
<br />
Test manifest:<br />
</span><br />
<div id="codeSnippetWrapper" style="background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; cursor: text; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 20px; max-height: 200px; overflow-x: auto; overflow-y: auto; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; width: 97.5%;"><pre id="codeSnippet" style="background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><span style="font-size: small;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span style="color: blue;"><?</span><span style="color: maroon;">xml</span> <span style="color: red;">version</span><span style="color: blue;">="1.0"</span> <span style="color: red;">encoding</span><span style="color: blue;">="utf-8"</span>?<span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">manifest</span>
<span style="color: red;">xmlns:android</span><span style="color: blue;">="http://schemas.android.com/apk/res/android"</span>
<span style="color: red;">package</span><span style="color: blue;">="com.blogspot.jugvn"</span>
<span style="color: red;">android:versionCode</span><span style="color: blue;">="1"</span>
<span style="color: red;">android:versionName</span><span style="color: blue;">="1.0"</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-sdk</span>
<span style="color: red;">android:minSdkVersion</span><span style="color: blue;">="7"</span> <span style="color: blue;">/></span>
<span style="color: blue;"><</span><span style="color: maroon;">instrumentation</span>
<span style="color: red;">android:targetPackage</span><span style="color: blue;">="com.blogspot.jugvn"</span>
<span style="color: red;">android:name</span><span style="color: blue;">="android.test.InstrumentationTestRunner"</span>
<span style="color: blue;">/></span>
<span style="color: blue;"><</span><span style="color: maroon;">application</span> <span style="color: red;">android:icon</span><span style="color: blue;">="@drawable/icon"</span>
<span style="color: red;">android:label</span><span style="color: blue;">="@string/app_name"</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-library</span> <span style="color: red;">android:name</span><span style="color: blue;">="android.test.runner"</span>
<span style="color: blue;">/></span>
<span style="color: blue;"></</span><span style="color: maroon;">application</span><span style="color: blue;">></span>
<span style="color: green;"><!-- </span>
<span style="color: green;">Add permissions for send sms messages--></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-permission</span> <span style="color: red;">android:name</span><span style="color: blue;">="android.permission.SEND_SMS"</span>
<span style="color: blue;">/></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-permission</span>
<span style="color: red;">android:name</span><span style="color: blue;">="android.permission.WRITE_SMS"</span> <span style="color: blue;">/></span>
<span style="color: blue;"></</span><span style="color: maroon;">manifest</span><span style="color: blue;">></span></span></span></pre><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Project Manifest:<br />
</span><br />
<div id="codeSnippetWrapper" style="background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; cursor: text; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 20px; max-height: 200px; overflow-x: auto; overflow-y: auto; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; width: 97.5%;"><pre id="codeSnippet" style="background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><span style="font-size: small;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span style="color: blue;"><?</span><span style="color: maroon;">xml</span> <span style="color: red;">version</span><span style="color: blue;">="1.0"</span> <span style="color: red;">encoding</span><span style="color: blue;">="utf-8"</span>?<span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">manifest</span>
<span style="color: red;">xmlns:android</span><span style="color: blue;">="http://schemas.android.com/apk/res/android"</span>
<span style="color: red;">package</span><span style="color: blue;">="com.blogspot.jugvn"</span>
<span style="color: red;">android:versionCode</span><span style="color: blue;">="1"</span> <span style="color: red;">android:versionName</span><span style="color: blue;">="1.0"</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">application</span> <span style="color: red;">android:label</span><span style="color: blue;">="@string/app_name"</span> <span style="color: red;">android:icon</span><span style="color: blue;">="@drawable/visa"</span>
<span style="color: red;">android:debuggable</span><span style="color: blue;">="true"</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">activity</span> <span style="color: red;">android:name</span><span style="color: blue;">=".AccountList"</span>
<span style="color: red;">android:label</span><span style="color: blue;">="@string/app_name"</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">intent-filter</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">action</span> <span style="color: red;">android:name</span><span style="color: blue;">="android.intent.action.MAIN"</span>
<span style="color: blue;">/></span>
<span style="color: blue;"><</span><span style="color: maroon;">category</span> <span style="color: red;">android:name</span><span style="color: blue;">="android.intent.category.LAUNCHER"</span>
<span style="color: blue;">/></span>
<span style="color: blue;"></</span><span style="color: maroon;">intent-filter</span><span style="color: blue;">></span>
<span style="color: blue;"></</span><span style="color: maroon;">activity</span><span style="color: blue;">></span>
<span style="color: blue;"></</span><span style="color: maroon;">application</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-sdk</span>
<span style="color: red;">android:minSdkVersion</span><span style="color: blue;">="7"</span> <span style="color: red;">android:targetSdkVersion</span><span style="color: blue;">="7"</span>
<span style="color: blue;">/></span>
<span style="color: green;"><!-- Allows an application to </span>
<span style="color: green;">read SMS messages. --></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-permission</span>
<span style="color: red;">android:name</span><span style="color: blue;">="android.permission.READ_SMS"</span> <span style="color: blue;">/></span>
<span style="color: blue;"></</span><span style="color: maroon;">manifest</span><span style="color: blue;">></span>
</span></span></pre><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><strong>Solution:</strong><br />
Change package in test project to something else, I have used next convention: put <strong>test </strong>instead of first part of package like this :<br />
<br />
<strong><span style="font-size: small;">test.blogspot.jugvn </span></strong><br />
<br />
<span style="font-size: small;">And result manifest file should be like this</span><br />
</span><br />
<div id="codeSnippetWrapper" style="background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; cursor: text; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 20px; max-height: 200px; overflow-x: auto; overflow-y: auto; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; width: 97.5%;"><pre id="codeSnippet" style="background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: small;"><span style="font-size: small;"><span style="color: blue;"><</span><span style="color: maroon;">manifest</span> <span style="color: red;">xmlns:android</span><span style="color: blue;">="http://schemas.android.com/apk/res/android"</span>
<span style="color: red;">package</span></span></span><span style="font-size: small;"><span style="font-size: small;"><span style="color: blue;">="test.blogspot.jugvn
"</span>
<span style="color: red;">android:versionCode</span><span style="color: blue;">="1"</span>
<span style="color: red;">android:versionName</span><span style="color: blue;">="1.0"</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-sdk</span>
<span style="color: red;">android:minSdkVersion</span><span style="color: blue;">="7"</span> <span style="color: blue;">/></span>
<span style="color: blue;"><</span><span style="color: maroon;">instrumentation</span>
<span style="color: red;">android:targetPackage</span><span style="color: blue;">="test.blogspot.jugvn "</span>
<span style="color: red;">android:name</span><span style="color: blue;">="android.test.InstrumentationTestRunner"</span>
<span style="color: blue;">/></span>
<span style="color: blue;"><</span><span style="color: maroon;">application</span> <span style="color: red;">android:icon</span><span style="color: blue;">="@drawable/icon"</span>
<span style="color: red;">android:label</span><span style="color: blue;">="@string/app_name"</span><span style="color: blue;">></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-library</span>
<span style="color: red;">android:name</span><span style="color: blue;">="android.test.runner"</span> <span style="color: blue;">/></span>
<span style="color: blue;"></</span><span style="color: maroon;">application</span><span style="color: blue;">></span>
<span style="color: green;"><!-- Add permissions for send sms </span>
<span style="color: green;">messages--></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-permission</span>
<span style="color: red;">android:name</span><span style="color: blue;">="android.permission.SEND_SMS"</span> <span style="color: blue;">/></span>
<span style="color: blue;"><</span><span style="color: maroon;">uses-permission</span> <span style="color: red;">android:name</span><span style="color: blue;">="android.permission.WRITE_SMS"</span>
<span style="color: blue;">/></span>
<span style="color: blue;"></</span><span style="color: maroon;">manifest</span><span style="color: blue;">></span></span></span></span></pre><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><span style="font-size: small;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">That is all manipulation for fixing this problem.<br />
<br />
<span style="font-size: small;">Cheers!</span></span> <br />
<span style="font-family: calibri; font-size: small;"></span></span>Sergii Zagriichukhttp://www.blogger.com/profile/01998245453959101215noreply@blogger.com1tag:blogger.com,1999:blog-9124548743718368167.post-39013036895946606802011-07-05T13:12:00.003+02:002011-07-12T00:55:27.367+02:00Android send SMS messages from emulator using Telnet<span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Hi, </span><br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">I have started to develop first Android project and will write some notes during development process.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">The first note is sending sms messages from terminal. </span><br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">So, There are a few steps to send messages from emulator using terminal:</span><br />
<ol><li><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: small;">Start emulator (The emulator has to be started becaue you need to know port to connect). For starting emulator go to the Andriod SDK and AVD <strong>Manager->Virtual Devices->Start</strong></span><strong> </strong><br />
</span></li>
<li><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: small;">Start telnet. Type in console window <div id="codeSnippetWrapper" style="background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; cursor: text; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 20px; max-height: 200px; overflow-x: auto; overflow-y: auto; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; width: 97.5%;"><div id="codeSnippet" style="background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><pre style="background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><span id="lnum1" style="color: #606060;"> 1:</span> telnet</pre></div></div></span><br />
</span></li>
<li><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: small;">Open telnet connection to the emulator port. Type in telnet window <br />
<div id="codeSnippetWrapper" style="background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; cursor: text; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 20px; max-height: 200px; overflow-x: auto; overflow-y: auto; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; width: 97.5%;"><br />
<div id="codeSnippet" style="background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><pre style="background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><span id="lnum1" style="color: #606060;"> 1:</span> o localhost 5554</pre></div></div>, where <strong>localhost </strong>name of computer where emulator is running and <strong>5554</strong> it is port of emulator running.</span> <br />
</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Try to send message. Type in telnet window <br />
<div id="codeSnippetWrapper" style="background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; cursor: text; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 20px; max-height: 200px; overflow-x: auto; overflow-y: auto; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; width: 97.5%;"><br />
<div id="codeSnippet" style="background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><pre style="background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;"><span id="lnum1" style="color: #606060;"> 1:</span> sms send 5556 Test Message</pre></div></div>, where <strong>5556</strong> is phone number, <strong>Test Message</strong> is text of message.</span></li>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"> </span></ol><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">And that is all …</span>Sergii Zagriichukhttp://www.blogger.com/profile/01998245453959101215noreply@blogger.com0tag:blogger.com,1999:blog-9124548743718368167.post-73132430161801997952011-05-29T19:09:00.004+02:002011-07-05T22:27:11.258+02:00Preparing to start …<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Hi,<br />
All the potential readers of this blog should understand, that I am not a writer. I just trying to write some interesting things about java. </span><br />
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">So, go ahead …</span><br />
<span style="font-family: Calibri; font-size: medium;"></span>Sergii Zagriichukhttp://www.blogger.com/profile/01998245453959101215noreply@blogger.com0