Visual basic для андроида

Mobile BASIC 4.12

Язык программирования Бейсик для Андроид.

Язык программирования — мобильный Бейсик — в программе для Андроида, позволяет вам легко писать небольшие программы непосредственно на вашем телефоне или планшете с Андроидом. Мобильный Бэйсик можно использовать для написания различных программ, включая:- индивидуальную производительность труда, бизнес, образование и специальные интересные приложения.

о Диалектная структура Бэйсик — нет номерных строк, IF THEN ELSEIF ELSE ENDING, REPEAT UNTIL, WHILE ENDWHILE и т.п.

о Строго типизированный язык с 8 типами данных: BOOLEAN, BYTE, SHORT, INTEGER, LONG, FLOAT, DOUBLE и STRING.

о массивы (простые и мульти размерности)

о Подпрограммы и функции.

о Математические функции, включая: LEFT$, RIGHT$, MID$, LEN, STR$.

о Графические средства, включая: CLS, SETCOLOR, PLOT, DRAWLINE, REPAINT, SCREENWIDTH, SCREENHEIGHT + многое другое в легких и полных версиях.

о Функции времени и даты: TIME, MILLISECONDS, SECOND, MINUTE, HOUR, DAY, MONTH, YEAR.

о Простые средства ввода\вывода (ОТКРЫТЬ, ЗАКРЫТЬ, ВСТАВИТЬ, ВЗЯТЬ)

о Всеобъемлющая встроенная справочная система.

о Более 100 простых примеров, иллюстрирующих использование каждого объекта.

1. Это бесплатная версия мобильного Бэйсика, который оптимизирован для мобильных телефонов (портретная ориентация). Если вы намереваетесь использовать его на планшетах, то вам подойдет и стандартный Бэйсик, который поддерживает портретный и альбомные ориентации.

2. Бесплатная версия мобильного BASIC ограничивается небольшими программами (4 KB) и не включает в число команд графику — в стандартной и Lite версии больше доступа.

3. Бесплатная версия мобильного BASIC не включает в себя сенсорные команды: TOUCHUP, TOUCHMOVE и TOUCHDOWN

Mobile Basic перекочевал с явы на андроид. Возможностей пока мало, в бесплатной версии вообще треть урезана (так размер скрипта ограничен 4000 знаками). В полной версии возможна работа с тачскрином, а вот сведений о работе с клавишами, изображениями и прочими мультимедия я в файле помощи не нашел. Зато в отличии от явовского бейсика появились функции ( язык приобретает таки нормальный вид), еще б ООП прикрутили.

Источник

Visual basic для андроида

Версия 8.80

  • b4x libraries: [new feature] b4x library — a new type of library
    • XUI Views: [B4X] XUI Views — Cross platform views and dialogs
    • X2 games framework: [B4X] X2 / XUI2D (Box2D) — Game engine
  • Auto-backups: https://www.b4x.com/an…re-auto-backups.100010
  • Go to the code line directly from the logs: https://www.b4x.com/an…y-from-the-logs.100090
  • Intent.SetPackage method.
  • Fix for wrong ‘dip’ scale issue that occurred in some edge cases.
  • Canvas.RemoveClip works with targetSdkVersion = 28.
  • Log correctly shows duplicate messages (relevant to Android 8+ devices).
  • Updated internal libraries: FirebaseAuth v1.06, Camera2 v1.11, XUI2D v1.02, Core v8.80 and debug libs.
  • Debugger improvements:
    • Fix for issue where resumable sub could show the wrong value for a global variable.
    • Fix for issue where the error message points to the wrong module.
  • XUI v1.90 with B4XView.EditTextHint, SetTextSizeAnimated, XUI.CreateFontAwesome and CreateMaterialIcons methods.
  • Other bug fixes and minor improvements.

