Creating a basic application on ANDROID STUDIO

in utopian-io •  6 years ago 

Android studio is a perfectly developed application that you can do whatever you want to see on phones. With having a great ability, it is also easy to use. The program i share down belongs to me and i created it in a really short time with having no knowledge before. And it really works perfectly. So i wanted to share with you too.

The program is like i shared:


package com.example.mahmuttatar.sehimteyit;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class SehimTeyit extends AppCompatActivity {

TextView giris1, giris2, giris3, giris4, sonuc;
Button button;
EditText deger1, deger2, deger3, deger4;
double formul;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_sehim_teyit);


    giris1= (TextView) findViewById(R.id.giris1);
    giris2= (TextView) findViewById(R.id.giris2);
    giris3= (TextView) findViewById(R.id.giris3);
    giris4= (TextView) findViewById(R.id.giris4);
    sonuc= (TextView) findViewById(R.id.sonuc);
    button= (Button) findViewById(R.id.button);
    deger1= (EditText) findViewById(R.id.deger1);
    deger2= (EditText) findViewById(R.id.deger2);
    deger3= (EditText) findViewById(R.id.deger3);
    deger4= (EditText) findViewById(R.id.deger4);

    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {





            double deger1_int = Double.parseDouble(deger1.getText().toString());
            double deger2_int = Double.parseDouble(deger2.getText().toString());
            double deger3_int = Double.parseDouble(deger3.getText().toString());
            double deger4_int = Double.parseDouble(deger4.getText().toString());
            //formul = (deger1_int+deger2_int+deger3_int+deger4_int);
            formul= Math.pow(((Math.sqrt(((Math.tan(Math.toRadians((deger1_int-100)*0.9))+Math.tan(Math.toRadians((100-deger4_int)*0.9)))*deger3_int))+Math.sqrt(deger2_int))/2),2);
            //formul = (Math.toDegrees(Math.atan((Math.pow(((Math.sqrt(deger1_int)*2)-Math.sqrt(deger2_int)),2)/deger3_int)-Math.tan(Math.toRadians((100-deger4_int)*(0.9))))*(1.111111))+100);

            // =DERECE(ATAN((KUVVET(((KAREKÖK(B2)*2)-KAREKÖK(B3));2)/B4)-TAN(RADYAN((100-B5)*0,9)))*(1/0,9))+100
            // (((KAREKÖK(B2)*2)-KAREKÖK(B3));2)
            // =DERECE(ATAN((KUVVET(((KAREKÖK(B2)*2)-KAREKÖK(B3));2)/B4)
            // -TAN(RADYAN((100-B5)*0,9)))*(1/0,9))+100
            // =DERECE(ATAN((KUVVET /B4)
            // -TAN(RADYAN((100-B5)*0,9)))*(1/0,9))+100 //
            // B2 1, B3 2, B4 3, B5 4


            String deger1=Double.toString(formul);
            sonuc.setText(deger1);

        }
    });

}

}


Writing this program to Android Studio is as it showed down:

Adsız.png

And its lines couldn't see at first image:

Adsız2.png

After writing the program and "Run" it it starst to show your VIRTUAL ANDROID EMULATOR (Virtual Phone You selected):

Adsız3.png

Then your Virtual Phone Starts like that:

Adsız4.png

Then The aplication we wrote its program starts by itself like that:

Adsız5.png

And it works with my writing measurements... It shows the number i needed:

Adsız6.png

So you can also create an application on Android Studio easily with working on a bit...

Thanks..

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for your contribution.

  • Your tutorial does not really stand as a proper tutorial.
  • Tutorials need to teach innovative and useful aspects of how-to implement something.
  • Also make sure your tutorial and your work is 100% original. If you use any code or information from other sources, make sure to mention that if you do.
  • Your post format is of low quality, try to make it more useful to users and follow specific sections and thoughts.
    Check out our guidelines for more info about utopian and contributions

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your comment. You are right that may not be a tutorial. I am new at steemit.com so with time i will improve myself on posts. Thank you again

Thank you for your review, @mcfarhat! Keep up the good work!

thank you for your comment, as you say my post may not be tutorial. With being new on steemit.com, i will improve on posting day by day. thank you again..

Congratulations @metehn! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published your First Post
You made your First Vote
You made your First Comment
You got a First Vote
You made more than 10 upvotes. Your next target is to reach 50 upvotes.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Support SteemitBoard's project! Vote for its witness and get one more award!

thank you so much, will try to complete my targets.