robin writes:
> Hi,
>
> I would like to be able to access some programs in qtmoko faster, so my
> question is: Is there either a way to
>
> to run an app directly when you press the aux button
>
> and if so, how can I distinguish the length of a press (I know that the
> old android version did start three different processes depending on the
> length of time you pressed the power button (very short, ~2sec, ~4secs).
I'm afraid I can't remember this, even though I know I have looked at it
in the past. I think QtMoko just supports two press durations: short
and long.
> and if this is all not possible, could someone point me to where I should
> start reading to be able to change/extend the homescreen, to add any icon
> with a call of that application I want to run.
I've attached two patches that maybe will give a small clue here.
> and even more advanced is there any chance of bind the this process somehow
> to a single icon:
> -> Application -> QX -> Select Navit -> Click upArrow in Menu -> Click Launch
Sorry, no idea - although this is certainly something I've wanted to.
Regards,
Neil
>From 2f559f5893d2f150479d96e5926532d3462e569d Mon Sep 17 00:00:00 2001
From: Neil Jerram
Date: Thu, 6 Dec 2012 21:23:30 +
Subject: [PATCH 1/2] themedhomescreen: Support TaskManager/showRunningTasks()
as an action
TaskManager/showRunningTasks() pops up a window with 4 tabs: Favorites,
Recent, Frequent and Running, with the Running tab showing initially.
I think this is more useful than the Favorites/select() action, which
only provides the content of the Favorites tab, and would like to bind
my home page Star icon to it. Step 1 for that is to make it
available as a bindable action.
---
src/server/phone/homescreen/themed/themedhomescreen.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/server/phone/homescreen/themed/themedhomescreen.cpp b/src/server/phone/homescreen/themed/themedhomescreen.cpp
index d70e52e..2acb47d 100644
--- a/src/server/phone/homescreen/themed/themedhomescreen.cpp
+++ b/src/server/phone/homescreen/themed/themedhomescreen.cpp
@@ -349,6 +349,9 @@ void ThemedHomeScreen::themeItemClicked(ThemeItem *item)
} else if (in == "favorites") {
QtopiaServiceRequest e( "Favorites", "select()" );
e.send();
+} else if (in == "taskmanager") {
+QtopiaServiceRequest e( "TaskManager", "showRunningTasks()" );
+e.send();
} else if (in == "contacts") {
QtopiaIpcEnvelope e("QPE/Application/addressbook", "raise()");
} else if( in == "dialer" ) {
--
1.8.5.3
>From 2768568c4cdfd7f9fa0151c91e7928d5148ce7b8 Mon Sep 17 00:00:00 2001
From: Neil Jerram
Date: Thu, 6 Dec 2012 21:23:30 +
Subject: [PATCH 2/2] Map Star on the home page to whole task manager, not just
Favorites tab
---
etc/themes/mokofaen/home.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/themes/mokofaen/home.xml b/etc/themes/mokofaen/home.xml
index 1380bc2..36d808c 100755
--- a/etc/themes/mokofaen/home.xml
+++ b/etc/themes/mokofaen/home.xml
@@ -113,7 +113,7 @@
-
+
--
1.8.5.3
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community