Find Jobs
Hire Freelancers

To Fix a Very Little Java (Android Studio) Code

$10-30 USD

In Progress
Posted almost 6 years ago

$10-30 USD

Paid on delivery
So............. I have the disaster of a code you'll find next. It's from Android Studio, and it is the following. ----------------------------------------------------------------------------------------- package [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; public class MainActivity extends AppCompatActivity { private TextView T1; private Button B1; @Override public void onCreate(Bundle savedInstanceState) { [login to view URL] (savedInstanceState); setContentView (R.layout.activity_main); T1 = (TextView) findViewById ([login to view URL]); B1 = (Button) findViewById ([login to view URL]); } public void IndicateTime (View view) { long TouchDown; long TotalDuration; [login to view URL](new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if ([login to view URL] () == MotionEvent.ACTION_DOWN) { TouchDown = [login to view URL] (); } else if ([login to view URL] () == MotionEvent.ACTION_UP) { TotalDuration = [login to view URL] () - TouchDown; } return true; } } } ----------------------------------------------------------------------------------------- I do not understand a single bit of what I'm doing. But. What I want, is, someone to fix the code, in order to make a little app which just have 1 button, and 1 text, and that: When you Press the Button, and Release it, It Tells you How Much Time Have Passed from When It Was Pressed. Just That. I leave a ScreenShot of the Code in Android Studio attached.
Project ID: 16970375

About the project

7 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average $19 USD for this job
User Avatar
Hello I am professional programmer. I work as Android programmer and have developed several apps already. Hire me for your job to be done well at low costs.
$30 USD in 1 day
5.0 (4 reviews)
2.4
2.4
User Avatar
Hi, I'm Himanshu from The Highsense Technologies. We here your request and ready to help you as per your requirements! We expertise in Android Application Development! we glad to help you for fixing code issues! after I seen your code, I suggest you to add an One method more which gives totaltime , you have used in time_down method it mix up both. in Total Time Method You have to put Time_Up - Time_Down ; both variables mentioned in their methods! we request you to award this work to us! we hope to here you soon! Thank You
$10 USD in 1 day
5.0 (1 review)
0.0
0.0
User Avatar
Hi there. I recently made an app on java which generated a UI with two text boxes and a dropdown menu too so I feel like what you need is similar to what I just did. If that is the case I can help you out in no time :) As the app that i made was recent I feel like I would be a good pick because everything i did is still fresh in my mind.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have had done this same project only small variance. I will provide you with the working code in mean time. Feel free to contact any time for further details. Thank You
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ARGENTINA
Villa Adelina, Argentina
5.0
39
Payment method verified
Member since Dec 8, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.