Ophone SDK initial experience
Write by nine days Yan Ling (jtianling) -- blog.csdn.net/vagrxie
Discuss newsgroups and documents
Background
China's great monopoly leader, and China Mobile, the world's top player, finally took the lead and became the first mobile operator in the world to develop a free operating system. The operating system is named ophone. After I learned the major news from csdn, I put everything on hand and started to follow China Mobile's leader.
Ophone: the official description is as follows;
What is ophone:
Ophone is a basic terminal software and system solution based on Linux and for mobile Internet.
Ophone SDK is a software development kit designed for the ophone platform. It includes ophone API, ophone simulator, development tools, sample code and help documentation.
Well, it's not something about windows. I'm quite satisfied with this. Linux is relatively free. In addition, as we all know, ophone is a secondary development based on Google's Android system (because of such a general concept, therefore, China Mobile does not even need to remind everyone of this point, and this determination does not rely on Android, a relatively mature big tree to take advantage of the cold, I don't rely on Google's reputation to show off my signboard style. PS: China Mobile does not seem to have to rely on the reputation of a foreign company like Google. Who in China does not know China Mobile? In addition to it, how much does Google know ?)
As an IT developer, I personally prefer Google and have heard about Android. Therefore, although I am an online game server programmer, I have also been familiar with eclipse and Java for this purpose, but I have never been determined to devote myself to this industry, just as a hobby to play, after all, there is no Android phone even in China! However, as soon as the mobile phone was launched, I knew whether it was available. With Lenovo's ophone coming soon, the development and application environment of ophone in China was far better than Android, so I added the arrogance of China Mobile in the north and south of China, in the future, the ophone market in China will be much larger than Android. Today, I am determined to follow the footsteps of China Mobile .... In addition, ophone development is actually based on Android (which can be seen immediately below). In this way, my experience in learning ophone will never be wasted and I will walk in any corner of the world, there is still room for survival abroad. For so many reasons above, I am determined to join the ophone field and no one can stop me. Today is a starting point, amen.
Install ophone SDK
Download before installation, but first register in China Mobile, the URL is "http://www.ophonesdn.com/", on my understanding, is ophone-software-develepment-net. First, register, then pass the verification, and then log on. If you leave it blank, go to the topic and download it. the Windows version is:
Http://dl.oms-sdn.com/sdk/ophone-sdk_windows-1.0-setup.jar"
Linux download version:
Http://dl.oms-sdn.com/sdk/ophone-sdk_linux-1.0-setup.jar"
The jar format is a standard Java package format. Needless to say, the ophone development has become familiar with Android and the world's most popular Java language for convenience, I am using the Java language. I am glad to hear this. Some time ago, I watched Java programming ideas for Android for 2 or 3 days.
If the file is not large, more than 100 MB will be installed. Although the ophone installation is extremely simple and user-friendly, China Mobile still provides more user-friendly installation steps, strive to be a fool like teaching.
First, download the following prerequisites:
- Eclipse IDE
- Eclipse 3.4.2 (Ganymede)
- Eclipse jdt plug-in (most Eclipse IDE packages already contain jdt plug-ins)
- WST 3.0.4
- EMF 2.4.2
- GEF 3.4.2
- JDK 5 or JDK 6 (including JRE)
- ADT development tools
- Wdt development tools
- ADT is not compatible with the GNU Java compiler (gcj.
Install all of them first.
Then enter the following command in the installation directory (take windows as an example ):
Java-jar ophone-sdk_windows-1.0-setup.jar
Then follow the management crazy next step.
The attributes after installation are as follows:
Size: 200 MB (210,116,917 bytes)
Occupied Space: 205 MB (215,261,184 bytes)
Usage of 1.5 R3 compared with the latest Android version:
Size: 446 MB (468,160,733 bytes)
Occupied Space: 461 MB (484,167,680 bytes)
It is much smaller, which also reflects China Mobile's optimization for Android (which can be seen in size) and the results of secondary development. Finally, through comparison, the only difference between the two is the name of the tools and some libraries. The same libraries are as follows:
/Tools/lib/jcommon-1.0.12.jar
/Tools/lib/jfreechart-1.0.9-swt.jar
/Tools/lib/jfreechart-1.0.9.jar
/Tools/lib/org. Eclipse. Core. commands_3.2.0.I20060605-1400.jar
/Tools/lib/org. Eclipse. Equinox. common_3.2.0.v20060603.jar
/Tools/lib/org. Eclipse. jface_3.2.0.I20060605-1400.jar
/Tools/lib/swing-worker-1.1.jar
/Tools/lib/swt-awt-win32-3236.dll
/Tools/lib/swt-gdip-win32-3236.dll
/Tools/lib/swt-wgl-win32-3236.dll
/Tools/lib/swt-win32-3236.dll
/Tools/lib/SWT. Jar
We can see that in order to make it easier for everyone and better reflect the spirit of open-source sharing, China Mobile uses Google's jcommon, core and other core libraries without moving them, and uses swing, SWT and other interface libraries are the good news for developers. Closer to each other, I firmly follow the pace of China Mobile.
Next, according to the document, add the user Library and the document in a step-by-step manner. Because ADT has been installed before, it is easy for me. Finally, when I used the simulator provided by China Mobile, it was amazing .... Haha, here is a comparison with the original Android simulator.
Ophone is on the left, Android is on the right, and several icons on the Android are compared with those on the ophone full screen. We can see more built-in functions of ophone. The ophone simulator is familiar with the gorgeous opening of ringtones ~~~, The icons of fetion, monternet, and China Mobile are displayed on the Chinese Culture interface. ophone is a mobile product that is customized in depth... So that I... I decided to save time and use it this month. When I think of an ophone, I must buy it for the first time!
Hello World
According to the tutorial, I have taken a step by step. I am so excited that I can try to develop the android program... No, it's ophone development .. I'm so excited... Ah? Why is it necessary to create an android project for developing the ophone program? This is quite depressing. The name of the entire android SDK has been changed to ophone SDK, and cannot be changed to a small eclipse ADT plug-in? At this point, I doubt the determination of China Mobile's comrades to monopolize the 3G and the smartphone market .... Of course, it's just a bit of a question. Maybe ODT is under intense development.
At first, I created a new Android project on a different screen from the official one... Is it because my ADT is too new ?..... Khan -_-!
Comparison:
Official:
My:
In the build target and Min SDK version columns, I really don't know what to choose .... It's really depressing. Let's look back at the instructions on the China Mobile homepage:
ADT is an Eclipse plug-in provided for ophone application development under Eclipse IDE. If you want to use eclipse as an integrated development environment for debugging and compilation, you must first install ADT.
Download the ADT 0.8.0 ZIP file (you do not need to decompress the file ). You can also find the ADT installation package in the SDK Directory: sdk_folder/tools/ophone/ADT-0.8.0.zip
Dizzy. The version is too new. The official version is eclipse3.4 and ADT 0.8.0.
I am eclipse3.5.0 and adt0.9.1... You cannot downgrade it .... With an uneasy mind, I look forward to China Mobile's high-tech compatibility with the new Android plug-in...
Let's talk about it first.
Renewal icon. Such a program does not need to be modified according to the instructions on the official website. It is an executable Hello World Program. When trying to run it, I found that ..... No way to run as ophone application... dizzy, read the instructions on the home page... The original practice on the official website is also run as Android Application... Do not modify the residual ADT to a deep level ..... The problem is, is it easy for ordinary people in China Mobile to develop an ophone simulator? Is it nice? Who made an official webpage tutorial? Is it true that this is the case for teaching people? Although we know that the ophone program can actually be run in Android, we have to develop the ophone program. Naturally, we have to watch it run in ophone .......
Alas .... In this case, change the hello variable value of the string resource to Android. The running effect is as follows:
Forget it. It's just a flaw in ophone. Let's take a look at what kind of in-depth Android customization and improvements ophone has made by China Mobile, which optimizations or upgrades have been made ......
Refer to the document to get a rough idea:
Ophone api reference
Contents
- Local Search)
- Home)
- Mail)
Well, good. It seems that ophone has made three major changes to Android. Home screen, local search, and mail are important modules:
Ophone home screen is the home screen application in ophone platform. the class defines some constants used by home screen API. if you want to add/change an item on home screen, you can send some intent to the home screen application. then the home screen application will process this action.
Yes, the ophone home screen adds a communication mechanism for the ophone home screen to Android, which looks good.
There are also important features such as local search, which are amazing. The mail feature is naturally more necessary. It is good. It is really an ophone, that is, the name is not false.
Later, I saw an exciting news in the ophone SDK documentation:
Ophone is a basic terminal software and system solution for mobile Internet based on Linux. Ophone SDK is a software development kit designed for the ophone platform. It includes ophone API, ophone simulator, development tools, sample code, and SDK help documentation. Ophone SDK is compatible with Android SDK. Therefore, developers can use both ophone API and Android API when developing ophone applications.
Outlook
It's so powerful !!!! Ophone is compatible with Android APIs. It is a great design... As we all know, Android phones have some advantages, and ophone is compatible with them. Therefore, we bought an ophone, which is equivalent to buying another Android phone at the same time, simply buy one of the top two, but the development difficulty is equivalent to one, which is too powerful, it is good news for both common users and program developers. Since then, ophone applications have been developed without looking back.