[android-developers] Unable to install the .apk file via OTA in Android 1.0 release

2008-09-29 Thread wiki

Hi All,

I am trying to install the downloaded apk files (downloaded via OTA in
SD Card) but on installing the downloaded application shows "Install
blocked" alert message.
below is full prompt:

"For security, our phone is set to block installation of applications
not sources in android market"


Any idea/suggestion on how to install the application which are
downloaded via OTA.

Regards
Wiki
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is collapse /expand list not working in 1.0?

2008-09-29 Thread april

I upgrade for my application from M5 to 1.0? In M%, I created a list,
when user clicks the list, it will expand to have more detail
information. When user clicks it again, it will collapse.

The first part, which is exppand is still working. But the second part
is nor working? There is no event created when user click the list. Is
it a bug for 1.0? has anyone the same experience?

Thanks!

April
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-09-29 Thread Wesley
hi Lia,

Thanks for the guide... It's worked (/data/dalvik-cache/)... but now...

may I ask one more questions???

if I got the error below, how??? I try to change mode(chmod 777) is not
working...

09-30 05:41:09.305: INFO/WESLEY(2340): java.io.IOException: Couldn't open
/data/data/com.basic.ui/cache_/widget.xml

thanks agains...



wesley.

On Fri, Sep 26, 2008 at 5:50 PM, Lia <[EMAIL PROTECTED]> wrote:

>
>
> Hi,
>
> I was experiencing something similar, when porting from SDK 0.9 to
> 1.0.
> I got error ".Can't open dex cache  . Unable to open or create
> cache for.." when loading custom classes with DexFile.
> I solved the problem in my environment by simply starting the abd
> console and changing rights in the cache folder:
>cd /data/dalvik-cache/
>chmod 777 .
> Hope this helps.
>
> Cheers,
>  Lia.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Launch browser issue. Is this a bug for 1.0?

2008-09-29 Thread april

url="http://www.google.com";;
Intent i = new Intent(Intent.ACTION_VIEW,Uri.parse(url));
startActivity(i);

If I changed url="http://127.0.0.1:4343/a.html";, I will get error "
the application is stopped unexpectly.

Is this a bug?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Vibrate constructor is not public and not documented in API Differences

2008-09-29 Thread tberthel

How do I get an instance of Vibrate in a different package now that
the constructor is not public?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: WebView loadData limitations

2008-09-29 Thread schmielson

Hi Mark,

Thanks for the quick reply.  Unfortunately, that does not work.  The
link text becomes highlighted to indicate that it has been clicked,
but the URL is never loaded and the code in shouldOverrideUrlLoading
is never called.  I am currently considering as an alternative using
my own subclass of WebView that overrides the onTouchEvent method and
then uses a HitTestResult to determine what has been selected by the
user.  While this seems cumbersome at best, it might workAny
thoughts on other workarounds?

Thanks very much,
Dave

On Sep 29, 6:05 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> schmielson wrote:
> > 2)  Is it possible to override URL loading (i.e. through the
> > WebViewClient method shouldOverrideUrlLoading) for HTML content that
> > is loaded into a WebView using its loadData method?  Whenever I click
> > on any links in the HTML content I've passed to loadData the
> > shouldOverrideUrlLoading method is not called even though I have
> > explicitly set the WebView's WebViewClient with
> > setWebViewClient([subclass of WebViewClient where
> > shouldOverrideUrlLoading is overridden).  However, if I use
> > loadUrl("http://www.cnn.com";), for example, with the same WebView
> > object, the shouldOverrideUrlLoading method is called and I can
> > intercept the handling.
>
> Try using loadDataWithBaseUrl(), providing a bogus base (e.g.,
> "fake://this/is/not/real"). With a null base URL (which is what
> loadData() effectively uses), you run into more security issues than
> with a fake base URL...even if the base URL is never really used.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Interconnecting Emulator Instances:

2008-09-29 Thread Parasss

in the example given that, A is a developer machine, B is the
first instence running on A machine and c is the second instense
running on the same machine...

that works fine..

Here is the problem that, how we can assign the IP address and port
number to emulator instence..?

can any bady help me please..

Thanks

Parasuraman Kumarasami.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do you overlay a TextView on top of a Camera SurviceView?

2008-09-29 Thread j

Thanks Dianne

On Sep 28, 9:59 pm, hackbod <[EMAIL PROTECTED]> wrote:
> ApiDemos has an example you can use, one of the graphics examples --
> Surface Overlay or something like that.
>
> On Sep 28, 9:12 pm, j <[EMAIL PROTECTED]> wrote:
>
> > How do you overlay a TextView on top of aCameraSurviceView?  Thanks
> > in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to get the data from app.Service

2008-09-29 Thread hoyu



On 9月29日, 下午8時35分, hoyu <[EMAIL PROTECTED]> wrote:
> My program have a main activity and a app.Service in the background.
> Service will receive a string(like the broadcastReceiver).
> How can I use the string in my main activity?
>
> thanks-

Sorry.
Mine is app.Service, not broadcastReceiver
But I also want to know how to use the Message(receive by
broadcastReceiver) in main activity.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Spinner Text / Value

2008-09-29 Thread friedger

I derived a subclass from spinner and overwrote performClick(),
something like:

public boolean performClick() {
if (actionPerformer != null) {
actionPerformer.onClick(this);
}
return true;
}

where actionPerformer is a OnClickListener. The listener then opens a
new Activity in a dialog theme. The activity can do what ever it
wants, using ids and so on. On finish the spinner is updated with the
result value form the activity.

Friedger

On 30 Sep., 02:53, Lonzo1968 <[EMAIL PROTECTED]> wrote:
> I need to get these values from the database. I have a Clients table
> and A Projects Table,
> The Project has a Foreign Key to the Client Table, Client_ID.  So whe
> they add a Project, they will select a Client from the Spinner.
> The Client Spinner needs to be dynamic and be able to be loaded from a
> Database  and Not an Xml file in the resources.
>
> On Sep 29, 11:29 am, "E.D.I" <[EMAIL PROTECTED]> wrote:
>
> > u need to create an array in the resources ( values\arrays.xml ) with
> > the values u want the spinner to show
> > and create a SpinnerAdupter with this array
> > u can see an example in the samples comming with the android sdk
> > ( ApiDemos ) and from the spinner u can take
> > the indx of the item.
>
> > On Sep 29, 5:40 pm, Lonzo1968 <[EMAIL PROTECTED]> wrote:
>
> > > How do I setup a Spinner to have a  Text Value and an Associated Id
> > > ( similar to what you would see in an HTML Select Tag ). I want to
> > > display a Client Name in the Spinner, but I want to save the Client_Id
> > > associated with the Name.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: best performing xml parser for android?

2008-09-29 Thread Shane Isbell
Hmm, maybe better for me to stick with kxml2 and just bundle it in the app,
its not the fastest parser but I have been using it for a while.

On Mon, Sep 29, 2008 at 6:44 PM, hackbod <[EMAIL PROTECTED]> wrote:

>
> I should also add, we strongly encourage you to use the built-in SAX
> parser through the android.util.Xml class.  If you really really need
> a pull parser, you can use the XmlPullParser there, but it will be
> slower (they are both built on top of the same underlying push-based
> parser), and as the doc says there may be some issues in the
> implementation.
>
> And, of course, if you are bundling XML files with your app, please
> put them in as XML resources so that you can use the 10-100x faster
> compiled XML parser.
>
> On Sep 29, 6:32 pm, hackbod <[EMAIL PROTECTED]> wrote:
> > The generic XML pull parser is still available:
> >
> >
> http://code.google.com/android/reference/android/util/Xml.html#newPul...()
> >
> > On Sep 29, 6:20 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> >
> > > I was using the kxml2 parser but it looks as though the latest SDK
> dropped
> > > it, so now I'm importing it. What other options besides Dom and SAX
> come
> > > bundled on the platform?
> >
> > > One interesting parser is aalto:
> >
> > >http://www.cowtowncoder.com/hatchery/aalto/index.html
> >
> > > I haven't tried it yet but the non-blocking IO on the stream looks
> > > interesting.
> >
> > > Shane
> >
> > > On Mon, Sep 29, 2008 at 6:09 PM, zl25drexel <[EMAIL PROTECTED]>
> wrote:
> >
> > > > the android SDK also has a pull parser implementation, since it's
> > > > already build-in, i would probably go for that one because i prefer
> to
> > > > add as little 3rd party jars as possible. I would be interested in
> the
> > > > performance comparison between the android parser vs. woodstox tho.
> >
> > > > On Sep 29, 8:15 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> > > > > This is one is pretty fast, don't know if it will run on Android.
> >
> > > > >http://woodstox.codehaus.org/
> > > > > Shane
> >
> > > > > On Mon, Sep 29, 2008 at 5:12 PM, zl25drexel <[EMAIL PROTECTED]>
> > > > wrote:
> >
> > > > > > Hi
> >
> > > > > > I am just wondering what is the best performing xml parser (speed
> > > > > > wise) for android (or for java in general). Does anyone know?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] when will android support/have Speech Recognition System??

2008-09-29 Thread Wesley Sagittarius

hi,

when will android support/have Speech Recognition System??
anyone have any ideas???

Wesley.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: best performing xml parser for android?

2008-09-29 Thread hackbod

I should also add, we strongly encourage you to use the built-in SAX
parser through the android.util.Xml class.  If you really really need
a pull parser, you can use the XmlPullParser there, but it will be
slower (they are both built on top of the same underlying push-based
parser), and as the doc says there may be some issues in the
implementation.

And, of course, if you are bundling XML files with your app, please
put them in as XML resources so that you can use the 10-100x faster
compiled XML parser.

On Sep 29, 6:32 pm, hackbod <[EMAIL PROTECTED]> wrote:
> The generic XML pull parser is still available:
>
> http://code.google.com/android/reference/android/util/Xml.html#newPul...()
>
> On Sep 29, 6:20 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
>
> > I was using the kxml2 parser but it looks as though the latest SDK dropped
> > it, so now I'm importing it. What other options besides Dom and SAX come
> > bundled on the platform?
>
> > One interesting parser is aalto:
>
> >http://www.cowtowncoder.com/hatchery/aalto/index.html
>
> > I haven't tried it yet but the non-blocking IO on the stream looks
> > interesting.
>
> > Shane
>
> > On Mon, Sep 29, 2008 at 6:09 PM, zl25drexel <[EMAIL PROTECTED]> wrote:
>
> > > the android SDK also has a pull parser implementation, since it's
> > > already build-in, i would probably go for that one because i prefer to
> > > add as little 3rd party jars as possible. I would be interested in the
> > > performance comparison between the android parser vs. woodstox tho.
>
> > > On Sep 29, 8:15 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> > > > This is one is pretty fast, don't know if it will run on Android.
>
> > > >http://woodstox.codehaus.org/
> > > > Shane
>
> > > > On Mon, Sep 29, 2008 at 5:12 PM, zl25drexel <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > > Hi
>
> > > > > I am just wondering what is the best performing xml parser (speed
> > > > > wise) for android (or for java in general). Does anyone know?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: best performing xml parser for android?

2008-09-29 Thread Shane Isbell
Thanks, the inbuilt one might do the trick.
Shane

On Mon, Sep 29, 2008 at 6:32 PM, hackbod <[EMAIL PROTECTED]> wrote:

>
> The generic XML pull parser is still available:
>
>
> http://code.google.com/android/reference/android/util/Xml.html#newPullParser()
>
> On Sep 29, 6:20 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> > I was using the kxml2 parser but it looks as though the latest SDK
> dropped
> > it, so now I'm importing it. What other options besides Dom and SAX come
> > bundled on the platform?
> >
> > One interesting parser is aalto:
> >
> > http://www.cowtowncoder.com/hatchery/aalto/index.html
> >
> > I haven't tried it yet but the non-blocking IO on the stream looks
> > interesting.
> >
> > Shane
> >
> > On Mon, Sep 29, 2008 at 6:09 PM, zl25drexel <[EMAIL PROTECTED]>
> wrote:
> >
> > > the android SDK also has a pull parser implementation, since it's
> > > already build-in, i would probably go for that one because i prefer to
> > > add as little 3rd party jars as possible. I would be interested in the
> > > performance comparison between the android parser vs. woodstox tho.
> >
> > > On Sep 29, 8:15 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> > > > This is one is pretty fast, don't know if it will run on Android.
> >
> > > >http://woodstox.codehaus.org/
> > > > Shane
> >
> > > > On Mon, Sep 29, 2008 at 5:12 PM, zl25drexel <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > Hi
> >
> > > > > I am just wondering what is the best performing xml parser (speed
> > > > > wise) for android (or for java in general). Does anyone know?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: best performing xml parser for android?

2008-09-29 Thread hackbod

The generic XML pull parser is still available:

http://code.google.com/android/reference/android/util/Xml.html#newPullParser()

On Sep 29, 6:20 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> I was using the kxml2 parser but it looks as though the latest SDK dropped
> it, so now I'm importing it. What other options besides Dom and SAX come
> bundled on the platform?
>
> One interesting parser is aalto:
>
> http://www.cowtowncoder.com/hatchery/aalto/index.html
>
> I haven't tried it yet but the non-blocking IO on the stream looks
> interesting.
>
> Shane
>
> On Mon, Sep 29, 2008 at 6:09 PM, zl25drexel <[EMAIL PROTECTED]> wrote:
>
> > the android SDK also has a pull parser implementation, since it's
> > already build-in, i would probably go for that one because i prefer to
> > add as little 3rd party jars as possible. I would be interested in the
> > performance comparison between the android parser vs. woodstox tho.
>
> > On Sep 29, 8:15 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> > > This is one is pretty fast, don't know if it will run on Android.
>
> > >http://woodstox.codehaus.org/
> > > Shane
>
> > > On Mon, Sep 29, 2008 at 5:12 PM, zl25drexel <[EMAIL PROTECTED]>
> > wrote:
>
> > > > Hi
>
> > > > I am just wondering what is the best performing xml parser (speed
> > > > wise) for android (or for java in general). Does anyone know?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: best performing xml parser for android?

2008-09-29 Thread Shane Isbell
I was using the kxml2 parser but it looks as though the latest SDK dropped
it, so now I'm importing it. What other options besides Dom and SAX come
bundled on the platform?

One interesting parser is aalto:

http://www.cowtowncoder.com/hatchery/aalto/index.html

I haven't tried it yet but the non-blocking IO on the stream looks
interesting.

Shane

On Mon, Sep 29, 2008 at 6:09 PM, zl25drexel <[EMAIL PROTECTED]> wrote:

>
> the android SDK also has a pull parser implementation, since it's
> already build-in, i would probably go for that one because i prefer to
> add as little 3rd party jars as possible. I would be interested in the
> performance comparison between the android parser vs. woodstox tho.
>
> On Sep 29, 8:15 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> > This is one is pretty fast, don't know if it will run on Android.
> >
> > http://woodstox.codehaus.org/
> > Shane
> >
> > On Mon, Sep 29, 2008 at 5:12 PM, zl25drexel <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hi
> >
> > > I am just wondering what is the best performing xml parser (speed
> > > wise) for android (or for java in general). Does anyone know?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-09-29 Thread Brad Gies


Chris,

Well sure... UTF-8 can represent the ampersand character, but the
ampersand is a Reserved character in XML. 

Below is a paragraph from the XML spec :

http://www.w3.org/TR/REC-xml/


"The ampersand character (&) and the left angle bracket (<) MUST NOT appear
in their literal form, except when used as markup delimiters, or within a
comment, a processing instruction, or a CDATA section. If they are needed
elsewhere, they MUST be escaped using either numeric character references or
the strings "&" and "<" respectively. The right angle bracket (>) may
be represented using the string ">", and MUST, for compatibility, be
escaped using either ">" or a character reference when it appears in the
string "]]>" in content, when that string is not marking the end of a CDATA
section."



Sincerely,
 
Brad Gies
 
 
-
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
www.bgies.com  www.truckerphone.com 
www.EDI-Easy.com  www.EDI-Simple.com
-
 
Moderation in everything, including abstinence

-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc
Sent: Monday, September 29, 2008 8:47 PM
To: Android Developers
Subject: [android-developers] Re: SAXParser reports diffeernt qName on SDK
0.9 from SDK 1.0


Hey Brad,
As far as I know it doesn't have to be escaped if it's unicode
encoded. In this case, the XML is coming from a .Net Web Service,
which is encoded in UTF-8.

Also, we aren't comparing two different parsers, but rather the old
and new version of the SAXParser with unmodified code.

-chris

On Sep 29, 5:30 pm, "Brad Gies" <[EMAIL PROTECTED]> wrote:
> Shouldn't the '&' character be escaped if you are going to use it in XML?
>
> The SAX parser if probably just following the XML spec and the other
parser
> wasn't :)
>
> Sincerely,
>
> Brad Gies
>
> -
> Brad Gies
> 27415 Greenfield Rd, # 2,
> Southfield, MI, USA
> 48076www.bgies.com www.truckerphone.comwww.EDI-Easy.com www.EDI-Simple.com
> -
>
> Moderation in everything, including abstinence
>
> -Original Message-
> From: android-developers@googlegroups.com
>
> [mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc
> Sent: Monday, September 29, 2008 4:47 PM
> To: Android Developers
> Subject: [android-developers] Re:SAXParserreports diffeernt qName on SDK
> 0.9 from SDK 1.0
>
> Hey Charlie,
> I think this should be added to the bug list. I'll do it tonight when
> I get home if you haven't already by then...
>
> What I don't understand is this doesn't seem to be an encoding or
> namespace issue, since all unicode characters except '&' work fine
> (that I've tried). As far as I know, there are no encoding schemes or
> namespaces that single out the '&' character, though I admit my
> experience with this is too limited to say for sure.
>
> I'm guessing this isn't a planned change, since there should be
> *something* written in the change log/migration guide and there is
> nothing. So I'm all but certain it's an unintended bug...
>
> -chris
>
> On Sep 29, 2:51 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> > I have this same issue.  I switched to localname as well, but it seems
> > like as soccercheng notes, you should be able to dictate namespace and
> > namespace-prefix features.  This blows up though, anyone on the team
> > care to elaborate - should this work with Android, and should a bug be
> > filed, or what?  (I didn't see any current bugs related to in my
> > cursory search.)
>
> > Also, this seems like a pretty big change from 0.9 to 1.0, maybe it
> > should go in the migrating guide?
>
> > On Sep 29, 10:09 am, Chris Cicc <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
> > > I am also having a problem with theSAXParserthat I believe is
> > > similar to your problem. I had a parser for a basic XML document that
> > > contained only nodes and text. This was working find for weeks with
> > > 0.9. But after the change to 1.0 RC1 it no longer works properly.
>
> > > Now, when it hits a node that contains the text, for instance "test &
> > > text", it will separate it into three records, "test", "&", "text".
> > > With 0.9 this would return "test & text" as you would assume. Using
> > > other special characters, such as % and *, work as expected. Anyone
> > > else see behavior like this?
>
> > > Any suggestions?
>
> > > Thanks,
> > > Chris


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~

[android-developers] Re: best performing xml parser for android?

2008-09-29 Thread Mark Murphy

zl25drexel wrote:
> I am just wondering what is the best performing xml parser (speed
> wise) for android (or for java in general). Does anyone know?

If the data is static and bundled in res/xml/, the built-in XML pull 
parser is supposed to be super-fast.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: WebView loadData limitations

2008-09-29 Thread Mark Murphy

schmielson wrote:
> 2)  Is it possible to override URL loading (i.e. through the
> WebViewClient method shouldOverrideUrlLoading) for HTML content that
> is loaded into a WebView using its loadData method?  Whenever I click
> on any links in the HTML content I've passed to loadData the
> shouldOverrideUrlLoading method is not called even though I have
> explicitly set the WebView's WebViewClient with
> setWebViewClient([subclass of WebViewClient where
> shouldOverrideUrlLoading is overridden).  However, if I use
> loadUrl("http://www.cnn.com";), for example, with the same WebView
> object, the shouldOverrideUrlLoading method is called and I can
> intercept the handling.

Try using loadDataWithBaseUrl(), providing a bogus base (e.g., 
"fake://this/is/not/real"). With a null base URL (which is what 
loadData() effectively uses), you run into more security issues than 
with a fake base URL...even if the base URL is never really used.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] WebView loadData limitations

2008-09-29 Thread schmielson

Hi all,

I've been playing with WebView and trying to see what things I can do
with it.  From my experiments I'm wondering whether the following
limitations exist with the loadData method:

1)  Are there any limitations on the link targets that can be used in
the HTML given to loadData?  Clicking on any links I've included in
the HTML content I've passed to loadData don't seem to do anything.  I
don't see any errors generated in the log either, so perhaps I'm
missing something?  An example:

myWebView.loadData("http://www.cnn.com\";>CNN", "text/
html", "utf-8");

The link itself highlights to indicate that it has been clicked, but
the link is never loaded.

2)  Is it possible to override URL loading (i.e. through the
WebViewClient method shouldOverrideUrlLoading) for HTML content that
is loaded into a WebView using its loadData method?  Whenever I click
on any links in the HTML content I've passed to loadData the
shouldOverrideUrlLoading method is not called even though I have
explicitly set the WebView's WebViewClient with
setWebViewClient([subclass of WebViewClient where
shouldOverrideUrlLoading is overridden).  However, if I use
loadUrl("http://www.cnn.com";), for example, with the same WebView
object, the shouldOverrideUrlLoading method is called and I can
intercept the handling.

3)  Is it possible to refer, in the HTML given to loadData, to an
image that has been dynamically stored on the device?  From what I can
currently tell it seems that the only way to do this is to use, for
example:  where
image_content is the actual base64-encoded image.

Thanks very much,
Dave

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Drawing on MapView

2008-09-29 Thread Prash

Thanks Peter for the post! I was lost with getting a basic Map display
- turns out its an issue with the "uses-permission" in the
AndroidManifest.xml file which seems to be a fairly new development.

In the Location based API documentation, it would help if they add the
fact that these permissions should be setup before you can do
something useful.

- Prash

On Sep 29, 2:21 am, Peter Stevenson <[EMAIL PROTECTED]> wrote:
> Peter Wrote
> hope this help   if not email me again  and I see if I  can  help
> Also add a screen shot
>
> You should be able to load data on to your map  based on this code
> use a dbHelper Class to help with database control
>
> Peter
>
> package com.cyberspace.testing.out;
>
> import android.graphics.Canvas;
> import android.graphics.drawable.Drawable;
>
> import java.io.DataOutputStream;
> import java.io.OutputStream;
> import java.lang.reflect.Array;
> import java.net.HttpURLConnection;
> import java.net.URL;
> import java.util.Vector;
> import org.apache.http.protocol.HTTP;
> import android.os.Bundle;
> import android.view.*;
> import com.google.android.maps.GeoPoint;
> import com.google.android.maps.MapActivity;
> import com.google.android.maps.MapView;
>
> public class prueba extends MapActivity {
>
>      WhereAmIOverlay WhereAmIOverlay;
>      View zoomView;
>      Drawable defaultMarker;
>      MapView map;
>
>        GeoPoint Point = new GeoPoint((int) (-1.416402 * 100), (int)
>            (-78.025078 * 100));
>
>        GeoPoint Point1 = new GeoPoint((int) (-1.616402 * 100), (int)
>                (-78.025078 * 100));
>        GeoPoint Point2 = new GeoPoint((int) (-1.516402 * 100), (int)
>                (-78.025078 * 100));
>        GeoPoint Point3 = new GeoPoint((int) (-1.716402 * 100), (int)
>                (-78.025078 * 100));
>
>         @Override
>         public void onCreate(Bundle savedInstanceState) {
>             super.onCreate(savedInstanceState);
>             setContentView(R.layout.main);
>             map = (MapView) findViewById(R.id.map);
>             defaultMarker =
> getResources().getDrawable(R.drawable.mappin_red);
>             defaultMarker.setBounds(0,
> 0,defaultMarker.getIntrinsicWidth(), defaultMarker.getIntrinsicHeight());
>
>        //     map.getController().setCenter(Point);
>          //  map.getController().animateTo(Point);
>         //    map.displayZoomControls(false);
>         //    map.getController().setZoom(7);
>          }
>     public boolean onKeyDown(int keyCode, KeyEvent event) {
>             switch(keyCode){
>             case KeyEvent.KEYCODE_I:
>                     int level = map.getZoomLevel();
>         map.getController().setZoom(level + 1);
>                     return true;
>             case KeyEvent.KEYCODE_O:
>                     int level2 = map.getZoomLevel();
>         map.getController().setZoom(level2 + 1);
>                     return true;
>             case KeyEvent.KEYCODE_S:
>                     map.setSatellite(true);
>                     return true;
>             case KeyEvent.KEYCODE_T:
>                     map.setSatellite(false);
>                     return true;
>             }
>             return false;
>     }
>
>     @Override
>     public boolean onCreateOptionsMenu(Menu menu) {
>     super.onCreateOptionsMenu(menu);
>             menu.add(0,1,2, "My Location");
>             //menu 1
>             SubMenu sub1 = menu.addSubMenu(3, 2, 3,"Vistas");
>             sub1.add(3,3,1, "Satelite");
>             sub1.add(3,4,2, "Trafico");
>             //menu 2
>             SubMenu sub = menu.addSubMenu(2, 5, 1,"Zoom");
>             sub.add(2,6,1, "In");
>             sub.add(2,7,2, "Out");
>             return true;
>     }
>     @Override
>     public boolean onMenuItemSelected(int featureId, MenuItem item) {
>     super.onMenuItemSelected(featureId, item);
>     switch (item.getItemId()) {
>     case 1:
>         WhereAmIOverlay = new WhereAmIOverlay(this,defaultMarker);
>         map.getController().animateTo(Point);
>         map.getOverlays().add(WhereAmIOverlay);
>         zoomView = map.getZoomControls();
>         zoomView.setLayoutParams(new ViewGroup.LayoutParams
>         (ViewGroup.LayoutParams.WRAP_CONTENT,
>         ViewGroup.LayoutParams.WRAP_CONTENT));
>         map.addView(zoomView);
>         map.displayZoomControls(true);
>            map.getController().setZoom(10);
>            map.setClickable(true);
>            map.setEnabled(true);
>            map.invalidate();  
>     return true;
>     case 3:
>             map.setSatellite(true);
>     return true;
>     case 4:
>             map.setSatellite(false);
>     return true;
>     case 6:
>             int level = map.getZoomLevel();
>         map.getController().setZoom(level + 1);
>     return true;
>     case 7:
>             int level1 = map.getZoomLevel();
>         map.getController().setZoom(level1 - 1);
>     return true;
>  }
>  return super.onOptionsItemSelected(item);}
>
> 

[android-developers] Re: Spinner Text / Value

2008-09-29 Thread Lonzo1968

I need to get these values from the database. I have a Clients table
and A Projects Table,
The Project has a Foreign Key to the Client Table, Client_ID.  So whe
they add a Project, they will select a Client from the Spinner.
The Client Spinner needs to be dynamic and be able to be loaded from a
Database  and Not an Xml file in the resources.

On Sep 29, 11:29 am, "E.D.I" <[EMAIL PROTECTED]> wrote:
> u need to create an array in the resources ( values\arrays.xml ) with
> the values u want the spinner to show
> and create a SpinnerAdupter with this array
> u can see an example in the samples comming with the android sdk
> ( ApiDemos ) and from the spinner u can take
> the indx of the item.
>
> On Sep 29, 5:40 pm, Lonzo1968 <[EMAIL PROTECTED]> wrote:
>
> > How do I setup a Spinner to have a  Text Value and an Associated Id
> > ( similar to what you would see in an HTML Select Tag ). I want to
> > display a Client Name in the Spinner, but I want to save the Client_Id
> > associated with the Name.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-09-29 Thread Chris Cicc

Hey Brad,
As far as I know it doesn't have to be escaped if it's unicode
encoded. In this case, the XML is coming from a .Net Web Service,
which is encoded in UTF-8.

Also, we aren't comparing two different parsers, but rather the old
and new version of the SAXParser with unmodified code.

-chris

On Sep 29, 5:30 pm, "Brad Gies" <[EMAIL PROTECTED]> wrote:
> Shouldn't the '&' character be escaped if you are going to use it in XML?
>
> The SAX parser if probably just following the XML spec and the other parser
> wasn't :)
>
> Sincerely,
>
> Brad Gies
>
> -
> Brad Gies
> 27415 Greenfield Rd, # 2,
> Southfield, MI, USA
> 48076www.bgies.com www.truckerphone.comwww.EDI-Easy.com www.EDI-Simple.com
> -
>
> Moderation in everything, including abstinence
>
> -Original Message-
> From: android-developers@googlegroups.com
>
> [mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc
> Sent: Monday, September 29, 2008 4:47 PM
> To: Android Developers
> Subject: [android-developers] Re:SAXParserreports diffeernt qName on SDK
> 0.9 from SDK 1.0
>
> Hey Charlie,
> I think this should be added to the bug list. I'll do it tonight when
> I get home if you haven't already by then...
>
> What I don't understand is this doesn't seem to be an encoding or
> namespace issue, since all unicode characters except '&' work fine
> (that I've tried). As far as I know, there are no encoding schemes or
> namespaces that single out the '&' character, though I admit my
> experience with this is too limited to say for sure.
>
> I'm guessing this isn't a planned change, since there should be
> *something* written in the change log/migration guide and there is
> nothing. So I'm all but certain it's an unintended bug...
>
> -chris
>
> On Sep 29, 2:51 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> > I have this same issue.  I switched to localname as well, but it seems
> > like as soccercheng notes, you should be able to dictate namespace and
> > namespace-prefix features.  This blows up though, anyone on the team
> > care to elaborate - should this work with Android, and should a bug be
> > filed, or what?  (I didn't see any current bugs related to in my
> > cursory search.)
>
> > Also, this seems like a pretty big change from 0.9 to 1.0, maybe it
> > should go in the migrating guide?
>
> > On Sep 29, 10:09 am, Chris Cicc <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
> > > I am also having a problem with theSAXParserthat I believe is
> > > similar to your problem. I had a parser for a basic XML document that
> > > contained only nodes and text. This was working find for weeks with
> > > 0.9. But after the change to 1.0 RC1 it no longer works properly.
>
> > > Now, when it hits a node that contains the text, for instance "test &
> > > text", it will separate it into three records, "test", "&", "text".
> > > With 0.9 this would return "test & text" as you would assume. Using
> > > other special characters, such as % and *, work as expected. Anyone
> > > else see behavior like this?
>
> > > Any suggestions?
>
> > > Thanks,
> > > Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Junit BasicHttpParam Exception

2008-09-29 Thread elephantbug

Hi,

After I migrate my code to 1.0, all my JUnit test cases throw
following exception, anyone can give me some clue:

java.lang.RuntimeException: Stub!
at
org.apache.http.params.AbstractHttpParams.(AbstractHttpParams.java:
5)
at org.apache.http.params.BasicHttpParams.(BasicHttpParams.java:
6)
at
com.loopt.network.HttpClientNetworkProvider.(HttpClientNetworkProvider.java:
39)
at com.loopt.network.NetworkProvider.getInstance(NetworkProvider.java:
65)
at com.loopt.tests.network.BaseTestCase.setUp(BaseTestCase.java:43)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:
130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
196)



Here is the code snippet for the HttpClientNetworkProvider:

HttpParams params = new
BasicHttpParams();//line 39:
ConnManagerParams.setMaxTotalConnections(params, 100);
HttpConnectionParams.setConnectionTimeout(params, 20 * 1000);
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);

// Create and initialize scheme registry
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http",
PlainSocketFactory.getSocketFactory(), 80));
schemeRegistry.register(new Scheme("https",
SSLSocketFactory.getSocketFactory(), 443));

// Create an HttpClient with the ThreadSafeClientConnManager.
// This connection manager must be used if more than one thread 
will
// be using the HttpClient.
ClientConnectionManager cm = new 
ThreadSafeClientConnManager(params,
schemeRegistry);

httpClient = new DefaultHttpClient(cm, params);

Thanks.

--elephantbug



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: best performing xml parser for android?

2008-09-29 Thread Shane Isbell
This is one is pretty fast, don't know if it will run on Android.

http://woodstox.codehaus.org/
Shane

On Mon, Sep 29, 2008 at 5:12 PM, zl25drexel <[EMAIL PROTECTED]> wrote:

>
> Hi
>
> I am just wondering what is the best performing xml parser (speed
> wise) for android (or for java in general). Does anyone know?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] best performing xml parser for android?

2008-09-29 Thread zl25drexel

Hi

I am just wondering what is the best performing xml parser (speed
wise) for android (or for java in general). Does anyone know?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Barcodes

2008-09-29 Thread Peli

If you look at the OpenIntents list of applications
http://www.openintents.org/en/applications
you will find ZXing which is a multi-format 1D/2D barcode reader.

You can simply start it as an intents, and get the read-out values
back.

Peli
www.openintents.org


On 29 Sep., 21:02, "Brad Gies" <[EMAIL PROTECTED]> wrote:
> I know other people have been working on reading barcodes from Android.
> Specifically, reading a barcode from an image taken from the phone's camera.
>
> Does anyone know if someone has released their code as open source? I know
> there are several Java libraries that have the code, and I can write it/
> port it to Android, but don't see the need to do it if someone else has
> already done and released the code.
>
> Anyone know of any links they can pass to me?
>
> Sincerely,
>
> Brad Gies
>
> -
>
> Brad Gies
>
> 27415 Greenfield Rd, # 2,
>
> Southfield, MI, USA
>
> 48076
>
> -
>
> Moderation in everything, including abstinence
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Attempt to include a core VM class in something other than a core library

2008-09-29 Thread Jakob Sachse

Hello Oscar,

I had the same trouble.

you may want to read this:

http://groups.google.com/group/android-developers/browse_thread/thread/1b7a9602196354ba/9b7c90289ba7ede7#9b7c90289ba7ede7

I didn't find the option to pass ADT (the eclipse plugin) the --core-
library option, too. That's
why i used the activityCreator tool (you'll find that in the
developement and debug section) to create a raw project. The only
reason for doing so was to get a
generated build.xml ant script. I imported that into eclipse. You can
then insert the --core-library option into imported build.xml. Note,
eclipse will still fail while
trying to build the project. It's a good idea to turn off "build
automaticly". Instead use
the ant view to build your project. I had issues with the .bat file
that
is supposed feed dx -dex the correct parameters. Here is my topic
regarding that:

http://groups.google.com/group/android-developers/browse_thread/thread/cbbf384a190f6efe/7a59e605a09a100a?lnk=gst&q=jakob+sachse#7a59e605a09a100a

I hope that will help you,
- Jakob.

There is another topic I opend regarding this issue.


On 29 Sep., 20:26, UBZack <[EMAIL PROTECTED]> wrote:
> Hi Oscar,
>
> I was getting this error because my "fileset dir=" in the dex call of
> my ant build.xml was pointing to a directory with many, many jar files
> in it, most of which were referencing javax classes (which, of course,
> you can/should never do in Android), and I fixed this problem by
> copying the one external lib that I actually needed, which is Apache's
> "commons-codec.jar" from that directory and into its own directory,
> which I then had "fileset dir=" point to in my build file's dex call.
> I then rebuilt, and the error went away.
>
> So my guess is that, unlike "commons-codec.jar" which is free of javax-
> references, "stax-api-1.0-2.jar" has javax references inside it, and
> you should probably look into what places in your Android code are
> using that library, and consider using an Android-safe alternative
> other than that library.  Passing the --core-libary option would
> probably not be a good solution.
>
> Best of luck!
> -Zack
>
> On Aug 27, 5:44 pm, "Oscar Castaneda" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
>
> > I'm building a reduced set of Tuscany modules to get a sample Tuscany
> > application running on Android. However, building results in the error shown
> > below. How can I pass the "--core-library" option to the compiler and would
> > this be a solution? The problem is arising when processing class files from
> > stax-api-1.0-2.jar. Any ideas or thoughts on how to finish the build
> > successfully would be greatly appreciated.
>
> > [2008-08-27 23:23:55 - calculator-android]
> > trouble processing "javax/xml/namespace/QName$1.class":
> > [2008-08-27 23:23:55 - calculator-android]
> > Attempt to include a core VM class in something other than a core library.
> > It is likely that you have attempted to include the core library from a
> > desktop
> > virtual machine into an application, which will most assuredly not work. If
> > you really intend to build a core library -- which is only appropriate as
> > part of creating a full virtual machine binary, as opposed to compiling an
> > application -- then use the "--core-library" option to suppress this error
> > message. If you go ahead and use "--core-library" but are in fact building
> > an application, then please be aware that your build will still fail at some
> > point; you will simply be denied the pleasure of reading this helpful error
> > message.
> > [2008-08-27 23:23:55 - calculator-android] 1 error; aborting
> > [2008-08-27 23:23:55 - calculator-android] Conversion to Dalvik format
> > failed with error 1
>
> > --
> > best,
> > -oscar
>
> > Oscar Castañeda
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Documentation Blues

2008-09-29 Thread jtaylor

Hello Megha,

"The m denotes a member field and is part of the Android coding style
standards."
http://code.google.com/android/intro/tutorial-ex2.html

This is the mention of 'Android coding style standards' in the notepad
tutorial. I don't see them in the documentation though.

Everything looks updated now. I guess a few days wasn't too bad.


- Juan

On Sep 29, 1:52 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> 2008/9/27 jtaylor <[EMAIL PROTECTED]>
>
>
>
> > Hello Android Team,
>
> > Consider this a helpful criticism. But this sentence is still on the
> > very front of the Documentation. - "A beta version of the Android SDK
> > is available for download." and it's been a few days since the 1.0 SDK
> > has been released.
>
> Thanks for the pointer...this text will be updated with the next docs
> release.
>
> > This means that the Documentation hasn't been updated.
>
> No, certainly it does not mean that. The docs are updated generally on a
> biweekly basis and with every sdk release.
>
> Also the
>
> > samples.
>
> Again, the samples have been updated, let us know if you have anything
> specific in mind.
>
> No Gears documentation.
>
> There is no support for Gears with Android yet.
>
> apps-for-android apps wasn't updated
>
> > right away though I haven't checked recently.
>
> app-for-android is an on-going project, its updated with new apps
> frequently.  Most of them would work on 1.0. If something does not, please
> file a issue in the apps-for-android project page itself.
>
> Classes mixed up.
>
> Could you be more specific here...
>
>
>
> > Mention of Android-coding-style-standards in the docs but these coding
> > standards are nowhere to be found, yet they are used in the sample
> > apps.
>
> and here...
>
>
>
> > My suggestion is that in an update to the SDK, everything should be
> > updated at the same exact time. Since Android is a new contraption,
> > then one needs a manual. And if the contraption is new and the manual
> > is beta, then that's a bug. To a developer, the docs are inseparable
> > from the SDK.
>
> Thats true, and that is how its done with Android.  Thanks for your
> feedback..always appreciated :)
>
> > "There are a few new permissions related to the "subscribed feeds
> > ContentProvider", yet there does not appear to be any documentation of
> > such a provider. The quoted phrase suggests it handles RSS/Atom feeds
> > on behalf of client applications, and as such would be a handy
> > addition to the framework. But, without a documented list of available
> > properties and such, it would be difficult to use."
> >http://androidguys.com/?p=1785
>
> 
>
>
>
> > From what Mark said here, it wouldn't be difficult but impossible to
> > use. :)
>
> > - Juan t.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Documentation Blues

2008-09-29 Thread Megha Joshi
2008/9/27 jtaylor <[EMAIL PROTECTED]>

>
> Hello Android Team,
>
> Consider this a helpful criticism. But this sentence is still on the
> very front of the Documentation. - "A beta version of the Android SDK
> is available for download." and it's been a few days since the 1.0 SDK
> has been released.
>

Thanks for the pointer...this text will be updated with the next docs
release.


> This means that the Documentation hasn't been updated.


No, certainly it does not mean that. The docs are updated generally on a
biweekly basis and with every sdk release.

Also the
> samples.


Again, the samples have been updated, let us know if you have anything
specific in mind.

No Gears documentation.


There is no support for Gears with Android yet.

apps-for-android apps wasn't updated
> right away though I haven't checked recently.


app-for-android is an on-going project, its updated with new apps
frequently.  Most of them would work on 1.0. If something does not, please
file a issue in the apps-for-android project page itself.

Classes mixed up.


Could you be more specific here...

>
> Mention of Android-coding-style-standards in the docs but these coding
> standards are nowhere to be found, yet they are used in the sample
> apps.


and here...

>
>
> My suggestion is that in an update to the SDK, everything should be
> updated at the same exact time. Since Android is a new contraption,
> then one needs a manual. And if the contraption is new and the manual
> is beta, then that's a bug. To a developer, the docs are inseparable
> from the SDK.
>

Thats true, and that is how its done with Android.  Thanks for your
feedback..always appreciated :)


> "There are a few new permissions related to the "subscribed feeds
> ContentProvider", yet there does not appear to be any documentation of
> such a provider. The quoted phrase suggests it handles RSS/Atom feeds
> on behalf of client applications, and as such would be a handy
> addition to the framework. But, without a documented list of available
> properties and such, it would be difficult to use."
> http://androidguys.com/?p=1785
>

>
> From what Mark said here, it wouldn't be difficult but impossible to
> use. :)
>
>
> - Juan t.
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: phone to phone communication?

2008-09-29 Thread [EMAIL PROTECTED]

The usual model in this case is to have some centralized "server",
that know who is in (or have launched the app), and where
( Localization, GPS, etc). And this server can communicate to other
users(may be all, or near the location received)  of the application
that someone has arrived. I don't know about something directly phone-
to-phone.

-fr4gus

On Sep 29, 6:31 am, whitehexagon <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm not having much luck on the beginners group... can someone please
> advise if what I'm trying to do is possible with the latest SDK
> please?
>
> http://groups.google.com/group/android-beginners/browse_thread/thread...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Port JSON client to SDK 0.9

2008-09-29 Thread Cezar Augustus Signori

Solved!

Wrong  replacement :)

Thanks!

On Sep 29, 4:36 pm, Cezar Augustus Signori <[EMAIL PROTECTED]>
wrote:
> hi..i still get the "Unknown Error" and i have the  android:name="android.permission.INTERNET" /> tag.
>
> under SDK 1.0,  get at logcat "OSNetworkSystem unkown socket error -1"
>
> any ideas?
>
> On 2 set, 20:32, Francisco <[EMAIL PROTECTED]> wrote:
>
> > FOrgot to mention this is a .NET Webservice running on my local
> > environment.
>
> > On Sep 2, 4:31 pm, Francisco <[EMAIL PROTECTED]> wrote:
>
> > > Hi everybody!
>
> > > I finally was able to call thewebservicei wanted from my
> > > application, i have a problem now.
>
> > > The String i get from the response method is removing my xml tags. I
> > > get Strings like the following:
>
> > > 
> > > http://tempuri.org/";> > > NAME="authors">
>
> > > Instead of:
>
> > >   
> > >   http://tempuri.org/";>
>
> > > Does anyboydy knows hows to aviod this or why is this happening? if i
> > > call thewebservicefrom ksoap this doesnt happens but my ksoap
> > > project doest work since the newSDK.
>
> > > Any help that you could give me will be appreciated.
>
> > > Thanks
>
> > > Francisco Ortega
>
> > > On Sep 2, 12:20 pm, Francisco <[EMAIL PROTECTED]> wrote:
>
> > > > Thanks a Lot Mark!
>
> > > > I Finally was able to make it work! i had a while without working with
> > > > the new SDKs so i didnt know that permission was added. Thank you!.
> > > > By the way. I am getting a new error now.
>
> > > >  > > > xmlns:soap="http://www.w3.org/2003/05/soap-envelope"; 
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> > > > xmlns:xsd="http://www.w3.org/2001/
> > > > XMLSchema">soap:Receiver > > > soap:Value> > > > xml:lang="en">System.Web.Services.Protocols.SoapException: Server was
> > > > unable to process request. ---> System.Xml.XmlException: Root
> > > > element is missing.
> > > >at System.Xml.XmlTextReaderImpl.Throw(Exception e)
> > > >at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
> > > >at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
> > > >at System.Xml.XmlTextReaderImpl.Read()
> > > >at System.Xml.XmlTextReader.Read()
> > > >at
> > > > System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
> > > >at System.Xml.XmlReader.MoveToContent()
> > > >at
> > > > System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.MoveToC­­ontent()
> > > >at
> > > > System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
> > > >at
> > > > System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
> > > >at
> > > > System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMes­­sage
> > > > message)
> > > >at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
> > > >at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
> > > > type, HttpContext context, HttpRequest request, HttpResponse response,
> > > > Boolean& abortProcessing)
> > > >--- End of inner exception stack trace --- > > > soap:Reason>
>
> > > > Do you have any idea why this could be happening? Mywebservice
> > > > returns the following:
> > > >
> > > >  > > > ="varchar"/> > > > NAME="au_fname" DBTYPE ="varchar"/> > > > ="varchar"/> > > > DBTYPE
>
> > > > ="varchar"/> > > > DBTYPE ="varchar"/>
> > > > 
> > > > 172-32-1176WhiteJohnson408 496-7223 > > > C>10932 Bigge Rd.Menlo ParkCA94025True > > > C>213-46-8915GreenMarjorie415
> > > > 986-7020309 63rd St. #411OaklandCA94618 > > > C>True
> > > > 
>
> > > > On Sep 2, 10:59 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > > > > Francisco wrote:
> > > > > > I have just double checked and i always get a SocketException with 
> > > > > > an
> > > > > > "Unknown error" Detailed messase.
>
> > > > > > Do you have any idea what could it be?
>
> > > > > Do you have the INTERNET permission in your AndroidManifest.xml? I 
> > > > > think
> > > > > that, er, manifests as this error.
>
> > > > > 
>
> > > > > --
> > > > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > > > Warescription: All titles, revisions, & ebook formats, just $35/year- 
> > > > > Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-09-29 Thread Brad Gies


Shouldn't the '&' character be escaped if you are going to use it in XML? 

The SAX parser if probably just following the XML spec and the other parser
wasn't :)



Sincerely,
 
Brad Gies
 
 
-
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
www.bgies.com  www.truckerphone.com 
www.EDI-Easy.com  www.EDI-Simple.com
-
 
Moderation in everything, including abstinence

-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc
Sent: Monday, September 29, 2008 4:47 PM
To: Android Developers
Subject: [android-developers] Re: SAXParser reports diffeernt qName on SDK
0.9 from SDK 1.0


Hey Charlie,
I think this should be added to the bug list. I'll do it tonight when
I get home if you haven't already by then...

What I don't understand is this doesn't seem to be an encoding or
namespace issue, since all unicode characters except '&' work fine
(that I've tried). As far as I know, there are no encoding schemes or
namespaces that single out the '&' character, though I admit my
experience with this is too limited to say for sure.

I'm guessing this isn't a planned change, since there should be
*something* written in the change log/migration guide and there is
nothing. So I'm all but certain it's an unintended bug...

-chris


On Sep 29, 2:51 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> I have this same issue.  I switched to localname as well, but it seems
> like as soccercheng notes, you should be able to dictate namespace and
> namespace-prefix features.  This blows up though, anyone on the team
> care to elaborate - should this work with Android, and should a bug be
> filed, or what?  (I didn't see any current bugs related to in my
> cursory search.)
>
> Also, this seems like a pretty big change from 0.9 to 1.0, maybe it
> should go in the migrating guide?
>
> On Sep 29, 10:09 am, Chris Cicc <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > I am also having a problem with theSAXParserthat I believe is
> > similar to your problem. I had a parser for a basic XML document that
> > contained only nodes and text. This was working find for weeks with
> > 0.9. But after the change to 1.0 RC1 it no longer works properly.
>
> > Now, when it hits a node that contains the text, for instance "test &
> > text", it will separate it into three records, "test", "&", "text".
> > With 0.9 this would return "test & text" as you would assume. Using
> > other special characters, such as % and *, work as expected. Anyone
> > else see behavior like this?
>
> > Any suggestions?
>
> > Thanks,
> > Chris


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting android multimodal - org.apache.commons.scxml

2008-09-29 Thread Jakob Sachse

I have been working on getting commons.scxml running on android. Today
I
got the stopwatch up and running. Since Android does not provide a
full
j2se I had to deploy / modify lots of libraries.

i.e. i used apache harmony for getting a java.beans implementation.

I had to modify java.beans and org.commons.harmony.beans classes to
get
rid of dependencies to java.awt and java.swing.

I created a jar named scxmlAndroidDependencies.jar that holds all
modified packages.

I did some screenshots of the stopwatch, you can find them here:

http://ostblock.kicks-ass.net/scxmlOnAndroid/android_1.jpg
http://ostblock.kicks-ass.net/scxmlOnAndroid/android_2.jpg
http://ostblock.kicks-ass.net/scxmlOnAndroid/android_3.jpg
http://ostblock.kicks-ass.net/scxmlOnAndroid/android_4.jpg

Also you can get the eclipse project I worked on. I uploaded it since
my
webserver just has a dsl uplink.

http://www.FreeUploadShare.com/DOWNLOAD/3e5dc1319/scxmlOnAndroid_eclipse_project.zip

Plase use the ant script to build the project, the ADT plugin will not
tranfere java.* package classes to .dex due to a missing --core-
library
option. The project is based on Google Android SDK 1.0_r1.

The project justs includes the library binaries, if someone is
interested in the sources let me know. I'll upload them as well.


On 24 Sep., 23:39, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> > Mark Murphy wrote:
> > If you are including xml-apis in your build, that might conflict with
> > existing DOM and SAX implementations in Android. Try removing xml-apis
> > from the build and see what happens.
>
> removing xml-apis from the build path results in errors in a few scxml
> classes.
> One of which is SCXMLSerializer, I think i could spare this since the
> Serializer is only called
> from some test classes.
>
> More tricky is that it also breaks Builtin.java which is a
> central class within scxml. The only class needed from xml-apis is the
> javax.xml.transform.TransformerException
> The TransformerException is thrown by org.apache.xpath.XPathAPI which
> itself is part of xalan, which i still have in the build path.
>
> But wouldn't that mean that the hole of xalan is incompatible to
> android? Or the other way around, if xalan works on android it would
> mean
> that its inside use of java.xml.* succeeds. And that hence i could
> find a way making it work for me as well.
>
> Is there anyone who used xalan on android?
>
> On 24 Sep., 16:14, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > Jakob Sachse wrote:
> > > Mark Murphy wrote:
> > >> If that does not clear up your problem, you can try merging the
> > >> commons.scxml source into your own project's source tree
>
> > > well, basicly thats what i have done so far
>
> > Oh. Sorry, missed that.
>
> > > though, i will try to build the jar as you recommended. Even if the
> > > problem, as far as i see it
> > > comes mainly from the javax.xml package which seems to collide with
> > > the Android SDK in some way.
>
> > Do you have all the source code to all the commons-scxml dependencies?
>
> > If not -- meaning you have commons-scxml source but are still using
> > third-party JARs -- start trying to introduce those, either fully into
> > your project, or simply recompiling them using your own Java compiler.
> > Or, get rid of dependencies that may collide with what is in the Android
> > SDK/
>
> > For example, according to the dependency chart:
>
> >http://commons.apache.org/scxml/dependencies.html
>
> > commons-scxml depends upon Xalan, which depends upon xml-apis.
>
> > If you are including xml-apis in your build, that might conflict with
> > existing DOM and SAX implementations in Android. Try removing xml-apis
> > from the build and see what happens.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-09-29 Thread Chris Cicc

Hey Charlie,
I think this should be added to the bug list. I'll do it tonight when
I get home if you haven't already by then...

What I don't understand is this doesn't seem to be an encoding or
namespace issue, since all unicode characters except '&' work fine
(that I've tried). As far as I know, there are no encoding schemes or
namespaces that single out the '&' character, though I admit my
experience with this is too limited to say for sure.

I'm guessing this isn't a planned change, since there should be
*something* written in the change log/migration guide and there is
nothing. So I'm all but certain it's an unintended bug...

-chris


On Sep 29, 2:51 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> I have this same issue.  I switched to localname as well, but it seems
> like as soccercheng notes, you should be able to dictate namespace and
> namespace-prefix features.  This blows up though, anyone on the team
> care to elaborate - should this work with Android, and should a bug be
> filed, or what?  (I didn't see any current bugs related to in my
> cursory search.)
>
> Also, this seems like a pretty big change from 0.9 to 1.0, maybe it
> should go in the migrating guide?
>
> On Sep 29, 10:09 am, Chris Cicc <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > I am also having a problem with theSAXParserthat I believe is
> > similar to your problem. I had a parser for a basic XML document that
> > contained only nodes and text. This was working find for weeks with
> > 0.9. But after the change to 1.0 RC1 it no longer works properly.
>
> > Now, when it hits a node that contains the text, for instance "test &
> > text", it will separate it into three records, "test", "&", "text".
> > With 0.9 this would return "test & text" as you would assume. Using
> > other special characters, such as % and *, work as expected. Anyone
> > else see behavior like this?
>
> > Any suggestions?
>
> > Thanks,
> > Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] API for adding emergency phone numbers

2008-09-29 Thread coderrr

Does the Android SDK provides a way to add an emergency phone number
to a phone (a number that can be dialed even when the phone is
locked)?

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problems starting/debugging application from eclipse

2008-09-29 Thread Werner

Hello,

I have troubles starting or debugging my application from eclipse.
I am using SDK 1.0 RC1 and Eclipse 3.4.0 under Ubuntu 8.04

The application compiles fine, but whenever I try to run or debug the
application only the emulator is started but the application is not
loaded nor started.
When I used adb install ... it loads ok and can then be started from
the GUI.

Any hint what I am doing wrong is highly appreciated.

TIA Werner

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Barcodes

2008-09-29 Thread Brad Gies
 

I know other people have been working on reading barcodes from Android.
Specifically, reading a barcode from an image taken from the phone's camera.


 

Does anyone know if someone has released their code as open source? I know
there are several Java libraries that have the code, and I can write it/
port it to Android, but don't see the need to do it if someone else has
already done and released the code. 

 

Anyone know of any links they can pass to me? 

 

 

Sincerely,

 

Brad Gies

 

 

-

Brad Gies

27415 Greenfield Rd, # 2,

Southfield, MI, USA

48076

-

 

Moderation in everything, including abstinence

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: running httpclient with beta 0.9

2008-09-29 Thread Cezar Augustus Signori

Hi!

Solved!

I was putting the permission tag in the wrong place :(

Thanks!

On 29 set, 16:33, Cezar Augustus Signori <[EMAIL PROTECTED]>
wrote:
> hi all!
>
> I am getting the same exception (OSNetworkSystemunknownsocketerror
> -1).
>
> using the SDK 1.0
> not behind a proxy
> i can load the page througth the browser
> i have the  android:name="android.permission.INTERNET" /> tag in
> AndroidManifest.xml
>
> And i still getting the exception
>
> Any ideias?
>
> On 21 ago, 22:38, dai <[EMAIL PROTECTED]> wrote:
>
> > Yup, it's working well ;) Thank you so much for caring.
>
> > On 8月22日, 午前8:07, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote:
>
> > > Ah, and Mark already got this one. Such a mess in here with the
> > > changed subject lines! :-)
>
> > > Cheers,
> > > Justin
> > > Android Team @ Google
>
> > > On Aug 21, 4:07 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > You'll need to add
> > > > 
> > > > to your manifest file if your application wishes to use data.
>
> > > > Cheers,
> > > > Justin
> > > > Android Team @ Google
> > > > On Aug 20, 12:43 am, DeMorgan <[EMAIL PROTECTED]> wrote:
>
> > > > > Justine:
> > > > > "I'm able to use HttpClient just fine (in fact, just posted some
> > > > > sample
> > > > > code for doing multipart posts). "
>
> > > > > Hi Justine,
> > > > > I have tried to migrate to new http client, in previous release I was
> > > > > using classes:
> > > > > import org.apache.commons.httpclient.HttpClient;
> > > > > import org.apache.commons.httpclient.HttpStatus;
> > > > > import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
> > > > > import org.apache.commons.httpclient.methods.PostMethod;
>
> > > > > Now I have moved to new http client, but I am getting en exception:
> > > > > java.net.SocketException:unknownerror
> > > > > at
> > > > > org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl(Native
> > > > > Method)
> > > > > at
> > > > > org.apache.harmony.luni.platform.OSNetworkSystem.createSocket(OSNetworkSystem.java:
> > > > > 79)
> > > > > at
> > > > > org.apache.harmony.luni.net.PlainSocketImpl2.create(PlainSocketImpl2.java:
> > > > > 59)
> > > > > at java.net.Socket.checkClosedAndCreate(Socket.java:763)
> > > > > at java.net.Socket.connect(Socket.java:910)
> > > > > at
> > > > > org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
> > > > > 117)
> > > > > at
> > > > > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
> > > > > 129)
> > > > > at
> > > > > org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
> > > > > 164)
> > > > > at
> > > > > org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
> > > > > 119)
> > > > > at
> > > > > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
> > > > > 348)
> > > > > at
> > > > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
> > > > > 555)
> > > > > at
> > > > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
> > > > > 487)
> > > > > at
> > > > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
> > > > > 465)
>
> > > > > If you have working examples with new client, please let me know where
> > > > > I can find them.
>
> > > > > Regards,
> > > > > Nick
>
> > > > > On Aug 20, 3:40 am, dai <[EMAIL PROTECTED]> wrote:
>
> > > > > > aahh, I'm so sorry.. What I said I could run was with RC5.
>
> > > > > > Thank you, I'll post code later.
>
> > > > > > > I'm confused -- you say for HTTPS, you get the exception, then 
> > > > > > > later,
> > > > > > > you say you use HTTPS and it works. Which is it? Or does the 
> > > > > > > exception
> > > > > > > come and go?
>
> > > > > > On Aug 20, 9:35 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > > > > > > dai wrote:
> > > > > > > > Yes, I can access web sites via build in web browser. I mainly 
> > > > > > > > use
> > > > > > > > https:443.. then run into unknownhost exception.
> > > > > > > > I aslo tried to access via http:80, sameerrorhappened.
>
> > > > > > > > Speaking of https:443, I could reach the target host without 
> > > > > > > > problems.
>
> > > > > > > I'm confused -- you say for HTTPS, you get the exception, then 
> > > > > > > later,
> > > > > > > you say you use HTTPS and it works. Which is it? Or does the 
> > > > > > > exception
> > > > > > > come and go?
>
> > > > > > > > Are you be able to access web sites now from you own app with 
> > > > > > > > beta0.9
> > > > > > > > - httpclient..?
>
> > > > > > > I won't be updating that chapter in my book until this weekend, 
> > > > > > > in all
> > > > > > > likelihood. Too many code samples, too little time...
>
> > > > > > > But, as Justin pointed out, others can use the new HttpClient 
> > > > > > > just fine.
> > > > > > > Can you post some code that demonstrates the problem?
>
> > >

[android-developers] Re: Some help with webservices?!

2008-09-29 Thread Cezar Augustus Signori

Hi!

Solved!

I was putting the permission tag in the wrong place :(

Thanks!

On 9 set, 16:26, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote:
> Are you using the emulator behind a proxy? Can you load web pages in
> the browser? Can you provide the output from "adb logcat" when you try
> running this program?
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Sep 4, 7:03 pm,CezarAugustus Signori <[EMAIL PROTECTED]>
> wrote:
>
> > Thanks for the response!
>
> > Well, i still getting no results... i am using the following:
>
> > http://schemas.android.com/apk/res/android";
> > android:name="android.permission.INTERNET">
>
> > and..
>
> > 
>
> > something wrong or missing??
>
> > I am trying now to post data with RequestQueue, like the following:
>
> > RequestQueue rQueue = new RequestQueue(this);
> > Map headers = new HashMap > String>();
> > headers.put("Content-Type", "text/xml");
> > rQueue.queueRequest(URL, "POST",headers, new
> > MyEventHandler(),
> > new ByteArrayInputStream(POSTbytes),
> > POSTbytes.length,false);
>
> > where URL is the webservice url. The error i am getting is: "The URL
> > could not be found".
>
> > Any ideas?
>
> > On 3 set, 11:23, kennyg <[EMAIL PROTECTED]> wrote:
>
> > > Did you set the android.permission.INTERNET permission in the
> > > Android.Manifest.xml?
>
> > > Not providing this leads to unexpected errors when connecting.
>
> > > Kenny.
>
> > > CezarAugustus Signori wrote:
> > > > Hi all!
>
> > > > i still try to send/receive data from/towebservices...well, i tried
> > > > the kSoap2 (as almost of us), but all that i get is an "unknown error"
> > > > message.
>
> > > > After some tries, i've decided to simple send XML to thewebservice
> > > > through a connection and receive the response as String to later
> > > > handle it with some XML parser. But all i can get is a bug "Does Not
> > > > Support Output" message from the URLConnection. If i use another class
> > > > such HttpUrlConnection from java.net or apache,  the "unknown error"
> > > > message comes again.
>
> > > > I tried things like described:
>
> > > >http://www.anddev.org/calling_a_web_service_from_android-t348.html
> > > >http://chitgoks.blogspot.com/2008/03/android-and-web-services.html
> > > > and other resources from this group..
>
> > > > Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Issues with permissions when using delegation with Content Providers solution and inconsistency or bug

2008-09-29 Thread chomchom

Hello, I just thought I'd post the solution to my problem for future
readers.

The reason I was getting null was because there were null content
values.
The reason for my confusion was because when testing a unit test via
instrumentations the same behavior is not present.
In a live activity the content values cannot be null while inserting
via the provider.

This works:
ContentValues values = new ContentValues();
context.getContentResolver().insert(CONTENT_URI, values);

This does not work:
context.getContentResolver().insert(CONTENT_URI, null);

But both of these scenarios will work when running unit tests via
instrumentations.
This behaviour does not seem to be orthogonally correct. Could this be
considered a bug?


On Sep 29, 5:58 am, hackbod <[EMAIL PROTECTED]> wrote:
> Fwiw, permission errors usually result in SecurityException errors
> being thrown back to the caller.  I don't know of a place where the
> system would throw a NullPointerException due to a permission problem.
>
> On Sep 28, 5:48 pm, chomchom <[EMAIL PROTECTED]> wrote:
>
> > Hello, All my content providers are accessed via one over arching
> > provider that delegates to the others based on the contents of the URI
> > pattern matcher. So below just the one provider "RunBuddyProvider"
> > There are actually three smaller providers and I have taken steps to
> > encapsulate their functionality into one content provider. Interacting
> > with the providers via INSERT and QUERY works fine for the
> > instrumentation.
> > But when using live services that interact with activities I can only
> > use QUERY successfully. Using INSERT, I get:
>
> > ERROR/AndroidRuntime(4197): Uncaught handler: thread main exiting due
> > to uncaught exception
> > ERROR/AndroidRuntime(4197): java.lang.NullPointerException
>
> > This suggests to me that the permission has not been granted for the
> > application trying to use the content provider. Has anyone used this
> > technique or anything similar with content providers? Is this just a
> > permissions issue from the Manifest? I would appreciate any comments
> > on the implementation.
>
> > Hearing that other people have had some success with this technique of
> > content provider delegation would put my mind at rest that it worked
> > and allow me to pursue the bug down the security issues side.
> > Can anyone offer any suggestions?
>
> > #
> > # In more detail, with code:
> > #
>
> > The delegating content provider is registered in the Manifest:
> >         >             android:name=".provider.RunBuddyContentProvider"
> >             android:authorities="com.novoda.runbuddy" />
>
> > This then instantiates the factory which then delegates to the other
> > Providers based on the URI pattern matcher.
> > Th RoutesProvider is the providers I am using in this instance. When
> > instantiated; I call the provider to insert based on the query. But
> > this always throws an Uncaught Handler Exception.
>
> > # All the involved classes
>
> >http://code.google.com/p/runningbuddy/source/browse/trunk/RunningBudd..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Port JSON client to SDK 0.9

2008-09-29 Thread Cezar Augustus Signori

hi..i still get the "Unknown Error" and i have the  tag.

under SDK 1.0,  get at logcat "OSNetworkSystem unkown socket error -1"

any ideas?

On 2 set, 20:32, Francisco <[EMAIL PROTECTED]> wrote:
> FOrgot to mention this is a .NET Webservice running on my local
> environment.
>
> On Sep 2, 4:31 pm, Francisco <[EMAIL PROTECTED]> wrote:
>
> > Hi everybody!
>
> > I finally was able to call thewebservicei wanted from my
> > application, i have a problem now.
>
> > The String i get from the response method is removing my xml tags. I
> > get Strings like the following:
>
> > 
> > http://tempuri.org/";> > NAME="authors">
>
> > Instead of:
>
> >   
> >   http://tempuri.org/";>
>
> > Does anyboydy knows hows to aviod this or why is this happening? if i
> > call thewebservicefrom ksoap this doesnt happens but my ksoap
> > project doest work since the newSDK.
>
> > Any help that you could give me will be appreciated.
>
> > Thanks
>
> > Francisco Ortega
>
> > On Sep 2, 12:20 pm, Francisco <[EMAIL PROTECTED]> wrote:
>
> > > Thanks a Lot Mark!
>
> > > I Finally was able to make it work! i had a while without working with
> > > the new SDKs so i didnt know that permission was added. Thank you!.
> > > By the way. I am getting a new error now.
>
> > >  > > xmlns:soap="http://www.w3.org/2003/05/soap-envelope"; 
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> > > xmlns:xsd="http://www.w3.org/2001/
> > > XMLSchema">soap:Receiver > > soap:Value> > > xml:lang="en">System.Web.Services.Protocols.SoapException: Server was
> > > unable to process request. ---> System.Xml.XmlException: Root
> > > element is missing.
> > >at System.Xml.XmlTextReaderImpl.Throw(Exception e)
> > >at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
> > >at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
> > >at System.Xml.XmlTextReaderImpl.Read()
> > >at System.Xml.XmlTextReader.Read()
> > >at
> > > System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
> > >at System.Xml.XmlReader.MoveToContent()
> > >at
> > > System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.MoveToC­­ontent()
> > >at
> > > System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
> > >at
> > > System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
> > >at
> > > System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMes­­sage
> > > message)
> > >at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
> > >at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
> > > type, HttpContext context, HttpRequest request, HttpResponse response,
> > > Boolean& abortProcessing)
> > >--- End of inner exception stack trace --- > > soap:Reason>
>
> > > Do you have any idea why this could be happening? Mywebservice
> > > returns the following:
> > >
> > >  > > ="varchar"/> > > NAME="au_fname" DBTYPE ="varchar"/> > > ="varchar"/>
> > > ="varchar"/> > > DBTYPE ="varchar"/>
> > > 
> > > 172-32-1176WhiteJohnson408 496-7223 > > C>10932 Bigge Rd.Menlo ParkCA94025True > > C>213-46-8915GreenMarjorie415
> > > 986-7020309 63rd St. #411OaklandCA94618 > > C>True
> > > 
>
> > > On Sep 2, 10:59 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > > > Francisco wrote:
> > > > > I have just double checked and i always get a SocketException with an
> > > > > "Unknown error" Detailed messase.
>
> > > > > Do you have any idea what could it be?
>
> > > > Do you have the INTERNET permission in your AndroidManifest.xml? I think
> > > > that, er, manifests as this error.
>
> > > > 
>
> > > > --
> > > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > > Warescription: All titles, revisions, & ebook formats, just $35/year- 
> > > > Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notification Intent

2008-09-29 Thread Gil

Thank you Dianne!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: running httpclient with beta 0.9

2008-09-29 Thread Cezar Augustus Signori

hi all!

I am getting the same exception (OSNetworkSystem unknown socket error
-1).

using the SDK 1.0
not behind a proxy
i can load the page througth the browser
i have the  tag in
AndroidManifest.xml

And i still getting the exception

Any ideias?


On 21 ago, 22:38, dai <[EMAIL PROTECTED]> wrote:
> Yup, it's working well ;) Thank you so much for caring.
>
> On 8月22日, 午前8:07, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote:
>
> > Ah, and Mark already got this one. Such a mess in here with the
> > changed subject lines! :-)
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Aug 21, 4:07 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]>
> > wrote:
>
> > > You'll need to add
> > > 
> > > to your manifest file if your application wishes to use data.
>
> > > Cheers,
> > > Justin
> > > Android Team @ Google
> > > On Aug 20, 12:43 am, DeMorgan <[EMAIL PROTECTED]> wrote:
>
> > > > Justine:
> > > > "I'm able to use HttpClient just fine (in fact, just posted some
> > > > sample
> > > > code for doing multipart posts). "
>
> > > > Hi Justine,
> > > > I have tried to migrate to new http client, in previous release I was
> > > > using classes:
> > > > import org.apache.commons.httpclient.HttpClient;
> > > > import org.apache.commons.httpclient.HttpStatus;
> > > > import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
> > > > import org.apache.commons.httpclient.methods.PostMethod;
>
> > > > Now I have moved to new http client, but I am getting en exception:
> > > > java.net.SocketException:unknownerror
> > > > at
> > > > org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl(Native
> > > > Method)
> > > > at
> > > > org.apache.harmony.luni.platform.OSNetworkSystem.createSocket(OSNetworkSystem.java:
> > > > 79)
> > > > at
> > > > org.apache.harmony.luni.net.PlainSocketImpl2.create(PlainSocketImpl2.java:
> > > > 59)
> > > > at java.net.Socket.checkClosedAndCreate(Socket.java:763)
> > > > at java.net.Socket.connect(Socket.java:910)
> > > > at
> > > > org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
> > > > 117)
> > > > at
> > > > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
> > > > 129)
> > > > at
> > > > org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
> > > > 164)
> > > > at
> > > > org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
> > > > 119)
> > > > at
> > > > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
> > > > 348)
> > > > at
> > > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
> > > > 555)
> > > > at
> > > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
> > > > 487)
> > > > at
> > > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
> > > > 465)
>
> > > > If you have working examples with new client, please let me know where
> > > > I can find them.
>
> > > > Regards,
> > > > Nick
>
> > > > On Aug 20, 3:40 am, dai <[EMAIL PROTECTED]> wrote:
>
> > > > > aahh, I'm so sorry.. What I said I could run was with RC5.
>
> > > > > Thank you, I'll post code later.
>
> > > > > > I'm confused -- you say for HTTPS, you get the exception, then 
> > > > > > later,
> > > > > > you say you use HTTPS and it works. Which is it? Or does the 
> > > > > > exception
> > > > > > come and go?
>
> > > > > On Aug 20, 9:35 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > > > > > dai wrote:
> > > > > > > Yes, I can access web sites via build in web browser. I mainly use
> > > > > > > https:443.. then run into unknownhost exception.
> > > > > > > I aslo tried to access via http:80, sameerrorhappened.
>
> > > > > > > Speaking of https:443, I could reach the target host without 
> > > > > > > problems.
>
> > > > > > I'm confused -- you say for HTTPS, you get the exception, then 
> > > > > > later,
> > > > > > you say you use HTTPS and it works. Which is it? Or does the 
> > > > > > exception
> > > > > > come and go?
>
> > > > > > > Are you be able to access web sites now from you own app with 
> > > > > > > beta0.9
> > > > > > > - httpclient..?
>
> > > > > > I won't be updating that chapter in my book until this weekend, in 
> > > > > > all
> > > > > > likelihood. Too many code samples, too little time...
>
> > > > > > But, as Justin pointed out, others can use the new HttpClient just 
> > > > > > fine.
> > > > > > Can you post some code that demonstrates the problem?
>
> > > > > > --
> > > > > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > > > > Warescription: All titles, revisions, & ebook formats, just $35/year
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[

[android-developers] Re: Some help with webservices?!

2008-09-29 Thread Cezar Augustus Signori

Oh, i forgot to mension...

i am not behing a proxy. i can load web pages in the browser.

and i am using the



in AndroidManifest.xml

Cheers

On 9 set, 16:26, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote:
> Are you using the emulator behind a proxy? Can you load web pages in
> the browser? Can you provide the output from "adb logcat" when you try
> running this program?
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Sep 4, 7:03 pm,CezarAugustus Signori <[EMAIL PROTECTED]>
> wrote:
>
> > Thanks for the response!
>
> > Well, i still getting no results... i am using the following:
>
> > http://schemas.android.com/apk/res/android";
> > android:name="android.permission.INTERNET">
>
> > and..
>
> > 
>
> > something wrong or missing??
>
> > I am trying now to post data with RequestQueue, like the following:
>
> > RequestQueue rQueue = new RequestQueue(this);
> > Map headers = new HashMap > String>();
> > headers.put("Content-Type", "text/xml");
> > rQueue.queueRequest(URL, "POST",headers, new
> > MyEventHandler(),
> > new ByteArrayInputStream(POSTbytes),
> > POSTbytes.length,false);
>
> > where URL is the webservice url. The error i am getting is: "The URL
> > could not be found".
>
> > Any ideas?
>
> > On 3 set, 11:23, kennyg <[EMAIL PROTECTED]> wrote:
>
> > > Did you set the android.permission.INTERNET permission in the
> > > Android.Manifest.xml?
>
> > > Not providing this leads to unexpected errors when connecting.
>
> > > Kenny.
>
> > > CezarAugustus Signori wrote:
> > > > Hi all!
>
> > > > i still try to send/receive data from/towebservices...well, i tried
> > > > the kSoap2 (as almost of us), but all that i get is an "unknown error"
> > > > message.
>
> > > > After some tries, i've decided to simple send XML to thewebservice
> > > > through a connection and receive the response as String to later
> > > > handle it with some XML parser. But all i can get is a bug "Does Not
> > > > Support Output" message from the URLConnection. If i use another class
> > > > such HttpUrlConnection from java.net or apache,  the "unknown error"
> > > > message comes again.
>
> > > > I tried things like described:
>
> > > >http://www.anddev.org/calling_a_web_service_from_android-t348.html
> > > >http://chitgoks.blogspot.com/2008/03/android-and-web-services.html
> > > > and other resources from this group..
>
> > > > Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: JNI support in 1.0

2008-09-29 Thread hackbod

To be clear: native code is not a supported part of the 1.0 SDK.  If
you use it, your application will most likely break with future
platform updates.

On Sep 29, 8:48 am, Josh Guilfoyle <[EMAIL PROTECTED]> wrote:
> I haven't specifically tested with 1.0, but with 0.9r1 it was
> certainly possible.  The issue of it being supported, however, is more
> difficult.  There is no distribution mechanism for native code,
> furthermore the /system image is not writable on normal phones.  So
> unless there is a way to load native code from /data (I can't say one
> way or another; haven't tried), it's certainly going to be out of
> reach for any typical user to install.  Even still, it will require
> some moderate sophistication to install apps that use native code, and
> they won't be available on the Market which is probably a big
> deterrent for most users.
>
> On Sep 29, 12:15 am, wiki <[EMAIL PROTECTED]> wrote:
>
> > HI,
> > does Android supports JNI?
> > I see the loadLibrary() function available in the System. but came
> > across certain discussion that Native code is not supported in Android
> > 1.0.
> > can somebody clear the picture please?
>
> > Regards
> > wiki
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notification Intent

2008-09-29 Thread hackbod

If you are changing the extra data, you want to use
PendingIntent.FLAG_CANCEL_CURRENT.

On Sep 29, 9:30 am, Gil <[EMAIL PROTECTED]> wrote:
> My app uses the status bar to handle notifications. It also sets an
> extra string in the intent when a notification is generated. Consider
> the following sequence of events:
>
> 1) First notification is generated. User clicks on the notification.
> An activity of my app receives the intent looks at the extra string.
> The app gets what it expects in the extra string.
> 2) The second notification is received.  User clicks on the
> notification. My activity receives the intent but the extra string
> (which is different this time) is the extra string from the first
> notification.
>
> Here is the code I use each time I generate a notification:
> 1) I create the notification intent at startup:
>
> m_clickIntent = new Intent( Intent.ACTION_MAIN);
> m_clickIntent.setClass( m_context, MyActivity.class);
> m_clickIntent.setFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP |
> Intent.FLAG_ACTIVITY_NEW_TASK);
>
> 2) I generate the first notification:
>
> m_clickIntent.putExtra( "data", "first hello");
> m_currentNotification = new
> Notification( R.drawable.status_bar_message_image, "Test",
> System.currentTimeMillis());
> m_currentNotification.setLatestEventInfo( m_context,
> m_context.getResources().getString( R.string.app_name), "Test",
> PendingIntent.getActivity( m_context, 0, m_clickIntent, 0));
> m_notificationManager.notify( APP_NOTIFICATIONS,
> m_currentNotification);
>
> 3) I generate the second notification:
> m_clickIntent.putExtra( "data", "second hello");
> ... same code as for the first notification
>
> I tried allocating the intent each time I generate the notification
> but that makes no difference.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Some help with webservices?!

