Tagged Questions
0
votes
4answers
51 views
simple math with users input
I am new in java and Android. I am working on simple project that's almost complete. But I am facing some problem in XML layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout ...
-6
votes
0answers
36 views
minus some amount from users input [closed]
i am new for java & android.
i am working on simple project that's almost complete.
but sum problem there i set in XML layout
1.edit text
1 button
1 text view
i wan a when user enter number in ...
1
vote
1answer
31 views
Android - Get location of touch starting from 0,0
I can get the coordinates of the touch just fine from:
event.getX();
event.getY();
But I want to start from an origin point of 0,0.
So I can touch anywhere on the screen, and as I drag my finger ...
0
votes
2answers
46 views
Average-Function of Sensor-Data in Android
I'm trying to build the weighted-average from the sensor-data I get by the SensorManager.
My problem is, that bearing, pitch and roll have a maximum value and when I'm exactly at this point, the ...
0
votes
0answers
11 views
Space based on start point, fov and azimuth
so lets say that your start point is (0,0)//lng, lat
lets say that your FOV is 45, 35//h, v
and lets say that the azimuth is 60 degrees...
what space do i see and why?
the end value would look ...
1
vote
0answers
39 views
Rendering math functions in Android with JLatexMath
Im' trying to render and display in real time a math functions into my android app... I founded some libraries and i'm trying to use JLatexMath. I've created a ImageView into my layout but i dont't ...
-6
votes
2answers
61 views
How to make if statement if value is not given [closed]
I am working on an Android project and got stuck.
I have an editable text field in layout and when user input some value I want to make some mathematical actions with that Integer value.
Now, it ...
1
vote
1answer
90 views
use of nextAfter(double start, double direction); in Android
I am in need of assistance. I will be computing a measured variable, then taking the top 100 values of these and averaging them. Please remember, I have been teaching myself only for the past 6 ...
1
vote
1answer
89 views
get distance between 2 points and figure out speed
I would have thought this is trivial, but here at the end of the day my brain is dead.
getting distance in meters seems to work, miles seems to be broken, and speed seems to be broken.
any help ...
1
vote
1answer
47 views
Android - Display formulas in multple choice questions
I'm working on creating a small android app to display multiple choice questions. Few of the question/answer choices has complex mathematical formulas. I'm able to display formulas using WebView + ...
0
votes
2answers
47 views
Android Calculating values to pass to onClick method
I think I'm getting confused about the activity lifecycle here, I'm trying to perform a simple weights conversion, nothing spectacular.
the user enters a value, selects whether they want it ...
0
votes
2answers
86 views
Android Java using a switch / case to calculate different percentages
I'm having a bit of a conundrum..
I have a variable called "results" which is the result of a previously calculated variable and then appended either +10%, +20%, 0%(the same as it is..) -10% and so ...
0
votes
1answer
31 views
Get New Points from Angle Android
I am trying to make a Re-sizable touch view which I made successfully. You can find code How to make view resizable on touch event.
It has 4 corners. You can re-size that rectangle by dragging one ...
0
votes
0answers
34 views
Check for intersection between line segments in path [duplicate]
I have tested several ways how to detect if two lines within a path intersects with each other, but none of them have worked for me. And this last code that I show below, doesn't work either because ...
0
votes
1answer
78 views
Trouble with intersection between line segments
I have a path stored as points in an arraylist and I want to check if the line segments are intersecting. For some unknown reason it's not working! I don't get any message in the LogCat despite that ...