Студопедия
Случайная страница | ТОМ-1 | ТОМ-2 | ТОМ-3
АрхитектураБиологияГеографияДругоеИностранные языки
ИнформатикаИсторияКультураЛитератураМатематика
МедицинаМеханикаОбразованиеОхрана трудаПедагогика
ПолитикаПравоПрограммированиеПсихологияРелигия
СоциологияСпортСтроительствоФизикаФилософия
ФинансыХимияЭкологияЭкономикаЭлектроника

олданылған әдебиеттер тізімі

Осымша құру ортасын дайындау | Java тілінің негізі және қысқаша тарихы | Бай объектілік ортасы | Жоба қасиеттері | Жобаның файлдық құрылымы | Деректер қорын құру. SQLite | Минималды жүйелік талаптары | Осымша интерфейсінің құрылуы | Осымшаның бағдарламалық коды | Программалық жабдықтарды тестілеу. Программалық жабдықтардың сапасын тексерудің түрлері |


Читайте также:
  1. Б тізімі
  2. Негізгі әдебиеттер
  3. Негізгі және қосымша әдебиеттер тізімі
  4. Негізгі және қосымша әдебиеттер тізімі
  5. Негізгі және қосымша әдебиеттер тізімі
  6. Осымша әдебиеттер

1 Alto P. Google’s Android becomes the world’s leading smart phone platform. URL: http://www.canalys.com/pr/2011/r2011013.html (дата обращения: 23.03.2011).

2 Android Developer Guide. Официальный сайт для разработчиков Android. URL: http://developer.android.com/guide/basics/what-is-android.html (дата обращения: 23.03.2011).

3 Android Overview. URL: http://www.openhandsetalliance.com/android_overview.html (дата обращения: 23.03.2011).

4 Android Patterns - Interaction Design & Usability. URL: http://www.androidpatterns.com/ (дата обращения: 01.05.2011)

5 Android SDK. Официальный сайт для разработчиков Android. URL: http://developer.android.com/sdk/index.html (дата обращения: 23.03.2011).

6 Beckley A. Android design guidelines, version 1. URL: http://www.mutualmobile.com/wp-content/uploads/2011/03/MM_Android_Design_Guidelines.pdf (дата обращения: 01.05.2011)

7 Burnette E. Hello, Android. Introducing Google’s Mobile Development Platform. - Pragmatic Programmers, LLC, 2008.

8 Conder S., Darcey L. Learn Java for Android Development. URL: http://mobile.tutsplus.com/series/learn-java-android-development/ (дата обращения: 20.04.2011).

9 DiMarzio J. Android, A Programmers Guide. - The McGraw-Hill. 2008

10 Официальный сайт Eclipse. URL: http://www.eclipse.org/ (дата обращения: 23.03.2011).

11 Gramlich N. andbook. Android Programming. URL: http://andbook.anddev.org/files/andbook.pdf

12 Java. Официальный сайт Oracle. URL: http://www.oracle.com/technetwork/java/javase/downloads/index.html (дата обращения: 23.03.2011).

13 Rumbaugh J. Getting Started – Using Use Cases to Capture Requirements. // Journal of Object Oriented Programming. - 1994. Vol. 7, № 5. P. 8–12.

14 Vogel L. Android Development Tutorial. URL: http://www.vogella.de/android.html (дата обращения: 20.04.2011)

15 Буч Г., Рамбо Д., Якобсон И. Язык UML. Руководство пользователя. 2-е изд. - М.: ДМК Пресс, 2007.

16 Голощапов А.Л. Google Android: Программирование для мобильных устройств. - СПб.: БХВ-Петербург, 2011.

17 Хашими С., Коматинени С., Маклин Д. Разработка приложений для Android. - Питер, 2011.

18 Эйблсон Ф. Введение в разработку для платформы Android. Техническая библиотека IBM developerWorks URL: http://www.ibm.com/developerworks/ru/library/os-android-devel/index.html (дата обращения: 10.04.2011)

