Hi Wes,
Thanks a lot for your detailed input.

There's no documentation about this configuration around, am I correct?
I googled but could not find any information.

The reason I need to build a web app with fennec kiosk mode is to
share the app as a hybridApp
(like Phonegap not based on native WebView but on Gekko engine which
is available for WebRTC etc).


So far, here's what' I've done according to your info:

mobile/android/base/AndroidManifest.xml.in
line 85:

85         <activity android:name=".App"
86                   android:label="@MOZ_APP_
DISPLAYNAME@"
87
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize"
88
android:windowSoftInputMode="stateUnspecified|adjustResize"
89                   android:launchMode="singleTask"
90                   android:theme="@style/Gecko.App">

is replaced to

1         <activity android:name=".WebApps$WebApp@APPNUM@"
2                   android:label="@string/webapp_generic_name"
3
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize"
4
android:windowSoftInputMode="stateUnspecified|adjustResize"
5                   android:launchMode="singleTask"
6                   android:taskAffinity="org.mozilla.gecko.WEBAPP@APPNUM@"
7                   android:process=":@[email protected]@APPNUM@"
8                   android:excludeFromRecents="true"
9                   android:theme="@style/Gecko.App">
10             <intent-filter>
11                 <action android:name="org.mozilla.gecko.WEBAPP@APPNUM@"
/>
12             </intent-filter>


and for URL load issue that you kindly suggested;
mobile/android/base/WebAppImpl.java

I've already done with adding
mobile/android/base/GeckoApp.java
around line 1376

  passedUri
= "file:///data/data/com.myapp/distribution/extensions/com.myapp@me
/content/face.html";

so I have not modifled
mobile/android/base/WebAppImpl.java

then build and pakcage and installed to Android emulator.

--------------------------------------------------------------------------------------------------
UPDATE

since
<activity android:name=".WebApps$WebApp@APPNUM@"
...

seems to reflect  to AndroidManifest.XML at all, I've changed

<activity android:name=".WebApps$WebApp0"
....
Here is the code (Diff)

mobile/android/base/AndroidManifest.xml.in
Update AndroidManifest.xml.in

https://github.com/kenokabe/fennecBuild/commit/73af0c4592855d223fdcf8ce14a873e2af4987da#diff-3448baf549687364d498775bdc688187

With this configuration, I had an error on installing device

    pkg: /data/local/tmp/fennec-27.0.
en-US.android-i386.apk
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

Finally, here is the
decompiled AndroidManifest.xml from fennec-27.0.en-US.android-i386.apk
with the new config

https://github.com/kenokabe/fennecBuild/blob/master/AndroidManifest.xml

and it's claimed as MANIFEST_MALFORMED

What is wrong? Please advise.
Thanks


Ken


On Thu, Dec 12, 2013 at 5:53 AM, Ken OKABE <[email protected]> wrote:

> Curretnly, I'm trying to launch fennec mobile with fullscreen mode which
> does not contain browser navigation tool bar such as URL box and buttons
> (kiosk mode).
>
> I have figured out that I need to tweak the sorce:
> mobile/android/base/BrowserApp.java
> mobile/android/base/GekkkoApp.java
> and I tried various things for a while, but no success so far.
>
> I know there is fullscreen mode add-on, but it works only after UI.ready.
>
> Do you know where to tweak by chance? If so, please teach me.
>
> Thank you.
>
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to