I read the Launcher source code which version is ICS. There is a RocketLauncher
class which extends BasicDream
. what is BasicDream
? what can BasicDream
do? I can find this line import android.support.v13.dreams.BasicDream;
, but I can't find any information about it on Internet. Please give me some information to understand it. Thanks!
Update: I found those code in launcher manifest.xml
<activity android:name="com.android.launcher2.RocketLauncher"
android:label="@string/dream_name"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.DREAM" />
</intent-filter>
</activity>
There is a new category android.intent.category.DREAM
, what is it used to do? That RocketLauncher is an Activity
?
It is probably a private library that is enclosed in the APK but not released with the source code. They did the same thing with their market application.
There is only one way to see it and that is to decompile an APK. But this assumes that you have rooted an ICS phone. Which is actually very possible with the emulator.. hmm ponder
when you complete to compile android source, you will acquire "android-support-v13.jar" in "out/host/linux-x86/sdk/android-sdk_eng.wj_linux-x86/extras/android/support/v13" . now ,you can make this jar & android.jar to one jar, replace the android.jar in platforms.
there is "readme.txt" that describe this class in "out/host/linux-x86/sdk/android-sdk_eng.wj_linux-x86/extras/android/support".
As far as I understand, Dream is some sort of screensaver in ICS.
You can find source of BasicDream
in the Android sources in frameworks/support/v13/java/android/support/v13/dreams
or online at the GrepCode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With