extending android.app.Application

by WildLuka » Thu, 10 Apr 2008 15:39:03 GMT


Sponsored Links
 Dear All,

can you tell me how to go about extending android.app.Application, as
I need some global data access and what to write in the
AndroidManifest.xml ?

your help will be appreciated

many thanks in advance.

Luka

ps ... is it my impression or android docs just fail to tell you what
you really need to know ...
--~--~---------~--~----~------------~-------~--~----~



Extending android.app.Application

by WildLuka » Fri, 11 Apr 2008 00:33:59 GMT


 Dear All,

can you tell me how to go about extending android.app.Application, as
I need some global data access, and what to write in the
AndroidManifest.xml ?

your help will be appreciated

many thanks in advance.

Luka
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Extending android.app.Application

by SnowDrifter » Fri, 11 Apr 2008 03:23:31 GMT


 I started here:
 http://code.google.com/android/intro/index.html 

download Eclipse and install the android package as instructed in the
documentation above. using Eclipse will help you with setting up
applications and your manifest.

Enjoy!



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



extending android.app.Application

by sacoskun » Fri, 11 Apr 2008 08:38:34 GMT


 Hi Luka,

First of all, you need a class(let's say ClassA) that extends the
Application class.
In the AndroidManifest.xml you need to specify your own extended class
as the application in application tag.

....
<application android:name="ClassA">
....

Hope this helps,
-sarp



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



Extending android.app.Application

by WildLuka » Fri, 11 Apr 2008 12:27:28 GMT


 Not exactly what I was looking for ...




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



Extending android.app.Application

by Agus » Fri, 11 Apr 2008 14:00:47 GMT


 WildLuka,

In the android manifest file, you can see <application .. > tag
now add the attribute
android:name="your_full_classname_which_extends_application"
thats all to it.

Agus.







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



Extending android.app.Application

by trickybit » Fri, 11 Apr 2008 22:11:43 GMT


 I didn't use fully-qualified  classname, I used classname starting
with a 'dot' relative to the manifest package.

That is, in the top level <manifest> tag, the package attribute might
have value "com.jjjjjjj.myapp" and in the <application>  tag, the
android:name attribute might have value ".MyApplication" where the
full classname of your Application extension class would be
com.jjjjjj.myapp.MyApplication.

Fully-qualified probably works just fine, but for some things I was
under the impression that this approach was needed.

 Jim







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



Other Threads

1. SensorManager.registerListener gives unexpected results

I'm registering a sensor listener with this line of code.

mSensorManager.registerListener(this,mSensorManager.getDefaultSensor
(Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_FASTEST);

The rate is set to SENSOR_DELAY_FASTEST with the expectation that I
would receive events roughly every 20-30ms. It turns out that I
receive events only every 200-220ms (just now, my event code simply
logcats the system time).

No matter which rate I use, SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI,
SENSOR_DELAY_GAME, or SENSOR_DELAY_FASTEST, I get the same result?

Any ideas to what am I doing wrong?

-- 

2. Video Player from xml list

Hi

Does anyone has sample code for Video player with playlist as a xml
(all video is from URL)

If u have any code sample please share the same

I am new to the android development , any lead would be of gr8 help

-- 

3. SDK 2.0 Auto Dim Control?

4. can't launch intent + debug problem, Source not found

5. CyanogenMod-4.2.6 is out

6. Eclair Eugene ASOP15

7. how about real time request in android kernel?