Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Support

Pages: 1 ... 29 30 [31] 32 33 ... 59
451
What's New / Re: ScriptBasic for Android
« on: June 15, 2012, 09:37:17 PM »
Don't get caught up in all the rooting hype. I am glad I didn't root my tablet and although I like the stuff on my rooted phone, it is not stable and if I could go back to the stock ROM I would. It is just so easy to get caught up with it reading the articles and watching the videos on youtube.  Just look at that red sign you got in your post. Those will keep you out of trouble and happier!

If your want to play root, do it in an emulator to see what you're unable to on the stock device. I'm pondering why sudo (or it's mechanism to allow temporary root functionality) can't be added/enabled on this open source OS. I'm sure there are certain Android applications that are purchased from the marketplace that need root functionality to install. It's hard to believe this functionality isn't available and forces users to burn a new OS image and voiding the warranty. Why doesn't device manufactures just allow root by default and provide a factory reset option that restores the device like it was when you took it out of the box. (doing a backup first would be wise)


452
What's New / Re: ScriptBasic for Android
« on: June 15, 2012, 02:36:56 AM »
I haven't run into any show stoppers so far getting SB installed on my SGT2_10.1 Android device. I was able to get scriba to generate configuration files where I wanted them to go.



Notice the short lib name?




Here are a few apps I installed to make my life easier.

ConnectBot




DroidEdit



I would highly recommend Hacker's Keyboard as your virtual keyboard alternative.

Code: [Select]
IMPORT DVM

PRINT "Phone Type: ",DVM::getPhoneType(),"\n"
PRINT "Screen Brightness: ",DVM::getScreenBrightness(),"\n"
PRINT "Airplane Mode: ",DVM::checkAirplaneMode(),"\n"
PRINT "Ringer Silent Mode: ",DVM::checkRingerSilentMode(),"\n"
PRINT "Screen On: ",DVM::checkScreenOn(),"\n"
PRINT "Max Media Volume: ",DVM::getMaxMediaVolume(),"\n"
PRINT "Max Ringer Volume: ",DVM::getMaxRingerVolume(),"\n"
PRINT "Media Volume: ",DVM::getMediaVolume(),"\n"
PRINT "Ringer Volume: ",DVM::getRingerVolume(),"\n"
PRINT "Vibrate Mode: ",DVM::getVibrateMode(),"\n"
PRINT "Vibrate Mode Ringer: ",DVM::getVibrateMode(TRUE),"\n"
PRINT "Vibrate Mode Notify: ",DVM::getVibrateMode(FALSE),"\n"



Note:  The size of this last image is very close to my actual screen size for the tablet. (based on my laptop 1280x800 screen)


453
What's New / Re: ScriptBasic for Android
« on: June 13, 2012, 02:19:27 PM »
Disclamer

At this point I'm not planning on rooting my Galaxy Tab 2 10.1 device. I find it more of a challenge to create a usable Linux terminal environment and still keep the device a virgin. I'm having fun finding out what the SGT2 can offer to scripting language environments like Python and SB. I think ScriptBasic has a fair chance at people taking the language seriously and using it to glue (customize) their digital world.

Root Access - SGT2

Root is similar to Apple Iphone’s Jailbreak. Thus Jailbreak gives the user the ability to change theme, download apps from 3rd party app stores – it still doesn’t give you that amount of power that you’ve achieve when rooting your device.
As i’ve said in the previous article – this is at your own risk!



This is for the Samsung Galaxy Tab! – In order to achieve root on this device, you must first synch it with kies, then disconnect it, then enable USB debugging mode and the launch an homebrewed program called “SuperOneClick” – with that press “ROOT” and you’re rooted! However you’ve still doesn’t have any Custom Kernel or recovery system installed at the moment, this can be done by using the software called “ODIN”.

As you can see – the Samsung device is A LOT easier to Root than the HTC device. This generally applies to all HTC’s and Samsung Devices.

1)      Install Samsung Kies – this is used for installing the necessary drivers that we are going to use for the Samsung Galaxy Tab.

2)      Synchronize your Tablet with Kies, just once would be enough to install the drivers. Disconnect the Tablet. Please ensure that you’ve doesn’t use any other launcher other than the default Touchwizz launcher! Many have reported that the Tablet won’t synchronize, but that’s just due to Samsung that have made the software capable of only detecting the device when running the default launcher/home replacement.

