Tuesday, November 22, 2016

Activity Intent(2)

ၵမ်းၼႆႉၵေႃႈၶႃႈႁဝ်းတေသိုပ်ႇတွၼ်ႈသွင် Activity Intent2 ၶႃႈၼေႃ တေပဵၼ်လွင်ႈၵၢၼ်တႅမ်ႈၶူတ်ႉ Java မၼ်းၶႃႈၼႃ လၢႆမၼ်းတေပဵၼ်ႁိုဝ်ၼႆၵေႃႈ သိုပ်ႇတူၺ်း clips video ဢၼ်ၶႃႈႁဝ်းတၢင်ႇဝႆႉၼၼ်ႉၶႃႈ

files Java src/MainActivity.java
----------
package com.kamjing.newintent;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
       
        Button btnClick = (Button)findViewById(R.id.btnClick);
        btnClick.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent it = new Intent(getApplicationContext(), ActivityTwo.class);
                startActivity(it);
               
            }
           
        });
    }
           
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}

----------

files Java src/ActivityTwo.java

package com.kamjing.newintent;

import android.app.Activity;
import android.os.Bundle;

public class ActivityTwo extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_two_layout);
    }
}

----------

files res/AndroidManifest.xml
 
 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.kamjing.newintent"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="21" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
       
        <activity
            android:name="com.kamjing.newintent.ActivityTwo"
            android:label="@string/activity_two"
            >

           
        </activity>
       
    </application>

</manifest>

Monday, November 7, 2016

Activity Intent(1)

မႂ်ႇသုင်ၶႃႈ တေႁူဝ်ႁႅၵ်ႈမၼ်း မိူဝ်ႈၼႆႉၶႃႈႁဝ်း Upload ပၼ် Clip Video ၼိူဝ် Youtube တွၼ်ႈတႃႇတေတႅမ်ႈ Application ဢၼ်ပဵၼ် Activity လႄႈ Intent ၶႃႈ ၶႂ်ႈယၢဝ်းဢိတ်းၼိုင်ႈ တေတၢင်ႇဝႆႉပဵၼ်သွင်တွၼ်ႈ ပဵၼ်လၢႆးပိုၼ်ႉၶၢမ်ႇၼၼ်ႉၵူၺ်း ၵွပ်ႈပိူဝ်ႈဝႃႈၶႃႈႁဝ်းၵေႃႈပဵၼ်ၽူႈလဵပ်ႈႁဵၼ်းၵေႃႉၼိုင်ႈၵူၺ်းၼင်ႇၵဝ်ႇ ယိူင်းဢၢၼ်းတေႉၶႂ်ႈႁႂ်ႈဢွၼ်ၵၼ်မႃးလဵၼ်ႈမႃးၶူင် Application မႂ်ႇမႂ်ႇ လၢႆးမၼ်းတေပဵၼ်ၸိူင်ႉႁိုဝ်ၼႆၵေႃႈ သိုပ်ႇတူၺ်းလႆႈတီႈ Youtube ဢၼ်ၶႃႈႁဝ်းတၢင်ႇဝႆႉၼၼ်ႉၶႃႈ။

Activity Intent(1) ၼႆႉပဵၼ်လွင်ႈၵၢၼ်တႅမ်ႈၶူတ်ႉမေးႁၢင်ႈလူင်းၼႂ်း xml file ၼိူဝ်ၼႃႈ layout ၼၼ်ႉၶႃႈ ၸိူင်ႉၼင်ႇ TextView Button လွင်ႈဢၢင်ႈဢိင် String ၸိူဝ်းၼၼ်ႉၶႃႈ။

ၼႆႉပဵၼ် files res /layout/activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:background="#ff0000"
    tools:context="com.kamjing.newintent.MainActivity" >

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="128dp"
        android:text="Activity One"
        android:textColor="#ffffff"
        android:textSize="30sp" />

    <Button
        android:id="@+id/btnClick"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:text="@string/text_btn" />

</RelativeLayout>
*****

ၼႆႉပဵၼ် files res/layout/activity_two_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ffcc00"
    android:orientation="vertical" >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="186dp"
            android:textSize="30sp"
            android:textColor="#009900"
            android:text="Activity Two" />

    </RelativeLayout>

