Sketchware Docs (Unofficial)
  • Introduction (Under Construction)
  • Official Docs
  • Introduction to Sketchware
    • Adding your app
    • Designing and Programming your app
  • Widgets and Layouts
    • Concept
    • Properties
    • List of Widgets and Layouts
  • Events
  • Blocks
    • Variable
    • List
    • Control
    • Operator
    • Math
    • File
    • View
    • Component
    • More Block
  • Components
    • About Components
    • Intent
    • SharedPreference
    • Calendar
    • Vibrator
    • Timer
    • Dialog
  • Configuration
  • AdMob Guide
  • Community
Powered by GitBook
On this page
  • Examples
  • Basic Examples
  • Blocks
  • setData
  • setScreen
  • putExtra
  • setFlags
  • startActivity

Was this helpful?

  1. Components

Intent

A component that is used to navigate between activities.

PreviousAbout ComponentsNextSharedPreference

Last updated 4 years ago

Was this helpful?

Examples

Basic Examples

Start a Activity

This is not closing the activity that was started previously.

Start a Activity and close the previous one

This will close the Activity that was started previously.

Blocks

setData

Used to point to the location of a data object (like a file for example), while putExtra adds simple data types (such as an SMS text string for example).

setScreen

Sets the screen to navigate to.

putExtra

Pass data to another Activity. After you pass the data, you retrieve the data using the Activity getExtra key [] block.

setFlags

Change the behavior of an activity.

  1. SINGLE_TOP — Organizes the views in a way that if the view you’re about to transition to was already called before, it would bring that view to the top rather than putting another copy on the top.

  2. CLEAR_TOP - Clears all the previous views.

startActivity

Start a new activity.

setData
setScreen
putExtra
setFlags
startActivity
A basic activity starting.
Starts a Activity then closes the previous one