“It is important to install the drivers correctly in order to have any communication with the device. The method for HTC devices is similar as the Samsung devices.”

454
SQLite / SQLite3 SB ext. module
« on: June 13, 2012, 02:23:30 AM »
I have created a new board on the forum to make room for the new SQLite3 multi-platform extension module for ScriptBasic. Armando (AIR) has released a proof of concept as a sneak preview of what's to come.

Quote from: AIR
This is the .00000001 version, there are a lot more functions in the SQLite3 package.  Note that the actual SQLite3 package is statically linked into the library, thus the somewhat larger library size but the net result is that it doesn't require that SQLite3 be installed, which is a plus. All other libraries it needs are dynamically linked.

Code: [Select]
INCLUDE sqlite.bas

hdb=sqlite::open("testsql")
sqlite::execute(hdb,"create table demo (someval integer, sometxt text);")
sqlite::execute(hdb, "INSERT INTO demo VALUES (123,'hello');")
sqlite::execute(hdb, "INSERT INTO demo VALUES (234, 'cruel');")
sqlite::execute(hdb, "INSERT INTO demo VALUES (345, 'world');")

stmt = sqlite::query(hdb,"SELECT * FROM demo;")

while (sqlite::row(stmt) = 100)
    pr = pr & sqlite::row_value(stmt,0) & " - " & sqlite::row_value(stmt,1) & "\n"
wend

sqlite::close(hdb)

print pr

print "SQLite Version: ",sqlite::version(),"\n"

jrs@ip-10-166-185-35:~/tmp$ scriba sqltest.sb
123 - hello
234 - cruel
345 - world
SQLite Version: 3.7.12.1
jrs@ip-10-166-185-35:~/tmp$