</LinearLayout>
*****

တွၼ်ႈတႃႇလွင်ႈတႅမ်ႈၶူတ်ႉ Java မၼ်းၼၼ်ႉ ၶႃႈႁဝ်းတေ Up ပၼ်ၼႂ်းတွၼ်ႈသွင် Activity Intent(2) ပႂ်ႉသိုပ်ႇတၢမ်တူၺ်းထႅင်ႈၶႃႈ။

Tuesday, October 25, 2016

ပိုတ်ႇႁူဝ်ႁႅၵ်ႈ

တိုၵ်ႉယူႇၼႂ်းၶၢဝ်းယၢမ်းၶူင်သၢင်ႈယူႇၶႃႈ။

ဢၼ်ၶႃႈတေတႅမ်ႈတၢင်ႇၼႂ်းၿလွၵ်ႉၼႆႉ ပဵၼ်လွင်ႈတူဝ်ထူပ်း လွင်ႈလႆႈၵမ်တူၺ်းဢိတ်းဢွတ်းလၢႆးၶူင်သၢင်ႈ Android Application ၼၼ်ႉၶႃႈ ၶႃႈႁဝ်းၵေႃႈဢမ်ႇၸႂ်ႈၵေႃႉဢၼ်ၵျၢင်ႇလူင်ႉလႅၼ်ႈလွင်ႈ Android လႄႈဢိၵ်ႇပႃး Java code programing ပဵၼ်ၵေႃႉဢၼ်သူင်ယိပ်းမိုဝ်းလူၼ်းၵေႃႉၼိုင်ႈၼၼ်ႉၵူၺ်း ၵူဝ်တၢင်းႁူႉဢၼ်လႆႈလဵၼ်ႈ လႆႈၸၢမ်းႁဵတ်းမႃးၸိူဝ်းၼၼ်ႉႁူင်ႈႁၢႆပႅတ်ႈလႄႈၸင်ႇလႆႈတႅမ်ႈတၢင်ႇဝႆႉယဝ်ႈ ပေႃးတေဢဝ်ၵႂႃႇတႅမ်ႈတၢင်ႇတီႈ font=tai.blogspot.com တိၵ်းတိၵ်းၵေႃႈၼႃႇႁၢင်ႈဝႃႈၼႃႈလိၵ်ႈမၼ်းတဵမ်ယဝ်ႉလႄႈ ၵူဝ်ဢဝ်ၵႂႃႇၶူၼ်းၶၢၼ်းလေႃးၵၼ်ၵႂႃႇတိၵ်းတိၵ်း မၼ်းၵေႃႈလီၵိုင်ႇတႅမ်ႈတၢင်ႇဝႆႉႁၢင်းၵူၺ်းမၼ်းၶေႃၶေႃယူႇ ၸွင်ႇဝႃႈၶႃႈတႅမ်ႈတၢင်ႇသင်ဝႆႉၼႆၵေႃႈၶႃႈတေတႅမ်ႈတၢင်ႇဝႆႉပဵၼ်ႁူဝ်လႂ်ႁူဝ်ၼၼ်ႉၵူၺ်း ဢၼ်ၼေလွင်ႈတႅမ်ႈၿလွၵ်ႉၵိူဝ်ႉ blogger ၵေႃႈႁၢင်းမၼ်း လွင်ႈၾွၼ်ႉတႆး လိၵ်ႈတႆးၵေႃႈႁၢင်းမၼ်း လွင်ႈတူၼ်ႈမၢၵ်ႇႁၢၵ်ႈႁူဝ်ၵေႃႈႁၢင်းမၼ်း မဵဝ်းလႂ်မဵဝ်းၼၼ်ႉတေလီယူႇ ပေႃးတႅမ်ႈတၢင်ႇလွင်ႈ Android ၵေႃႈႁႂ်ႈပဵၼ် Android ယူဝ်းယူဝ်းၼၼ်ႉယဝ်ႈ ႁူဝ်ႁႅၵ်ႈမိူဝ်ႈၼႆႉ မွၵ်ႈၼႆႉၵွၼ်ႇၶႃႈ တေလႆႈတႅမ်ႈတၢင်ႇထႅင်ႈၼမ်ယူႇ။

မႂ်ႇသုင်ၶႃႈ။