Using Multiple Hybrid Web Containers on the Same Android Device
Configure the Hybrid Web Container so that two or
more Hybrid Web Containers co-exist on the same Android device.
Open
the AndroidManifest.xml file, which is located under the
HybridWebContainer project folder.
In the manifest tag, change the "com.sybase.hwc"
package attribute to something else.
Search the file and change any references to "com.sybase.hwc" to
the new package from step 2.
Note: Do not change any references to com.sybase.hybridApp, as these
refer to the library jar files.
Save the file and choose Yes when asked if you want to
change your launch configuration.
Change to the Eclipse Java perspective.
Right-click the package under src (it will be the old package
name, com.sybase.hwc) and choose Refactor > Rename.
Set the name to be the package name you set in step 2.
Open
the CustomizationHelper.java file, which is located in
...\HybridWebContainer\src\com\sybase\hwc, and find the
method named getAppId():
By default getAppId() returns
Brand.OEM_HYBRIDAPP_APPID. Change it to return a String that
uniquely identifies your application.
You must now add an application with a matching App id in
SAP Control Center, and if you want to use the automatic
registration option, you must also add an Application Connection Template.
Now when you build the Hybrid Web Container, you
can install it on a device that already has a Hybrid Web Container
installed (but with a different package name). You should make other changes to your
new Hybrid Web Container, such as app_short_name in the
strings.xml file, or the icon .png image, to differentiate
the Hybrid Web Containers on the device.