455
What's New / Re: ScriptBasic for Android
« on: June 12, 2012, 01:42:04 PM »
I'm only developing the SL4A interface for Android 4.x based devices. I'm putting together a procedure on SB Google Code that will be a tutorial of sorts on how to install ScriptBasic (scriba and it's extension modules) on an un-rooted device. Scriba should run on earlier versions of Android regardless.


456
What's New / Re: ScriptBasic for Android
« on: June 11, 2012, 07:12:47 PM »
I put Bertha the blow up Android emulator in the closet and got the real thing.  :o



Galaxy Tab 2 10.1


457
What's New / Re: ScriptBasic for Android
« on: June 10, 2012, 12:56:05 AM »
Here are a few more extension module calls to the t.so (tools) and ux.so (unix specific) functions.

t_xml.sb
Code: [Select]
declare command XML alias "xmlserialize" lib "/data/data/org.scriptbasic/t.so"

a{"Name"}="John"
a{"Age"}=59

print XML(a),"\n"

t_md5.sb
Code: [Select]
declare sub MD5 alias "md5fun" lib "/data/data/org.scriptbasic/t.so"

m = MD5("JRS")
print "0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |A |B |C |D |E |F |\n"
for x = 1 to len(m)
  print right("0" & hex(asc(mid(m,x,1))),2) & "|"
next
printnl

ux_fork - I was surprised that Android allowed forking a child process.
Code: [Select]
declare sub uxfork alias "uxfork" lib "/data/data/org.scriptbasic/ux.so"

pid = uxfork()

IF pid THEN
  PRINT "Created a child process with a PID of ",pid,"\n"
ELSE
  PRINT "This is a child process with the PID of ",pid,"\n"
END IF

LINE INPUT x



458
What's New / Re: ScriptBasic for Android
« on: June 09, 2012, 02:37:55 PM »
Dr. AIR comes through again and finds the solution to bringing ScriptBasic extension modules to life on Android Linux. (NDK)




459
What's New / Re: ScriptBasic for Android
« on: June 08, 2012, 09:29:01 PM »
I found this SL4A API Help Guide that might be worth having a peek at.


460
What's New / ScriptBasic for Android - SL4A Tablet Remix
« on: June 04, 2012, 03:01:52 AM »
Quote from: Liam Green-Hughes
Hi everyone,

I have had a go at making a version of SL4A that is for Android Honeycomb devices, especially the Asus EEE Pad Transformer. The APK for my version is attached and the source code and change history can be found at: http://code.google.com/r/liamgreenhughes-sl4a-tf101/. This version is designed to fit in with the whole Honeycomb user experience so you will notice that it looks a bit different. Some functions have been extended to add support for some of the features found on these devices such as the front camera, high-def video and the extra battery in the EEE Pad's keyboard. Some screenshots are below. The Triggers functionality doesn't quite work properly yet but the rest should be usable.

Comments and feedback very welcome!

Download & more ...

Honeycomb Screenshot



461
What's New / ScriptBasic for Android - SL4A (r5x21)
« on: June 04, 2012, 02:32:09 AM »
Release Notes: r5x21 4-Jun-2012

  • FullScreenUI Updates
  • android:textSize now supports 'sp','dp','mm','in','px' and 'pt' suffixes
  • android:textColor now works, and supports #aarrggbb, #rrggbb, #argb and #rgb notations. Also supports standard html color names.
  • android:textStyle now works.
  • nextFocus functions should work. (Needs testing)
  • Should add support for all layout properties in fullscreenui. (Needs feedback - only quickly tested)(r5x15)
  • Added support for "digits" property in fucreenui
  • Added typeface, textHintColor, textLinkColor and textHighlightColor (r5x14)
  • margin and padding properties (r5x15)
  • Added fullKeyOverride (support for  issue 622 ) (r5x18)
  • fullShow now switches without flicker (r5x19)
  • Added eden's additional bluetooth discovery functions. (r5x10)
  • Fixed strange characters on full keyboards when trying to type brackets in intepreter shell. Also enabled ctrl keys on keyboards that support them. (r5x11)
  • Editor will now remember cursor location between session. (r5x12)
  • Applied patches from Agustin Henze, Issues 592, 605 and 609: Added some location functions, a bug displaying url in wrong thread, and standardizing notifications. (r5x13)
  • Included support for "Sleep" language (from tomcatalbino)
  • Included support for "Squirrel" language (from Andy Tai)
  • Included patch to deal with public servers and ipv6: (r5x16)
  • Fix to  issue 621 , events going missing on non-blocking eventWait (rx18)
  • Fix to issue 631, wrong thread error when updating lists. (r5x20)
  • Fix to NPE when setting typeface in initial layout( r5x21)


Updated API Ref

462
What's New / Re: ScriptBasic for Android
« on: June 01, 2012, 11:15:54 PM »
I don't think people can afford to be loyal to the Microsoft morphing monster any longer. They are broken and Steve isn't the person to fix it.

Who would of thought PHP would have been as popular as it is?

463
What's New / Re: ScriptBasic for Android
« on: May 30, 2012, 09:09:03 PM »
Robbie Matthews that manages the Google Groups Android scripting list has a book out that might interest Android tablet developers.

Quote
Robbie Matthews gives a full, no-holds barred introduction to Android programming for tablets. No previous experience required!



more ...

464
What's New / Re: ScriptBasic for Android
« on: May 27, 2012, 12:22:30 PM »
When Peter Verhas was developing ScriptBasic, (late 90s) he was using C and Perl at the time. Python hadn't made it's mark yet but if you look closely at the SB code, it will be sprinkled with both Perl and Python concepts complementing the traditional BASIC syntax.

465
What's New / Re: ScriptBasic for Android
« on: May 25, 2012, 04:37:18 PM »


Quote
If you’re a challenger to the Android-Apple tag team these IDC standings are simply depressing.

Windows Mobile/Windows Phone has yet to make significant inroads in the worldwide smartphone market, but 2012 should be considered a ramp-up year for Nokia and Microsoft to boost volumes. Until Nokia speeds the cadence of its smartphone releases or more vendors launch their own Windows Phone-powered smartphones, IDC anticipates slow growth for the operating system.

With Android owning more then half the market, scripting phones/tablets (local and remote) may make ScriptBasic more attractive.

Even on my old Acer Aspire 5000, ScriptBasic loads, initializes and process the PRINT script in .006 seconds.

Code: [Select]
PRINT

jrs@laptop:~/sb/test$ time scriba prtpgm.sb


real   0m0.006s
user   0m0.004s
sys   0m0.000s
jrs@laptop:~/sb/test$

About the same time as it takes light to travel one mile in a vacuum.


Pages: 1 ... 29 30 [31] 32 33 ... 59