How to custom my own home screen?

by water » Fri, 13 Feb 2009 02:06:24 GMT

Sponsored Links
 Android phone has a default home screen,a clock in the middle,and four
icons in the bottom,
i want to change this layout,
May i develop a application,after i installed it,it replace the
default home screen?


How to custom my own home screen?

by Scynasty » Fri, 13 Feb 2009 04:23:25 GMT

 add    <category android:name="android.intent.category.HOME" />  in
the intent-filter of the activity you want as the home screen. when
the home button is clicked it will ask which home screen you want to


Sponsored Links

Other Threads

1. how to use camera application without sd card detect?

Hi, All,

    There is a question I need for help. When I was using the camera
application, the ERROR: Please insert SD card before using camera
jumped out because the driver of sd card haven't been porting
properly. Is there anyway to use android camera application without sd


2. Question about linking to Android camera libraries from C++

Goal: I am trying to gain access to raw camera data on the G1 from native
code (JNI C++) so that I can do real time image processing on camera frames
at 15 fps. This will not work in the Java API because it takes too long for
the camera preview callback to load the data.

Setup: I am using the CodeSourcery C++ cross-compilation toolchain for ARM
development on Windows. I include the relevant header files from the
source code and create a shared library object using the following commands
(my project name is flow):

arm-none-linux-gnueabi-g++ -I"C:\Program Files\Java\jdk1.6.0_11\include"
 -I"C:\Program Files\Java\jdk1.6.0_11\include\linux"
 -I"C:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\msm7k"
 -fpic -c flow.c

 --dynamic-linker /system/bin/linker -nostdlib -I /system/bin/linker
 -rpath-link /system/lib
 -L"C:\Program Files\CodeSourcery\Sourcery G++
Lite\arm-none-linux-gnueabi\lib\ldscripts" -L.
 -shared -o flow.o
 -z now

where contains:
 -lcameraservice -lcamera -lui -lpixelflinger -lhardware -lgps -lcorecg
-lOmxH264Dec -lutils
 -lqcamera -lwpa_client -lnetutils -lcutils -lrpc -llog -lz -lstdc++ -lm

In order to link, I pulled copies of all the libraries in the /system/lib
folder on the device to my computer. Then I take this shared library object
and copy it to the resource directory of my Java Android project in
This Android activity uses System.load() to load my shared object and then
call the functions in the shared object from Java by standard JNI.

What works: I am able to run activities on the phone that call JNI
which contain calls to Android functions. For example, I was able to write
message to the log and call android::CameraService::instantiate() and see
the log messages in the ddms de{*filter*}.

Problem: The camera libraries that I would like to interface with are using
a template class sp. A function I want to use returns type:
android::sp<android::CameraHardwareInterface>. As soon as I declare a
variable of this type, the constructor and destructor are required. Despite
lengthy efforts, I have not been able to get a program to run that contains
this type declaration. The code builds and links fine on my computer,
without warnings, but the Activity crashes immediately upon execution and
the ddms de{*filter*} just says that my shared object is "not found" whenever
this type declaration is present. I do not know how to get any more
debug messages from the dynamic linker.

What I've tried: I made a batch file that scans through all the libraries
using arm-none-linux-gnueabi-nm -C -D to find the symbols needed to declare
this type. I believe that my file contains all necessary
libraries, however I am not sure. The code for the constructor and
destructor of sp is directly in the header files that I have included and
the only functions they reference are incStrong and decStrong, which are
found in, which I have linked to. I also sorted the relevant
libraries based on dependencies obtained using
arm-none-linux-gnueabi-objdump -p as can be seen in the file
above. I also tried using an alternate constructor by passing in a null

 android::QualcommCameraHardware *qcam = NULL;
 android::sp<android::CameraHardwareInterface> cam(qcam);
 //android::sp<android::CameraHardwareInterface> cam;

My C++ function really only contains these lines, a call to
__android_log_write, and return.

Question: Any ideas on how to get this to run without crashing?


3. How to add app calendar on the G1 emulator?

4. How can I get the mms in my program?

5. Android PC connectivity

6. Testing Sync Application - Contacts and Calendar

7. Data syncronization-- Contacts and Calendar