RE: [android-developers] Re: Development phones question

2010-07-02 Thread Tommy
Ok great thanks for the help!

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of QR
Sent: Friday, July 02, 2010 1:53 PM
To: Android Developers
Subject: [android-developers] Re: Development phones question

http://forum.xda-developers.com/ has information on "rooting" most HTC
android devices, while http://www.droidforums.net/ covers most
Motorola devices. Rooting a device allows you to install the
engineering bootloader found on dev phones and flash versions of
android that are not signed with the production keys. This is not
provided by or in any way affiliated with Google. This will void your
warranty. That said, I rooted my G1 on day one, and have been very
happy with the increased functionality of my device.

Because of the lack of specificity in your post (no phone model,
manufacturer, or android version), I can't be any more helpful than
this. In the future, please be more specific in your questions.

On Jul 2, 10:25 am, Tommy  wrote:
> Hey,
>
> I was wondering if someone could tell me if there is a way I can
> hardware unlock my android phone like the dev phones are hardware
> unlocked. I don't really have the money to spend on a dev phone but it
> would be nice to be able to load other versions of android on so I can
> test things if needed.
>
> Thanks for your time and input,
>
> Tommy

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] File read and write.

2010-07-02 Thread Mark Murphy
On Sat, Jul 3, 2010 at 12:40 AM, choi  wrote:
> Today, i tried to read and write file on the android. but it seems
> that file write mode is only provided for SD card?

With the WRITE_EXTERNAL_STORAGE permission, you can write to the SD card.

> most of article is asked about SD card written. Is there no way to
> save data internal side?

You can call getFilesDir() from your Activity or Service to get a
directory in the on-board flash that you can read and write to.

> So when i install the application to real device. then its application
> installed in SD card or internal space?

For Android 2.1 and earlier, it is installed in internal space.

For Android 2.2 and beyond, you have the option of allowing the user
to install it on the SD card or internal space.

> So, how do we write the file to SD card and specified the absolute
> path where we saved? to load this file.

Use Java file I/O. Use Environment.getExternalStorageDirectory() to
get a File object pointing to the root of the SD card.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: User comments available in the developer console!

2010-07-02 Thread Mark Carter
The biggest problem with this is that the user it not notified and so
probably 95% of the time will not see the response. This means they will not
correct their comment (should it be an invalid one) and will not benefit
from the developer's feedback.

On 2 July 2010 23:32, Maps.Huge.Info (Maps API Guru) wrote:

> You can respond to comments, I do it all the time. All you need to do
> is use the market to download and install your app to a device and
> leave a comment when you see something that needs attention. I preface
> the response with "Developer comment:"
>
> You can only leave one comment per install, but every time you update
> that comment it floats to the top of the heap. It leaves no historical
> record but it does allow you to address the most recent user comment.
>
> -John Coryat
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Start ACTION_CALL activity from service on Motorola Milestone

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 6:11 PM, alex.tchumel  wrote:
> I have a problem with starting ACTION_CALL activity from my service on
> Motorola Milestone after upgrade to 2.1 - update1 firmware version.
>
> I have a very simple (worked before) code.
>
> 
> Intent dialIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel://"
> + dialOutNumber));
> dialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> startActivity(dialIntent);
> 

Try getting rid of the setFlags() call and see if that helps.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: color button backgrounds

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 4:36 PM, aji  wrote:
> I had the exact same question today and after a search an answer at
> http://www.coderanch.com/t/494280/Android/Mobile/Why-changing-Color-Default-Button
> It works great!

I am a bit concerned about efficiency with that solution -- specifying
one color and replacing it every time with another color will be
slower than getting the color right the first time. If it is fast
enough for you, fine.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Eclipse Helios

2010-07-02 Thread kihbord
Any news? I've upgraded my Eclipse to Helios and Android ADT plugin is
now missing on my Eclipse setup.

On Jun 23, 12:24 pm, BuckeyeDroid  wrote:
> As you're probably aware, the Helios release of Eclipse is released on
> June 23rd. Will this be supported by the Android SDK?
>
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] newbie android help

2010-07-02 Thread Frank Weiss
Try some of the sample Android applications. Look for one or two that
do some of the things your application needs to do.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] File read and write.

2010-07-02 Thread choi
Hello guys,

Today, i tried to read and write file on the android. but it seems
that file write mode is only provided for SD card?
most of article is asked about SD card written. Is there no way to
save data internal side?

So when i install the application to real device. then its application
installed in SD card or internal space? because we have make it log
file from our application for everytime while application run.


So, how do we write the file to SD card and specified the absolute
path where we saved? to load this file.


Regards.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Why does not this sleep work?

2010-07-02 Thread Dmitri Snytkine
Thank you for your help. It's great to learn some fundamental
concepts.
This is not just my first Android app, this is my first Java
code.




On Jul 2, 11:35 pm, Bob Kerns  wrote:
> First, don't rush to learn about threads and threading. There's a lot
> to learn, it's subtle, mistakes are easy to make but hard to detect
> and analyze.
>
> That's why so many frameworks, including Android, go out of their way
> to make directly working with threads unnecessary for most people and
> purposes.
>
> The mistake you are making here is not in your code, so much as it's
> your expectations.
>
> You expect that when you set the background color, that something
> happens immediately. That's not true.
>
> You are just recording what to use. Then you wait, and then you set it
> back.
>
> Then, and only then, you return -- and then, and only then, the system
> calls the methods that update the actual screen. That update does not
> happen until you are done with your onClick() method, because you
> don't want to see partial results.
>
> So all you've done by calling Thread.sleep() is to delay updating the
> screen.
>
> A good rule of thumb in Android is that if you're calling
> Thread.sleep(), you're doing it wrong.
>
> What you want to do instead, is to put your call
> textResult.setBackgroundColor(Color.BLACK); where it is, and put the
> call textResult.setBackgroundColor(Color.WHITE); in some code to run
> later, after 500 ms.
>
> You can do this with a Handler object and a Runnable, like this:
>
> private Handler myHandler = new Handler();
>
> protected void showNewDraw() {
>                 textResult.setBackgroundColor(Color.BLACK);
>                 textResult.setText("Before sleep");
>                 myHandler.postDelayed(500, new Runnable() {
>                      public void run() {
>                         textResult.setBackgroundColor(Color.WHITE);
>                         textResult.setText("After sleep");
>                 }
>         }
>
> This will set the background to BLACK, and request that it run the
> other code 500 ms later, and return. The screen will then be updated
> with the new information, and 500 ms later, the Runnable will be
> called and perform the change.
>
> By the way, this is also the case in most modern UI toolkits, not just
> android. You should never do ANYTHING in your UI routines that takes a
> long time, and especially not deliberately wait. There are things in
> Android that are unique, but this is not one of them. So what you
> learn here you can apply elsewhere as well.
>
> On Jul 2, 1:13 pm, Dmitri Snytkine  wrote:
>
> > Hello!
> > I am new to android development, also new to java. I have many years
> > of experience with OO PHP, so it's not hard for me to quickly learn
> > Java and Android, but I still don't know many things like Thread
> > class.
>
> > I just started developing a simple app.
>
> > What I want to do is that when a button is clicked, then the TextView
> > is update in this way:
> > the background is changed to black (by default it's set to white)
>
> > Then it should wait a half a second and then set the background back
> > to white and update the text inside the TextView
>
> > Here is my code, it's inside my Activity class:
>
> > public synchronized void onClick(View v) {
> >                 // TODO Auto-generated method stub
> >                 switch (v.getId()) {
> >                 case R.id.btnPlay:
> >                         showNewDraw();
> >                         break;
> >                 }
>
> >         }
>
> >         protected void showNewDraw() {
> >                 textResult.setBackgroundColor(Color.BLACK);
> >                 textResult.setText("Before sleep");
>
> >                 try {
> >                         Thread.sleep(500);
> >                 } catch (Exception e) {
> >                         textResult.setText("Something wrong");
> >                 }
>
> >                 textResult.setBackgroundColor(Color.WHITE);
> >                 textResult.setText("After sleep");
> >         }
>
> > The way it works now is that it seems to actually take 1/2 second from
> > the time the button is pressed and text is updated, but the background
> > is not reset to black and back to white - it always stays white.
>
> > Either it is being set to black and instantly reset to white or it's
> > just never set to black.
>
> > What should I do in order for the "delay" effect to work?
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: problemen met google account

2010-07-02 Thread Bob Kerns
May I suggest that customer support for the phone might be a better
place to direct this question?

I'm not sure whether your problem is with the unlock code or with your
google account information. You don't really give enough information,
and I don't think that is a translation issue. I suggest when you ask,
you explain what happened, exactly what you've tried, and exactly what
happens when you try. This will make it easier to get an answer.

Good luck!

-- Google translation from Dutch --
hi,

I have a problem, I believe,
a friend of mine has incorrect unlock pattern in place,
several times.
Then the phone calls (xperia X10i) for user name and
password of my google account. I use my google account
everyday, I do not know why I go nie my phone can,
because he gives everything error.
my 3g network and wifi are off.
I can also get text messages and I can between flight mode and
off.

How do I unlock my phone without my data lost to
touch?

b.v.d.

m.v.g.

Shaiim
--- End Google Translation ---

On Jul 1, 5:35 pm, Shaiim  wrote:
> hoi,
>
> ik heb een probleem geloof ik,
> een vriend van mij heeft foutief unlock pattern in gevoerd,
> meerderemalen.
> daarna vraagt de telefoon (xperia X10i) voor gebruiksnaam en
> wachtwoord van mijn google account. ik gebruik mijn google account
> dagelijks, ik snap niet waarom ik nie verder in mijn telefoon kan,
> want hij geeft alles fout aan.
> mijn 3g netwerk en wifi staan uit.
> ook kan ik smsjes krijgen en kan ik wel tussen vliegtuigmodus aan en
> uitzetten.
>
> hoe moet ik mijn telefoon unlocken zonder mijn gegevens kwijt te
> raken?
>
> b.v.d.
>
> m.v.g.
>
> Shaiim

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Why does not this sleep work?

2010-07-02 Thread Bob Kerns
First, don't rush to learn about threads and threading. There's a lot
to learn, it's subtle, mistakes are easy to make but hard to detect
and analyze.

That's why so many frameworks, including Android, go out of their way
to make directly working with threads unnecessary for most people and
purposes.

The mistake you are making here is not in your code, so much as it's
your expectations.

You expect that when you set the background color, that something
happens immediately. That's not true.

You are just recording what to use. Then you wait, and then you set it
back.

Then, and only then, you return -- and then, and only then, the system
calls the methods that update the actual screen. That update does not
happen until you are done with your onClick() method, because you
don't want to see partial results.

So all you've done by calling Thread.sleep() is to delay updating the
screen.

A good rule of thumb in Android is that if you're calling
Thread.sleep(), you're doing it wrong.

What you want to do instead, is to put your call
textResult.setBackgroundColor(Color.BLACK); where it is, and put the
call textResult.setBackgroundColor(Color.WHITE); in some code to run
later, after 500 ms.

You can do this with a Handler object and a Runnable, like this:

private Handler myHandler = new Handler();

protected void showNewDraw() {
textResult.setBackgroundColor(Color.BLACK);
textResult.setText("Before sleep");
myHandler.postDelayed(500, new Runnable() {
 public void run() {
textResult.setBackgroundColor(Color.WHITE);
textResult.setText("After sleep");
}
}

This will set the background to BLACK, and request that it run the
other code 500 ms later, and return. The screen will then be updated
with the new information, and 500 ms later, the Runnable will be
called and perform the change.

By the way, this is also the case in most modern UI toolkits, not just
android. You should never do ANYTHING in your UI routines that takes a
long time, and especially not deliberately wait. There are things in
Android that are unique, but this is not one of them. So what you
learn here you can apply elsewhere as well.


On Jul 2, 1:13 pm, Dmitri Snytkine  wrote:
> Hello!
> I am new to android development, also new to java. I have many years
> of experience with OO PHP, so it's not hard for me to quickly learn
> Java and Android, but I still don't know many things like Thread
> class.
>
> I just started developing a simple app.
>
> What I want to do is that when a button is clicked, then the TextView
> is update in this way:
> the background is changed to black (by default it's set to white)
>
> Then it should wait a half a second and then set the background back
> to white and update the text inside the TextView
>
> Here is my code, it's inside my Activity class:
>
> public synchronized void onClick(View v) {
>                 // TODO Auto-generated method stub
>                 switch (v.getId()) {
>                 case R.id.btnPlay:
>                         showNewDraw();
>                         break;
>                 }
>
>         }
>
>         protected void showNewDraw() {
>                 textResult.setBackgroundColor(Color.BLACK);
>                 textResult.setText("Before sleep");
>
>                 try {
>                         Thread.sleep(500);
>                 } catch (Exception e) {
>                         textResult.setText("Something wrong");
>                 }
>
>                 textResult.setBackgroundColor(Color.WHITE);
>                 textResult.setText("After sleep");
>         }
>
> The way it works now is that it seems to actually take 1/2 second from
> the time the button is pressed and text is updated, but the background
> is not reset to black and back to white - it always stays white.
>
> Either it is being set to black and instantly reset to white or it's
> just never set to black.
>
> What should I do in order for the "delay" effect to work?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Why does not this sleep work?

2010-07-02 Thread Satya Komatineni
The short answer is you need to read up on something called a
"handler". It will probably take a few pages to explain the ideas in
detail.

But here are some notes I have kept

http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURL&reportId=3496&ownerUserId=satya

Here is the short answer:

1. when you respond to the menu item, so called the main thread is
executing that code. Any repainting will take place after you return
from thread. Until then you are setting and resetting some variables.
So the final one will take affect.

2. So you need to let go the main thread before the background can take affect

3. However you can use something called a "handler" to post a message
to yourself in half a sec to respond to

You can download a sample project here called TestHandlers.zip and
tinker with it

http://www.satyakomatineni.com/akc/display?url=ShowAttachmentsIMPURL&reportId=3468&downerUserId=satya

Anyways there are probably a number of samples on the net around "handlers".

Good luck
Satya
http://www.androidbook.com
http://www.satyakomatineni.com



On Fri, Jul 2, 2010 at 4:13 PM, Dmitri Snytkine  wrote:
> Hello!
> I am new to android development, also new to java. I have many years
> of experience with OO PHP, so it's not hard for me to quickly learn
> Java and Android, but I still don't know many things like Thread
> class.
>
> I just started developing a simple app.
>
> What I want to do is that when a button is clicked, then the TextView
> is update in this way:
> the background is changed to black (by default it's set to white)
>
> Then it should wait a half a second and then set the background back
> to white and update the text inside the TextView
>
> Here is my code, it's inside my Activity class:
>
> public synchronized void onClick(View v) {
>                // TODO Auto-generated method stub
>                switch (v.getId()) {
>                case R.id.btnPlay:
>                        showNewDraw();
>                        break;
>                }
>
>        }
>
>        protected void showNewDraw() {
>                textResult.setBackgroundColor(Color.BLACK);
>                textResult.setText("Before sleep");
>
>                try {
>                        Thread.sleep(500);
>                } catch (Exception e) {
>                        textResult.setText("Something wrong");
>                }
>
>                textResult.setBackgroundColor(Color.WHITE);
>                textResult.setText("After sleep");
>        }
>
> The way it works now is that it seems to actually take 1/2 second from
> the time the button is pressed and text is updated, but the background
> is not reset to black and back to white - it always stays white.
>
> Either it is being set to black and instantly reset to white or it's
> just never set to black.
>
> What should I do in order for the "delay" effect to work?
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: is there an easier way?

2010-07-02 Thread Bob Kerns
Send me your coding sheets, and I'll have them keypunched for you and
ship the cards back to you the next day.

(And that, my friends, was the state of the art when I began
programming).

Seriously, you can use whatever tools you want to create the files,
and then build them using the ant scripts that the SDK sets up for
you. This is fairly straightforward.

However, you lose all the benefits of Eclipse. I don't think you've
actually encountered the benefits, or you'd not be asking this
particular question, but trust me, there are a ton of benefits. It
took decades for IDEs to get to a point where I was willing to abandon
Emacs, but Eclipse finally reached that point a few releases back.

So I think it would be more productive for you, to identify what
problems you're having with Eclipse, and seek help overcoming them,
rather than toss the baby out with the bathwater.

There are definitely things about Eclipse to trip up newcomers, and
things to trip up power users, and ones to trip up everyone. But the
net total is a huge productivity increase.

I haven't used Netbeans in a long time, so I can't give you a current
comparison there. But Eclipse has a lot more support, and a lot more
tools and facilities integrate with Eclipse. You may also want to work
with Javascript, databases, HTML, XML, networking, revision control,
wikis, bug tracking systems, etc, as well as edit your Java code, so
include those facilities in your comparison.

On Jul 2, 11:04 am, Jokerstud31  wrote:
> is there any other programs or ways to program with the SDK or the ADT
> other then Eclipse because i am having nothing but troubles with it.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Get all text (including encoded) from XML Text Node

2010-07-02 Thread Julius Spencer
On closer inspection the index part I have misinterpreted - the whole string 
might be broken into parts eg.
Text node j
EntityReference node ó
Text node bb

Regards,
Julius.

("on closer inspection zees are loafers")

On 3/07/2010, at 2:47 PM, Julius Spencer wrote:

> Hi,
> 
> Thank you for the reply.
> 
>> Something's not right. Although I have no experience with
>> DocumentBuilder, (ask me a SAXParser question, please!)
> I'm starting to think about converting it all to SAX!
> 
>> the API
>> reference, 
>> http://developer.android.com/intl/de/reference/org/w3c/dom/EntityReference.html,
>> appears to say that character references should be expanded. What HTML
>> or XML processor, refered to in the API, are you using?
> I'm not sure what these terms mean exactly so I may not be responding 
> accurately.
> 
> I use the following to retrieve a response from the server:
> 
>   ResponseHandler responseHandler = new 
> BasicResponseHandler();
>   String xmlResponse = httpClient.execute(getMethod, 
> responseHandler);
> 
> (httpClient is from org.apache.http.client.HttpClient)
> 
> I then create a document using the following:
> 
>   DocumentBuilder builder = 
> DocumentBuilderFactory.newInstance().newDocumentBuilder();
>   Document doc = builder.parse(new 
> ByteArrayInputStream(xmlResponse.getBytes()));
> 
> Regards.
> Julius.
> 
> -- 
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: CallLog.Calls DATE returning negative

2010-07-02 Thread Bob Kerns
Check the documentation, or the calendar. It's not an int, it's a
long.

On Jul 2, 6:41 am, Zookie  wrote:
> I'm pulling the call log and trying to convert the date of the call to
> something we can read but the int being returned is a negative number.
>
> int dateColumn =
> c.getColumnIndex(android.provider.CallLog.Calls.DATE);
>
> int callDate = c.getInt(dateColumn);
>
> callDate will be a number like: -1856117447
>
> So, when I convert I still end up with a date like Dec 10 1969
>
> Regards,
> Zookie

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Get all text (including encoded) from XML Text Node

2010-07-02 Thread Julius Spencer
Hi,

Thank you for the reply.

> Something's not right. Although I have no experience with
> DocumentBuilder, (ask me a SAXParser question, please!)
I'm starting to think about converting it all to SAX!

> the API
> reference, 
> http://developer.android.com/intl/de/reference/org/w3c/dom/EntityReference.html,
> appears to say that character references should be expanded. What HTML
> or XML processor, refered to in the API, are you using?
I'm not sure what these terms mean exactly so I may not be responding 
accurately.

I use the following to retrieve a response from the server:

ResponseHandler responseHandler = new 
BasicResponseHandler();
String xmlResponse = httpClient.execute(getMethod, 
responseHandler);

(httpClient is from org.apache.http.client.HttpClient)

I then create a document using the following:

DocumentBuilder builder = 
DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(new 
ByteArrayInputStream(xmlResponse.getBytes()));

Regards.
Julius.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: drawBitmapMesh: How to draw a bitmap transformed to fit a shape?

2010-07-02 Thread droidful
It seems one again I have answered my own question. I still dont
understand how drawBitmapMesh works but I can achieve what I want to
by using the Camera object. The Camera object allows you to rotate 2D
objects in 3D space. The following code snippet (very much test code)
demonstrates what is required.

---

@Override
protected void dispatchDraw(Canvas canvas)
{
Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.grid_bitmap);

final int viewWidth = this.getWidth();
final int viewHeight = this.getHeight();

final int bitmapWidth = bitmap.getScaledWidth(canvas);
final int bitmapHeight = bitmap.getScaledHeight(canvas);

float scaleX = viewWidth / (float) bitmapWidth;
float scaleY = viewHeight / (float) bitmapHeight;

int preCenterX = bitmapWidth / 2;
int preCenterY = bitmapHeight / 2;
int postCenterX = viewWidth / 2;
int postCenterY = viewHeight / 2;

Paint mPaint = new Paint();
mPaint.setAntiAlias(true);
mPaint.setFilterBitmap(true);

Camera mCamera = new Camera();
mCamera.save();

// Here is the rotation in 3D space
mCamera.rotateY(30);

Matrix mMatrix = new Matrix();
mCamera.getMatrix(mMatrix);
mCamera.restore();
mMatrix.preTranslate(-preCenterX, -preCenterY);
mMatrix.postScale(scaleX, scaleY);
mMatrix.postTranslate(postCenterX, postCenterY);

canvas.drawBitmap(bitmap, mMatrix, mPaint);
}

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: is there an easier way?

2010-07-02 Thread DonFrench
Tell us what problems you are having with Eclipse. Maybe we can help.
I am using it on XP-64 and Windows 7 and have no problems and like it
quite a bit.

On Jul 2, 11:04 am, Jokerstud31  wrote:
> is there any other programs or ways to program with the SDK or the ADT
> other then Eclipse because i am having nothing but troubles with it.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Get all text (including encoded) from XML Text Node

2010-07-02 Thread Frank Weiss
Something's not right. Although I have no experience with
DocumentBuilder, (ask me a SAXParser question, please!) the API
reference, 
http://developer.android.com/intl/de/reference/org/w3c/dom/EntityReference.html,
appears to say that character references should be expanded. What HTML
or XML processor, refered to in the API, are you using? I was
considering that perhaps it's a mistaken Latin-1 input encoding, but
the character entity ó would be in the Latin-1 Supplement AFAICT
anyway.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Information window above map marker

2010-07-02 Thread Michael
Thank you! nice work there!

On Jul 2, 1:56 am, Mark Murphy  wrote:
> On Thu, Jul 1, 2010 at 9:53 PM, Michael  wrote:
> > I've seen this asked before but never clearly answered. In the GMap
> > API theres a way to popup aninformationwindowwhen a marker is
> > clicked like this (http://www.developer.com/img/2008/07/
> > RailsMaps5.gif). How can this be accomplished on Android?
>
> http://github.com/commonsguy/cw-advandroid/tree/master/Maps/EvenNooer...http://github.com/jgilfelt/android-mapviewballoons
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: is there an easier way?

2010-07-02 Thread carrerasrodrigo
do you try Netbeans?? there is a excelent plugin for android.
You can find more information in this link 
http://wiki.netbeans.org/IntroAndroidDevNetBeans
Netbeans is the best IDE for Java, and a great choice for android
too.

On Jul 2, 11:08 pm, Frank Weiss  wrote:
> You weren't specific enough about your problem with Eclipse. If you
> want to program in Java, you could use the commnad-line SDK tools and
> just about any text editor. If you want to avoid Java, take a look at
> Roboform.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Get all text (including encoded) from XML Text Node

2010-07-02 Thread Julius Spencer
Hi,

I have a very basic question regarding encoded text in an XML Text node.

I am using the DOM parser
javax.xml.parsers.DocumentBuilder
to parse some xml. The xml has some international characters which are encoded 
in decimal unicode - eg. 'ó' is 'ó'.

The parser takes the encoded character out of the word for example jóbb and the 
Text node is left with jbb as the node value. If I use getData() on the Text 
node it returns jbb also. The character is not lost though - a sibling Node, an 
Entity Reference Node, has the decimal value and an index. The index value 
corresponds to where this character should be inserted. In this case for 
example if would have an index of 1 and value of '#234'.

This indicates that there must be a simple way of accessing the value of the 
Text node of its parent in such a way as to get 'jóbb'. It seems unlikely that 
I need to reconstruct this by doing a lookup to convert the encoded character 
to utf8 and then insert it into the string for the Text node. Does anyone know 
how this works?

Sorry for asking what is probably a really basic question, but I can't find the 
answer.

Thank you for any help.

Regards,
Julius.


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] is there an easier way?

2010-07-02 Thread Frank Weiss
You weren't specific enough about your problem with Eclipse. If you
want to program in Java, you could use the commnad-line SDK tools and
just about any text editor. If you want to avoid Java, take a look at
Roboform.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to remove a HeaderView from a ListView?

2010-07-02 Thread Moto
Thx! sounds good!  I'll than just go try to implement another method
of adding a header view :) I'll take a look at your sample!

-Moto

On Jul 2, 2:54 am, Mark Murphy  wrote:
> On Thu, Jul 1, 2010 at 11:20 PM, Moto  wrote:
> > How can I remove the Header from a ListView?
>
> If you are using addHeaderView(), you can't. I don't even think
> calling setAdapter() again will necessarily get rid of it.
>
> So, don't use addHeaderView(). Rather, create your own adapter that
> blends your main roster of Views with your header. While my
> MergeAdapter will not handle your specific case, you can use it to see
> the concept of blending multiple row sources:
>
> http://github.com/commonsguy/cwac-merge
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Auto Scrolling Text in Canvas

2010-07-02 Thread kumar
Hi all,

 I want to place text onto canvas in such a way that the
text should run upwards
 i.e, need the text to run
  Please help me or any helpful links

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] JOB OPPORTUNITY

2010-07-02 Thread Kelly Hamilton
Hi -

My name is Kelly Hamilton and I am an IT Recruiter.  We have an
EXCELLENT opportunity for Android Developers.  The position is located
in San Diego, CA and is a long-term contract.  I would like to speak
with anyone who is interested in finding out more about this
opportunity.  Please email me at kelly.hamil...@pyramidci.com.

I look forward to speaking with you!

- Kelly

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] is there an easier way?

2010-07-02 Thread Jokerstud31
is there any other programs or ways to program with the SDK or the ADT
other then Eclipse because i am having nothing but troubles with it.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Default to Numeric Keyboard

2010-07-02 Thread Problems
Anyone knows how to default to numeric keyboard on html text input
field?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Twitter4j internet access

2010-07-02 Thread sarconi
Hi guys, Started coding up a simple android app. Part of it pulls the
users last 20 tweets and saves them to a database. When I run this,
statuses = twitter.getUserTimeline(); throws an exception its handled
and prints out: failed to get timeline-permission denied. When I run
the same code non-android, it works fine. I'm a little bit baffled.
Could android be limiting the network connection? Im using some
database helper classes, haven't included the code because the
exception is thrown before any of these are even involved :(. Someone
suggested fixing my manifiest to allow net access so I added:  Still giving
the same error though. Any help would be much appreciated. Heres the
code:



import twitter4j.Paging;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;


import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
public class  TwitterTest extends ListActivity{
 private ArrayList queryString;
 private DatabaseQuery query;






 /* returns date in string format-without time */
 String getThisYearDate(Date d){
  String x = d.toString();
  String y= x.substring(0, 11);
  String z =x.substring(17);
  String a = y.concat(z);
  return a;
 }

 @Override
 public void onCreate(Bundle savedInstanceState) {

  super.onCreate(savedInstanceState);
  query = new DatabaseQuery(this);

  /*If file exists then tables in db created successfully*/

  File file = new File("exists.txt");




  boolean success = file.exists();

  if (success==false) {
   try {

ArrayList statuses = new ArrayList();


Twitter twitter = new TwitterFactory().getInstance("USERNAME",
"PASSWORD");



statuses = twitter.getUserTimeline();

/* adds status data to database*/
for(Status s: statuses){

 query.appendData("Text", s.getText());
 query.appendData("Date", this.getThisYearDate(s.getCreatedAt()));
 query.appendData("ID",String.valueOf(s.getId()) );
 query.addRow();
}



   }
   catch (TwitterException te) {
System.out.println("Failed to get timeline: " + te.getMessage());

System.exit( -1);
   }
   try{
boolean created = file.createNewFile();
   }
   catch (IOException e) {

System.out.println("error");




   }

   queryString = query.getData(new String[]
{"Text"},this.getThisYearDate(new Date()), null, null, null, "Date", "
ASC");
   try {
query.destroy();
   } catch (Throwable e) {
e.printStackTrace();
   }

  } else {
   // File already exists
   queryString = query.getData(new String[]
{"Text"},this.getThisYearDate(new Date()), null, null, null, "Date", "
ASC");
   try {
query.destroy();
   } catch (Throwable e) {
e.printStackTrace();
   }

  }





 // Set the ListView
 setListAdapter(new ArrayAdapter(this,
   android.R.layout.simple_list_item_1, queryString));
 getListView().setTextFilterEnabled(true);
}
}


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Need help in calling a SAP library.

2010-07-02 Thread Sandeep
Hello all,

I'm facing a problem in connection of android and SAP.
SAP has provided a java connector to connect to SAP called JCO.
For this there are 2 steps that needs to be followed:
1.) add reference of sapjco.jar in your project.
2.) Load library sapjco3.so in unix.

I've already done the first step but for the second part i'm note sure
how to do it..
Can someone help to load an external library in android.

Thanks
Sandeep.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Development phones question

2010-07-02 Thread QR
http://forum.xda-developers.com/ has information on "rooting" most HTC
android devices, while http://www.droidforums.net/ covers most
Motorola devices. Rooting a device allows you to install the
engineering bootloader found on dev phones and flash versions of
android that are not signed with the production keys. This is not
provided by or in any way affiliated with Google. This will void your
warranty. That said, I rooted my G1 on day one, and have been very
happy with the increased functionality of my device.

Because of the lack of specificity in your post (no phone model,
manufacturer, or android version), I can't be any more helpful than
this. In the future, please be more specific in your questions.

On Jul 2, 10:25 am, Tommy  wrote:
> Hey,
>
> I was wondering if someone could tell me if there is a way I can
> hardware unlock my android phone like the dev phones are hardware
> unlocked. I don't really have the money to spend on a dev phone but it
> would be nice to be able to load other versions of android on so I can
> test things if needed.
>
> Thanks for your time and input,
>
> Tommy

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] CallLog.Calls DATE returning negative

2010-07-02 Thread Zookie
I'm pulling the call log and trying to convert the date of the call to
something we can read but the int being returned is a negative number.

int dateColumn =
c.getColumnIndex(android.provider.CallLog.Calls.DATE);

int callDate = c.getInt(dateColumn);


callDate will be a number like: -1856117447

So, when I convert I still end up with a date like Dec 10 1969

Regards,
Zookie

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-07-02 Thread Bob Denny
Same exact problem here. This is so basic! I'm just trying to learn
Android dev, using the Hello World example. I thought I had a bad
install, so I started from scratch. Same problem again. This appears
to be the Android Development Kit. Both the Android Resource Editor
and the Android XML Resources Editor fail the same way. Kwan, thanks
for alerting me to the XML editor, which I found via Open With.

  -- Bob

On Jul 1, 1:31 am, Kwan Cheng  wrote:
> It seems Helios breaks the resource editors, I did not have this issue when
> using Galileo.  I had to resort using the XML editor to work around the null
> errors.  Hopefully the android tool set will have this issue worked out.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] build android.jar with all hidden and deprecated APIs

2010-07-02 Thread jairo martin
I have been looking at the build files and I cant figure out how the
hidden and deprecated APIs are being removed.  I want to be able to
create a SDK which includes a android.jar with all hidden and
deprecated APIs.


Regards,
J

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Simple Question about Res folders

2010-07-02 Thread Phil
They are there to allow your app to display icons, etc of different
sizes, for different devices.

For example, H.D. icons are 72x72, MD are 48x48 and LD are 36x36.

On Jul 2, 10:37 am, B Woods  wrote:
> What are the differences between drawable-hdpi, drawable-ldpi, and
> drawable-mdpi? Do I need to place my graphics in each of these folders?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: color button backgrounds

2010-07-02 Thread aji
I had the exact same question today and after a search an answer at
http://www.coderanch.com/t/494280/Android/Mobile/Why-changing-Color-Default-Button
It works great!

On Jul 1, 9:53 am, ArcDroid  wrote:
> Is there a way to color buttons without loosing the rounding of the
> edges?
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Can't Export Android Projects Anymore

2010-07-02 Thread lipinski
I'm running ADT on Eclipse 3.6 on Ubuntu Linux.

I recently updated ADT to the latest version via the Eclipse update
mechanism.

I can no longer Export Android projects.

I select File -> Export.
Prompted for export Destination, select Export Android Application.
Click Next.
(Same exact menu shown - export Destination - except now Next is
disabled, and Back is Enabled).
Click Back.
Prompted for export Destination, select Export Android Application.
Click Next.
Prompted to Select project.  Browse button does nothing.  Even if I
type a valid project name, Next is never highlighted.

I'm stuck - what happened?  I'm not sure if it was the ADT update or
possibly the SDK update - I updated all my Android-related software
lately, and now I'm stuck and this is a serious problem for me.

I don't know what other data/logs I can provide, but I can provide
whatever is necessary.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Why does not this sleep work?

2010-07-02 Thread Dmitri Snytkine
Hello!
I am new to android development, also new to java. I have many years
of experience with OO PHP, so it's not hard for me to quickly learn
Java and Android, but I still don't know many things like Thread
class.

I just started developing a simple app.

What I want to do is that when a button is clicked, then the TextView
is update in this way:
the background is changed to black (by default it's set to white)

Then it should wait a half a second and then set the background back
to white and update the text inside the TextView

Here is my code, it's inside my Activity class:

public synchronized void onClick(View v) {
// TODO Auto-generated method stub
switch (v.getId()) {
case R.id.btnPlay:
showNewDraw();
break;
}

}

protected void showNewDraw() {
textResult.setBackgroundColor(Color.BLACK);
textResult.setText("Before sleep");

try {
Thread.sleep(500);
} catch (Exception e) {
textResult.setText("Something wrong");
}

textResult.setBackgroundColor(Color.WHITE);
textResult.setText("After sleep");
}

The way it works now is that it seems to actually take 1/2 second from
the time the button is pressed and text is updated, but the background
is not reset to black and back to white - it always stays white.

Either it is being set to black and instantly reset to white or it's
just never set to black.

What should I do in order for the "delay" effect to work?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Error in an XML file eclipse

2010-07-02 Thread Ryan Cook
I am also having this issue on multiple machines. It was working
before, and I think it stopped working (and started giving error)
after I upgraded to Helios (3.6).
I also tried removing all the strings entries from the file then
adding them through the GUI interface; it adds them with the same
format that and everything, but, if I hit save, close it, and then re-
open it, I get the same error.

My Setup
==
OS: Windows XP Pro SP3 32bit
Eclipse: Helios (3.6.0.I20100608-0911)
ADT: 0.9.7.v201005071157-36220
Android SDK Tools: r6
Platform SDK: 2.1-update1, API 7, r2
Java: 6 Update 20

Error Details
==
Problems occurred when invoking code from plug-in:
"org.eclipse.jface".

java.lang.NullPointerException
at
org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(ElementImpl.java:
259)
at
org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNS(ElementImpl.java:
329)
at
com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.getShortDescription(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.editors.ui.tree.UiModelTreeLabelProvider.getText(Unknown
Source)
at
org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText(WrappedViewerLabelProvider.java:
108)
at
org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLabelProvider.java:
164)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:
152)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:
934)
at org.eclipse.jface.viewers.AbstractTreeViewer
$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:
1014)
at org.eclipse.jface.viewers.StructuredViewer
$UpdateItemSafeRunnable.run(StructuredViewer.java:481)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:
2141)
at
org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:
2689)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:
1867)
at
org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:
721)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
1842)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
1799)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
1785)
at org.eclipse.jface.viewers.StructuredViewer
$7.run(StructuredViewer.java:1487)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:
1422)
at
org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:
403)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:
1383)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:
1485)
at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:
537)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:
1444)
at com.android.ide.eclipse.adt.internal.editors.ui.tree.UiTreeBlock
$2.uiElementNodeUpdated(Unknown Source)
at
com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.invokeUiUpdateListeners(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.loadFromXmlNode(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.editors.resources.ResourcesEditor.xmlModelChanged(Unknown
Source)
at com.android.ide.eclipse.adt.internal.editors.AndroidEditor
$XmlModelStateListener.modelChanged(Unknown Source)
at
org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.fireModelChanged(AbstractStructuredModel.java:
553)
at
org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.internalModelChanged(AbstractStructuredModel.java:
887)
at
org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.changedModel(AbstractStructuredModel.java:
382)
at
org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:
167)
at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel
$DocumentToModelNotifier.nodesReplaced(AbstractStructuredModel.java:
152)
at
org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:
60

[android-developers] Terminal Server access from an Android Tablet PC

2010-07-02 Thread Peter Ciank
Dear People,

very soon, I have to implement for my users something smaller than a
notebook. I've been searching and researching and I found iPad and
other Tablets with Android. I'm very interested in Android because, I
think, it's more flexible but one thing will deerminate my solutions
and it's gonna be "being able to connect to a Terminal Server". It's
the only way the can access tp their emails and other documents
securly.

Do you know any free or paid software to perform this?

Thanks in advance!

Peter

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] onLocationChanged doesn't draw

2010-07-02 Thread havanakoda
Hi,
I've a problem, I call a method that draw a circle over  a canvas
inside onLocationChanged but it doesn't do anything.
Can anyone tell me why ?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Flash Player + PhoneGap

2010-07-02 Thread Mark Doherty
Hi Everyone,

A little while ago I posted a demo showing Flash Player 10.1 running
in WebView and using PhoneGap.  The application enables you to extend
the Flash Player to add Camera support.

Included in the source is a rudimentary port to Android 2.1 to get it
compiling, this does work on FroYo FRF85b.  Please note that the Flash
element of the application is not allowed to be stored locally, they
must live on a remote server.

http://www.flashmobileblog.com/2010/03/12/flash-player-10-1-camera-support-phonegap/

Enjoy!

Mark

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How much does an Nexus One cost?

2010-07-02 Thread Phil
https://www.google.com/phone/

I just bought two of the unlocked (no contract) N1s for a client
project.  According to the site they are still available.  For
development they are great.  If it were for my own use, however, I
would seek out an eBay one as John mentioned.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How much does an Nexus One cost?

2010-07-02 Thread Kwan Cheng
the ide and sdk are free. The dev phone is 399.  There is also a 25 dollar
registration fee.

On Jul 2, 2010 10:53 AM, "Chuck Tilbury"  wrote:


I am thinking of joining the android developers network.  However, I cannot
seem to find out how much the hardware development tools cost.  Can someone
please tell me how much an Android dev phone costs?

Thanks,
Chuck

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Question about IP packet header's TOS field marking

2010-07-02 Thread comet565
Hi, i am making a small android application which VoIP program based
in SIP(Session Initiation Protocol). Through this program, i will
support the QoS for each service such as voice telephony, SMS
messaging and so on. So, i want to mark the TOS field(8bit) in IP
packet header to grant priority each service IP packets.

As you know, there is a method "setTrafficClass(int value)" in android
UDP socket API. But, after capturing the packets using the wireshark,
i could found that this API is not effect. In short, the UDP socket
always sends packets with default IP TOS field, 0x00.

Does anybody know why this problem case?
Does android prohibit chaging IP header process on purpose?

Plz, give me some advice about this problem.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Changing UI

2010-07-02 Thread Muhammad Ali
Hello to All!
I am new to android! I have a query that I have one form in Android
app. When I click on next button it should load other components. and
hide the previous one or change the screen and load the new requested
form.

Like if we go in settings and select "Call Settings" it loads the
screen with "Call Settings." How can we achieve this?

Best Regards

Syed Muhammad Ali Naqvi

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: VideoView not playing sample video on T-Mobile G2 (Just audio)

2010-07-02 Thread Kwan Cheng
I had the same problem when experimenting with the surfaceview samples.  it
seems counter intuitive that an xml level property would be the last thing
applied where all docs specifies that xml parameters are always first to  be
applied.

On Jul 2, 2010 7:55 AM, "Cardy"  wrote:

Found the problem! In my case it was because I was specifying a
background colour for the VideoView which was being rendered over the
top of the video, which was playing perfectly! lol

See here:
http://stackoverflow.com/questions/3165233/android-videoview-not-playing-sample-video-on-t-mobile-g2-just-audio/


On Jul 2, 11:42 am, Cardy  wrote:
> Hi,
>
> All I'm trying to do is play the ...
>
Uri.withAppendedPath(MediaStore.Video.Media.EXTERNAL_CONTENT_URI,String.val
ueOf(videoID));

>
> // Log and add a video to the view
> Log.i("Vide...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] getting SocketTimeOutException

2010-07-02 Thread preetha vasudevan
Hi,

I am getting SocketTimeOutException while trying out with the picasa
sample application provided in

http://code.google.com/p/gdata-java-client/source/browse/branches/2/sample/picasa/picasa-atom-sample/src/com/google/api/data/sample/picasa/PicasaAtomSample.java?r=368

The error is as pasted below,
07-02 14:11:11.530: WARN/System.err(240):
java.net.SocketTimeoutException: Socket is not connected
07-02 14:11:11.540: WARN/System.err(240): at
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native
Method)
07-02 14:11:11.540: WARN/System.err(240): at
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:
131)
07-02 14:11:11.540: WARN/System.err(240): at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
247)
07-02 14:11:11.550: WARN/System.err(240): at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
535)
07-02 14:11:11.550: WARN/System.err(240): at
java.net.Socket.connect(Socket.java:1054)
07-02 14:11:11.550: WARN/System.err(240): at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:
317)
07-02 14:11:11.550: WARN/System.err(240): at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
129)
07-02 14:11:11.550: WARN/System.err(240): at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
164)
07-02 14:11:11.550: WARN/System.err(240): at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
119)
07-02 14:11:11.550: WARN/System.err(240): at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
348)
07-02 14:11:11.550: WARN/System.err(240): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
555)
07-02 14:11:11.559: WARN/System.err(240): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
487)
07-02 14:11:11.559: WARN/System.err(240): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
465)
07-02 14:11:11.559: WARN/System.err(240): at
com.google.api.client.apache.ApacheHttpRequest.execute(ApacheHttpRequest.java:
51)
07-02 14:11:11.559: WARN/System.err(240): at
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:188)
07-02 14:11:11.559: WARN/System.err(240): at
com.google.api.client.auth.oauth.AbstractOAuthGetToken.execute(AbstractOAuthGetToken.java:
70)
07-02 14:11:11.559: WARN/System.err(240): at
com.sample.launch.authorizeUsingOAuth(launch.java:158)
07-02 14:11:11.559: WARN/System.err(240): at
com.sample.launch.setUpGoogleTransport(launch.java:123)

The same steps as mentioned in the sample app is followed and I was
getting illegalstateException. To resolve
this,HttpTransport.setLowLevelHttpTransport(ApacheHttpTransport.INSTANCE);
is used as a workaround as suggested in 
http://code.google.com/p/gdata-issues/issues/detail?id=2098.
After this I am getting the above pasted error after
OAuthCredentialsResponse.execute().

Please suggest what can be done to fix this.

Thanks,
Preetha

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Stop execution of an activity after startActivityForResult() and setResult

2010-07-02 Thread Nishant Kumar
Hi all,

 Sorry to resend the mail. But I am in need of help. If any one know about
the solution, Please help me.

Thanks,
Nishant

On Thu, Jul 1, 2010 at 10:05 PM, NishantKumar wrote:

> Hi,
>
> I want that no further execution of statements should take place when
> a new activity is called from main activity and
>
> when the result is set from the called activity for the caller
> activity.
>
> How can I do that? Please help!!!
>
> I have the following scenario
>
> I have two activity:
>  Activity 1: Caller.java
>  Activity 2: Called.java
>
>
>
> IN Caller activity , I am calling the called activity. But, in my
> code , I have some statements that I dont want to execute when caller
> calls called.
>
> In Called Activity ,  when result is set by using setResult(), then I
> dont want any execution in this activity.
> I simply want it to return.
>
> HOW CAN I DO THAT?  PLEASE HELP.   I have the following code
>
>
> CALLED Activity
>
> for(int i=0;i<1000;i++)
>Log.d("Debug","In Called Activity");
>
>Bundle bundle = new Bundle();
>Intent returnIntent = new Intent();
>bundle.putString("isSuccess", "Success");
>returnIntent.putExtras(bundle);
>setResult(RESULT_OK,returnIntent);
>finish();
>
>  
>     Now I dont want this for loop to execute as I have returned
> result back to caller activity
>  
> for(int i=0;i<15;i++)
>Log.d("Debug","Still In Called Activity After RETURNING
> result to Caller");
>
>
>
>
> CALLER Activity
>
> onCreate()[
>   Intent intent=   new Intent(this, Called.class);
>
>   startActivityForResult(intent,0);
>
>
> 
> /   I dont want to execute this for loop as the new Activity has
> been called
> /
>   for(int i=0;i<15;i++)
>Log.d("Debug","Still In Caller Activity After Starting
> New Activity ");
>
>
> }
>
>onActivityResult()
>
>  if(resultCode==RESULT_OK){
>Log.d("DEBUG","INSIDE onActivityResult");
>
>}
>
> PLease Help me. I am STRUGGLING with this.  Please do mention, if I am
> unable to express my doubt.
>
> Thanks,
> Nishant Kumar
> Student
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] problemen met google account

2010-07-02 Thread Shaiim
hoi,

ik heb een probleem geloof ik,
een vriend van mij heeft foutief unlock pattern in gevoerd,
meerderemalen.
daarna vraagt de telefoon (xperia X10i) voor gebruiksnaam en
wachtwoord van mijn google account. ik gebruik mijn google account
dagelijks, ik snap niet waarom ik nie verder in mijn telefoon kan,
want hij geeft alles fout aan.
mijn 3g netwerk en wifi staan uit.
ook kan ik smsjes krijgen en kan ik wel tussen vliegtuigmodus aan en
uitzetten.

hoe moet ik mijn telefoon unlocken zonder mijn gegevens kwijt te
raken?

b.v.d.

m.v.g.

Shaiim

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] change fonts

2010-07-02 Thread moudav...@live.fr
Where is the location of system/font/DroidSans.ttf

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] https://dl-ssl.google.com/android/repository/repository.xml

2010-07-02 Thread Raj
Hi,

When i dowloaded the Android for windows getting the Error "https://dl-
ssl.google.com/android/repository/repository.xml" during the
installation. Kindly let me the root cause for the problem as i
couldn't complete the installation.

Thanks,
J.Gopi

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Video Render application using Native SurfaceFlinger APIs

2010-07-02 Thread ganya
Hi all,

This is about the issue, I am facing in Android display system(Video
Rendering using Surface Flinger Native APIs).

As for my understanding, Android display system relies on
Surfaceflinger library( a system wide screen composer).
Surfaceflinger runs as a service along with Mediaserver service,
Camera service, Audioflinger and these services interact with each
other through Binder APIs at native level. If any user application
wants to access SurfaceFlinger native APIs, it requires Surfaceflinger
Access permissions.

My requirement is that I want to create a SurfaceView at the JAVA
level (Android Application level) and render video data to that
Surface,  means, pass video data  to the Surface flinger library by
invoking native Surface Flinger APIs. But, because of Permission
Problems, I am not able to invoke Native Surface Flinger APIs from
Application Layer.

Is there any ways to invoke Surface Flinger Native APIs from
Application Level ?


Thanks & Regards,
Ganesh

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android Application Development India, Houston, London

2010-07-02 Thread Jay H Thakkar
DevITSolutions is offshore mobile development industry since more than
7 years with venture of new technologies our potential and competent
team of developers has quickly developed high levels of proficiency to
offer to you for your diverse needs.

We are proficient in developing core Android applications like email
clients, maps, calendar programs, browser, contacts, and others
written in Java. It would be our pleasure to answer all your queries
concerning android application development, android game development,
android mobile application, and offshore android development services.
Please feel free to Contact Us for your Android development needs
today.

For more details about our Android Application Development Services:

Visit Our Site @
 http://www.devitsolutions.com/android-applications-development.html

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android Games Development - India

2010-07-02 Thread Jay H Thakkar
Google Android  is the first open-source operating system for
mobiledevices.

DevitSolutions.com  focuses on Google Android games, our team of
experts provides development work with Android game development by
using the Android SDK (software development kit) and if not ever coded
anything before, and then you have to observe & learn to move forward.
Porting of games and development of games on the mobile has developed
into enormous market already. With different platforms of developing
mobile application used are such as windows mobile, Symbian OS, Sun`s
Java ME, Adobe flash lite palm OS, Google android platform, etc. There
are various requirements into game developments with adoption of
various technologies.

Our team is proficient in developing core Android applications like
electronic message, map, calendar programs, browser, associates, and
others written in Java. We will be able to answer all your queries
regarding android application development, android game development,
android mobile application , and offshore android development
services. Our Android Game Development team at India can deliver the
best and complete healthy solution to all your mobile game development
needs. Google Android with its Java development is more demanding in
gaming sector. We have experience in I phone, blackberry and other
mobile game porting to Android and vice-versa. It is even possible to
change the core OS components using Android SDK

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] 2 Apks running in 1 process (sharing code and data)

2010-07-02 Thread f1dev
Hi,

I know there are many posts around the issue I am facing but I havent
been able to see any yet which addresses my issue.

This is what I am doing:

1. Create 2 apks. (1 with an activity - lets call it F1App and 2nd
with a service - F1Service)
2. Both APKs have same sharedUserId and same android.process and are
signed with the same key - I have been able to confirm that the 2 are
now running in the same process.
3. From App 1 I bind to F1Service
4. Bind returns successfully but I am unable to access the classes
using the binder. The same code works fine in the sample code but the
2 there are in the same apk.

Here is the F1App code.

package f1.f1;

import com.fusionone.F1Service;


import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class F1App extends Activity {
private boolean mIsBound;
public F1Service mBoundService;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.layout);

// Watch for button clicks.
Button button = (Button)findViewById(R.id.bind);
button.setOnClickListener(mBindListener);
button = (Button)findViewById(R.id.unbind);
button.setOnClickListener(mUnbindListener);
}

private ServiceConnection mConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className,
IBinder service) {
// This is called when the connection with the service has
been
// established, giving us the service object we can use to
// interact with the service.  Because we have bound to a
explicit
// service that we know is running in our own process, we
can
// cast its IBinder to a concrete class and directly
access it.
Log.d("Got Binder", "Got Binder" + service);
mBoundService =
((F1Service.LocalBinder)service).getService();
}

public void onServiceDisconnected(ComponentName className) {
// This is called when the connection with the service has
been
// unexpectedly disconnected -- that is, its process
crashed.
// Because it is running in our same process, we should
never
// see this happen.
mBoundService = null;
Toast.makeText(F1App.this,
R.string.local_service_disconnected,Toast.LENGTH_SHORT).show();
}
};

private OnClickListener mBindListener = new OnClickListener() {
public void onClick(View v) {
// Establish a connection with the service.  We use an
explicit
// class name because we want a specific service
implementation that
// we know will be running in our own process (and thus
won't be
// supporting component replacement by other
applications).
Intent toSend = new Intent("com.fusionone.F1Service");
bindService(toSend, mConnection, Context.BIND_AUTO_CREATE);
mIsBound = true;
}
};

private OnClickListener mUnbindListener = new OnClickListener() {
public void onClick(View v) {
if (mIsBound) {
// Detach our existing connection.
unbindService(mConnection);
mIsBound = false;
}
}
};
}




Now the F1Service looks like this:
public class F1Service extends Service {
private NotificationManager mNM;

/**
 * Class for clients to access.  Because we know this service
always
 * runs in the same process as its clients, we don't need to deal
with
 * IPC.
 */
public static class LocalBinder extends Binder {
public static F1Service myServiceObj;
LocalBinder(F1Service x){
myServiceObj = x;
}
public F1Service getService() {
return myServiceObj;
}
}

@Override
public void onCreate() {
mNM =
(NotificationManager)getSystemService(NOTIFICATION_SERVICE);

// Display a notification about us starting.  We put an icon
in the status bar.
showNotification();
}

@Override
public void onDestroy() {
// Cancel the persistent notification.
  //  mNM.cancel(R.string.local_service_started);

// Tell the user we stopped.
//Toast.makeText(this, R.string.local_service_stopped,
Toast.LENGTH_SHORT).show();
}

@Override
public IBinder onBind(Intent intent) {
return mBinder;
}

// This is the object that receives interactions from clients.
See
// RemoteService for a more complete example.
private final IBinder mBinder = new Loc

[android-developers] How to prevent phone from taking control of BT SCO connection

2010-07-02 Thread Phil
In 2.2, I have an active Bluetooth SCO connection to a BT headset,
outside of a phone call.

Is there a way to prevent the phone from taking control of the BT SCO
connection for the phone call, and/or prevent the phone from dropping
the BT SCO connection when the call ends?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] 95% of Chinese android developer earns not a penn

2010-07-02 Thread Robert Lin
It takes only 3 month for an android game, and 3 to 4 weeks for an
android application, so many projects are done by students in China.
Most people think their products are cool but nobody pay for them.
Chinese people never pay for software.
Americans are willing to pay for an app but Chinese not. They use
pirate, and over 75% of android users in China pay not a penny for an
app. And Chinese developers dont know what the overseas markets like
and cannot meet the requirements of Americans.
And the third reason is, plagiarizing. Chinese are expert in
plagiarizing others ideas, so once a good idea and app comes out,
there will be large amount of plagiarizers in China. For example, when
android came out, oPhone soon emerged in China. When facebook came
out, renren.com emerged. Chinese use renren.com instead of facebook,
baidu.com instead of google, ophone instead of android , nokla instead
of nokia. Chinese are lack of creativity.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Resource Alias not resolving

2010-07-02 Thread Dianne Hackborn
Why do you want to do this?  The Streak's screen is really what it reports
-- mdpi density, but more space.  If you use hdpi graphics, then your
graphics will appear incorrectly large on the screen.  You should layout
your UI to use the extra space, not blow it up larger.

The main time I can think where it would be okay to just use larger graphics
is a game, where having everything blow up bigger is not so noticeable.  In
that case, you should maybe just go down the path of picking the graphics
you want to use explicitly based on the raw space you have to work with.
 Before going down that road, though, you should probably stop and consider
what it really means to be manually adjusting for whatever the screen is.

On Fri, Jul 2, 2010 at 5:15 PM, Stephen Lebed  wrote:

> I'm hoping there is an answer to my problem.  I've created two sets of
> graphics for my app.  A set for medium res phones and a set for high
> res phones.  I've placed them into their drawable-mdpi and drawable-
> hdpi folders.
>
> I've now learned that the Dell Streak identifies itself as a large-
> mdpi display.  I've created a drawable-large folder and placed the
> high res images into it.  Its so far, everything is working in the
> emulator.
>
> My problem is I would like to create a single set of high res graphics
> and have it availalbe to both drawable-hdpi and drawable-large.  I've
> tried using the example in the docs
>
> http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources
>
> but it doesn't seem to work.  I wanted to use drawable-hdpi to store a
> single copy of all the high res images, and store the xml aliases in
> drawable-large.  It compiles without error, but when my app tries to
> read the drawable, it throws an error, Null Pointer Exception.
>
> Does the alias xml file only work with images in drawable, or can they
> be in a drawable-hdpi folder?  When I try to pull the file from
> drawable-hdpi it causes the error.
>
> Any help would be appreciated.
>
> Stephen
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Resource Alias not resolving

2010-07-02 Thread Stephen Lebed
I'm hoping there is an answer to my problem.  I've created two sets of
graphics for my app.  A set for medium res phones and a set for high
res phones.  I've placed them into their drawable-mdpi and drawable-
hdpi folders.

I've now learned that the Dell Streak identifies itself as a large-
mdpi display.  I've created a drawable-large folder and placed the
high res images into it.  Its so far, everything is working in the
emulator.

My problem is I would like to create a single set of high res graphics
and have it availalbe to both drawable-hdpi and drawable-large.  I've
tried using the example in the docs
http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources

but it doesn't seem to work.  I wanted to use drawable-hdpi to store a
single copy of all the high res images, and store the xml aliases in
drawable-large.  It compiles without error, but when my app tries to
read the drawable, it throws an error, Null Pointer Exception.

Does the alias xml file only work with images in drawable, or can they
be in a drawable-hdpi folder?  When I try to pull the file from
drawable-hdpi it causes the error.

Any help would be appreciated.

Stephen

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Speed of device

2010-07-02 Thread gjs
Hi ranjan,

Following is a working example ( when used on real phone ) once the
program is started and the GPS get a fix, it will display some of the
current GPS location details including the speed in meters per second
and kilometers per hour of the device.

Regards Gary

--

Make sure to set 
in the manifest file -

---


http://schemas.android.com/apk/res/android";
 package="com.GPSDemo"
 android:versionCode="1"
 android:versionName="1.0">
   
   
   
   
   
   
   

   
   




- example code
---

package com.GPSDemo;

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.TextView;

public class GPSDemo extends Activity {

   TextView tv = null;

   GPS mGPS = null;;

   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);

   tv = new TextView(getApplicationContext());

   setContentView(tv);
   }

   @Override
   protected void onPause() {
   super.onPause();

   if ( mGPS != null )
   {
   mGPS.stopLocationUpdates();
   }
   }

   @Override
   protected void onResume() {
   super.onResume();

   mGPS = new GPS( this.getApplicationContext() );
   }

   ///

   class GPS implements LocationListener { // as inner class...

   LocationManager lm = null;

   Location actualLocation = null;

   public GPS( Context context )
   {
   lm = (LocationManager)
context.getSystemService(Context.LOCATION_SERVICE);

   if (lm != null) {

   actualLocation =
lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);

   }

   startLocationUpdates();
   }

   public void startLocationUpdates() {
   lm.requestLocationUpdates(LocationManager.GPS_PROVIDER,
500l, 0, this);
   }

   public void stopLocationUpdates() {
   lm.removeUpdates(this);
   }

   public void onLocationChanged(Location updatedLocation) {
   actualLocation = updatedLocation;

   String gpsDetails = getGPSString();

   if ( gpsDetails != null)
   {
   tv.setText( gpsDetails );
   }

   }

   public void onProviderEnabled(String provider) {

   }

   public void onProviderDisabled(String provider) {

   }

   public void onStatusChanged(String provider, int iUnknown,
Bundle
buUnknown) {

   }

   public String getGPSString() {

   String clock = "C" + new java.util.Date().toString();

   String loc = null;

   if (actualLocation != null) {

   StringBuffer sb = new StringBuffer();

   sb.append("N"
   +
Location.convert(actualLocation.getLatitude(),
 
Location.FORMAT_SECONDS));
   sb.append(" E"
   +
Location.convert(actualLocation.getLongitude(),
 
Location.FORMAT_SECONDS));

   //if (actualLocation.hasAltitude() == true)
   {
   sb.append(" A" +
actualLocation.getAltitude());
   }

   //if (actualLocation.hasAccuracy() == true)
   {
   sb.append(" D" +
round(actualLocation.getAccuracy()));
   }

   //if (actualLocation.hasSpeed() == true)
   {
   float kph = round((float)
(actualLocation.getSpeed() /
0.277)); // converts m/s to kph

   sb.append(" S" +
round(actualLocation.getSpeed()) + "m "
   + kph + "k");
   }

   //if (actualLocation.hasBearing() == true)
   {
   sb.append(" B" +
round(actualLocation.getBearing()));
   }

   sb.append(" T" + new
java.util.Date(actualLocation.getTime())
   
.toString());

   sb.append(" " + clock);

   loc = sb.toString();

   } else {

   loc = clock;
   }

   return loc;

   }

   public

[android-developers] from FRF50 to FRF91

2010-07-02 Thread Ken H
Anyone know where (or if) I can manually update from FRF50 to FRF91?
I've got files for going from FRF50 to FRF83, and from FRF85B to
FRF91, but nothing in between.

Ken

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Replicating fastscroll like in contacts

2010-07-02 Thread YuviDroid
Here you can find a nice tutorial about fast scrolling:
http://www.anddev.org/tutalphabetic_fastscroll_listview_-_similar_to_contacts-t10123.html

On Sat, Jul 3, 2010 at 12:27 AM, Ken H  wrote:

> I'm looking for a tutorial on implementing the fastscroll feature
> found in the contacts view. I'm using a ListActivity with a custom
> array adapter to display my list (I use subtext under the main text
> info).
>
> I've seen the List9.java class in the samples directory, but it's not
> the easiest example for me to follow -- I'm not ashamed to admit the
> concept of the subclassed array adapter baffles me, even though it
> works quite nicely. All my attempts to use this have ended with a FC
> and an unceremonious boot to the desktop.
>
> Is there one good example out there that explains things? Failing
> that, maybe different examples? I'm listing songs on the sd card...you
> know, the usual.
>
> Ken
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
http://android.yuvalsharon.net

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Accuracy of location.getAccuracy() GSM and GPS - exact Meaning?

2010-07-02 Thread Frank Weiss
I understand your question is really about diameter vs radius. I would
suggest that what it means can only really be determined by field
experiments with a particular set of devices. It's doubtful that a
consumer device will adhere to the kind of accuracy specifications
required of a professional GPS device.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Accuracy of location.getAccuracy() GSM and GPS - exact Meaning?

2010-07-02 Thread Ken H
> But what does that mean exactly?

You already answered your question -- it's the accuracy of the fix in
meters. If it returns "4" your position is accurate to +/- 4m. If
you've ever used the Google map and seen the blue circle around your
position (which should quickly shrink to your flashing dot position),
then you are seeing your GPS accuracy graphically. As the phone's GPS
refines its calculation and acquires more satellites the accuracy will
increase.

Ken

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Replicating fastscroll like in contacts

2010-07-02 Thread Ken H
I'm looking for a tutorial on implementing the fastscroll feature
found in the contacts view. I'm using a ListActivity with a custom
array adapter to display my list (I use subtext under the main text
info).

I've seen the List9.java class in the samples directory, but it's not
the easiest example for me to follow -- I'm not ashamed to admit the
concept of the subclassed array adapter baffles me, even though it
works quite nicely. All my attempts to use this have ended with a FC
and an unceremonious boot to the desktop.

Is there one good example out there that explains things? Failing
that, maybe different examples? I'm listing songs on the sd card...you
know, the usual.

Ken

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Start ACTION_CALL activity from service on Motorola Milestone

2010-07-02 Thread alex.tchumel
Hi!
I have a problem with starting ACTION_CALL activity from my service on
Motorola Milestone after upgrade to 2.1 - update1 firmware version.

I have a very simple (worked before) code.


Intent dialIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel://"
+ dialOutNumber));
dialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(dialIntent);


Now looks like InCallScreen "hangs up" after set audio mode or
ActivityManager "blocks" InCallScreen activity
The phone does call, but the screen is black and locked.

If I start ACTION_CALL activity from my activity - all right.

Looks at the log:

07-01 00:42:39.617: INFO/ActivityManager(1282): Starting activity:
Intent { act=android.intent.action.CALL dat=tel:5247519 flg=0x1000
cmp=com.android.phone/.OutgoingCallBroadcaster }
07-01 00:42:39.664: DEBUG/PhoneUtils(6381):
checkAndCopyPhoneProviderExtras: some or all extras are missing.
...
07-01 00:42:40.679: DEBUG/InCallScreen(6381): placeCall()...  intent =
Intent { act=android.intent.action.CALL dat=tel:5247519 flg=0x1080
cmp=com.android.phone/.InCallScreen (has extras) }
07-01 00:42:40.679: DEBUG/InCallScreen(6381):
checkIfOkToInitiateOutgoingCall: ServiceState = 0
07-01 00:42:40.679: DEBUG/PhoneUtils(6381): placeCall: '5247519'...
...
07-01 00:42:40.710: DEBUG/PhoneUtils(6381): ===> phone.dial()
returned:  incoming: false state: DIALING post dial state: NOT_STARTED
07-01 00:42:40.710: DEBUG/PhoneUtils(6381):
setAudioMode(MODE_IN_CALL)...
07-01 00:42:40.710: DEBUG/AudioHardwareMot(1055):
AudioMgr:setMode(IN_CALL)
07-01 00:42:40.710: DEBUG/AudioHardwareMot(1055): AudioMgr:setMode
MODE_IN_CALL
07-01 00:42:40.710: INFO/MYPhoneService(6437): Telephony OFFHOOK
...
Here the screen is black and locked ~ 3 min. Only status panel
available. Call ends. After some timeout see InCallScreen... If start
from the Activity - the InCallScreen apears right after call start.
...
07-01 00:45:14.031: DEBUG/InCallScreen(6381): placeCall:
PhoneUtils.placeCall() succeeded for regular call '5247519'.
07-01 00:45:14.031: DEBUG/DTMFTwelveKeyDialer(6381): closeDialer()...
07-01 00:45:14.031: DEBUG/DTMFTwelveKeyDialer(6381): clearDigits()...
07-01 00:45:14.031: DEBUG/PhoneApp(6381): updateProximitySensorMode:
state = OFFHOOK
07-01 00:45:14.031: DEBUG/PhoneApp(6381): updateProximitySensorMode:
lock already released.
07-01 00:45:14.031: DEBUG/PhoneApp(6381): isInDockMode bInDockMode
is : false
07-01 00:45:14.039: DEBUG/StatusBar(1282): DISABLE_EXPAND: yes

I can send full log, but it is really big.

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: User comments available in the developer console!

2010-07-02 Thread Maps.Huge.Info (Maps API Guru)
You can respond to comments, I do it all the time. All you need to do
is use the market to download and install your app to a device and
leave a comment when you see something that needs attention. I preface
the response with "Developer comment:"

You can only leave one comment per install, but every time you update
that comment it floats to the top of the heap. It leaves no historical
record but it does allow you to address the most recent user comment.

-John Coryat

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Please read: Eclipse 3.6 compatibility issue

2010-07-02 Thread Xavier Ducrohet
Hello everyone,

There is a bug in the Eclipse 3.6 plug-ins that provides XML
model/editors to our custom editors. This prevent using some custom
Android editors such as the string editors.

The Eclipse bug database already contain this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318108

We are working on a work around, but in the mean time we recommend
that you stay on 3.5

Xav
-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-07-02 Thread Xavier Ducrohet
Hello all,

We've tracked down this issue to a bug in the Eclipse Web tools
plug-ins which provide the XML models and editors that our plug-ins
use.

For reference, Eclipse already has a bug filed for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318108

We will implement a work around as soon as possible.

Xav

On Thu, Jul 1, 2010 at 1:31 AM, Kwan Cheng  wrote:
> It seems Helios breaks the resource editors, I did not have this issue when
> using Galileo.  I had to resort using the XML editor to work around the null
> errors.  Hopefully the android tool set will have this issue worked out.
>
> On Thu, Jul 1, 2010 at 12:46 AM, Bob Kerns  wrote:
>>
>> There may not be; he may have the wrong editor. Even if he has the
>> right editor, a workaround may be to use a different one.
>>
>> See my reply here for more detailed suggestions.
>>
>>
>> http://groups.google.com/group/android-developers/browse_frm/thread/c8be17f1927932f0
>>
>> On Jun 30, 6:31 pm, Frank Weiss  wrote:
>> > Look at the bottom of the editor pane. There should be a tab labeled
>> > "Resources" and a tab labeled "strings.xml". Which tab is selected
>> > when the NPE ocurrs?
>>
>> --
>> 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+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Activity saved state not always working?

2010-07-02 Thread Connick
>
> > Whereas calling startActivity( intent ) from within an application
> implies a
> > reset state and will not have the same affect as navigating back in the
> > activity stack.
>
> > Calling startActivity() usually creates a new instance of the
> > activity, which by definition has no saved state.
>
> 
>
Thanks for clarification. I was assuming that if the activity was still
residing in the stack the instance would be re-used.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Activity saved state not always working?

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 4:31 PM, Connick  wrote:
> I can't believe I've just noticed this behavior now ...
>
> If the user returns to an activity by hitting BACK or relaunches the app
> (and last activity is resumed) then previous state is restored.

Normally, when the user presses BACK, the previous activity is still
in memory. It was stopped, not destroyed. Hence, the "previous state"
never went anywhere.

> Whereas calling startActivity( intent ) from within an application implies a
> reset state and will not have the same affect as navigating back in the
> activity stack.

Calling startActivity() usually creates a new instance of the
activity, which by definition has no saved state.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Development phones question

2010-07-02 Thread asicwizard
The Nexus One bootloader is unlockable with the 'fastboot oem unlock'
command.
The Google Android team uses it for platform development and
encourages contributions to the Android Open Source Project. Have fun.

http://groups.google.com/group/android-platform/browse_thread/thread/2fd6d1c9963485f8/872080d49990b649

On Jul 2, 10:25 am, Tommy  wrote:
> Hey,
>
> I was wondering if someone could tell me if there is a way I can
> hardware unlock my android phone like the dev phones are hardware
> unlocked. I don't really have the money to spend on a dev phone but it
> would be nice to be able to load other versions of android on so I can
> test things if needed.
>
> Thanks for your time and input,
>
> Tommy

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] User comments available in the developer console!

2010-07-02 Thread YuviDroid
Yeah! That's great to see the comments in the developer console!
A really small thing that I think would would be useful is to add also the
number of comments in the comments link. Something like "Comments (83)". And
maybe also show the link in bold if you have 'unread' comments.

Anyway, great job Android team!

On Wed, Jun 30, 2010 at 8:35 AM, Maps.Huge.Info (Maps API Guru) <
cor...@gmail.com> wrote:

> I just noticed a new link in the developer console for comments!
>
> When clicked, it shows the comments the users have posted. No way to
> answer them but at least you can see them outside the device.
>
> Thanks Android people! Great to see this.
>
> -John Coryat
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
http://android.yuvalsharon.net

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Activity saved state not always working?

2010-07-02 Thread Connick
I can't believe I've just noticed this behavior now ...

If the user returns to an activity by hitting BACK or relaunches the app
(and last activity is resumed) then previous state is restored.
Whereas calling startActivity( intent ) from within an application implies a
reset state and will not have the same affect as navigating back in the
activity stack.

Is that accurate?


On Fri, Jul 2, 2010 at 3:54 PM, Connick  wrote:

>
>
> On Fri, Jul 2, 2010 at 3:48 PM, Mark Murphy wrote:
>
>> On Fri, Jul 2, 2010 at 3:46 PM, Connick  wrote:
>> > That's what's throwing me for a loop. onDestroy is never called ...and I
>> > don't believe there's any reason it'd be killed off forcefully.
>>
>> > Are you really sure onCreate() is being called? Do you see anything
>> > interesting in logcat?
>>
>> It's absolutely being called (onCreate, onResume) ...onDestroy is called
> on orientation change and state is restoring properly. I'll keep fishing.
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Bluetooth pairing problem

2010-07-02 Thread DonFrench
What happens if you go to Settings>Wireless>Bluetooth and unpair it
and then re-pairing?  Do you get prompted for the passkey?

On Jul 2, 12:18 am, margo  wrote:
> Problem is that it automatically pairs without passkey and so I cannot
> use passkey. Passkey what this device uses is not default passkey
> which is four zeros but .
>
> Is there any way to perform paring programmatically?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Changing screen

2010-07-02 Thread Harsha

Since its a test, it needs to be an native application so that the
student cant access different browsers. And since I am new to android
development I am just learning the language right now. Each question
is like one xml file which i need to read on fly and create the GUI
also on fly.

I just came across some article that says using view groups would help
me create GUI on fly but I am not really sure what approach i need to
take, so I need advice from all expertise here which approach should i
follow

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Changing screen

2010-07-02 Thread Frank Weiss
Have you considered the following:

1) Use a web application instead of and Andorid application
2) Create a custom activity that creates a view (buttons, etc) on the
fly from dynamic meta-data received from the server.
3) Like 2), but just a view, although an activity per screen (a chunk
of user interacation) seems more apropos than an activity whith
muliple views.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Changing UI

2010-07-02 Thread TreKing
On Thu, Jul 1, 2010 at 5:10 AM, Muhammad Ali  wrote:

> How can we achieve this?


This is like the most basic of Android functionality. Read a book on
Android, review the documentation application fundamentals, and go over the
samples.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Changing screen

2010-07-02 Thread Harsha
Please can somebody reply what approach i should follow

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Can't compile AOSP full_sapphire-userdebug/eng

2010-07-02 Thread Denzil Ferreira (dferreira)
Hi there,

Up until yesterday I could compile fine the AOSP, but since I updated
the repos this morning, it stops with this error:
there's no rule to build the target "out/target/product/sapphire/obj/
STATIC_LIBRARIES/libboot_board_dream_sapphire_intermediates/
libboot_board_dream_sapphire.a"

Any ideas?

Thanks!

Denzil

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to read Meta-Data

2010-07-02 Thread carrerasrodrigo
hi! i would like to put the following tag in the manifest file.

http://schemas.android.com/apk/res/android";
 package="org.package.app">

..




The question is, how i can read the value of the meta-data tag
(myname) ??

thanks a lot!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: App to communicate over the phone USB port

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 3:49 PM, rt  wrote:
> The intention is to have a downloadable app which will be able to
> communicate over the phone's USB port with an
> external device. Are there any USB drivers and hooks in the Android OS
> to achieve that, or does that require modifications/ additions to the
> Android source code.

Installing device drivers requires "modifications/additions" to the
device firmware.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Activity saved state not always working?

2010-07-02 Thread Connick
On Fri, Jul 2, 2010 at 3:48 PM, Mark Murphy  wrote:

> On Fri, Jul 2, 2010 at 3:46 PM, Connick  wrote:
> > That's what's throwing me for a loop. onDestroy is never called ...and I
> > don't believe there's any reason it'd be killed off forcefully.
>
> > Are you really sure onCreate() is being called? Do you see anything
> > interesting in logcat?
>
> It's absolutely being called (onCreate, onResume) ...onDestroy is called on
orientation change and state is restoring properly. I'll keep fishing.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: App to communicate over the phone USB port

2010-07-02 Thread rt
The intention is to have a downloadable app which will be able to
communicate over the phone's USB port with an
external device. Are there any USB drivers and hooks in the Android OS
to achieve that, or does that require modifications/ additions to the
Android source code.

Reli

On Jul 2, 3:26 pm, Mark Murphy  wrote:
> On Fri, Jul 2, 2010 at 3:21 PM, rt  wrote:
> > I am working on a app that will eventually need to communicate with an
> > external device over the phone USB port. Are there any USB drivers and
> > hooks in the Android OS for such applications.
>
> Yes, if you are making your own phone. If that is your interest,
> please visit the [android-porting] Google Group for assistance.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Activity saved state not always working?

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 3:46 PM, Connick  wrote:
> That's what's throwing me for a loop. onDestroy is never called ...and I
> don't believe there's any reason it'd be killed off forcefully.

Are you really sure onCreate() is being called? Do you see anything
interesting in logcat?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Activity saved state not always working?

2010-07-02 Thread Connick
That's what's throwing me for a loop. onDestroy is never called ...and I
don't believe there's any reason it'd be killed off forcefully.


On Fri, Jul 2, 2010 at 3:31 PM, Mark Murphy  wrote:

> On Fri, Jul 2, 2010 at 3:30 PM, Connick  wrote:
> > However if I navigate elsewhere in
> > the app via menu option then navigate BACK to the original screen via the
> > menu, onCreate receives null for the incoming Bundle and my TextView
> loses
> > state.
>
> What caused the activity to be destroyed?
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training...At Your Office: http://commonsware.com/training
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Activity saved state not always working?

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 3:30 PM, Connick  wrote:
> However if I navigate elsewhere in
> the app via menu option then navigate BACK to the original screen via the
> menu, onCreate receives null for the incoming Bundle and my TextView loses
> state.

What caused the activity to be destroyed?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Possible to hang help/hint bubbles off views?

2010-07-02 Thread TreKing
On Thu, Jul 1, 2010 at 12:37 PM, Connick  wrote:

> I'm considering the use of hints on TextViews but curious to know if hint
> *bubbles* are possible? (out of the box)
>

Look up PopupWindow.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Activity saved state not always working?

2010-07-02 Thread Connick
I've got a TextView which keeps losing it's previous value between intent
invocations. If I enter some text, hit the home button then relaunch the app
the text is restored as expected. If I change orientation, onCreate fires
and again text is restored as expected. However if I navigate elsewhere in
the app via menu option then navigate BACK to the original screen via the
menu, onCreate receives null for the incoming Bundle and my TextView loses
state. I can see onSaveInstanceState being called before navigating away so
I'm scratching my head as to what's going on.

Menu option is firing an intent like so:
intent = new Intent( Constants.INTENT_FORM_LIST );
startActivity( intent );

-Stace

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Holding On to Camera

2010-07-02 Thread TreKing
On Thu, Jul 1, 2010 at 8:37 PM, perumal316  wrote:

> I wanted to try whether it is possible to lockdown a camera by
> an application. Is there any other method to lock down the camera?
>

I repeat: "I don't know, but you want to do this because ... ?"

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] App to communicate over the phone USB port

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 3:21 PM, rt  wrote:
> I am working on a app that will eventually need to communicate with an
> external device over the phone USB port. Are there any USB drivers and
> hooks in the Android OS for such applications.

Yes, if you are making your own phone. If that is your interest,
please visit the [android-porting] Google Group for assistance.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] App to communicate over the phone USB port

2010-07-02 Thread rt
I am working on a app that will eventually need to communicate with an
external device over the phone USB port. Are there any USB drivers and
hooks in the Android OS for such applications.

Thanks,
Reli

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android developer opportunity, Ottawa, Canada

2010-07-02 Thread Connick
Hi folks,

We're looking to augment our mobile team and are looking for an additional
contractor for Android development. (on-site in Ottawa)
Please contact me off list ( styo...@adobe.com ) if you're interested and/or
would like more information.

Cheers,
Stacy Young
Adobe Systems

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Change the progress bar style dynamically

2010-07-02 Thread TreKing
On Thu, Jul 1, 2010 at 7:23 AM, Serdel  wrote:

> Is it possible to change the style of the progress bar dynamically in 
> thecode??
>

I assume yes. Seriously though, in the time it took you to post this
question and await a response, you could have a coded up a dirt-simple test
to verify this for yourself.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Emulator 2.1 & 2.2 reverse geocoding not available

2010-07-02 Thread Mathias Lin
I confirm the same issues on the emulator with API 2.2 and API 2.1
level 8, but it works ok with API 2.1 level 7.

-- Mathias


On Jun 27, 4:30 am, Malcolm  wrote:
> Richard,
>
> Joining this discussion late.
> I hit a similar problem when developing on a Mac using Eclipse and a
> level 8 (SDK 2.2 plus Google APIs) target.
> I was using code like this, based on an example in Reto Meier's book
> Professional Android 2 Application Development
> ---
> Geocoder geoCoder = new Geocoder(this, Locale.getDefault());
>                 try {
>                         List addresses = 
> geoCoder.getFromLocation(latitude,
> longitude, 1); // maxResults
>                         StringBuilder sBuilder = new StringBuilder();
>                         if(addresses.size() > 0){
>                                 Address address = addresses.get(0);
>                                 for(int i=0; i < 
> address.getMaxAddressLineIndex(); i++){
>                                         
> sBuilder.append(address.getAddressLine(i)).append("\n");
>                                         
> sBuilder.append(address.getLocality()).append("\n");
>                                         
> sBuilder.append(address.getPostalCode()).append("\n");
>                                         
> sBuilder.append(address.getCountryName()).append("\n");
>                                 }
>                                 addressString = sBuilder.toString();
>                         }
>                 } catch(IOException e) {
>                         addressString = "Sorry address could not be 
> established\n" +
> e.toString();
>                 }
> -
> The addressString value is displayed to the user via a TextView
> object.
>
> When running it on the emulator I alweays got a java.io.IOException:
> Service not Available
>
> Switching to an earlier level 7 target 8 (SDK 2.1 plus Google APIs)
> and redeploying the same code, the first time I ran it I got a more
> hopeful error "no address found" or similar, then after sending a
> location via the emulator, I got the full geocoded address correctly
> displayed.  I am thus in the situation like Kugelschlag - that
> geocoding on an emulator works in 2.1 (7) but throws an Io Exception
> in 2.2 (8).
>
> HTH
>
> Malcolm :-)
>
> On Jun 8, 8:35 am, Richard  wrote:
>
>
>
> > Thanks for a response ! As nobody else has anything to say I'm
> > stumped ;-)
>
> > Is it possible Google is blocking location services based on my ip's
> > geographic location (e.g. Australia) when using theemulator?
>
> > To repeat myself, I've tested it on AVDs:2.1&2.2using both API
> > level 7 & 8.
>
> > 2.1Level 7 Emulation
> > only lists GPS support
> > 06-08 17:30:38.330: DEBUG/LocationManager(197): getAllProviders
> > 06-08 17:30:38.330: VERBOSE/TripStart(197): Listing supported
> > providers
> > 06-08 17:30:38.341: VERBOSE/TripStart(197): gps supported
> > 06-08 17:30:38.351: ERROR/LocationManagerService(64):
> > isProviderEnabled got exception:
> > 06-08 17:30:38.351: ERROR/LocationManagerService(64):
> > java.lang.IllegalArgumentException: provider=network
> > 06-08 17:30:38.351: ERROR/LocationManagerService(64):     at
> > com.android.server.LocationManagerService._isProviderEnabledLocked(Location 
> > ManagerService.java:
> > 1385)
> > 06-08 17:30:38.351: ERROR/LocationManagerService(64):     at
> > com.android.server.LocationManagerService.isProviderEnabled(LocationManager 
> > Service.java:
> > 1359)
> > 06-08 17:30:38.351: ERROR/LocationManagerService(64):     at
> > android.location.ILocationManager
> > $Stub.onTransact(ILocationManager.java:237)
> > 06-08 17:30:38.351: ERROR/LocationManagerService(64):     at
> > android.os.Binder.execTransact(Binder.java:287)
> > 06-08 17:30:38.351: ERROR/LocationManagerService(64):     at
> > dalvik.system.NativeStart.run(Native Method)
>
> > 2.2Level 8 Emulation
> > 05-31 01:49:14.990: VERBOSE/TripStart(311): Listing supported
> > providers
> > 05-31 01:49:14.990: VERBOSE/TripStart(311): network supported
> > 05-31 01:49:14.990: VERBOSE/TripStart(311): passive supported
> > 05-31 01:49:14.990: VERBOSE/TripStart(311): gps supported
> > 05-31 01:50:14.421: VERBOSE/TripStart(311): java.io.IOException:
> > ServicenotAvailable
>
> > The app works on an HTC Desire but its a pain to develop & debug
> > without the aboveemulatorfunctionality.
>
> > Richard
>
> > On Jun 5, 10:24 am, Kugelschlag  wrote:
>
> > > I have seen the same issue when I updated from2.1and API Level 7
> > > (where it works) to2.2API Level 8 (where it doesnot).
>
> > > Seems to be in the level 8 package.  I also noticed quite a bit of
> > > slowdown in the map view scrolling after updating to2.2.
>
> > > Anybody else see this?
>
> > > Tested on Windows 7 using Eclipse.
>
> > > Kugelschlag
>
> > > On May 30, 7:50 pm, Richard  wrote:
>
> > > > I have been unable to getreversegeocodingwokring under either2.1
> > > > or2.2on the emulators. Tested on b

Re: [android-developers] Re: Accuracy of location.getAccuracy() GSM and GPS - exact Meaning?

2010-07-02 Thread TreKing
On Thu, Jul 1, 2010 at 6:43 AM, Shivers wrote:

> Does nobody know what this Accuracy really means?
>

My guess, it's a radius - if a position is accurate to some number of
meters, to me that indicates that the position lies within X units of the
reported value. IOW, a radius.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Accidentally made my paid app free

2010-07-02 Thread Denis Souza
I woudn't know, sorry, though I'd start with contacting support, which
you have already done... Try explaining again what happened. I don't
know if anyone with any power to make that change reads these posts,
but it would help if you could get anyone from the inside to
sympathize with your problem.

On Jul 1, 7:21 pm, g1bb  wrote:
> Thanks everyone for the feedback.
>
> For the record, I had the app published since the Market's inception
> (~1.5 years?) with 5000+ downloads, a multitude of ratings, etc.
>
> Denis, do you have any ideas on how to fight it? I'm not blaming
> anyone but myself on this one, but would love to have my downloads and
> ratings back.
>
> Thanks again.
>
> I opened a ticket with support, and this was the response:
> --- 
> -
> Thanks for writing in.
>
> Once you've set the price of an application, you can change it at any
> time. However, if you've previously published an application for free,
> you
> cannot change it to have a price.
>
> If you'd like to sell your application, you'll need to upload a new
> APK
> and add a price.
>
> If we can assist you further, please let us know.
>
> On Jul 1, 3:36 pm, Denis Souza  wrote:
>
>
>
> > In your place I'd fight it a little and try to get someone at Google
> > to change it back. If changing the name/package means it's an entirely
> > new app, it also means that all those people who purchased your app
> > would have to pay for it again if they ever have to reinstall or if
> > they want to update to the latest version.
>
> > On Jul 1, 2:43 pm, TreKing  wrote:
>
> > > On Tue, Jun 29, 2010 at 4:23 AM, SiteNook  wrote:
> > > > I assumed the opposite, a new app.
>
> > > It's in the title "Accidentally made my paid app free" ... IOW, "had a 
> > > paid
> > > app already, then made it free, oops".
>
> > > > I doubt he changed it to free on version 2.6 or something.
>
> > > I think he did.
>
> > > "So I made my paid app free, not realizing that I wouldn't be able to 
> > > change
> > > it back to paid."
>
> > > Am I the only one who actually read what the OP posted?
>
> > > ---
> > >  --
> > > TreKing - Chicago transit tracking app for Android-powered 
> > > deviceshttp://sites.google.com/site/rezmobileapps/treking-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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Changing screen

2010-07-02 Thread Harsha
hi I am new to android programming and i need to create the following
application. Its a test, so  i need to maintain the state of session
since login to answer choices entered by students till the end of
state. can anyone tell me how can i change screens, I want to just
change screens within the same activity. and also retain the values
entered in each GUI screen. Each screen should be generated on fly
depending on the kind of test the student selects. The test questions
are in different XML files, so i need to render these files on fly and
display it in GUI.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to notify ListAdapter

2010-07-02 Thread TreKing
On Thu, Jul 1, 2010 at 4:29 AM, Chandana Napagoda wrote:

> is there any way to notify ListAdapter ?
>

Did you try looking at the ListAdapter documentation? Because there are
functions there specifically for this purpose.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   >