Skip to main content

Ready to market your stellar app?

Samsung Developer Program is your gateway to app monetization success.

Learn More

Samsung Developer Program

Look Edge Simulator

You can use the Edge Simulator to develop Edge Single Plus panels, Edge feeds, their UI operations, and their user-available configuration.  The Edge Simulator will run on Android virtual devices (such as Android Studio) and on non-Edge Samsung devices running Android Marshmallow (M) OS or above.

Download, Development, and Upload of Edge APKs using the Edge Simulator.png

 

Edge Simulator on an Android virtual device

Edge Simulator on an Android Virtual Device

Edge Simulator on a non-Edge Samsung Android device

Edge Simulator on a non-Edge Samsung Device

 

File Structure

The following file differences in result when generating Edge panel or feed APKs with the Edge SDK or the Edge Simulator.

NOTE:  Prior to distributing your Edge panel or feed APKs developed using the Edge Simulator, you must build your APKs using the Edge SDK in order to create the Edge SDK files.

 

Tools > Edge Simulator Example Files

Sim_Edge_Tools_Edge Simulator_Files.png

edge_simulator_v1.3.1.apk

edge_simulator_v1.3.1.jar

sdk-v1.0.0.jar

How_to_use_the_Edge_Simulator.pdf

OpenSourceAnnouncement_EdgeSimulator.html

sim_test.jks

 

Libs Example Files (Edge Simulator development Edge panels and feeds)

Sim_Edge_Libs_Files.png

edge_simulator_v1.3.1.jar

sdk-v1.0.0.jar

 

Libs Example Files (release version Edge panels and feeds)

Sim_Edge_Libs_Files.png

look_v1.3.1.jar

sdk-v1.0.0.jar


Edge Panel and Feed Development

You can use the Edge Simulator to develop and test your Edge panel / feed operations.

 

To use the Edge Simulator to develop an Edge Single Plus panel of Edge Feed:

NOTE: The maximum number of Edge panels or feeds that can be installed on the Edge Simulator (or any Samsung Edge device) is 20.

  • If your Edge panel or feed code uses a ListView, you must set Edge Simulator permissions (see the next section below).
  • For an Android virtual device, ensure it is properly configured: Nexus 6. 5.x 1440x2560560dpi, M OS or above.
  • For a Samsung Android device, ensure it is running Android Marshmallow M OS or above.
  1. Install the Edge Simulator (edge_simulator_[version].apk) on an Android virtual device or Samsung Android device.
  2. Create your Edge panel or feed with the Simulator SDK (edge_simulator_[version].jar).
    For details, see the Integrating Look Edge section.

    Sim_Create_Edge_App.png
  3. Run and debug your Edge panel or feed app in the Edge Simulator.
    Sim_Run_Debug_Edge_App.png
     
  4. Before distributing your Edge panel or feed APK:
    1. Replace the Simulator SDK JAR file (edge_simulator_[version].jar) with the Edge SDK JAR file (look_[version].jar).
    2. Build your APK again.
       

Setting Simulator Permissions when using a ListView

If your Edge panel or feed app code specifies setRemoteAdapter() for a ListView, the Edge Simulator needs special permissions to get information from the panel’s RemoteViewService.

 

To set permissions for an Edge panel's ListView:

  1. Specify the sharedUserId in AndriodManifest.xml.
    Sim_Specify_sharedUserId.png
     
  2. Add metadata (such as, appwidget) to AndroidManifest.xml.
    Sim_Add_Metadata.png
     
  3. Add a bind-permission to simulator.apk by adb.
    Sim_Add_Bind_Permission.png
     
  4. Use the attached sign-key (sim_test.jks).
  • Key Alias: androiddebugkey
  • Key Password: android
  1. Before you release the APK:
    1. Remove any code related to the simulator.
    2. Change the sign-key to your existing sign-key.

 

NOTE:  During operation, if your Edge panel or feed displays an error text (for example, “empty”),  the remoteView may be empty.  Use the Edge Simulator SDK (edge_simulator_[version].jar) and not the Edge SDK (look_[version].jar, sdk-[version].jar).

 

 

 

  • Was this article helpful?