19 Эйблсон Ф. Разработка приложений для платформы Android в среде Eclipse. Техническая библиотека IBM developerWorks URL: http://www.ibm.com/developerworks/ru/edu/os-eclipse-android/index.html (дата обращения: 10.04.2011).

20 http://www.wikikaz.kz/ Ақпарат порталы.


Осымша

Alippe_kaz

 

 

package com.example.alippe_kaz;

 

import android.content.Intent;

import android.os.Bundle;

import android.support.v7.app.ActionBarActivity;

import android.view.View;

import android.view.View.OnClickListener;

import android.widget.ImageButton;

 

public class activity_2 extends ActionBarActivity {

ImageButton ib1,ib2,ib3;

@Override

protected void onCreate(Bundle savedInstanceState) {

super. onCreate(savedInstanceState);

setContentView(R.layout. activity_main);

ib1 = (ImageButton) findViewById(R.id. imageButton1);

ib2 = (ImageButton) findViewById(R.id. imageButton2);

ib3 = (ImageButton) findViewById(R.id. imageButton3);

OnClickListener oIB = new OnClickListener() {

@Override

public void onClick(View v) {

// TODO Auto-generated method stub

Intent intent = new Intent(activity_2. this,MainActivity. class);

startActivity(intent);

}

};

ib1.setOnClickListener(oIB);

OnClickListener oIB1 = new OnClickListener() {

@Override

public void onClick(View v) {

// TODO Auto-generated method stub

Intent intent1 = new Intent(activity_2. this,game. class);

startActivity(intent1);

}

};

ib2.setOnClickListener(oIB1);

OnClickListener oIB2 = new OnClickListener() {

@Override

void onClick(View v) {

// TODO Auto-generated method stub

Intent intent1 = new Intent(activity_2. this,piano. class);

startActivity(intent1);

}

};

ib3.setOnClickListener(oIB2);

}

}

package com.example.alippe_kaz;

 

import android.content.Intent;

import android.media.MediaPlayer;

import android.os.Bundle;

import android.support.v7.app.ActionBarActivity;

import android.view.Gravity;

import android.view.View;

import android.view.View.OnClickListener;

import android.widget.ImageButton;

import android.widget.ImageView;

import android.widget.LinearLayout;

import android.widget.Toast;

 

public class MainActivity extends ActionBarActivity {

 

ImageButton ib1, ib2, ib3, ib4,

ib5, ib6, ib7, ib8,

ib9, ib10, ib11, ib12,

ib13, ib14, ib15, ib16,

ib17, ib18, ib19, ib20,

ib21, ib22, ib23, ib24,

ib25, ib26, ib27, ib28,

ib29, ib30, ib31, ib32,

ib33, ib34,

ib35, ib37, ib38, ib40,

ib41, ib42, ib43;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.alippe);

ib1 = (ImageButton) findViewById(R.id.imageButton1);

ib2 = (ImageButton) findViewById(R.id.imageButton2);

ib3 = (ImageButton) findViewById(R.id.imageButton3);

ib4 = (ImageButton) findViewById(R.id.imageButton4);

ib5 = (ImageButton) findViewById(R.id.imageButton5);

ib6 = (ImageButton) findViewById(R.id.imageButton6);

ib7 = (ImageButton) findViewById(R.id.imageButton7);

ib8 = (ImageButton) findViewById(R.id.imageButton8);

ib9 = (ImageButton) findViewById(R.id.imageButton9);

ib10 = (ImageButton) findViewById(R.id.imageButton10);

ib11 = (ImageButton) findViewById(R.id.imageButton11);

ib12 = (ImageButton) findViewById(R.id.imageButton12);

ib13 = (ImageButton) findViewById(R.id.imageButton13);

ib14 = (ImageButton) findViewById(R.id.imageButton14);

ib15 = (ImageButton) findViewById(R.id.imageButton15);

ib16 = (ImageButton) findViewById(R.id.imageButton16);

ib17 = (ImageButton) findViewById(R.id.imageButton17);

ib18 = (ImageButton) findViewById(R.id.imageButton18);

ib19 = (ImageButton) findViewById(R.id.imageButton19);

ib20 = (ImageButton) findViewById(R.id.imageButton20);

ib21 = (ImageButton) findViewById(R.id.imageButton21);

ib22 = (ImageButton) findViewById(R.id.imageButton22);

ib23 = (ImageButton) findViewById(R.id.imageButton23);

ib24 = (ImageButton) findViewById(R.id.imageButton24);

ib25 = (ImageButton) findViewById(R.id.imageButton25);

ib26 = (ImageButton) findViewById(R.id.imageButton26);

ib27 = (ImageButton) findViewById(R.id.imageButton27);

ib28 = (ImageButton) findViewById(R.id.imageButton28);

ib29 = (ImageButton) findViewById(R.id.imageButton29);

ib30 = (ImageButton) findViewById(R.id.imageButton30);

ib31 = (ImageButton) findViewById(R.id.imageButton31);

ib32 = (ImageButton) findViewById(R.id.imageButton32);

ib33 = (ImageButton) findViewById(R.id.imageButton33);

ib34 = (ImageButton) findViewById(R.id.imageButton34);

ib35 = (ImageButton) findViewById(R.id.imageButton35);

ib37 = (ImageButton) findViewById(R.id.imageButton37);

ib38 = (ImageButton) findViewById(R.id.imageButton38);

ib40 = (ImageButton) findViewById(R.id.imageButton40);

ib41 = (ImageButton) findViewById(R.id.imageButton41);

ib42 = (ImageButton) findViewById(R.id.imageButton42);

ib43 = (ImageButton) findViewById(R.id.imageButton43);

final MediaPlayer mediaPlayer1,mediaPlayer2,mediaPlayer3,mediaPlayer4,

mediaPlayer5,mediaPlayer6,mediaPlayer7,mediaPlayer8,mediaPlayer9,mediaPlayer10,

mediaPlayer11,mediaPlayer12,mediaPlayer13,mediaPlayer14,mediaPlayer15,mediaPlayer16,

mediaPlayer17,mediaPlayer18,mediaPlayer19,mediaPlayer20,

mediaPlayer21,mediaPlayer22,mediaPlayer23,mediaPlayer24,mediaPlayer25,

mediaPlayer26,mediaPlayer27,mediaPlayer28,mediaPlayer29,mediaPlayer30,

mediaPlayer32,mediaPlayer34,mediaPlayer37,mediaPlayer38,mediaPlayer40,mediaPlayer41,mediaPlayer42;

 

mediaPlayer1 = MediaPlayer.create(this, R.raw.a1);

mediaPlayer2 = MediaPlayer.create(this, R.raw.a2);

mediaPlayer3 = MediaPlayer.create(this, R.raw.a3);

mediaPlayer4 = MediaPlayer.create(this, R.raw.a4);

mediaPlayer5 = MediaPlayer.create(this, R.raw.a5);

mediaPlayer6 = MediaPlayer.create(this, R.raw.a6);

mediaPlayer7 = MediaPlayer.create(this, R.raw.a7);

mediaPlayer8 = MediaPlayer.create(this, R.raw.a8);

mediaPlayer9 = MediaPlayer.create(this, R.raw.a9);

mediaPlayer10 = MediaPlayer.create(this, R.raw.a10);

mediaPlayer11 = MediaPlayer.create(this, R.raw.a11);

mediaPlayer12 = MediaPlayer.create(this, R.raw.a12);

mediaPlayer13 = MediaPlayer.create(this, R.raw.a13);

mediaPlayer14 = MediaPlayer.create(this, R.raw.a14);

mediaPlayer15 = MediaPlayer.create(this, R.raw.a15);

mediaPlayer16 = MediaPlayer.create(this, R.raw.a16);

mediaPlayer17 = MediaPlayer.create(this, R.raw.a17);

mediaPlayer18 = MediaPlayer.create(this, R.raw.a18);

mediaPlayer19 = MediaPlayer.create(this, R.raw.a19);

mediaPlayer20 = MediaPlayer.create(this, R.raw.a20);

mediaPlayer21 = MediaPlayer.create(this, R.raw.a21);

mediaPlayer22 = MediaPlayer.create(this, R.raw.a22);

mediaPlayer23 = MediaPlayer.create(this, R.raw.a23);

mediaPlayer24 = MediaPlayer.create(this, R.raw.a24);

mediaPlayer25 = MediaPlayer.create(this, R.raw.a25);

mediaPlayer26 = MediaPlayer.create(this, R.raw.a26);

mediaPlayer27 = MediaPlayer.create(this, R.raw.a27);

mediaPlayer28 = MediaPlayer.create(this, R.raw.a28);

mediaPlayer29 = MediaPlayer.create(this, R.raw.a29);

mediaPlayer30 = MediaPlayer.create(this, R.raw.a30);

// mediaPlayer31 = MediaPlayer.create(this, R.raw.a8);

mediaPlayer32 = MediaPlayer.create(this, R.raw.a32);

//mediaPlayer33 = MediaPlayer.create(this, R.raw.a8);

mediaPlayer34 = MediaPlayer.create(this, R.raw.a34);

// mediaPlayer35 = MediaPlayer.create(this, R.raw.a8);

mediaPlayer37 = MediaPlayer.create(this, R.raw.a37);

mediaPlayer38 = MediaPlayer.create(this, R.raw.a38);

mediaPlayer40 = MediaPlayer.create(this, R.raw.a40);

mediaPlayer41 = MediaPlayer.create(this, R.raw.a41);

mediaPlayer42 = MediaPlayer.create(this, R.raw.a42);

OnClickListener oclIB = new OnClickListener(){

public void onClick(View v){

switch (v.getId()){

case R.id.imageButton1:

mediaPlayer1.start();

Toast toast = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView = (LinearLayout) toast.getView();

ImageView img= new ImageView(getApplicationContext());

img.setImageResource(R.drawable.akku);

toastView.addView(img, 0);

toast.show();

break;

case R.id.imageButton2:

mediaPlayer2.start();

Toast toast2 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast2.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView2 = (LinearLayout) toast2.getView();

ImageView img2= new ImageView(getApplicationContext());

img2.setImageResource(R.drawable.atesh);

toastView2.addView(img2, 0);

toast2.show();

break;

case R.id.imageButton3:

mediaPlayer3.start();

break;

case R.id.imageButton4:

mediaPlayer4.start();

Toast toast4 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast4.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView4 = (LinearLayout) toast4.getView();

ImageView img4= new ImageView(getApplicationContext());

img4.setImageResource(R.drawable.velosiped);

toastView4.addView(img4, 0);

toast4.show();

break;

case R.id.imageButton5:

mediaPlayer5.start();

Toast toast5 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast5.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView5 = (LinearLayout) toast5.getView();

ImageView img5= new ImageView(getApplicationContext());

img5.setImageResource(R.drawable.gitara);

toastView5.addView(img5, 0);

toast5.show();

break;

case R.id.imageButton6:

mediaPlayer6.start();

Toast toast6 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast6.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView6 = (LinearLayout) toast6.getView();

ImageView img6= new ImageView(getApplicationContext());

img6.setImageResource(R.drawable.garysh);

toastView6.addView(img6, 0);

toast6.show();

break;

case R.id.imageButton7:

.start();

Toast toast7 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast7.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView7 = (LinearLayout) toast7.getView();

ImageView img7= new ImageView(getApplicationContext());

img7.setImageResource(R.drawable.dombyra);

toastView7.addView(img7, 0);

toast7.show();

break;

case R.id.imageButton8:

mediaPlayer8.start();

Toast toast8 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast8.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView8 = (LinearLayout) toast8.getView();

ImageView img8= new ImageView(getApplicationContext());

img8.setImageResource(R.drawable.esek);

toastView8.addView(img8, 0);

toast8.show();

break;

case R.id.imageButton9:

mediaPlayer9.start();

break;

case R.id.imageButton10:

mediaPlayer10.start();

Toast toast10 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast10.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView10 = (LinearLayout) toast10.getView();

ImageView img10 = new ImageView(getApplicationContext());

img10.setImageResource(R.drawable.zhip);

toastView10.addView(img10, 0);

toast10.show();

break;

case R.id.imageButton11:

mediaPlayer11.start();

Toast toast11 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast11.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView11 = (LinearLayout) toast11.getView();

ImageView img11 = new ImageView(getApplicationContext());

img11.setImageResource(R.drawable.zenbirek);

toastView11.addView(img11, 0);

toast11.show();

break;

case R.id.imageButton12:

mediaPlayer12.start();

Toast toast12 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast12.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView12 = (LinearLayout) toast12.getView();

ImageView img12= new ImageView(getApplicationContext());

img12.setImageResource(R.drawable.ine);

toastView12.addView(img12, 0);

toast12.show();

break;

case R.id.imageButton13:

mediaPlayer13.start();

break;

case R.id.imageButton14:

mediaPlayer14.start();

Toast toast14 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast14.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView14 = (LinearLayout) toast14.getView();

ImageView img14 = new ImageView(getApplicationContext());

img14.setImageResource(R.drawable.kun);

toastView14.addView(img14, 0);

toast14.show();

break;

case R.id.imageButton15:

mediaPlayer15.start();

Toast toast15 = Toast.makeText(getApplicationContext()," ",

Toast.LENGTH_LONG);

toast15.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView15 = (LinearLayout) toast15.getView();

ImageView img15 = new ImageView(getApplicationContext());

img15.setImageResource(R.drawable.karlygash);

toastView15.addView(img15, 0);

toast15.show();

break;

case R.id.imageButton16:

mediaPlayer16.start();

Toast toast16 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast16.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView16 = (LinearLayout) toast16.getView();

ImageView img16 = new ImageView(getApplicationContext());

img16.setImageResource(R.drawable.lak);

toastView16.addView(img16, 0);

toast16.show();

break;

case R.id.imageButton17:

mediaPlayer17.start();

Toast toast17 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast17.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView17 = (LinearLayout) toast17.getView();

ImageView img17 = new ImageView(getApplicationContext());

img17.setImageResource(R.drawable.mektep);

toastView17.addView(img17, 0);

toast17.show();

break;

case R.id.imageButton18:

mediaPlayer18.start();

Toast toast18 = Toast.makeText(getApplicationContext(), " ",

Toast.LENGTH_LONG);

toast18.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView18 = (LinearLayout) toast18.getView();

ImageView img18 = new ImageView(getApplicationContext());

img18.setImageResource(R.drawable.nan);

toastView18.addView(img18, 0);

toast18.show();

break;

case R.id.imageButton19:mediaPlayer19.start();Toast toast19 = Toast.makeText(getApplicationContext(),

Toast.LENGTH_LONG);

toast19.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView19 = (LinearLayout) toast19.getView();

ImageView img19 = new ImageView(getApplicationContext());

img19.setImageResource(R.drawable.shanyrak);

toastView19.addView(img19, 0);

toast19.show();

break;

case R.id.imageButton20:

mediaPlayer20.start();

Toast toast20 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast20.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView20 = (LinearLayout) toast20.getView();

ImageView img20 = new ImageView(getApplicationContext());

mg20.setImageResource(R.drawable.oryndyk)\

toast20.show();

break;

case R.id.imageButton21:

mediaPlayer21.start();

Toast toast21 = Toast.makeText(getApplicationContext(),

Toast.LENGTH_LONG);

toast21.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView21 = (LinearLayout) toast21.getView();

ImageView img21 = new ImageView(getApplicationContext());

img21.setImageResource(R.drawable.ormekshi);

toastView21.addView(img21, 0);

toast21.show();

break;

case R.id.imageButton22:

mediaPlayer22.start();

Toast toast22 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast22.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView22 = (LinearLayout) toast22.getView();

ImageView img22 = new ImageView(getApplicationContext());

img22.setImageResource(R.drawable.pima);

toastView22.addView(img22, 0);

toast22.show();

break;

case R.id.imageButton23:

mediaPlayer23.start();

Toast toast23 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast23.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView23 = (LinearLayout) toast23.getView();

ImageView img23 = new ImageView(getApplicationContext());

toastView23.addView(img23, 0);

toast23.show();

break;

case R.id.imageButton24:

mediaPlayer24.start();

Toast toast24 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

LinearLayout toastView24 = (LinearLayout) toast24.getView();

ImageView img24 = new ImageView(getApplicationContext());

img24.setImageResource(R.drawable.siyr);

toastView24.addView(img24, 0);

toast24.show();

break;

case R.id.imageButton25:

mediaPlayer25.start();

Toast toast25 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast25.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView25 = (LinearLayout) toast25.getView();

ImageView img25 = new ImageView(getApplicationContext());

img25.setImageResource(R.drawable.tulki);

toastView25.addView(img25, 0);

toast25.show();

break;

case R.id.imageButton26:

mediaPlayer26.start();

Toast toast26 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast26.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView26 = (LinearLayout) toast26.getView();

ImageView img26 = new ImageView(getApplicationContext());

img26.setImageResource(R.drawable.uyk);

toastView26.addView(img26, 0);

toast26.show();

break;

case R.id.imageButton27:

mediaPlayer27.start();

Toast toast27 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast27.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView27 = (LinearLayout) toast27.getView();

ImageView img27 = new ImageView(getApplicationContext());

img27.setImageResource(R.drawable.ushak);

toastView27.addView(img27, 0);

toast27.show();

break;

case R.id.imageButton28

Toast toast28 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast28.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView28 = (LinearLayout) toast28.getView();

ImageView img28 = new ImageView(getApplicationContext());

img28.setImageResource(R.drawable.uki);

toastView28.addView(img28, 0);

toast28.show();

break;

case R.id.imageButton29:

mediaPlayer29.start();

Toast toast29 = Toast.makeText(getApplicationContext(),

" ", toast29.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView29 = (LinearLayout) toast29.getView();

ImageView img29 = new ImageView(getApplicationContext());

img29.setImageResource(R.drawable.fotoaparat);

toastView29.addView(img29, 0);

toast29.show();

break;

case R.id.imageButton30:

mediaPlayer30.start();

Toast toast30 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast30.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView30 = (LinearLayout) toast30.getView();

ImageView img30 = new ImageView(getApplicationContext());

img30.setImageResource(R.drawable.hat);

toastView30.addView(img30, 0);

toast30.show();

break;

case R.id.imageButton31:

//mediaPlayer31.start();

break;

case R.id.imageButton32:

mediaPlayer32.start();

Toast toast32 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast32.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView32 = (LinearLayout) toast32.getView();

ImageView img32 = new ImageView(getApplicationContext());

img32.setImageResource(R.drawable.cirkul);

toast32.show();

break;

case R.id.imageButton33:

break;

case R.id.imageButton34:

mediaPlayer34.start();

Toast toast34 = Toast.makeText(getApplicationContext(), "

toast34.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView34 = (LinearLayout) toast34.getView();

ImageView img34 = new ImageView(getApplicationContext());

img34.setImageResource(R.drawable.shagala);

toastView34.addView(img34, 0);

toast34.show();

break;

case R.id.imageButton35:

//mediaPlayer35.start();

break;

case R.id.imageButton37:

mediaPlayer37.start();

Toast toast37 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast37.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView37 = (LinearLayout) toast37.getView();

ImageView img37 = new ImageView(getApplicationContext());

img37.setImageResource(R.drawable.ydys);

toastView37.addView(img37, 0);

toast37.show();

break;

case R.id.imageButton38:

mediaPlayer38.start();

Toast toast38 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast38.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView38 = (LinearLayout) toast38.getView();

ImageView img38 = new ImageView(getApplicationContext());

img38.setImageResource(R.drawable.irimshik);

toastView38.addView(img38, 0);

toast38.show();

break;

case R.id.imageButton40:

mediaPlayer40.start();

Toast toast40 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast40.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView40 = (LinearLayout) toast40.getView();

ImageView img40 = new ImageView(getApplicationContext());

img40.setImageResource(R.drawable.ekskavator);

toastView40.addView(img40, 0);

toast40.show();

break;

case R.id.imageButton41:

mediaPlayer41.start();

Toast toast41 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

toast41.setGravity(Gravity.CENTER, 0, 0);

LinearLayout toastView41 = (LinearLayout) toast41.getView();

ImageView img41 = new ImageView(getApplicationContext());img41.setImageResource(R.drawable.oiu);toastView41.addView(img41, 0);

toast41.show();

break;

case R.id.imageButton42:

mediaPlayer42.start();

Toast toast42 = Toast.makeText(getApplicationContext(),

" ",

Toast.LENGTH_LONG);

LinearLayout toastView42 = (LinearLayout) toast42.getView();

ImageView img42 = new ImageView(getApplicationContext());

img42.setImageResource(R.drawable.ayaz_ata);

toastView42.addView(img42, 0);

toast42.show();

break;

case R.id.imageButton43:

Intent intent1 = new Intent(MainActivity.this,activity_2.class);

startActivity(intent1);

break;

}

}

};

 

ib1.setOnClickListener(oclIB);

ib2.setOnClickListener(oclIB);

ib3.setOnClickListener(oclIB);

ib4.setOnClickListener(oclIB);

ib5.setOnClickListener(oclIB);

ib6.setOnClickListener(oclIB);

ib7.setOnClickListener(oclIB);

ib8.setOnClickListener(oclIB);

ib9.setOnClickListener(oclIB);

ib10.setOnClickListener(oclIB);

ib11.setOnClickListener(oclIB);

ib12.setOnClickListener(oclIB);

ib13.setOnClickListener(oclIB);

ib14.setOnClickListener(oclIB);

ib17.setOnClickListener(oclIB);

ib18.setOnClickListener(oclIB);

ib19.setOnClickListener(oclIB);

ib20.setOnClickListener(oclIB);

ib21.setOnClickListener(oclIB);

ib22.setOnClickListener(oclIB);

ib23.setOnClickListener(oclIB);

ib24.setOnClickListener(oclIB);

ib25.setOnClickListener(oclIB);

ib26.setOnClickListener(oclIB);

ib27.setOnClickListener(oclIB);

ib28.setOnClickListener(oclIB);

ib29.setOnClickListener(oclIB);

ib30.setOnClickListener(oclIB);

// ib31.setOnClickListener(oclIB);

ib32.setOnClickListener(oclIB);

ib33.setOnClickListener(oclIB);

ib34.setOnClickListener(oclIB);

// ib35.setOnClickListener(oclIB);

ib37.setOnClickListener(oclIB);

ib38.setOnClickListener(oclIB);

ib40.setOnClickListener(oclIB);

ib41.setOnClickListener(oclIB);

ib42.setOnClickListener(oclIB);

ib43.setOnClickListener(oclIB);

}

}


Дата добавления: 2015-09-04; просмотров: 87 | Нарушение авторских прав


<== предыдущая страница | следующая страница ==>
Орытынды| Милиционер

mybiblioteka.su - 2015-2024 год. (0.122 сек.)