Android example to show webview

The following example shows that how to use Android WebView for browsing websites using android apps. 1. Copy the following code and paste into “AndroidManifest.xml” <?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”app.mitindia.com.mywebapp” > <uses-permission android:name=”android.permission.INTERNET” /> <application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:theme=”@style/AppTheme” > <activity android:name=”.MainActivity” android:label=”@string/app_name” > <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> </intent-filter> </activity> android:debuggable=”true” […]

Share

Android example to show webview Read More »

Android Example to show Popup Menu

In this tutorials you’ll see how “PopupMenu” app is created in Android. Have a look! 1. First of all copy the following code into “activity_main.xml” file <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:paddingLeft=”@dimen/activity_horizontal_margin” android:paddingRight=”@dimen/activity_horizontal_margin” android:paddingTop=”@dimen/activity_vertical_margin” android:paddingBottom=”@dimen/activity_vertical_margin” tools:context=”.MainActivity”> <TextView android:text=”@string/hello_world” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_alignParentTop=”true” android:layout_alignRight=”@+id/button1″ android:layout_alignEnd=”@+id/button1″ android:textSize=”20dp” android:textColor=”#ff00ff”/> <Button android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:id=”@+id/button1″ android:text=”Show popup” android:layout_centerVertical=”true” android:layout_centerHorizontal=”true” /> </RelativeLayout>

Share

Android Example to show Popup Menu Read More »

Android Example to show Context Menu

Android Context menu example Following example shows that how to create context menu application using Android. Follow the below steps to create. a) copy the following code into activity_main.xml” file <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:paddingLeft=”@dimen/activity_horizontal_margin” android:paddingRight=”@dimen/activity_horizontal_margin” android:paddingTop=”@dimen/activity_vertical_margin” android:paddingBottom=”@dimen/activity_vertical_margin” tools:context=”.MainActivity”> <TextView android:text=”@string/hello_world” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:id=”@+id/textView” android:textColor=”#005599″ android:textAlignment=”center” android:textSize=”16pt” /> <ListView android:layout_width=”match_parent” android:layout_height=”wrap_content” android:id=”@+id/listView1″ android:layout_alignParentTop=”true” android:layout_marginTop=”53dp”

Share

Android Example to show Context Menu Read More »

Android Simple Menu Application

Menu application using Android Following example shows that how to create menu application using Android. Follow the below steps to create. a) copy the following code to “activity_main.xml” <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:paddingLeft=”@dimen/activity_horizontal_margin” android:paddingRight=”@dimen/activity_horizontal_margin” android:paddingTop=”@dimen/activity_vertical_margin” android:paddingBottom=”@dimen/activity_vertical_margin” tools:context=”.MainActivity”> <TextView android:text=”@string/hello_world” android:layout_width=”wrap_content” android:layout_height=”wrap_content” /> <ImageView android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:src=”@drawable/save” android:layout_centerInParent=”true”/> </RelativeLayout> b) Now copy the follwoing code

Share

Android Simple Menu Application Read More »

Android program SUM of 2 Numbers

Addition of 2 numbers Step 1. in activity_main.xml file copy the following code. <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:paddingLeft=”@dimen/activity_horizontal_margin” android:paddingRight=”@dimen/activity_horizontal_margin” android:paddingTop=”@dimen/activity_vertical_margin” android:paddingBottom=”@dimen/activity_vertical_margin” tools:context=”.MainActivity”> <TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”Enter First number” android:id=”@+id/t1″ /> <EditText android:layout_width=”103dp” android:layout_height=”wrap_content” android:id=”@+id/n1″ android:layout_alignParentTop=”true” android:layout_centerHorizontal=”true” /> <TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”Enter second number” android:id=”@+id/t2″ android:layout_gravity=”center_vertical” android:layout_below=”@+id/n1″ android:layout_toStartOf=”@+id/n1″ android:layout_marginTop=”39dp” /> <EditText android:layout_width=”92dp” android:layout_height=”wrap_content” android:id=”@+id/n2″ android:layout_gravity=”center_vertical”

Share

Android program SUM of 2 Numbers Read More »

Macros in Excel

Excel Macros A macro can be defined as the recording of a series of tasks. It’s the simplest form of automation – show a software program the steps you follow to get something done, and the software will follow along. When used right, macros can save you hours by automating simple, repetitive tasks. A macro

Share

Macros in Excel Read More »

Creating an Excel form with Macros

This tutorial teaches you how to create an excel forms with Macros with step-by-step approaches. Step1 :  Open MS Excel Application and then click on “Developer” Tab  then click on “Visual Basic” option as shown in following screen shots. Step2: Click on “Insert” menu then select “UserForm” as shown in below image Step3: Drag and

Share

Creating an Excel form with Macros Read More »

Pivot Table using Excel

Pivot table is used to sort, count or give the average of the data stored in a spreadsheet, Pivot tables are also useful for converting rows to columns etc. Here are the steps to create a pivot table. Step 1:  Start MS Excel Application Step 2: Enter some data as following screen shot. Step 3:

Share

Pivot Table using Excel Read More »

COBOL Programs

1. COBOL program on Arithmetic Operation *PROGRAM TO PERFRM ARITHMATIC OPERATIONS USING COMPUTE VERB. IDENTIFICATION DIVISION. PROGRAM-ID. AOP. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 A PIC 9(4). 01 B PIC 9(4). 01 SUM PIC 9(4). 01 SUB PIC 9(4). 01 MUL PIC 9(4). 01 DIV PIC 9(4).99. PROCEDURE DIVISION. START-PARA. DISPLAY “ENTER THE VALUES

Share

COBOL Programs Read More »

SPEED UP YOUR PC

To speed up your windows XP/7/8/8.1/8.2 PC, Just follow the below steps to make your PC running faster and reliable. 1. Defragment your hard drive: After accessing and storing lots of files on your computer hard drive it is common that files or folders get scattered in memory. Click->Start->Accessories->System tools->Disk Defragmenter [follow below image] 2. Uninstall

Share

SPEED UP YOUR PC Read More »

Clear Excel Sheet using VBA

To clear the entered data in the current sheet of MS-Excel application follow the below simple steps. 1. Click on ” Developer” tab in MS-Excel as shown in below image. 2. Click on “insert” and select “command Button”, follow image. 3. Drag the button on the sheet and right click on it, select properties->Caption->Enter text

Share

Clear Excel Sheet using VBA Read More »

Share
Scroll to Top