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.

.sbp file association in the Device

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2007, 03:26 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 .sbp file association in the Device

Hi,

After a few attemps i managed to associate the b4ppc generated files (.sbp) to its original creator (b4ppc) and respective icon...

Using a regestry editor (or even the regestry library if anyone is willing to create an aplet to do this), Like PHM Regedit, go to the following Key:

HKEY_CLASSES_ROOT

add Key:

.sbp (including the dot)

Inside the .sbp ad the values:

Name - value
Content Type - basic4ppc
Default - sbpfile

Go back one level and add the Key:

sbpfile

Inside this key create two more:

DefaultIcon
Shell

Inside DefaultIcon add the value

Default - \Program Files\Basic4ppc\Basic4ppc.exe,0 (this is the path were b4ppc is installed and may difer from yours...the last zero is needed to indicate the icon)
Go back to the shell key and add insid it the folllowing keys:

Open\Command

Inside command add the value:

Default - "\Program Files\Basic4ppc\Basic4ppc.exe" "%1" ( dont forget the commas, and again this is the b4ppc install path)
EDIT: though this is true, its doesn't seem to work with B4ppc files, it just launches the B4ppc editor in a blank project upon tapping a sbp file
ALthoug I'm not sure if its necessary, I did a soft-reset after the regestry alteration....

As Usual, messing with the regestry is something to do with extra care, any "bad" key can transform your device in a brick untill hard-reset...
__________________
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

Last edited by Cableguy : 05-11-2007 at 06:18 PM.
Reply With Quote
  #2 (permalink)  
Old 05-15-2007, 07:31 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 585
Awards Showcase
Beta Tester 
Total Awards: 1
Arrow

I tried this with PHM RegEdit, what type of 'values', DWord, binary, string etc should I be adding.

The options available in PHM don't match what your telling me to add ?
__________________
.
.
.
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
  #3 (permalink)  
Old 05-15-2007, 07:36 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 used PHM, all values are REG_SZ wich are Dword or String, and are also the default type...
__________________
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
  #4 (permalink)  
Old 05-15-2007, 08:26 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 585
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thankyou for your quick reply

I will try again tomorrow
I'm very limited at present using this laptop.

I've still not sorted my laptop out yet.
Waiting for a new DVD drive
__________________
.
.
.
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
  #5 (permalink)  
Old 05-16-2007, 05:15 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
Default sbp associate

I can double click on a sbp file in file explorer or resco explorer and it brings up basic4ppc. wihout going thru the registry as you say.
Reply With Quote
  #6 (permalink)  
Old 05-16-2007, 06:48 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

Hi, I'm using WM6, and it always reported me,that no program was associated with the filetype.
That's what brought me Here....
What SO are you using?
__________________
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
  #7 (permalink)  
Old 05-17-2007, 03:40 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
Default associate

I'm using wm5 and will probably never change to wm6
Reply With Quote
  #8 (permalink)  
Old 05-18-2007, 12:25 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

Ok,
So I downgraded to WM5 and installed RescoExplorer....And can't get it to load on tap...B4ppcStarts always an empty project...Maybe in V5 this will be adressed...
__________________
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
  #9 (permalink)  
Old 05-18-2007, 03:12 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
Default

It would be nice as I can't remember the file I tapped when I get in B4ppc
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
Add file association to Basic4ppc source code files (on the device) Erel Code Samples & Tips 22 07-01-2010 08:06 PM
File Association Problem Louis Questions (Windows Mobile) 1 10-27-2008 08:53 PM
FTP file download fails on device willisgt Questions (Windows Mobile) 3 01-31-2008 12:45 PM
DEVICE, Icon and program association. taximania Share Your Creations 2 01-05-2008 08:20 PM
How co compile to Device *.exe file haiphanngoc Questions (Windows Mobile) 4 09-07-2007 10:36 AM


All times are GMT. The time now is 02:35 AM.


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