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.
3. Fill in the form as follows.
- 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.
5. Select the appropriate Icon for your app and click Next.
6. Select the appropriate Activity Design for your app and click Next.
7. Enter the appropriate Activity Name for your app and click Finish.
8. With above options, the Android Project will be created as follows.
Implementing Your Code
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.
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.
3. Run the project by selecting menus: project’s name > Run as > Android Application.
4. When the pop-up window appears, select Choose a running Android device and then click OK.
5. Check the messages on the Console window, which notify that the installation finishes successfully.
6. Execute the application on the device.