Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.

Add file association to Basic4ppc source code files (on the device)

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-17-2008, 10:59 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

The file association does just that...

It replaces the unkonown file type icon on spb files with the b4ppc icon, and when you tap on an spb, b4ppc is automatically launched with this file...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #12 (permalink)  
Old 11-17-2008, 11:06 PM
Junior Member
 
Join Date: Nov 2008
Posts: 10
Default

Quote:
Originally Posted by Cableguy View Post
The file association does just that...

It replaces the unkonown file type icon on spb files with the b4ppc icon, and when you tap on an spb, b4ppc is automatically launched with this file...
Is the file executed, or is it just loaded into the editor?

I recreated the reg values to try this, and clicking on the file loads it into the editor and sits there. I'd like an option or a command-line flag to make it execute the program.
Reply With Quote
  #13 (permalink)  
Old 11-17-2008, 11:17 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I don't believe that to be possible as it would render a demo version, capable of executing an umcoplied app as if it were compiled...
Not even going to tell you how ofensive that idea is to ALL OF US WHO REALLY BOUGTH THE FULL VERSION, but running code from the editor is NOT as optimized as if it was really compiled as an EXE, nor it is as fast, neither less ressource consuming.
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #14 (permalink)  
Old 11-17-2008, 11:27 PM
Junior Member
 
Join Date: Nov 2008
Posts: 10
Default

Let me expand on why I think this is useful...

I'm also a user of PPL, which allows on-device compilation so you can click on your executable on the device and run it.

I really like the ability to program with .net that Basic4PPC provides, but of course compiling is out of the question unless someone comes out with a compiler that runs on the device.

I do most of my work on the device, during commute or when I'm supposed to be watching the kids With PPL I can compile my apps and then be able to run them with one click. Then if I find something that needs fixing I can modify the source file then recompile.

I'd like to propose a poor-mans "compilation" for Basic4PPC -- if a source file ends with .spx or maybe .spe, then when the file is loaded it is run automatically, and when the program is quit it also quits the editor.

then if I need to, I can change the extension to spb, edit and test, then change it back to spx when I'm happy. When I get to a Desktop machine I can then compile to get all it's speedy goodness.

This would provide us a one-click option to run our software on the device, and will take PPL down a notch for me
Reply With Quote
  #15 (permalink)  
Old 11-17-2008, 11:34 PM
Junior Member
 
Join Date: Nov 2008
Posts: 10
Default

Quote:
Originally Posted by Cableguy View Post
I don't believe that to be possible as it would render a demo version, capable of executing an umcoplied app as if it were compiled...
Not even going to tell you how ofensive that idea is to ALL OF US WHO REALLY BOUGTH THE FULL VERSION, but running code from the editor is NOT as optimized as if it was really compiled as an EXE, nor it is as fast, neither less ressource consuming.
First, I kinda resent your implication. I do not have a demo version, I have bought the full version. I do not propose that this is done to any demo version

Second, for best speed one would want to compile at some point anyway. Having an auto-run will still incur overhead of the editor, but it will provide folks like me who want to do most work on the device a nice shortcut.

Third, PPL, which I also own, allows full compilation ON THE DEVICE

Why not give Basic4PPC another edge?

I really like what I've seen so far with Basic4PPC, and I like the ability to program with .net on the device.

Anyway, it seems this is not currently supported, So I'm taking it over to the proposed features thread.

Last edited by burtcom : 11-17-2008 at 11:47 PM.
Reply With Quote
  #16 (permalink)  
Old 11-18-2008, 12:05 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by burtcom View Post
First, I kinda resent your implication. I do not have a demo version, I have bought the full version. I do not propose that this is done to any demo version
I'm the first to say " I was mistaken" about you...

Perhaps the way you expressed yourself in the first two postes was not too clear on your intentions...
But now they are clear to me...and I do apollogize.

Quote:
Second, for best speed one would want to compile at some point anyway. Having an auto-run will still incur overhead of the editor, but it will provide folks like me who want to do most work on the device a nice shortcut.
I can see your point of view....BUT as you posted in a previous post, this would need that one's must change, as you propose, the file extension in order to be executed in 1 TAP...
To run a code file (.spb) NOW you only need 3 TAPs...
TAP on the file...and wait for the editor to came up...
Tap File....
Tap RUN

