change resolution of screen depending on the app - Nexus 5X Q&A, Help & Troubleshooting

Hello ?
I would like to create a task with tasker that automatically change the screen resolution if I open a specific app.
Unfortunately I encoutered the following problems:
*The command that tasker must execute when the app is launching that aim to change the screen resolution must normally be the following :"wm size 720*1280" but it doesn't work even with a terminal emulator (I executed the su command before of course). The thing is, that the apps on the play store who change the screen resolution are working just perfectly and I'm pretty sure that they are just executing these simple commands.
(Error message is "bad resolution")
*the command who change screen dpi is working (I need it too for my tasker task) is working but I noticed that it was making the app crash so I think it will be better to delay the launch of this app of few second, the time that the screen resolution had changed.
PS: my second problem is not that important as I can escape this issue by using the tasker widgets.
Thanks a lot in advance for any kind of help!

its x not *
wm size 720x1280

Related

Is there any way I can set a program to start in a certain orientation?

Question:
Would it be possible to set a certain program to start in an orientation you specify?
For example, I'm a big gaming nerd, and I would like my PocketNES emulator to start in landscape mode as soon as I click on the icon to run it. Or my hacked AIM, I want it to always start in Portrait mode, whether the keyboard is out or not. The program would then function normally after the initial startup.
Is there any way I can accomplish this? Whether it is a 3rd party program, a registry key edit, etc.? Any help would be GREATLY appreciated. Thanks in advance.
aNiMeMaN14 said:
Question:
Would it be possible to set a certain program to start in an orientation you specify?
For example, I'm a big gaming nerd, and I would like my PocketNES emulator to start in landscape mode as soon as I click on the icon to run it. Or my hacked AIM, I want it to always start in Portrait mode, whether the keyboard is out or not. The program would then function normally after the initial startup.
Is there any way I can accomplish this? Whether it is a 3rd party program, a registry key edit, etc.? Any help would be GREATLY appreciated. Thanks in advance.
Click to expand...
Click to collapse
Not sure if there is such an app, but i do know Phonealarm by Pocketmax can change rotation depending on the profile your using, and you can also assign a particular app to execute when using that particular profile. What im saying is try to make a profile (phonealarm settings) wherein your desired Screen rotation and program will execute when choosing that profile... but im not sure if this will work 100% since some apps does not follow the screen rotation. www.pocketmax.net
Use Mortscript to change orientation and then launch your app.
PHM does little applets for changing screen orientation etc. Use the two together perhaps for some magic, if Mortscript doesn't natively support rotation.
V

[UTIL] iAltWeather 0.1

History: i have search for a port of Weather from iPhone to WM. iWeather, founded on this forum supports only one city and only QVGA screens. So i decide to make my own
Features:
- Many cities
- WVGA support (current only this)
- Skins support for alternative screen resolutions (need a bit of graphics and change xml file)
iAltWeather Controlling
Slide finger left - next city
Slide finger right - previous city
Slide finger down - hide iAltWeather
Slide finger up - close iAltWeather
TODO:
- Configuration screen
- Skins for main screen resolutions: VGA, QVGA, WQVGA
Version History
0.1 - Initial release
0.1.1
- Fixed bug with Celsius
- Added switching from last to first cities
- Separate cabs (iAltWeather, iAltWeatherSkin)
City selection only in iAltWeather.xml file in programm dir.
City code can grabbed from weather search weather.yahoo.com
iAltWeather 0.1 cab (program itself)
iAltWeather Skin for WVGA cab (install to the same path as programm)
I've seen this somewhere before??? Just can't put my iFinger on it...
Nice work, I'll give it a go!
Thanks, looks like a great weather program.
Just what I was Looking.
Will certainly try it.
​
great program weather thanks
how do you change it to F instaed of C. I change Celcius=1 to Celcius=0 in the xml file but that didnt seem to do the trick
may this program cause any problem to the standard touchflo meteo app?
or can I use both flawless?
great job!!
thanks for this software
but it is really close to Iweather
http://forum.xda-developers.com/showthread.php?t=441825
mallman said:
I change Celcius=1 to Celcius=0 in the xml file but that didnt seem to do the trick
Click to expand...
Click to collapse
this bug fixed. new version added.
btw install Skin cab too, after installing new version. now program and a lot of graphics in separate cabs.
hanackin said:
but it is really close to Iweather
http://forum.xda-developers.com/showthread.php?t=441825
Click to expand...
Click to collapse
yes, i'm know, but iWeather not good working on touch hd screen.
exidler said:
this bug fixed. new version added.
btw install Skin cab too, after installing new version. now program and a lot of graphics in separate cabs.
Click to expand...
Click to collapse
hmmm, i still have the bug I guess. I cant get anything but Celcius to display. What is the parameter to ger Ferinheit to display? do I set the xml file to 0, 2, 3, 4 ....? So far 0 and 2 havent worked for me
mallman said:
hmmm, i still have the bug I guess. I cant get anything but Celcius to display. What is the parameter to ger Ferinheit to display? do I set the xml file to 0, 2, 3, 4 ....? So far 0 and 2 havent worked for me
Click to expand...
Click to collapse
OK i got it. What i did was delete everything out of the cache folder first, swiped finger to close app which didnt work. Next I deleted the xml file and swiped finger to close app that didnt work. Finally i deleted cache, relaced xml and rebooted phone and that did work. I am suspicious that the finger swipe isnt closing the app (i tried both up and down swipes) because even the old cities were there after I repleaced the xml file but they were gone when i rebooted (which definately closed the app)
Nonetheless, its working now and the setting in the xml file is celsius="0" to get Ferinheit
Mallman, can you test Close app stroke, becuase i'm can't repeat that program does not close.
Try run program, slide finger from down to up of the screen. And if window disappear check with some true task manager is there in system runing process iAltWeather.exe
If you don't have a task manager, you can decide program closed or not, using time between tap on link and weather screen appear. If iAltWeather running in background time is much less that if program doing full start.
exidler said:
Mallman, can you test Close app stroke, becuase i'm can't repeat that program does not close.
Try run program, slide finger from down to up of the screen. And if window disappear check with some true task manager is there in system runing process iAltWeather.exe
If you don't have a task manager, you can decide program closed or not, using time between tap on link and weather screen appear. If iAltWeather running in background time is much less that if program doing full start.
Click to expand...
Click to collapse
it didnt show as running in task manager, i just concluded it must not have closed some how because a soft reset fixed the issue.
this program may caus problem with default touchflo3d weather app?
or Can I run both programs without problem?
quit program
hi, would it be possible that the program quits just like any other program by pressing the back-key/home-key? now the program remains active and is still fully active when i switch back to my empty home screen.
How to set manual forecast update only
Progam works on HTC HD without problem. Thank you.
Could you please advice how to make this program to update forecast manually only - every time when I run program - it updates forecast.
Thank you in advance.
Exi, where can i find the numeric code for a city ? I looked on yahoo but i didn't find the code for perugia or milano. How can i do? Thank you and great job
Guido
thanks for sharing .....
but anyone know how to made "skin-480x640.xml" for my ATHENA......
Help plz..........>"<
Nice work.

[24/08/2010] first development project 4 on 1 row

intro: I'm a bachelor student who has a little knowledge of programming.
For the first time i try to make a simple game that i already wrote in java work in vb.
I'm planning to make this a full working game that I can place on the market place for free.
I already have the idea how to make the AI to play 1 vs PPC
I wrote it for a WVGA screen but its completely dynamic so it should work on other screen sizes.
Only when you change the orientation the text will not be visible (need to think where i'm gonna place it)
pls feel free to give input on the project.
I uploaded the whole vb net directory so its open for everybody
(Im still a bit strugling with a cab file that has links in it
if you instal it, it should be visible in the programfiles dir)
--edited 24/08
-thanks to Gaz25 the refresh problem is soved
-the 4 on a row detection algorithm is completed
Hi, I had a look at your code and fixed your flicker problem.
Basically, when you do you own drawing on a control like a panel you need to take control of painting the background as when a control is redrawn it paints the background first and then anything else on top like text, images etc...
The best thing to do is create a custom control. Then you can override the OnBackgroundPaint event and say do nothing.
Then override the OnPaint event and here is another trick.
In the OnPaint event, create a bitmap. This will be the 'backbuffer' which you will do all your drawing on. Then when you have done all your drawing on the backbuffer, you draw the backbuffer to the screen.
I have included your solution with my modification which I hope make more sense .
If you need more explanation then let me know and I will go into more detail.
Gaz25 said:
Hi, I had a look at your code and fixed your flicker problem.
Basically, when you do you own drawing on a control like a panel you need to take control of painting the background as when a control is redrawn it paints the background first and then anything else on top like text, images etc...
The best thing to do is create a custom control. Then you can override the OnBackgroundPaint event and say do nothing.
Then override the OnPaint event and here is another trick.
In the OnPaint event, create a bitmap. This will be the 'backbuffer' which you will do all your drawing on. Then when you have done all your drawing on the backbuffer, you draw the backbuffer to the screen.
I have included your solution with my modification which I hope make more sense .
If you need more explanation then let me know and I will go into more detail.
Click to expand...
Click to collapse
i will look at it monday when i'm back from a festival
thanks in advance.
sended from x1
Thank you very mutch,
i just tested it and it works perfect.
I will try to make it better in the following weeks.
Only one thing that you changed in my code that wasn't correct "speler = 0" (on load, needs to be 1 or 2) (speler = player)
I also found an error in my own algortim for the 4 on a row detection
"teller1 = teller2 = 0" ( gave me a -1 on teller1)

[Q] the use of buttons?

Is it possoble to get me to press a bitmap and male ot shrink while making a different one grow?
Yes this can be achieved. With any type of toggle input you will need to create a Tasker task which will toggle a variable on or off. You can then output this variable to Zooper and use a conditional to act upon the variable state (in this case you would want to use the bitmap scaling function on each of the bitmaps) then set the module on tap element of both bitmaps to the task shortcut in order to activate it.
The speed at which this works would be dependant on your phone/tablet so it might not work particularly fast.
Is there a video for this? Im kinda confused but im understanding it a little more.
Sorry for not getting back to you sooner.
This isn't a video but should help you to create the toggle in Tasker: http://www.pocketables.com/2013/03/how-to-create-a-toggleable-task-in-tasker.html
After you have got that working you just need to add another action so press + in your task then select plugin, and then Zooper Widget Pro.
In configuration enter the Tasker variable in ZW Text (remember the %) and enter a name in ZW Variable which you want to use in zooper, this can be anything you want. The convention is to use all capitals for Zooper variables buy it is not necessary.
Once you have saved this you will see that Tasker has added #T to the start of your variable and another # at the end, this is what you will be using in zooper.
Exit from the task with the < icon in the top left corner until you are back at the task page. This is important as it saves your task and also you will not be able to access the task shortcut from Zooper (or any other app for that matter) as Tasker will still be in edit mode.
Right, in your zooper widget call up one of your Bitmaps and go to advanced parameters. Enter this code , changing the variable name to what you have chosen
PHP:
$#TTASK#=1?[s]50[/s]:[s]100[/s]$
This tells Zooper to display bitmap at 50% if #TTASK# is set to 1 or 100% otherwise
Go to module on tap, select the Task Shortcut from the shortcuts menu, then select your task from the list - It will probably prompt you to select an icon. Do that and you have finished that bitmap. Now repeat the parameters in the other bitmap but change =1 to =0 so it is reversed then you are done.
Hopefully I haven't missed anything but let me know if you encounter any problems.
I almost got it, when i tap the picture it just switches between hello and world its probly my tasker but ill show u a screenshot
Lstarz said:
I almost got it, when i tap the picture it just switches between hello and world its probly my tasker but ill show u a screenshot
Click to expand...
Click to collapse
You've misunderstood me a little there, probably my fault.
In Zooper configuration enter %Toggle as the ZWText. It need to be the variable you have already defined in tasker, otherwise you are telling tasker to output a variable that you are not setting.
Also, you can just put one zooper plugin activity after the End If instead of having two separate statements as Tasker will read this last and update then.
Dude the man it works now
When I'm done with the widget I'll tell you so u can see what I shud improve, ATM I have 2 five nights at Freddy's widgets posted if u wanna check them out
Yo, the doors work for the toggle, but I'm trying to make chika and bonnie pop up on screen after a certain time that they show up at the doors
So basically, can I make a timer that that is triggered by one bitmap showing up and when it goes to zero a different bitmap pops up?

Amending DPI On Device...

Well heres one for the books.
I set my DPi to 400 on the device. Went to put it into power saving mode and it changed the screen density to HD which is fine.
However with the Small condensed option selected under display, it now prevents ANY system modifications to the DPI settings which is actually insane! :/
Any ideas on a work around? Im rooted and even amending the Build.prop and using an app seems to kill getting a lower DPI settting
This is a known issue. You have to use adb shell wm density XXX, and avoid changing resolution in the future.
Yeah but when setting up the device you have to choose either Small or Large Condensed Text :/
I'm not sure what problem you're having. I had my content scaling set to small, and text size set to small/very small (can't remember), and just did an adb shell & wm density 520 without a problem.
Same thing happening to me. I tried to change it via build.prop and by the adb shell command. Still at 640.
can someone tell me what the STOCK DPI values are for "standard" and "condensed" mode? (it can be checked with DPI Checker from play store)

Categories

Resources