Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
pikipirs
Old
#11  
Senior Member
Thanks Meter 61
Posts: 308
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, 618 views)
Dumb phones --> SE XPERIA X1 --> Google Nexus One --> HTC Desire HD --> Samsung Galaxy S III. Wow what a phone!

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: 90
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 61
Posts: 308
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. Wow what a phone!

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: 90
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 242
Posts: 2,632
Join Date: Jan 2010
Location: FortWorth/TX

 
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.
Java Developer.
Phone: Galaxy Nexus-> CM10.1 PA Nightlies
Phone: Nexus One-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Links:
»My Apps [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
brenopoubel
Old
#16  
brenopoubel's Avatar
Senior Member
Thanks Meter 14
Posts: 198
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!
Samsung Galaxy Nexus 4.2.2
HTC Glacier 4.2.2 Kang
Nexus 7 4.2.2
Motorola Xoom 4.1.1
HP Touchpad 4.0.4
Google CR-48
 
worker1
Old
(Last edited by worker1; 5th June 2010 at 12:23 PM.)
#18  
worker1's Avatar
Senior Member
Thanks Meter 7
Posts: 297
Join Date: May 2010
Location: Los Angeles
I just made this icon for tethering shortcuts



 
antikryst
Old
#19  
Senior Member
Thanks Meter 9
Posts: 161
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: 90
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/

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more