I would like to play around with sockets to see if I can get them to
work, but I'm not having any luck.  Here's what I tried:

new Socket("www.google.com", 80);

I've also tried

new Socket("localhost", 7);

but anything you can suggest that's simple is appreciated.  I'm no
socket expert so I'm not sure if these are considered simple
examples.

I read that I should add INTERNET permission to my manifest, so I did
this too:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.kea"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".ServSock"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="3" />
<uses-permission android:name="android.permission.INTERNET"></uses-
permission>
</manifest>

I'm just trying to learn so there's no real goal, just looking for a
simple example that I can get working.  Any hints what I'm missing?
Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to