If you think the Android project aBusTripMK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
// Created by Drakuwa
/**/*fromwww.java2s.com*/
*
* @author Bojan Ilievski - Drakuwa
*
*/package com.app.busmk;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
publicclass other extends Activity {
/** Called when the activity is first created. */
@Override
publicvoid onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.other);
ImageView linii = (ImageView)findViewById(R.id.linii);
linii.setOnClickListener(new OnClickListener() {
publicvoid onClick(View v2) {
create_list();
}
});
ImageView raspored = (ImageView)findViewById(R.id.raspored);
raspored.setOnClickListener(new OnClickListener() {
publicvoid onClick(View v2) {
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://jsp.com.mk/VozenRed.aspx"));
startActivity(myIntent);
}
});
}
privatevoid create_list(){
final CharSequence[] items = {
"2",
"3",
"5",
"7",
"8",
"12",
"15",
"19",
"22",
"24",
"41",
"65b"
};
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("?????? ??????:");
builder.setItems(items, new DialogInterface.OnClickListener() {
publicvoid onClick(DialogInterface dialog, int item) {
Intent myIntent = new Intent();
myIntent.setClassName("com.app.busmk", "com.app.busmk.a"+items[item]);
//Log.d("aaa", "Kliknat item:" + items[item]+";;;");
startActivity(myIntent);
}
});
AlertDialog alert = builder.create();
alert.show();
}
}