icesimon's Blog

  • About Me
  • Archive
  • feeds

Posts match “ Sample ” tag:

over 8 years ago

Smaato - Advertisement service for BlackBerry 10 Cascades Apps

-- Updated 2014-07-04 --
If you downloaded the sample project yesterday, you need to re-download the project.
This version fix the "applicationUI.hpp" can't be found problem.
And, don't forget this or your will got an erro of "cannot find -lSmaatoSDKDevice"
The Smaato static library included within the sample is from Smaato SDK for BlackBery 10 v1.1.2. To ensure you are running the latest, please download the latest SDK for Smaato's website and replace the SmaatoSDK folder within the project.

BlackBerry announced Smaato as their new Advertisement service partner on BlackBerry 10.
I've used Smaato in my apps for a long time (since 2013/10, after Jam Asia).

Let's see how to integrated Smaato SDK into your Cascades apps!

1. Read the introduction about Smaato!

http://devblog.blackberry.com/2014/07/smaato/

2. Download the Smaato sample project from BlackBerry Github

https://github.com/blackberry/Cascades-Community-Samples/tree/master/SmaatoAdSDKSample

3. Download the Smaato SDK

http://www.smaato.com/sdks/

<1> You need to sign up or login first


<2> Go to SDK Download page


<3> Select BlackBerry 10 SDK and download it!

<4> Check the downloaded folder and extract the file "Smaato-SmaatoSDK-BB10-v1.1.3-2014-07-02-A.zip"


<5> Copy the "SmaatoSDK" folder and replace the SmaatoSDK folder within the project.


4. Build the project and see how the AD works!


5. Input your own adSpaceId and publisherId and check the advertisements in your apps!

That's it! Actually it is really an easy way to put Ads in your apps.
You can also add more filters/ restrictions to help they provide much more precisely ads for your apps.

Sometimes due to the fillrate or regional issue, you may not receive ads...
Don't worry, try to change the category of ads you'd like to show.

Enjoy this new AD Service on BlackBerry 10!

  • BlackBerry10
  • BlcakBerry
  • Cascades
  • Advertisement
  • ad
  • Smaato
  • sdk
  • github
  • Sample
  • Simon
  • July 05, 2014 00:59
  • Permalink
  • Comments
 
over 8 years ago

Create GuidePage in Cascades

As a developer, I think many other developers may think how to teach users to use my application
We provide screenshots of the apps when we upload to any app markets, some devs will also record a video to tell users who to operate.

The most common way is to put a "Guide Page" inside the app, not just "Tips", but a continuous information to let user understand the major features.

There are three kinds of implementations here.

1. Use a scrollview with a super large image

Advantage:

You can simply scroll from left to right, put a button at the last page to close this Guide Page.

Disadvantage:

The image may be too large, and hard to change / modify parts.

2. Use a scrollview with several images

Advantage:

You can simply scroll from left to right, put a button at the last page to close this Guide Page, can change parts easier than first method.

Disadvantage:

Still hard to change / modify parts.

3. Use a scrollview with custom containers

Advantage:

Custom containers are much more flexible

Disadvantage:

I don't know, haha!

Here are the sample from Github

For Cascades 10.1 /10.2 SDK

https://github.com/icetingyu/AppGuidePage

For Cascades 10.3 SDK

https://github.com/icetingyu/AppGuidePageDesignUnit

In AppGuidePageDesignUnit project, I rewrite the project with design unit to support even Q30 (Passport), not just pixel related.
If you also want to learn use design unit, you can also check this project :D

If you have any problem, just send me a mail!
bsebadmin@gmail.com

Hope you will enjoy the sample!

Simon

  • BlackBerry
  • BlackBerry10
  • Cascades
  • 10.1
  • 10.2
  • 10.3
  • guide
  • Page
  • Sample
  • Containter
  • image
  • ScrollView
  • DesignUnit
  • pixel
  • July 26, 2014 12:26
  • Permalink
  • Comments
 

Copyright © 2013 icesimon . Powered by Logdown.
Based on work at subtlepatterns.com.