metehn avatar

Creating a basic application on ANDROID STUDIO

metehn

Published: 16 Jan 2019 › Updated: 16 Jan 2019Creating a basic application on ANDROID STUDIO

Creating a basic application on ANDROID STUDIO

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..

Leave Creating a basic application on ANDROID STUDIO to:

Written by

i love the life i live

Read more #utopian-io posts


Best Posts From metehn

We have not curated any of metehn's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From metehn