Версия 8.50

    Improvements:
  • Debugger performance optimizations and bug fixes.
  • #CustomBuildAction:
    • Support in all modules.
    • Support for environment variables.
    • New «folders ready» cross platform compilation step. Useful for updating files.
  • The list of subs above the code editor was rewritten. It behaves better (doesn’t miss key inputs and always jumps to the clicked sub).
  • file:// links can be ctrl + clicked.
  • B4A Sdk Manager v3.29 included.
  • BitmapCreator v4.18
  • XUI2D v0.99
  • OkHttpUtils2 v2.70
  • The WRITE_EXTERNAL_STORAGE permission removed from the debugger.
  • Code editor jumps to the error line when there are Java compilation errors.
  • Bug fixes.

Версия 8.30

  • Resumable subs in debug mode are optimized in the same way other subs are optimized. You can see the difference in this video (https://vimeo.com/266683414)
    Starter service is never destroyed until the process is killed — if you carefully read the automatic foreground notifications tutorial then you should be aware to a significant behavioral change in Android 8+. The OS kills services while the app is in the background. In previous versions the OS never killed specific services (only the complete process). This change made it much more difficult to work with the starter service as you could no longer assume that the starter service is running.
    Starting from B4A v8.3 the starter service will never be paused until the process is killed. Internally it switches from the service context to the application context.
  • Several other important debugger optimizations.
  • Bit.ArrayCopy method. Same as ByteConverter.ArrayCopy.
  • New File methods: CopyAsync, Copy2Async, ReadBytes, WriteBytes and ListFilesAsync.
  • Support for Java 8 jars and AARs.
  • Ctrl + Click on class types and custom types.
  • Autocomplete improvements.
  • Autocomplete in CallSub methods
  • B4A Sdk Manager v3.27 — Supports Java 10.
  • Files can be added to groups directly.
  • For loops optimization (in release mode).
  • BitmapCreator v3.60 is included as an internal library.
  • xCustomListView v1.63 is included as an internal library.
  • XUI v1.70 is included as an internal library. This is a large update to XUI library with support for text measurements and other features
  • Phone.ShellAsync — Asynchronous version of Phone.Shell.
  • Bug fixes and other minor improvements

Версия 8.00

    Improvements:
  • The process of starting the app from the background was rewritten to comply with targetSdkVersion 26 requirements.
  • Push notifications and other features that cause apps to start from the background should be more reliable due to changes in the way services are started. A wake lock is automatically held when a receiver receives an intent. The wake lock is released when the service starts.
  • Automatic foreground mode: https://www.b4x.com/an…foreground-mode.90546/
  • Notification object rewritten to work with targetSdkVersion 26. In most cases you don’t need to change anything. Notification.SetInfo or Notification.SetInfo2 should be the last calls before you show the notification.
  • Notification.SetInfo / SetInfo2 accept CharSequences so it can work with CSBuilder.
  • StartServiceAt / StartServiceAtExact rewritten to work with targetSdkVersion 26 and they are now more reliable.
  • Notification.Initialize2 — Allows to set the notification channel importance level.
  • Better support for AAR libraries: jni folders (native libraries) are handled properly, assets and resources from internal jars are added to the project.
  • #AdditionalJar with ReferenceOnly — Allows referencing jars that are only used as a reference during compilation. This is required for more complex libraries such as DJI library.
  • Signing key size is explicitly set to avoid issues with newer versions of Java.
  • B4A Sdk Manager v3.25 — Bug fixes and support for Google based AVDs.
  • Screenshot tool modified to work with latest versions of Android SDK.
  • MediaPlayer.IsInitialzied method.
  • Manifest editor macros — Macros can be added to libraries or zip files. For example to set a light theme based on Android version
    • Firebase push notifications

      Custom class templates — Class templates can be added to libraries.
    • For example if you add the XUI library to your project then you will have an option to add a custom view based on XUI
    • Libraries can include multiple templates and any library can include templates

  • #SignKeyAlias attribute — Allows overriding the default signing key alias.
  • Firebase, xCustomListView and KeyValueStore (2) are internal libraries.
  • Libraries deprecation messages in the IDE:
  • Fix for a very long standing issue where the activity code could have been executed while the activity is paused which leads to a hard to reproduce NullPointerException.
  • BADoclet (tool to generate libraries XML) v1.07 — adds support for custom class templates.
  • Other bug fixes and minor improvements.

    Backward compatibility notes
  • Notification.SetInfo or SetInfo2 should be the last calls before you use the notification. Note that standard notifications created with previous versions of B4A will not work at all on Android 8+ when targetSdkVersion is 26+.
  • Adding a service, other than the Starter service, will add the WAKE_LOCK permission. This is a non-dangerous permission.
    As mentioned above a wake lock is held automatically when a service is started from the background and until Service_Start is called. You can remove this permission with:
  • Everything will still work, however the service might fail to start from the background in some cases.

Версия 7.80

  • Several important components were rewritten to provide more features and better performance:
    • Visual designer properties grid
    • Visual designer views tree
    • Modules tree (new component)
    • Files tree
  • The major improvements are:
    • Code modules can be loaded from other folders and can be easily shared between projects (including projects targeting other platforms): https://www.b4x.com/an…ups-and-folders.86587/
    • Modules and file tree support grouping
    • Modules are monitored for external changes.
    • Files tree shows the files icons and allows opening the files with external editors: https://www.b4x.com/an…xternal-editors.86592/
    • Modules, files and views can be renamed directly from the relevant tree.
    • Full support for drag and dropping files and modules, including support for dragging multiple items.
    • B4A services and activities can be shared with B4J: https://www.b4x.com/an…les-and-classes.87478/
    • New options when adding modules:
      • Copy to folder: Copies the module to the project folder (same as the current behavior).
      • Link — relative path: Adds a link to the module with a relative path. Useful when the folder is under or close to the project folder.
      • Link — absolute path: Adds a link to the module with an absolute path.
      • Deleted files are moved to the recycle bin.
      • Properties grid and views tree can be filtered.
      • Properties grid is much faster and includes new types of editors
      • B4A Sdk Manager is included in the IDE
      • Support for downloading maven resources from Google online repositories. This is an important improvement as Google no longer updates the offline repositories.
      • Java 9 is supported.
      • WebView.ZoomEnabled hides or shows the zoom controls.
      • Better error handling in CallSub calls.
      • Fix for potential race condition in AsyncStreams.
      • Better handling of edge cases where the Activity life cycle events are called multiple times.
      • CallSubDelayed doesn’t raise an error if the target sub is missing. This makes it safer to use CallSubDelayed for raising events,
      • Better support for version control. Files are only written when the contents are actually changed.
      • The modules internal attributes are sorted in lexicographical order to reduce random changes.
      • XUI library is now an internal library.
      • Debugger hover window is resizable.
      • Add New Modules / Existing modules menu items in modules tree.
      • Code editor color picker is based on the designer color picker.
      • Open file with default program in Files tree. Also works with double click.
      • Support for opening multiple files at once.
      • Better handling of locked files.
      • Manifest editor replacements are applied to resources created with CreateResource.
      • Bug fixes and other minor improvements.

Версия 7.30

  • Localizable IDE. Currently available in 21 languages.
  • Bitmap type:
    • Resize / InitializeResize / LoadBitmapResize — Similar to LoadBitampSample but better. Allow setting the image to a specific size while optionally maintaining the aspect ratio and the bitmap scale.
    • Tutorial: https://www.b4x.com/an…oadbitmapsample.82693/
      Scale property — Returns the bitmap scale.
    • Rotate / Crop methods.

  • EditText — SelectionLength and SetSelection methods.
  • SingleLine property added to Label, Button and other views that inherit from Label.
  • Ellipsize property
  • View.SetVisibleAnimated affects the alpha level and the Visible property.
  • Warnings for illegal methods in Process_Globals.
  • Async dialogs are supported in classes.
  • Compiled libraries can reference AAR libraries.
  • Icon picker — aliases added to FontAwesome icons.
  • Auto complete and auto format improvements.
  • PhoneCalls (Phone library) — READ_CALL_LOG permission removed. It was added by mistake in a previous update.
  • Canvas.AntiAlias property to enable or disable antialiasing.
  • View.SetBackgroundImage returns a BitmapDrawable object. This allows changing the Gravity to CENTER instead of the default FILL value.
  • New ResumableSub type. Makes it simpler to return values from resumable subs and to wait for resumable subs to complete.
    https://www.b4x.com/an…es-resumablesub.82670/
  • OkHttpUtils v2.60 — Job.GetBitmapResize and PATCH, HEAD and DELETE requests.
  • Improvements to the layouts loader engine. It is more flexible with the variables types and a bit faster. This feature will allow to add cross platform views types.
  • Administrator v1.10 — Adds support for owner apps. This update requires a change in the manifest editor. Instructions and copy of previous version are available here: https://www.b4x.com/an…library.19208/#content
  • Bug fixes, including an important debugger bug, and other minor improvements.

Версия 7.01

  • Resumable subs — Wait For / Sleep: https://www.b4x.com/an…for.78601/#post-498072
  • [B4X] SQL with Wait For
  • [B4X] OkHttpUtils2 with Wait For
  • Async dialogs: https://www.b4x.com/an…-dialogs-msgbox.79578/
  • Variables and subs renaming based on the Find All References feature:
    • Quick search supports replacing including replacing in all modules.
    • Icon picker — Filter field supports filtering by hex code.
    • Starter service better handles cases where the process is started by multiple intents.
    • CSBuilder.Image adds an underscore instead of space to fix an issue with multiline strings.
    • Application_Error — Fixed a compatibility issue with Android 2.2
    • PhoneCalls — READ_CALL_LOG permission added. This is a new requirement.
    • Sender is set when raising events with CallSub or CallSubDelayed from classes.
    • Debugger improvements related to deployments of large projects. It is recommended to upgrade B4A-Bridge to v2.31: https://play.google.co…re.b4a.b4abridge&hl=en
    • DoEvents is deprecated. A warning will appear when using it (see the async dialogs tutorial). Note that it is still supported, exactly as before.
    • SQL library updated to make it simpler to use with Wait For.

Версия 6.80

  • CharSequence as internal type. Allows showing rich text in many places such as: Labels, toast messages, dialogs, ListView and others.
  • CSBuilder — Simplifies the creation of rich text CharSequences: https://www.b4x.com/an…utorial.76226/#content
  • Support for MultiDex — With MultiDex enabled there is no limit to the number of methods or fields. This issue is important for large projects that reference many third party libraries. https://www.b4x.com/an…y-methods-error.76431/
  • OkHttp updated and is now based on OkHttp v3.50.
  • Many improvements to B4A-Bridge:
    • Auto discovery — Devices running B4A-Bridge are discovered automatically and are listed in the devices list with their names.
    • Logs — The logs implementation was rewritten. Logs reading with B4A-Bridge is more stable and it is also possible to read the unfiltered logs (limited to the running process).
    • #BridgeLogger attribute — When set to true, logs will be available in release mode as well as debug mode.
    • Landscape layout.
    • Download progress bar.
    • File Explorer menu shortcut.
  • Find all references (F7) finds references in layout files and CallSub methods.
  • Typeface.FONTAWESOME / MATERIALICONS constants.
  • Icon picker — Filter field and icons tool tipsCallSubUtils is included as a library.
  • Menu click event implementation changed to avoid issues with modal dialogs.
  • Release and Debug compilation symbols are supported in the manifest editor and designer script.
  • Export as zip keeps the original dates.
  • Other minor improvements and bug fixes.

Версия 6.50

  • FontAwesome and Material Icons fonts with more than 1500 icons are now integrated in the IDE;
  • The formatting happens when you paste code (can be disabled) or when clicking on Alt + F. In the later case the enclosing sub will be formatted or the selected code if the selected text is not empty.
  • Block autocomplete improved. It better handles nested blocks and also completes #If and #Region keywords.
  • Manifest editor support for #Region blocks.
  • Service can extend custom classes with the #Extends attribute. This makes it simpler to create libraries that extend services. A modified version of NotificationListener library is attached as an example.
  • View.Padding property. Sets the distances between the view’s borders and the content. It can also be set in the designer.
  • PhoneSensors.Accuracy and TimeStamp properties. Return the values of the current event.
  • OkHttp v1.02 — Fixes an issue where headers were not available when the response status code was not 2xx
  • Application.Icon property — Returns the application icon as a bitmap.
  • Jumping to a bookmark moves the bookmark to the center of the editor.
  • B4ABuilder — The output parameter supports passing the full path instead of just the APK name. Note that you need to quote the parameter like this if there is space in the path
  • Bug fixes and other minor improvements

Версия 5.50

  • Debugger improvements
  • Better handling of uncaught exceptions (Application_Error). See this tutorial:
    — Uncaught Exceptions
    — This feature allows developers to provide alternative ways to handle crashes. For example, to send the crash logs by mail
  • Material themes were added to the WYSIWYG designer
  • Panel.Elevation / SetElevationAnimated methods (and designer property) — These methods allow setting the panels elevation. This is a new feature added in Android 5. The methods will do nothing on prior versions
  • #DebuggerDisableOptimizations attribute: http://www.b4x.com/and…oad.58283/#post-366943
  • $AdditionalLibs$ and $AndroidSDK$ shortcuts. These shortcuts can be used in the #AdditionalRes path. They will replaced with the full path to the additional libraries folder or Android SDK folder
  • Buttons text is no longer upper cased when the material theme is used
  • Bug fixes and other minor improvements

Версия 5.20
This update adds an important new feature, the «Starter Service».

The Starter service is a special service module that serves as the program single entry point. This feature solves one of the most common bugs in Android apps which happens when the program starts from a secondary activity or service and some of the resources are not ready.

See this link for more information: Starter Service — Consistent & Single Entry Point

Other improvements:

  • Blocks completion: http://www.b4x.com/android/forum/threads/56983
  • The backwards / forward navigation feature was improved and there is a new list with the recent locations (Alt + N).
  • The Logs font can be changed.
  • Sub names are bold.
  • RingtoneManager.Play method.
  • New Designer navigation pad.
  • Warnings engine improved.
  • #SignKeyFile / SignKeyPassword attributes. Allow using a different signing key based on the build configuration.
  • Colors list in the designer color picker.
  • Bug fixes and other minor improvements.

Версия 5.00

  • Press on Ctrl + Click to jump to an identifier (sub, variables, etc.).
  • Themes — Ctrl + T
  • Sophisticated conditional compilation: #If, #Else If, #Else and support for OR and AND. Also supported in the manifest editor and designer scripts.
  • Dockable layout. Including support for multiple open editors.
  • Find all references — F7.
  • Quick search — Ctrl + F.
  • Goto sub / module — Ctrl + E.
  • Smarter autocomplete.
  • Hover over variables and expressions in debug mode.
  • Structure matching.
  • Automatic warnings and errors highlighting.
  • Support for multiple visual designer windows
  • Better support for selection and editing of multiple controls.
  • Views tree supports drag and drop to allow changing the z-order.
  • Integrated abstract designer with support for zooming.
  • Memory leak related to layout animations was fixed.
  • StartServiceAtExact keyword

Версия 4.30 Beta1

  • Support for inline Java code — http://www.b4x.com/and…nline-java-code.50141/
  • This feature will make it simpler to integrate third party SDKs
  • New Smart String literal — http://www.b4x.com/and…-string-literal.50135/
  • Command line builder — http://www.b4x.com/and…ine-compilation.50154/
  • Fix for Msgbox2 icon in Android 5 devices
  • Files list supports drag & drop
  • Clean project option also refreshes the libraries list. Can be accessed with a new shortcut (Ctrl + P)
  • Cancel option in the device selection dialog
  • New warning for invalid code in the globals subs
  • Class properties are listed in the Find All References tool (F7)

Версия 4.00

  • Rapid debugger memory handling was rewritten to provide better performance and to avoid memory leaks
  • 5 new View methods: SetLayoutAnimated, SetVisibleAnimated, SetColorAnimated, SetTextColorAnimated and SetTextSizeAnimated. With these methods it is very simple to add nice animations effects to your app
  • See this thread for more information: Simple animations in B4A v4.00
  • Designer animations — Layouts added with the designer are (optionally) animate
  • Support for constants: Dim Const x As Int = 2
  • Constant variables are assigned when declared. Their value cannot be later changed (enforced by the compiler)
  • Screen video capture — Requires Android 4.4+. Very useful for demonstrations
  • Activity_ActionBarHomeClick event — Handles the action bar icon click event. This event replaces the event from StdActionBar library which doesn’t work on Android 5 devices
  • Better handling of the internal message queue on Android 5 devices
  • Visual designer supports custom fonts
  • Visual designer supports adding borders to views that use ColorDrawable. Borders can also be added with ColorDrawable.Initialize2
  • New Application object with the following properties:
    • LabelName
    • VersionName
    • VersionCode
    • PackageName
  • Activity.DisableAccessibility — Workaround for this Android bug
  • IsDevTool keyword — Useful when reusing code with B4J / B4i
  • Designer — Select all files option
  • Designer — Double click on view’s name to add to the script
  • Libraries list — Checked libraries are listed at the top of the list
  • Duplicate line shortcut — Ctrl + D
  • AutoComplete shortcut — Ctrl + \ (same as Ctrl + Space)
  • Hide other modules option when right clicking on the module header
  • Clear logs when program starts option
  • 3 new warnings related to the manifest editor:
    • No android:targetSdkVersion
    • targetSdkVersion is lower than 20 and no theme is explicitly set
    • AndroidManifest.xml is read only
  • New logo
  • CurrentStatement and breakpoints colors are configurable in the xml file
  • B4A-Bridge was updated with several fixes and the PHONE_READ_STATE permission was removed (it was used in the past to show the device id)
  • Bug fixes

Basic4Android — это простой и мощный инструмент разработки приложений для устройств, работающих под управлением операционной системы Android. Язык Basic4Android очень похож на популярный язык Visual Basic. При разработке приложений используется множество различных дополнительных библиотек. Для выполнения созданных программ никаких дополнительных runtime-средств не требуется.

Среда разработки Basic4Android включает в себя мощный визуальный дизайнер, который поддерживает различные размеры и ориентации экранов. Для отладки приложений подключается эмулятор Android или реальное устройство. Подключение возможно через USB или локальную сеть.

Разработчикам доступно большое количество дополнительных библиотек для работы с базами данных SQL, GPS, последовательным портом (Bluetooth), камерой, интернетом, XML, анимацией, сетью, речевыми сообщениями, распознаванием голоса, таблицами, графикой и многим другим.

Поддерживаются все версии ОС Android, начиная с 1.6

От переводчика: Выбирая язык программирования, нужно знать какого уровня задачи будут решаться. В случае сложных профессиональных приложений лучше выбрать язык более сложный и мощный. Однако, для реализации простых продуктов можно самостоятельно освоить Basic-подобный язык программирования. Вы потратите немного времени на изучение, и основное время вложите в реализацию своего проекта. Можно провести эксперимент – создать программу на С# и Basic4Android с одинаковым функционалом. Во втором случае разработчик потратит меньше времени.

Источник

Читайте также:  Зомби паркур для андроид
Оцените статью