Cyngn, OnePlus, Micromax – The Legal Battle

Recently, a battle has been waging in India over the rights to distribute the commercial … more

Lean Mean Battery Power Saving App Review

We talk a lot about battery topics here at XDA TV. We talk about everything from Power Banks to USB … more

Android 5.1 Possibly Coming February 2015

Google released Android 5.0 just over a month ago, and since then Lollipop has been trying to … more

Double Tap to Wake on the Nexus 6 Without Root

A few weeks ago, we featured an app which allowed the Nexus 6 to regain the double tap to wake … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

activating wifi hotspot from widget on FroYo

OP ilanB

29th May 2010, 07:28 PM   |  #11  
Senior Member
Thanks Meter: 69
 
314 posts
Join Date:Joined: Jan 2009
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)
30th May 2010, 05:03 PM   |  #12  
Member
Thanks Meter: 0
 
93 posts
Join Date:Joined: Oct 2009
More
Quote:
Originally Posted by jmdsdf

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.
31st May 2010, 04:30 PM   |  #13  
Senior Member
Thanks Meter: 69
 
314 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by danimar1

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".
31st May 2010, 04:32 PM   |  #14  
Member
Thanks Meter: 0
 
93 posts
Join Date:Joined: Oct 2009
More
Quote:
Originally Posted by pikipirs

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!
31st May 2010, 04:47 PM   |  #15  
britoso's Avatar
Senior Member
Flag Orlando
Thanks Meter: 286
 
2,743 posts
Join Date:Joined: Jan 2010
Donate to Me
More
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.

Last edited by britoso; 1st June 2010 at 06:28 PM.
1st June 2010, 11:05 PM   |  #16  
brenopoubel's Avatar
Senior Member
Thanks Meter: 15
 
204 posts
Join Date:Joined: Jan 2010
I'm still waiting for a widget that can i turn on and off directly from homescreen.
2nd June 2010, 09:27 PM   |  #17  
nephroid's Avatar
Senior Member
Flag Florida
Thanks Meter: 1
 
103 posts
Join Date:Joined: Feb 2010
More
Quote:
Originally Posted by pikipirs

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!
5th June 2010, 10:11 AM   |  #18  
worker1's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 9
 
301 posts
Join Date:Joined: May 2010
More
I just made this icon for tethering shortcuts



Last edited by worker1; 5th June 2010 at 01:23 PM.
2nd July 2010, 08:10 AM   |  #19  
Senior Member
Flag Quezon City
Thanks Meter: 9
 
165 posts
Join Date:Joined: May 2010
More
Talking
Quote:
Originally Posted by jmdsdf

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.
2nd July 2010, 10:01 AM   |  #20  
Member
Thanks Meter: 0
 
93 posts
Join Date:Joined: Oct 2009
More
Quote:
Originally Posted by antikryst

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 Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes