Category: Android

Android Hello World 0

Android Hello World

Android Hello World Example Top Android Hello World Example Android Hello World Android Programs… main.xml <?xml version=”1.0″ encoding=”utf-8″?> < LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”wrap_content” android:layout_height=”fill_parent” android:orientation=”vertical” > <TextView android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”@string/hello” /> <Button android:id=”@+id/button1″ android:layout_width=”318dp” android:layout_height=”wrap_content”...

How to start an Activity on MenuItem click? 0

How to start an Activity on MenuItem click?

You need to have to override onOptionsItemSelected method in your Activity, which is called when user clicks on the item in Options menu. @Override public boolean onOptionsItemSelected(MenuItem menuitem) { switch(menuitem.getItemId()) { case R.id.menu_item1: Intent...

How to start an Activity on button click? 0

How to start an Activity on button click?

Please try as below Intent myIntent1 = new Intent(CurrentActivity.this, NextActivity.class); myIntent1.putExtra(“key”, value); //Optional parameters CurrentActivity.this.startActivity(myIntent1); Extras are retrieved on the other side via: @Override protected void onCreate(Bundle savedInstanceState1) { Intent intent = getIntent(); String...

How to Toggle Screen of Android Emulator? 0

How to Toggle Screen of Android Emulator?

If You want to toggle android Emulator just press Ctrl+F12  will convert from horizontal to Vertical and again press will return to vertical to Horizontal..

Android – as Mobile Application Solution :: Hello World Example 0

Android – as Mobile Application Solution :: Hello World Example

Android Hello World Example Top Android Hello World Example Android Hello World Android Programs… main.xml <?xml version=”1.0″ encoding=”utf-8″?> < LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”wrap_content” android:layout_height=”fill_parent” android:orientation=”vertical” > <TextView android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”@string/hello” /> <Button android:id=”@+id/button1″ android:layout_width=”318dp” android:layout_height=”wrap_content”...

Android – as Mobile Application Solution :: Setup 0

Android – as Mobile Application Solution :: Setup

Android Setup Top Android Setup Android Studio – The Official IDE for Android Android Studio Download Android sdk and IDE from below link and do setup. Download Android SDK

Android – as Mobile Application Solution :: Introduction 0

Android – as Mobile Application Solution :: Introduction

Introduction to Android Android Versions Top Introduction to Android Android provides a rich application framework that allows you to build innovative apps and games for mobile devices in a Java language environment. The documents...