- Adding to ArrayList in Characters method of DefaultHandler SAX [7 Updates]
- Loading from a compiled xml file [2 Updates]
- java.lang.NullPointerException when trying to edit strings.xml [2 Updates]
- Error in an XML file eclipse [1 Update]
- Bump is letting users send paid apps? [2 Updates]
- Why Android is using alsa device in block mode? [1 Update]
- live stream error [1 Update]
- Problems installing Eclipse with Android. [2 Updates]
- Unlock KeyGuard [1 Update]
- Froyo still breaks compatibility [1 Update]
- Speed of device [1 Update]
- update activity/layout from within broadcast receiver [1 Update]
- ContentProvider onCreate() onDestroy() [1 Update]
- Intercepting the Android phone dialer [1 Update]
- Arabic :( [1 Update]
- Michael <email@example.com> Jun 30 07:07PM -0700 ^
Thanks again, but I'm still having a problem.
public void endElement(String uri, String localName, String qName)
seems to still not add anything to the arrayList
- Streets Of Boston <firstname.lastname@example.org> Jun 30 07:18PM -0700 ^
Don't check the qName. Use the localName instead.
- Michael <email@example.com> Jun 30 07:27PM -0700 ^
It doesn't make a difference as it still passes the if statement and
runs the addElement() method, which for some reason still won't add
- Michael <firstname.lastname@example.org> Jun 30 07:28PM -0700 ^
Either way the if statement is still accessed and the addElement() is
run. However, it still will not add the item to the arraylist for some
- Frank Weiss <email@example.com> Jun 30 08:24PM -0700 ^
In the endElement() method, also check for the other elements and save
the contents of the StringBuffer:
- Michael <firstname.lastname@example.org> Jun 30 09:09PM -0700 ^
I tried it with the StringBuffer to no avail, the problem still
public void endElement(String uri, String localName, String qName)
else if (localName.equalsIgnoreCase("business-name"))
businessName = businessNameBuff.toString();
else if (localName.equalsIgnoreCase("street1"))
street1 = street1Buff.toString();
else if (localName.equalsIgnoreCase("longitude"))
longitude = longitudeBuff.toString();
if (longitudeBuff != null && street1Buff != null &&
businessNameBuff != null)
- Frank Weiss <email@example.com> Jun 30 09:58PM -0700 ^
Are you using Eclipse? Have you tried stepping through your code with
the debugger? I highly recommend you do that.
- Frank Weiss <firstname.lastname@example.org> Jun 30 06:39PM -0700 ^
My first guess is you're trying to read the compiled resource class
file. I hope you understand that the R object is a graph of static
classes. The idea being that at run time, you simply access the
resources via the R object graph and avoid any further XML parsing.
- Bob Kerns <email@example.com> Jun 30 09:51PM -0700 ^
Don't put it in the xml/ directory. That does indeed get compiled into
a binary format, and you'd need to use the corresponding API for
(Or you could recode to use that API, and gain efficiency and space --
but first, you'd like to test the code you've already written, right?)
So put your test.xml into the raw/ directory instead of the xml/
directory (and use R.raw.test).
More info here:
And if you want to move it back and get the benefits of using the
compiled format, you'll access it starting with this API:
On Jun 30, 12:36 pm, "RespeckKnuckles (John Licato)"
- Frank Weiss <firstname.lastname@example.org> Jun 30 06:31PM -0700 ^
Look at the bottom of the editor pane. There should be a tab labeled
"Resources" and a tab labeled "strings.xml". Which tab is selected
when the NPE ocurrs?
- Bob Kerns <email@example.com> Jun 30 09:46PM -0700 ^
There may not be; he may have the wrong editor. Even if he has the
right editor, a workaround may be to use a different one.
See my reply here for more detailed suggestions.
- Bob Kerns <firstname.lastname@example.org> Jun 30 09:42PM -0700 ^
There are several possible editors to use to edit these files. I'd
suggest trying a different one.
First, close the editor that's giving you problems.
Right click on the file in the Project Explorer, and choose Open
With... Try "Android Resource Editor" first, as that's probably the
one you really want to be using, and there's nothing in the stacktrace
that suggests that's what you're actually using. I'm not sure it's NOT
using it, but it's worth trying the right one first.
If that doesn't work, try another one. Text Editor is likely to work.
System Editor/ and In Place Editor will depend on what's installed on
your system, and since you're on a Mac, I won't make any predictions
there, but might be good choices. System Editor will launch a separate
window, which is a drawback.
I have OxygenXML installed, and that provides Eclipse with an
additional XML editor as well, with the Oxygen toolset and editing
Even if the Android tool is broken, explore and I think you'll
probably find something that works acceptably for you.
(It's still a bug, even if you are using the "wrong" editor. A side
benefit of exploring is you'll identify the culprit and can file the
suitable bug report!)
- Streets Of Boston <email@example.com> Jun 30 07:20PM -0700 ^
I already had a hard time believing Bump would do that... :-)
I think it's a great idea to let friends (bumpers? :-)), share app-
discoveries like that!
- Bob Kerns <firstname.lastname@example.org> Jun 30 09:33PM -0700 ^
Congratulations on a very cute and clever idea. I really hope it
catches on -- and that it makes you a lot of money!
I can't quite see myself using it until I get Android phones for the
family, but I think it will be wildly successful among teens! And we
all benefit as a result.
- Nilly <email@example.com> Jun 30 09:29PM -0700 ^
Thank You Mark
- schwiz <firstname.lastname@example.org> Jun 30 09:02PM -0700 ^
updating to release 85b fixed this issue
- Frank Weiss <email@example.com> Jun 30 06:44PM -0700 ^
Hmm. I've heard that the resources editor is buggy. Work around is to
edit the XML directly. If you really need to use the resource editor,
might I suggest fixing the code yourself and submitting to the Android
- Zigurd <firstname.lastname@example.org> Jun 30 08:38PM -0700 ^
Does your question 1 refer to the step in installation where you use
the AVD and SDK Manager to install build target packages? If so, you
can choose to install all of them without using up too much space on a
big machine. If you install all of the build targets you will be sure
to be compatible with example code that is set up for various API
A null pointer exception reported in Eclipse that occurs in an Android
XML editor usually means the visual editor could not interpret or
create the XML correctly. The most common case I see that is
attempting to use a layout editor where a View class has been
subclassed and the subclass name is used in the layout - the layout
editor can't handle that. So I suspect you have encountered something
similar. Edit the XML "by hand" - switch to the xml view using the
tabs at the bottom of the editor pane - and make sure that there are
no errors in the XML file.
- mike <email@example.com> Jun 30 08:13PM -0700 ^
i'm having three different devices. Tattoo,Milestone and a Droid. what
my application does is when receiving a call i'm starting a activity.
which works fine in all three. but if the phone is locked in Motorola
Droid it's not unlocking the screen in other two phones it's working
this is how am doing it
in the activity
context = getApplicationContext();
and in the manifest
- Bob Kerns <firstname.lastname@example.org> Jun 30 07:46PM -0700 ^
Yes, "Open Source" != "Open Process".
Moving to an open process wouldn't mean that Google would have to give
up control; they'd just have to make their incomplete work more
visible, and deal somehow with the extra comments and such that
But it could mean a lot more and better and earlier testing.
- gjs <email@example.com> Jun 30 07:14PM -0700 ^
You can get speed in meters per second from the GPS (if present).
- AUandroid <firstname.lastname@example.org> Jun 30 07:02PM -0700 ^
thanks Jeremy, I will try the onresume option. A separate thread is
- Natanael Arndt <NatanaelA@gmx.de> Jun 30 11:07PM +0200 ^
Thank you I have found the model.commit() method for Jena-Models now.
On 30.06.2010 20:49, Dianne Hackborn wrote:
- Jaap <email@example.com> Jun 30 01:41PM -0700 ^
Maybe I did not explain myself well. What I want is somebody to use
the default phone application on Android but when the call button is
pressed my application gets the number and no call is being placed.
- Muhammad Hakim <firstname.lastname@example.org> Jul 01 03:26AM +0700 ^
> in android ..... there's millions of arabian people have an android
> phone ..... and they need the arabic language :(
you can use arabic reshaper tu support arabic in your application.
recently I develop an app with "native" arabic text: hadith arbain
an-Nawawiyah in 10 languages
check it out:
السلام عليكم ورحمة الله وبركاته
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to email@example.com
To unsubscribe from this group, send email to
For more options, visit this group at