Any ideas if one exists or what it takes to create the proper variable?
Related
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
Hi,
I am new to android development so sorry if this question has a really obvious answer. I am hoping to make a game for the platform but to start with I have just tried to make a basic layout of 4 buttons to move in different directions and then have a background and an image in front which will be my sprite and move across the screen depending on what button is pressed.
At the moment I have created two views. One via the main xml document and the other through the java code itself. The java code one contains the background and image to be drawn and the main.xml contains the buttons.
At the moment I have my code set up like this:
this.setContentView(R.layout.main); <<<<<<<<<< xml
this.setContentView(this.myTestView); <<<<<<<<<<<<<< java
I am aware that I am basically setting one and then setting the other over the top of it and this means that only one of these views will appear. Does anyone know of a way I can use these views in conjunction so that both the images frm the java file and the layout from the xml can both be used?
Cheers for any help.
ExO
As far as I know you cannot do this. By calling setContentView you are overwriting the object which held the content previously.
Once the view is set you can add items in code after this call.
Why do you not have all the elements in the xml?
aw ok, i wasnt sure if it was possible or not. The reason I did it like this was just because I'm still learning to use both languages. Aswell as that I am using droiddraw to generate my xml and couldnt see an option within that to add images etc. Cheers for the reply .
Hello,
I know that it's possible to add applications to whitelist for built-in screen rotation function in HTC Leo.
But this is very inconvenient. You need determine Class of application and then add it to registry...
Could anyone write a simple application, which could be mapped to hardware button. For example, when I use long button press - it automatically determines open (active) application window class and adds it to HTC Leo rotation whitelist. Second long press will remove this application from whitelist.
It will be very useful and convenient and no need to use external applications like Gyrator, because using built-in HTC abilities - is much better.
I'm sure this thing will be very popular and needed application.
Is anyone from developers interested in coding this idea ?
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)
Hello!
Great plugin!
It would be great if we could usa a tasker variable in the "ZW Variable" field in the ZW tasker plugin.
That way, i could set ZW variables in JavaScript through a tasker task!
Thanks!
"ZW Variable" field in the ZW tasker plugin
i.surfers said:
Hello!
Great plugin!
It would be great if we could usa a tasker variable in the "ZW Variable" field in the ZW tasker plugin.
That way, i could set ZW variables in JavaScript through a tasker task!
Thanks!
Click to expand...
Click to collapse
Thats exactly what I wanted. I wanted to use the plugin in a loop in tasker (I do not know javascript, but it it would be very great if that was possible too)
So I could create a zooper colorstyler in tasker with the possibility to create a scene where I could just add multiple colors with names in a array. And use that in a loop to create and update ZW colors
The number (amount) of colors would be really flexible, whithout changing the task.
In the old zooper thread I saw the same request. It was from a year ago.
Hope the request will be heard and integrated.
Would be realy awesome.
Can anyone from MyColorScreen look into this request. I need it too instead of creating a very long task with duplicated action for each item in the widget, I could use For Loop action for all items.
Posted via Tapatalk