Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,126 Members 42,638 Now Online
XDA Developers Android and Mobile Development Forum

activating wifi hotspot from widget on FroYo

Tip us?
 
pikipirs
Old
#11  
Senior Member
Thanks Meter 68
Posts: 314
Join Date: Jan 2009

 
DONATE TO ME
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, 622 views)
Dumb phones --> SE XPERIA X1 --> Google Nexus One --> HTC Desire HD --> Samsung Galaxy S III

Apps that I've developed:
* WiimoteController 0.6 Beta for Android
* Mario Live Wallpaper 0.94b for Android
* Video Live Wallpaper 0.84b for Android
* App Dialer 3.0 for Android
Do you like my development? Please consider buying me a cup of coffee (or a pizza).
You could also help me by getting a free Dropbox account using this link (both of us get extra 250 MB).
 
danimar1
Old
#12  
Member
Thanks Meter 0
Posts: 92
Join Date: Oct 2009
Quote:
Originally Posted by jmdsdf View Post
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());

}
}
Hello jmdsdf, do you know if something similar can be done but to access directly Applications Management? You know, the screen where you can move apps to SD, force stop them and so on. I'm fed up of going to settings just to end an application. I've found that Advanced Task Manager doesn't kill tasks properly in Froyo, at least for me.

Sorry for the off-topic, didn't want to open a new thread just because of this.
 
pikipirs
Old
#13  
Senior Member
Thanks Meter 68
Posts: 314
Join Date: Jan 2009

 
DONATE TO ME
Quote:
Originally Posted by danimar1 View Post
Hello jmdsdf, do you know if something similar can be done but to access directly Applications Management? You know, the screen where you can move apps to SD, force stop them and so on. I'm fed up of going to settings just to end an application. I've found that Advanced Task Manager doesn't kill tasks properly in Froyo, at least for me.

Sorry for the off-topic, didn't want to open a new thread just because of this.
Every activity (basically every screen on the system) can be shortcut this way. For the "Manage applications" screen, substitute "com.android.settings.TetherSettings" with "com.android.settings.ManageApplications".
Dumb phones --> SE XPERIA X1 --> Google Nexus One --> HTC Desire HD --> Samsung Galaxy S III

Apps that I've developed:
* WiimoteController 0.6 Beta for Android
* Mario Live Wallpaper 0.94b for Android
* Video Live Wallpaper 0.84b for Android
* App Dialer 3.0 for Android
Do you like my development? Please consider buying me a cup of coffee (or a pizza).
You could also help me by getting a free Dropbox account using this link (both of us get extra 250 MB).
 
danimar1
Old
#14  
Member
Thanks Meter 0
Posts: 92
Join Date: Oct 2009
Quote:
Originally Posted by pikipirs View Post
Every activity (basically every screen on the system) can be shortcut this way. For the "Manage applications" screen, substitute "com.android.settings.TetherSettings" with "com.android.settings.ManageApplications".

Thanks pikipirs!
 
britoso
Old
(Last edited by britoso; 1st June 2010 at 05:28 PM.)
#15  
britoso's Avatar
Senior Member
Thanks Meter 281
Posts: 2,723
Join Date: Jan 2010
Location: Orlando

 
DONATE TO ME
Default Re: activating wifi hotspot from widget on FroYo

Perfect, thanks.
Quote:
Yes, using AnyCut, the Tethering settings activity is the 7th "Settings" activity in the list that AnyCut produces when creating a new shortcut.
Software Developer (Java/J2EE)
Phone: Nexus 5 32GB -> PA 4.4.2 + XPosed
Phone: Galaxy Nexus-> OmniMetal CM11
Phone: Nexus One (killed while replacing the digitizer)-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Stick: CX-919 RK3188/2GB (4.2.2 Finless 1.6b. FHD no-OC. Antutu 16753 Quadrant 4723)

Links:
»My Apps (ancient now) [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
brenopoubel
Old
#16  
brenopoubel's Avatar
Senior Member
Thanks Meter 15
Posts: 204
Join Date: Jan 2010
I'm still waiting for a widget that can i turn on and off directly from homescreen.
 
nephroid
Old
#17  
nephroid's Avatar
Senior Member
Thanks Meter 1
Posts: 103
Join Date: Feb 2010
Location: Florida
Quote:
Originally Posted by pikipirs View Post
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.

Thanks for your help. I really wanted this!
LGE Nexus 4
Nexus 7
HP Touchpad 4.2.2
Google CR-48
 
worker1
Old
(Last edited by worker1; 5th June 2010 at 12:23 PM.)
#18  
worker1's Avatar
Senior Member
Thanks Meter 9
Posts: 301
Join Date: May 2010
Location: Los Angeles
I just made this icon for tethering shortcuts



 
antikryst
Old
#19  
Senior Member
Thanks Meter 9
Posts: 165
Join Date: May 2010
Location: Quezon City
Quote:
Originally Posted by jmdsdf View Post
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
works great. would be perfect if you could create a better icon that looks like the one froyo uses to show that tether is active.
 
danimar1
Old
#20  
Member
Thanks Meter 0
Posts: 92
Join Date: Oct 2009
Quote:
Originally Posted by antikryst View Post
works great. would be perfect if you could create a better icon that looks like the one froyo uses to show that tether is active.
If you have the Android SDK installed search for a file named android.jar, open it with winrar and go to res/drawable/drawable-hdpi and look for

stat_sys_tether_general.png
stat_sys_tether_usb.png
stat_sys_tether_wifi.png

Problem is these are the icons that appear in the notification bar, so they are quite small to use as an app icon, but a little bit of photoshop and you would be good.

PS: all credit goes to http://androiddrawableexplorer.appspot.com/

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Automate Your Device with Sfen

Changing the profile of yourdevice manually is now long forgotten. Since the advent of Android automation … more

Galaxy Photo Screen Lock Displays a Photo Slideshow on Your Lock Screen

Being the most often looked at part of our devices UI, the lock … more

Boost the LG G3 Speaker and Headphone Volume

It seems like OEMs are stepping up their game, with regards to thequality of their devices sound … more

Forums Added for the HTC Desire 610 and LG G3 US Carrier Variants

We recently added two new sets of forums here on XDA. The first … more