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 > Official Updates
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Official Updates Updates to official libraries could be found here.
This forum is only available to licensed users.

SamLib - Basic4ppc and Samsung Mobile Phones

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-03-2009, 03:50 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default SamLib - Basic4ppc and Samsung Mobile Phones

This is version 0.9 (beta release) of SamLib - a Basic4ppc library that adresses Samsung Phones. SamLib lets you develop for phones such as the Samsung Omnia and similar devices and use specific features:Haptics, Orientation indication, camera flash, LEDs, Accelerometer, FM Radio, and the light sensor that feels the current illuminance outside. Proximity sensor is not implemtnetd by Samsung on their SDK yet, hence not included. Also not included are some features I thought are of less interest: wheel key, optical mouse, TV out, Slider, R2VS, and some advanced camera features that anyway need DirectShow support. Feel free to ask for these features, if you want them, and more and I'll try to help.

This library requires Basic4ppc 6.8 or later. It supports both Desktop and Device. The values returned from the functions when running on the desktop will usually be -10 (see the SamErrors object for error codes in this dll).

Please note this is a preliminary beta release. There are probably bugs. Any feedback is greatly appreciated. Especially note that the RDS functions of the FM radio are not implemented on this version, though their signatures exist.

In the zip:
- SamLib.dll
- 2 cab files - the Samsung SDK - you should install the right one, see help file
- Help file - important to read
- Sample program - SamTest.sbp. All functions are demonstrated there - a good source to see the way of using the functions. It requires bList.dll from the following thread here.
- An image for the sample.
*** - Once a final release is published, I will of course attach the source code for merging.

I wish to thank Benjamin Gramüller for his invaluable help in the development of this dll.

EDITS
******
EDIT 10/10/09
--------------
Version 0.91 attached - the "Resources" object is removed.


******

Installation instructions:
Copy the SamLib.dll to the Libraries folder, and to your device.
Install the right cab file on your device - consult the help file "overview" section for information.
Attached Files
File Type: zip SamLib_091.zip (308.4 KB, 107 views)

Last edited by Ariel_Z : 10-10-2009 at 04:20 PM.
Reply With Quote
  #2 (permalink)  
Old 10-03-2009, 04:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks Ariel
__________________
Basic4android documentation
Reply With Quote
  #3 (permalink)  
Old 10-04-2009, 09:22 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Italy
Posts: 541
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Well done and very interesting Ariel. Thank you.

I wish HTC would do the same as Samsung i.e make their SDK:s available.
__________________
rgds,
moster67
Reply With Quote
  #4 (permalink)  
Old 10-04-2009, 09:50 AM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

There are some leads on the web. I'm into gathering details now, but I cannot assure anything will come out of this...
Reply With Quote
  #5 (permalink)  
Old 10-09-2009, 08:25 AM
Junior Member
 
Join Date: Aug 2009
Posts: 24
Default

i have a big problem with your samlib.dll !!!
i want to use it together with lizma.dll from the basic4ppc forum but there is an error now.
it says that your .dll and the other .dll use the same "key".
So its impossible to load both components into one file.
Might you change the key, so that i can use both .dll-files?

Look here:
http://www.basic4ppc.com/forum/addit...-pocketpc.html

Last edited by BehindA : 10-09-2009 at 04:00 PM.
Reply With Quote
  #6 (permalink)  
Old 10-09-2009, 10:18 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

As I wrote in the thread you referred to, I'll fix it - I plan to do it tomorrow - you are right .

Last edited by Ariel_Z : 10-10-2009 at 03:59 PM.
Reply With Quote
  #7 (permalink)  
Old 10-10-2009, 04:32 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

Fixed - first post updated.
Reply With Quote
  #8 (permalink)  
Old 10-10-2009, 05:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks Ariel
__________________
Basic4android documentation
Reply With Quote
  #9 (permalink)  
Old 05-04-2011, 11:34 AM
Knows the basics
 
Join Date: Aug 2010
Location: Russia
Posts: 64
Default

Ariel, library update isn't planned?
Not bad to add a Orientation3D class for access obtaining to Position structure.

P.S.
Has tried to make by self to create lib with Orientation3D class.

New1 - create object
GetHeading () as Integer -
Quote:
The yaw or azimuth angle, or rotation of the phone on its vertical axis. The value starts at 0 when the phone is facing magnetic north, and increases as the phone is turned clockwise. For example, a phone facing east has a heading of 90, the south 180, the west 270. The maximum heading value is 359.
GetPitch () as Integer -
Quote:
The angle the phone is rotated on its lateral axis. The value is an integer from -180 to 179. Pitch is zero when the phone is face up; it increases as the top edge of the phone is moved downward, and decreases when the top edge is moved upward.
GetRoll () as Integer -
Quote:
The angle the phone is rotated on its longitudinal axis. The value is an integer from -90 to 90. Roll is zero when the phone is face up; it increases when the right edge of the phone is moved downward, and decreases when the right edge of the phone is moved upward.

GetAccuracy () as Integer -
Quote:
Calibration level percentage. Values are from 0-100, with 0 = not calibrated, and 100 = fully calibrated.
Attached Files
File Type: zip SAPI.zip (238.9 KB, 14 views)

Last edited by Discorez : 05-04-2011 at 02:38 PM.
Reply With Quote
  #10 (permalink)  
Old 05-04-2011, 08:15 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thank you for sharing this.
__________________
Basic4android documentation
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
Basic4PPC and Windows Mobile Emulator ghale Tutorials 11 01-16-2010 09:09 PM
Acceptance of Basic4PPC apps for the windows mobile store bluedude Questions (Windows Mobile) 2 08-03-2009 10:03 PM
GetStorageCards and Samsung Omnia ghale Questions (Windows Mobile) 5 07-31-2009 07:44 PM
Basic4PPC cannot install Windows Mobile vinicius Questions (Windows Mobile) 4 05-28-2008 07:14 PM
Soft Keys on Smart Phones? Louis Questions (Windows Mobile) 1 02-21-2008 06:49 AM


All times are GMT. The time now is 04:40 AM.


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