Is it possible to have a single ui element instance across the application?

by sagare » Thu, 29 Jul 2010 20:06:15 GMT


Sponsored Links
 Hi All,

      I have created a custom component and i want it to be singleton
in my application and i want all actvities my application to have this
custom component which is singleton. how can i achieve this?

    Please help me in this regard

Thanks and Regards,
Sagar

--



Is it possible to have a single ui element instance across the application?

by Mark Murphy » Thu, 29 Jul 2010 20:09:58 GMT


 


Please do not do this.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

_Android Programming Tutorials_ Version 2.9 Available!

--


Sponsored Links


Other Threads

1. Dictionary for word game ..pls help :)

hi,
i really need help.
i am making a word game for college which uses  words of length 4 to
7.
i have a certain array of string containing words of length 4 -7.i
have to check if those words are valid english words or not.i was
earlier trying to implement database containing 4 tables each having
all possible for word of length 4,5,6,7 which were being added by
reading respective file of words i had made .

But its taking way too much time to create database for any user to
wait,and the app  times out.

so i started searching alternate ways..cant decide what should be done
and is best considering my req.
1)trie for dictionary
2)hashset for storing words of each length of 4,5,6,7
 (would using this be better than trie as i hv to access just  words
of length 4,5,6,7 only?)
3)some dictionary api(some preinstalled db whch i cud query)

pls any help would be really appreciated what should be selected?
i want to make an efficient game.pls suggest what should be done?
thanx in advance :)

-- 

2. LVL behavior on client side license validity check for free apps

I had developed a game intending to publish it as a paid application
using the Android LVL with the default ServerManagedPolicy licensing
policy. Now, the powers that be have decided that we have to publish
it as a free app. For some reason I do not want to remove/disable the
license checks. My question is: how does the licensing service handle
free apps? Will checks always fail or always pass? Is there any way I
can make the license service accept any installation of my free app as
licensed?

I found the following on free apps in the official documentation, but,
it doesn't help me much.

"Only paid applications published through Market can use the service.
[...] Licensing is currently for paid apps only, since free apps are
considered licensed for all users."

I would have assumed that checks will fail, but, I remember reading
somewhere that for free apps the licensing server will return a very
large validity timestamp (long.MAX) ensuring that the license is
always valid for free apps. Unfortunately, I have lost the link to
that source.

Note:
1. The problem is not as crazy as it sounds. It's just that I am not
able to explain my use case further without giving away some
proprietary information.
2. I had posted the same question on StackOverflow but did not get any
response. Hence, posting it here.

-- 

3. [share] Xtrans Travel Guide on Android

4. Status of NFC card emulation capabilities in android 2.3.2

5. Need Help - N1 emergency calls terus

6. Paging Ian (tsubasa.andr...@gmail.com)

7. Why is the GIT repository so slow lately?