Not clear what type of connection really. But normal java socket code works
in android. i.e. open a socket and read input and send output. The type of
internet, if they are on wifi or 3g is not something you worry about. If
you are googling for stuff you might try just looking for java code.
I've got something like this working:
requestSocket = new java.net.Socket("mydomain.com", 5001);
You do need to add the permission, Internet to the manifest file.
Mike
On Wed, Sep 8, 2010 at 2:57 AM, Marc <[email protected]> wrote:
> Hi,
>
> I'm building an application for my own use, and I like to get
> connection via mobile network but I don't know how to do that. What I
> want is the same behaviour that offers severals existent widgets to
> turn on/off the data connection.
>
> Anybody can illuminate me please? Some code?? Any page with any
> sample??
>
> Thanks everybody!
>
> Marc
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en