JavaIDE Custom version: 2.0 Last update of the program in the header:25.05.2019 Short description: An integrated development environment for Android applications.
Description
Javaide
Introduction
JavaIDE is an integrated development environment that runs on Android and allows you to create your own Android applications without having to use the Android SDK on Windows or Linux.
The following tools are currently integrated in JavaIDE:
Aapt
Java compiler
Dx
Apkbuilder
Zipsigner
Beanshell interpreter
Aapt is integrated as a native library.
Beanshell
The integrated BeanShell interpreter allows you to automate and customize the build process by writing your own BeanShell scripts.
Script writing
BeanShell scripts can access the functionality built into the JavaIDE by using the pre-defined variable G.
This variable references G.class with the following accessible variables and methods:
MainActivity class: G.main
G.stPw1, G.stPw2: Temporary passwords to be used by scripts
G.iScriptResultCode: Scripts can return their result value here
IDE class: G.ide provides access to development tools
int G.ide.fnAapt (String arguments)
int G.ide.fnAapt (String [] arguments)
int G.ide.fnCompile (String arguments)
int G.ide.fnCompile (String [] arguments)
int G.ide.fnDx (String arguments)
int G.ide.fnDx (String [] arguments)
int G.ide.fnApkBuilder (String arguments)
int G.ide.fnApkBuilder (String [] arguments)
int G.ide.fnSignApk (String arguments)
int G.ide.fnSignApk (String [] arguments)
String [] G.ide.fnTokenize (String commandline) // tokenizes the commandline arguments
BeanShellTask ​​class: G.bshTask provides methods for displaying
void G.bshTask.fnClear () // clear BeanShell output
void G.bshTask.fnPublishProgress (String msg) // updates progress message
void G.bshTask.fnToast (String msg, int milliseconds) // shows Toast message
Setting class: G.oSet provides access to variables that can be used in BeanShell scripts:
G.oSet.stDevRootDir: The development root directory
G.oSet.stAndroidJarPath: Full path to android.jar
G.oSet.stBshVar1: User Variable 1
G.oSet.stBshVar2: User Variable 2
G.oSet.stBshVar3: User Variable 3
G.oSet.stBshVar4: User Variable 4
G.oSet.stBshVar5: User Variable 5
Meaning of the script return value:
0: OK 1: Warning>1: Error 99: Undefined return value / exception
Example for calling ecj:
int rc = G.ide.fnCompile ("- version");
Running scripts
BeanShell scripts must be stored somewhere on the Storage Card. You can enter the path and filename of the script in the edit field or choose the script by ting the folder icon (or choose it in the 'Project Filemanager'). The "Run script!" button will start the specified BeanShell script.
Instruments
This tab provides a direct access to the built-in tools without the need for a BeanShell script. All arguments need to be entered in the edit field. This tab is primarily used to see the help for the tools and try things out.
Use with other applications
The JavaIDE supports the "android.intent.action.VIEW" intent action for the text / x-beanshell MIME type. If you define this type for the .bsh extension in your Android file manager (e.g. ASTRO) you can click a .bsh file and the JavaIDE will be started and the script path and filename prepopulated in the edit field.
The JavaIDE supports the "android.intent.action.SEND" intent action and can be called from other applications using the following code:
ComponentName cn = new ComponentName ("com.android.javaide", "com.android.javaide.MainActivity"); Intent intent = new Intent ("android.intent.action.SEND"); intent.setComponent (cn); intent.putExtra ("android.intent.extra.ScriptPath", "/sdcard/.javaide/mydomain/HelloWorld/build.bsh"); intent.putExtra ("android.intent.extra.ScriptAutoRun", true); // default = false intent.putExtra ("android.intent.extra.ScriptAutoExit", true); // default = false intent.putExtra ("android.intent.extra.WantResultText", true); // default = false startActivityForResult (intent, 123);
In the Extra Bundle, you can pass the following information:
ScriptPath: This is the path and filename of the script to be run
ScriptAutoRun: Set this to true to make the JavaIDE run the script immediately after starting
ScriptAutoExit: Set this to true to make the JavaIDE shut down after the script ran through
WantResultText: Set this to true to get back the script output of the BeanShell tab
You can get the data returned from the JavaIDE in the onActivityResult method with the following code:
Bundle extras = intent.getExtras (); if (extras! = null) {int iScriptResultCode = extras.getInt ("android.intent.extra.ScriptResultCode", - 1); String stResultText = extras.getString ("android.intent.extra.ResultText"); }
ScriptResultCode is always returned and contains the value of G.iScriptResultCode. If the script sets this variable, its value is returned to the calling app when JavaIDE is finished automatically or by the user.
You can also get the script output of the BeanShell tab by reading the log file /sdcard/.javaide/LogOutput.txt. Of course, this only works if you have checked the setting 'Log output to file'
Debugging
If you have problems with the JavaIDE, you can set the Log Level in the JavaIDE settings to analyze them. If you define a value higher than NONE, the JavaIDE will log informationen to the logcat. The highest amount of information is written with log level VERBOSE.
Android required: 4.0+
Russian interface: Yes
Developer: В© 2011 Tom Arn, В© 2019 Ivan Timashkov
Changes
Added custom application signature
Download: version: 2.0 JavaIDE Custom Past versions
version: 1.0 JavaIDE 1.0.apk (3.11 MB)
Post has been editedninja88 - 25.05.19, 11:59Reason for editing: Version 2.0