Hi Everyone, I have made a new wrapper for the lastest Scringo Version (2.3.5).
What's new in this version:
- Bug fixes
- Added ScringoCommentButton and ad-hoc chat rooms
- Added the ability to reply to System messages
- In-app billing improvements
- Quiz and Leaderboard
- Facebook SDK 3.0 integration
What's in this wrapper:
- Everything from version 2.2.2
- The "Like" Button (you have to add it by code, and then call the method "setLike")
- The "Comment" Button
- The Activation Button
- The Ribbon Button
- Event raised when a feed post is clicked
- Event raised when a custom Menu item has been added from the DashBoard
I have attached a .zip file containing:
- res folder (this contains the Scringo and Facebook resources)
- libs folder (dependencies of the Scringo sdk)
- scringo.2.3.5.jar (the real Scringo sdk)
- ScringoB4A.2.3.5.jar and ScringoB4A.2.3.5.xml (the wrapper of Scringo for B4A).
- scringo.properties
- Manifest.xml (what needs to be added to the manifest)
How to use it:
1. Register in
scringo.com, get an App ID
2. Open the rar attached in this post and place the jars from the libs folder in your B4A AddLibraries folder.3. Also place scringo.2.3.5.jar ScringoB4A.2.3.5.jar and ScringoB4A.2.3.5.xml in your B4A AddLibraries folder.3. Add the contents of the Manifest.txt from the rar using the B4A Manifest Editor (Project -> Manifest Editor -> Paste this: )
AddApplicationText(
<Contents of Manifest.txt>
)4. Merge the res folder from .rar with your Objects/res, and set them all to read-only (In a Windows Browser, Right click the folder -> Read Only, no need to do it one by one)
5. add the scringo.properties from the zip to the Files folder and add it to the B4A project in the Files tab, edit the file and add your Scringo app ID in the scringo.app.id property
And that's it, you can start using Scringo.
- For Facebook login, you need to put your Facebook App Id in the res/values/scringo_strings.xml in this line:
<string name="
replace_this_facebook_app_id">xxxxxxxxxxxxxxxx</string>
(replace the xxxxxxxxxxxxxxxx with your actual fb id)
- For twitter login, you just need to follow the steps from the Scringo Developers Zone (
https://dev.scringo.com/resources.php?resource=guides&sub=Android)
Here are the classes and methods:
ScringoB4A.2.3.5
Version: 1.1
- Scringo
Events:
- OnMenuItemClicked (actionId as String As )
- OnPostItemClicked (actionId as String As )
Fields:
- COMMENT_IMAGE As ScringoCommentObjectType
- COMMENT_VIDEO As ScringoCommentObjectType
- ICON_PERSON As ScringoIcon
- ICON_THREE_DOTS As ScringoIcon
- ICON_THREE_DOTS_CIRCLE As ScringoIcon
- ICON_THREE_LINES As ScringoIcon
- LIKE_COMMENT As ScringoLikeObjectType
- LIKE_IMAGE As ScringoLikeObjectType
- LIKE_NONE As ScringoLikeObjectType
- LIKE_OTHER As ScringoLikeObjectType
- LIKE_POST As ScringoLikeObjectType
- LIKE_TOPIC As ScringoLikeObjectType
- LIKE_VIDEO As ScringoLikeObjectType
Methods:
- Initialize (EventName As String)
- OnStart
- OnStop
- PopInAdsEnabled (popInAds As Boolean)
- SendFeed (message As String, descriptionImageUrl As String, descriptionText As String, descriptionSubText As String, actionVerb As String, actionId As String)
- TestMode (test As Boolean)
- closeMenu
- isLoggedIn As Boolean
- onBackPressed As Boolean
- openActivityFeed
- openChatRooms
- openFeedback
- openFindFriends
- openInbox
- openLeaderboard
- openLogin
- openMenu
- openMyProfile
- openQuiz
- openRadar
- openSignUp
- pauseSwipe
- resumeSwipe
- setTwitterCredentials (twitterAppToken As String, twitterAppSecret As String)
- setScore (Score As Int,LevelAs String)
- showPopInAdNow
Permissions:
- android.permission.ACCESS_NETWORK_STATE
- android.permission.INTERNET
- android.permission.WRITE_EXTERNAL_STORAGE
Properties:
- GoogleAppPublicKey As String [write only]
- Icon As ScringoIcon [write only]
- UserId As String [read only]
- UserPhotoUrl As String [read only]
- ScringoCommentButton
Methods:
- BringToFront
- Initialize
- Invalidate
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RemoveView
- RequestFocus As Boolean
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- setComment (s As SNScringo, objectId As String, objectType As ScringoCommentObjectType, title As String)
Properties:
- Background As Drawable
- Color As Int [write only]
- Enabled As Boolean
- Height As Int
- Left As Int
- Tag As Object
- Top As Int
- Visible As Boolean
- Width As Int
- ScringoLikeButton
Methods:
- BringToFront
- Initialize
- Invalidate
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RemoveView
- RequestFocus As Boolean
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- setLike (s As SNScringo, objectId As String, objectType As ScringoLikeObjectType, objectDesc As String)
Properties:
- Background As Drawable
- Color As Int [write only]
- Enabled As Boolean
- Height As Int
- Left As Int
- Tag As Object
- Top As Int
- Visible As Boolean
- Width As Int
The Zip is too big for this forum, so I uploaded it to my Dropbox account, here is the link:
https://www.dropbox.com/s/fq1i9us3xzy6rtx/ScringoB4A.2.3.5.zip
Enjoy!