[android-developers] Deauthorizing account access in AccounManager

2010-04-25 Thread dadical
I'm wading through the poorly documented AccountManager API and am a
bit confused on a few points.  There's nothing like having to reverse-
engineer public APIs :).

Anyway, I'm curious about how to test the use of this API in an end-to-
end fashion.  One very tricky aspect of the account manager is its
ability to query the user before granting access to a particular
account.  I can't seem to find any mention of how to un-grant
permission for a particular application to use an account.  Does
anyone know how this is done?

Also, has anyone figured out what authTokenType is supposed to
represent?  Using android seems to work for getting a google.com
auth token, but it makes me nervous that I have no idea what this
property is really intended for.  I could be building in a breaking
point.

Hey Google people, it would be really, really helpful to have a good
working example of this API.  Even better, some comprehensible docs
would help.  A mobile app interacting with an AppEngine backend would
make sense for an example.

Dave

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


[android-developers] Re: Progress bar is run after task completing

2010-04-25 Thread pramod.deore

Hello everybody again,

Now my code runs in background anfd on foreground it shows progress
bar.But now I want to show another screen after sendFileToServer
method completes. I had tried followinfg but throws exception. Please
help me how to to do this?

 public void onClick(View v)
{
if (v==yesButton)
{
setContentView(R.layout.main2);

t = new Thread(){
   public void run()
   {
   while (!threadDone)
   {
   sendFileToServer();

   }
   setContentView(R.layout.main3);
   }
};

t.start();

}
}

public void sendFileToServer()
{
for (int i=0;i5000;i++)
{

System.out.println (Now value of i is+i);
}
threadDone = 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


Re: [android-developers] Starting default calendar and contacts application

2010-04-25 Thread Anurag Singh
How you have open default mail client? I want to do same thing.

-- 
Best Regards,
Anurag Singh

On Fri, Apr 23, 2010 at 4:49 PM, Tejas jasani.te...@gmail.com wrote:

 Hi,

 What basically i wanna do is

 I have got three buttons in my app, one for calendar, one for contacts
 and third for mail. when i click on those buttons corresponding
 application should get open.

 The mail code works perfectly fine
 but somehow calendar and contact code which i have doesnt work good,
 can any one please provide the code.

 thank you very much.

 Regards,
 Tejas

 --
 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.comandroid-developers%2bunsubscr...@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: Restlet librairies use in Android project

2010-04-25 Thread Jerome Louvel

Thanks for your feed-back!

In version 2.0, we have added support for all caching headers in the 
Restlet API. See this page for the mapping table:

http://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/324-restlet/130-restlet.html

It is threrefore very easily to retrieve all cache related information 
for a remote resource and to send conditional requests as well. Are you 
looking for something different?


We are also planning further caching support for future releases, mainly 
to plug with actual caching stores on the server or client side. See 
this RFE for details:

http://restlet.tigris.org/issues/show_bug.cgi?id=25

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com


Le 24/04/2010 19:46, Streets Of Boston a écrit :

Hi Jerome,

I'm using your restlet libaries as well on Android clients. So far, it
has worked great :-)

One thing i'd love to see implemented is a framework that helps in
implementing caches. Not so much the implementation and handling of an
actual cache, but some framework part of Restlet that handles all the
Cache, E-Tag, If-modified, etc., headers. The only thing left for a
client to do, that would use this Restlet framework, is to register
callbacks (implementing an interface?) that can tell the Restlet about
the cache-information/status of a given resource and that can allow
the Restlet to request a resource to be saved to, read from or deleted
from the cache.


--
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 stack becomes dead

2010-04-25 Thread Rafał Grzybowski
I've just installed 1.31.405.4 system update and it looks like fixed.

On Apr 19, 6:08 pm, ssozonoff se...@sozonoff.com wrote:
 Hi,

 Well for the moment its even worse on the HTC Desire, I cant even
 connect to using the SPP profile!!!

 I need to spend a little more time to gather more info but its not
 looking good :-(
 My understanding is that the Desire sports the same hardware as the
 Nexus 1 I would have thought Bluetooth was thoroughly tested on
 the Nexus 1.

 Regards,
 Serge

 On Apr 13, 11:43 pm, Rafał Grzybowski aguyngue...@gmail.com wrote:



  Serge,

  Thank you for the reply. I'd be glad to hear how it works on HTC
  Desire.
  Maybe I'll try to switch to nativeBluetoothcustom library.

  Best regards

  On 13 Kwi, 16:50, ssozonoff se...@sozonoff.com wrote:

   Hello Rafal,

   I have this exact problem with my HTC Legend as well. I wrote a post
   here but it never appeared??
   So far I have not been able to solve the issue and I don't know if its
   specific to the Legend.
   In a few days I receive my HTC Desire and will test with that.

   If you close theBluetoothsocket while your are not stuck in the
   blocking read thestackshould be OK. Its only when closing the socket
   when blocked in the read that thestackgets corrupted. Sadly the only
   way to break out of the blocking read is to close the socket!

   Please keep me posted if you find anything.

   Thanks,
   Serge

   On Apr 13, 1:05 pm, Rafa³ Grzybowski aguyngue...@gmail.com wrote:

AfterBluetoothconnection is lost.Bluetoothstackon HTC Legend is
messed up. Nothing works tillBluetoothis turned off and on. Here is
the sample, the problem is blocking read on the thread but
InputStream.available call always returns 0 and cannot be used to
implement some ugly, busy-waiting workaround.

package com.example.android.disconnectproblem;

import java.io.IOException;
import java.io.InputStream;
import java.io.InvalidObjectException;
import java.io.OutputStream;
import java.util.UUID;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class MainActivity extends Activity {
        private ArrayAdapterString messages = null;
        private BluetoothAdapter adapter = null;
        private BluetoothDevice device = null;
        private BluetoothSocket socket = null;
        private ConnectedThread thread = null;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        try {
                super.onCreate(savedInstanceState);
                super.setContentView(R.layout.main);
        }
        catch (Throwable throwable) {
        }
    }

    @Override
    public void onStart () {
        try
        {
                super.onStart();

                // setup click handler
                Button btnConnect = (Button)
super.findViewById(R.id.btnConnect);
                btnConnect.setOnClickListener(new OnClickListener() {
                public void onClick(View v) {
                        try {
                                MainActivity.this.doConnect();
                        }
                        catch (Throwable throwable) {
                                
MainActivity.this.handleThrowable(doConnect
failed, throwable);
                        }
                }
            });

                Button btnDisconnect = (Button)
super.findViewById(R.id.btnDisconnect);
                btnDisconnect.setOnClickListener(new OnClickListener() {
                public void onClick(View v) {
                        try {
                                MainActivity.this.doDisconnect();
                        }
                        catch (Throwable throwable) {
                                
MainActivity.this.handleThrowable(doDisconnect
failed, throwable);
                        }
                }
            });

                // setup messages
                this.messages = new ArrayAdapterString(this,
R.layout.message);

((ListView)super.findViewById(R.id.lstMessages)).setAdapter(this.messages);
        }
        catch (Throwable throwable) {
                this.handleThrowable(onStart failed, throwable);
        }
    }

    private void doConnect () throws Throwable{
        if (this.adapter == null) {
                

[android-developers] E-commerce payment gateway

2010-04-25 Thread Rajesh G
Hi All:

Greetings !!!. We are developing an E-commerce application in Android
where the users can view and select particular product and should make
payments through the payment gateway.

1. Google checkout / Merchant  center.
2. Paypal.
3. or Anyother . . .

I would appreciate if I could get some code snippets or documentation
on How to link the payment gateway through android application.

Kindly throw some light on this.

Thank you.



-- 
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] hw home screen works.?

2010-04-25 Thread satish bhoyar
hi all,

I need a help regarding HomeScreen. I was thinking hw the size of the
Workspace is defined. LIke hw it streaches it self. is it a 9.png image or
some thing else.
please let me knw .
if anyone have this information.

thanks
satish

-- 
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: Lengthy question(s) on 2D graphics optimization

2010-04-25 Thread Jon mailinglists
On Sat, Apr 24, 2010 at 3:39 PM, Alan Carvalho de Assis
acas...@gmail.com wrote:
 Hi Jon,

 On 4/24/10, Zsolt Vasvari zvasv...@gmail.com wrote:
 Can I suggest you to look at the source code of this game?

 http://code.google.com/p/replicaisland/

 It's a great little 2d side scroller with well structured and
 optimized code -- a lot to be learned from it.

 I am in no way affilitaed with that project, just came across it.


 Also take a look on this:

 http://www.scribd.com/doc/16917369/Writing-Real-Time-Games-for-Android

 He is the author of Replica Island.


Thanks both of you for pointing in the direction of Replica Island,
which I was unaware of before. Great of Chris to share his experience!
The video of it can be found here:
http://code.google.com/events/io/2009/sessions/WritingRealTimeGamesAndroid.html

Seem like I'll be forced down the path of OpenGL if I want good
performance for many tiles. As I'm not really into game development
but do this just to learn more (I find doing a simple real time game
a good way to learn to optimize things and learn more about the
graphics/layout) I was hoping to avoid OpenGL but I suppose that's a
path I have to take.

These two links are what made me hope for clipping:
http://www.anddev.org/viewtopic.php?p=12392
http://jtomlinson.blogspot.com/2008/10/clipping.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] Re: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread Joël Bourquard
I got it for Titanium Backup (a tool for root users):

http://www.cyrket.com/p/android/com.keramidas.TitaniumBackup/

Had around 10k downloads at the time. Now just got past 50,000 and a
nice rating ;-)

Switzerland - and no Nexus received here yet.

Cheers,

Joël


On Apr 23, 1:15 pm, fhucho fhu...@gmail.com wrote:
 Out of curiosity, what is the app you guys are getting Nexus / Droid
 for?

 On Apr 23, 11:05 am, Lim Sim lim@gmail.com wrote:



  haha. maybe they are upgrading the phones in transit?

  On Apr 23, 2010 10:00 AM, fhucho fhu...@gmail.com wrote:

  @Lim Sim
  LOL, they're not installing Froyo on it :) They said about a month ago
  that all the phones have been sent. If they wanted to install Froyo on
  it they would do it over the air.

  On Apr 23, 7:07 am, dgoemans dgoem...@gmail.com wrote:

   Dude,
   1. What do you mean your instru...

  --
  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 
  athttp://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 
 athttp://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] Re: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread Lim Sim
Titanium Backup is cool.

On 25 April 2010 10:32, Joël Bourquard joel.bourqu...@gmail.com wrote:

 I got it for Titanium Backup (a tool for root users):

 http://www.cyrket.com/p/android/com.keramidas.TitaniumBackup/

 Had around 10k downloads at the time. Now just got past 50,000 and a
 nice rating ;-)

 Switzerland - and no Nexus received here yet.

 Cheers,

 Joël


 On Apr 23, 1:15 pm, fhucho fhu...@gmail.com wrote:
  Out of curiosity, what is the app you guys are getting Nexus / Droid
  for?
 
  On Apr 23, 11:05 am, Lim Sim lim@gmail.com wrote:
 
 
 
   haha. maybe they are upgrading the phones in transit?
 
   On Apr 23, 2010 10:00 AM, fhucho fhu...@gmail.com wrote:
 
   @Lim Sim
   LOL, they're not installing Froyo on it :) They said about a month ago
   that all the phones have been sent. If they wanted to install Froyo on
   it they would do it over the air.
 
   On Apr 23, 7:07 am, dgoemans dgoem...@gmail.com wrote:
 
Dude,
1. What do you mean your instru...
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Lim Sim
t: +44 790 4181648
f: http://www.flickr.com/photos/limsim

-- 
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] Alarms/Wake Locks/Sound notification question

2010-04-25 Thread code_android_festival_way
Hello.

I got a problem with my sound notifications not being sent while the
screen is off and the device is unplugged from the charger.

Here is the workflow:

- Alarm Service gets fired every 30 seconds (well the timer can be
adjusted)
- The alarm starts a service which fires a sound and vibrate
notification
- The service holds a PARTIAL_WAKE_LOCK acquired in onCreate and
released in onDestroy

Here is the result of the whole thing:

- Both notifications get fired as long as the screen is on
- Both notifications get fired as long as the device is plugged into
the charger (via USB) even when the screen is off (done by pressing
the power button)
- BUT only the vibrate notification gets fired when the screen is off
(user pressed the power button once)
- When pressing the power button once again and the screen is on again
the notifications are back to normal behaviour and both get fired

Could someone tell me why the sound notification ignores the wake lock
and sits down in silence? From the logs I can say that the service
runs normally and gets from onCreate to onDestroy pretty fine.

I have tested this behaviour on a default Nexus One.

Could someone help me or got a solution for this problem?

Thank you very much.

-- 
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: Problem XML : Bad XML Block

2010-04-25 Thread fjfdeztoro
Hey, i've found the solution, and the problem was Eclipse, the
solution is so so simple: in Project  Clean .. After that, i can
execute the program, anyway, thank you so much for you answer. Have a
nice day. :)

-- 
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] MediaPlayer skips even though PARTIAL_WAKE_LOCK is set

2010-04-25 Thread henrik
Hi.

I have a problem with MediaPlayer on my HTC Hero.  When I set it to
decrypt  play a local file in the background, it starts skipping
after a minute or two, even though I have aquired the
PARTIAL_WAKE_LOCK.  This only happens when the phone is running on
battery:  I'm unable to reproduce this with the USB cable plugged in.
In addition, this only happens when I leave the phone to play.  If I'm
using another app actively, the music never skips.

Does the CPU lower its frequency when running on battery?  The logs
look the same whether I'm playing on battery or not.  Also, if I

Best regards,
Henrik

-- 
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: Sending especial caracters (pause = ,) when calling with ACTION_CALL

2010-04-25 Thread Lee
Encoding # works fine. An encoded comma or semi-colon doesn't display
and stops further parsing of the number at that point, as far as the
phone app is concerned (Nexus here).
You can manually add them with the phone app via the menu options but
that doesn't help me much when the purpose is auto-dialling.

Any other workarounds or does this need reporting ?

Lee

On Apr 13, 2:38 pm, Mark Murphy mmur...@commonsware.com wrote:
 Gustavo wrote:
  I'm trying to place a call with Intent.ACTION_CALLand a tel uri
  including pauses and dtmf codes to be sent when the call is
  established (i.e. tel:+17,,555).

  Android strips all the special characters and place the call to the
  rest of the uri (i.e. tel:+17555)

  Any workaround?

  I'm testing it with HTC Hero (1.5)

 Commas are not valid URL characters and need to be escaped. Either use a
 URLEncoder or just convert each of them to %2C.

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

 Android Training in US: 14-18 June 2010:http://bignerdranch.com

-- 
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: the problem about click item in listview

2010-04-25 Thread Paweł Zięba
Try this:

mList.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView? parent, View v, int position,
long id) {
Toast.makeText(MainView.this, Id:  + id + , pos:  + 
position,
Toast.LENGTH_SHORT).show();
}
});

the same with setOnItemLongClickListener



On 25 Kwi, 06:49, Reiny Song reiny.s...@gmail.com wrote:
 I should provide more detail about what I did,

 my listview contains the MyAdapter( extends simpleAdapter )

 I tried something (the followings are), but nothing helped me.

 1. I set the listview setClickable,
 setFocusableInTouchMode, setLongClickable  = true

 2. set the convertView in getView at MyAdapter

     setClickable, setFocusable ,setFocusableInTouchMode and setLongClickable
 = true

 But, when I click the item in listview, the item is still not selected.
 (but... the item can be selected by scroll wheel...)

 2010/4/25 Reiny reiny.s...@gmail.com

  Dear all,

  I have a problem about the the listview.

  My activity runs in simulator, and I use mouse to control it.

  When I select the item in listview by turning scroll wheel, the
  background of item becomes orange.

  But, when I click the item in listview, the item does not response
  to my action.

  anyone knows the reason? thank you~

 --
 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 
 athttp://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] Always use the best Location Provider?

2010-04-25 Thread michael
Hello folks,

I am developing a Service that uses location information. I want it to
always use the best enabled LocationProvider according to a given
Criteria object. For this I initially use the following method:

LocationManager.getBestProvider(Criteria criteria, boolean
enabledOnly)

with enabledOnly set to true, and I then register my
LocationListener with the result.

My question is the following: how do I know when new providers become
available in order to re-invoke getBestProvider()? I have come up with
two solutions, neither of which seem satisfactory:

1) Register a listener for all available providers, whether or not
they are enabled, and override the onProviderDisabled,
onProviderEnabled and onStatusChanged methods. But then the listener
also gets unnecessary calls to onLocationChanged which I don't want to
happen due to performance/battery constraints.

2) Run a background thread which periodically invokes
LocationManager.getBestProvider and checks if there are any changes.
Again this seems like an unnecessary overhead.

Is there a better approach that I am overlooking? Any suggestions
would be much appreciated.

Thanks,
Michael.

-- 
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: the problem about click item in listview

2010-04-25 Thread Reiny Song
hello,

I try it, but there is no any response in listview.

When I clicked the item in listview by mouse,

the OnTouchListener, OnItemSelectedListener and OnTouchListener  of the
listview do not response to me.

But when I selected the item in listview by scroll wheel,

the OnItemSelectedListener showed the item was selected.

It confuses me a lots@@

2010/4/25 murali raju manutd...@gmail.com

 did u try onItemClickListener

 On Sun, Apr 25, 2010 at 10:19 AM, Reiny Song reiny.s...@gmail.com wrote:


 I should provide more detail about what I did,

 my listview contains the MyAdapter( extends simpleAdapter )

 I tried something (the followings are), but nothing helped me.

 1. I set the listview setClickable,
 setFocusableInTouchMode, setLongClickable  = true

 2. set the convertView in getView at MyAdapter

 setClickable, setFocusable ,setFocusableInTouchMode and
 setLongClickable = true

 But, when I click the item in listview, the item is still not selected.
 (but... the item can be selected by scroll wheel...)


 2010/4/25 Reiny reiny.s...@gmail.com

 Dear all,

 I have a problem about the the listview.

 My activity runs in simulator, and I use mouse to control it.

 When I select the item in listview by turning scroll wheel, the
 background of item becomes orange.

 But, when I click the item in listview, the item does not response
 to my action.

 anyone knows the reason? thank you~


  --
 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Re: the problem about click item in listview

2010-04-25 Thread Reiny Song
sorry, I reply again, because of something lose.

hello,

I try it, but there is no any response in listview.

When I clicked the item in listview by mouse,

the OnTouchListener, OnItemSelectedListener,OnItemClickListener and
OnTouchListener  of the listview do not response to me.

But when I selected the item in listview by scroll wheel,

the OnItemSelectedListener showed the item was selected.

It confuses me a lots@@

2010/4/25 Reiny Song reiny.s...@gmail.com



 2010/4/25 murali raju manutd...@gmail.com

 did u try onItemClickListener

 On Sun, Apr 25, 2010 at 10:19 AM, Reiny Song reiny.s...@gmail.comwrote:


 I should provide more detail about what I did,

 my listview contains the MyAdapter( extends simpleAdapter )

 I tried something (the followings are), but nothing helped me.

 1. I set the listview setClickable,
 setFocusableInTouchMode, setLongClickable  = true

 2. set the convertView in getView at MyAdapter

 setClickable, setFocusable ,setFocusableInTouchMode and
 setLongClickable = true

 But, when I click the item in listview, the item is still not
 selected.
 (but... the item can be selected by scroll wheel...)


 2010/4/25 Reiny reiny.s...@gmail.com

 Dear all,

 I have a problem about the the listview.

 My activity runs in simulator, and I use mouse to control it.

 When I select the item in listview by turning scroll wheel, the
 background of item becomes orange.

 But, when I click the item in listview, the item does not response
 to my action.

 anyone knows the reason? thank you~


  --
 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Always use the best Location Provider?

2010-04-25 Thread Mark Murphy
michael wrote:
 I am developing a Service that uses location information. I want it to
 always use the best enabled LocationProvider according to a given
 Criteria object. For this I initially use the following method:
 
 LocationManager.getBestProvider(Criteria criteria, boolean
 enabledOnly)
 
 with enabledOnly set to true, and I then register my
 LocationListener with the result.
 
 My question is the following: how do I know when new providers become
 available in order to re-invoke getBestProvider()? I have come up with
 two solutions, neither of which seem satisfactory:
 
 1) Register a listener for all available providers, whether or not
 they are enabled, and override the onProviderDisabled,
 onProviderEnabled and onStatusChanged methods. But then the listener
 also gets unnecessary calls to onLocationChanged which I don't want to
 happen due to performance/battery constraints.
 
 2) Run a background thread which periodically invokes
 LocationManager.getBestProvider and checks if there are any changes.
 Again this seems like an unnecessary overhead.
 
 Is there a better approach that I am overlooking? Any suggestions
 would be much appreciated.

3) Don't worry about the problem. The only reason that the provider
indicated by your Criteria will change is if the user enables or
disables a provider in the Settings application, which I doubt happens
on the fly very frequently.

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

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.5 Available!

-- 
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: the problem about click item in listview

2010-04-25 Thread Paweł Zięba
Try methods from AdapterView instead of View:

final AdapterView.OnItemClickListenergetOnItemClickListener()
final AdapterView.OnItemLongClickListener
getOnItemLongClickListener()
final AdapterView.OnItemSelectedListener getOnItemSelectedListener()



On 25 Kwi, 13:08, Reiny Song reiny.s...@gmail.com wrote:
 hello,

 I try it, but there is no any response in listview.

 When I clicked the item in listview by mouse,

 the OnTouchListener, OnItemSelectedListener and OnTouchListener  of the
 listview do not response to me.

 But when I selected the item in listview by scroll wheel,

 the OnItemSelectedListener showed the item was selected.

 It confuses me a lots@@

 2010/4/25 murali raju manutd...@gmail.com





  did u try onItemClickListener

  On Sun, Apr 25, 2010 at 10:19 AM, Reiny Song reiny.s...@gmail.com wrote:

  I should provide more detail about what I did,

  my listview contains the MyAdapter( extends simpleAdapter )

  I tried something (the followings are), but nothing helped me.

  1. I set the listview setClickable,
  setFocusableInTouchMode, setLongClickable  = true

  2. set the convertView in getView at MyAdapter

      setClickable, setFocusable ,setFocusableInTouchMode and
  setLongClickable = true

  But, when I click the item in listview, the item is still not selected.
  (but... the item can be selected by scroll wheel...)

  2010/4/25 Reiny reiny.s...@gmail.com

  Dear all,

  I have a problem about the the listview.

  My activity runs in simulator, and I use mouse to control it.

  When I select the item in listview by turning scroll wheel, the
  background of item becomes orange.

  But, when I click the item in listview, the item does not response
  to my action.

  anyone knows the reason? thank you~

   --
  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.comandroid-developers%2Bunsubs
   cr...@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.comandroid-developers%2Bunsubs 
  cr...@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 
 athttp://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: EditText resize problem

2010-04-25 Thread André
Ok, thanks.
Do you know how to disable it only in landscape mode?

André


On Apr 24, 9:17 pm, Kumar Bibek coomar@gmail.com wrote:
 This is the default behaviour if you have an on screen keyboard while
 in landscape mode. Try disabling the on-screen keyboard in landscape
 mode.

 Thanks and Regards,
 Kumar Bibek

 On Apr 24, 9:22 pm, André pha...@hotmail.com wrote:





  Hello,

  I have an Edittext view that works fine if the phone is in portrait
  position with and without the onscreen softkeyboard. But if it's
  flipped to landscape it works fine when the softkeyboard isn't there.
  But when it's there the Edittext view suddenly changes so that all the
  text in the Edittext view is on one line.

  Is there some settings I can do to fix this or is it just a bug for
  me?

  André

  --
  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 
  athttp://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 
 athttp://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] Re: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread Teo
Mine is Tag-ToDo-List :)


On Sun, Apr 25, 2010 at 12:39 PM, Lim Sim lim@gmail.com wrote:

 Titanium Backup is cool.


 On 25 April 2010 10:32, Joël Bourquard joel.bourqu...@gmail.com wrote:

 I got it for Titanium Backup (a tool for root users):

 http://www.cyrket.com/p/android/com.keramidas.TitaniumBackup/

 Had around 10k downloads at the time. Now just got past 50,000 and a
 nice rating ;-)

 Switzerland - and no Nexus received here yet.

 Cheers,

 Joël


 On Apr 23, 1:15 pm, fhucho fhu...@gmail.com wrote:
  Out of curiosity, what is the app you guys are getting Nexus / Droid
  for?
 
  On Apr 23, 11:05 am, Lim Sim lim@gmail.com wrote:
 
 
 
   haha. maybe they are upgrading the phones in transit?
 
   On Apr 23, 2010 10:00 AM, fhucho fhu...@gmail.com wrote:
 
   @Lim Sim
   LOL, they're not installing Froyo on it :) They said about a month ago
   that all the phones have been sent. If they wanted to install Froyo on
   it they would do it over the air.
 
   On Apr 23, 7:07 am, dgoemans dgoem...@gmail.com wrote:
 
Dude,
1. What do you mean your instru...
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Lim Sim
 t: +44 790 4181648
 f: http://www.flickr.com/photos/limsim

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




-- 
Teo
www.teodorfilimon.com
Romania, Europe (GMT +2)

-- 
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: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread Arnon
Let's hope this week is THE week...

Mine is Number Saver



On Apr 25, 3:07 pm, Teo teomina...@gmail.com wrote:
 Mine is Tag-ToDo-List :)





 On Sun, Apr 25, 2010 at 12:39 PM, Lim Sim lim@gmail.com wrote:
  Titanium Backup is cool.

  On 25 April 2010 10:32, Joël Bourquard joel.bourqu...@gmail.com wrote:

  I got it for Titanium Backup (a tool for root users):

 http://www.cyrket.com/p/android/com.keramidas.TitaniumBackup/

  Had around 10k downloads at the time. Now just got past 50,000 and a
  nice rating ;-)

  Switzerland - and no Nexus received here yet.

  Cheers,

  Joël

  On Apr 23, 1:15 pm, fhucho fhu...@gmail.com wrote:
   Out of curiosity, what is the app you guys are getting Nexus / Droid
   for?

   On Apr 23, 11:05 am, Lim Sim lim@gmail.com wrote:

haha. maybe they are upgrading the phones in transit?

On Apr 23, 2010 10:00 AM, fhucho fhu...@gmail.com wrote:

@Lim Sim
LOL, they're not installing Froyo on it :) They said about a month ago
that all the phones have been sent. If they wanted to install Froyo on
it they would do it over the air.

On Apr 23, 7:07 am, dgoemans dgoem...@gmail.com wrote:

 Dude,
 1. What do you mean your instru...

--
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.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
For more options, visit this group athttp://
  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.comandroid-developers%2Bunsubs
cr...@googlegroups.com
   For more options, visit this group athttp://
  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.comandroid-developers%2Bunsubs
   cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
  Lim Sim
  t: +44 790 4181648
  f:http://www.flickr.com/photos/limsim

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

 --
 Teowww.teodorfilimon.com
 Romania, Europe (GMT +2)

 --
 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 
 athttp://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] Re: the problem about click item in listview

2010-04-25 Thread Reiny Song
thank you~

But I do not know how to try your recommend.

the sample code are following:

ListView   layout_list = (ListView)inflate.inflate(R.layout.main_list,null);
MyAdapter adapter  = new MyAdapter(.)
layout_list.setAdapter(listAdapter);

I can not get the AdapterView from my listview,

could you please give me some direction.



2010/4/25 Paweł Zięba pawzi...@gmail.com

 Try methods from AdapterView instead of View:

 final AdapterView.OnItemClickListenergetOnItemClickListener()
 final AdapterView.OnItemLongClickListener
 getOnItemLongClickListener()
 final AdapterView.OnItemSelectedListener
 getOnItemSelectedListener()



 On 25 Kwi, 13:08, Reiny Song reiny.s...@gmail.com wrote:
  hello,
 
  I try it, but there is no any response in listview.
 
  When I clicked the item in listview by mouse,
 
  the OnTouchListener, OnItemSelectedListener and OnTouchListener  of the
  listview do not response to me.
 
  But when I selected the item in listview by scroll wheel,
 
  the OnItemSelectedListener showed the item was selected.
 
  It confuses me a lots@@
 
  2010/4/25 murali raju manutd...@gmail.com
 
 
 
 
 
   did u try onItemClickListener
 
   On Sun, Apr 25, 2010 at 10:19 AM, Reiny Song reiny.s...@gmail.com
 wrote:
 
   I should provide more detail about what I did,
 
   my listview contains the MyAdapter( extends simpleAdapter )
 
   I tried something (the followings are), but nothing helped me.
 
   1. I set the listview setClickable,
   setFocusableInTouchMode, setLongClickable  = true
 
   2. set the convertView in getView at MyAdapter
 
   setClickable, setFocusable ,setFocusableInTouchMode and
   setLongClickable = true
 
   But, when I click the item in listview, the item is still not
 selected.
   (but... the item can be selected by scroll wheel...)
 
   2010/4/25 Reiny reiny.s...@gmail.com
 
   Dear all,
 
   I have a problem about the the listview.
 
   My activity runs in simulator, and I use mouse to control it.
 
   When I select the item in listview by turning scroll wheel, the
   background of item becomes orange.
 
   But, when I click the item in listview, the item does not response
   to my action.
 
   anyone knows the reason? thank you~
 
--
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@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: the problem about click item in listview

2010-04-25 Thread Paweł Zięba
ListView is subclass of AdapterView.

In your case try this code, paste it into onCreate method

layout_list.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView? parent, View v, int
position, long id) {
Toast.makeText(MainView.this, Id:  + id + , pos: 
+ position, Toast.LENGTH_SHORT).show();
}
});

layout_list.setOnItemLongClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView? parent, View v, int
position, long id) {
Toast.makeText(MainView.this, Id:  + id + , pos: 
+ position, Toast.LENGTH_SHORT).show();
}
});

where MainView is your activity



On 25 Kwi, 13:49, Reiny Song reiny.s...@gmail.com wrote:
 thank you~

 But I do not know how to try your recommend.

 the sample code are following:

 ListView   layout_list = (ListView)inflate.inflate(R.layout.main_list,null);
 MyAdapter adapter  = new MyAdapter(.)
 layout_list.setAdapter(listAdapter);

 I can not get the AdapterView from my listview,

 could you please give me some direction.

 2010/4/25 Paweł Zięba pawzi...@gmail.com





  Try methods from AdapterView instead of View:

  final AdapterView.OnItemClickListener    getOnItemClickListener()
  final AdapterView.OnItemLongClickListener
  getOnItemLongClickListener()
  final AdapterView.OnItemSelectedListener
  getOnItemSelectedListener()

  On 25 Kwi, 13:08, Reiny Song reiny.s...@gmail.com wrote:
   hello,

   I try it, but there is no any response in listview.

   When I clicked the item in listview by mouse,

   the OnTouchListener, OnItemSelectedListener and OnTouchListener  of the
   listview do not response to me.

   But when I selected the item in listview by scroll wheel,

   the OnItemSelectedListener showed the item was selected.

   It confuses me a lots@@

   2010/4/25 murali raju manutd...@gmail.com

did u try onItemClickListener

On Sun, Apr 25, 2010 at 10:19 AM, Reiny Song reiny.s...@gmail.com
  wrote:

I should provide more detail about what I did,

my listview contains the MyAdapter( extends simpleAdapter )

I tried something (the followings are), but nothing helped me.

1. I set the listview setClickable,
setFocusableInTouchMode, setLongClickable  = true

2. set the convertView in getView at MyAdapter

    setClickable, setFocusable ,setFocusableInTouchMode and
setLongClickable = true

But, when I click the item in listview, the item is still not
  selected.
(but... the item can be selected by scroll wheel...)

2010/4/25 Reiny reiny.s...@gmail.com

Dear all,

I have a problem about the the listview.

My activity runs in simulator, and I use mouse to control it.

When I select the item in listview by turning scroll wheel, the
background of item becomes orange.

But, when I click the item in listview, the item does not response
to my action.

anyone knows the reason? thank you~

 --
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.comandroid-developers%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
  cr...@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.comandroid-developers%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
  cr...@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.comandroid-developers%2Bunsubs
cr...@googlegroups.com
   For more options, visit this group athttp://
  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.comandroid-developers%2Bunsubs 
  cr...@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 

[android-developers] Re: UnknownHostException

2010-04-25 Thread ls02


On Apr 24, 3:15 am, Bob Kerns r...@acm.org wrote:
 Things to look at:

 1) What DNS servers are used by the phones, vs the PC's you're
 comparing with?

The same DNS server is used by both phones and PC/Macs as they are all
on the same corporate WiFi network.


 2) Do all the DNS servers on the list work equally well?


Again, all clients (PCs/Macs/iTabs/various smarphones and other WiFi
devices) use the same WiFi network.

 3) Is the wifi connection flaky? This will often show up as DNS
 failures, since DNS lookups are typically the first bit of network
 activity an application does.


I cannot speak for that. I have not heard about complains that people
cannot access any network resources over WiFi.

 4) Are the phones sometimes disconnecting from the WiFi network
 entirely, and going over the phone network instead? This would
 normally work OK, except be slower, but a DNS lookup in the middle of
 a switchover might fail.

I don't thow this. We use regular HttpUrlConnection class for all
network calls on Android. I don't know if there are cases when the
call goes over 3G network.

One thinbg I wan to stress that killing and then restarting the app
ussually clears this state and network calls start working again.


 On Apr 23, 8:50 am, ls02 agal...@audible.com wrote:





  I am not using emulator. I am using real Android phones and many types
  of them. The problem happens both in debug mode and in real mode with
  phone not connected to computer.

  On Apr 23, 11:45 am, Kumar Bibek coomar@gmail.com wrote:

   This is an intermittent problem. Restarting the emulator would
   normally solve this. My best guess would be your abd server is not
   functioning properly.

   Thanks and Regards,
   Kumar Bibek

   On Apr 23, 7:42 pm, Sebastian sebastia...@gmail.com wrote:

I have the same problem. Im running an app in the emulator or on my G1
device and sometimes there is an UnknowHostException thrown. But if i
check if the host is available (for example over ping) then there is
no problem.

The app is also working correctly, if I close the emular and/or
eclipse an restart the app. Then i works well again.

On 23 Apr., 15:08, ls02 agal...@audible.com wrote:

 The app is running on different Android devices and all of them
 exhibit this issue. It has nothing to do with network as I said I can
 successfully excute the same network call on the same network from PC
 or Mac.

 On Apr 23, 8:15 am, Kumar Bibek coomar@gmail.com wrote:

  Well, if it happens sometimes, then your network has a problem. When
  it happens, just to make sure that other apps also are affected by
  this, just open some page on the browser. You will be then sure that
  this is not affecting your app only, but the emulator or the network
  has a problem.

  Thanks and Regards,
  Kumar Bibek

  On Apr 23, 5:07 pm, ls02 agal...@audible.com wrote:

   From time to time I get java.net.UnknownHostException when calling
   HttpURLConnection.connect. Obviously the server does exist and I 
   can
   successfully execute the same URL on my PC browser. The problem 
   does
   not happen always, only sometimes. But if it does happen ussually 
   I
   need to restart the app so that I can connect to server again. I
   specify host name not IP address, I cannot use IP address.

   --
   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 
   athttp://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 
  athttp://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 
 athttp://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 

Re: [android-developers] Re: javax.xml.bind.annotation.XmlAccessType and Android

2010-04-25 Thread Android Development
http://code.google.com/p/android/issues/detail?id=314


On Fri, Apr 2, 2010 at 10:46 AM, Nik nikhilpatil2...@gmail.com wrote:

 I'm getting the same error. In a different context though. I'm trying
 to include java classes created by JAXB's XJC (from XSD to Java) in my
 project. But the annotations generated by the XJC tool are not
 supported. Ultimately I want to marshal these classes into XML. Any
 suggestions? Workarounds? Or am I missing something?

 On Mar 12, 11:32 pm, mlevin marshall.le...@gmail.com wrote:
  Hi,
 
  I'm attempting to build an Android app that uses Amazon's EC2 API.
  They provide a JAR file that I can include into my app.
 
  The problem is that when I try to use some of their sample code, I get
  an error in Eclipse thatjavax.xml.bind.annotation.XmlAccessType is
  needed internally by some class. And when I attempt to add the JARs
  that contain that class to my project, I get the warning that I can't
  add these system classes to an Android project.
 
  So I take it that Android doesn't support some of this stuff. Any
  suggestions?
 
  I know that this can be done because there's an app on the market
  called Decaf that does use Amazon's EC2 API successfully.
 
  What do I need to add to my project to get this to work?
 
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe, reply using remove me as the subject.


-- 
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: MediaPlayer skips even though PARTIAL_WAKE_LOCK is set

2010-04-25 Thread henrik
On 25 apr, 12:08, henrik henrik.aron...@gmail.com wrote:
 I have a problem with MediaPlayer on my HTC Hero.  When I set it to
 decrypt  play a local file in the background, it starts skipping
 after a minute or two, even though I have aquired the
 PARTIAL_WAKE_LOCK.  This only happens when the phone is running on
 battery:  I'm unable to reproduce this with the USB cable plugged in.
 In addition, this only happens when I leave the phone to play.  If I'm
 using another app actively, the music never skips.

The weird thing is, the problem goes away if I use
SCREEN_DIM_WAKE_LOCK instead.  But I really don't want to drain my
users' batteries needlessly.

Henrik

-- 
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: graphically represent multiple list selections or dynamically change a list item view

2010-04-25 Thread applesquash
Thanks Kumar. I mentioned in my first post that was too long to read
that I tried that first. All I got was a darker view or no change at
all. I read in one of the documents under the resources tab that it
had something to do with how list drawables are cached. But I didn't
feel like fiddling with all I'd that. It may be the best way, but I'm
ok with the visibility hack as long as it doesn't damage performance.
What I really want is to use a native system selection system. But I'm
beginning to think it doesn't exist beyond the trackball focus bar.

On Apr 24, 10:54 pm, Kumar Bibek coomar@gmail.com wrote:
 Instead of using different views, you can use the same view and change
 the background or something when that item is clicked.

 Thanks and Regards,
 Kumar Bibek

 On Apr 25, 4:04 am, applesquash applesqu...@gmail.com wrote:

  OK, I figured it out but I don't like the solution.
  It works and it's pretty enough, but I'd rather use some of the built
  in Android magic I love so much.
  I created 2 image views, one with an on graphic and one with an off
  graphic.
  When an item gets clicked, I swap out the visibility of the 2 items.
  One gets visible, the other gets gone.
  And I maintain an array list of selected _ids for reference.

  So I hope this helps anybody out there looking for a solution to this.
  But if anybody can recommend a better way, I'd love to hear 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 
  athttp://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 
 athttp://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] Re: MediaPlayer skips even though PARTIAL_WAKE_LOCK is set

2010-04-25 Thread Mark Murphy
henrik wrote:
 On 25 apr, 12:08, henrik henrik.aron...@gmail.com wrote:
 I have a problem with MediaPlayer on my HTC Hero.  When I set it to
 decrypt  play a local file in the background, it starts skipping
 after a minute or two, even though I have aquired the
 PARTIAL_WAKE_LOCK.  This only happens when the phone is running on
 battery:  I'm unable to reproduce this with the USB cable plugged in.
 In addition, this only happens when I leave the phone to play.  If I'm
 using another app actively, the music never skips.
 
 The weird thing is, the problem goes away if I use
 SCREEN_DIM_WAKE_LOCK instead.  But I really don't want to drain my
 users' batteries needlessly.

With respect to Does the CPU lower its frequency when running on
battery?, that is up to the device manufacturer and probably cannot be
stated for Android as a whole. It is eminently possible that on your
edition of the Hero the CPU drops when the screen is not on.

If you have one media file (decrypted) playing while you are decrypting
another, consider reducing the the priority of the decryption thread:

Thread.currentThread().setPriority(Thread.MIN_PRIORITY+1);

And perhaps, if possible, toss a yield() in periodically during the
decryption itself, if you aren't just passing this over to some API call:

Thread.yield();

That way, if the skip is caused by slower CPU speeds, you'll be doing
more to let MediaPlayer have first dibs on what CPU there is.

If you can reproduce the skipping problem even without your decryption
thread running -- if it skips on ordinary files -- see if the Music app
also skips. If so, then there's something funky about your device or
some other app that's running on it. If the Music app is fine, you might
putter around its implementation in the open source code to see if it
gives you any ideas.

Note that your original post got truncated. It ends with Also, if I.

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

Android Development Wiki: http://wiki.andmob.org

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


[android-developers] Re: Alarms/Wake Locks/Sound notification question

2010-04-25 Thread code_android_festival_way
I just wanted to add something now.

After reading through the mailing list I have tried to get the whole
thing working with the PendingIntent sending a broadcast every 30
seconds which gets caught by a broadcast receiver. This broadcast
receiver starts the notifications (vibrate and sound) in its onReceive
method. (without starting an extra service) BUT I got the whole
problems again. As a maximum I am getting the vibrate notification.
Even when I acquire a partial wake lock at the beginning of
onReceive and release it at the end I am getting these errors. As
soon as I plug in the USB cable or light up the screen everything is
going back to normal.

To be honest I don't really know how to handle this correctly. What am
I doing wrong? I'm getting crazy about these wake lock errors. :(

On 25 Apr., 11:46, code_android_festival_way
festival.s...@googlemail.com wrote:
 Hello.

 I got a problem with my sound notifications not being sent while the
 screen is off and the device is unplugged from the charger.

 Here is the workflow:

 - Alarm Service gets fired every 30 seconds (well the timer can be
 adjusted)
 - The alarm starts a service which fires a sound and vibrate
 notification
 - The service holds a PARTIAL_WAKE_LOCK acquired in onCreate and
 released in onDestroy

 Here is the result of the whole thing:

 - Both notifications get fired as long as the screen is on
 - Both notifications get fired as long as the device is plugged into
 the charger (via USB) even when the screen is off (done by pressing
 the power button)
 - BUT only the vibrate notification gets fired when the screen is off
 (user pressed the power button once)
 - When pressing the power button once again and the screen is on again
 the notifications are back to normal behaviour and both get fired

 Could someone tell me why the sound notification ignores the wake lock
 and sits down in silence? From the logs I can say that the service
 runs normally and gets from onCreate to onDestroy pretty fine.

 I have tested this behaviour on a default Nexus One.

 Could someone help me or got a solution for this problem?

 Thank you very much.

 --
 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 
 athttp://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] Re: Alarms/Wake Locks/Sound notification question

2010-04-25 Thread Mark Murphy
code_android_festival_way wrote:
 Even when I acquire a partial wake lock at the beginning of
 onReceive and release it at the end I am getting these errors.

You are already inside a partial wake lock in the onReceive() method of
a BroadcastReceiver invoked via AlarmManager.

 - Alarm Service gets fired every 30 seconds (well the timer can be
 adjusted)

That's really too frequent, particularly for an IntentService. As, as
you note, you do not need one for registering a Notification.

 Could someone tell me why the sound notification ignores the wake lock
 and sits down in silence?

Why do you have two Notifications? Why not have one Notification that
vibrates and plays the sound?

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

Android Consulting: http://commonsware.com/consulting

-- 
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: Alarms/Wake Locks/Sound notification question

2010-04-25 Thread code_android_festival_way
Thank you for your help Mark.

 You are already inside a partial wake lock in the onReceive() method of
 a BroadcastReceiver invoked via AlarmManager.

Yeah I know that I just wanted to make sure that I really have the
wake lock. But as you mentioned it doesn't make any difference.

  - Alarm Service gets fired every 30 seconds (well the timer can be
  adjusted)

 That's really too frequent, particularly for an IntentService. As, as
 you note, you do not need one for registering a Notification.

What do you mean exactly by that? Well I know that 30 seconds or even
lower is very frequent but I would let the user decide how often he
would like to be notified.

 Why do you have two Notifications? Why not have one Notification that
 vibrates and plays the sound?

Because I want to be able to cancel every kind of notification (sound,
vibrate, led) on its own. Everything gets its own ID. I am calling the
notification for sound before the vibrate notification which let me
assume that the sound notification is not possible even during a
partial wake lock. Even when I disable the vibrate notification
completly and only start the the one sound notification the speakers
sit down in silence and there is no sound notification at all. When
plugging in the USB cable or switching on the screen the sound
notification gets played pretty fine.

On 25 Apr., 16:38, Mark Murphy mmur...@commonsware.com wrote:
 code_android_festival_way wrote:
  Even when I acquire a partial wake lock at the beginning of
  onReceive and release it at the end I am getting these errors.

 You are already inside a partial wake lock in the onReceive() method of
 a BroadcastReceiver invoked via AlarmManager.

  - Alarm Service gets fired every 30 seconds (well the timer can be
  adjusted)

 That's really too frequent, particularly for an IntentService. As, as
 you note, you do not need one for registering a Notification.

  Could someone tell me why the sound notification ignores the wake lock
  and sits down in silence?

 Why do you have two Notifications? Why not have one Notification that
 vibrates and plays the sound?

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

 Android Consulting:http://commonsware.com/consulting

 --
 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 
 athttp://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] Is it possible to publish two versions for the same app simultaneously?

2010-04-25 Thread Juan David Trujillo C.
HI all!

I am working on an app that uses the rating bar (stars) to allow the
user to grade information.  The SDK version is 3 (OS 1.5 - uses-sdk
android:minSdkVersion=3, but the rating stars are shown incorrectly
for devices with OS 2.1.  I read some posts in the forum that suggest
to upgrade the SDK version to 4 (OS 1.6 and higher), however this will
excluse 1.5 users to download my application, and I do not want this
to happen, because there are still a lot of 1.5 devices.

This makes me wonder: Is it possible to publish two versions for the
same app simultaneously?  For instance, publishing one APK for version
1.6 or higher version and another APK for 1.5 version simulataneously
in the Market, both intended for the same application.

Is there a workaround for these kind of situations?

Thank you for your help!

Best regards,

Juan.

-- 
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: Alarms/Wake Locks/Sound notification question

2010-04-25 Thread Mark Murphy
code_android_festival_way wrote:
 What do you mean exactly by that? Well I know that 30 seconds or even
 lower is very frequent but I would let the user decide how often he
 would like to be notified.

I mean you may chew up a fair bit of battery life constantly cycling
through processes, starting and stopping receiver and/or service
components every 30 seconds. I'd use the battery blame screen in
Settings to test and see how bad this is in reality.

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

_Beginning Android 2_ from Apress Now Available!

-- 
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 it possible to publish two versions for the same app simultaneously?

2010-04-25 Thread Kumar Bibek
Yes you can. But both the apps should have different packages, else
you would not be allowed to upload the second one.

Thanks and Regards,
Kumar Bibek

On Apr 25, 8:13 pm, Juan David Trujillo C. jdavidandr...@gmail.com
wrote:
 HI all!

 I am working on an app that uses the rating bar (stars) to allow the
 user to grade information.  The SDK version is 3 (OS 1.5 - uses-sdk
 android:minSdkVersion=3, but the rating stars are shown incorrectly
 for devices with OS 2.1.  I read some posts in the forum that suggest
 to upgrade the SDK version to 4 (OS 1.6 and higher), however this will
 excluse 1.5 users to download my application, and I do not want this
 to happen, because there are still a lot of 1.5 devices.

 This makes me wonder: Is it possible to publish two versions for the
 same app simultaneously?  For instance, publishing one APK for version
 1.6 or higher version and another APK for 1.5 version simulataneously
 in the Market, both intended for the same application.

 Is there a workaround for these kind of situations?

 Thank you for your help!

 Best regards,

 Juan.

 --
 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 
 athttp://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] Is this is limitation of Eclair [SDK 2.1] in Contact App?

2010-04-25 Thread AJ
Hi group,

I want to launch contact app from my application with the extra data I
am passing. I am able to do this.

But the problem is that I am not able to send more than 1 Address.
Only one address field appears.


I am doing in the following way:-


Intent i = new Intent(Intent.ACTION_INSERT,People.CONTENT_URI);
i.putExtra(ContactsContract.Intents.Insert.NAME, AJ);

// Address-1
i.putExtra(ContactsContract.Intents.Insert.POSTAL,
Bangalore-550075);
i.putExtra(ContactsContract.Intents.Insert.POSTAL_TYPE,
ContactsContract.CommonDataKinds.StructuredPostal.TYPE_WORK);

// Address-2
i.putExtra(ContactsContract.Intents.Insert.POSTAL,
Hyferabad-550076);
i.putExtra(ContactsContract.Intents.Insert.POSTAL_TYPE,
ContactsContract.CommonDataKinds.StructuredPostal.TYPE_HOME);

// Address-3
i.putExtra(ContactsContract.Intents.Insert.POSTAL, Pune-550077);
i.putExtra(ContactsContract.Intents.Insert.POSTAL_TYPE,
ContactsContract.CommonDataKinds.StructuredPostal.TYPE_OTHER);



Any suggestion/remarks are most welcome.


Thanks,
AJ

-- 
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 this is limitation of Eclair [SDK 2.1] in Contact App?

2010-04-25 Thread AJ
Hi group,

I want to launch contact app from my application with the extra data I
am passing. I am able to do this.

But the problem is that I am not able to send more than 1 Address.
Only one address field appears.


I am doing in the following way:-


Intent i = new Intent(Intent.ACTION_INSERT,People.CONTENT_URI);
i.putExtra(ContactsContract.Intents.Insert.NAME, AJ);

// Address-1
i.putExtra(ContactsContract.Intents.Insert.POSTAL,
Bangalore-550075);
i.putExtra(ContactsContract.Intents.Insert.POSTAL_TYPE,
ContactsContract.CommonDataKinds.StructuredPostal.TYPE_WORK);

// Address-2
i.putExtra(ContactsContract.Intents.Insert.POSTAL,
Hyferabad-550076);
i.putExtra(ContactsContract.Intents.Insert.POSTAL_TYPE,
ContactsContract.CommonDataKinds.StructuredPostal.TYPE_HOME);

// Address-3
i.putExtra(ContactsContract.Intents.Insert.POSTAL, Pune-550077);
i.putExtra(ContactsContract.Intents.Insert.POSTAL_TYPE,
ContactsContract.CommonDataKinds.StructuredPostal.TYPE_OTHER);



Any suggestion/remarks are most welcome.


Thanks,
AJ

-- 
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 disable ListView scrolling?

2010-04-25 Thread Moto
I'm really having a hard time with the amount of control one has over
a ListView.

I can't even get the getScrollX() or getScrollY() it always returns 0!

I can't seem to get enough information to create a nice smooth
scrolling using the scrollTo(..) scrollBy(..)

Help?

On Apr 24, 10:58 pm, Moto medicalsou...@gmail.com wrote:
 I thought maybe setFocusable(false) would help but it doesn't... :(

 On Apr 24, 5:08 pm, Moto medicalsou...@gmail.com wrote:



  I want to disable scrolling only of a ListView and keep it's items to
  still be click-able.

  The idea is to control the scrolling via other means and not user
  touch. i.e. up/down buttons, or random scrolling...

  Any help or pointers are appreciated!
  -Moto

  --
  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 
  athttp://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 
 athttp://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: Getting a Dev phone.

2010-04-25 Thread Bob Kerns
If you root your phone, you can still see the market. It's only if you
replace it with some random build that doesn't include the market that
you'd lose access to the market.

While it's ideal to match the customer's phones, the differences in a
rooted phone are so slight compared to the differences between all the
different models and OS versions, that I really wouldn't worry about
it. There's more value to a developer in having a rooted phone, in my
opinion, than in maintaining strict compatibility to this degree.

But if I had more than one Android phone, I'd only root one.

On Apr 22, 12:14 pm, Nathan nathan.d.mel...@gmail.com wrote:
 I don't think I want to root my G1 as I still want to be able to see
 the Market and have it behave like my customer's phones.

-- 
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: Will 900ms of calcs run faster in another thread?

2010-04-25 Thread Bob Kerns
It sounds to me like you're trying to do a Fourier Transform the hard
way?

You should look at the Fast Fourier Transform algorithm. I bet you're
doing WAY more multiplies than you need to be doing.

On Apr 22, 8:02 am, BobG bobgard...@aol.com wrote:
 Thanks for the replies folks. I saw the Real Time Analyzer in the
 market, and it runs like a scalded dog. I was trying to get the same
 sort of effect by feeding the same buffer full of samples thru a
 filter that steps up in freq every pass. I timed a bunch of floating
 point adds and multiplies in a loop, and I was getting about a million
 per sec (dev phone 2, 528mhz cpu?). (I see the Linpack app in the
 market gives the same result) This is many times faster than sw
 floating point on a 20mhz AVR, but I bet its way slower than hw fp.
 Does the fp multiply in java multiply 2 32 bit floats, or promote them
 to doubles like c does? If there is really a libc written in arm
 native code down in there somewhere, the dalvik interpreter could jump
 to the native code fp mult rather than interpret a java version.
 Anyone know how to get a map file or a listing file or something like
 that to see whats really getting called? Maybe thats why digital
 signal processing apps arent usually written in an interpreted
 language? (My very first program hits the performance wall).

 --
 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 
 athttp://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: Restlet librairies use in Android project

2010-04-25 Thread Streets Of Boston
Thank you Jerome,

In my project, I'm looking at some common code for the rest-client
(not the server; we'll be using JAX-RS) that helps implement cache-
control on a mobile device. The availability of the caching headers
already will help, but it is still tricky to interpret - and implement
correctly - all the Cache, If-modified, If-not-modified, etc. headers
to determine, for example, if the client can obtain a resource from
its local storage, just needs to to a HEAD request for a full-on GET
request.

But i will take a closer look at the links you provided. Thank you.
-- Anton

On Apr 25, 3:37 am, Jerome Louvel jerome.lou...@noelios.com wrote:
 Thanks for your feed-back!

 In version 2.0, we have added support for all caching headers in the
 Restlet API. See this page for the mapping 
 table:http://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/324-restlet/13...

 It is threrefore very easily to retrieve all cache related information
 for a remote resource and to send conditional requests as well. Are you
 looking for something different?

 We are also planning further caching support for future releases, mainly
 to plug with actual caching stores on the server or client side. See
 this RFE for details:http://restlet.tigris.org/issues/show_bug.cgi?id=25

 Best regards,
 Jerome Louvel
 --
 Restlet ~ Founder and Technical Lead ~http://www.restlet.org
 Noelios Technologies ~http://www.noelios.com

 Le 24/04/2010 19:46, Streets Of Boston a écrit :

  Hi Jerome,

  I'm using your restlet libaries as well on Android clients. So far, it
  has worked great :-)

  One thing i'd love to see implemented is a framework that helps in
  implementing caches. Not so much the implementation and handling of an
  actual cache, but some framework part of Restlet that handles all the
  Cache, E-Tag, If-modified, etc., headers. The only thing left for a
  client to do, that would use this Restlet framework, is to register
  callbacks (implementing an interface?) that can tell the Restlet about
  the cache-information/status of a given resource and that can allow
  the Restlet to request a resource to be saved to, read from or deleted
  from the cache.

 --
 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 
 athttp://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] Re: Progress bar is run after task completing

2010-04-25 Thread TreKing
On Sun, Apr 25, 2010 at 2:08 AM, pramod.deore deore.pramo...@gmail.comwrote:

 I had tried followinfg but throws exception.


To get the best response, you need to post what this exception is and the
full stack trace you're getting in the debugger. Otherwise how are people
supposed to figure out what your problem is?


 Please help me how to to do this?


In this case your problem is calling setContentView() inside of a thread.
You can't do this.
Once you've finished your file upload, you have to send a message back to
the main thread that it needs to call this function. Either by posting a
runnable on the UI thread or sending a message via the main thread's
handler.

-
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] Starting default calendar and contacts application

2010-04-25 Thread TreKing
On Fri, Apr 23, 2010 at 6:19 AM, Tejas jasani.te...@gmail.com wrote:

 The mail code works perfectly fine but somehow calendar and contact code
 which i have doesnt work good,


What does doesnt work good mean? It crashes? It opens the wrong thing? It
verbally insults you? What?


 can any one please provide the code.


Plenty of people here are happy to help, including myself, but please don't
ask people to provide the code to your problem. It is in your best
interest to understand what you are doing wrong and solve the problem on
your own so you actually learn something.

On Sun, Apr 25, 2010 at 2:23 AM, Anurag Singh anusingh...@gmail.com wrote:

 How you have open default mail client? I want to do same thing.


Start an activity with it's intent set to a standard email URI - Android
will find the best match of the apps that can handle that type of intent.

-
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: How to disable ListView scrolling?

2010-04-25 Thread Moto
Ok,
For those who are running into the same issue the fix is simple create
your own custom ListView component!  and capture the
dispatchTouchEvent() inside there you can easily figure out if you are
scrolling or not! :)

code:
@Override
public boolean dispatchTouchEvent(MotionEvent ev)
{
int action = ev.getAction();

if (!mbIsScrollEnabled) {
if (action == mLastAction) {
ev.setAction(MotionEvent.ACTION_CANCEL);
super.dispatchTouchEvent(ev);
return true;
}
mLastAction = action;
}

return super.dispatchTouchEvent(ev);
}

I'm still working on the smooth scrolling by giving it a list item
number and to smoothly scroll there... While I'm trying to figure it
out if anyone got a good idea to create that let me know!

-Moto!

On Apr 25, 12:37 pm, Moto medicalsou...@gmail.com wrote:
 I'm really having a hard time with the amount of control one has over
 a ListView.

 I can't even get the getScrollX() or getScrollY() it always returns 0!

 I can't seem to get enough information to create a nice smooth
 scrolling using the scrollTo(..) scrollBy(..)

 Help?

 On Apr 24, 10:58 pm, Moto medicalsou...@gmail.com wrote:



  I thought maybe setFocusable(false) would help but it doesn't... :(

  On Apr 24, 5:08 pm, Moto medicalsou...@gmail.com wrote:

   I want to disable scrolling only of a ListView and keep it's items to
   still be click-able.

   The idea is to control the scrolling via other means and not user
   touch. i.e. up/down buttons, or random scrolling...

   Any help or pointers are appreciated!
   -Moto

   --
   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 
   athttp://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 
  athttp://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 
 athttp://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: Will 900ms of calcs run faster in another thread?

2010-04-25 Thread BobG
I think a Fourier transform would give me equally spaced spectra. I'm
interested in a frequency response, where the output of each third
octave wide bandpass filter (lopass in series with hi pass one third
octave higher) is averaged and plotted in db below full scale. These
filters have equal energy per bandwidth rather than equal energy per
hertz. Do you know a clever way of converting the linear spectra from
an fft into a log plot? Using the filter bank approach, one can have
octave wide filters, half octave, or third octave. Can you recommend
an easy way of getting 10,20 or 30 spectra from an fft? I keep getting
these hints from the experts that java is one level above native arm
code, but none of the experts has given the magic rosetta stone link
to 'how to speed up your math by running them in native mode'. I'm
trying to take my licks as a beginner, and keep a tough outer hide. I
keep comng back for more humiliation and suggestions to Read The Fine
Manual. Wich I do religiously every day.

-- 
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 display Camera

2010-04-25 Thread Will Hester
Alright, thank you. But I am confused as to how I import this into
Eclipse. I downloaded the source, and tried to import the file, but
Eclipse said it couldn't find a project.

On Apr 21, 2:24 pm, Mark Murphy mmur...@commonsware.com wrote:
 WillHesterwrote:
  Anyone?

  On Apr 19, 3:17 pm, WillHesterwhes...@gmail.com wrote:
  So I made a class called CameraSurfaceView.java that has a constructor
  and all of the Camera methods, but what I'm confused about is how to
  instantiate and display the camera in my activity I called
  TypeWalker.java. For that, I have this:

  package com.schleudaastudios.typewalker;

  import android.app.Activity;
  import android.os.Bundle;

  public class TypeWalker extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          CameraSurfaceView cam = new CameraSurfaceView(this);
          cam.surfaceCreated(null);
      }

  }

  But when I run it, it crashes immediately. I have no idea how to make
  the camera display, any help?

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the
 stack trace associated with the crash, so you can figure out where you
 are going wrong. It is difficult, perhaps impossible, to provide you
 other advice based on this code snippet.

 If it helps, here is an example project that uses the Camera and a
 SurfaceView:

 http://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture/

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|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 
 athttp://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] Re: How to display Camera

2010-04-25 Thread Mark Murphy
Will Hester wrote:
 Alright, thank you. But I am confused as to how I import this into
 Eclipse. I downloaded the source, and tried to import the file, but
 Eclipse said it couldn't find a project.

I don't use Eclipse, so there are no Eclipse project files.

It's been a couple of months since I last taught my course, so I'm a bit
hazy on the details, but it works roughly like this:

Step #1: Create a new Android project

Step #2: On the first page of the wizard, choose the Open from existing
source radio button, then choose the directory where you downloaded the
code

Step #3: Accept all remaining defaults on the wizard, until the project
is created and is open in Eclipse

Step #4: Somewhere in your build path, you may find reference to an
Android JAR, but it will be unchecked. Check that, so Eclipse will
include it as part of the compile

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | 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: Progress bar is run after task completing

2010-04-25 Thread Anurag Singh
Try it, If you want to paas any specific message to UI
then use message object for the same.

like Message msg = handler.obtainMessage();e fucntion
// set any value
// get the same value in hadleMessag


Complete code is  here

ProgressBar bar;
Handler handler=new Handler() {
public void handleMessage(Message msg) {
bar.incrementProgressBy(5);
}
 };

public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
bar=(ProgressBar)findViewById(R.id.progress);

bar.setProgress(0);

Thread background=new Thread(new Runnable() {
public void run() {
try {
for (int i=0;i20  isRunning;i++) {
Thread.sleep(1000);
handler.sendMessage(handler.obtainMessage());
}
}
catch (Throwable t) {
// just end the background thread
}
}
}
}

- Anurag Singh


On Sun, Apr 25, 2010 at 12:38 PM, pramod.deore deore.pramo...@gmail.comwrote:


 Hello everybody again,

 Now my code runs in background anfd on foreground it shows progress
 bar.But now I want to show another screen after sendFileToServer
 method completes. I had tried followinfg but throws exception. Please
 help me how to to do this?

  public void onClick(View v)
{
if (v==yesButton)
{
 setContentView(R.layout.main2);

t = new Thread(){
   public void run()
   {
while (!threadDone)
   {
   sendFileToServer();

   }
   setContentView(R.layout.main3);
   }
};

t.start();

}
}

public void sendFileToServer()
{
for (int i=0;i5000;i++)
{

System.out.println (Now value of i is+i);
}
 threadDone = 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Best Regards,
Anurag Singh

-- 
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 create a nice menu?

2010-04-25 Thread Stanley Li
Dear all,

I am currently developing a game. However, when I come to the point where I
should make a nice game menu, I am stuck.

I want to have a menu when people enter a game. The menu should consist of 3
buttons, 1 title text, and 1 background image.

So what is the best way I can achieve this?

Should I just create a linearLayout with background, and inside the layout,
contain the title text and all the buttons?



Thanks in advance,
Stanley

P.S. the menu will be similar to the menu of PapiRiver or PapiJump.

-- 
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: Alarms/Wake Locks/Sound notification question

2010-04-25 Thread code_android_festival_way
Well you are right that this will drain the battery pretty heavily. At
the moment I am using the broadcast which gets fired every n seconds
and gets caught by the receiver which handles the notifications in its
onReceive method. But well the problem remains. I haven't found a
possibility to get the sound noitification working during the wake
lock.

If someone has got a solution for that problem I would love hearing
about it. :)

On 25 Apr., 17:17, Mark Murphy mmur...@commonsware.com wrote:
 code_android_festival_way wrote:
  What do you mean exactly by that? Well I know that 30 seconds or even
  lower is very frequent but I would let the user decide how often he
  would like to be notified.

 I mean you may chew up a fair bit of battery life constantly cycling
 through processes, starting and stopping receiver and/or service
 components every 30 seconds. I'd use the battery blame screen in
 Settings to test and see how bad this is in reality.

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

 _Beginning Android 2_ from Apress Now Available!

 --
 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 
 athttp://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: Having trouble with Handler with Bluetooth

2010-04-25 Thread spachner
Hi,

I had a look on the bluetooth example and think it is not correcty
implement either. I ask the community to correct me. The example is
putting each block of bytes read by a single call of read() into a
reperate line in the list view. It relys on that the sending string
can be read at once, which is not correct actually. If the read()
would break up the sending string the view would then add more than
one line for a single chat string. I guess this in done for simplicity
not to blow at the example. If it should be done correctly however one
could take a additional string builder which collects all the bytes
taken from consecutive read()s and search for the delimiter. I did not
check if the bluetooth example is putting something like \n at the
and of each string to be send. If not it should be added and the
receiver could search for the \n and when found put the string on
the list view, if not just wait for the next read() to come and append
the new bytes to the currently stored string in the string builder
until the \n shows up and so on.
This would be the same approach as I recommended by ^... $ in my
post before, assuming a new string is starting excactly after \n,
let say the pre and post fix is combined in a single \n.

Hope this helps

spachner

On 23 Apr., 22:43, gomezef gome...@gmail.com wrote:
 Like for example, in Google's bluetoothchat, they are doing the same
 thing that is the model I am following.  What is the difference?


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


[android-developers] Re: Will 900ms of calcs run faster in another thread?

2010-04-25 Thread sm1
BobG, these numbers seem a bit high to me.

Were they taken on an emulator or an ADP?

How many voltage samples per array are you using?

I usually use background threads for the calf's but usually the
drawing needs to be in the GUI/main thread.

)s) Serge

On Apr 21, 11:15 pm, BobG bobgard...@aol.com wrote:
 I have this audio analyzer app that fills a buffer with audiorecord,
 runs it thru a bunch of filters, and plots the filter out as a bunch
 of vertical bars. I timed the sampling, filtering and drawing with
 systemTimeMillis and it takes about 100ms,900ms and 50ms. I cant see
 how putting the calcs in another thread could speed it up any, but I'm
 just an old embedded c programmer. I guess linux is ticking every
 millisecond, and there must be a dozen linux tasks running, and I
 guess a task has a 'quantum' of ticks that it runs before linux
 preempts it (anyone know about these details?), but I just want it to
 run about 5 or 10 times faster. Appreciate any hints, tips, tricks,
 etc.

 --
 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 
 athttp://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] Game stutters when drawing outside screen

2010-04-25 Thread Peter
Hello,

I have a game built for 480x320 screen resolution. When playing the
game on a phone with a higher screen resolution (480 x 800 or 480 x
856) the game automatically stretches to fit the screen which works
great. Because of different screen dimensions there is a piece of the
screen on the right side (game is in landscape mode) that is black,
not used by the game. I want to fill this up with an image, so the
whole screen is filled. I only draw that image on screens bigger than
480x320. This all works fine, the image is displayed exactly the way I
want to. The only problem is that the game runs less smooth then it
used to run. There are small stutters noticeable. When I just draw a
rectangle instead of an image the same problem occurs.
Does anyone have an idea why this is happening? Any help would be
appreciated!

Thanks,
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


Re: [android-developers] Starting default calendar and contacts application

2010-04-25 Thread Anurag Singh
Is there any place where developer can easily find URI for Contact,
Calender, Mail etc.

- Anurag Singh


 On Sun, Apr 25, 2010 at 2:23 AM, Anurag Singh anusingh...@gmail.com
  wrote:

 How you have open default mail client? I want to do same thing.


 Start an activity with it's intent set to a standard email URI - Android
 will find the best match of the apps that can handle that type of intent.




-- 
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] Starting default calendar and contacts application

2010-04-25 Thread Mark Murphy
Anurag Singh wrote:
 Is there any place where developer can easily find URI for Contact,
 Calender, Mail etc.

Contacts are managed by a content provider -- Uri values for accessing
those providers can be found in the android.provider package.

Calendar is not part of the Android SDK.

No mail clients are part of the Android SDK.

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

Android 2.x Programming Books: http://commonsware.com/books

-- 
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] requestLocationUpdates and emulator

2010-04-25 Thread Federico Paolinelli
Hi to all, I am trying my applicaton with the emulator, and I am
experiencing the following problem: even if I registered a
locationlistener with minDistance = 0

mLManager.requestLocationUpdates(mLProvider, 1, 0, mLListener);

the mLListener callback is called only when I set a new location via
the emulator.
Now my question is: what will happen with a real phone? The listener
will be called every 10 seconds as I expect, or only when the location
is changed?

Does the send location I do with the emulator simulate just one update
I would receive from the gps? I know I could get the answers just by
trying it on a real phone, but at the moment I don't have one yet :-)

Many thanks in advance,

Federico

-- 
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] Starting default calendar and contacts application

2010-04-25 Thread Anurag Singh
But, there must be some standard way to do this.

Trek suggest, Start an activity with it's intent set to a standard email URI
- Android will find the best match of the apps that can handle that type of
intent.

What is the standard email URI? how it could be standard if it's not part of
SDK.

- Anurag Singh


 No mail clients are part of the Android SDK.

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

 Android 2.x Programming Books: http://commonsware.com/books

 --
 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.comandroid-developers%2bunsubscr...@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: How to use Fiddler to get traffic of the Market in Android Emulator

2010-04-25 Thread Xin Song
Yeah, I have tried Wireshark, but I don't think the information I got
from Wireshark is enough, so I have to use Fiddler. Maybe your view
point about firewall blocks outbound connections is right but there is
one problem. Fiddler can get the traffics of the Browser in the
emulator when I set the emulator's port to , but it get nothing
when I open the Market.

On 4月23日, 下午4时03分, mah m...@heilpern.com wrote:
 Use a general purpose data sniffer, like Wireshark.

 I haven't looked into what ports the Market uses, but if I allow my
 phone to connect to my corporate wifi, whose firewall blocks outbound
 connections to most non-well-known ports, I cannot use the Market.

 On Apr 22, 7:29 am, Xin Song songxinsw...@gmail.com wrote:





  hi guys, this question seems to be encountered by many people.
  I have set up the proxy(10.0.2.2) and port() of Emulator and it
  can connect to the net. But the Fiddler can just get traffic of the
  Browser in Emulator, it can not get anything of the Market. i.e. if I
  open an page by the Browser, there will be some traffics in Fiddler
  and if I go into the Market to find some applications, then Fiddler
  will show nothing. How can I make it work?
  Anyone any ideas?
  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 
  athttp://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 
 athttp://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: Starting default calendar and contacts application

2010-04-25 Thread AJ
Hi Anurag,

You can start the contact activity in the following way:-

Intent i = new Intent(Intent.ACTION_INSERT,People.CONTENT_URI);
i.putExtra(ContactsContract.Intents.Insert.NAME, AJ);
startActivity(i);

But I am facing some problem in passing the Extra data to the
activity. It looks that Contact in SDK 2.1 has some limitation.

I posted my problem in the following  thread. But nobody answered.:-
http://groups.google.com/group/android-developers/browse_thread/thread/37e59bcd5f3b4e5a#


Thanks,
AJ

On Apr 25, 9:28 pm, Anurag Singh anusingh...@gmail.com wrote:
 But, there must be some standard way to do this.

 Trek suggest, Start an activity with it's intent set to a standard email URI
 - Android will find the best match of the apps that can handle that type of
 intent.

 What is the standard email URI? how it could be standard if it's not part of
 SDK.

 - Anurag Singh



  No mail clients are part of the Android SDK.

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

  Android 2.x Programming Books:http://commonsware.com/books

  --
  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.comandroid-developers%2bunsubscr...@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 
 athttp://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] Starting default calendar and contacts application

2010-04-25 Thread Mark Murphy
Anurag Singh wrote:
 But, there must be some standard way to do this.
 
 Trek suggest, Start an activity with it's intent set to a standard email
 URI - Android will find the best match of the apps that can handle that
 type of intent.
 
 What is the standard email URI? how it could be standard if it's not
 part of SDK.

I believe TreKing was slightly mistaken in his choice of terms. Here is
a slightly corrected example from the one found on AndroidSnippets.org:

Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

emailIntent.setType(text/plain);
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new
String[]{t...@email.com});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, Subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Text);

context.startActivity(Intent.createChooser(emailIntent, Send mail...));

There is no Uri for sending an email. Instead, you use ACTION_SEND with
text/plain as the MIME type and a suitable set of extras.

By using Intent.createChooser() to create your actual Intent, you will
let the user choose from available email clients how to send the message.

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

_Android Programming Tutorials_ Version 2.0 Available!

-- 
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] ListView overlapping bottom view

2010-04-25 Thread Jose Gomez
Hello all,

I have the following layout, which gives me a header, a list view and a
footer it looks good but when the listview's contents are greater than
wheere the bottom textview start its basically overlays the list on top of
it. I was the listview to not overlay on top of the footer Any help is
greatly appreaciated

?xml version=1.0 encoding=utf-8?
LinearLayout
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
xmlns:android=http://schemas.android.com/apk/res/android;

ImageView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=center_horizontal
android:src=@drawable/groshielogo

/ImageView
TextView
android:id=@+id/lbl_goshopping_aisle
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_marginTop=10px
android:text=Aisle 1
android:textSize=25sp
android:textStyle=bold
android:layout_gravity=center_horizontal

/TextView
RelativeLayout
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_centerHorizontal=true
ListView
android:id=@+id/lst_goshoppingList
android:layout_width=fill_parent
android:layout_height=wrap_content

/ListView
TextView
android:id=@+id/lbl_goshopping_footer
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_marginTop=10px
android:text=Aisle 1
android:textSize=25sp
android:textStyle=bold
android:layout_gravity=center_horizontal
android:layout_alignParentBottom=true

/
/RelativeLayout
/LinearLayout



Sincerely
Jose C Gomez

http://www.josecgomez.com

-- 
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: Always use the best Location Provider?

2010-04-25 Thread michael
Hi,

 3) Don't worry about the problem. The only reason that the provider
 indicated by your Criteria will change is if the user enables or
 disables a provider in the Settings application, which I doubt happens
 on the fly very frequently.

Thanks Mark, maybe I will just go with 3) then.

Best,
Michael.

-- 
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: the problem about click item in listview

2010-04-25 Thread Jose Gomez
By any chance does your list item adapter have a control in it that can be
focused? If so that is your problem (checkbox, edit text, button) if any of
these are in your listItem you have to turn their focusability off in order
for the click and hold to register with the list.

Sincerely
Jose C Gomez

http://www.josecgomez.com


On Sun, Apr 25, 2010 at 7:44 AM, Paweł Zięba pawzi...@gmail.com wrote:

 ListView is subclass of AdapterView.

 In your case try this code, paste it into onCreate method

 layout_list.setOnItemClickListener(new OnItemClickListener() {
 @Override
public void onItemClick(AdapterView? parent, View v, int
 position, long id) {
Toast.makeText(MainView.this, Id:  + id + , pos: 
 + position, Toast.LENGTH_SHORT).show();
}
 });

 layout_list.setOnItemLongClickListener(new OnItemClickListener() {
 @Override
public void onItemClick(AdapterView? parent, View v, int
 position, long id) {
Toast.makeText(MainView.this, Id:  + id + , pos: 
 + position, Toast.LENGTH_SHORT).show();
}
 });

 where MainView is your activity



 On 25 Kwi, 13:49, Reiny Song reiny.s...@gmail.com wrote:
  thank you~
 
  But I do not know how to try your recommend.
 
  the sample code are following:
 
  ListView   layout_list =
 (ListView)inflate.inflate(R.layout.main_list,null);
  MyAdapter adapter  = new MyAdapter(.)
  layout_list.setAdapter(listAdapter);
 
  I can not get the AdapterView from my listview,
 
  could you please give me some direction.
 
  2010/4/25 Paweł Zięba pawzi...@gmail.com
 
 
 
 
 
   Try methods from AdapterView instead of View:
 
   final AdapterView.OnItemClickListenergetOnItemClickListener()
   final AdapterView.OnItemLongClickListener
   getOnItemLongClickListener()
   final AdapterView.OnItemSelectedListener
   getOnItemSelectedListener()
 
   On 25 Kwi, 13:08, Reiny Song reiny.s...@gmail.com wrote:
hello,
 
I try it, but there is no any response in listview.
 
When I clicked the item in listview by mouse,
 
the OnTouchListener, OnItemSelectedListener and OnTouchListener  of
 the
listview do not response to me.
 
But when I selected the item in listview by scroll wheel,
 
the OnItemSelectedListener showed the item was selected.
 
It confuses me a lots@@
 
2010/4/25 murali raju manutd...@gmail.com
 
 did u try onItemClickListener
 
 On Sun, Apr 25, 2010 at 10:19 AM, Reiny Song reiny.s...@gmail.com
 
   wrote:
 
 I should provide more detail about what I did,
 
 my listview contains the MyAdapter( extends simpleAdapter )
 
 I tried something (the followings are), but nothing helped me.
 
 1. I set the listview setClickable,
 setFocusableInTouchMode, setLongClickable  = true
 
 2. set the convertView in getView at MyAdapter
 
 setClickable, setFocusable ,setFocusableInTouchMode and
 setLongClickable = true
 
 But, when I click the item in listview, the item is still not
   selected.
 (but... the item can be selected by scroll wheel...)
 
 2010/4/25 Reiny reiny.s...@gmail.com
 
 Dear all,
 
 I have a problem about the the listview.
 
 My activity runs in simulator, and I use mouse to control it.
 
 When I select the item in listview by turning scroll wheel, the
 background of item becomes orange.
 
 But, when I click the item in listview, the item does not
 response
 to my action.
 
 anyone knows the reason? thank you~
 
  --
 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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
   cr...@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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
   cr...@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

Re: [android-developers] Is it possible to publish two versions for the same app simultaneously?

2010-04-25 Thread TreKing
On Sun, Apr 25, 2010 at 10:13 AM, Juan David Trujillo C. 
jdavidandr...@gmail.com wrote:

 The SDK version is 3 (OS 1.5 - uses-sdk android:minSdkVersion=3, but
 the rating stars are shown incorrectly for devices with OS 2.1. I read some
 posts in the forum that suggest to upgrade the SDK version to 4 (OS 1.6 and
 higher), however this will excluse 1.5 users to download my application, and
 I do not want this
 to happen, because there are still a lot of 1.5 devices.


You should use the latest SDK version and set your target to 3 (1.5).


  This makes me wonder: Is it possible to publish two versions for the same
 app simultaneously?


Yes, as Kumar explained.


 For instance, publishing one APK for version 1.6 or higher version and
 another APK for 1.5 version simulataneously in the Market, both intended for
 the same application.


 Is there a workaround for these kind of situations?


Code ONE app that uses the latest SDK but targets the earliest version of
the system (minSDK) you want to support (1.5 in this case). Account for any
differences in the API at runtime using reflection or checking the Android
version to do different things as necessary for each run time.

-
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] Starting default calendar and contacts application

2010-04-25 Thread TreKing
On Sun, Apr 25, 2010 at 1:41 PM, Mark Murphy mmur...@commonsware.comwrote:

 I believe TreKing was slightly mistaken in his choice of terms.


Indeed. In my haste I think I confused email and web urls. Sorry for the
confusion and thanks for clarifying Mark.

-
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] AutoCompleteTextView / ArrayAdapter performance

2010-04-25 Thread oriharel
Hi All!
I have an AutoCompleteTextView which the user can enter a name of an
airport.
the suggestion strings looks like this (for example):

John F. Kennedy (JFK)
New York, United States

I'm using an ArrayAdapterString (following the examples in Android
documentation) and when I construct it, I provide a ListString which
have items of the sort of:
airportName (airportCode)/nairportCity, airportCountry

the list size is 4,244.
my problem is that I'm getting a very poor performance from the view.
I'm talking 5-7 seconds after the user entering a letter (I set
threshold to '1').

also my problem is that I want the search to be a regular expression -
i.e., not having the user write the initial letter of the airport name
but any characters sequence that exist in the string. does the view
support that?

thanks!
Ori

-- 
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 create a nice menu?

2010-04-25 Thread TreKing
On Sun, Apr 25, 2010 at 12:43 PM, Stanley Li junpin1...@gmail.com wrote:

 So what is the best way I can achieve this?


Best is subjective and will be highly influenced by what you mean by
nice.


 Should I just create a linearLayout with background, and inside the layout,
 contain the title text and all the buttons?


Sure, that would work.

-
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] J2ME converting/translation to Android

2010-04-25 Thread ricardocunha
Hi,

I want to know if exists a converter for a j2me source-code to
android. Listen, it´s not a runner, like a midp runner for android, it
´s a converter for a source code. A tool for translate a source code
for a new plataform, from j2me to android.

Sorry about my English.

Thank´s for any help.

-- 
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: MediaPlayer skips even though PARTIAL_WAKE_LOCK is set

2010-04-25 Thread Thilo-Alexander Ginkel
On Apr 25, 3:48 pm, henrik henrik.aron...@gmail.com wrote:
 On 25 apr, 12:08, henrik henrik.aron...@gmail.com wrote:

  I have a problem with MediaPlayer on my HTC Hero.  When I set it to
  decrypt  play a local file in the background, it starts skipping
  after a minute or two, even though I have aquired the
  PARTIAL_WAKE_LOCK.  This only happens when the phone is running on
  battery:  I'm unable to reproduce this with the USB cable plugged in.
  In addition, this only happens when I leave the phone to play.  If I'm
  using another app actively, the music never skips.

 The weird thing is, the problem goes away if I use
 SCREEN_DIM_WAKE_LOCK instead.  But I really don't want to drain my
 users' batteries needlessly.

That looks somewhat similar to the problem I described at:
  
http://groups.google.com/group/android-developers/browse_thread/thread/d5871aedea82d915/d567fecbfda6235f

Seems as if HTC are applying some very aggressive power saving when
the screen is turned off. Unfortunately, I do not yet have a solution
(there must be one [most likely undocumented] as the native phone
application is not affected).

Regards,
Thilo

-- 
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] Looking for someone to test my Augmented Reality software on the milestone

2010-04-25 Thread tdom...@googlemail.com
Hi all,
I'm the developer of AndAR, an project that brings Augmented Reality
to Android:
http://code.google.com/p/andar/
http://www.youtube.com/watch?v=VJ5QUlDX8nQ

It runs well on the Nexus one and the G1, both phones I can test my
software on. Though milestone users seem to have some trouble with the
application. Can someone try this version of AndAR, which has logging
enabled, and post me the output of logcat:
http://andar.googlecode.com/issues/attachment?aid=-8910870685218982003name=AndAR.apk

That would be really nice!!

Regards
Tobi

-- 
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] Programmatically forward-lock an APK?

2010-04-25 Thread String
Doing a bit of advance research, and am stuck on the point summarized
in the title. Namely, is there any way to forward-lock an APK
installed programmatically, from another app? I've not come across
anything beyond a hint in the following post:
http://groups.google.com/group/android-developers/msg/e39941389d4a4cf8
I can't see anything in the docs for PackageManager about forward-
locking, but I readily confess that this is an unfamiliar area of the
SDK for me.

Anyone?

String

-- 
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: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread ratson
LOL. :)
Mine is AutoKiller ;)

On Apr 23, 1:22 pm, Lim Sim lim@gmail.com wrote:
 @fhucho.  great question.  i've been wondering the same thing for a while.

 Mine's Auto Memory Manager.  what's yours?

 [image: qr-code1.png]

 On 23 April 2010 12:15, fhucho fhu...@gmail.com wrote:





  Out of curiosity, what is the app you guys are getting Nexus / Droid
  for?

  On Apr 23, 11:05 am, Lim Sim lim@gmail.com wrote:
   haha. maybe they are upgrading the phones in transit?

   On Apr 23, 2010 10:00 AM, fhucho fhu...@gmail.com wrote:

   @Lim Sim
   LOL, they're not installing Froyo on it :) They said about a month ago
   that all the phones have been sent. If they wanted to install Froyo on
   it they would do it over the air.

   On Apr 23, 7:07 am, dgoemans dgoem...@gmail.com wrote:

Dude,
1. What do you mean your instru...

   --
   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.comandroid-developers%2Bunsubs
cr...@googlegroups.com
   For more options, visit this group athttp://
  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Lim Sim
 t: +44 790 4181648
 f:http://www.flickr.com/photos/limsim

 --
 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 
 athttp://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: MediaPlayer skips even though PARTIAL_WAKE_LOCK is set

2010-04-25 Thread Thilo-Alexander Ginkel
On Apr 25, 9:59 pm, Thilo-Alexander Ginkel th...@ginkel.com wrote:
  The weird thing is, the problem goes away if I use
  SCREEN_DIM_WAKE_LOCK instead.  But I really don't want to drain my
  users' batteries needlessly.

 That looks somewhat similar to the problem I described at:
  http://groups.google.com/group/android-developers/browse_thread/threa...

 Seems as if HTC are applying some very aggressive power saving when
 the screen is turned off. Unfortunately, I do not yet have a solution
 (there must be one [most likely undocumented] as the native phone
 application is not affected).

After reading the PowerManager source code, I figured out that there
seems to be an undocumented wake lock for the CPU, which is used along
with a SCREEN_DIM_WAKE_LOCK, but not with a PARTIAL_WAKE_LOCK:

-- 8 --
private static final int WAKE_BIT_CPU_STRONG = 1;
private static final int WAKE_BIT_CPU_WEAK = 2;
[...]

/**
 * Wake lock that ensures that the CPU is running.  The screen
might
 * not be on.
 */
public static final int PARTIAL_WAKE_LOCK = WAKE_BIT_CPU_STRONG;
[...]

/**
 * Wake lock that ensures that the screen is on (but may be
dimmed);
 * the keyboard backlight will be allowed to go off.
 */
public static final int SCREEN_DIM_WAKE_LOCK = WAKE_BIT_CPU_WEAK |
WAKE_BIT_SCREEN_DIM;
-- 8 --

Can you try what happens if you acquire the wake lock with the
WAKE_BIT_CPU_WEAK set? I'd try it myself, but am a little short on
time right now.

Regards,
Thilo

-- 
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: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread Lim Sim
I wonder how many people are getting phones.  Would be cool if Google listed
all the apps that are part of this program.  Good for us and good for people
that are looking for top apps.

On 25 April 2010 21:17, ratson materem...@gmail.com wrote:

 LOL. :)
 Mine is AutoKiller ;)

 On Apr 23, 1:22 pm, Lim Sim lim@gmail.com wrote:
  @fhucho.  great question.  i've been wondering the same thing for a
 while.
 
  Mine's Auto Memory Manager.  what's yours?
 
  [image: qr-code1.png]
 
  On 23 April 2010 12:15, fhucho fhu...@gmail.com wrote:
 
 
 
 
 
   Out of curiosity, what is the app you guys are getting Nexus / Droid
   for?
 
   On Apr 23, 11:05 am, Lim Sim lim@gmail.com wrote:
haha. maybe they are upgrading the phones in transit?
 
On Apr 23, 2010 10:00 AM, fhucho fhu...@gmail.com wrote:
 
@Lim Sim
LOL, they're not installing Froyo on it :) They said about a month
 ago
that all the phones have been sent. If they wanted to install Froyo
 on
it they would do it over the air.
 
On Apr 23, 7:07 am, dgoemans dgoem...@gmail.com wrote:
 
 Dude,
 1. What do you mean your instru...
 
--
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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
For more options, visit this group athttp://
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Lim Sim
  t: +44 790 4181648
  f:http://www.flickr.com/photos/limsim
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Lim Sim
t: +44 790 4181648
f: http://www.flickr.com/photos/limsim

-- 
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: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread Maps.Huge.Info (Maps API Guru)
I have two that qualified:

Radar Now! - 250,000+ downloads, 4.32 average rating, #13 in News 
Weather

http://www.radarnow.net (check out the cool map)

What Zip Code? - 10,000+ downloads, 3.95 average rating

-John Coryat, USNaviguide LLC

Look for me at Google IO!

-- 
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: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread Lim Sim
Cool!  I've been seeing Radar Now around.  Going to download it and give it
a spin.  Looks cool.  Should have got it when we had the volcanic ash last
week.

On 25 April 2010 22:51, Maps.Huge.Info (Maps API Guru) cor...@gmail.comwrote:

 I have two that qualified:

 Radar Now! - 250,000+ downloads, 4.32 average rating, #13 in News 
 Weather

 http://www.radarnow.net (check out the cool map)

 What Zip Code? - 10,000+ downloads, 3.95 average rating

 -John Coryat, USNaviguide LLC

 Look for me at Google IO!

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




-- 
Lim Sim
t: +44 790 4181648
f: http://www.flickr.com/photos/limsim

-- 
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: graphically represent multiple list selections or dynamically change a list item view

2010-04-25 Thread applesquash
Latest update if anyone is actually reading these...
My selection trick is working but it's still wonky and selecting
things at random.
I believe this is due to the way the inflater works, only inflating
one page at a time.
I guess the list position repeats itself for each cached page.
But I'm not too sure.
Does anyone know of a setting that can make the position accurate for
the whole list and not just the visible page?
I'd look it up myself, but my brain seriously hurts after all this.
And maybe someone out there just happens to know.

On Apr 23, 8:58 pm, applesquash applesqu...@gmail.com wrote:
 Hello. I hope someone can help me here because I haven't found an
 answer after extensive googling, forum posts and reading the relevant
 parts of the API about 100 times.

 I'm trying to create a multiple selection list where the selection is
 represented graphically rather than with checkboxes. My list has
 checkboxes, but I want them to serve a different purpose. I'm using a
 cursor to hold my data and created a custom view binder for the
 SimpleCursorAdapter. I did this for the checkboxes and general
 flexibility.

 So far I haven't even been able to show one line as being selected.
 I've enabled multiple selection on the list and denied the children of
 the list item focusability. I've tried manually changing background
 color with the position fed in through the list item click listener.
 But the wrong items get changed and they don't even change to the
 right color. I've enabled touch focusability with no improvement
 either.

 Ideally, I'd like the trackball highlight focus bar to appear in
 multiple places. But I don't think this is possible unless you use the
 drawable directly. But I don't know  how to find or apply it. My next
 idea was to have a slim view bar that changes color. But I had the
 same problem with the wrong item being selected so I never finished
 trying to guess the index position to see if this would work. My most
 recent idea is to completely swap out the view for another one if it's
 selected. But I have no idea how to do this either. I'm thinking of
 using an array list to store the _id s of the items that need a
 different view to get around the wierd selection problem. I'm also
 thinking of passing in the ID field as my from and the selection view
 as the to for my adapter. Then I'd intercept it with my binder and
 change the view accordingly. But once again, I'm not sure how to do
 this successfuly.

 Any help would be appreciated.
 Thank you.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.To post to this group, send email 
 toandroid-develop...@googlegroups.com
 To unsubscribe from this group, send email 
 toandroid-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Re: graphically represent multiple list selections or dynamically change a list item view

2010-04-25 Thread Mark Murphy
applesquash wrote:
 Latest update if anyone is actually reading these...
 My selection trick is working but it's still wonky and selecting
 things at random.
 I believe this is due to the way the inflater works, only inflating
 one page at a time.

What is a page in this context?

 I guess the list position repeats itself for each cached page.
 But I'm not too sure.
 Does anyone know of a setting that can make the position accurate for
 the whole list and not just the visible page?

The position parameter passed to getView()/newView()/bindView() is
accurate for the whole list when used properly. Since there is no
concept of page with lists in Android, I am not sure what you mean by
not just the visible page.

 I'm trying to create a multiple selection list where the selection is
 represented graphically rather than with checkboxes. 

Why?

 My list has
 checkboxes, but I want them to serve a different purpose.

As a user, I find your lack of consistency disturbing.

Overall, I would not even know where to begin advising you on how to
implement your intended design.

I recommend that you simplify your user interface and stick to platform
conventions that your users will expect, such as a CheckedTextView and
CHOICE_MODE_MULTIPLE being used for multiple-selection lists.

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

_Android Programming Tutorials_ Version 2.0 Available!

-- 
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] Transparent Text Field?

2010-04-25 Thread Will Hester
Is there any way to create a transparent text 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] Re: Will 900ms of calcs run faster in another thread?

2010-04-25 Thread BobG
Minbuffersize came back as 4096 bytes, but I need 2400 16 bit samples
at 48000 samp per sec to get 50ms worth of samples one period of
20hz. So I set it to 4800 bytes. Timing is from
system.currentTimeMillis on a dev phone 2 (528mhz cpu?). This timing
would, I assume, include the timing of everything else that
interrupted and ran before my activity was done? I dont there is much
difference in setting urgent audio hi priority or not. Wonder if the
priority gets knocked back down to normal when the acquisition stops?

-- 
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 do ListViews exactly work?

2010-04-25 Thread Moto
I'm trying to figure out how it's been designed.  How it holds its
items?  How do I get a hold of the scrolling container?  How can I
know it's exact scrolling position?  How can I scroll it to an exact
position?

I want to have all the current benefits the ListView provides plus
detailed scrolling control... How about animating from x to x+100
scroll position?

Maybe I need to create my own ListView?  Where do I begin?

Thanks for the help!
-Moto!

-- 
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: Aren't focus states supposed to bubble to child Views?

2010-04-25 Thread patbenatar
Anyone willing to explain how bubbling of focus states works?
Basically, how to get a child View to be focused when its parent is
focused.

Thanks,
Nick



On Apr 19, 1:31 am, patbenatar patbena...@gmail.com wrote:
 Hey all-

 When using a View within a View, for example an ImageView within a
 LinearLayout, both of which have xml drawable resources (the
 LinearLayout as a background) specifying PNG drawables to use for the
 on/off states, shouldn't children Views receive the focus state when
 their parent gets focus? So as far as I understand, both my
 LinearLayout and ImageView should be switching to their focus
 states...right? Apparently not... Or, more likely, apparently my
 implementation is incorrect..

 The focus state works on the LinearLayout but my ImageView never
 receives focus.. I have both Views set to android:focusable=true.

 Thanks,
 Nick

 --
 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 
 athttp://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: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread Ian Wong
If some ppl had already got it, the delay is obviously not caused by
Froyo.
The delay probably caused by shipping partner which is not the same as
Google normally ships out their phone. I expect it is a cheaper
solution
than the normal way Google used and takes longer shipping days than
the usual 3 days.

You can't blame Google using a cheaper longer way to ship but it is
really bad to have no information sent to the waiting ppl.

On 4月21日, 下午4時47分, Lim Sim lim@gmail.com wrote:
 So far all the suggestions/rumours of why we haven't got the phone have been
 on the negative side.  How about a positive one.  Like...maybe the phones
 are delayed because they want to get Froyo on it before sending it out to
 us.

 On 21 April 2010 09:37, Josef Pfleger green-car...@orange-cactus.orgwrote:



  I am from Austria and have not yet received a phone either. Will be a
  nice surprise if/when it gets here.

  On Apr 20, 8:51 pm, Chister Nordvik cnord...@gmail.com wrote:
   Couldn't agree more. How many people in here have contacted Google,
   FedEx  Brightpoint just because of lack of information from Google? A
   simple mail saying: Sorry, you'll get your phone in May would have
   been enough.

   And don't get us started on the Android Market! The petition (
 http://www.petitiononline.com/androidm/) has most of it covered I guess.
  Even
   though it seems to be ignored by any official comment then we can hope
   that Google soon launches a brand new marketplace where all our wishes
   have come through!

   -Christer

   On Apr 20, 10:17 am, Ove Olavgaard ove.olavfga...@gmail.com wrote:

 It is, after all a free gift

So what? If only the developers in US got a free phone that would not
  bother
me.
I got a mail from Google saying they would give me a free phone in 2-4
weeks!
Great Then I dont have to purchase the phone Ive orginally planned,
  and
I can test my new app  on yet another device.
Well... After 7 weeks, no words and no phone, I had to buy the planned
  phone
anyway.

If they know its been problems with delivery of all phones outside US,
  so
send the developers a mail. They got all the e-mail-adresses.
Should be an easy task.

Ove, i understand your pain, it took a while for paid apps to get
here, and as an ex-South African, they don't even have paid app
downloads over there, so its bad.

Well, its the same same for most European countries. No paid apps
  available
for download.
It wouldn't be a problem if Google said that it would support Merchang
Accounts and paid apps in 2011.
Then we will at least know, and can plan according to that. The
  situation
now is just silence for over 2 years.
That is not taking your developers or customers seriously.

2010/4/20 dgoemans dgoem...@gmail.com

 *stands up*

 Hi, my name's David, i'm in the Netherlands, and i haven't had a
  Nexus
 One for 7 weeks now.

 Seriously tho, i think we need to be calm and strong. They'll arrive
 ( hopefully before i move! ) and we just need patience. It is, after
 all a free gift, which after 2 years as a day job iPhone dev, i can
 say is more than i've been given before.

 Ove, i understand your pain, it took a while for paid apps to get
 here, and as an ex-South African, they don't even have paid app
 downloads over there, so its bad. That said, it's worth keeping in
 mind that there are serious region restrictions on these things
 ( unfortunately - i really hate that ). For example, look at
 Microsoft's Xbox Live Indie Games, which is only accessible in a
  small
 handful of countries to download for, and only a few more than that
 can dev for it. This is due to (stupid) global financial
  restrictions.
 Remember that it took Apple many years to get iTunes working across
 the globe.

 On Apr 19, 10:24 pm, JDS jesper.d.svens...@gmail.com wrote:
  I would be very surprised if they do not arrive. If the intention
  never was to send any to europe, why would Google confirm that they
  will arrive over and over again? What is obvious is that they had,
  or
  still have, some major issues but I don't think we will never know
  what kind.

  In the last response I got, they do confirm they had some issues
  and
  that I should (they don't use the word will receive anymore ;-) )
  receive my phone in 2 weeks, which will be on April 28 and I will
  wait
  patiently until then before I will contact them again.

  On 19 Apr, 21:05, gambiting gambit...@gmail.com wrote:

   Well,with each day I'm getting convinced more and more that the
  phones
   will not arrive in europe,and it was only for the US.
   But on the other side, we didn't pay anything for these phones,
  so it
   doesn't hurt to wait - maybe one day there we will get them?
   I just hope that people from europe will share info here if they
   

[android-developers] Re: dependency between applications

2010-04-25 Thread dnak
Sorry for confusing you by my English...

I'd like to know when Android launches depending service/provider.
(For example. when Android launches CalenderProvider?)

I'm checking this with Android 2.1 source code (mydroid),
but I can't figure out.

I'd like to know general mechanism for this.

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


Re: [android-developers] Re: a question about menu

2010-04-25 Thread 薛智超
On Fri, Apr 23, 2010 at 1:24 PM, priyanka 2priya...@gmail.com wrote:

 Hello,

 In which method is this code written? I believe this part has to go
 inside onCreateOptionsMenu(Menu myMenu) itself. myMenu would be a
 parameter, and after adding menuItems to it, you need to return it
 back.

 Thanks,
 Priyanka

 On Apr 22, 1:10 pm, 智超 薛 suner...@yahoo.com wrote:
  hey all!
 
  meet a question about menu.
 
  i want to push a button to pop-up menu,
 
  my coding is
 
  case R.id.menus:
  if(myMenu==null) {
  myMenu.add(0, 0, 0,
 Add).setIcon(R.drawable.addfolderr);
  myMenu.add(0, 1, 0,
 Delete).setIcon(R.drawable.delete);
  }
  onCreateOptionsMenu(myMenu);
  braek;
 
  but onCreateOptionsMenu(myMenu) is not work ,
  how to make it work ,or had other way to realize button pop-up menu ?
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@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: MediaPlayer skips even though PARTIAL_WAKE_LOCK is set

2010-04-25 Thread Thilo-Alexander Ginkel
On Apr 25, 10:23 pm, Thilo-Alexander Ginkel th...@ginkel.com wrote:
 Can you try what happens if you acquire the wake lock with the
 WAKE_BIT_CPU_WEAK set? I'd try it myself, but am a little short on
 time right now.

Well, scrap that idea... Did not try it, but figured out that at
various places in PowerManager.java and PowerManagerService.java
validity checks are put into place explicitly checking for the
documented wake lock masks and counteracting what I proposed with
throwing an (IIRC) IllegalArgumentException or writing an error log
entry. The reason seems to be a valid one, though: The low-level
(native) interface does not seem to care about wake lock masks, but
only knows a couple of dedicated wake locks (PARTIAL_WAKE_LOCK being
one of them). Now, I'd continue to investigate what is going on at the
kernel level, but HTC is refusing to release the source code for the
HTC Desire kernel that I am experiencing the problem with.

Regards,
Thilo

-- 
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] onActivityResult not being called in Activity that uses GLSurfaceView

2010-04-25 Thread SChaser
Help!

I have an activity that, instead of getting a response back from a
startActivityForResult, is destroyed (with no callbacks) when the
responding activity finishes!

The activity (call it GL) subclasses Activity and sets its contentView
 to be a GLSurfaceView. This Activity overlays a MapView and uses
translucency to draw OpenGL objects over the Map.


Here are the details:
The  app that uses Intents for a menu system.

An activity needing a menu does:

...startActivityForResult(intent, 0)

to fire off the menu (a ListView).

When the menu item is selected, the menu sets a result with:

setResult(Activity.RESULT_OK, intent); menuActivity.finish();

In the originating activity, the onActivityResult  should be called
with the results.

I have two activities - one where that works, one where it doesn't.
Both use the same common method to do the setActivityForResult call.

The first a MapActivity which is also the starting activity of my app.
It has no problem using the menu system to get results.

The second is the GL Activity, an Activity which sets it content to be
a GLSurfaceView.

This activity never sees onActivityResult after it sends the menu
intent, and it also vanishes without a trace (no lifecycle methods
called other than suspend()).


So the flow is like this:

MapView   intent --- MenuActivity
   displays list of choices
   receives a click on a choice
   sets a response
   calls finish()
mapview.onActivityResult -- called with result

mapview --- intent ---Activity using GLSurfaceView
   renders shape
   gets a click
   sends an intent ---intent-
MenuActivity
   onSuspend called
displays list of choices
 
receives a click on a choice
 
sets a response
 
calls finish()
surfaceview activity vanishes 
unexplained magic 

Something odd is going on here!

Any ideas?


-- 
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] Saving ArrayList to .txt file

2010-04-25 Thread Tommy
Hi,

I am trying to save an array list to a .txt file below is the code I
am using, which runs without error but when I try to go to Astro file
manager and browse the data folder there is nothing there.

String filename = stationname.getText().toString() +
System.currentTimeMillis();

FileOutputStream fos = openFileOutput(filename,Context.MODE_PRIVATE);
ObjectOutputStream out = new ObjectOutputStream(fos);
out.writeObject(report); //Report is the ArrayList that holds each of
my station Reports.
out.close();

Any advice would be greatly appreciated.

Thanks for your time,

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] What is the maximum memory capacity

2010-04-25 Thread Karteek N
Hi all,
If i have implemented a database in an application.
So what ever the tables i create in that database will be saved in
/data/data/packagename/databasess
My question is how many tables i can create or how much data can i insert.
How to know capacity of the database.In which factors will it depends.
Please help

Regards,
Karteek

-- 
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] Lots of lost sales due to Credit Card authorization.

2010-04-25 Thread Paul
I've lost about 120 sales from the Android Market due to people not
ever entering valid credit card information in Google Checkout. Not
sure if they ever got the email from google telling them to do it.

I also have to handle a lot of customer support for these issues.
People think the app is going to download and it doesn't. Android
Market doesn't tell them that their card didn't authorize. So they
contact me. At least once a day I have to email someone and tell them
to go into checkout.google.com and make sure their payment methods are
correct.

There has to be a better way. I think if Android Market/Google
Checkout told the user immediately in the Android Market that they
weren't able to authorize the card, then they would know what to do.

Also it would be nice if buyers understood, that as a seller I don't
get their credit card info, can't charge them, and have no control
over the download of the app.

Google, I love ya, but you've got to work on this issue. Just make it
clearer to the buyer.

-- 
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: Saving ArrayList to .txt file

2010-04-25 Thread Kumar Bibek
What do you mean by there's nothing oevr there? Objects written down
on a file would not be in a readable format. So you can't just use a
text reader to read the contents.

And if you mean that the file is empty, then the process of
serialization is what you should check first. Try with a normal Java
program and let us know if you have any problems.

Thanks and Regards,
Kumar Bibek

On Apr 26, 8:35 am, Tommy droi...@gmail.com wrote:
 Hi,

 I am trying to save an array list to a .txt file below is the code I
 am using, which runs without error but when I try to go to Astro file
 manager and browse the data folder there is nothing there.

 String filename = stationname.getText().toString() +
 System.currentTimeMillis();

         FileOutputStream fos = openFileOutput(filename,Context.MODE_PRIVATE);
         ObjectOutputStream out = new ObjectOutputStream(fos);
         out.writeObject(report); //Report is the ArrayList that holds each of
 my station Reports.
         out.close();

 Any advice would be greatly appreciated.

 Thanks for your time,

 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 
 athttp://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] What is the maximum memory capacity

2010-04-25 Thread Anurag Singh
The maximum heap memory an process (app) gets in Android is 16M. That's not
that much,
a basic app takes already several MBs after you've only just started it.

- Anurag Singh

On Mon, Apr 26, 2010 at 9:34 AM, Karteek N kartee...@gmail.com wrote:

 Hi all,
 If i have implemented a database in an application.
 So what ever the tables i create in that database will be saved in
 /data/data/packagename/databasess
 My question is how many tables i can create or how much data can i insert.
 How to know capacity of the database.In which factors will it depends.
 Please help

 Regards,
 Karteek

 --
 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.comandroid-developers%2bunsubscr...@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: Transparent Text Field?

2010-04-25 Thread Kumar Bibek
Change the background image of the Textfield to a png image which is
transparent.

Thanks and Regards,
Kumar Bibek

On Apr 26, 5:27 am, Will Hester whes...@gmail.com wrote:
 Is there any way to create a transparent text 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 
 athttp://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] a question about menu

2010-04-25 Thread Anurag Singh
You have to implement *onCreateOptionsMenu() *in your Activity.

public boolean *onCreateOptionsMenu*(Menu menu) {
 CreateMenu(menu);
return(super.onCreateOptionsMenu(menu));
}

private void CreateMenu(Menu menu) {
menu.add(Menu.NONE, 1, Menu.NONE, Add);
menu.add(Menu.NONE, 2, Menu.NONE, Delete);
}

First try it and let me know the problem.

- Anurag Singh

On Thu, Apr 22, 2010 at 1:40 PM, 智超 薛 suner...@yahoo.com wrote:

 hey all!

 meet a question about menu.

 i want to push a button to pop-up menu,

 my coding is

 case R.id.menus:
 if(myMenu==null) {
myMenu.add(0, 0, 0,
 Add).setIcon(R.drawable.addfolderr);
myMenu.add(0, 1, 0,
 Delete).setIcon(R.drawable.delete);
}
onCreateOptionsMenu(myMenu);
 braek;

 but onCreateOptionsMenu(myMenu) is not work ,
 how to make it work ,or had other way to realize button pop-up menu ?

 --
 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.comandroid-developers%2bunsubscr...@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] Re: Android ANT compilation

2010-04-25 Thread veradis tech
Thanks Bob Kerns.
My aim is to make the code available for all. I will move the source to SVN,
and anyone can download/update it and compile it using ANT. I don't want to
use eclipse for this.



Thanks
Veradis

On Sat, Apr 24, 2010 at 9:12 PM, Bob Kerns r...@acm.org wrote:

 Your build.xml doesn't look anything at all like what's generated by
 the 'android' tool. It looks like you've undergone a major manual
 effort, instead.

 Why not just use the android tool to set up your project?

 http://developer.android.com/intl/de/guide/developing/other-ide.html

 You can create a blank project, and edit the build.xml and such if you
 want.

 As far as I know, the android tool is the only thing that knows what
 the requirements are for the various android ant tasks. I suspect one
 requirement is that sdk.dir be set to point to the sdk.

 On Apr 24, 12:57 am, veradis veradism...@gmail.com wrote:
  Hi,
 
   I want to compile my Android APP using ANT in windows. I placed
  build.xml in project root and included necessary jars in project lib
  folder. I had made proper configurations for ant also, but its not
  working. Please help me on this.
 
  Error
  
 
  C:\Documents and Settings\nav\workspace\YumFlixMobileant
  Buildfile: C:\Documents and Settings\nav\workspace\YumFlixMobile
  \build.xml
 
  clean:
 
  resource-src:
 
  BUILD FAILED
  C:\Documents and Settings\nav\workspace\YumFlixMobile\build.xml:33:
  java.lang.Nu
  llPointerException
  at
  com.googlecode.androidant.AndroidTools.locateTool(AndroidTools.java:8
  1)
  at
  com.googlecode.androidant.AndroidTools.startTool(AndroidTools.java:74
  )
  at
  com.googlecode.androidant.AndroidTools.startTool(AndroidTools.java:62
  )
  at
  com.googlecode.androidant.WindowsAndroidTools.aapt(WindowsAndroidTool
  s.java:36)
  at aapt.main(aapt.java:7)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
  at
  org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:15
  2)
  at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
  at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:
  221)
  at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:
  135)
  at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
  at
  org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
  at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
  a:106)
  at org.apache.tools.ant.Task.perform(Task.java:348)
  at
  org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
  at
  org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
  a:106)
  at org.apache.tools.ant.Task.perform(Task.java:348)
  at
  org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
  a:398)
  at
  org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
  a:106)
  at org.apache.tools.ant.Task.perform(Task.java:348)
  at org.apache.tools.ant.Target.execute(Target.java:390)
  at org.apache.tools.ant.Target.performTasks(Target.java:411)
  at
  org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
  at org.apache.tools.ant.Project.executeTarget(Project.java:
  1329)
  at
  org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
  cutor.java:41)
  at org.apache.tools.ant.Project.executeTargets(Project.java:
  1212)
  at 

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-25 Thread String

On Apr 25, 10:58 pm, Lim Sim lim@gmail.com wrote:

 Cool!  I've been seeing Radar Now around.  Going to download it and give it
 a spin.  Looks cool.  Should have got it when we had the volcanic ash last
 week.

I'm making a guess from these 2 statements, but... Be aware that Radar
Now! is US-only.


 On 25 April 2010 22:51, Maps.Huge.Info (Maps API Guru) 
 cor...@gmail.comwrote:

 Radar Now! - 250,000+ downloads, 4.32 average rating, #13 in News 
 Weather

John, just FYI, posting a ranking like this is pretty well
meaningless. The order of apps in the Market varies by country,
handset, carrier, and probably some other factors that Google has
never made clear. For example, I have an app which is #8 in Reference
here in the UK on my G1, but shows up as #5 on a Droid in the USA.

String

-- 
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: About EditText inputType

2010-04-25 Thread Kumar Bibek
Type Number is for phone number, it is not specifically for age. Even
if you had one for the age, what would happen if a user enters a value
of 300. Still then, you would have checked this value through code,
right?

So, May be use a spinner or something, or before saving the contents
of the EditText, check it's value and prompt the user if it's wrong.

Thanks and Regards,
Kumar Bibek

On Apr 23, 8:18 am, E chui.hin...@gmail.com wrote:
 Hi! I've searched for long-long time and I can't find the answer.

 EditText android:id=@+id/age
                android:inputType=number|phone/

 This will pop-up a soft keyboard with big buttons and some signs(- .
 N , * # / ), right?

 But the propose for this EditText is entering an age number.

 Can I restrict the inputType to number AND use a phone keyboard
 WITHOUT entering these signs?

 Thank you for guiding a newcomer.

 --
 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 
 athttp://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: How to run progressDialog inside WebView ?

2010-04-25 Thread Kumar Bibek
You can put a progressbar inside a WebView and set or unset it's
visibility. That should solve your problem.

Thanks and Regards,
Kumar Bibek

On Apr 23, 3:02 pm, teeming looteem...@gmail.com wrote:
 Hi,

 I am new to android development. I wanted to create an app that
 displaying a progressDialog when loading the webpage using
 webview.loadurl. However i couldn't make my code run. The app is
 loaded with error in the emulator. Below is my code. Hope anybody can
 help me trace the problem. Thanks.

 package hello.WebView;

 import android.app.Activity;
 import android.app.ProgressDialog;
 import android.view.KeyEvent;
 import android.webkit.*;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;

 public class HelloWebView extends Activity implements Runnable {

         WebView webview;
         private ProgressDialog pd;
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {

         super.onCreate(savedInstanceState);
     }

         @Override
         public boolean onKeyDown(int keyCode, KeyEvent event) {

                 pd = ProgressDialog.show(this, , Loading..., true,
                                 false);

                 Thread thread = new Thread(this);
                 thread.start();

                 return super.onKeyDown(keyCode, event);
         }

         public void run() {

                 webview.loadUrl(http://m.adoimagazine.com;);
                 setContentView(webview);
                 handler.sendEmptyMessage(0);

         }
         private Handler handler = new Handler() {
                 @Override
                 public void handleMessage(Message msg) {
                         pd.dismiss();

                 }
         };

     }

 --
 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 
 athttp://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: Starting default calendar and contacts application

2010-04-25 Thread Kumar Bibek
Accessing Calendar Content Providers, I believe it not yet public. You
can however try with the various examples available which use hard-
coded calendar URIs. But till Google releases the content providers
for the Calendar, it is not full - proof.

Contacts, well, It's open for any one to use.

About sending mails, it possible. But for reading mails, you have to
use the content providers, which again, I think hasn't been open to
the public.

Thanks and Regards,
Kumar Bibek

On Apr 26, 12:51 am, TreKing treking...@gmail.com wrote:
 On Sun, Apr 25, 2010 at 1:41 PM, Mark Murphy mmur...@commonsware.comwrote:

  I believe TreKing was slightly mistaken in his choice of terms.

 Indeed. In my haste I think I confused email and web urls. Sorry for the
 confusion and thanks for clarifying Mark.

 -
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://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 
 athttp://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


  1   2   >