As oposed to...
Tap and hold the code file...change the extension, and for this you need a third party file manager like total command, as the WM file explorer does not show the extensions...
Rename the file...
Then Tap it again...
You have by now spend twice the time (at least) needed to do the 3 TAPs, not to mention the increasing error possibilities on renaming the File...
Quote:
Third, PPL, which I also own, allows full compilation ON THE DEVICE

Why not give Basic4PPC another edge?

I really like what I've seen so far with Basic4PPC, and I like the ability to program with .net on the device.

Anyway, it seems this is not currently supported, So I'm taking it over to the proposed features thread.
I agree that would be very nice, but not High in the new features requests...
Coding in the device is very usefull to jump-start an app development, but always end up using the desktop for some visaul enhancements....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #17 (permalink)  
Old 11-18-2008, 01:57 AM
Junior Member
 
Join Date: Nov 2008
Posts: 10
Default

Quote:
Originally Posted by Cableguy View Post
I can see your point of view....BUT as you posted in a previous post, this would need that one's must change, as you propose, the file extension in order to be executed in 1 TAP...
To run a code file (.spb) NOW you only need 3 TAPs...
TAP on the file...and wait for the editor to came up...
Tap File....
Tap RUN

As oposed to...
Tap and hold the code file...change the extension, and for this you need a third party file manager like total command, as the WM file explorer does not show the extensions...
Rename the file...
Then Tap it again...
You have by now spend twice the time (at least) needed to do the 3 TAPs, not to mention the increasing error possibilities on renaming the File...
Well, I wouldn't be constantly changing the file extension Just when I decide I want to edit it for whatever reason. Most of the time an established app would be started with one click.

Alternatively, one could have a runtime version of basic4pc.exe, perhaps basic4pcro.exe, that .spx could be mapped to -- I believe NS basic has a runtime version that can be used like this.

And as for changing file extension, I have Resco Explorer -- I dare say most of us have some kind of tool for doing this.

Or, the whole thing could be as simple as a checkbox in the editor that, when selected, will auto-run the loaded .source file.

Last edited by burtcom : 11-18-2008 at 02:28 AM.
Reply With Quote
  #18 (permalink)  
Old 11-18-2008, 04:05 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
Default Compilation

I do ALL dev. on device, testing etc when its all proffed out I go to Desktop and compile an exe. The only improvement on that would be a compiler on the device.
Reply With Quote
  #19 (permalink)  
Old 11-21-2008, 08:22 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 585
Awards Showcase
Beta Tester 
Total Awards: 1
Default

When I first started using Basic4ppc, a, 'compile for device' was available on the device.
BUT the exe's would only run if Basic4ppc was installed on the device.

Due to the changes, over the last few years, to Basic4ppc.
'Things', have changed.

I believe a 'compile' from the device would be a bad thing due to software piracy.

I've been asked recently to PM a copy of a DLL to a non paying member.
I declined.

Compile from Desktop or Device gives the hackers 2 chances of giving away, for free, a product that is well suported by Erel, that most users will pay for.

Criticise me if I'm wrong :-)

I can take it.
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #20 (permalink)  
Old 11-21-2008, 09:14 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by taximania View Post
I've been asked recently to PM a copy of a DLL to a non paying member. I declined.
I regularly get that. I usually refer them to Erel "who may be able to help", curiously, he never hears from them
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coverting text files with binary file page code functionality kolbe Code Samples & Tips 1 06-21-2008 06:06 PM
Source Code Folders On The Device RandomCoder Basic4ppc Wishlist 13 03-23-2008 02:01 PM
DEVICE, Icon and program association. taximania Share Your Creations 2 01-05-2008 08:20 PM
Include source code from an external file Zemog Questions (Windows Mobile) 2 06-29-2007 09:38 AM
.sbp file association in the Device Cableguy Code Samples & Tips 8 05-18-2007 03:12 PM


All times are GMT. The time now is 05:32 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0