You Are Here:

Community: Developer Discussion Boards

#1 Old S60 3rd Debugger - 2008-09-22, 21:58

Join Date: Jun 2008
Posts: 8
Take0n
Offline
Registered User
Hello

I want to know if it is possible to debug whatever happens in my phone. I mean I want to open apps like camera or bluetooth and then debug it so that I can see what files are running while I am doing what I'm doing...

Is there such app or is it possible to make one?
Reply With Quote

#2 Old Re: S60 3rd Debugger - 2008-09-22, 22:14

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Hi,

I don't know what you mean by "see what files are running while I am doing what I'm doing"

We have some PyS60 Debugging Techniques defined here. May be you can use one of them...

BR,
Croozeus
Reply With Quote

#3 Old Re: S60 3rd Debugger - 2008-09-23, 19:59

Join Date: Jun 2008
Posts: 8
Take0n
Offline
Registered User
Hello and thanks for your reply

I want to make some shortcuts using python.
I made a shortcut to reboot my phone by running the file "starter.exe". I also made a shortcut to the themes section by running the app "psln.exe".

but I don't know which .exe file is for i.e. running bluetooth or standby etc. so I am looking for an application that will tell me what is running every time I run something in my phone. I mean when I click on "active standby" and then "on" something has to be run in order to enable it.. I just want to know which app. Not only for standby but for everything I run on my phone.

Is it possible?

Sorry for my bad English...
Reply With Quote

#4 Old Re: S60 3rd Debugger - 2008-09-23, 20:11

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Well, there is a way by which you can find the .app files for all applications on the device.

Use the appswitch extension:
Code:
>>>import appswitch
>>>appswitch.application_list(0)
It returns tuple with application names. For eg. if it returns u'camera' then !\system\apps\camera\camera.app must exist !

Thus you can find all other files and launch them...

Best Regards,
Croozeus
Reply With Quote

#5 Old Re: S60 3rd Debugger - 2008-09-23, 22:00

Join Date: Jun 2008
Posts: 8
Take0n
Offline
Registered User
I tried following:

Code:
import appswitch
a = appswitch.application_list(0)
print a
and I got following:

Code:
(u'Python', u'Standby mode', u'akncapserver', u'aknnfysrv', u'UpnpNotifAppServer')
What does that mean?

Thanks this might help me but could you please explain what it shows exactly? I will test some things with this but I would appreciate if you could help me by explaining

Thank you very very much
Reply With Quote

#6 Old Re: S60 3rd Debugger - 2008-09-24, 04:33

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
Hi TakeOn

the appswitch.application_list() returns you a lists of tuples. And first tuple which you are getting is applications which are currently running in your device.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#7 Old Re: S60 3rd Debugger - 2008-09-24, 12:15

Join Date: Jun 2008
Posts: 8
Take0n
Offline
Registered User
Thank you gaba88 for that!

Is there a way to enable/disable active standby using python? That's what I am trying to do and the reason I want to see what files are being run is to be able to see the name of active standby so I can enable/disable it..
Reply With Quote

#8 Old Re: S60 3rd Debugger - 2008-09-24, 16:02

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
Quote:
Originally Posted by Take0n View Post
Thank you gaba88 for that!
Is there a way to enable/disable active standby using python?
AFAIK in python we dont have anything to make the active standby enable or disable.

Quote:
Originally Posted by Take0n View Post
That's what I am trying to do and the reason I want to see what files are being run is to be able to see the name of active standby so I can enable/disable it..
I am not getting this part of your question properly can you elaborate it. Hope you dont mind that.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#9 Old Re: S60 3rd Debugger - 2008-09-24, 16:22

Join Date: Dec 2006
Posts: 2,094
Sorcery-ltd's Avatar
Sorcery-ltd
Offline
Forum Nokia Champion
Not every command causes a new executable to be run. You can see that "Standby mode" is running - that one application can have both the normal standby screen and the active version.

I don't think an API to switch between the two is available in Python.

Sorcery
Reply With Quote

#10 Old Re: S60 3rd Debugger - 2008-09-24, 16:29

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
hi
yes sorcery is correct.
In python we can only take a application to background or foreground that also with the help of appswitch extension.

Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#11 Old Re: S60 3rd Debugger - 2008-09-24, 16:51

Join Date: Jul 2008
Posts: 103
ck.umraliya's Avatar
ck.umraliya
Offline
Forum Nokia Champion
Hi All
It will be a really nice work if someone comes up with an extension which can handle active standby in PyThons60.
Hoping and Waiting...
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
3rd and 5th Edition application development liuxg Symbian 146 2009-10-20 09:10
HTTP headers for S60 3rd Ed. Browser Nokia Ron General Browsing 16 2009-09-22 15:28
3rd party dual mode phone app on the S60 3rd edition SDK ZelimirD VoIP 7 2007-11-30 15:49
Problems with MIDlet icon size in application shell on S60 3rd edition devices knorring Mobile Java General 7 2007-09-05 11:38

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia