Passing Bitmap to another activity

Passing Bitmap to another activity

This example explains how you can pass a bitmap from one activity to another. Algorithm: 1.) Create a new project by File-> New -> Android Project name it PassBitmapToActivity. 2.) Create and write following into AndroidReceivedBitmap.java: package com.example.passbitmaptoactivity; import...
0
Launch Selected Activity from ResolveInfo

Launch Selected Activity from ResolveInfo

Last example shows how to get details via resolveInfo, In this example we will explain how we can start activity specified in intent. Algorithm: 1.) Create a new project by File-> New -> Android Project name it ActivityFromResolveInfo. 2.) Run for output. Steps: 1.) Create a project named ActivityFromResolveInfo...
0
Launch activity by using ResolveInfo

Launch activity by using ResolveInfo

Last example shows how to get details via resolveInfo, In this example we will explain how we can start activity specified in intent. Algorithm: 1.) Create a new project by File-> New -> Android Project name it ActivityFromResolveInfo. 2.) Run for output. Steps: 1.) Create a project named ActivityFromResolveInfo...
0
How to implement Callback method

How to implement Callback method

This example shows how to implement callback method in android. Algorithm: 1.) Create a new project by File-> New -> Android Project name it CallbackImplementation. 2.) Create and write following into scr/SubClass.java: package com.example.callbackimplementation; public class SubClass { ...
0
Get Activity details form ResolveInfo

Get Activity details form ResolveInfo

This example shows how we can get details of the application. The example demonstrates how to get label, icon, name, packageName and className. Algorithm: 1.) Create a new project by File-> New -> Android Project name it DetailsViaResolveInfo. 2.) Run for output. Steps: 1.) Create a project named...
0
How to get InstalledActivityList

How to get InstalledActivityList

This example shows how we can list all activities that can be performed for the given intent. Algorithm: 1.) Create a new project by File-> New -> Android Project name it InstalledActivityList. 2.) Run for output. Steps: 1.) Create a project named InstalledActivityList and set the information...
0
Device Height and Width via GlobalLayoutListner

Device Height and Width via GlobalLayoutListner

To get dimension of any View, you can call its getWidth() and getHeight() methoda. But it’s not valid when its has not been laid out yet, such as in onCreate(). In order to read dimension when the layout ready, you can implement your OnGlobalLayoutListener. This example shows how to register global...
0
Get device orientation from gravity sensor

Get device orientation from gravity sensor

This example shows how to detect device orientation, face-up/face-down, base on gravity sensor data. Algorithm: 1.) Create a new project by File-> New -> Android Project name it GetDeviceOrientation. 2.) Write following into main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
0
Get Gravity Sensor Details

Get Gravity Sensor Details

This example shows how you to list installed gravity sensor. Algorithm: 1.) Create a new project by File-> New -> Android Project name it GravitySensorDetails. 2.) Run for output. Steps: 1.) Create a project named GravitySensorDetails and set the information as stated in the image. Build Target:...
0
Decode “time” and “ele” from GPX file

Decode “time” and “ele” from GPX file

This example shows how you can decode “time” and “ele” from a GPX file in addition to update the previous GPX examples further. Algorithm: 1.) Create a new project by File-> New -> Android Project name it GPXDecodingWithTime. 2.) Write following into main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
0
Proudly designed by Theme Junkie.