Post Reply

activating wifi hotspot from widget on FroYo

OP ilanB

28th May 2010, 04:55 PM   |  #1  
OP Junior Member
Thanks Meter: 2
 
13 posts
Join Date:Joined: May 2007
Hi,

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?

Thanks
Ilan
28th May 2010, 05:47 PM   |  #2  
Member
Thanks Meter: 1
 
48 posts
Join Date:Joined: Jan 2010
I too would like to know this
29th May 2010, 04:06 AM   |  #3  
Member
Thanks Meter: 10
 
64 posts
Join Date:Joined: May 2010
More
Lightbulb
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:

jmdsdf.yi.org/share/TetherSettings.apk
Attached Files
File Type: apk TetherSettings.apk - [Click for QR Code] (6.9 KB, 533 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
 
260 posts
Join Date:Joined: May 2007
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!

Thanks
29th May 2010, 04:30 AM   |  #5  
Senior Member
Flag Boynton Beach, FL
Thanks Meter: 30
 
1,752 posts
Join Date:Joined: Jun 2009
More
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
 
301 posts
Join Date:Joined: May 2010
More
works great. I want to learn how to do that.
29th May 2010, 08:21 AM   |  #7  
OP Junior Member
Thanks Meter: 2
 
13 posts
Join Date:Joined: May 2007
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

Ilany

-------------------------------------
Sent via the XDA Tapatalk App
29th May 2010, 04:22 PM   |  #8  
Member
Thanks Meter: 10
 
64 posts
Join Date:Joined: May 2010
More
Here's the code:

public class tethersettings extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

// load tether setting dialog
Intent intent = new Intent();
intent.setAction(Intent.ACTION_MAIN);
ComponentName com = new ComponentName("com.android.settings", "com.android.settings.TetherSettings");
intent.setComponent(com);
startActivity(intent);

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

}
}
29th May 2010, 04:29 PM   |  #9  
Member
Thanks Meter: 10
 
64 posts
Join Date:Joined: May 2010
More
Updated with capitalization:

jmdsdf.yi.org/share/TetherSettings.apk

Three other apps with a similar idea (for changing APNs, data settings and wifi settings):

jmdsdf.yi.org/share/ApnSettings.apk
jmdsdf.yi.org/share/DataSettings.apk
jmdsdf.yi.org/share/WifiSettings.apk
29th May 2010, 04:47 PM   |  #10  
britoso's Avatar
Senior Member
Flag Orlando
Thanks Meter: 283
 
2,737 posts
Join Date:Joined: Jan 2010
Donate to Me
More
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