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.

Dj

--~--~---------~--~----~------------~-------~--~----~



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"):
http://developer.android.com/intl/fr/reference/android/content/Intent.html#A
CTION_EXTERNAL_APPLICATIONS_AVAILABLE

Also I've found a bug reported for this problem but it's still not accepted
after 7 months:
http://code.google.com/p/android/issues/detail?id=8485

Any solution? Any clues?

Armond

-- 

2. Emulator crashes when launching a new Activity

Hello,

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
something
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 {

   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.logon);


       ImageButton
btn=(ImageButton)findViewById(R.id.logon_ok_imagebutton);
       btn.setOnClickListener(new Button.OnClickListener() {
           public void onClick(View v) {
                Intent intent = new Intent(LaunchRecruitMobile.this,
MenuMain.class);
                startActivity(intent);
           }
       });

   } //end of constructor

 }


 public class MenuMain extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu_main);
    }

 }




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

I've tried the same in adding the following but doesn't work neither:
<activity android:name=".MenuMain"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.DEFAULT" /
            </intent-filter>
        </activity>


Thanks a lot.
Best regards.
Julien.

-- 

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