Example application showcasing key Harmattan APIs

lavonius | 14 March, 2012 16:17

We have published a new example application for Harmattan developers.

The application's source code is available on harmattan-dev. It can be built in Qt SDK using the enclosed project-file.

The application features several key elements in the Harmattan application programming interface, and thus provides a good starting point for learning about specific technologies and application development for N9 in general.

The initial version of the showcase application concentrates on Qt Mobility interfaces (ranging from maps, multimedia and messaging to visualizing the sensor data with a compass overlaid on camera input).

In the messaging area it provides insight how NFC is easily integrated into an application.

Feedback on the application are best given as comments in this blog entry.

N9 showing the compass in the showcase application.


RSSComments

MultimediaKit

andre.staltz | 14/03/2012, 17:20

This showcase is everything I needed to have great examples of source code for N9.

I have some questions about playing seamlessly looping audio files.

Prior to the release of PR1.2, I've been struggling with getting multiple simultaneous audio to properly work on a N9 app. I have two long audio files (>20sec) that should play simultaneously (mixing them into one file is not enough for my app). Plus, both sounds should loop forever, and there should be no noticeable silence between the loops. I've struggled with this and have tried QML Audio, QMediaPlayer, and even adventured myself through Phonon and gstreamer. Eventually I quit.
Now I noticed that Phonon is not recommended for use anymore. Before I start adventuring myself again with the help of these new examples, I'd like to ask something first.

It is unwise to use .wav as the file type for those audio files that are large.

So I have some questions in the hope that PR1.2 has improved the multimedia API:
Does the MultimediaKit SoundEffect API allow other file formats than .wav? For example, play .ogg as a sound effect would be nice.

Can two SoundEffect be played in parallel?

Can two MultimediaKit Audio be played in parallel?

And in general, what is the recommended API for playing large audio files in parallel?

Thanks, and I'm looking forward to dig in this source code.

Contacts integration examples?

aflegg | 14/03/2012, 21:31

Hi,

Are there any existing, or plans for, examples showing adding a new Account which provides contact data/enrichment? i.e. how Twitter provides contact details, which can be auto-merged?

Thanks in advance.

Great!

oniongarlic | 14/03/2012, 21:32

Thanks

nice

sabbloll | 15/03/2012, 00:55

nicee job

nice

sabbloll | 15/03/2012, 00:56

nice

nicee

sabbloll | 15/03/2012, 00:57

صفحة جديدة 2

 

nice

sabbloll | 15/03/2012, 00:58

صفحة جديدة 1

  
alert("test");
 
SABB
 
 
 
N

Multimedia & accounts

lavonius | 15/03/2012, 10:43

lavonius

Thank you for the positive response.

@Andre: Qt Multimediakit unfortunately has deficiencies when it comes to doing more than playing single files. That is why we took aboard PulseAudio and Gstreamer into the productized API. They are both described in the API library in the developer docs. And as a bonus, they are both used in additional example applications available in the developer.nokia.com site. Smashminer (https://projects.developer.nokia.com/smashminer) uses both PulseAudio and Gstreamer, and Synthesizer (https://projects.developer.nokia.com/synthesizer) uses PulseAudio.

@aflegg: there's definitely plans to have an accounts-related enhancement in an upcoming version to the showcase. Would you happen to have a concrete use case (an additional service from which to merge data) that could be utilized for this purpose?

nice

sabbloll | 20/03/2012, 14:39

niceee

AWESOME!!!

smashrod | 20/03/2012, 21:49

It's very good examples of many API and UX apps!!! Later we need smoke docs for making ContactsPicker and Image picker ))) Now we have great example!!! Thanks!

Great Job!

ikkysleepy | 28/03/2012, 09:05

I really liked the example. Is there anyway you can incorporate gesture examples, in the next release? I really want to convert my HTML5 app (http://nextbart.info) but I'm scared that doing gestures will be difficult in Qt. Doing a form and xml parsing examples would be helpful but not crucial to converting my webapp.

Re: nextbart.info

lavonius | 03/04/2012, 11:28

lavonius

@ikkysleepy: What kind of gestures are you looking for?
Basic touch, drag, pinch and rotation are all easily available, and the showcase application demonstrates the use of the three first.

Re: nextbart.info

ikkysleepy | 07/04/2012, 11:42

I'm looking for the swipe (scroll) horizontal gesture similar to the Pulse News app. This is similar to the gallery gesture but has multiple objects on one screen.

Pulse Video Demo:http://www.youtube.com/watch?v=ErK8BZFqo4g

Another gesture would be the drag and release to update. And last but not least would be click and hold gesture (like when you want to delete an image). I'll take a look at the code to see if I can already do the gesture I'm looking for. Thanks

You must login to post comments. Login
 
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved