Tiny Sharp Red Pointer

Thursday, November 29, 2012

Update twitter via Sendal Jebat

Update twitter via Sendal Jebat

jika di atas tidak work klik here

ScreenShot :

Update Twitter via HP Pinjaman

Sedikit cara update twitter via HP Pinjaman
Jika di atas tidak work klik here

Screenshot

Wednesday, November 28, 2012

Firefox 18 beta 1 for android armv6

Firefox 18 beta 1 for android armv6 work test me on galaxy young..

Download

downloads versi 19
Screenshot








Sunday, November 25, 2012

Membuat aplikasi Android Tombol Button Sedehana

1. Tambah Button


Buka “res/layout/main.xml” file, tambah button.

File : res/layout/main.xml


<?xml version="1.0" encoding="utf-8"?>
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<Button android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button - Go to mkyong.com" />
</LinearLayout>

2. Kode Kode


Ketika pengguna mengklik pada itu, buka browser mobile dan URL tampilan: http://www.mkyong.com

File : MyAndroidAppActivity.java


package com.mkyong.android;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
import android.view.View.OnClickListener;

public class MyAndroidAppActivity extends Activity {

Button button;

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

addListenerOnButton();

}

public void addListenerOnButton() {

button = (Button) findViewById(R.id.button1);

button.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {

Intent browserIntent =
new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.mkyong.com"));
startActivity(browserIntent);

}

});

}

}


3. Contoh

Menjalankan Aplikasi


1. Hasilnya, sebuah tombol normal




2. Klik pada tombol, menampilkan URL di browser



Download Source Code

Download contoh button


sumber