The error was caused from the code setting up an instance of the
objects
in an area that is not active. I just went according to your code in
your book.
I gather that you looked at my code and determined that it was setup
correctly.
Since I can't seem to get this to work properly, I have decided
On Fri, Oct 1, 2010 at 12:34 AM, rb rbs...@gmail.com wrote:
Thanks for the link to your book. I have tried your examples from it
and now I get the app forcing to close.
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your
Thanks for shedding some light on this issue.
Here's some of my code:
--- Main --
package com.calculator;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import
On Thu, Sep 30, 2010 at 6:51 PM, rb rbs...@gmail.com wrote:
Thanks for shedding some light on this issue.
Here's some of my code:
:: snip ::
I was going to save and read the data from a file which would be
stored
in the phones default applications directory as one file.
All the more
I looked at the URL's that you provided and tried some coding with it,
but I am failing to understand
the proper coding methods.
In the main, I have the options menu as:
// options menu
// Called only the first time the options menu is displayed.
// Create the menu entries.
On Thu, Sep 30, 2010 at 9:15 PM, rb rbs...@gmail.com wrote:
I believe that I need this to read the preferences still in the main
and set a textview as such:
public void onResume() {
super.onResume();
SharedPreferences prefs=PreferenceManager
On Thu, Sep 30, 2010 at 9:15 PM, rb rbs...@gmail.com wrote:
I looked at the URL's that you provided and tried some coding with it,
but I am failing to understand
the proper coding methods.
BTW, the preference chapter in my book has not changed that much from
earlier editions, so you're welcome
You should also check out this handy method:
PreferenceManager.setDefaultValues(Context context, int resId, boolean
readAgain)
Assuming you've defined default values for preferences in your
preferences.xml file, this method will use those to initialize your
saved preferences file. Which means
Thanks for the link to your book. I have tried your examples from it
and now I get the app forcing to close.
Perhaps you can shed some light on this?
Here's my code:
-- Calculator.java--
package com.calculator;
import android.app.Activity;
import android.content.Intent;
import
Thanks for the handy method. First of all, I have to get this
working,
then I may try this out. Good thing to know..
:RB
On Sep 30, 9:03 pm, davemac davemac...@gmail.com wrote:
You should also check out this handy method:
PreferenceManager.setDefaultValues(Context context, int resId,
10 matches
Mail list logo