Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Android
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Experimentation for Engineers: From A/B testing to Bayesian optimization
this week in the
Design
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Tim Cooke
Paul Clapham
Liutauras Vilda
Sheriffs:
Junilu Lacar
Rob Spoor
Jeanne Boyarsky
Saloon Keepers:
Stephan van Hulst
Carey Brown
Tim Holloway
Piet Souris
Bartenders:
Forum:
Android
global varible for application
shawn peter
Ranch Hand
Posts: 1325
1
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I need a global varible for my android application.is there a good way to do this ?
I have several activities.I need to use this variable for all these activities.
Maneesh Godbole
Bartender
Posts: 11497
19
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Define it in your strings.xml and access it via context.getString(int id)
[
How to ask questions
] [
Donate a pint, save a life!
] [
Onff-turn it on!
]
Ulf Dittmer
Rancher
Posts: 43077
77
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Alternatively, if the value can change at runtime,
extend Application
.
Goodbye moon men. Hello tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
what is the best way to transfer data via activities in android
Making layouts for different screen sizes in android
best way to geta new String from exsisting the String
using Global ServletContextListener in several modules in the webapp
is this propel way shutdown app
More...