This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Tampilkan postingan dengan label Eclipse. Tampilkan semua postingan
Tampilkan postingan dengan label Eclipse. Tampilkan semua postingan

Jumat, 06 September 2013

Mengubah layout di Eclipse android

Kali ini saya akan berbagi cara mengubah layout eclipse android

 pertama tulis kode berikut di activity

 import android.view.View;

dan

    public void changelayout1(View view) {
        setContentView(R.layout.activity_main);
    }
}

kemudian dibawah <Button ditambah

android:onClick="changelayout1"

(tulisan merah dapat diganti - ganti tapi harus sama)

Kamis, 05 September 2013

Mengubah swf ke apk dengan eclipse

Setelah lama mencari diinternet akhirnya aku menemukan cara mengubah swf ke apk.tapi belum kucoba karena eclipse ku error.
pertama harus impor file swf ke asset dan kemudian langsung saja ini kodenya


importandroid.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
       
        String url ="file:///android_asset/namaswf.swf";                          
        WebViewwv=(WebView) findViewById(R.id.web_engine);
        wv.getSettings().setPluginsEnabled(true);
        wv.loadUrl(url);       
    }
}


Ini kode XMLnya



<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayoutxmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >
<WebViewandroid:id="@+id/web_engine"
             android:layout_width="fill_parent"
             android:layout_height="fill_parent">
    
 </WebView>  
</AbsoluteLayout>


Haaapppppyyyyy coding !!!!!!!!!!!!!!