[Q] Changing ball direction according to GUI object.(UNITY) - Java for Android App Development

Hi everybody. I searched google but could not find something enough siple for me. Could you
please help me.
The case is this: There is a ball on scene and a kick button also there is a gui object
which is for determining the ball direction.
There is 120 level on gui object. The level is changing by time but I want it to be fast,
because user should not catch it easly. Cany we change the levels according to milisecond
for example per 2 milisecond 1 level.
After this, how can get the value of guı object's value when I press the kick button and
give it to ball as a direction. Thanks a lot for your helps.
By the way, I am using javascript.

Related

Implementing search in RichInk

Hi everybody!
I've written a small app that uses a richink control to display a lot of text.
I want to add a simple search capability, but I can't figure out how to scroll the control to the right location. I stream out plain text and my algorithm fineds the character where the search string begins. But I couldn't find any way of determining by how much I should scroll the control.
It also seems the WM_SCROLLCARET doesn't work.
Can any one help me please……
Ok last desperate plea for help, anybody?

Possible to improve scrolling through Contacts?

I'm curious whether some of the more knowledgeable participants could have a look at my original thread in the Trinity forum and comment on whether a fix via a registry tweak is possible or it belongs in the "too hard" basket.
I've created a thread in this forum as I feel that my original thread is not receiving the proper exposure & some of the replies seem to detract from the topic at hand.
Cheers.
you can also use your keyboard and select the arrow up / down key for a few seconds to trigger the alphabet search (big letters). I realize this isn't exactly what your looking for, but probably much easier then using the scroll wheel.
You also might what to see if you can find a way to tie a hard key to the function up / down of the scroll wheel to trigger this function.
andason said:
You also might what to see if you can find a way to tie a hard key to the function up / down of the scroll wheel to trigger this function.
Click to expand...
Click to collapse
And that's basically the aim of this thread - to throw a few ideas around in the hope that someone might see it as a challenge & be able to come up with a workable fix.
As I don't have any programming skills, I don't know how difficult or easy it is to change the default behavior of the scroll wheel when opening Contacts. Hence, input from the more knowledgeable users with programming skills will hopefully clarify the difficulty of incorporating such a change.
http://forum.xda-developers.com/showthread.php?t=314048
famewolf said:
http://forum.xda-developers.com/showthread.php?t=314048
Click to expand...
Click to collapse
Thanks for the link. Will have a look at it.

converter program (finger friendly) need suggestions

Hi wanted to create my first program..
right now Im trying to make a unit converter that is finger friendly..
so far I've tested it and here is what I have so far..
any suggestions? regarding the buttons positions, the interface, etc?
thanks
Hi Providense,
Looks good so far.
Do you have a development schedule as to what it will convert?
Keep it up.
John
Provedence,
It seems that some people like to have a configuration facility.
So perhaps some suggestions:-
Favorites so that the list can be tailored to favorites for that person to save a more compact list of 'things to convert'
I would be happy to have any theme for now but cooks may prefer to add there own theme.
I have used this type of function with calculator type programs but they can become unweildy so one that is specific would be usefull.
Thanks
John
thanks Johny1fin
as of now these are the things i've done
Temperature:
degree Celsius
degree Fahreheit
degree Rankine
degree Reaumur
kelvin
Acceleration: (still doing it right now)
centigal
centimeter/square second
decigal
decimeter/square second
dekameter/square second
foot/square second
g-unit(G)
gal
galileo
gn
grav
hectometer/square second
inch/square second
kilometer/hour second
kilomter/square second
meter/square second
mile/hour minute
mile/hour second
mile/square second
milligal
millimeter/square second
still a long way to go. But the Acceleration should be done by today.
Then I'll add Area, Date/Time and etc
I like the idea of favorites. I'll see if i can implement that. Im still a beginner at programming. Using VB.net 2003 right now
oh by the way. Here's the main menu, where I will put all the buttons
providence said:
Hi wanted to create my first program..
right now Im trying to make a unit converter that is finger friendly..
so far I've tested it and here is what I have so far..
any suggestions? regarding the buttons positions, the interface, etc?
thanks
Click to expand...
Click to collapse
Providence,
It may be a limitation of the APIs but could the vertical scroll buttons be next to each other horizontally rather than vertically as this may produce larger buttons?
John
Look nice.. however, on the finger friendly issue, you may want to avoid the scroll list (on your first screenshot) and have another screen for the choice of (say) different temperature units. Something like, making a screen (of your second shot) for temperature units. If you get what i'm trying to say
thanks for the feedbacks i've changed how the scrolling works. Now im using a custom button for that.
Looking good providence
I am not sure if you like this idea, but I think it will be more useful if you can add:
- Currency converter
- Currency quick view (to view several currencies at once)
There is an example of a very nice and complete project with source code here:
http://www.codeproject.com/netcf/PocketCurrency.asp
Add option to have automatic currency update as well
[ x ] Update when connected to ActiveSync
[ x ] Automatic update every X hours
hi, well the main idea was to create a finger based Unit conversion program. To add Currency Converter would be a challenge for myself.
Since first of all, Currency changes daily, so there must be a way to update it. Secondly, im still learning how to program by self teaching myself on my free time.
By the way, Here's the latest screenshot of the program.
I fixed the buttons so its easier to use.
unfortunately, this will only work on PDAphones and not on smartphones. Since you'll need to use the touch screen as input method.
Here is an idea, as mentioned by one of the post above, instead of stacking your scroll button up and down, it may save you that more space if you were to stack them left and right.
From what it seems, the < and > , are buttons, which you use it to 'affect' your lists. If you were to (example) sandwish your list in between these two buttons, you would save like another 2 button height. Example.
Currently, you have the layout
Code:
. item1 <
. item2
. item3 >
. item4
if you can just do this (which is possible in VC, not sure about VB), instead
Code:
< .item1 >
.item2
So, instead of 4 item height, you are now only left with 2 items height.
ahh i see..
I tried doing it
< item 1 >
item 2
but i find it harder to navigate, since when you go back you have to drag your finger across the other side of the screen. And while doing that, you are blocking the item list with your finger.
I dont need to save space, i think i got everything in there..
by the way, here's the test i took
then again, if i put them on the sides, it makes easier for those who are left handed as well
The spaces you save, may able you to bloat up the keypad below.. from what it seems, now they are on the 'flat' side of it.
If you think the "left-list-right" is not very finger friendly, you can try the "list-left-right"? That is
.item1 < >
.item2
Hi thanks for the suggestions..
right now here is what i have, and will probably be the final change in the button positioning..
i got big fingers and I can use them without stylus.
Should have a pre-alpha version ready soon. As of now I've done temperatures and acceleration.
Will add more soon

Programmatically Controlling Backlight Brightness

I am trying to write a Today screen item that will allow a user to quickly change the backlight dimmer level (i.e. hit a button go to x% hit another button go to y%). I have been able to find plenty of information regarding device power states and turning on and off the backlight, but nothing what so ever on how to control the current dimmer level.
Could somebody point me in the right direction? Specifically I am hoping to find a low-level API function that I can easily hook into (which is what I would expect) and also related registry keys (which I assume are what's being used by the backlight control panel).
Thanks in advance!
Look for MVBklight, it's a backlight app, really great with today plugin, pop up dimmer and cycling functions. Hope it helps you to do your own stuff.
Thanks for the above link. I think I may have actually found an english version, but I still haven't given up programming my own today item (especially since I want to learn the ins and outs of Today Screen items in general).
I think I've narrowed it down to the following
// Get a handle to the LCD device.
hLCD = CreateFile(TEXT("\\.\LCD"), blah, blah);
// Get the display brightness
DeviceIoControl(hLCD, IOCTL_VIDEO_QUERY_DISPLAY_BRIGHTNESS, blah, blah);
The problem I am having now is that when I specify the above device (\\.\LCD) I get a file not found error. I have a feeling that the device name may actually be different (even though this was an example given on MSDN it was for a laptop LCD i believe). How do I know that this is the proper name for the device? Is there a way to enumerate device names? Do I have to create a link for a device name to a device?
Thanks again.

[Q] Plotting XY graph with cartesian coordinate

Hi everyone, I'm trying to draw a graph on XY coordinate, but as you all know, the origin in computer graphic is at the top left corner, and the y-axis is pointing down for +ve.
I managed to translate the origin to center of the screen using canvas.translate. But I would like to make the y-axis orientation is up for +ve as normal cartesian system. Anybody know how to turn the y-axis upside down in Android?
Thanks
I've done my share of math (algebra, trig and Calculus 1,2,3) but it was years ago. I don't recall what "+ve" is but if you are wanting to move the origin to the center of the screen I would think that you would set this once:
Y_ORIGIN=SCREEN_HEIGHT/2
Then whenever you needed to translate a Y Coordinate you would use:
ACTUAL_Y=Y_ORIGIN - OUR_Y
I don't know the Android code for determining the screen height.
Sorry, if this isn't what you are asking for.
Thanks for the reply man. Anyway, I juz figured out how to do that, juz by playing with some scale and translate function with canvas in Java.

Categories

Resources