it is possible to start a python apps when you start your phone ? Im using s60v2 N70-1 .. Is there a python code autostart for my phone ? Please help ..

Dani AI

Generated

Short answer: yes — but how you do it depends on the platform and signing. The N70 is Series‑60 2nd Edition FP3 (S60v2), so the easiest one‑click “autostart flag” approach that works on S60 3rd‑edition devices isn’t directly the same on your phone. (en.wikipedia.org)

As and hinted, the normal PyS60 workflow is to build a standalone SIS with py2sis/Ensymble and, when the platform supports it, register the package for automatic launch — but registration rules differ by S60 version and usually require an officially signed package. For packaging and merging the Python runtime see a practical py2sis how‑to. (samontab.com)

Concrete approaches you can use on an N70 (S60v2 FP3):

  • Easiest (no C++): use a third‑party autostart manager (Power Boot / ExeMaster / similar) to tell the phone to launch your installed Python app at boot. This avoids native coding but requires the manager app to be installed/configured. (rushlywritten.com)

  • Proper/native (reliable): write a tiny native component that the system will run at boot and that launches your Python script. On S60v2 this is typically done with either the Start‑On‑Boot API (Symbian OS 7.0+ variants) or by implementing a recognizer/watchdog that spawns your app after boot. The recognizer pattern requires a small C++ MDL/EXEDLL which should spawn a thread and wait (≈30–45s) before launching the real app so system services are ready. See the recognizer/watchdog discussion and example code. (mikie.iki.fi)

Example (Startup resource used on S60 3rd / Startup‑list method — shows the idea; S60v2 recognizer uses C++ instead):

#include <startupitem.rh>

RESOURCE STARTUP_ITEM_INFO mystart
{
  executable_name = "!:/sys/bin/MyApp.exe";
  recovery = EStartupItemExPolicyNone;
}

You add that RSS to the project (MMP) and make sure the resulting .rsc is copied into the phone’s import directory during install; autostart registration normally requires a properly signed installer (self‑signed installers cannot register for startup). (developer.aliyun.com)

Practical recommendation: if C++ is unfamiliar, package your script with py2sis (create a merged SIS that contains Python), test launching from the menu, then either (A) install a third‑party autostarter on the phone, or (B) reuse an existing open‑source recognizer/watchdog sample (Mika Raento’s page links public example code) and adapt its small C++ stub to exec the Python EXE. Also ensure the final SIS is signed if you need startup registration. (mikie.iki.fi)

References: Mika Raento — autostart/recognizer notes (recognizer + watchdog examples), S60 platform overview, and py2sis packaging tutorial. (mikie.iki.fi)

Recommended Answers

All 3 Replies

py2sis should support autostart since version 1.4.1, quote

Changes in 1.4.1 from 1.4.0:
-----------------------------
* telephone module improved
* position module improved
* autostart support added to py2sis

It is part of Ensymble You must have sis officially signed:

    --autostart
    -g

Flag to control automatic startup of the application. On S60 3rd Edition
phones, an application can register itself to be automatically started
when the phone is turned on.

Note: Self-signed applications and applications with UID in the
unprotected range cannot register to be automatically started (see
options "--uid" and "--cert" above).

please give me an example for start on boot api s60 2nd edition fp3 .. or how to use it and how to use recognizer ? thankyou so much

there is no example needed. just pack your script with py2sis application and type y for autostart in its wizard. thats it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.