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. Android Browser - Downloading files with square brackets in the name [ ]

Hi

I noticed recently that i cant download files with square brackets in.

For instance i have uploaded two files that are exactly the same
except for thier filename

http://zerofate.com/test.torrent
http://zerofate.com/test[square].torrent

http://zerofate.com/test1.apk
http://zerofate.com/test1[square].apk

the files with square brackets are opened within the browser. the
files without are downloaded (which is the desired result). I am
attempting to make a torrent handler, thus the torrent test files, but
ive also tested this with apk files, and it has similar bizzare
behaviour.

What can be done about this as it is quite a pain.

thanks

Alec
--~--~---------~--~----~------------~-------~--~----~

2. Which version of source codes is CupCake? When will it release?

I saw some people mentioned CupCake in the email threads, could anyone talk
in details?

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

3. ADT Plugin Issue - Eclipse 3.3

4. How to view the list of network connection mobile APNs or WiFi configured on the emulator.

5. Add MapActivity to ActivityGroup

6. Input validation

7. O霉? : Android and Faceboo k in a same application