Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is "BasicDream" in android ICS?

Tags:

android

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?

like image 977
Judy Avatar asked Jan 19 '12 03:01

Judy


3 Answers

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

like image 148
JoxTraex Avatar answered Nov 07 '22 20:11

JoxTraex


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".

like image 34
wj32166 Avatar answered Nov 07 '22 20:11

wj32166


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.

like image 1
Sergey Glotov Avatar answered Nov 07 '22 20:11

Sergey Glotov