<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Azeem Personal play ground &#187; Java</title>
	<atom:link href="http://azimyasin.wordpress.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://azimyasin.wordpress.com</link>
	<description>Technology Happens!</description>
	<lastBuildDate>Sat, 26 Dec 2009 22:12:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='azimyasin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/9dab6add9d8b4e3cad8caff23f8b8c1a?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Azeem Personal play ground &#187; Java</title>
		<link>http://azimyasin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://azimyasin.wordpress.com/osd.xml" title="Azeem Personal play ground" />
	<atom:link rel='hub' href='http://azimyasin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Superseding some Pre-Concepts Of Static Data members</title>
		<link>http://azimyasin.wordpress.com/2008/05/18/superseding-some-pre-concepts-of-static-data-members/</link>
		<comments>http://azimyasin.wordpress.com/2008/05/18/superseding-some-pre-concepts-of-static-data-members/#comments</comments>
		<pubDate>Sun, 18 May 2008 17:31:28 +0000</pubDate>
		<dc:creator>azimyasin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Codes]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[allocation of memory in static]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[data members static]]></category>
		<category><![CDATA[members]]></category>
		<category><![CDATA[static]]></category>
		<category><![CDATA[static memory]]></category>
		<category><![CDATA[undefined reference to]]></category>

		<guid isPermaLink="false">http://azimyasin.wordpress.com/?p=72</guid>
		<description><![CDATA[Well 3 years back i studied OOP and at that time we had a one simple rule in our mind
What ever teacher teaches i always right ! If you think teacher is wrong then you&#8217;re a moron!
For what i remember we all have been told that static datamembers exists without there object being made
since that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=azimyasin.wordpress.com&blog=906513&post=72&subd=azimyasin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Well 3 years back i studied OOP and at that time we had a one simple rule in our mind</p>
<p>What ever teacher teaches i always right ! If you think teacher is wrong then you&#8217;re a moron!</p>
<p>For what i remember we all have been told that static datamembers exists without there object being made<br />
since that time i use to belive that static data members are created at compilation time and the memory gets<br />
allocated to them without there object being made! I never cared about it i just belived what was told to me until today ! i thought of trying static data members out and check weather they really exists without there object being made</p>
<p>Lets assume we have  a class</p>
<p>class A {</p>
<p>public :<br />
static int i;</p>
<p>};</p>
<p>int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
A abc;<br />
return 0;<br />
}</p>
<p>What i pressumed is that static data member would have been allocated memory at the compile time but found out that it really doesnt <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://azimyasin.files.wordpress.com/2008/05/static-nim.jpg"><img class="alignleft size-medium wp-image-73" src="http://azimyasin.files.wordpress.com/2008/05/static-nim.jpg?w=408&#038;h=322" alt="Nothing in memory" width="408" height="322" /></a></p>
<p>Full screenshot available <a title="Screenshot1" href="http://azimyasin.files.wordpress.com/2008/05/static-nim.jpg" target="_blank">here</a></p>
<p>Now when you define that static variable befor the Main Clause you get a memory location</p>
<p><a href="http://azimyasin.files.wordpress.com/2008/05/static-nim-2.jpg"><img class="alignleft size-medium wp-image-74" src="http://azimyasin.files.wordpress.com/2008/05/static-nim-2.jpg?w=300&#038;h=225" alt="Static 2" width="300" height="225" /></a><br />
Full screenshot available <a title="Screenshot2" href="http://azimyasin.files.wordpress.com/2008/05/static-nim-2.jpg" target="_blank">here</a></p>
<p>One thing more the memory location of the object and the static variable are totally seprated ! </p>
<p>So Moral of the story dont believe things until you try them out and Static data members have no existence like a class have no existence in memory until they are defined after the class .</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/azimyasin.wordpress.com/72/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/azimyasin.wordpress.com/72/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/azimyasin.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/azimyasin.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/azimyasin.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/azimyasin.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/azimyasin.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/azimyasin.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/azimyasin.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/azimyasin.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/azimyasin.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/azimyasin.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=azimyasin.wordpress.com&blog=906513&post=72&subd=azimyasin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://azimyasin.wordpress.com/2008/05/18/superseding-some-pre-concepts-of-static-data-members/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b18085b9a37da4ee1123eca0853be57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">azimyasin</media:title>
		</media:content>

		<media:content url="http://azimyasin.files.wordpress.com/2008/05/static-nim.jpg?w=300" medium="image">
			<media:title type="html">Nothing in memory</media:title>
		</media:content>

		<media:content url="http://azimyasin.files.wordpress.com/2008/05/static-nim-2.jpg?w=300" medium="image">
			<media:title type="html">Static 2</media:title>
		</media:content>
	</item>
		<item>
		<title>Function within Function</title>
		<link>http://azimyasin.wordpress.com/2008/01/29/function-within-function/</link>
		<comments>http://azimyasin.wordpress.com/2008/01/29/function-within-function/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 17:47:48 +0000</pubDate>
		<dc:creator>azimyasin</dc:creator>
				<category><![CDATA[APACHE MYSQL PHP]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Codes]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[function in function]]></category>
		<category><![CDATA[function within function]]></category>

		<guid isPermaLink="false">http://azimyasin.wordpress.com/?p=53</guid>
		<description><![CDATA[Well i have been coding in C++ and C# for quite a long
What i really ought to  know was that you cannot define a function with in a function!
I axiomatically thought that the rule would imply to all of the languages! But i was wrong!
In php you can do functions with in function so as with PASCAL!
&#60;?php
function myfunc($a)
{
function func2($b)
{
function func3($c)
{
echo &#8220;I got &#8220;.$c;
}
echo &#8220;I got &#8220;.$b;
func3(&#8220;asdfasdf &#8220;);
}
echo &#8220;I got &#8220;.$a;
func2(&#8220;asdf&#8221;);
}
myfunc(&#8220;abc&#8221;);
?&#62;
and the out put would be
X-Powered-By: PHP/5.2.0
Content-type: text/html
I got abcI got asdfI got asdfasdf
Creepy!!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=azimyasin.wordpress.com&blog=906513&post=53&subd=azimyasin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Well i have been coding in C++ and C# for quite a long<br />
What i really ought to  know was that you cannot define a function with in a function!</p>
<p>I axiomatically thought that the rule would imply to all of the languages! But i was wrong!<br />
In php you can do functions with in function so as with PASCAL!</p>
<p>&lt;?php</p>
<p>function myfunc($a)</p>
<p>{</p>
<p>function func2($b)</p>
<p>{</p>
<p>function func3($c)</p>
<p>{</p>
<p>echo &#8220;I got &#8220;.$c;<br />
}<br />
echo &#8220;I got &#8220;.$b;<br />
func3(&#8220;asdfasdf &#8220;);<br />
}<br />
echo &#8220;I got &#8220;.$a;<br />
func2(&#8220;asdf&#8221;);<br />
}<br />
myfunc(&#8220;abc&#8221;);</p>
<p>?&gt;<br />
and the out put would be<br />
X-Powered-By: PHP/5.2.0</p>
<p>Content-type: text/html</p>
<p>I got abcI got asdfI got asdfasdf</p>
<p>Creepy!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/azimyasin.wordpress.com/53/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/azimyasin.wordpress.com/53/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/azimyasin.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/azimyasin.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/azimyasin.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/azimyasin.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/azimyasin.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/azimyasin.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/azimyasin.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/azimyasin.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/azimyasin.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/azimyasin.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=azimyasin.wordpress.com&blog=906513&post=53&subd=azimyasin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://azimyasin.wordpress.com/2008/01/29/function-within-function/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b18085b9a37da4ee1123eca0853be57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">azimyasin</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing with the java applet of Ufone!</title>
		<link>http://azimyasin.wordpress.com/2007/12/17/playing-with-the-java-applet-of-ufone/</link>
		<comments>http://azimyasin.wordpress.com/2007/12/17/playing-with-the-java-applet-of-ufone/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 15:09:57 +0000</pubDate>
		<dc:creator>azimyasin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[decompile applet]]></category>
		<category><![CDATA[decompile java]]></category>
		<category><![CDATA[pakistan sms ufone]]></category>
		<category><![CDATA[send free sms ufone]]></category>
		<category><![CDATA[send sms ufone]]></category>
		<category><![CDATA[sms protocol]]></category>
		<category><![CDATA[sms server]]></category>
		<category><![CDATA[sms ufone]]></category>
		<category><![CDATA[ufone from your pc]]></category>
		<category><![CDATA[ufone protocol]]></category>
		<category><![CDATA[ufone sms]]></category>

		<guid isPermaLink="false">http://azimyasin.wordpress.com/2007/12/17/playing-with-the-java-applet-of-ufone/</guid>
		<description><![CDATA[Well quite recently i got my interest developed about how to send sms !! With my cruel looking cell phone i visited the ufone web2sms ..! It asks me for Nick and cell phone number!
gave it..and now it authenticates weather i wish to receive the sms or not. I replied yes and the chat Initiates!!! [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=azimyasin.wordpress.com&blog=906513&post=42&subd=azimyasin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Well quite recently i got my interest developed about how to send sms !! With my cruel looking cell phone i visited the ufone web2sms ..! It asks me for Nick and cell phone number!<br />
gave it..and now it authenticates weather i wish to receive the sms or not. I replied yes and the chat Initiates!!! Next thing i did was to download the class file the byte code of the java applet.! Now what !! How does it works.!! We gotta decompile it..!! Used jad and it gives me out the source code of the applet.</p>
<p>which is.</p>
<p><code><br />
// DeCompiled : webchat.class</code></p>
<p>import java.applet.Applet;<br />
import java.awt.Button;<br />
import java.awt.Choice;<br />
import java.awt.Color;<br />
import java.awt.Component;<br />
import java.awt.Container;<br />
import java.awt.Font;<br />
import java.awt.Graphics;<br />
import java.awt.Image;<br />
import java.awt.Label;<br />
import java.awt.Rectangle;<br />
import java.awt.TextArea;<br />
import java.awt.TextComponent;<br />
import java.awt.TextField;<br />
import java.awt.event.ActionEvent;<br />
import java.awt.event.ActionListener;<br />
import java.awt.event.ItemEvent;<br />
import java.awt.event.ItemListener;<br />
import java.io.OutputStream;<br />
import java.io.PrintStream;<br />
import java.net.Socket;<br />
import java.util.Vector;</p>
<p>public class webchat extends Applet<br />
implements ItemListener, ActionListener<br />
{<br />
/* member class not found */<br />
class SimpleTextListener {}</p>
<p>public static Button buttonDb1;<br />
public static Button buttonDb2;<br />
Button buttonDb3;<br />
Button buttonDb4;<br />
Image img;<br />
Image img1;<br />
String Nick;<br />
public static TextArea textNum;<br />
public static TextField textNumX;<br />
public static TextField textNumA;<br />
public static TextField textNumB;<br />
public static Choice preChoice;<br />
TextField textIP;<br />
TextField textPort;<br />
Label textLabel;<br />
Label textLabel1;<br />
Label textLabel2;<br />
Label textLabel20;<br />
Label textLabel_MSG;<br />
java.awt.List buddy;<br />
Vector V;<br />
String m_number;<br />
String prefix;<br />
public static Client10 clientObject;<br />
String line;<br />
public static String can_message;<br />
public static String id_message;<br />
public static String applet_id;<br />
public static String message_txt;<br />
public static boolean id_flag = false;<br />
String server_ip;<br />
String server_port;</p>
<p>public webchat()<br />
{<br />
server_ip = &#8220;vega.vectracom.net&#8221;;<br />
server_port = &#8220;5000&#8243;;<br />
}</p>
<p>public void init()<br />
{<br />
super.init();<br />
setLayout(null);<br />
setBackground(Color.white);<br />
textLabel1 = new Label(&#8220;Nick&#8221;);<br />
textLabel1.setForeground(Color.black);<br />
textLabel1.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
textLabel1.setBounds(new Rectangle(5, 20, 40, 20));<br />
Nick = getParameter(&#8220;NICK&#8221;);<br />
textNumX = new TextField(Nick, 10);<br />
textNumX.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
textNumX.setBackground(Color.white);<br />
textNumX.setBounds(new Rectangle(50, 20, 70, 20));<br />
textNumX.requestFocus();<br />
textNumX.addTextListener(new  Object()     /* anonymous class not found */<br />
class _anm1 {}</p>
<p>);<br />
buttonDb2 = new Button(&#8220;Connect&#8221;);<br />
buttonDb2.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
buttonDb2.setBounds(new Rectangle(140, 20, 70, 20));<br />
buttonDb2.addActionListener(this);<br />
textNum = new TextArea(&#8220;&#8221;, 0, 0, 1);<br />
textNum.setFont(new Font(&#8220;Arial&#8221;, 0, 12));<br />
textNum.setBackground(Color.white);<br />
textNum.setEditable(false);<br />
textNum.setBounds(new Rectangle(5, 60, 300, 120));<br />
V = new Vector();<br />
buddy = new java.awt.List(10, true);<br />
buddy.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
buddy.setMultipleMode(false);<br />
buddy.setBounds(new Rectangle(310, 60, 90, 120));<br />
can_message = getParameter(&#8220;MESSAGE&#8221;);<br />
buttonDb3 = new Button(can_message);<br />
buttonDb3.setBounds(new Rectangle(5, 270, 400, 20));<br />
buttonDb3.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
buttonDb3.setActionCommand(&#8220;Add Message&#8221;);<br />
buttonDb3.addActionListener(this);<br />
textLabel = new Label(&#8220;Mobile No:&#8221;);<br />
textLabel.setForeground(Color.black);<br />
textLabel.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
textLabel.setBounds(new Rectangle(310, 190, 80, 20));<br />
textLabel20 = new Label(&#8220;+923&#8243;);<br />
textLabel20.setForeground(Color.black);<br />
textLabel20.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
textLabel20.setBounds(new Rectangle(300, 210, 32, 20));<br />
textNumA = new TextField(9);<br />
textNumA.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
textNumA.setBackground(Color.white);<br />
textNumA.setBounds(new Rectangle(332, 210, 70, 20));<br />
textNumA.addTextListener(new  Object()     /* anonymous class not found */<br />
class _anm2 {}</p>
<p>);<br />
textLabel2 = new Label(&#8220;Message :&#8221;);<br />
textLabel2.setForeground(Color.black);<br />
textLabel2.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
textLabel2.setBounds(new Rectangle(5, 190, 50, 20));<br />
textNumB = new TextField();<br />
textNumB.setColumns(10);<br />
textNumB.setFont(new Font(&#8220;Arial&#8221;, 0, 12));<br />
textNumB.setBackground(Color.white);<br />
textNumB.setBounds(new Rectangle(5, 210, 290, 20));<br />
buttonDb1 = new Button(&#8220;Send !&#8221;);<br />
buttonDb1.setBounds(new Rectangle(310, 240, 90, 20));<br />
buttonDb1.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
buttonDb1.setEnabled(false);<br />
buttonDb1.addActionListener(this);<br />
buttonDb4 = new Button(&#8220;Clear&#8221;);<br />
buttonDb4.setBounds(new Rectangle(5, 240, 90, 20));<br />
buttonDb4.setFont(new Font(&#8220;Arial&#8221;, 0, 10));<br />
buttonDb4.addActionListener(this);<br />
buddy.addItemListener(this);<br />
SimpleTextListener simpletextlistener = new SimpleTextListener();<br />
textNumB.addActionListener(simpletextlistener);<br />
textNumA.addActionListener(simpletextlistener);<br />
img = getImage(getDocumentBase(), getParameter(&#8220;img&#8221;));<br />
img1 = getImage(getDocumentBase(), getParameter(&#8220;img1&#8243;));<br />
textIP = new TextField();<br />
textIP.setText(server_ip);<br />
textPort = new TextField();<br />
textPort.setText(server_port);<br />
add(textLabel1);<br />
add(textNumX);<br />
add(buttonDb2);<br />
add(textNum);<br />
add(buddy);<br />
add(textLabel2);<br />
add(textNumB);<br />
add(textLabel);<br />
add(textNumA);<br />
add(textLabel20);<br />
add(buttonDb4);<br />
add(buttonDb1);<br />
add(buttonDb3);<br />
}</p>
<p>public void paint(Graphics g)<br />
{<br />
g.drawImage(img, 100, 300, this);<br />
g.drawImage(img1, 220, 10, this);<br />
}</p>
<p>public void itemStateChanged(ItemEvent itemevent)<br />
{<br />
m_number = buddy.getSelectedItem();<br />
prefix = m_number.substring(2, 5);<br />
m_number = m_number.substring(5, 12);<br />
preChoice.select(prefix);<br />
textNumA.setText(m_number);<br />
}</p>
<p>public void actionPerformed(ActionEvent actionevent)<br />
{<br />
String s2 = actionevent.getActionCommand();<br />
if(s2.equals(&#8220;Connect&#8221;))<br />
{<br />
if(textNumX.getText().trim().equals(&#8220;&#8221;))<br />
{<br />
showStatus(&#8220;Please enter your nick first !&#8221;);<br />
} else<br />
{<br />
textNum.append(&#8220;\nConnecting&#8230;&#8221;);<br />
clientObject = null;<br />
clientObject = new Client10(this, textIP.getText(), textPort.getText());<br />
textNumX.setEnabled(false);<br />
buttonDb2.setLabel(&#8220;Disconnect&#8221;);<br />
buttonDb2.setActionCommand(&#8220;Disconnect&#8221;);<br />
}<br />
} else<br />
if(s2.equals(&#8220;Disconnect&#8221;))<br />
{<br />
buttonDb2.setLabel(&#8220;Connect&#8221;);<br />
buttonDb2.setActionCommand(&#8220;Connect&#8221;);<br />
buttonDb1.setEnabled(false);<br />
textNumX.setEnabled(true);<br />
clientObject = null;<br />
try<br />
{<br />
Client10.sock.close();<br />
}<br />
catch(Exception exception) { }<br />
buddy.removeAll();<br />
} else<br />
if(s2.equals(&#8220;Add Message&#8221;))<br />
{<br />
String s3 = textNumB.getText();<br />
textNumB.setText(s3 + &#8220;&lt;&#8221; + can_message + &#8220;&gt;&#8221;);<br />
} else<br />
if(s2.equals(&#8220;Clear&#8221;))<br />
{<br />
textNumB.setText(&#8220;&#8221;);<br />
textNumA.setText(&#8220;&#8221;);<br />
} else<br />
if(s2.equals(&#8220;Send !&#8221;) &amp;&amp; !textNumA.getText().equals(&#8220;&#8221;) &amp;&amp; !textNumB.getText().equals(&#8220;&#8221;))<br />
{<br />
String s1 = textNumA.getText().trim();<br />
String s = &#8220;923&#8243; + textNumA.getText().trim();<br />
if(!V.contains(s))<br />
{<br />
V.addElement(s);<br />
buddy.add(s);<br />
}<br />
textNumA.setText(s1);<br />
line = textNumB.getText().trim();<br />
String s4 = textNumX.getText().trim();<br />
textNumB.setText(&#8220;&#8221;);<br />
textNum.append(&#8220;\nTo &#8221; + s + &#8220;: &#8221; + line + &#8220;&#8221;);</p>
<p>// Here is the Message going out.!!</p>
<p>String s5 = &#8220;Message MobileServer &#8221; + s + &#8221; 0 &#8221; + id_message + &#8221; &#8221; + s4 + &#8220;:\\n&#8221; + line;<br />
try<br />
{<br />
clientObject.os.write(s5.getBytes());<br />
}<br />
catch(Exception exception1)<br />
{<br />
System.out.println(&#8220;Exception &#8221; + exception1);<br />
}<br />
System.out.println(&#8220;Mobile Number: &#8221; + s + &#8220;\nMessage :&#8221; + line);<br />
}<br />
}</p>
<p>}</p>
<p>So its pretty cool You connect to  vega.vectracom.net:5000</p>
<p>Will send a message in a formate ID 0 0 0 0 &lt;yourid&gt;</p>
<p>and then you send message Message MobileServer 92333&lt;yournumber&gt; 0 &lt;yourid&gt; &lt;yournick&gt; :\n<br />
&lt;and your message&gt;</p>
<p>And it gives out the message inviting a user to say yes or no!</p>
<p>If yes the chat initiated and You will get a reply from Mobileserver <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I have played with it quite a lot made a C# App that makes it possible to send sms !!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/azimyasin.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/azimyasin.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/azimyasin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/azimyasin.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/azimyasin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/azimyasin.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/azimyasin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/azimyasin.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/azimyasin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/azimyasin.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/azimyasin.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/azimyasin.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=azimyasin.wordpress.com&blog=906513&post=42&subd=azimyasin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://azimyasin.wordpress.com/2007/12/17/playing-with-the-java-applet-of-ufone/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b18085b9a37da4ee1123eca0853be57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">azimyasin</media:title>
		</media:content>
	</item>
	</channel>
</rss>