It is currently Tue May 30, 2017 4:03 am



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 176 posts ]  Go to page 1, 2, 3, 4, 5 ... 18  Next
Author Message
 Post subject: Announcing BASIC! Compiler: create APK directly on the phone
Unread postPosted: Wed Jun 22, 2016 1:21 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
Ok, here it is: compilation on the Android device!

Download BASIC! Compiler on the Google Play store.

Image

[old post - for history:]
I am releasing BASIC! Compiler available for beta-testers:

This first version compiles directly the GitHub source code of BASIC! without customizing it (so without switching to "user APK" mode).
It will hopefully create an APK called "BASIC! Master" (with a distinct "GitHub" icon) on your device, that -once installed- should run along and behave exactly like the normal BASIC! Editor/Interpreter.

The goal here it to see if 1) the compilation goes all the way to the final apk (incidentally how long it takes) and 2) if the apk is correct: if it can be installed, if you can load and run your usual BASIC! programs with it.

This is a very important step for me before specializing the Compiler to make a user APK.
Because I have only tested it on one phone, under Android 5.0 Lollipop. So I need feedback for other phones / OS versions as well...

BASIC! Compiler is an all-in-one APK of 7.8 MB that contains the tools and APIs to compile (aapt, Javac, Dex, SignApk) and a copy of the BASIC! Source Code.

Please report the result of your tests directly as a reply in this topic.

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 1:24 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
So my first report ;)
On Sony Xperia Z3 Compact under Android 5.0 Lollipop: apk is correctly created in 49 seconds.

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 1:48 am 
Offline
User avatar

Joined: Sat Oct 04, 2014 5:45 am
Posts: 643
JellyBean 4.2.2
I also wiped for free space but that did not solve it
Image

_________________
Download and tutorial for RFODESIGNER
https://sites.google.com/site/rfodesigner/


Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 1:52 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
hmm

Emile's error message for the curious is
Code:
/data/data/com.rfo.compiler/aapt[1]: can't open stdin: No such file or directory


I have a little idea why it might occur. Let me prepare an easy way for you to test something...

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 1:55 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
Emile, is your phone rooted? I would need you to replace the file "aapt" in /data/data/com.rfo.compiler
I don't see an easy way to do that in short time other than sending you modified aapt and you copy it manually...

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 2:28 am 
Offline

Joined: Tue Jan 20, 2015 6:46 am
Posts: 155
Location: INDIIA
Getting error
Error creating R.Java


Attachments:
Screenshot_2016-06-22-14-54-27.png
Screenshot_2016-06-22-14-54-27.png [ 27.4 KiB | Viewed 1834 times ]
Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 2:29 am 
Offline

Joined: Tue Jan 20, 2015 6:46 am
Posts: 155
Location: INDIIA
My phone is not rooted


Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 2:50 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
Sanjay what Android version is your phone?
What brand is it?

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 3:01 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
Sanjay, I'll assume your phone has an Android before Lollipop, like Emile.
So I tried to implement a fix for your problem.

Eventually I needed to embed 2 versions of aapt: one position independent executable (pie) for Android >= 5.1.1 and another one for older versions of Android.
As a result The size of the BASIC! Compiler changes from 7.38 MB to 7.80 MB (+ needs a new permission: READ_PHONE_STATE to get the OS version at runtime).

You will both need to uninstall the existing version first before re-installing the new version (download it at the same place).
You cannot update the existing version, you really need to uninstall it first for the tools to be removed and new aapt to be installed.

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing BASIC! Compiler: create APK on-board!
Unread postPosted: Wed Jun 22, 2016 4:36 am 
Offline

Joined: Thu Jan 31, 2013 7:51 am
Posts: 76
I get the same error messages as Sanjay (downloaded the apk a minute ago)
ASUS tablet S8
5.0

All the best,

**örn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 176 posts ]  Go to page 1, 2, 3, 4, 5 ... 18  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred