Creating Project

 

This page describes how to create an Android application project which uses LG QSlide APIs and run the project on real devices.
 

Creating an Android Project

1. Start Eclipse.
 
2. Select File > New > Android Application Project.

 

mobile_qslide_develop_3.png

 

3. Fill in the form as follows.

 

mobile_qslide_develop_4.png

 

  • Application Name: Enter the appropriate name for your application.
  • Project Name: Enter the appropriate name for your application.
  • Minimum Required SDK: Select the ‘API 17: Android 4.2 (Jelly Bean)’.
    LG QSlide SDK requires the minimum level of API 17.

 

  • Target SDK: Select the appropriate version for your target device.
    In accordance with Android policy changes, the app which sets its target SDK to Android M cannot use the LG QSlide SDK. Android does not allow 3rd party apps (non-preloaded apps) to use some permissions required for LG QSlide SDK as of Android M.

 

  • Compile With: Select the QSlide Add-on (LGE) (API 17).
  • Theme: Select the appropriate style for your application.
    To use LG QSlide SDK, your application should be compiled with LG QSlide library. Also, make sure that you just compile with the library and your application should not include the LG QSlide library itself, because they can conflict with the library already installed on the device. You can do this by configuring the option, ‘compile with’, when you create a project.

 
4. Select Create Project in Workspace and click Next.

 

mobile_qslide_develop_5.png

 

5. Select the appropriate Icon for your app and click Next.

 

mobile_qslide_develop_6.png

 
6. Select the appropriate Activity Design for your app and click Next.

 

mobile_qslide_develop_7.png


7. Enter the appropriate Activity Name for your app and click Finish.

 

mobile_qslide_develop_8.png


8. With above options, the Android Project will be created as follows.

 

mobile_qslide_develop_9.png

 

Implementing Your Code

You can implement your own code with LG QSlide APIs. The API References  page describes how to use LG QSlide APIs. Also, Sample  menu provides sample code explanations.

 

Running an Application

You can run an application developed with LG QSlide SDK on real devices in the same way as other Android applications.
 
1. Connect the device with your PC.

If your PC cannot recognize the device, install the USB driver for LG smartphones from ‘LG Electronics Site’: http://www.lg.com.

 

2. To check that the connection is successful, switch to the DDMS window.
If the connection is successful, you can see the device’s name on the DDMS window in Eclipse.

 

mobile_qslide_develop_10.jpg

 

3. Run the project by selecting menus: project’s name > Run as > Android Application.
 

mobile_qslide_develop_11.png

 
4. When the pop-up window appears, select Choose a running Android device and then click OK.
 

mobile_qslide_develop_12.png

 
5. Check the messages on the Console window, which notify that the installation finishes successfully.
 

mobile_qslide_develop_13.png

 

6. Execute the application on the device.

 

Navigation