2008-09-29 Thread Cezar Augustus Signori

Hi!

Sorry for the late!

Now i am developing with the new SDK, and the classes i was using are
no longer available.

But i still facing some problem.

The error i am getting is "Unkown Error" and the logcat says:
"OSNetworkSystem unkown socket error -1"

The code is above:

HttpClient client = new DefaultHttpClient();
HttpGet get = new HttpGet("http://www.biocol.org/json/fetch/
lsid/urn:lsid:biocol.org:col:15670");
try {
HttpResponse httpResponse = client.execute(get);
String res="";
if(httpResponse.getStatusLine().getStatusCode()!=404){
res=
EntityUtils.toString(httpResponse.getEntity());
}else
tv.setText("nothing found");
} catch (Exception e) {
tv.setText("fault: "+e.getLocalizedMessage());
} finally {
get.abort();
get=null;
}

Thanks!

On 9 set, 16:26, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote:
> Are you using the emulator behind a proxy? Can you load web pages in
> the browser? Can you provide the output from "adb logcat" when you try
> running this program?
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Sep 4, 7:03 pm,CezarAugustus Signori <[EMAIL PROTECTED]>
> wrote:
>
> > Thanks for the response!
>
> > Well, i still getting no results... i am using the following:
>
> > http://schemas.android.com/apk/res/android";
> > android:name="android.permission.INTERNET">
>
> > and..
>
> > 
>
> > something wrong or missing??
>
> > I am trying now to post data with RequestQueue, like the following:
>
> > RequestQueue rQueue = new RequestQueue(this);
> > Map headers = new HashMap > String>();
> > headers.put("Content-Type", "text/xml");
> > rQueue.queueRequest(URL, "POST",headers, new
> > MyEventHandler(),
> > new ByteArrayInputStream(POSTbytes),
> > POSTbytes.length,false);
>
> > where URL is the webservice url. The error i am getting is: "The URL
> > could not be found".
>
> > Any ideas?
>
> > On 3 set, 11:23, kennyg <[EMAIL PROTECTED]> wrote:
>
> > > Did you set the android.permission.INTERNET permission in the
> > > Android.Manifest.xml?
>
> > > Not providing this leads to unexpected errors when connecting.
>
> > > Kenny.
>
> > > CezarAugustus Signori wrote:
> > > > Hi all!
>
> > > > i still try to send/receive data from/towebservices...well, i tried
> > > > the kSoap2 (as almost of us), but all that i get is an "unknown error"
> > > > message.
>
> > > > After some tries, i've decided to simple send XML to thewebservice
> > > > through a connection and receive the response as String to later
> > > > handle it with some XML parser. But all i can get is a bug "Does Not
> > > > Support Output" message from the URLConnection. If i use another class
> > > > such HttpUrlConnection from java.net or apache,  the "unknown error"
> > > > message comes again.
>
> > > > I tried things like described:
>
> > > >http://www.anddev.org/calling_a_web_service_from_android-t348.html
> > > >http://chitgoks.blogspot.com/2008/03/android-and-web-services.html
> > > > and other resources from this group..
>
> > > > Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: location is always latitude 0 longitude 0 altitude 10 in v0.9

2008-09-29 Thread Xavier Ducrohet

Hi,

yes, the GPX playback does use the time info in each point of a GPX track.

For the KML, there is no time support in the playback yet. This means
it'll play  node based on their
value inner node.

KML routes using 
with a list of multiple long,lat values will not work at this time.

Xav

On Mon, Sep 29, 2008 at 9:40 AM, E.D.I <[EMAIL PROTECTED]> wrote:
>
> i have found the problem, there are no
> times for the points during the route and thats why
> when u press play in the ddms it seems like it does nothing, i
> successfuly created a gpx file with times, that sets location
> each minute for 15 minutes and it worked fine, the provider is the
> gps
> by the way, if any one knows how to add time to kml
> files i guess it would be perfect.
>
> On Sep 28, 3:57 pm, "hve.dk" <[EMAIL PROTECTED]> wrote:
>> Guillaume, I've just reported it 
>> as:http://code.google.com/p/android/issues/detail?id=915
>>
>> On 24 Sep., 12:32, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>>
>> > I retested a en_GB locale on my Ubuntu 8.04 LTS with Android v1.0.
>> > OMFG DDMS controls works with that locale !
>> > But how to procude KML files with direction but non mutlti coordinates
>> > tags using Google Earth ?
>> > I read and tested, multi-coordinates tag is not supported anymore...
>> > And google earth save directions with this tag.hve.dk, I haven't reported 
>> > an issue yet, did you ?
>>
>> > On 4 sep, 14:27, [EMAIL PROTECTED] wrote:
>>
>> > > Hi, I had the same problem, also switched locale and it works...
>> > > Guess it has nothing do do with the locale itself, more with the way
>> > > the OS is formatting date, time, ...
>> > > So you have to make sure that not only the language is changed to
>> > > english but also the formatting rules.
>>
>> > > I'm running MAC OS X and Eclipse 3.4,DDMSvia the Eclipse
>> > > perspective.
>>
>> > > On Sep 2, 11:09 am, "hve.dk" <[EMAIL PROTECTED]> wrote:
>>
>> > > > Guillaume, I got same the same problem (i.e.DDMSlocationcontrols
>> > > > doesn't reach the emulator - or is set to 0,0).
>> > > > Do you file a bug report 
>> > > > at:http://code.google.com/p/android/issues/list
>>
>> > > > (?) - If you don't I'll do it ;-)
>>
>> > > > On 26 Aug., 15:44, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>>
>> > > > > In the standard maps application, my position is always at latitude 0
>> > > > > and longitude 0, altitude 10.
>> > > > >Locationcontrols inDDMSin Eclipse seems to do nothing, I tried to
>> > > > > set manuallocation, using a GPX or a KML, i always get a 0,0
>> > > > >location...
>> > > > > The only provider available is gps when I tried programmatically.
>> > > > > Plus, the documentation tells us about about the "geo" command but I
>> > > > > didn't find it in my tools directory nor in adb shell internal
>> > > > > command
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-09-29 Thread Charlie Collins

I have this same issue.  I switched to localname as well, but it seems
like as soccercheng notes, you should be able to dictate namespace and
namespace-prefix features.  This blows up though, anyone on the team
care to elaborate - should this work with Android, and should a bug be
filed, or what?  (I didn't see any current bugs related to in my
cursory search.)

Also, this seems like a pretty big change from 0.9 to 1.0, maybe it
should go in the migrating guide?

On Sep 29, 10:09 am, Chris Cicc <[EMAIL PROTECTED]> wrote:
> Hello,
> I am also having a problem with the SAXParser that I believe is
> similar to your problem. I had a parser for a basic XML document that
> contained only nodes and text. This was working find for weeks with
> 0.9. But after the change to 1.0 RC1 it no longer works properly.
>
> Now, when it hits a node that contains the text, for instance "test &
> text", it will separate it into three records, "test", "&", "text".
> With 0.9 this would return "test & text" as you would assume. Using
> other special characters, such as % and *, work as expected. Anyone
> else see behavior like this?
>
> Any suggestions?
>
> Thanks,
> Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notification Intent

2008-09-29 Thread Gil

Interestingly enough if I use setData(Uri) instead of using extra
intent fields, the data is different (as you would expect) between the
two intents.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Attempt to include a core VM class in something other than a core library

2008-09-29 Thread UBZack

Hi Oscar,

I was getting this error because my "fileset dir=" in the dex call of
my ant build.xml was pointing to a directory with many, many jar files
in it, most of which were referencing javax classes (which, of course,
you can/should never do in Android), and I fixed this problem by
copying the one external lib that I actually needed, which is Apache's
"commons-codec.jar" from that directory and into its own directory,
which I then had "fileset dir=" point to in my build file's dex call.
I then rebuilt, and the error went away.

So my guess is that, unlike "commons-codec.jar" which is free of javax-
references, "stax-api-1.0-2.jar" has javax references inside it, and
you should probably look into what places in your Android code are
using that library, and consider using an Android-safe alternative
other than that library.  Passing the --core-libary option would
probably not be a good solution.

Best of luck!
-Zack

On Aug 27, 5:44 pm, "Oscar Castaneda" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm building a reduced set of Tuscany modules to get a sample Tuscany
> application running on Android. However, building results in the error shown
> below. How can I pass the "--core-library" option to the compiler and would
> this be a solution? The problem is arising when processing class files from
> stax-api-1.0-2.jar. Any ideas or thoughts on how to finish the build
> successfully would be greatly appreciated.
>
> [2008-08-27 23:23:55 - calculator-android]
> trouble processing "javax/xml/namespace/QName$1.class":
> [2008-08-27 23:23:55 - calculator-android]
> Attempt to include a core VM class in something other than a core library.
> It is likely that you have attempted to include the core library from a
> desktop
> virtual machine into an application, which will most assuredly not work. If
> you really intend to build a core library -- which is only appropriate as
> part of creating a full virtual machine binary, as opposed to compiling an
> application -- then use the "--core-library" option to suppress this error
> message. If you go ahead and use "--core-library" but are in fact building
> an application, then please be aware that your build will still fail at some
> point; you will simply be denied the pleasure of reading this helpful error
> message.
> [2008-08-27 23:23:55 - calculator-android] 1 error; aborting
> [2008-08-27 23:23:55 - calculator-android] Conversion to Dalvik format
> failed with error 1
>
> --
> best,
> -oscar
>
> Oscar Castañeda
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Documentation Blues

2008-09-29 Thread Mark Murphy

Megha Joshi wrote:
> Yes, it comes with the Browser in 1.0. But Gears plugin cannot be 
> installed to work with the WebView in user apps as there is no support 
> for installing native plugins in Android.

Ah.

> Also...there is a plan to replace it in future..with an alternative 
> which would be more easier to integrate in user apps...

Ah!

Glad to hear it!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Documentation Blues

2008-09-29 Thread Megha Joshi
Good point Mark.
Yes, it comes with the Browser in 1.0. But Gears plugin cannot be installed
to work with the WebView in user apps as there is no support for installing
native plugins in Android.
Also...there is a plan to replace it in future..with an alternative which
would be more easier to integrate in user apps...

2008/9/29 Mark Murphy <[EMAIL PROTECTED]>

>
> Megha Joshi wrote:
> > No Gears documentation.
> >
> > There is no support for Gears with Android yet.
>
> Sure there is. Ed Burnette even wrote up some samples:
>
> http://blogs.zdnet.com/Burnette/?p=662
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Documentation Blues

2008-09-29 Thread Mark Murphy

Megha Joshi wrote:
> No Gears documentation. 
> 
> There is no support for Gears with Android yet.

Sure there is. Ed Burnette even wrote up some samples:

http://blogs.zdnet.com/Burnette/?p=662

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: JNI support in 1.0

2008-09-29 Thread Josh Guilfoyle

I haven't specifically tested with 1.0, but with 0.9r1 it was
certainly possible.  The issue of it being supported, however, is more
difficult.  There is no distribution mechanism for native code,
furthermore the /system image is not writable on normal phones.  So
unless there is a way to load native code from /data (I can't say one
way or another; haven't tried), it's certainly going to be out of
reach for any typical user to install.  Even still, it will require
some moderate sophistication to install apps that use native code, and
they won't be available on the Market which is probably a big
deterrent for most users.

On Sep 29, 12:15 am, wiki <[EMAIL PROTECTED]> wrote:
> HI,
> does Android supports JNI?
> I see the loadLibrary() function available in the System. but came
> across certain discussion that Native code is not supported in Android
> 1.0.
> can somebody clear the picture please?
>
> Regards
> wiki
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to query for my current location?

2008-09-29 Thread zl25drexel

for those who are looking for solutions for this same question, here's
what I have, seems to work well with
> > For telnet: telnet localhost 5554
>
> > > geo fix  

  this.locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
  Location myLocation =
locationManager.getLastKnownLocation("gps");
  if(myLocation == null){
  Log.e("mylocation", "failed to determine my location");
  }else{
  Log.i("mylocation", myLocation.toString());
  }





On Sep 29, 12:28 pm, zl25drexel <[EMAIL PROTECTED]> wrote:
> Guillaume,
>
> I understand that i need to mock the the current location in the
> emulator, but my question is what api calls do i make to get the lat/
> lon that i put in DDMS. I cannot find any documentations related to
> that in android's documentation.
>
> On Sep 28, 4:53 am, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>
> > And you have to manually simulate your location using telnet or DDMS
> > controls in Eclipse (the latter only works if your OS is in english
> > locale).
> > For telnet: telnet localhost 5554
>
> > > geo fix 2 40
>
> > On 28 sep, 04:05, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > >zl25drexelwrote:
> > > > Hi, sorry i am sure this had been asked before, how do i find out my
> > > > current lat/lon using the location API?
>
> > > You can't, per se.
>
> > > You can call getLastKnownLocation() to return, well, the last known
> > > location, but that may be null (if there have been no locations recorded
> > > for the requested location provider) or stale (if the location provider
> > > has been out of service for a while).
>
> > > Or, call requestLocationUpdates() and take action when you get new
> > > position fixes from the location provider.
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: phone to phone communication?

2008-09-29 Thread Mark Murphy

whitehexagon wrote:
> I'm not having much luck on the beginners group... can someone please
> advise if what I'm trying to do is possible with the latest SDK
> please?

(pulling from your earlier email)

 > 1.  I want the app to run in the background and auto-detect when
 > another player(phone running same app) comes into range.  BT? Wifi?
 > Common server roundtripping with GPS location (yuk!) Something else I
 > haven't thought of?

BT APIs are not available in 1.0. I have no idea how you would achieve 
what you want with WiFi. GPS location should work.

 > 2.  Once two phones have discovered each other, I want to start a TCP
 > socket to socket comms session between the devices (it's fine, if not
 > better, if the user has to confirm this connecion).  ie 1 device will
 > assume server role, and the other will be a connecting client.
 > Possible? Supported?

I really really really don't recommend Internet server processes on 
devices. First, I don't if it will work. Second, I don't know if it will 
violate any carrier's terms of service. Third, it screams "security 
hole" in a very loud and insistent voice. Fourth, trying to do NAT 
translation and the like on the desktop is painful enough -- I can't 
imagine it on a phone.

 > So far I'm only finding info relating to GTalk or XMPP (deprecated?).

Deprecated insofar as libraries for each are not bundled with the 
operating system. If you find an Android-compatible third-party JAR 
(e.g., Smack for XMPP?), you can probably do what you want.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Null Pointer Exception while creating table

2008-09-29 Thread Pratik Goswami

hi,
I have implement this example. but i got an error.

I have write the code just for create database, create table,
insert values in it.

When I run application it displays nothing.

But when i tried to open my database from command prompt Like:

ls data/data/MyPackageNm

Then it gives only a Lib folder rather than database and Lib both.

So, i tried to found error via Log cat and put my code in try and
catch.

I got an error while creating table.

its gave Null Pointer exception.

Please any one help me.

My Log cat is like that and i have use this sample example as my
code.

Thanks.

Log Cat:-

uid=10032 gids={}
09-29 15:36:09.727: DEBUG/dalvikvm(813): LinearAlloc 0x0 used 538516
of 4194304 (12%)
09-29 15:36:09.837: INFO/jdwp(822): received file descriptor 10 from
ADB
09-29 15:36:10.128: INFO/Niketa(822): database created
09-29 15:36:10.137: INFO/Niketa(822): database opened
09-29 15:36:10.137: INFO/Niketa(822): --null
09-29 15:36:10.147: INFO/Niketa(822): +
+java.lang.NullPointerException
09-29 15:36:10.337: INFO/ActivityManager(52): Displayed activity
com.db/.DataBaseWork: 754 ms
09-29 15:36:15.507: DEBUG/dalvikvm(675): GC freed 44 objects / 1800
bytes in 151ms
09-29 15:36:15.507: DEBUG/dalvikvm(118): GC freed 3 objects / 72 bytes
in 143ms
09-29 15:36:15.527: DEBUG/dalvikvm(92): GC freed 1539 objects / 70560
bytes in


-


My java code is:

package com.db;

//import java.io.FileNotFoundException;
import java.util.ArrayList;

import android.app.Activity;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;

public class DataBaseWork extends Activity {
private final String MY_DATABASE_NAME = "LoginDB";
private final String MY_DATABASE_TABLE = "Login1";
private final String tag="Niketa";


@Override
public void onCreate(Bundle icicle) {
 super.onCreate(icicle);

 ArrayList results = new ArrayList();
 SQLiteDatabase myDB = null;
 try {

  /* Create the Database (no Errors if it already exists)
*/
  this.createDatabase(MY_DATABASE_NAME, 1, MODE_PRIVATE,
null);
  Log.i(tag,"database created");

  /* Open the DB and remember it */

  myDB = this.openDatabase(MY_DATABASE_NAME, null);
  Log.i(tag,"database opened ");

  /* Create a Table in the Database. */
  try
  {
  myDB.execSQL("CREATE TABLE IF NOT EXISTS "
  + "LoginDB.Login1"
  + " (UserNm TEXT, PassWd TEXT)"
  +";");
  Log.i(tag,"table created ");
  }
  /*catch(SQLException e1)
  {
  Log.i(tag,"SQL EXception"+e1);
  }*/


  catch(Exception e)
  {
  Log.i(tag,"--"+e.getMessage());
  Log.i(tag,"++"+e);
  }

/*  catch(SQLiteException se)
  {
  Log.i(tag,"SQLite Error"+se);
  }*/
  /* Add two DataSets to the Table. */
  myDB.execSQL("INSERT INTO "
  + MY_DATABASE_TABLE
  + " (UserNm, PassWd)"
  + " VALUES ('abc', 'def');");
  Log.i(tag,"value inserted ");


  /* Query for some results with Selection and Projection.
*/
  Cursor c = myDB.rawQuery("SELECT UserNm,PassWd" +
   " FROM " + MY_DATABASE_TABLE
   + ";",
   null);
  Log.i(tag,"value seleted ");

  /* Get the indices of the Columns we will need */
  int firstNameColumn = c.getColumnIndex("UserNm");
  int ageColumn = c.getColumnIndex("PassWd");

  /* Check if our result was valid. */
  if (c != null) {
   /* Check if at least one Result was returned. */
  if (c.isFirst()) {
int i = 0;

do {
 i++;

 String firstName =
c.getString(firstNameColumn);
 int age = c.getInt(ageColumn);
 String ageColumName =
c.getColumnName(ageColumn);

 results.add("" + i + ": " + firstName
+ " (" + ageColumName + ":
" + age + ")");
} while (c!=null);
   

[android-developers] Re: Customizing preferences editor

2008-09-29 Thread Guillaume Perrot

As you will notice, the setting will still be saved as a string in the
preference file.
To avoid this, I subclassed EditTextPreference into
EditIntegerPreference.
Here is my "as far as I tested working" class:

package some.package;

import android.content.Context;
import android.preference.EditTextPreference;
import android.util.AttributeSet;

public class EditIntegerPreference extends EditTextPreference
{
  public EditIntegerPreference(Context context)
  {
super(context);
  }

  public EditIntegerPreference(Context context, AttributeSet attrs)
  {
super(context, attrs);
  }

  public EditIntegerPreference(Context context, AttributeSet attrs,
int defStyle)
  {
super(context, attrs, defStyle);
  }

  @Override
  public String getText()
  {
return String.valueOf(getSharedPreferences().getInt(getKey(), 0));
  }

  @Override
  public void setText(String text)
  {
getSharedPreferences().edit().putInt(getKey(),
Integer.parseInt(text))
  .commit();
  }

  @Override
  protected void onSetInitialValue(boolean restoreValue, Object
defaultValue)
  {
if (restoreValue)
  getEditText().setText(getText());
else
  super.onSetInitialValue(restoreValue, defaultValue);
  }
}

In the XML you use it with the full class name, e.g.
 wrote:
> Short answer:
>        android:key="distance_units_m"
>     android:title="Distance"
>     android:summary="Summary"
>     android:dialogTitle="title"
>     android:numeric="integer"
>     android:maxLength="4"
>     android:hint="Enter distance (max )" />
> "This EditText can be modified [...] through XML by setting any
> EditText attributes on the EditTextPreference."
>
> Full answer:
> When using the dialogLayout attribute, maybe a special android:id
> identifier is required like the ids that must be used in ListActivity
> or TabActivity.
> Plus the documentation warns us about that attribute, as for the
> layout attribute (use the widgetLayout attribute instead).
>
> On 26 sep, 15:27, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > I have a preference setting that I need to customize so that the preference
> > will only accept ints.
> > The way I understand this is that I specify the android:dialogLayout with
> > the name of my custom layout:
> >  >               android:key="distance_units_m"
> >            android:title="Distance"
> >                android:summary="Summary"
> >                android:dialogTitle="title"
> >    android:dialogLayout="@layout/preferences_distance"
> >                />
>
> > This is my customized EditText: it only accepts numbers up to .
> > 
>
> >  > xmlns:android="http://schemas.android.com/apk/res/android";
> > android:numeric="integer"
> > android:maxLength="4"
> > android:hint="Enter distance (max )"
> > />
> > This works and shows up correctly.
>
> > I do not do anything else and my activity simply loads the XML resource.
>
> > The problem is that if I do specify my custom editor the data from the user
> > is not automatically saved anymore.
> > (Removing only the line with the dialogLayout makes it save as expected, so
> > that is correct)
>
> > Do I have to specify anything else in the XML to get it saved? Or do I now
> > have to program this?
> > (I would have thought that behind the scenes, the editor (whether it is
> > custom or not) is somehow created by a factory, and then all invocations
> > happen on the created object, thus making it no difference how the look/feel
> > of the custom editor is. But that is obviously not how it is done)
>
> > Any pointers?
>
> > Ludwig
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Customizing preferences editor

2008-09-29 Thread Guillaume Perrot

You'll notice that even if you put android:numeric="integer", the
setting will be saved and loaded as a string.
If you want it to be a integer:

package com.ubikod.android.ubikim.settings;

import android.content.Context;
import android.preference.EditTextPreference;
import android.util.AttributeSet;

public class EditIntegerPreference extends EditTextPreference
{
  public EditIntegerPreference(Context context)
  {
super(context);
  }

  public EditIntegerPreference(Context context, AttributeSet attrs)
  {
super(context, attrs);
  }

  public EditIntegerPreference(Context context, AttributeSet attrs,
int defStyle)
  {
super(context, attrs, defStyle);
  }

  @Override
  public String getText()
  {
return String.valueOf(getSharedPreferences().getInt(getKey(), 0));
  }

  @Override
  public void setText(String text)
  {
getSharedPreferences().edit().putInt(getKey(),
Integer.parseInt(text))
  .commit();
  }
}

and use  wrote:
> Short answer:
>        android:key="distance_units_m"
>     android:title="Distance"
>     android:summary="Summary"
>     android:dialogTitle="title"
>     android:numeric="integer"
>     android:maxLength="4"
>     android:hint="Enter distance (max )" />
> "This EditText can be modified [...] through XML by setting any
> EditText attributes on theEditTextPreference."
>
> Full answer:
> When using the dialogLayout attribute, maybe a special android:id
> identifier is required like the ids that must be used in ListActivity
> or TabActivity.
> Plus the documentation warns us about that attribute, as for the
> layout attribute (use the widgetLayout attribute instead).
>
> On 26 sep, 15:27, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > I have a preference setting that I need to customize so that the preference
> > will only accept ints.
> > The way I understand this is that I specify the android:dialogLayout with
> > the name of my custom layout:
> >  >               android:key="distance_units_m"
> >            android:title="Distance"
> >                android:summary="Summary"
> >                android:dialogTitle="title"
> >    android:dialogLayout="@layout/preferences_distance"
> >                />
>
> > This is my customized EditText: it only accepts numbers up to .
> > 
>
> >  > xmlns:android="http://schemas.android.com/apk/res/android";
> > android:numeric="integer"
> > android:maxLength="4"
> > android:hint="Enter distance (max )"
> > />
> > This works and shows up correctly.
>
> > I do not do anything else and my activity simply loads the XML resource.
>
> > The problem is that if I do specify my custom editor the data from the user
> > is not automatically saved anymore.
> > (Removing only the line with the dialogLayout makes it save as expected, so
> > that is correct)
>
> > Do I have to specify anything else in the XML to get it saved? Or do I now
> > have to program this?
> > (I would have thought that behind the scenes, the editor (whether it is
> > custom or not) is somehow created by a factory, and then all invocations
> > happen on the created object, thus making it no difference how the look/feel
> > of the custom editor is. But that is obviously not how it is done)
>
> > Any pointers?
>
> > Ludwig
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Notification Intent

2008-09-29 Thread Gil

My app uses the status bar to handle notifications. It also sets an
extra string in the intent when a notification is generated. Consider
the following sequence of events:

1) First notification is generated. User clicks on the notification.
An activity of my app receives the intent looks at the extra string.
The app gets what it expects in the extra string.
2) The second notification is received.  User clicks on the
notification. My activity receives the intent but the extra string
(which is different this time) is the extra string from the first
notification.

Here is the code I use each time I generate a notification:
1) I create the notification intent at startup:

m_clickIntent = new Intent( Intent.ACTION_MAIN);
m_clickIntent.setClass( m_context, MyActivity.class);
m_clickIntent.setFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP |
Intent.FLAG_ACTIVITY_NEW_TASK);

2) I generate the first notification:

m_clickIntent.putExtra( "data", "first hello");
m_currentNotification = new
Notification( R.drawable.status_bar_message_image, "Test",
System.currentTimeMillis());
m_currentNotification.setLatestEventInfo( m_context,
m_context.getResources().getString( R.string.app_name), "Test",
PendingIntent.getActivity( m_context, 0, m_clickIntent, 0));
m_notificationManager.notify( APP_NOTIFICATIONS,
m_currentNotification);

3) I generate the second notification:
m_clickIntent.putExtra( "data", "second hello");
... same code as for the first notification

I tried allocating the intent each time I generate the notification
but that makes no difference.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: location is always latitude 0 longitude 0 altitude 10 in v0.9

2008-09-29 Thread E.D.I

i have found the problem, there are no
times for the points during the route and thats why
when u press play in the ddms it seems like it does nothing, i
successfuly created a gpx file with times, that sets location
each minute for 15 minutes and it worked fine, the provider is the
gps
by the way, if any one knows how to add time to kml
files i guess it would be perfect.

On Sep 28, 3:57 pm, "hve.dk" <[EMAIL PROTECTED]> wrote:
> Guillaume, I've just reported it 
> as:http://code.google.com/p/android/issues/detail?id=915
>
> On 24 Sep., 12:32, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>
> > I retested a en_GB locale on my Ubuntu 8.04 LTS with Android v1.0.
> > OMFG DDMS controls works with that locale !
> > But how to procude KML files with direction but non mutlti coordinates
> > tags using Google Earth ?
> > I read and tested, multi-coordinates tag is not supported anymore...
> > And google earth save directions with this tag.hve.dk, I haven't reported 
> > an issue yet, did you ?
>
> > On 4 sep, 14:27, [EMAIL PROTECTED] wrote:
>
> > > Hi, I had the same problem, also switched locale and it works...
> > > Guess it has nothing do do with the locale itself, more with the way
> > > the OS is formatting date, time, ...
> > > So you have to make sure that not only the language is changed to
> > > english but also the formatting rules.
>
> > > I'm running MAC OS X and Eclipse 3.4,DDMSvia the Eclipse
> > > perspective.
>
> > > On Sep 2, 11:09 am, "hve.dk" <[EMAIL PROTECTED]> wrote:
>
> > > > Guillaume, I got same the same problem (i.e.DDMSlocationcontrols
> > > > doesn't reach the emulator - or is set to 0,0).
> > > > Do you file a bug report at:http://code.google.com/p/android/issues/list
>
> > > > (?) - If you don't I'll do it ;-)
>
> > > > On 26 Aug., 15:44, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>
> > > > > In the standard maps application, my position is always at latitude 0
> > > > > and longitude 0, altitude 10.
> > > > >Locationcontrols inDDMSin Eclipse seems to do nothing, I tried to
> > > > > set manuallocation, using a GPX or a KML, i always get a 0,0
> > > > >location...
> > > > > The only provider available is gps when I tried programmatically.
> > > > > Plus, the documentation tells us about about the "geo" command but I
> > > > > didn't find it in my tools directory nor in adb shell internal
> > > > > command
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to use mock location in sdk 1.0????

2008-09-29 Thread E.D.I

thanks for the replay u all, but i found the problem, there are no
times for the points during the route and thats why
when u press play in the ddms it seems like it does nothing, i
successfuly created a gpx file with times, that sets location
each minute for 15 minutes and it worked fine, the provider is the gps
by the way, if any one knows how to add time to kml
files i guess it would be perfect.

On Sep 29, 1:50 pm, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
> A "full" discussion about this can be found 
> athttp://groups.google.com/group/android-developers/browse_thread/threa...
>
> On Sep 29, 12:49 pm, Guillaume Perrot <[EMAIL PROTECTED]>
> wrote:
>
> > We all got stuck in DDMS controls, check the other threads.
> > There are two conditions for a KML file to work in DDMS:
> > * the KML file must not be a multi-coordinate styled file (like when
> > you save a direction in Google Earth => it is not supported since
> > v0.9)
> > * in order DDMS controls to work, your OS must be in an english (GB)
> > locale, yes this is a strange bug...
>
> > On Sep 28, 12:09 pm, "E.D.I" <[EMAIL PROTECTED]> wrote:
>
> > > i have created a kml file Route.kml
> > > and i tried to load it to the to the DDMS and indeed it was loaded
> > > the only problem is the what i see is the name rout and the lot long
> > > are 0.0
> > > and when i try to get the list of providers i get only 'gps' provider
> > > witch also does not realy give me my current
> > > location  but also gives 0 for lat long, i have also connected a
> > > lestener to it and the location does not change the only way it works
> > > is if i give it a manual locationand the the 'gps' my current location
> > > changes..
> > > the question is how can i use a kml file as a provider
> > > and if there is a problem maby agpx file will work but i dont realy
> > > know how to create it
> > > please help i'm realy stuck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] phone to phone communication?

2008-09-29 Thread whitehexagon

Hi All,

I'm not having much luck on the beginners group... can someone please
advise if what I'm trying to do is possible with the latest SDK
please?

http://groups.google.com/group/android-beginners/browse_thread/thread/82abb4bc1a156261#

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ocr for andrion??

2008-09-29 Thread Stb

Hi Everybody.

Watching the capabilites of andriod to scan and analyze bar codes, I
was wondering if Andriod comes with ocr capabilites or if there a
suitable ocr that could be ported to the andriod platform, if not I
have been thinking in start a project to develop ocr capabilites
within andriod. It would be neat to scan labels and then pull all sort
of info from the web.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to use mock location in sdk 1.0????

2008-09-29 Thread [EMAIL PROTECTED]

Hi,
I think your problem depends on the format of the kml file you're
using.
It seems the kml parser used by ddms tool looks for placemark tags
inside it.

Open your kml and see if you can find a collection of 
tags, each one reporting a single  tag.
If not, try to get another kml.

Let me know if you solved your issue

Bye,

Stefano

On Sep 28, 12:09 pm, "E.D.I" <[EMAIL PROTECTED]> wrote:
> i have created a kml file Route.kml
> and i tried to load it to the to the DDMS and indeed it was loaded
> the only problem is the what i see is the name rout and the lot long
> are 0.0
> and when i try to get the list of providers i get only 'gps' provider
> witch also does not realy give me my current
> location  but also gives 0 for lat long, i have also connected a
> lestener to it and the location does not change the only way it works
> is if i give it a manual locationand the the 'gps' my current location
> changes..
> the question is how can i use a kml file as a provider
> and if there is a problem maby agpx file will work but i dont realy
> know how to create it
> please help i'm realy stuck

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to get the data from app.Service

2008-09-29 Thread hoyu

My program have a main activity and a app.Service in the background.
Service will receive a string(like the broadcastReceiver).
How can I use the string in my main activity?

thanks-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] New to Android

2008-09-29 Thread Parasss

Hello Friends,

  This is Parasuram, new Android.

can any one sugessest me  to work with the Android..

i have installed Android SDK 1.0 beta version and i have tried hello
world program also.

but i need a clear idea about the Android.

Thanks

Parasuraman Kumarasami


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Log Reading Problem in sdk 0.9

2008-09-29 Thread sush

Hi,

In my application, I have created a read from file module which reads
from the log report and manipulates the data. I was having problems
with the data manipulation, so decided to reprint the read log lines.
However, upon doing so, I found that not all of the lines from the log
are read. Some of the lines in the middle are not read. Following is
an example:


The logfile has the following lines: where the *** lines are not read.

V/LOCATION_GETACCURACY_APP( 2022): The API tested was:
android.location.Location
.getAccuracy()
V/LOCATION_GETACCURACY_APP( 2022):
V/LOCATION_GETACCURACY_APP( 2022):  STARTING TO TEST THE LOCATION
APPLICATION
V/LOCATION_GETACCURACY_APP( 2022):
V/LOCATION_GETACCURACY_APP( 2022):  STARTING TO TEST THE API :
android.location.
getAccuracy()
V/LOCATION_GETACCURACY_APP( 2022):
__***
V/LOCATION_GETACCURACY_APP( 2022): THE NAME OF THE API: public float
getAccuracy
()
V/LOCATION_GETACCURACY_APP( 2022): THE EXACT INPUT PARAMETERS OF THE
API:Void***
V/LOCATION_GETACCURACY_APP( 2022): The result is:120.0***
V/LOCATION_GETACCURACY_APP( 2022): The result is:120.0
V/LOCATION_GETACCURACY_APP( 2022): The result is:120.0
V/LOCATION_GETACCURACY_APP( 2022): SUCCESS_DummyvalidationString***
V/LOCATION_GETACCURACY_APP( 2022):
V/LOCATION_GETACCURACY_APP( 2022): CALLING THE VALIDATION STRING FILE
OF AndroidTest Class...***
V/ANDROID_API_TESTER( 2022): The file exists?... false
V/ANDROID_API_TESTER( 2022): The Newfile is created : true***
I/global  ( 2022): Sep 29, 2008 6:25:51 PM java.io.BufferedWriter




Dalvik (after the read from file module reprints the same log lines
with the extra tag "Went after the if of else." given by me and
changed case):

09-29 18:26:10.410: VERBOSE/ANDROID TEST(2158): Went after the if of
else.v/location_getaccuracy_app( 2022): the api tested was:
android.location.location.getaccuracy()
09-29 18:26:10.410: VERBOSE/ANDROID TEST(2158): Went after the if of
else.v/location_getaccuracy_app( 2022):  starting to test the
location application
09-29 18:26:10.430: VERBOSE/ANDROID TEST(2158): Went after the if of
else.v/location_getaccuracy_app( 2022):  starting to test the
api : android.location.getaccuracy()
09-29 18:26:10.439: VERBOSE/ANDROID TEST(2158): Went after the if of
else.v/location_getaccuracy_app( 2022): the name of the api:
public float getaccuracy()
09-29 18:26:10.439: VERBOSE/ANDROID TEST(2158): Went after the if of
else.v/location_getaccuracy_app( 2022): the result is:120.0
09-29 18:26:10.439: VERBOSE/ANDROID TEST(2158): Went after the if of
else.v/location_getaccuracy_app( 2022): the result is:120.0
09-29 18:26:10.439: VERBOSE/ANDROID TEST(2158): Went after the if of
else.v/location_getaccuracy_app( 2022):
09-29 18:26:10.439: VERBOSE/ANDROID TEST(2158): Went after the if of
else.v/android_api_tester( 2022): the file exists?... false
09-29 18:26:10.459: VERBOSE/ANDROID TEST(2158): Went after the if of
else.i/global  ( 2022): sep 29, 2008 6:25:51 pm
java.io.bufferedwriter 
else.w/processmanager( 2158): error killing process 2169: no such
process

Please help! Thank you in advance for any insight that you can
provide.

Thanks again,
Susama

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-09-29 Thread Chris Cicc

Hello,
I am also having a problem with the SAXParser that I believe is
similar to your problem. I had a parser for a basic XML document that
contained only nodes and text. This was working find for weeks with
0.9. But after the change to 1.0 RC1 it no longer works properly.

Now, when it hits a node that contains the text, for instance "test &
text", it will separate it into three records, "test", "&", "text".
With 0.9 this would return "test & text" as you would assume. Using
other special characters, such as % and *, work as expected. Anyone
else see behavior like this?

Any suggestions?

Thanks,
Chris

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ContentHandler.startElement(..) and ContentHandler.endElement(..) won't be called in 1.0 rc1

2008-09-29 Thread Chris Cicc

Hello,
I am also having a problem with the SAXParser that I believe is
similar to your problem. I had a parser for a basic XML document that
contained only nodes and text. This was working find for weeks with
0.9. But after the change to 1.0 RC1 it no longer works properly.

Now, when it hits a node that contains the text, for instance "test &
text", it will separate it into three records, "test", "&", "text".
With 0.9 this would return "test & text" as you would assume. Using
other special characters, such as % and *, work as expected. Anyone
else see behavior like this?

Any suggestions?

Thanks,
Chris

On Sep 24, 11:09 am, Stefan Handschuh <[EMAIL PROTECTED]> wrote:
> Following scenario:
>
>        SAXParsersaxParser= saxParserFactory.newSAXParser();
>
>         XMLReader xmlReader =saxParser.getXMLReader();
>
>         xmlReader.setContentHandler(handler);
>         xmlReader.parse(someImputStream);
>
> where handler implements ContentHandler.
>
> xmlReader.parse(..) calls handler.characters(..) but neither
> handler.startElement(..) nor handler.endElement(..).
>
> This worked well in 0.9.
>
> Can this regression be reproduced by anybody?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Receiving SMS Messages in 1.0?

2008-09-29 Thread anu

Hi,

I have been trying the receive sms app myself. It worked fine in 0.9
version. But, in the 1.0 version, there is no
android.provider.Telephony class and I see no other intents which I
can use to retrieve a received SMS. Please let me know if you have any
working code in the latest SDK.

Thanks,
Anu

On Sep 24, 6:03 pm, Cristina <[EMAIL PROTECTED]> wrote:
> Sorry I misundertand your message..
>
> Yes I have tried that part of the application (receiving a textsms)
> and works for me.
>
> I have send the message using the DDMS send utility...
> Maybe you can use the debugger in order to see if you are receiving
> the intent bundle with the extra "pdus"...
> Using the debugger I discovered that the intent bundle has this "pdus"
> extra, which is an Object[].
> Each Object[] element is a pdu (byte[])
>
> Can you see this using the debugger? Where is your application
> failing?
>
> Cristina
>
> On 24 sep, 14:20, "De San Nicolas Jean Philippe" <[EMAIL PROTECTED]>
> wrote:
>
> > Hello, I've tried your code but it failed! my application failed. Have you
> > tried and succeed?
>
> > 2008/9/24 Cristina <[EMAIL PROTECTED]>
>
> > > Hi,
>
> > > I do not know if it is the right way, but I have found a way to get
> > > the message.
> > > Here I include my code to get the SmsMessages. I hope it helps you
>
> > > public class ServerMessagesReceiver extends BroadcastReceiver {
>
> > >    static final String ACTION =
> > > "android.provider.Telephony.SMS_RECEIVED";
>
> > >    public void onReceive(Context context, Intent intent) {
> > >         if (intent.getAction().equals(ACTION)) {
> > >                 StringBuilder buf = new StringBuilder();
> > >                 Bundle bundle = intent.getExtras();
> > >                 if (bundle != null) {
> > >                         Object[] pdusObj = (Object[]) bundle.get("pdus");
> > >                         SmsMessage[] messages = new
> > > SmsMessage[pdusObj.length];
> > >                         for (int i = 0; i > >                                 messages[i] = SmsMessage.createFromPdu
> > > ((byte[]) pdusObj[i]);
> > >                         }
> > > 
> > > 
> > > ...
>
> > > By the way, Does somebody know how toreceiveanSMSthat has been
> > > sent using
> > > an application port using the methos.sendDataMessage?
>
> > > On 24 sep, 08:15, Reto Meier <[EMAIL PROTECTED]> wrote:
> > > > Is it still possible to listen for incomingSMSmessages in the latest
> > > > 1.0 SDK release?
>
> > > > The SMS_RECEIVED_ACTION string used to listen for incomingSMS
> > > > messages seems to have gone missing. It used to be available from the
> > > > android.provider.Telephony.Smspackage, which also seems to have
> > > > disappeared, so getMessagesFromIntent has gone too.
>
> > > > Previously, you could create a Broadcast Receiver to listen forSMS
> > > > messages using this code:
>
> > > >   String incoming_SMS =
> > > > android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION;
>
> > > >   public void onReceive(Context _context, Intent _intent) {
>
> > > >     if (_intent.getAction().equals(incoming_SMS)) {
> > > >       SmsManagersms= SmsManager.getDefault();
> > > >       SmsMessage[] messages =
> > > >Sms.Intents.getMessagesFromIntent(_intent);
> > > >     }
>
> > > > Is there still a way to do this?
>
> > > > Thanks
> > > > Reto- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Important Announcement: Handango Android Catalog

2008-09-29 Thread Handango

Handango, the original multi-platform app store, will be launching one
of the industry’s first Android catalogs in November. Handango has
served millions of customers since 1999 and has become the trusted and
agnostic source for smartphone content. Handango's legacy is with the
early adopters and, in fact, Handango has supported Linux applications
for many years. Content providers building Android applications and
looking for distribution are encouraged to contact Will Pinnell
([EMAIL PROTECTED] or +1.972.894.0467) for priority in the promotion
of the content within the catalog.

Beginning October 1st, content providers will be able to add Android
applications directly to developer accounts and choose to distribute
them to customers in three ways:

1) Give them away for free
2) Sell them for a one-time purchase fee
3) Set them up as a monthly, quarterly, or yearly subscription fee
(subscription APIs provided at no cost)

Content providers are encouraged to jump on this opportunity as soon
as possible in order to maximize distribution and revenue as soon as
the first Android phone is in the market. If you’re an existing
Handango content partner, simply add the new Android content to your
account.  If you’re not yet working with Handango, you can apply to
become a software partner at http://developer.handango.com and your
application will be accepted within 24 hours. Depending on volume,
content providers keep 50-70% of the suggest retail price that they
provide, less any transaction costs that might occur.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Phone Listner API in Android?

2008-09-29 Thread Arunk



Is  there any API which can listen to the phone states in Android?

I mean when a call is initiated, connected, answeres or disconnected.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Spinner Text / Value

2008-09-29 Thread E.D.I

u need to create an array in the resources ( values\arrays.xml ) with
the values u want the spinner to show
and create a SpinnerAdupter with this array
u can see an example in the samples comming with the android sdk
( ApiDemos ) and from the spinner u can take
the indx of the item.

On Sep 29, 5:40 pm, Lonzo1968 <[EMAIL PROTECTED]> wrote:
> How do I setup a Spinner to have a  Text Value and an Associated Id
> ( similar to what you would see in an HTML Select Tag ). I want to
> display a Client Name in the Spinner, but I want to save the Client_Id
> associated with the Name.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to query for my current location?

2008-09-29 Thread zl25drexel

Guillaume,

I understand that i need to mock the the current location in the
emulator, but my question is what api calls do i make to get the lat/
lon that i put in DDMS. I cannot find any documentations related to
that in android's documentation.

On Sep 28, 4:53 am, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
> And you have to manually simulate your location using telnet or DDMS
> controls in Eclipse (the latter only works if your OS is in english
> locale).
> For telnet: telnet localhost 5554
>
> > geo fix 2 40
>
> On 28 sep, 04:05, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> >zl25drexelwrote:
> > > Hi, sorry i am sure this had been asked before, how do i find out my
> > > current lat/lon using the location API?
>
> > You can't, per se.
>
> > You can call getLastKnownLocation() to return, well, the last known
> > location, but that may be null (if there have been no locations recorded
> > for the requested location provider) or stale (if the location provider
> > has been out of service for a while).
>
> > Or, call requestLocationUpdates() and take action when you get new
> > position fixes from the location provider.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] problems calling Hessian service with HTTP post

2008-09-29 Thread jt

I'm trying to connect to a Spring Hessian service.  I get this error:
"java.net.ProtocolException: Does not support output" when calling
c.getOutputStream().  Should I be using some other HTTP API for this?
Is there any better way to do remote procedure calls with Android?
Thanks for any help!

private String getHello() throws IOException {

URL url= new 
URL("http://localhost:8069/hm/remoting/ServerService";);

HttpURLConnection c = (HttpURLConnection) url.openConnection();
OutputStream os = c.getOutputStream();
MicroHessianOutput out = new MicroHessianOutput(os);

out.startCall("hello");
out.writeString("echo");
out.completeCall();

os.flush();

InputStream is = c.getInputStream();

MicroHessianInput in = new MicroHessianInput(is);
in.startReply();
String value = in.readString();
in.completeReply();
return value;
}


09-29 15:26:22.332: WARN/System.err(231): java.net.ProtocolException:
Does not support output
09-29 15:26:22.412: WARN/System.err(231): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:
1078)
09-29 15:26:22.433: WARN/System.err(231): at
com.hm.hm.getHello(hm.java:94)
09-29 15:26:22.453: WARN/System.err(231): at
com.hm.hm.onCreate(hm.java:38)
09-29 15:26:22.463: WARN/System.err(231): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1122)
09-29 15:26:22.482: WARN/System.err(231): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2103)
09-29 15:26:22.493: WARN/System.err(231): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2156)
09-29 15:26:22.514: WARN/System.err(231): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
09-29 15:26:22.522: WARN/System.err(231): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
09-29 15:26:22.532: WARN/System.err(231): at
android.os.Handler.dispatchMessage(Handler.java:88)
09-29 15:26:22.542: WARN/System.err(231): at
android.os.Looper.loop(Looper.java:123)
09-29 15:26:22.542: WARN/System.err(231): at
android.app.ActivityThread.main(ActivityThread.java:3742)
09-29 15:26:22.553: WARN/System.err(231): at
java.lang.reflect.Method.invokeNative(Native Method)
09-29 15:26:22.562: WARN/System.err(231): at
java.lang.reflect.Method.invoke(Method.java:515)
09-29 15:26:22.573: WARN/System.err(231): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
09-29 15:26:22.583: WARN/System.err(231): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
09-29 15:26:22.593: WARN/System.err(231): at
dalvik.system.NativeStart.main(Native Method)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

sorry! there was a sideeffect i didn't see so far.
it works without uses-library, too!

what i havn't seen so far is that my build was, eventhrough it said
"success" not installed on the emulator. But when i edited the
manifest
it got properly reinstalled. My changed code was put on the device
just then,
so again: sorry for the misleading note!



On 29 Sep., 17:14, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> meanwhile I am astonished as well,
> I will again remove the tags and see... maybe i didn't consider
> something.
>
> On 29 Sep., 16:55, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > Jakob Sachse wrote:
> > > Still there was that tricky NoClassDefinitionFoundError, thrown by
> > > PathClassLoader. I was very unsatisfied then. Yesterday just before
> > > sleeping
> > > I had to think of the  tag I have seen in combination
> > > with java.awt around here. I totally forgot that today, but when I was
> > > stuck
> > > with the same error today it came to me again. I inserted:
>
> > > 
> > > 
>
> > > just before  closes. Compiled, Installed and didn't really
> > > think of success, so i just hit F8 (debugging, run) all the time. I
> > > could hardly belive my eyes
> > > but the statemachine began working.
>
> > Very curious. I wonder what the scenarios are when  is and
> > is not needed. For example, I have a sample in my book that uses a copy
> > of Beanshell that I locally compiled, and it works without
> > . I assumed  was something magic for some of
> > Google's optional stuff -- I had missed the posts where it was used for
> > java.awt.
>
> > Thanks for the info!
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Need Help with diaplaying Menu

2008-09-29 Thread Dipen

Thanks Mark.

yes, it was spelling error. Also, i was not calling show() on Toast. I
am little bit surprise eclipse did not catch it. Logcat did not report
any error so, I was constantly paying attention to the logic than
spellings.

Thanks again.

On Sep 29, 11:19 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Dipen wrote:
> >     public boolean onCreatgeOptionsMenu(Menu menu)
>
> You do not have onCreateOptionsMenu spelled correctly above.
>
> >     public boolean onOptionsItenSelected(MenuItem item)
>
> You do not have onOptionsItemSelected spelled correctly above.
>
> I do not know if those are real problems or merely something in how you
> pasted the code into the email message, though.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 
> 2009http://www.bignerdranch.com/schedule.shtml
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ImageButton caching images when using Uri

2008-09-29 Thread Joe Erickson

I'm seeing some caching problems when using an ImageButton with a Uri
and I'm not sure if there's a flag that needs set somewhere or not.

I'm using the button to add an icon to an item in one of my
applications, exactly like it's being used for the Contact application
(which I don't think the source is available for).  I'm using the CROP
trick seen in this application:
http://code.google.com/p/apps-for-android/source/browse/trunk/Photostream/src/com/google/android/photostream/ViewPhotoActivity.java

Specifically, I'm calling the image picker and then the crop like so:

protected OnClickListener cmdIconListener = new OnClickListener() {
// @Override
public void onClick(View arg0) {
Intent i = new
Intent("android.intent.action.GET_CONTENT");
i.setType("image/*");
startActivityForResult(i, AddTea.ADD_ICON);
}
};

protected void onActivityResult(int requestCode, int resultCode,
Intent data){
// See which child activity is calling us back.
switch (requestCode) {
case AddTea.ADD_ICON:
// This is the standard resultCode that is sent back if the
// activity crashed or didn't doesn't supply an explicit
result.
if (resultCode != RESULT_CANCELED){
 Intent i = new Intent("com.android.camera.action.CROP");
 i.setClassName("com.android.camera",
"com.android.camera.CropImage");
 i.setData(data.getData());
 Log.d(TAG, "path: " + data.getData().getPath());
 i.putExtra("noFaceDetection", true);
 i.putExtra("outputX", iconWidth);
 i.putExtra("outputY", iconHeight);
 i.putExtra("aspectX", iconWidth);
 i.putExtra("aspectY", iconHeight);
 i.putExtra("scale", true);

 if(iconUri == null){
 ContentValues values = new ContentValues();
 
values.put(android.provider.MediaStore.Images.Media.TITLE, name + "
Icon");
 
values.put(android.provider.MediaStore.Images.Media.BUCKET_ID,
"STeaP_Tea_Timer_Icons");
 
values.put(android.provider.MediaStore.Images.Media.BUCKET_DISPLAY_NAME,
"STeaP Tea Timer Icons");
 iconUri =
getContentResolver().insert(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
values).toString();
  }
  i.putExtra("output", Uri.parse(iconUri));
  startActivityForResult(i, CROP_ICON);
}
break;
case AddTea.CROP_ICON:
if (resultCode != RESULT_CANCELED){
Log.d(TAG, "Data String: " + iconUri);
showIconButton(iconUri);
}
default:
break;
}
}

protected void showIconButton(String iconUri){
if(iconUri != null){
ImageButton iconField = (ImageButton)
findViewById(R.id.iconButton);
Log.d(TAG, "iconUri: " + iconUri);
iconField.setImageURI(Uri.parse(iconUri));
iconField.invalidate();
}
}


So if the item doesn't have an icon, set one in the ContentProvider
and save the iconUri.  If it does, just overwrite it with the new
cropped image.

This works fine if the item never had an icon.  It shows in the
ImageButton when the Activity returns.  However, if the item already
had an icon, my Activity still shows the old icon, even though it was
overwritten.  It seems that if the ImageButton gets the same Uri back,
even if I wrote a new image to it, it doesn't redraw, even if I tell
it to invalidate().  If I relaunch my Activity, the new image shows up
just like I expected.  Funny enough, the Pictures application doesn't
see any images I created until I restart the emulator, which also
doesn't seem ideal!

So, is there anyway to handle this caching of the Uri?  I seems like
the ContentProvider should be doing this when I write a new image to
it, but it doesn't seem to be.  Also, before anyone suggests, I tried
deleteing the entry in the ContentProvider and making a new one and
that seems to partially work.  It partilly works because, if the Uri
we get back it new, the view does refresh with this new Uri.  However,
if the icon was the last picture to be saved to the ContentProvider,
say item 10, then the ContentProvider will delete item 10 and the
reuses 10 as the next id!  So I'm back where I started and the
ImageButton shows the old icon.

Any help in kicking the ContentProvider of ImageButton into shape
would be appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Need Help with diaplaying Menu

2008-09-29 Thread Mark Murphy

Dipen wrote:
> public boolean onCreatgeOptionsMenu(Menu menu)

You do not have onCreateOptionsMenu spelled correctly above.

> public boolean onOptionsItenSelected(MenuItem item)

You do not have onOptionsItemSelected spelled correctly above.

I do not know if those are real problems or merely something in how you 
pasted the code into the email message, though.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

meanwhile I am astonished as well,
I will again remove the tags and see... maybe i didn't consider
something.

On 29 Sep., 16:55, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Jakob Sachse wrote:
> > Still there was that tricky NoClassDefinitionFoundError, thrown by
> > PathClassLoader. I was very unsatisfied then. Yesterday just before
> > sleeping
> > I had to think of the  tag I have seen in combination
> > with java.awt around here. I totally forgot that today, but when I was
> > stuck
> > with the same error today it came to me again. I inserted:
>
> > 
> > 
>
> > just before  closes. Compiled, Installed and didn't really
> > think of success, so i just hit F8 (debugging, run) all the time. I
> > could hardly belive my eyes
> > but the statemachine began working.
>
> Very curious. I wonder what the scenarios are when  is and
> is not needed. For example, I have a sample in my book that uses a copy
> of Beanshell that I locally compiled, and it works without
> . I assumed  was something magic for some of
> Google's optional stuff -- I had missed the posts where it was used for
> java.awt.
>
> Thanks for the info!
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Need Help with diaplaying Menu

2008-09-29 Thread Dipen

Group,

I can not display option menu as simple as below.

public class menu extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
public boolean onCreatgeOptionsMenu(Menu menu)
{
super.onCreateOptionsMenu(menu);
menu.add(Menu.NONE ,0,Menu.NONE, "A");
menu.add(Menu.NONE,1,Menu.NONE,"B");
return true;
}
public boolean onOptionsItenSelected(MenuItem item)
{
switch(item.getItemId())
{
case 0:
Toast
.makeText(this, "A Selected", 1);
return(true);
//super.onOptionsItemSelected(item);
case 1:
Toast
.makeText(this,"B Selected",1);
return(true);
//super.onOptionsItemSelected(item);

}
return false;
}

}

Is there some changes in SDK 1,0 that I am not aware of?

Thanks,
Dipen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Mark Murphy

Jakob Sachse wrote:
> Still there was that tricky NoClassDefinitionFoundError, thrown by
> PathClassLoader. I was very unsatisfied then. Yesterday just before
> sleeping
> I had to think of the  tag I have seen in combination
> with java.awt around here. I totally forgot that today, but when I was
> stuck
> with the same error today it came to me again. I inserted:
> 
> 
> 
> 
> just before  closes. Compiled, Installed and didn't really
> think of success, so i just hit F8 (debugging, run) all the time. I
> could hardly belive my eyes
> but the statemachine began working.

Very curious. I wonder what the scenarios are when  is and 
is not needed. For example, I have a sample in my book that uses a copy 
of Beanshell that I locally compiled, and it works without 
. I assumed  was something magic for some of 
Google's optional stuff -- I had missed the posts where it was used for 
java.awt.

Thanks for the info!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Spinner Text / Value

2008-09-29 Thread Lonzo1968

How do I setup a Spinner to have a  Text Value and an Associated Id
( similar to what you would see in an HTML Select Tag ). I want to
display a Client Name in the Spinner, but I want to save the Client_Id
associated with the Name.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

sure, as I mentioned above I was eagerly trying to deploy java.beans
(the harmony module) and commons.beanutils.
I need those as dependencies (alongside lots of others) that I have to
solve for getting commons.scxml up running.

I started of by using java.beans and org.apache.commons.beanutils
included as jar files. No success, the NoClassDefinitionError
came up all the time. Next I included the sources so that i could so
some debugging.

Turned out that there were lots of problems inside both the packages.
(Lots of references to java.awt and java.swing)
So I had to cut those off. I deleted sources that I didn't need and
manipulated those I need. Finally the ant build was successful.

Still there was that tricky NoClassDefinitionFoundError, thrown by
PathClassLoader. I was very unsatisfied then. Yesterday just before
sleeping
I had to think of the  tag I have seen in combination
with java.awt around here. I totally forgot that today, but when I was
stuck
with the same error today it came to me again. I inserted:




just before  closes. Compiled, Installed and didn't really
think of success, so i just hit F8 (debugging, run) all the time. I
could hardly belive my eyes
but the statemachine began working.

Thats it.

On 29 Sep., 15:03, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Jakob Sachse wrote:
> > resolved:  in manifest helped out
>
> If you have the time, could you provide more details?
>
> Thanks!
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Intermediate server Problem

2008-09-29 Thread Brian Beattie

On Sun, 2008-09-28 at 22:40 -0700, Pratik Goswami wrote:
> Hi
> 
> I m developing an android application to uploads photos to picasa web
> album and i have to develop intermediate server to handle all request-
> response between picasa web album server and my mobile client.
> 
> I have made three servlets on intermediate server side Login, Album
> and Photos. Login for Authentication, Albums for add,delete,update
> albums and Photos for add, delete photos.
> 
> Now once i send username-password from mobile client to intermediate
> server that time it first calls login servlet and set service object
> and username in session if authentication is successful and sending
> appropriate msg to client. Now client will again send album list
> entries on Album servlet page. Now problem comes hereI want to use
> username and that service object those i have set earlier in session
> at login time. But scope of the session remains in for that particular
> web application only (If i m not wrong).
> 
> Once response send back to client session will be break or not? if i m
> sending a new request - say for retrieving album entries that time
> will i be able to use that session that i have earlies set?

Your need to store the username and password to send each time.

> 
> Please i need suggestions from u guys to create this application.
> Thanks in advance.
> > 
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting a bad thing?

Brian Beattie   LFS12947 | "Honor isn't about making the right choices.
[EMAIL PROTECTED] | It's about dealing with the consequences."
www.beattie-home.net | -- Midori Koto


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

Hi,

I am trying to get java.beans (the apache harmony module) and
org.apache.commons.beanutils deployed.
Its a dependence that I have to deliver. I have all the sources in my
project. I am using a generated ant build script to compile the
project, because i have to use the --core-library option for
transforming java.beans classes to dex.

During the ant build process I am getting warnings:

- Z:\workspace\UTIScxml\src\org\apache\commons\beanutils
\BeanUtilsBean.java:49: warning: unmappable character for encoding
ascii

and tons of:

- warning: Ignoring InnerClasses attribute for an anonymous inner
class that doesn't come with an associated EnclosingMethod attribute.
(This class was probably produced by a broken compiler.)


But the build is successful, the app is installed. When i start it my
app I get:


WARN/dalvikvm(264): VFY: unable to find class referenced in signature
([Ljava/beans/PropertyDescriptor;)
WARN/dalvikvm(264): VFY: unable to resolve virtual method 278: Ljava/
beans/PropertyDescriptor;.getName ()Ljava/lang/String;
WARN/dalvikvm(264): VFY:  rejecting opcode 0x6e at 0x00b7
WARN/dalvikvm(264): VFY:  rejected Lorg/apache/commons/beanutils/
BeanUtilsBean;.copyProperties (Ljava/lang/Object;Ljava/lang/Object;)V
WARN/dalvikvm(264): Verifier rejected class Lorg/apache/commons/
beanutils/BeanUtilsBean;


I did some debugging and found the root cause being a
java.lang.NoClassDefFoundError , detailed Msg:
org.apache.commons.beanutils.BeanUtilsBean.

But the .java file is in project. Inside the /bin folder there is also
the compiled .class file. I don't know how to check for it inside
the .apk. Is there a tool for browsing apk's ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Mark Murphy

Jakob Sachse wrote:
> resolved:  in manifest helped out

If you have the time, could you provide more details?

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Customizing preferences editor

2008-09-29 Thread Guillaume Perrot

Short answer:
  
"This EditText can be modified [...] through XML by setting any
EditText attributes on the EditTextPreference."

Full answer:
When using the dialogLayout attribute, maybe a special android:id
identifier is required like the ids that must be used in ListActivity
or TabActivity.
Plus the documentation warns us about that attribute, as for the
layout attribute (use the widgetLayout attribute instead).

On 26 sep, 15:27, Ludwig <[EMAIL PROTECTED]> wrote:
> I have a preference setting that I need to customize so that the preference
> will only accept ints.
> The way I understand this is that I specify the android:dialogLayout with
> the name of my custom layout:
>                android:key="distance_units_m"
>            android:title="Distance"
>                android:summary="Summary"
>                android:dialogTitle="title"
>    android:dialogLayout="@layout/preferences_distance"
>                />
>
> This is my customized EditText: it only accepts numbers up to .
> 
>
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:numeric="integer"
> android:maxLength="4"
> android:hint="Enter distance (max )"
> />
> This works and shows up correctly.
>
> I do not do anything else and my activity simply loads the XML resource.
>
> The problem is that if I do specify my custom editor the data from the user
> is not automatically saved anymore.
> (Removing only the line with the dialogLayout makes it save as expected, so
> that is correct)
>
> Do I have to specify anything else in the XML to get it saved? Or do I now
> have to program this?
> (I would have thought that behind the scenes, the editor (whether it is
> custom or not) is somehow created by a factory, and then all invocations
> happen on the created object, thus making it no difference how the look/feel
> of the custom editor is. But that is obviously not how it is done)
>
> Any pointers?
>
> Ludwig
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

resolved:  in manifest helped out

On 29 Sep., 11:51, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> sorry, i meant a tool for browsing .dex files. apk's are zip
> compatible.
>
> On 29 Sep., 11:43, Jakob Sachse <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am trying to get java.beans (the apache harmony module) and
> > org.apache.commons.beanutils deployed.
> > Its a dependence that I have to deliver. I have all the sources in my
> > project. I am using a generated ant build script to compile the
> > project, because i have to use the --core-library option for
> > transforming java.beans classes to dex.
>
> > During the ant build process I am getting warnings:
>
> > - Z:\workspace\UTIScxml\src\org\apache\commons\beanutils
> > \BeanUtilsBean.java:49: warning: unmappable character for encoding
> > ascii
>
> > and tons of:
>
> > - warning: Ignoring InnerClasses attribute for an anonymous inner
> > class that doesn't come with an associated EnclosingMethod attribute.
> > (This class was probably produced by a broken compiler.)
>
> > But the build is successful, the app is installed. When i start it my
> > app I get:
>
> > WARN/dalvikvm(264): VFY: unable to find class referenced in signature
> > ([Ljava/beans/PropertyDescriptor;)
> > WARN/dalvikvm(264): VFY: unable to resolve virtual method 278: Ljava/
> > beans/PropertyDescriptor;.getName ()Ljava/lang/String;
> > WARN/dalvikvm(264): VFY:  rejecting opcode 0x6e at 0x00b7
> > WARN/dalvikvm(264): VFY:  rejected Lorg/apache/commons/beanutils/
> > BeanUtilsBean;.copyProperties (Ljava/lang/Object;Ljava/lang/Object;)V
> > WARN/dalvikvm(264): Verifier rejected class Lorg/apache/commons/
> > beanutils/BeanUtilsBean;
>
> > I did some debugging and found the root cause being a
> > java.lang.NoClassDefFoundError , detailed Msg:
> > org.apache.commons.beanutils.BeanUtilsBean.
>
> > But the .java file is in project. Inside the /bin folder there is also
> > the compiled .class file. I don't know how to check for it inside
> > the .apk. Is there a tool for browsing apk's ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: one line EditText

2008-09-29 Thread Christine

Oh, thanks Megha also :-)

On Sep 29, 1:17 pm, Christine <[EMAIL PROTECTED]> wrote:
> Thanks Emma. I now have a one line textEdit, the rest of the screen is
> filled with the TextView :-)
>
> On Sep 28, 10:53 pm, "Emma Sastal" <[EMAIL PROTECTED]> wrote:
>
> > Try removing the weight from the EditText and making the height of the
> > TextView 0dip. The LinearLayout takes the unused space it has and
> > distributes it out to the children with weight assigned. Each child with a
> > weight gets a size based on its own weight dived by the total weight
> > requested.
>
> > On Sep 28, 2008 12:52 PM, "Christine" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I'm struggling with the following. I have an EditText and a TextView
> > in a LinearLayout, like this:
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to use mock location in sdk 1.0????

2008-09-29 Thread Guillaume Perrot

We all got stuck in DDMS controls, check the other threads.
There are two conditions for a KML file to work in DDMS:
* the KML file must not be a multi-coordinate styled file (like when
you save a direction in Google Earth => it is not supported since
v0.9)
* in order DDMS controls to work, your OS must be in an english (GB)
locale, yes this is a strange bug...

On Sep 28, 12:09 pm, "E.D.I" <[EMAIL PROTECTED]> wrote:
> i have created a kml file Route.kml
> and i tried to load it to the to the DDMS and indeed it was loaded
> the only problem is the what i see is the name rout and the lot long
> are 0.0
> and when i try to get the list of providers i get only 'gps' provider
> witch also does not realy give me my current
> location  but also gives 0 for lat long, i have also connected a
> lestener to it and the location does not change the only way it works
> is if i give it a manual locationand the the 'gps' my current location
> changes..
> the question is how can i use a kml file as a provider
> and if there is a problem maby agpx file will work but i dont realy
> know how to create it
> please help i'm realy stuck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenIntents supports 1.0r1 SDK?

2008-09-29 Thread Peli

Hi Sam,

Thanks for your interest in the OpenIntents Sensor simulator. We're in
the process of splitting our code into several smaller pieces, and
having everything work with SDK 1.0.

I'll let you know when we are done!

Peli
www.openintents.org

On Sep 29, 11:19 am, samlu <[EMAIL PROTECTED]> wrote:
> I am interested in the compass sensor simulator part.
> I will wait for the binary release.
> Thanks for the update.
>
> Sam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: one line EditText

2008-09-29 Thread Christine

Thanks Emma. I now have a one line textEdit, the rest of the screen is
filled with the TextView :-)


On Sep 28, 10:53 pm, "Emma Sastal" <[EMAIL PROTECTED]> wrote:
> Try removing the weight from the EditText and making the height of the
> TextView 0dip. The LinearLayout takes the unused space it has and
> distributes it out to the children with weight assigned. Each child with a
> weight gets a size based on its own weight dived by the total weight
> requested.
>
> On Sep 28, 2008 12:52 PM, "Christine" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm struggling with the following. I have an EditText and a TextView
> in a LinearLayout, like this:

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] When are the render buffers swapped?

2008-09-29 Thread hanni

Hi,

In my application, sometimes I need to do certain things after the
current screen has been rendered, and displayed to the user.

I'm using the MessageHandler.sendEmptyMessageDelayed() strategy to
create a render-loop, invalidating the screen on each message. Then
all rendering is done in the onDraw()-callback.

My question is, how do I know when the latest frame is displayed to
the user? Can I get a callback when this happens? Or will the back-
and foreground buffers be swapped some time during the onDraw()-call
och right after it is finished?

Right now, the best thing I've figured out for performing "post
render" code, is to do it right before the next render. Is there any
way to do it earlier?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Question on the Radar application

2008-09-29 Thread friedger

I have entered an issue at apps for android:
http://code.google.com/p/apps-for-android/issues/detail?id=22

Friedger

On 28 Sep., 11:33, Peli <[EMAIL PROTECTED]> wrote:
> Hi,
>
> If anybody knows Mike Cleron's email address, I'd ask him directly,
> but I didn't find it anywhere on the 
> blog:http://android-developers.blogspot.com/2008/09/panoramio.html
>
> If some Google developer happens to know him, please forward this
> discussion post to him - thanks :-)
>
> I have the following question / suggestion: Radar introduces the new
> intent:http://www.openintents.org/en/node/46
> Intent i = new Intent("com.google.android.radar.SHOW_RADAR");
> i.putExtra("latitude", 37.422f);
> i.putExtra("longitude", -122.084f);
> startActivity(i);
>
> Wouldn't it make more sense to use the geo: URI scheme here instead of
> using 
> extras?http://www.openintents.org/en/node/62http://code.google.com/android/reference/available-intents.html
>
> Then the same content URI could be either used with VIEW to show a
> map, or SHOW_RADAR to show the radar... (or even rename the action to
> VIEW_RADAR to allow for various VIEW modes on geo data...?)
>
> What do you think?
>
> Peliwww.openintents.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Lifecycle Question

2008-09-29 Thread Guillaume Perrot

"A situation you will often run in to is when another entity (such as
the SearchManager or NotificationManager) starts one of your
activities. In this case, the Intent.FLAG_ACTIVITY_NEW_TASK flag must
be used, because the activity is being started outside of a task (and
the application/task may not even exist). As described previously, the
standard behavior in this situation is to bring to the foreground the
current task matching the new activity's affinity and start the new
activity at the top of it. There are, however, other types of behavior
that you can implement.

One common approach is to also use the Intent.FLAG_ACTIVITY_CLEAR_TOP
flag in conjunction with NEW_TASK. By doing so, if your task is
already running, then it will be brought to the foreground, all of the
activities on its stack cleared except the root activity, and the root
activity's onNewIntent(Intent) called with the Intent being started.
Note that the activity often also use the singleTop or singleTask
launch mode when using this approach, so that the current instance is
given the new intent instead of requiring that it be destroyed and a
new instance started."

from http://code.google.com/android/intro/appmodel.html

On Sep 29, 4:03 am, Gil <[EMAIL PROTECTED]> wrote:
> Awesome! You saved the day ... again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to use mock location in sdk 1.0????

2008-09-29 Thread Guillaume Perrot

A "full" discussion about this can be found at
http://groups.google.com/group/android-developers/browse_thread/thread/32c0e799290b4854

On Sep 29, 12:49 pm, Guillaume Perrot <[EMAIL PROTECTED]>
wrote:
> We all got stuck in DDMS controls, check the other threads.
> There are two conditions for a KML file to work in DDMS:
> * the KML file must not be a multi-coordinate styled file (like when
> you save a direction in Google Earth => it is not supported since
> v0.9)
> * in order DDMS controls to work, your OS must be in an english (GB)
> locale, yes this is a strange bug...
>
> On Sep 28, 12:09 pm, "E.D.I" <[EMAIL PROTECTED]> wrote:
>
> > i have created a kml file Route.kml
> > and i tried to load it to the to the DDMS and indeed it was loaded
> > the only problem is the what i see is the name rout and the lot long
> > are 0.0
> > and when i try to get the list of providers i get only 'gps' provider
> > witch also does not realy give me my current
> > location  but also gives 0 for lat long, i have also connected a
> > lestener to it and the location does not change the only way it works
> > is if i give it a manual locationand the the 'gps' my current location
> > changes..
> > the question is how can i use a kml file as a provider
> > and if there is a problem maby agpx file will work but i dont realy
> > know how to create it
> > please help i'm realy stuck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >