Active Topics

 


Reply
Thread Tools
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#471
Originally Posted by UnlimiteD3k View Post
Is it possible to associate your application with a custom action? like web is associated with URL and Maps with geo tags.. just throwing some ideas
There is something like that... But I'm not sure if it works for daemons. Maybe adding a dummy executable that would 'handle' certain tags could work, but that seems quite hackish solution.

Ideally I would like that for all tag uids that have been entered to ProfileMatic, I could tell to the system that "these are handled, don't show thy redundant message". But I couldn't see any APIs that clearly does that.

I will need to experiment with it a bit... throw ideas if you have them, maybe something sticks.
__________________
My N9/N950 projects:
 
Posts: 66 | Thanked: 26 times | Joined on Apr 2010
#472
what about write something to the tag , like the name of the rule as text format , so i just guessing that the nfc api will not tell that is empty and maybe profilematic can handle it in some way...
 
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#473
Originally Posted by e0x View Post
what about write something to the tag , like the name of the rule as text format , so i just guessing that the nfc api will not tell that is empty and maybe profilematic can handle it in some way...
True, it does not tell that it is empty. Instead the system tells it can't handle such tag .
__________________
My N9/N950 projects:
 
Posts: 66 | Thanked: 26 times | Joined on Apr 2010
#474
check this app:
https://gitorious.org/nfctagtool/nfc...l/trees/master
i can handle text
 
Posts: 66 | Thanked: 26 times | Joined on Apr 2010
#475
not sure if you already read this , but maybe have some clue:
http://doc.qt.nokia.com/qtmobility/q...ldmanager.html
 
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#476
Originally Posted by e0x View Post
check this app:
https://gitorious.org/nfctagtool/nfc...l/trees/master
i can handle text
Unfortunately it's not that straight forward. I've tested many of these apps, and the crux of the situation seems to be this:

If an application using NFC is in the foreground, the system only complains about an empty tag. But if the tag has for example text or other content, it doesn't complain that the tag couldn't be handled. However, if there is no application in the foreground that handles NFC, it will complain about not being able to handle the tag.

It can be easily reproduced even with ProfileMatic. If you're collecting tags in the NFC condition page, only empty tags raise the message. Tags that have, for example, Text record do not raise the message.

Now the problem of course is that ProfileMatic's daemon is never in the foreground. So even as it can handle the tag, system will raise the message.

It begins to look like the ugly hack of installing a dummy handler for some tag type (Text maybe?) is the only solution.
__________________
My N9/N950 projects:
 
Posts: 66 | Thanked: 26 times | Joined on Apr 2010
#477
maybe i don't have a clue about what i am talking about but im trying read the profilematic code ( i know almost nothing about qt or C++ ) and reading the API and i don't se where you set the enum property of targetaccessmode something like:

public:
enum TargetAccessMode {
NoTargetAccess = QNearFieldManager::NoTargetAccess,
NdefReadTargetAccess = QNearFieldManager::NdefReadTargetAccess,
NdefWriteTargetAccess = QNearFieldManager::NdefWriteTargetAccess

where QNearFieldManager::NoTargetAccess is
"The application cannot access NFC capabilities."
so don't try/fire the notification error about not know how handle the tag content.
 

The Following User Says Thank You to e0x For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#478
Originally Posted by e0x View Post
maybe i don't have a clue about what i am talking about but im trying read the profilematic code ( i know almost nothing about qt or C++ ) and reading the API and i don't se where you set the enum property of targetaccessmode something like:
First of all thanks for taking the extra step to look at the code! You read it correctly.

I don't think setting those modes will help, since the ProfileMatic's UI uses the same kind of code. And as I wrote earlier, if you have ProfileMatic's UI open on the NFC condition page and tap a tag with content then system doesn't display the message. But if it's in background, system gives the message. So it seems to be related to whether there is a NFC application in the foreground if that message is displayed or not.

But, I will nevertheless try if setting target access mode would help.
__________________
My N9/N950 projects:
 
Posts: 61 | Thanked: 29 times | Joined on Nov 2011
#479
What if you approached Nokia with an enhancement/bug request so that maybe they include it in the next update hopefully
 
Posts: 1,320 | Thanked: 915 times | Joined on Feb 2010
#480
Originally Posted by UnlimiteD3k View Post
What if you approached Nokia with an enhancement/bug request so that maybe they include it in the next update hopefully
That isn't an option unfortunately, the next update will probably be the last and it has been frozen for a month or so. The bugzilla no longer accepts new bugs the only update we will get now is if a security breach needs to be closed similar to what they did on the N900 with PR1.3.1
__________________
Well Nokia do at least know how to build a decent phone, just apparently don't know how to support it..

N900 Died Replaced with N8, Requested E7, "Accidentally Broke E7", Now rolling with an N9 and im loving it!


My Contributions

N900 Conversations Wiki Page
 

The Following User Says Thank You to godofwar424 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:28.