Code to Control Internet Connections - like Togga

by simonc » Fri, 13 Mar 2009 01:42:40 GMT


Sponsored Links
 Hey,
Does anyone have the code for Togga's internet connection create /
destroy?

I'm creating an app that needs to open an internet connection for a
little bit then close it again. My app works if I use Togga to open
the internet connection then I run my App then I use togga to close
the internet connection. But in NZ Mobile data is really really
expensive so I'm wanting to limit the time I'm on the net.

I'm wanting to do it automagically via code.

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How Can I Remove Top Title Bar from an Application? Or Add things to it...

This is in the FAQ...
"You can set a number of general window properties, such as whether to
display a title, whether the window is floating, and whether it
displays an icon, by calling methods on the Window member of the
underlying View object for the window. Examples include calling
getWindow().requestFeature() (or the convenience method
requestWindowFeature(some_feature)) to hide the title. Here is an
example of hiding the title bar:

//Hide the title bar
requestWindowFeature(Window.FEATURE_NO_TITLE);

"



--~--~---------~--~----~------------~-------~--~----~

2. Failed to upload *.apk on 'emulator-5554': timeout

Hey everybody.

I'm new to Android and wanted to do the HelloAndroid tutorial. But
when launching the emulator with my HelloWorld application I'm getting
the following at the console:

[2008-12-14 13:01:00 - HelloAndroid] ------------------------------
[2008-12-14 13:01:00 - HelloAndroid] Android Launch!
[2008-12-14 13:01:00 - HelloAndroid] adb is running normally.
[2008-12-14 13:01:00 - HelloAndroid] Launching:
de.mobilino.android.hello.HelloAndroid
[2008-12-14 13:01:00 - HelloAndroid] Automatic Target Mode: using
existing emulator: emulator-5554
[2008-12-14 13:01:00 - HelloAndroid] Uploading HelloAndroid.apk onto
device 'emulator-5554'
[2008-12-14 13:01:06 - HelloAndroid] Failed to upload HelloAndroid.apk
on 'emulator-5554': timeout

So I'm always getting this timeout and my application won't display.
I already searched for this topic but found no solution. Would be glad
if anyone could help.

Configuration: Windows Vista, Eclipse Ganymede, Android SDK 1.0 rc2,
ADT 0.8.0

--~--~---------~--~----~------------~-------~--~----~

3. Please Unsubscribe

4. SSH to the G1 ?

5. Application installation on Android moblie

6. Google Docs and Reader

7. Receiver to get outgoing phone number