XDA Office Space: Frankenstein’s Perfect IM Client?

The portal’s decentralized XDA office lies in a Hangouts chatroom, where … more

Which IM Client on Android is best?

With so many different messengers to choose from, it can be tough to find the best one for you and … more

Android Factory Reset Security Flaw and More – XDA TV

Nvidia is releasing a 500Gb SHIELD TV Pro! That and much more news is … more

Android M Code Name: Macadamia Nut Cookie

While the official name for the latest iteration of Android has yet to be revealed, the code … more
Post Reply Subscribe to Thread Email Thread

activating wifi hotspot from widget on FroYo

28th May 2010, 04:55 PM |#1  
OP Junior Member
Thanks Meter: 2

Just updated to FroYo mainly for the tether option. It works great and I can just surf while the phone is in my pocket / bag.

what I miss is a faster way to activate it.

I didn't see an option to have shortcut to the home screen (via - shortcuts - settings) and I can't find a widget that will allow it.

Any ideas?

28th May 2010, 05:47 PM |#2  
Thanks Meter: 1
I too would like to know this
29th May 2010, 04:06 AM |#3  
Thanks Meter: 10
Here's something close, it's not exactly what you want (it's a program that just opens Menu | Settings | Wireless | Tethering & Portable hotspot and then exits).

It took more time to for me to write this post (and figure out how to insert a link!) than for me to code it:
Attached Files
File Type: apk TetherSettings.apk - [Click for QR Code] (6.9 KB, 539 views)
Last edited by jmdsdf; 29th May 2010 at 09:14 PM. Reason: To attach download to post
29th May 2010, 04:29 AM |#4  
Senior Member
Thanks Meter: 0
Any chance you can make the "t" in tether that shows on the icon label a capital "T"? Sorry i'm a bit OCD so it kind of drives me crazy but I really appreciate the quick access to the tether settings comes in quite handy!

29th May 2010, 04:30 AM |#5  
Senior Member
Flag Boynton Beach, FL
Thanks Meter: 30
You could achieve the same thing with better/any cut, sans the exit at the end.
29th May 2010, 07:35 AM |#6  
worker1's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 9
works great. I want to learn how to do that.
29th May 2010, 08:21 AM |#7  
OP Junior Member
Thanks Meter: 2
Re: activating wifi hotspot from widget on FroYo
Wow great that was exactly what I was looking for.

Thanks, I wish I could program as easely as I'm posting questions :) because I'm very good in aking :P


Sent via the XDA Tapatalk App
29th May 2010, 04:22 PM |#8  
Thanks Meter: 10
Here's the code:

public class tethersettings extends Activity {
public void onCreate(Bundle savedInstanceState) {

// load tether setting dialog
Intent intent = new Intent();
ComponentName com = new ComponentName("", "");

// exit
// kill process
android.os.Process.killProcess(android.os.Process. myPid());

29th May 2010, 04:29 PM |#9  
Thanks Meter: 10
Updated with capitalization:

Three other apps with a similar idea (for changing APNs, data settings and wifi settings):
29th May 2010, 04:47 PM |#10  
britoso's Avatar
Senior Member
Flag Orlando
Thanks Meter: 287
Donate to Me
Re: activating wifi hotspot from widget on FroYo
Now that we have the activity name, cant we just create a shortcut with anycut?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes