Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on May 2010
#31
I start my app on device, using mad developer program. And it returns me only 10 contacts, instead of 30-40 (don't remember exact number). Then I tried to install qt mobility examples (devel-extras, if i'm not mistaken). It installed a lot of example applications, and I found phonebook example among them. It shows all contacts (in wrong encoding, but that is not a big problem), that I have. How can that be?

P.S. thanks for the link to final Qt Mobility documentation!
 
Posts: 80 | Thanked: 53 times | Joined on Feb 2010 @ Berlin, Germany
#32
Originally Posted by tpaixao View Post
dumb me, I was trying to compile for the simulator, which doesn't have mobility installed.
Qt Simulator has Mobility, as long as you installed the full SDK (or selected Mobility).
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#33
Originally Posted by theorlangur View Post
How can that be?
That's hard to say without looking into your code. Do you have it somewhere publicly? There should not be any difference in starting the application as user or with MADDE.

Daniel
 
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#34
Originally Posted by theorlangur View Post
I start my app on device, using mad developer program. And it returns me only 10 contacts, instead of 30-40 (don't remember exact number). Then I tried to install qt mobility examples (devel-extras, if i'm not mistaken). It installed a lot of example applications, and I found phonebook example among them. It shows all contacts (in wrong encoding, but that is not a big problem), that I have. How can that be?

P.S. thanks for the link to final Qt Mobility documentation!
If you followed the instructions of the wiki, your MADDE starts the program as "developer" on the phone. This user has its own contacts and can only see those with skype enabled which belong to the normal "user".

You have to enable ssh login for the "user" with public key authentication - and everything works well.
 

The Following 4 Users Say Thank You to gri For This Useful Post:
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#35
Originally Posted by gri View Post
If you followed the instructions of the wiki, your MADDE starts the program as "developer" on the phone. This user has its own contacts and can only see those with skype enabled which belong to the normal "user".
Thought about it at first too, but mad-developer executes the program as user, even though it uses "developer" to login over ssh to it.

Daniel
 
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#36
Originally Posted by danielwilms View Post
Thought about it at first too, but mad-developer executes the program as user, even though it uses "developer" to login over ssh to it.

Daniel
Doesn't work for me.

Code:
#include <QtGui/QApplication>
#include <QtCore/QDir>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QByteArray homePath = QDir::homePath().toUtf8();
    printf("Home Path: %s\n", homePath.constData());

    return 0;
}
Starting with QtCreator as "developer": Home Path: /home/developer
Starting as "user": /home/user
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#37
that's strange. I used in my test-program whoami and it returned "user". Will try to get more information about that.

Daniel
 
Posts: 3 | Thanked: 0 times | Joined on May 2010
#38
gri, thanks, I think that's the point! I'll check it, but later( when'll come home).
Originally Posted by gri View Post
You have to enable ssh login for the "user" with public key authentication - and everything works well.
How that should be done?
 
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#39
Originally Posted by theorlangur View Post
gri, thanks, I think that's the point! I'll check it, but later( when'll come home).

How that should be done?
http://talk.maemo.org/showthread.php?t=41547
 

The Following User Says Thank You to gri For This Useful Post:
Posts: 124 | Thanked: 10 times | Joined on Jan 2007 @ Italy
#40
Originally Posted by gri View Post
If you followed the instructions of the wiki, your MADDE starts the program as "developer" on the phone. This user has its own contacts and can only see those with skype enabled which belong to the normal "user".

You have to enable ssh login for the "user" with public key authentication - and everything works well.
dude i've always to thank you! i was getting mad with this stuff, i'm gonna enable ssh

btw i've make qt mobility works with nokia sdk installing new madde version
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:22.