Skip to Content
Author's profile photo Jitendra Kansal

SUP: Installing Multiple HWC on Android Simulator

Objective: This document will give a detailed description how to install more than one hybrid web container on android simulator.

 

Tools Requirement: SUP 2.2.x, Eclipse Junos, Android Simulator

 

I am sure you must have tried with installing HWC on Android Simulator and must have done various customization for Android.

 

Procedure:

 

this will give step by step procedure for installing for than one container on Android Simulator.

 

1. Import the Hybrid Web Container project into the Eclipse.

 

  • File>Import>Existing Projects into Workspace
  • Select Archive file Android_HWC_2.2.4 available at C:\Sybase\UnwiredPlatform\MobileSDK22\HybridApp\Containers\Android

 

Capture1.PNG

 

2. Open the AndroidManifest.xml file

 

  • At the Mainfest tab, you must be seeing com.sybase.hwc as package name. You change it to some other name lets say com.sybase.hwcNew

 

Capture12.PNG

 

 

 

  • Replace all the references belong to com.sybase.hwc to com.sybase.hwcNew in AndroidMainfest.xml file
  • Save the project

 

3. Go to main project path HyrbridWebContainer>src>com.sybase.hwc

 

  • Right click >Refactor>Rename and change it to the new package name com.sybase.hwcNew (as mentioned in Step 2)

 

 

Capture13.PNG

 

 

4. To change the application name, open strings.xml file available at  HybridWebContainer>res>values

 

e.g.

 

    

     <!– Container –>

   <string name=”app_short_name”>Hybrid Web Container2</string>

          <string name=”hybrid_web_container”>Hybrid Web Container2</string>

 

NOTE:   You can change the new HWC app icon for differentiating this app from others.

Replace the icon.png image file with new image icon in drawable-hdpi, drawable-ldpi, drawable-mdpi files under  <project name>res

 

 

 

Capture123.PNG

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Raman Korrapati
      Raman Korrapati

      Simple and nice. Thanks for sharing

      Author's profile photo Jitendra Kansal
      Jitendra Kansal
      Blog Post Author

      thanks Buddy !!!