Find Jobs
Hire Freelancers

To Fix a Very Little Java (Android Studio) Code

$10-30 USD

Në vazhdim
Postuar almost 6 years ago

$10-30 USD

Paguhet në dorëzim
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.
ID e Projektit: 16970375

Rreth projektit

7 propozime
Projekt në distancë
Aktive 6 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
7 profesionistët e pavarur ofrojnë mesatarisht $19 USD oferta për këtë punë
Avatari i Përdoruesit
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 në 1 ditë
5,0 (4 përshtypje)
2,4
2,4
Avatari i Përdoruesit
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 në 1 ditë
5,0 (1 review)
0,0
0,0
Avatari i Përdoruesit
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 në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
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 në 1 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i ARGENTINA
Villa Adelina, Argentina
5,0
39
Mënyra e pagesës u verifikua
Anëtar që nga dhj 8, 2016

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.