ANDROID

21 posts

Activision Blizzard’s Secret Plan to Launch Its Own Mobile Game Store for Android Revealed in Epic vs Google Trial

Activision Blizzard’s Secret Plan to Launch Its Own Mobile Game Store for Android Revealed in Epic vs Google Trial

Activision Blizzard, the gaming giant behind popular titles like Call of Duty, World of Warcraft, and Candy Crush, had a secret project to create its own mobile game store for Android devices, according to documents revealed in the ongoing Epic vs Google trial. The project, codenamed “Project Boston”, was pitched […]

Android Button onclick

Android Button onclick | Event Handler

ANDROID CODE FOR FRESHERS Android Button onclick | Event Handler    Java Code(EventAct ) import android.app.Activity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; public class EventAct extends Activity { LinearLayout l1; Button b1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_event); l1=(LinearLayout)findViewById(R.id.l1); b1=(Button)findViewById(R.id.b1); b1.setOnLongClickListener(new View.OnLongClickListener() […]

Android Drawable shape resource code download

Android Program – Drawable shape resource

ANDROID FOR FRESHERS   Android Program of Drawable shape resource   Java Code(ShapeAct) import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class ShapeAct extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_shape); } } Layout XML Code(activity_shape) <?xml version=”1.0″ encoding=”utf-8″?> <ScrollView android:layout_height=”match_parent” android:layout_width=”match_parent” xmlns:android=”http://schemas.android.com/apk/res/android” > <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” […]

android email snippet activity code download

Android Program – Email Activity

ANDROID FOR FRESHER Android Program Email Activity   Java Code(EmailAct) import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class EmailAct extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_email); } public void email_send(View v) { Intent i = new Intent(Intent.ACTION_SEND); i.putExtra(Intent.EXTRA_TEXT,”Hello \n \n \n \n \n” + […]

Android options menu java snippet download

Android Program – Options Menu

ANDROID FOR FRESHER Android Program Options Menu   Java Code(OptionAct) import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.View; public class OptionAct extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_option); } @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater mi = getMenuInflater(); mi.inflate(R.menu.menu_example1,menu); return […]

Android notification action bar source code download

Android Program – Notification Activity

ANDROID FOR FRESHERS Android Program of Notification Activity   Java Code(NotificationAct) import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import android.content.Intent; import android.support.v4.app.NotificationCompat; import android.os.Bundle; import android.view.View; public class NotificationAct extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_not); } public void next(View v) { Notification no=new NotificationCompat.Builder(this) .setSmallIcon(android.R.drawable.toast_frame) .setContentTitle(“Message”) […]

Android Seekbar code example

Android Seekbar Example | Source Code

Android For Freshers Android Seekbar Example Java Code(SeekAct) import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.SeekBar; import android.widget.TextView; public class SeekAct extends Activity { SeekBar sb; TextView tv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_seek); tv = (TextView)findViewById(R.id.tv1); sb = (SeekBar)findViewById(R.id.sb1); sb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { @Override public void […]