On Fri, Oct 28, 2011 at 4:44 PM, John Goche johngoch...@googlemail.comwrote:
Furthermore, what's the point of having more than one preference file per
application? What's a practical example of this?
To add to Kostya, not all settings are application-wide - some are
component scoped. Like if
Thanks TreKing for your reply,
To add to Kostya, not all settings are application-wide - some are
component scoped. Like if you have
an email app with multiple accounts, you want to be able to configure
each account individually. They
have the same settings, but different instances, so each
Sure, that's a good case:
Especially if you use a subclass of PreferenceActivity to let the user
modify those options, and use prefManager.setSharedPreferencesName so
that it automagically works with the correct (account specific)
preference file.
-- Kostya
31.10.2011 23:20, John Goche
Hello,
I know this is really basic but I am trying to get to grips with
preferences.
I have defined an xml file and started a PreferenceActivity to read that XML
file so as to create and store some preference key-value pairs. However this
is in activity B. In activity A which launched B I also
PreferenceActivity by default uses this preference storage:
PreferenceManager.getDefaultSharedPreferences(Context)
Comes in handy if you want to read those preference values outside your
pref activity.
Or you can tell PreferenceActivity to use a pref file with a specific
name, in your
Thanks Kostya,
I also found the following stackoverflow page helpful:
http://stackoverflow.com/questions/2614719/how-do-i-get-the-sharedpreferences-from-a-preferenceactivity-in-android
On Fri, Oct 28, 2011 at 11:50 PM, Kostya Vasilyev kmans...@gmail.comwrote:
PreferenceActivity by default uses
Hello,
I was wondering whether there is a way to insert an HTML-like
horizontal rule (hr /) in the user interface via an XML file so I
can have it show up in my user interface. Do I have to create a
custom image/widget or something?
Thank you for your help,
John Goche
--
You received this
Use something like:
View android:background=#
android:layout_width=match_parent android:layout_height=2dip /
On Wed, Sep 14, 2011 at 11:45 AM, John Goche johngoch...@googlemail.com wrote:
Hello,
I was wondering whether there is a way to insert an HTML-like
horizontal rule (hr /) in
Can a webpage html contain link that is the URI of an intent and have
that intent launch the application when the link is clicked? Lets say
I have an app that says Hello World. I want to create an intent that
allows anyone to launch my app and it will say Hello World. Let
suppose I correctly
On Wed, May 4, 2011 at 7:17 PM, oddvark oddvar...@gmail.com wrote:
Can a webpage html contain link that is the URI of an intent and have that
intent launch the application when the link is clicked?
http://groups.google.com/group/android-developers/browse_thread/thread/fa192af3e4b9f86b
Hi guys,
I am a Newbie and I have a basic question for which I couldnt get any
answer yet.
What is the need to use two keywords to express that the given
activity is the main activity.
eg. We write the code
action android:name=android.intent.action.MAIN /
category
On 27 April 2011 17:07, Prayag prayag.d.pat...@gmail.com wrote:
I am a Newbie and I have a basic question for which I couldnt get any
answer yet.
Did try reading docs first?
What is the need to use two keywords to express that the given
activity is the main activity.
No. You need just
Hi:
I am playing with Android Development and have used the following
commands to obtain the device id:
TelephonyManager mTelephonyManager = (TelephonyManager)
getSystemService
(Context.TELEPHONY_SERVICE);
String deviceid= mTelephonyManager.getDeviceId();
What I am getting is a 15 digit
I confirm it's all 0 due to the fact that you're in the emulator. As far as
I know, the value should be decimal for GSM networks,
but I don't know about other ones like CDMA.
On Mon, Dec 7, 2009 at 9:24 AM, Robotuner lk...@engenious.com wrote:
Hi:
I am playing with Android Development and
14 matches
Mail list logo