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
I too would like to know this
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
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
You could achieve the same thing with better/any cut, sans the exit at the end.
works great. I want to learn how to do that.
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
Ilany
-------------------------------------
Sent via the XDA Tapatalk App
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());
}
}
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
Now that we have the activity name, cant we just create a shortcut with anycut?
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.
jmdsdf said:
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());
}
}
Click to expand...
Click to collapse
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.
danimar1 said:
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.
Click to expand...
Click to collapse
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".
pikipirs said:
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".
Click to expand...
Click to collapse
Thanks pikipirs!
Perfect, thanks.
Yes, using AnyCut, the Tethering settings activity is the 7th "Settings" activity in the list that AnyCut produces when creating a new shortcut.
Click to expand...
Click to collapse
I'm still waiting for a widget that can i turn on and off directly from homescreen.
pikipirs said:
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.
Click to expand...
Click to collapse
Thanks for your help. I really wanted this!
I just made this icon for tethering shortcuts
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
jmdsdf said:
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
Click to expand...
Click to collapse
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.
antikryst said:
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.
Click to expand...
Click to collapse
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/
Related
UPDATE: Posted code on github finally:
https://github.com/jmandawg/SamsungIRRemote
I'm interested in creating a better universal remote for our tablets so i did some snooping around and found out how to send commands to the IR port through the irda system service.
Code:
public void onClick2(View view) {
TextView editText = (TextView) findViewById(R.id.textView2);
Object irService = getSystemService("irda");
irService.getClass();
Class irClass = irService.getClass();
Class params[] = new Class[1];
params[0] = String.class;
try {
Method sendIR = irClass.getMethod("write_irsend", params);
for(int i=0;i<2;i++)
sendIR.invoke(irService, "37300,11,67,10,28,10,28,10,27,11,27,11,27,11,67,11,67,11,27,11,68,10,27,11,27,11,27,11,67,11,27,11,1731,11,68,10,28,10,27,11,27,11,27,11,67,11,27,11,27,11,67,11,27,11,67,11,67,11,68,10,27,11,68,10,1653");
editText.setText("Done");
} catch (Exception e) {
e.printStackTrace();
editText.setText("Fail");
}
}
That IR string is for my Sharp TV on/off. I haven't done any IR programming before, so i don't really know what i'm doing, but i had to send the string twice to make it consistently turn the TV on/off.
UPDATE: 6/19/12
Fixed the UI up a bit, and now you can add your own remotes to /mnt/sdcard/remotes directory or Computer\GT-P3113\Tablet\remotes directory from inside windows 7 (you will have to create the directory). I also attached a sample remote file ABC_Sharp_LC_TV.zip unzip file and put in that directory so you can make sure it shows up.
UPDATE: 6/20/12
Fixed the power button on the sharp remote, it was using the old field name "sleepToggle" which is now named "power".
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Look at the ABC_Sharp_LC_TV file for the JSON format, it is important that the file name matches the first JSON field, with spaces instead of underscores.
If you find the codes for your device on remote central and create a file please post them for others.
Here is a list of the button fields for the JSON file:
Code:
"num0"
"num1"
"num2"
"num3"
"num4"
"num5"
"num6"
"num7"
"num8"
"num9"
"windows"
"volUp"
"volDown"
"chanUp"
"chanDown"
"back"
"info"
"up"
"down"
"left"
"right"
"ok"
"play"
"pause"
"stop"
"record"
"forward"
"rewind"
"skipForward"
"skipBack"
"power"
"mute"
"ccToggle"
"red"
"green"
"yellow"
"blue"
"exit"
"guide"
"liveTV"
"recordedTV"
"clear"
"last"
Nice find, I used this website to find IR codes for my old PSP-1000. http://www.remotecentral.com/cgi-bin/codes/
I have been wondering for a couple of weeks now if it is possible to use the IR in our device to control anything besides the TV? I mean with a bit of hacking of course.
Find a way to replace the Logitech Harmony remote that I and many others use and I'm sure you will have an instant hit on your hands
I think this is a great idea, and will be watching this progress.
a little googling found a couple similar projects which may have some good pointers:
http://www.irdroid.com/
http://www.zokama.com/androlirc (merged with http://www.coversal.com/)
the IR port is send/receive right?
another theory i have is that we should be able to have a "learning" remote, where we train it by pointing another remote at it and "capturing" the code transmitted.
Even better if we can get a remote to control the tab volume fast forward, etc.
Works on P3110 model??
Qarl said:
Works on P3110 model??
Click to expand...
Click to collapse
No. http://forum.xda-developers.com/showthread.php?p=26554403
good day.
@op,
maybe you could have a look at here
www.coversal.com
It's a remote control framwork. we could have a kind of lirc conf based plugin that uses the sgt2 blaster.
The guy's would do with some help. Worth a look!
I would give anything to control my wdtv with my gt.
scottx . said:
I would give anything to control my wdtv with my gt.
Click to expand...
Click to collapse
Have you tried:
https://play.google.com/store/apps/details?id=com.osdmod.remote&hl=en
samtran0331 said:
Have you tried:
https://play.google.com/store/apps/details?id=com.osdmod.remote&hl=en
Click to expand...
Click to collapse
That works through WIFI and mine isn't online because I have no remote to get it online with. That's why I need an IR powered remote. I could go buy one from WD I guess but that's too easy.
Any chance you could add codes for an old Sanyo TV? That would be great.
If you can find the pronto codes (the long ones). Most are on remote central.
I will post the file format when i get home tonight.
That's awesome man, thanks.
Is the wdtv you have one of the new ones or an older model? The remote doesnt work for mine. Mines an older model, pn# WD00AVN-00
scottx . said:
That's awesome man, thanks.
Is the wdtv you have one of the new ones or an older model? The remote doesnt work for mine. Mines an older model, pn# WD00AVN-00
Click to expand...
Click to collapse
Mine is a wd live tv plus. It will probably only work with a stock based rom. Do you see any errors in logcat
I have a Sanyo 42" so that would be useful for me too.
I got the remote working on my wdtv. It's because CM9 doesn't support it. (The IR)
What is the model of the Sanyo TV? There is somebody else that asked for it to.
Extremely interesting topic.
Isn't it possible to use LIRC config files?
etique57 said:
Extremely interesting topic.
Isn't it possible to use LIRC config files?
Click to expand...
Click to collapse
Yeah, but we'd have to figure out how to convert the LIRC files to pronto format. Does anyone here know how to do that?
The gear shaped icon in the picture appeared yesterday and I have no clue what it means. There's no information in the drop down and I've not installed or updated anything that I'm aware of. Anyone seen this icon, or know what it means and how to get rid of it? Not rooted. Thanks.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my Nexus 7 using xda premium
I can't see a picture in your post ^ (often an issue when you post via Tapatalk (or xda app ))
Lennyuk said:
I can't see a picture in your post ^ (often an issue when you post via Tapatalk (or xda app ))
Click to expand...
Click to collapse
edited the post to link to image directly, can you see it now?
st1ckyn1ck3l said:
edited the post to link to image directly, can you see it now?
Click to expand...
Click to collapse
yes, but I don't instantly know what it is. Let me think for a bit
Go into settings apps..
start with apps you do not know. Look at there icon. see if you see one similar. If not then stop one app running at a time check to see if its gone . Continue until you find the program..
Good Luck
erica_renee said:
Go into settings apps..
start with apps you do not know. Look at there icon. see if you see one similar. If not then stop one app running at a time check to see if its gone . Continue until you find the program..
Good Luck
Click to expand...
Click to collapse
To expand on this I would check to see what apps are in menu > settings > application > running
Looks like the icon that pops up for watching porn. It's permanent. :silly:
Kidding aside, I don't know what that gear is, but on the SGS3 there was a similar issue brought up and it wound up being a notification bar notification toggle icon.
Lennyuk said:
To expand on this I would check to see what apps are in menu > settings > application > running
Click to expand...
Click to collapse
Thanks for filling in the Blanks. Just assumed he would know what i meant ....
Its not the Porn Icon because my son used my tablet and I do not have it... ROFLOL... teenager go figure
Thanks for all the suggestions, I've gone through settings/apps/running & closed everything except for google services, android keyboard and settings, yet the icon persists. I'm at a complete loss.
Hey nice wallpaper. Share that.
Sent from my Nexus 7 using Tapatalk 2
Do you have the Power Controls Widget installed? There was an update to this particular widget yesterday and now it's showing the same on mine (gear)... Not sure why they added it to the notifications ...
Have you updated your tablet yet might be the update icon if not its a persistent app that's running in the background and use a app called startup manager it will help you figure out the app.
Sent from my Nexus 7 using XDA Premium HD app
dat gear
That's definitely the power control widget causing that. You were able to hide it easily until the most recent update, and I haven't figured out how to hide it since
thekillbot said:
That's definitely the power control widget causing that. You were able to hide it easily until the most recent update, and I haven't figured out how to hide it since
Click to expand...
Click to collapse
you can hide notifications for any app in jellybean - settinsg > applications > find the application > untick 'display notifications' (or whatever it says)
Don't forget about the new JB feature.
If you hold down a notification, it will give you an "App Info" selection.
thekillbot said:
That's definitely the power control widget causing that. You were able to hide it easily until the most recent update, and I haven't figured out how to hide it since
Click to expand...
Click to collapse
Yeah, that's exactly what it is. When Power Controls was background updated yesterday, the setting 'Notification Icon' in the app settings was reverted to 'default' (which displays the gear icon). I had previously set this to 'transparent' but now notice that that setting still takes up a slot on the notification bar & looks weird when it's sandwiched between 2 notification icons. I've since set the 'Notification Icon' setting to 'Battery 3' and have removed my Battery Widget? Reborn! widget & notification icon. Thanks to everyone for their help & suggestions. This is by far the best community I'm a member of!
1. Launch the app by opening Terminal and running:
am start -a android.intent.action.MAIN -n com.android.settings/.quicklaunch.QuickLaunchSettings
2. Or download and install Manual Intent Shortcuts in market which can create the shortcut as follows:
Action: android.intent.action.MAIN
Component Package: com.android.settings
Component Class FQN: com.android.settings.quicklaunch.QuickLaunchSettings (not Settin gs =>Settings )
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my DROID4 using xda app-developers app
Really neat stuff. works perfectly!
I was wondering if it is possible to completely disable quick launch in a similar way? I have a droid 4 with a physical keyboard that is running jellybean so the regular quick launch menu isn't available to disable it. I followed your directions and I am able to open quick launch with the terminal, but I can't set the preset shortcuts to nothing, I can only select another app. Any help would be greatly appreciated.
Tanzior said:
1. Launch the app by opening Terminal and running:
am start -a android.intent.action.MAIN -n com.android.settings/.quicklaunch.QuickLaunchSettings
2. Or download and install Manual Intent Shortcuts in market which can create the shortcut as follows:
Action: android.intent.action.MAIN
Component Package: com.android.settings
Component Class FQN: com.android.settings.quicklaunch.QuickLaunchSettings (not Settin gs =>Settings )
View attachment 1804512
Sent from my DROID4 using xda app-developers app
Click to expand...
Click to collapse
Foxgirl17 said:
I was wondering if it is possible to completely disable quick launch in a similar way? I have a droid 4 with a physical keyboard that is running jellybean so the regular quick launch menu isn't available to disable it. I followed your directions and I am able to open quick launch with the terminal, but I can't set the preset shortcuts to nothing, I can only select another app. Any help would be greatly appreciated.
Click to expand...
Click to collapse
can't find any way to deselect things, sorry.
wanted to add though that another way of accessing quick launch is using nova launcher, some other launchers would allow it too. long-press on home screen > short cuts > activities > expand "settings" > QuickLaunchSettings
keflexxx said:
can't find any way to deselect things, sorry.
wanted to add though that another way of accessing quick launch is using nova launcher, some other launchers would allow it too. long-press on home screen > short cuts > activities > expand "settings" > QuickLaunchSettings
Click to expand...
Click to collapse
Ok, thanks a lot. The problem I was having was that while texting with the physical keyboard it would randomly open up the phone app and start typing whatever I was typing into the contact search and subsequently calling people before I realized what was happening. I assumed this was a problem with the quick launch selecting the contacts app and causing problems for me. I really don't know how the quick launch was being activated in the first place though as the only "search" button I have that activates the quick search is located on the face of the phone and I know I am not pressing it. Do you know of any other methods of activating quick launch which a physical keyboard or if there is a glitch with a phone that was upgraded from ICS to Jellybean?
Thanks again,
Foxgirl17
Try rebooting your phone
Foxgirl17 said:
Ok, thanks a lot. The problem I was having was that while texting with the physical keyboard it would randomly open up the phone app and start typing whatever I was typing into the contact search and subsequently calling people before I realized what was happening. I assumed this was a problem with the quick launch selecting the contacts app and causing problems for me. I really don't know how the quick launch was being activated in the first place though as the only "search" button I have that activates the quick search is located on the face of the phone and I know I am not pressing it. Do you know of any other methods of activating quick launch which a physical keyboard or if there is a glitch with a phone that was upgraded from ICS to Jellybean?
Thanks again,
Foxgirl17
Click to expand...
Click to collapse
I used to have the same problem when I was running the stock ROM. Occasionally while using the physical keyboard, the phone would start jumping to random programs. The problem wasn't consistent, but was easily solved by rebooting the phone. I haven't had the issue since switching to AVATAR ROM. Must have been a bug in the stock software.
Hi everyone,
I am trying to make an application to run on the background, while it thinks it is running on the foreground.
This would be useful if I am running this application and it's visible (in the foreground), to click the home button, or open another app, and make it still run as if it were visible.
I've read a couple of Xposed tutorials, and a little bit about how applications work.
So what I have in mind is to create a Xposed module to hook into the onPause() activity of the app and redirect it to the onResume(). Or just cancel the onPause() call.
Would any of these be possible? In case it is, how hard would it be? In case it is not, suggestions?
Thanks
Sure
1, XposedHelpers.findAndHookMethod(Activity.class, "onPause", XC_MethodReplacement.returnConstant(null))
//disable loading of onPause method
2, XposedHelpers.findAndHookMethod(Activity.class, "onPause", new XC_MethodHook() {
@override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
XposedHelpers.callMethod(param.thisObject, "onResume"); // run on Resume method
param.setResult(null);//dont execute onPause method
}
});
pyler said:
Sure
1, XposedHelpers.findAndHookMethod(Activity.class, "onPause", XC_MethodReplacement.returnConstant(null))
//disable loading of onPause method
2, XposedHelpers.findAndHookMethod(Activity.class, "onPause", new XC_MethodHook() {
@override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
XposedHelpers.callMethod(param.thisObject, "onResume"); // run on Resume method
param.setResult(null);//dont execute onPause method
}
});
Click to expand...
Click to collapse
oh, thanks! that doesn't sound too hard!
I'll try to do it :fingers-crossed:
Please inform us about your progress. It sounds as an interesting idea
pyler said:
Please inform us about your progress. It sounds as an interesting idea
Click to expand...
Click to collapse
Well, I already have the basics.: a module running when the app loads and changing the onPause for the onResume.
However, when I check in logcat, it still says the application has gone to onPause when not on focus. That happens with this method.
With the other method that it just cancels the call to onPause (the short code), the app crashes when unfocused.
Any idea, please?
EDIT:
So I was running some more tests and here is what I found.
I tried to hook to the function of onPause, and redirect it to onDestroy after it. It worked perfectly, closing the application, and logcat didn't show anything.
However, when I coded it to go from onResume to onPause (so when I unfocus, and then focus the app again), but it didn't pause the app.
I'm out of ideas now
Maybe something other calls "exit".
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
pyler said:
Maybe something other calls "exit".
Click to expand...
Click to collapse
So I was thinking about what you posted yesterday... And after trying for some hours more and not getting to anywhere, I thought about hooking all relevant functions of the program to a Xposed log, and seeing which one gets called and when.
But today, after sleeping on it, I just realized I might be going in the wrong direction... Let me explain it:
I have been trying to do this to one application, but what if I would like to do this with more applications? Then this would be worthless... Maybe what I should be doing instead is seeing how it internally works. Like how the system tells the application that it is no longer in the foreground and so on. Thus hooking the system instead of a single app
What do you think?
I don't know, I haven't study activities and activitymanager very much yet. Maybe I would start checking logs, what system throws when app is going to background. And then search that logs in android source code.
I think your direction is wrong, activities are changed to invisible by system, onPause(), onResume(), etc are only call back methods, system notify activities should close resources or other operations in these methods.
ztc1997 said:
I think your direction is wrong, activities are changed to invisible by system, onPause(), onResume(), etc are only call back methods, system notify activities should close resources or other operations in these methods.
Click to expand...
Click to collapse
Oh, I see what you mean. This is what I thought and posted on my last message.
So how does the system tell the application it has gone to invisible?
Thanks for your reply btw
EDIT:
could it be this?
http://grepcode.com/file/repository....4.4_r1/android/app/Instrumentation.java#1234
or
http://grepcode.com/file/repository...droid/4.4.4_r1/android/app/Activity.java#5346
I also posted a message here but still no final answer =(
http://stackoverflow.com/questions/...-application-that-this-app-has-gone-to-the-ba
did you try disable "performPause" method? or call performResume after performPause similar as I show idea in second post in this thread.
I ran some tests. I stopped call "performPause" and call "performResume". It worked since I have toasts in my test app in onPause and onResume methods. But you cant expect app will move from background to actual screen.it needs more code.
hi every body!
Im new in Tasker, so I have a simple quesion
Is there a variable on homescreen?
Or how do I make it?
Thanks for reading
Go home
Not you
[spoil]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/spoil]
or be more precise.
No, this is not what i want. I want a variable which avaiable when the screen stay on homescreen. Not go to home.
Sorry, my english is bad
%WIN
You need accessibility services enabled.
Sent from my SM-G928F using Tapatalk
@Mark2014
Mine too, do not worry
Make a profile:
Profile: Any Window Name (301)
Event: New Window [ Label:* Window Type:Any ]
Enter: Anon (302)
A1: Flash [ Text:%WIN Longff ]
you see how %win name your homescreen.
@frrancuz.
Tks so much.
It work like a charm :victory:
But on my phone, Flash Act doesn't work, so I replace it by a Popup, and it make me crazy to close the popup window :silly:
Now, I ready to setup a profile to lock my phone only on homescreen and on a flat place, but it will stay 5s before.
Mark2014 said:
@frrancuz.
Tks so much.
It work like a charm :victory:
But on my phone, Flash Act doesn't work, so I replace it by a Popup, and it make me crazy to close the popup window :silly:
Now, I ready to setup a profile to lock my phone only on homescreen and on a flat place, but it will stay 5s before.
Click to expand...
Click to collapse
You don't need the Popup action...but the rest
you could have a "wait for 1ms" action instead
ks123 said:
You don't need the Popup action...but the rest
you could have a "wait for 1ms" action instead
Click to expand...
Click to collapse
Tks, It's very useful
Hi guys, I have a note 8 running Android Pie and could really use some help.
I searched the net and this is the closest to the answer I could find.
I want to change the navigation bar for every app. I am currently able to do this with every app EXCEPT the home screen.
I have created a profile using Variable Set for events:
Variable
%WIN
Value
"Name of app window"
The home screen window name for Touchwiz is "Home screen, Page 1 of 2 Default page"
I have tried using; Home screen, Page 1 of 2 Default page Home, Home screen, Homescreen, Home
None of the above trigger the event / Task.
I have also tried using the application "TouchWiz" as the event trigger. However, TouchWiz is not listed in the applications selection screen. So it can not be selected.
How can I use the home screen as a trigger?
JameyS said:
Hi guys, I have a note 8 running Android Pie and could really use some help.
I searched the net and this is the closest to the answer I could find.
I want to change the navigation bar for every app. I am currently able to do this with every app EXCEPT the home screen.
I have created a profile using Variable Set for events:
Variable
%WIN
Value
"Name of app window"
The home screen window name for Touchwiz is "Home screen, Page 1 of 2 Default page"
I have tried using; Home screen, Page 1 of 2 Default page Home, Home screen, Homescreen, Home
None of the above trigger the event / Task.
I have also tried using the application "TouchWiz" as the event trigger. However, TouchWiz is not listed in the applications selection screen. So it can not be selected.
How can I use the home screen as a trigger?
Click to expand...
Click to collapse
I see you got your answer on the Tasker Google group. For continuity, I'm going to post Robert's reply that you liked from there, here.
Use the App Changed event:
Profile: Detect Home
Event: App Changed
Package: com.sec.android.app.launcher
Enter:
A1: Flash
Text: You are home
Long: Off
Click to expand...
Click to collapse