Android Architecture Laye

by Dj » Tue, 16 Sep 2008 02:39:15 GMT

Sponsored Links
 Hi everyone,

I have a question about android architecture layer. On top of "linux-
kernel" layer there are "libraries" layer and located next to it is
"Android runtime" layer.

My question is why the "android runtime" layer located next to
"libraries" layer ? Why not on top of the "libraries" layer or below
it ?

Thanks for the answer.



Other Threads

1. How to listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled?

Hi Guys,

I have an application which I'm going to enable Move to SD for. The problem
is that I have some scheduled alarms (for running some background tasks) so
if the application has already been moved to SD and the SD is mounted as a
disk drive, all my scheduled alarms and background services will be
terminated. Obviously my app should listen for
"ACTION_EXTERNAL_APPLICATIONS_AVAILABLE" broadcast to register/schedule the
alarms again as a classic solution...

Now the problem I'm facing is that the applications which have been moved to
SD wouldn't receive "ACTION_EXTERNAL_APPLICATIONS_AVAILABLE"! The end result
is that my application will never be able to resume its alarms and services
in such cases!!

Further reference (notice the sentence "Note that the packages in this list
do not receive this broadcast"):

Also I've found a bug reported for this problem but it's still not accepted
after 7 months:

Any solution? Any clues?



2. Emulator crashes when launching a new Activity


I've got a problem when I'm trying to create a new activity when I
click on a button.
My virtual device (emulator) crashes when I click on the button saying
like: "The application has stopped unexpectedly"

Could you please help?

My main activity I launch my application is LaunchRecruitMobile as
below. I'd like this activity to lauch another activity MenuMain when
I click on a button.

public class LaunchRecruitMobile extends Activity {

   public void onCreate(Bundle savedInstanceState) {

       btn.setOnClickListener(new Button.OnClickListener() {
           public void onClick(View v) {
                Intent intent = new Intent(LaunchRecruitMobile.this,

   } //end of constructor


 public class MenuMain extends Activity {

    public void onCreate(Bundle savedInstanceState) {


In the manifest I've only got:
<application android:icon="@drawable/icon" android:label="@string/
       <activity android:name=".LaunchRecruitMobile"
               <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />

I've tried the same in adding the following but doesn't work neither:
<activity android:name=".MenuMain"
                <action android:name="android.intent.action.DEFAULT" /

Thanks a lot.
Best regards.


3. Can we access Java.util Map of a class in another class

4. Android 2.3 emulator crashed after a requestLocationUpdates call

5. initialization of usb from android Application

6. CPU cost of a semi-infinite loop

7. Start default email client