AppyBuilder
  • AppyBuilder Introduction
  • Release Notes
  • Terms of Service
  • AppyBuilder Editors
    • Design Editor
    • Blocks Editor
    • Components
  • Live Testing
  • Components
    • Reference
      • User Interface
        • Button
        • Checkbox
        • Chronometer
        • DatePicker
        • FloatingButton
        • GalleryViewer
        • GridView
        • Image
        • Label
        • ListPicker
        • ListPickerCustom
        • ListView
        • ListViewCustom
        • Notifier
        • PasswordTextBox
        • ProgressBar
        • RatingBar
        • Slider
        • Spinner
        • Switch
        • TextBox
        • Toggler
        • WebViewer
        • TimePicker
        • LinedTextBox
      • Effects
        • Decoration
        • Sidebar
        • Snackbar
      • Layout
        • Horizontal Arrangement
        • Horizontal Scroll Arrangement
        • Table Arrangement
        • Vertical Arrangement
        • Vertical Scroll Arrangement
      • Drawing and Animation
        • Ball
        • Canvas
        • Image Sprite
      • Maps
        • Circle
        • FeatureCollection
        • LineString
        • Map
        • Marker
        • Polygon
        • Rectangle
      • Media
        • Camcorder
        • Camera
        • ImagePicker
        • Player
        • Sound
        • SoundRecorder
        • SpeechRecognizer
        • TextToSpeech
        • VideoPlayer
        • YandexTranslate
      • Connectivity
        • ActivityStarter
        • BluetoothClient
        • NetworkManager
        • Web
        • WiFiManager
      • LegoMindStorms
        • Ev3ColorSensor
        • Ev3Commands
        • Ev3GyroSensor
        • Ev3Motors
        • Ev3Sound
        • Ev3TouchSensor
        • Ev3UI
        • Ev3UltraSonicSensor
        • NxtDirectCommands
        • NxtDrive
        • NxtLightSensor
        • NxtTouchSensor
        • Ev3ColorSensor
      • Storage
        • Airtable
        • File
        • FirebaseDB
        • FTPManager
        • FusionTableControl
        • TinyDB
        • TinyWebDB
      • Sensors
        • Accelerometersensor
        • BarcodeScanner
        • BatteryManager
        • Clock
        • Gyroscopesensor
        • LightSensor
        • LocationSensor
        • MagneticFieldSensor
        • MemoryInfo
        • NearField
        • OrientationSensor
        • Pedometer
        • ProximitySensor
        • PressureSensor
        • SoundSensor
        • TemperatureSensor
        • ProximitySensor
      • Social
        • ContactPicker
        • EmailPicker
        • PhoneCall
        • PhoneNumberPicker
        • Sharing
        • Texting
        • Twitter
      • Experimental
        • CloudDB
      • Visualization
        • GoogleMap
        • XYChart
      • Advanced
        • KitchenSink
        • OneSignalPush
        • PushNotification
        • SQLite
      • Monetize
        • AdAmazon
        • AdAmazonInterstitial
        • AdMob
        • AdMobInterstitial
        • AdMobRewardedVideo
        • InAppBilling
        • MMediaInterstitial
  • Tutorials
    • Openstreet Map
    • OneSignalPush
    • Creating E-book
    • Basic
      • Simulating Progress Bar
      • Creating Splash Screen
      • Adding Privacy Policy
      • Package Name
      • Beginner - Talk to Me app
      • Beginner Tutorial
    • Animation
      • Animation & Collision Part I
      • Animation & Collision Part II
    • Monetization
      • AdMob Banner
      • AdMob Interstitial
      • AdMob Rewarded Video
      • Increasing Monetization Revenue
    • Using RadioButtons
    • keystore
    • Firebase - Advanced
  • Extensions
  • Concept Cards
    • Bouncing Sprites
    • Sprite Timed Movement
    • Sprite Movement on Timer
    • Adding Sound
    • Speech Recognition
    • Random Numbers
    • Fling Movement
    • Movement with Sensors
    • Drawing on Canvas
    • Multiple Screens
    • Creating Custom Colors
    • Movement with Buttons
    • Shaking Phone
    • Collision Detection
    • Dragging A Sprite
  • Advanced
    • Source File Structure
  • Code Editor
Powered by GitBook
On this page
  • Properties
  • Action
  • ActivityClass
  • ActivityPackage
  • DataType
  • DataUri
  • ExtraKey
  • ExtraValue
  • Extras
  • Result
  • ResultName
  • ResultType
  • ResultUri
  • Events
  • ActivityCanceled
  • AfterActivity
  • Methods
  • ResolveActivity
  • StartActivity
  1. Components
  2. Reference
  3. Connectivity

ActivityStarter

A component that can launch an activity using the StartActivity method.

Activities that can be launched include:

  • Starting another AppyBuilder app. To do so, first find out the class of the other application by downloading the source code and using a file explorer or unzip utility to find a file named "youngandroidproject/project.properties".

    The first line of the file will start with "main=" and be followed by the class name; for example, main=com.appybuilder.pmathijssen.MaterialDesignColorPalette.Screen1.

    To make your ActivityStarter launch this application, set the following properties:

    • ActivityPackage to the class name, dropping the last component (for example, com.gmail.Bitdiddle.Ben.HelloPurr)

    • ActivityClass to the entire class name (for example, com.gmail.Bitdiddle.Ben.HelloPurr.Screen1)

  • Starting the camera application by setting the following properties:

    • Action: android.intent.action.MAIN

    • ActivityPackage: com.android.camera

    • ActivityClass: com.android.camera.Camera

  • Performing web search. Assuming the term you want to search for is "vampire" (feel free to substitute your own choice), set the properties to:

    • Action: android.intent.action.WEB_SEARCH

    • ExtraKey: query

    • ExtraValue: vampire

    • ActivityPackage: com.google.android.providers.enhancedgooglesearch

    • ActivityClass: com.google.android.providers.enhancedgooglesearch.Launcher

  • Opening a browser to a specified web page. Assuming the page you want to go to is "www.facebook.com" (feel free to substitute your own choice), set the properties to:

    • Action: android.intent.action.VIEW

    • DataUri: http://www.facebook.com

Properties

Action

ActivityClass

ActivityPackage

DataType

DataUri

ExtraKey

Returns the extra key that will be passed to the activity. DEPRECATED: New code should use Extras property instead.

ExtraValue

Returns the extra value that will be passed to the activity. DEPRECATED: New code should use Extras property instead.

Extras

Result

ResultName

ResultType

ResultUri

Events

ActivityCanceled

Event raised if this ActivityStarter returns because the activity was canceled.

AfterActivity

Parameter

Type

result

text

Event raised after this ActivityStarter returns.

Methods

ResolveActivity

Returns: (text)

Returns the name of the activity that corresponds to this ActivityStarter, or an empty string if no corresponding activity can be found.

StartActivity

Start the activity corresponding to this ActivityStarter.

PreviousConnectivityNextBluetoothClient

Last updated 7 years ago