A method of refactoring Android applications for smart watches
First Claim
1. A method of refactoring Android applications for smart watches, comprising:
- 1) for a given Android application, creating an empty folder Mobile, migrating source codes of the Android application to the Mobile folder, and automatically generating a Wear module in a root of the Android application;
2) adding codes to support smart watch features in the Wear module, and adding a watch-specific dependency library; and
copying the source codes of the Android application to the Wear module;
3) replacing API in source codes of the Android application copied into the Wear module by an API suitable for Android Wear for smart watches; and
4) reducing page layout of the Android application by a reduction ratio corresponding to size ratio of a smart phone to a smart watch;
identifying all view components on a page of the Android application, reducing down to a dimension of each of the view components to fit a screen width of the smart watch, and sorting the view components based on priorities.
0 Assignments
0 Petitions
Accused Products
Abstract
The present invention discloses a method of refactoring Android applications for smart watches. The present method includes: 1) for a given Android application, creating an empty folder Mobile, migrating source codes of the Android application to the Mobile folder, and generating a Wear module in a root of the Android application; 2) adding codes to support smart watch features in the Wear module, and adding a watch-specific dependency library; copying the source codes of the Android application to the Wear module; 3) replaced API in the Wear module with API for watch applications; and 4) reducing page layout of the Android application by a reduction ratio corresponding to size ratio of a smart phone to a smart watch; identifying all view components on a page of the Android application, reducing down to a dimension of each of the view components to fit a screen width of the smart watch, and sorting the view components based on priorities. The disclosed method reduces the development and maintenance costs for smart watch applications.
50 Citations
6 Claims
-
1. A method of refactoring Android applications for smart watches, comprising:
-
1) for a given Android application, creating an empty folder Mobile, migrating source codes of the Android application to the Mobile folder, and automatically generating a Wear module in a root of the Android application; 2) adding codes to support smart watch features in the Wear module, and adding a watch-specific dependency library; and
copying the source codes of the Android application to the Wear module;3) replacing API in source codes of the Android application copied into the Wear module by an API suitable for Android Wear for smart watches; and 4) reducing page layout of the Android application by a reduction ratio corresponding to size ratio of a smart phone to a smart watch;
identifying all view components on a page of the Android application, reducing down to a dimension of each of the view components to fit a screen width of the smart watch, and sorting the view components based on priorities. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification