Tuesday, July 16, 2019

လွၵ်းမိုဝ်း လႄႈ ၽွၼ်ႉ တႃႇၶွမ်း Windows (Keyboard and Fonts For Windows 7,8,10)

ၼင်ႇႁိုဝ်လႄႈ ပေႃးတေပဵၼ်တၢင်းၵမ်ႉထႅမ် တွၼ်ႈတႃႇၽူႈၸႂ်ႉတိုဝ်းၶွမ်းႁဝ်းၶဝ်ၼၼ်ႉ


လူဝ်ႇမႃးမိူဝ်ႈလႂ်ၵေႃႈ ႁႂ်ႈပေႃးႁႃငၢႆႈ ၸၼ်ငၢႆႈ ယိူင်းဢၢၼ်းၼင်ႇၼႆသေလႄႈ ၸင်ႇလႆႈတၢင်ႇဝႆႉပၼ်
ပီႈၼွင်ႉႁဝ်းၶဝ်ယဝ်ႉ ၸၼ်ဢဝ်လႆႈတီႈတႂ်ႈၼႆႉတႃႉ။

Wednesday, June 27, 2018

လွၵ်းလၢႆးႁဵတ်း(Splash Screen) တီႈၼႂ်း Android Studio

ၸႂ်ႉတူၺ်းၼင်ႇတႂ်ႈၼႆႉ



code

package com.example.jaotainum.welcomescreen;

import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Main extends AppCompatActivity {
    private  int SPLASH_TIME_OUT = 4000;
    @Override    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        new Handler().postDelayed(new Runnable() {
            @Override            public void run() {
                Intent home = new Intent(Main.this,HomeActivity.class);
                startActivity(home);
                finish();;
            }
        },SPLASH_TIME_OUT);
    }
}

Thursday, June 14, 2018

လဵပ်ႈႁဵၼ်း Android Studio 001 ( Toast Message + Click Button)

လဵပ်ႈႁဵၼ်း Android Studio 001 ( Toast Message + Click Button)



main.xml code

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    tools:context=".Main">


    <Button        android:id="@+id/btn"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_weight="1"        android:text="Click" />
</LinearLayout>

Main java code

package com.example.jaotainum.toast;

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

public class Main extends AppCompatActivity {
    Button test;

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

        test= (Button) findViewById(R.id.btn);
        test.setOnClickListener(new View.OnClickListener() {
            @Override            public void onClick(View v) {
                Toast.makeText(Main.this, "Hello", Toast.LENGTH_SHORT).show();
            }
        });

    }

    public void dosomthing(View v) {

    }
}

တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 19 (Scanner+do while+if, else if ၸႂ်ႉၵိုၵ်းၵၼ်)

တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 19 (Scanner+do while+if, else if ၸႂ်ႉၵိုၵ်းၵၼ်)


java code example

public class lesson11 {
    public static void main(String []args){

        Scanner sc = new Scanner(System.in);        String s = sc.next();
        switch (s) {

            case "*133#":
                do {

                    System.out.println("1. data pack");                    System.out.println("2. Facebook Pack");                    System.out.println("3. Other Pack");
                    s = sc.next();
                    if (s.equals("1")) {
                        System.out.println("1. 450 MB+ 700");                        System.out.println("2. 2.GB + 1500 ");                        System.out.println("3. 88");
                        s = sc.next();
                        if (s.equals("2")||s.equals("2")) {

                            System.out.println("Success");

                        }


                    }


                } while (s.equals("88"));                break;            default:

                System.out.println("Number Code Error");
        }
    }
}

တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 18 ( Scanner 02 and if, else if / မိူၼ်လၢႆးသိုဝ်ႉ Internet Pack MPT ၼၼ်ႉ)

လၢႆးၸႂ်ႉတိုဝ်း Scanner 02 မိူၼ်လၢႆးသိုဝ်ႉၼႅတ်ႉ MPT


java code example

import java.util.Scanner;
public class lesson10 {
    public static void main(String []args){


        Scanner sc = new Scanner(System.in);        String  code = sc.next();
        switch (code){

            case "*133#":

                System.out.println("1. Data Pack");                System.out.println("2. Facebook Pack");                System.out.println("3. Other Pack");
                String numberpacck = sc.next();
                if (numberpacck.equals("1")){

                    System.out.println("1. 400 MB+700 (Pack)");                    System.out.println("2. 900 MB + Data Pack");                    System.out.println("3. 1 GB + Data Pack");

                }else if (numberpacck.equals("2")){


                System.out.println("200 MB + 499 ks (Facebook Pack)");                System.out.println("700 MB + 999 ks (Facebook Pack");                System.out.println("1 GB + 1500 ks (Facebook Pack");

                }else if (numberpacck.equals("3")){


                    System.out.println("Voice Call Pack");                    System.out.println("Other Call");                    System.out.println("other call");                }



            break;
        default:{

            System.out.println("Number code Error");        }


        }

    }
}

တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 17 (Scanner 01)

Scanner 01


java code example

import java.util.Scanner;
public class lesson08 {

    public static void main (String []args){

        Scanner sc = new Scanner(System.in);        String st = sc.nextLine();
        System.out.println("Outpot; "+st);    }
}

လွၵ်းမိုဝ်း လႄႈ ၽွၼ်ႉ တႃႇၶွမ်း Windows (Keyboard and Fonts For Windows 7,8,10)

ၼင်ႇႁိုဝ်လႄႈ ပေႃးတေပဵၼ်တၢင်းၵမ်ႉထႅမ် တွၼ်ႈတႃႇၽူႈၸႂ်ႉတိုဝ်းၶွမ်းႁဝ်းၶဝ်ၼၼ်ႉ လူဝ်ႇမႃးမိူဝ်ႈလႂ်ၵေႃႈ ႁႂ်ႈပေႃးႁႃငၢႆႈ ၸၼ်ငၢႆႈ ယိူင်းဢၢၼ်း...