mercredi 17 décembre 2014

Whether there are implicit object creations in Android?

I would like to know whether any implicit object creations take place in Android.For example consider this code that I got from Android Tutorials (p.9):



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://ift.tt/nIICcg"
package="de.vogella.android.temperature" android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Convert" 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>
<uses-sdk android:minSdkVersion="9" />
</manifest>


Here we could see that the activity points to the Convert class in the temperature package.So at the runtime does Android(Dalvik VM) creates an instance of class Convert implicitly or is it present in the boiler plate code(haven't seen it anywhere) or whether Dalvik VM uses any other techniques to access a class?Could anyone help me.


Aucun commentaire:

Enregistrer un commentaire