FORUMS

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

activating wifi hotspot from widget on FroYo

13 posts
Thanks Meter: 2
 
By ilanB, Junior Member on 28th May 2010, 04:55 PM
Post Reply Subscribe to Thread Email Thread
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
 
More
I too would like to know this
29th May 2010, 04:06 AM |#3  
Member
Thanks Meter: 10
 
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, 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
 
More
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
 
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
 
More
works great. I want to learn how to do that.
29th May 2010, 08:21 AM |#7  
OP Junior Member
Thanks Meter: 2
 
More
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
 
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
 
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: 291
 
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?
29th May 2010, 06:28 PM |#11  
Senior Member
Thanks Meter: 72
 
Donate to Me
More
Yes, using AnyCut, the Tethering settings activity is the 7th "Settings" activity in the list that AnyCut produces when creating a new shortcut.

Or you can use an app that I've quickly put together for this purpose Someone's already posted a similar one, but since I've done it too, I might as well share it too. The icon's title is "Internet Sharing" and it has that green waves icon from android-wifi-tether app.
Attached Files
File Type: apk TetheringShortcut.apk - [Click for QR Code] (15.5 KB, 623 views)

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes