[android-developers] Re: My application works over WiFi but fails over GPRS

2010-08-18 Thread Sarwar Erfan
If the port is blocked by mobile operator, then also there will be
timeout exception.

Why don't you use HTTP (port 80) on your server side?
If a single port is kept unblocked by mobile operator, it should be
80.

Regards
Sarwar Erfan


On Aug 18, 7:41 am, Jenus Dong jenus.ne...@gmail.com wrote:
 From the log,  the reason is possible timeout. Cause WIFI used to connect
 fastly, GPRS is limited with low speed. So you could try to use much longer
 timer to connect the server.
 Hope it did work.







 On Wed, Aug 18, 2010 at 12:27 AM, alan a...@birtles.org.uk wrote:
  Which port are you tring to connect to? maybe your mobile provider is
  blocking that port.

  On Aug 17, 10:02 am, Asif k asifk1...@gmail.com wrote:
   Hi all,

   I am developing a social Networking application and it works fine over
   WiFi but tried the same over GPRS it gives following Exception,

   08-17 13:55:05.406: WARN/System.err(4233):
   java.net.SocketTimeoutException: Socket is not connected
   08-17 13:55:05.406: WARN/System.err(4233):     at

  org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native
   Method)
   08-17 13:55:05.406: WARN/System.err(4233):     at

  org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:
   131)
   08-17 13:55:05.406: WARN/System.err(4233):     at
   org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
   247)
   08-17 13:55:05.406: WARN/System.err(4233):     at
   org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
   535)
   08-17 13:55:05.406: WARN/System.err(4233):     at
   java.net.Socket.connect(Socket.java:1054)
   08-17 13:55:05.406: WARN/System.err(4233):     at

  org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
   117)
   08-17 13:55:05.413: WARN/System.err(4233):     at

  com.vodafone360.photos.service.transport.http.HttpConnectionThread.postHTTPRequest(HttpConnectionThread.java:
   293)

   what could be the reason?

   Thanks,
   Asif

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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: Google Nexus ONE

2010-08-18 Thread Sarwar Erfan
Contact a friend/relative (or friend/relative of friend/relative)
living in one of the countries in that dropdown.
Send him/her the money (and a small gift may be?) and ask him/her to
send it to you via DHL/FedEx.

Or, you can try these kind of sites (I dont know whether these kind of
sites are legitimate or scams)
http://www.20north.com/product/?mid=2pid=RTLS2R


Regards
Sarwar Erfan


On Aug 17, 11:59 am, Sattanaathan Ravi sattanaat...@gmail.com wrote:
 Hi everbody,

 i am an android developer from India and i was excited to order an
 Nexus ONE but untill the shipment form said it can only deliver Nexus
 ONE to the countries listed in the DropDownbox but Unfortunately India
 was not not the List does that mean nobody from India Gets a Google
 Nexus ONE..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Threading confusion

2010-08-18 Thread Mystique
ok.. i managed to do it by putting the setText() in the
runInUIThread...

On Aug 18, 1:29 pm, Mystique joven.ch...@gmail.com wrote:
 Hi all, please help me look at my code. Many thanks.

 --- code ---
 private Handler handler = new Handler();
 private ProgressDialog dialog;

 final Runnable runInUIThread = new Runnable()  {
     public void run() {
         dialog.dismiss();
     }

 };

 private void DoThis() {
     dialog = new ProgressDialog(Main.this);
     dialog.setTitle(Title);
     dialog.setMessage(Text);
     dialog.show();

     Thread newTask = new Thread() {
         @Override
          public void run() {
                 Looper.prepare();
                 DoThat();
                 handler.post(runInUIThread);
                 Looper.loop();
          );
          newTask.start();
        }}

 --- code ---

 Is it possible to use test.setText(something) in this thread to
 update a Button text or TextView in the LinearLayout after the dialog
 is dismissed? I try cheating placing:

 test.setVisibility(View.INVISIBLE);
 test.setText(something);
 test.setVisibility(View.VISIBLE);

 after dialog.show();
 It kind of updated the text when the dialog open. I want to do it
 after the dialog was dismissed. What is the correct way to implement
 this in my thread?

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


[android-developers] Re: Threading confusion

2010-08-18 Thread pohtzeyun
You might want to create a new handler in your main thread to update
all UI stuff cos i think UI updating is not allowed in other threads
besides the main one.

On Aug 18, 1:29 pm, Mystique joven.ch...@gmail.com wrote:
 Hi all, please help me look at my code. Many thanks.

 --- code ---
 private Handler handler = new Handler();
 private ProgressDialog dialog;

 final Runnable runInUIThread = new Runnable()  {
     public void run() {
         dialog.dismiss();
     }

 };

 private void DoThis() {
     dialog = new ProgressDialog(Main.this);
     dialog.setTitle(Title);
     dialog.setMessage(Text);
     dialog.show();

     Thread newTask = new Thread() {
         @Override
          public void run() {
                 Looper.prepare();
                 DoThat();
                 handler.post(runInUIThread);
                 Looper.loop();
          );
          newTask.start();
        }}

 --- code ---

 Is it possible to use test.setText(something) in this thread to
 update a Button text or TextView in the LinearLayout after the dialog
 is dismissed? I try cheating placing:

 test.setVisibility(View.INVISIBLE);
 test.setText(something);
 test.setVisibility(View.VISIBLE);

 after dialog.show();
 It kind of updated the text when the dialog open. I want to do it
 after the dialog was dismissed. What is the correct way to implement
 this in my thread?

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


[android-developers] Decent Reader

2010-08-18 Thread William Ferguson
Slightly off topic (*sorry*). But does anyone know of a good RSS
reader for Android that
1) opens out the full pagefor items (in particular the items from this
group)
2) Uses the Google account on the phone to retrieve from Google groups
instead of making me log in a second time.

All the readers I have tried, display the item headers and even the
overview well, but as soon as I want to read the whole post (at least
for Google groups) it opens up an unreadable page. Everything is
crammed over to the left

Whereas if I receive the posts as an abridged summary via email, when
I click to read the fiull post it opens up in the browser and is easy
to read.

I'd really like to followt his group (and several others) on my phone.
But not being able to read the full article makes that null and void.

Is there a decent reader around?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Can Java code be replaced with XML

2010-08-18 Thread Bhavya
Thanks all for ur feedback's.
Making my question simple Can I map the onClick() event of each
buttons to a launch of an activity, instead of Java in an XML
Some what like what Struts framework does in Web Application.

@Bret: Can u share the code u mentioned.

./bhavya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Can Java code be replaced with XML

2010-08-18 Thread Bhavya
@Dianne: U made my day :)
android:onClick worked for me

./bhavya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Switching between normal view and glsurfaceview (game loading screen)

2010-08-18 Thread Jason
Hi all,

I'm trying to find the best way to implement a loading screen when
using a GLSurfaceView.

Basically the situation is this:

The app (game) loads a bunch of textures into VRAM when the GL surface
is created (onSurfaceCreated), however these textures are only for the
current level of the game.  When the player reaches the end of the
level I need to remove these textures from VRAM and load the new ones.

Previously (during development) each level was a complete load/unload
of the Activity, which works fine, however this creates a bunch of
unnecessary overhead as I don't need to reload the world for a simple
level progression.  So I have been experimenting with different ways
to overlay a standard view (which is my loading screen) over the top
of the GLSurfaceView while the level data is loaded.

This has created some problems for me:

1. Because the GLSurfaceView is not actually destroyed, the
onSurfaceCreated call is only made once and hence the opportunity to
load textures is gone.  To overcome this, I have introduced a flag
into the Renderer thread which will load up the textures in the first
call to onDrawFrame after the level is loaded.  I don't particularly
like this, but can't seen any other solution.

2. I don't seem to be able to find a way to effectively switch views
in my Activity.  I initially set the view (setContentView(...)) to the
loading screen (i.e NOT the GLSurfaceView), then the actual level load
is done asynchronously and when complete calls back to the main
activity thread which then performs a second call to setContentView()
with the GLSurfaceView instance.  This works the first time, but
thereafter I can't seem to get the loading view to become visible.  If
I use setVisibility(View.VISIBLE) on the loading view it doesn't
display, and if I perform a further call to setContentView() my
GLSurfaceView never comes back... that is, after subsequently calling
setContentView with the GLSurfaceView I get nothing displayed... no
errors, but my loading screen basically never disappears.

So.. does anyone out there have a good approach to solving this?  That
is, how to best implement a loading screen to hide the process of
bootstrapping opengl resources etc.

Thanks!

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


[android-developers] Re: Disappearing Alarms

2010-08-18 Thread mot12
That would be the case if the alarm service broadcasts the intent and
no wake lock is acquired.

I was talking about a different situation in which the broadcast of
the alarm intent doesn't happen at the designated time because the
device is in some funky state. The broadcast happens later, when the
user manually turns the display on. (After that, the receiving app
should, of course, acquire a wake lock to process the alarm action but
that is not a problem if properly coded). The problem is that the
broadcast of the alarm intent does not happen at the time for which
the alarm was set (otherwise I would see it in the logs, correct?).
And that is a major problem for alarm clocks.

All users have reported that the problem goes away if the phone
remains plugged in.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: WifiInfo. getLinkSpeed : uplink or downlink?

2010-08-18 Thread Kostya Vasilyev


I've seen my Milestone connect to the router at anything from 24 Mbit to 
64 Mbit. However, getLinkSpeed always returns 54.


So it's sort of a technical specifications page value, since Milestone 
officially only supports 802.11g and that's 54 Mbit / second.


It also has very little relation to the real throughtput. In my testing, 
Milestone can do about 8-10 MBit per second, Galaxy S - about 12-15.


-- Kostya

18.08.2010 4:03, j пишет:

Thanks Bob.

On Aug 10, 2:19 am, Bob Kernsr...@acm.org  wrote:

That's because wifi is symmetric. Same speed in both directions.

It's likely in many cases that there's an asymmetric link in the route
-- certainly HIGHLY likely that there will be something slower. Wifi
is unlikely to be your slowest link, so I really don't see any value
in checking this.

Even if you know you'll be talking to a server on the local network,
wifi is fast enough that even the slowest versions aren't likely to
make a big difference for anything but bulk data transfer, or
situations requiring low latency.

On Aug 9, 5:11 pm, jjac...@gmail.com  wrote:


I need the Wifi link speed for the smaller of uplink speed and
downlink speed.
What does WifiInfo's getLinkSpeed return?  The documentation doesn't
say.  Thanks.



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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


Re: [android-developers] Re: Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 00:55 , DanH wrote:
 You can in theory do java.util.Locale.setDefault within your
 application, to change the apps Locale from whatever the machine
 default is.  Whether/how it works on Android is hard to say.

Tried and for what I've seen it's has problems. For what I've seen it
doesn't change the locale in parts handled by Android (e.g. selection
of xml resources), so even though it would be picked by my code (where
I use Locale.getDefault()) you'd end up with a mix of two Locales,
which doesn't make any sense.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxrk/YACgkQeDweFqgUGxcgvwCffx7MRC8c+u967Ks2UG7s5n0M
j+0An1k4Efw7z6kECk1dNRJhhQs6PhDg
=5YCz
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 test Apps on a variety of devices?

2010-08-18 Thread Droid
My Apps work fine on my N1, but I have no idea what they do on other
devices. This is becoming a worry.

Any way to test them on different devices (without buying them all)?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Switching between normal view and glsurfaceview (game loading screen)

2010-08-18 Thread alan
just render the loading screen in opengl

On Aug 18, 7:56 am, Jason jason.poli...@gmail.com wrote:
 Hi all,

 I'm trying to find the best way to implement a loading screen when
 using a GLSurfaceView.

 Basically the situation is this:

 The app (game) loads a bunch of textures into VRAM when the GL surface
 is created (onSurfaceCreated), however these textures are only for the
 current level of the game.  When the player reaches the end of the
 level I need to remove these textures from VRAM and load the new ones.

 Previously (during development) each level was a complete load/unload
 of the Activity, which works fine, however this creates a bunch of
 unnecessary overhead as I don't need to reload the world for a simple
 level progression.  So I have been experimenting with different ways
 to overlay a standard view (which is my loading screen) over the top
 of the GLSurfaceView while the level data is loaded.

 This has created some problems for me:

 1. Because the GLSurfaceView is not actually destroyed, the
 onSurfaceCreated call is only made once and hence the opportunity to
 load textures is gone.  To overcome this, I have introduced a flag
 into the Renderer thread which will load up the textures in the first
 call to onDrawFrame after the level is loaded.  I don't particularly
 like this, but can't seen any other solution.

 2. I don't seem to be able to find a way to effectively switch views
 in my Activity.  I initially set the view (setContentView(...)) to the
 loading screen (i.e NOT the GLSurfaceView), then the actual level load
 is done asynchronously and when complete calls back to the main
 activity thread which then performs a second call to setContentView()
 with the GLSurfaceView instance.  This works the first time, but
 thereafter I can't seem to get the loading view to become visible.  If
 I use setVisibility(View.VISIBLE) on the loading view it doesn't
 display, and if I perform a further call to setContentView() my
 GLSurfaceView never comes back... that is, after subsequently calling
 setContentView with the GLSurfaceView I get nothing displayed... no
 errors, but my loading screen basically never disappears.

 So.. does anyone out there have a good approach to solving this?  That
 is, how to best implement a loading screen to hide the process of
 bootstrapping opengl resources etc.

 Thanks!

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


[android-developers] Any Open source OpenCellID logger for Android available?

2010-08-18 Thread kristianlm


Hi,

Does anyone know of an open-source OpenCellID logger for Android? We
wish to contribute to opencellid.org in our products. We wish to
integrate such a logger into it - so closed source code isn't an
alternative.

On http://opencellid.org/users/staticShow/download, i cannot find any
clients for Android - but I'm a little surprised, I was expecting at
leaste one open source client for the relatively large open-source
database.

Does anyone have any clues?

Thanks!
K.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Ninepatch Error in Eclipse 3.5.2

2010-08-18 Thread Sarwar Erfan
I am not sure it is a problem of my eyes/monitor or not, but in the
screenshot you posted (http://londatiga.net/draw9.jpg), I can only see
right and bottom 1px borders (and NO left or top borders).
Right and bottom borders are used to define padding inside the view
(for example, when you draw something/put text in it)

I don't see any left or top borders. Left and top borders define the
areas that will be stretched.

Consult this link:
http://www.chinaup.org/docs/reference/available-resources.html#ninepatch

Regards
Sarwar Erfan


On Aug 17, 8:41 am, Lorensius W. L. T lor...@londatiga.net wrote:
 I use photoshop to create png file,save it as PNG-24 then create 9patch
 using draw9patch tool. Here is the screenshoot of draw9patch:

 http://londatiga.net/draw9.jpg

 http://londatiga.net/draw9.jpgThere is red line around the image, is that
 bad patches ? why does it happen?









 On Tue, Aug 17, 2010 at 9:13 AM, Connick oconn...@gmail.com wrote:
  Does it give any specific details? I've only seen this when there was
  something wrong with the markings on the outer 1 pixel border.

  -Stace

  On Mon, Aug 16, 2010 at 8:16 PM, Lorensius W. L. T 
  lor...@londatiga.netwrote:

  Hello All,

  I'm using Eclipse 3.5.2 on win7 with latest sdk update. Every time i
  create ninepatch image and copy it into drawable folders, the project
  becomes error, seems that the file cause error and not supported. Any
  solutions?

  Thanx in advance.

  --
  Kind Regards

  - Lorensius W. L. T -
  -http://www.londatiga.net-

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.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

 --
 Kind Regards

 - Lorensius W. L. T -
 -http://www.londatiga.net-

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


[android-developers] Re: connect to sql server

2010-08-18 Thread Sarwar Erfan
Hi,
Do not try to connect to your SQL server directly from Anroid. Write
some script on your server (or webservice) then call those scripts (or
webservice methods) from your device using Http. Yes, this is an extra
layer between the mobile application and the database, but this is
very effective and proven.

If you have confusion how to do it, here is a hint:
Suppose your table INFO_TABLE is:
NAME   |   EMAIL
==
Erfan | er...@somedomain.com
Sarwar | sar...@someotherdomain.com
~~

Now, you want to connect to DB and execute :   select NAME, EMAIL
from INFO_TABLE where NAME='Erfan' 

Instead of trying to connect directly to the DB server, have a web
server on the DB server (or some server that has network access to DB
server). Put a script (say GetInfo.ashx)
In that file, connect to DB, execute the query. From the query result,
form XML or JSON and return it.

From your android app, you can call the script like:
http://someserver.com/SuperService/GetInfo.ashx?NAME=Erfan

Or, you can use standard SOAP for calling and retrieving data.

=

There are lots of code samples, tutorials available in the internet on
these topics. If you use Google, these are only few clicks away from
you.

Regards
Sarwar Erfan




On Aug 16, 4:23 pm, khalfaoui ameni khalfaoui.am...@gmail.com wrote:
 hello everyone,
 i want to connect to sql server from android but i can't find how...
  I can't seem to find any information on connecting to a SQL Server DB
 to retrieve  add
 data. i find that i must use web service but i don't see how write it
 and how read my sql server database

 please help me.

 Ameni

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 test Apps on a variety of devices?

2010-08-18 Thread String
To some degree (and depending on hardware features your app requires),
you can simulate real devices fairly well with different emulator
configurations. Beyond that, or some sort of beta-test community
(which I'm guessing you don't have), the only way I know of is
http://deviceanywhere.com.

String

On Aug 18, 9:14 am, Droid rod...@gmail.com wrote:
 My Apps work fine on my N1, but I have no idea what they do on other
 devices. This is becoming a worry.

 Any way to test them on different devices (without buying them all)?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 the Activity updated in Pause State.

2010-08-18 Thread chetan
Hi All,
  I have one query.
 In Home Application the timer is running and if any ANR
or Alert or Notify come then this home activity would go in Pause
state but timer is running and visible. How it is happening.
Can anybody explain me how this work.

Thanks
Chetan Chauhan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Switching between normal view and glsurfaceview (game loading screen)

2010-08-18 Thread Miguel Morales
Well, I think the easiest thing for you would be to add an overlay
view on top of your openGL view.
This is fairly easy.

On your activity's onCreate you could do this:

LinearLayout base = new LinearLayout(this);

FrameLayout frame = new FrameLayout(this);
YourGLView gl_view  = new YourGLView(...);

YourOverlayView overlay_view = new YourOverlayView(...);

frame.addView(gl_view);
frame.addView(overlay_view);
base.addView(frame);

setContentView(base);

YourOverlayView can be derived from any view.  I personally extend
ImageView and override the onDraw() method for full control.

On Tue, Aug 17, 2010 at 11:56 PM, Jason jason.poli...@gmail.com wrote:
 Hi all,

 I'm trying to find the best way to implement a loading screen when
 using a GLSurfaceView.

 Basically the situation is this:

 The app (game) loads a bunch of textures into VRAM when the GL surface
 is created (onSurfaceCreated), however these textures are only for the
 current level of the game.  When the player reaches the end of the
 level I need to remove these textures from VRAM and load the new ones.

 Previously (during development) each level was a complete load/unload
 of the Activity, which works fine, however this creates a bunch of
 unnecessary overhead as I don't need to reload the world for a simple
 level progression.  So I have been experimenting with different ways
 to overlay a standard view (which is my loading screen) over the top
 of the GLSurfaceView while the level data is loaded.

 This has created some problems for me:

 1. Because the GLSurfaceView is not actually destroyed, the
 onSurfaceCreated call is only made once and hence the opportunity to
 load textures is gone.  To overcome this, I have introduced a flag
 into the Renderer thread which will load up the textures in the first
 call to onDrawFrame after the level is loaded.  I don't particularly
 like this, but can't seen any other solution.

 2. I don't seem to be able to find a way to effectively switch views
 in my Activity.  I initially set the view (setContentView(...)) to the
 loading screen (i.e NOT the GLSurfaceView), then the actual level load
 is done asynchronously and when complete calls back to the main
 activity thread which then performs a second call to setContentView()
 with the GLSurfaceView instance.  This works the first time, but
 thereafter I can't seem to get the loading view to become visible.  If
 I use setVisibility(View.VISIBLE) on the loading view it doesn't
 display, and if I perform a further call to setContentView() my
 GLSurfaceView never comes back... that is, after subsequently calling
 setContentView with the GLSurfaceView I get nothing displayed... no
 errors, but my loading screen basically never disappears.

 So.. does anyone out there have a good approach to solving this?  That
 is, how to best implement a loading screen to hide the process of
 bootstrapping opengl resources etc.

 Thanks!

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



-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] [Help] How can i get related email info through Google AuthSub token?

2010-08-18 Thread Vincent Tsao
hi there, i can get user Account token from Android AccountManager API, how
can i get the related email info from this AuthSub token? i've found  no
appropriate GData API so far

Why should i do this? i need to make sure the token and email are paired to
avoid a fake token which not related to the email account

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] connect to sql server

2010-08-18 Thread Miguel Morales
You might want to watch this:
http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html
and learn how to create web applications.  It's a basic and widely
used skill as a developer.

On Mon, Aug 16, 2010 at 3:23 AM, khalfaoui ameni
khalfaoui.am...@gmail.com wrote:
 hello everyone,
 i want to connect to sql server from android but i can't find how...
  I can't seem to find any information on connecting to a SQL Server DB
 to retrieve  add
 data. i find that i must use web service but i don't see how write it
 and how read my sql server database

 please help me.

 Ameni

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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



-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] startLayoutAnimation in reverse order

2010-08-18 Thread Klaus Kartou
Hi,

I´m doing a layout animation on my listview where I fade the list
elements into view using a LayoutAnimation with
android:animationOrder=normal.
It works perfectly fine and the elements are faded into view in
top-to-bottom order.
However, if I trigger a layout animation twice (eg call
startLayoutAnimation before the list view has finished animating its
views), the listview performs the new layout animation in reverse
order; bottom-to-top.
Any ideas why this happens or how I can avoid this unwanted behavior?

Cheers

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: NPE on WebView.onWindowFocusChanged

2010-08-18 Thread Sharyu
I also met this issue when launch a new activity to cover a webview.
Can anyone helps?

On 6月29日, 下午10时13分, GJTorikian gjtorik...@gmail.com wrote:
 Howdy--

 I'm getting crash reports from my app out in the wild. Problem is, I
 don't know what's causing it. The only place I'm using WebKit is when
 constructing an -in-app help browser. Here's the full stack trace:

 java.lang.NullPointerException
 at android.webkit.WebView.onWindowFocusChanged(WebView.java:4177)
 at android.view.View.dispatchWindowFocusChanged(View.java:3788)
 at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
 658)
 at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
 662)
 at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
 662)
 at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
 662)
 at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
 662)
 at android.view.ViewRoot.handleMessage(ViewRoot.java:1921)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:123)
 at android.app.ActivityThread.main(ActivityThread.java:4627)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:521)
 at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:868)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
 at dalvik.system.NativeStart.main(Native Method)

 The help browser window takes the full screen, with a bar at the
 bottom for help and done buttons. The only way I can conceive of
 the help window losing focus is if someone clicks outside of the bar,
 or the screen dims. Will catching and throwing the NPE be sufficient
 for eliminating this error, or do I need to add some further metadata
 in the Android Manifest XML?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 setup with exchange server and get email from exchange server

2010-08-18 Thread RKJ (Android developer)
Hi All,

I want to setup with exchange server / Lotus domino server for my
mail, and want email from server, please provide me some link from
there I can understand the method/process.

I want piece of code for this work, If any one have code or link
please provide me.

--Thanks in advance.

--RKJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: make automatic login on application

2010-08-18 Thread Shashidhar
When the login is success full store the credentials in local sqlite
database.
Whenever your app starts it should check this local database first and if
there are already no credentials stored then redirect to login page else to
redirect it to your app's home screen.

Thanks,
Shashidhar

On Wed, Aug 18, 2010 at 11:12 AM, Sarwar Erfan erfanonl...@gmail.comwrote:

 Hi,
 You can use SharedPreferences as Frank mentioned.

 In client:
 When your first activity runs (or may be you can override Application
 and put it in the constructor):
 Check in SharedPreferences whether the registration information exists
 or not.
 If exists, then do not send request to server.
 If does not exist, then get name/email (may be through a activity?)
 and send request to your server.
 When response is got from server, save registration information in
 SharedPreferences


 In server:
 When a request is received, check in database whether the email is
 already registered or not.
 If not registered, then put the record in database.
 If registered, then do not put in database (uninstall-reinstall check)


 Finally, did you really mean if the user has registered with that
 cellphone ? What if the user wants to use the app with same email on
 different devices?
 If you really want to identify in device level (rather than email
 level), then you may want to send and also save in DB the ANDROID_ID
 of the device.

 http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID

 Regards
 Sarwar Erfan


 On Aug 18, 4:16 am, Frank Weiss fewe...@gmail.com wrote:
  I'd use SharedPreferences for that. You will also need to add a use
  case for the user uninstalling and then reinstalling the app. In that
  case, SharedPreferences would be empty, but your server DB would have
  a record of the prior registration.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Playing audio to bluetooth headset

2010-08-18 Thread Anzi
Hi,

Can we play the audio(amr file) to the Bluetooth headset(no A2DP
support) by using android 2.1/2.2 version APIs ?,  If so can you
suggest me which API i have to use to do the same ?.



Regards
Anzi.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Exiting Application

2010-08-18 Thread zero
not possible.
and why would you want to grab some camera stream without displaying
it anyway?

On Aug 18, 7:37 am, perumal316 perumal...@gmail.com wrote:
 I want to keep running my app in the background, my app will be using
 the camera resources so that other apps cannot use the camera while
 the app is running. The camera resources will be released after user
 exits the app.

 On Aug 18, 12:14 pm, Frank Weiss fewe...@gmail.com wrote:

  Would you please study the 
  fundamentals:http://developer.android.com/intl/de/guide/topics/fundamentals.html

  I think you'll get more help if you explain what needs to be running
  at all times in the background. What is happening when it's running?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: QSB on Android help plz?

2010-08-18 Thread sagare
Replies plz?

Thanks,
Sagar

On Aug 17, 3:56 pm, sagare sagar.ekb...@gmail.com wrote:
 Hi Teo,
   Thx for reply but i dont want to use content provider coz my data is
 not persistant its temporary also i want to locate QSB at some
 location in the activity.

 thanks,
 Sagar

 On Aug 17, 3:51 pm, Teo [GD API Guru] teomina...@gmail.com wrote:

  Hi,

  From what i know the content provider isn't instantiated until/unless
  it's needed (someone correct me if i'm wrong).

  On Aug 17, 1:40 pm, sagare sagar.ekb...@gmail.com wrote:

   Hi All,
       I want a to use a Quick Search Box in my application to search my
   application data so in a process of implementing it i went 
   throughhttp://developer.android.com/guide/topics/search/search-dialog.html
   and SearchableDictonary sample in SDk so as per what i got QSB
   requires a content provider for giving suggestion but in my
   application i wish not to have a content provider coz the data on
   which i want to have search is temporary and should not persist So is
   there a way to do this ?  or i have to write my own custom search
   component?

       Also another question I have is is there a way to set a location
   for the QSB dialog within the screen. Please help me in this regards.

   Thanks,
   Sagar



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Exiting Application

2010-08-18 Thread Filip Havlicek
He wants to spy on people.

2010/8/18 zero zeroo...@googlemail.com

 not possible.
 and why would you want to grab some camera stream without displaying
 it anyway?

 On Aug 18, 7:37 am, perumal316 perumal...@gmail.com wrote:
  I want to keep running my app in the background, my app will be using
  the camera resources so that other apps cannot use the camera while
  the app is running. The camera resources will be released after user
  exits the app.
 
  On Aug 18, 12:14 pm, Frank Weiss fewe...@gmail.com wrote:
 
   Would you please study the fundamentals:
 http://developer.android.com/intl/de/guide/topics/fundamentals.html
 
   I think you'll get more help if you explain what needs to be running
   at all times in the background. What is happening when it's running?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: connect to sql server

2010-08-18 Thread khalfaoui ameni
thanks Sarwar Erfan for your answer,but can you tell me how i write
the script and where i put it ??
i tried to write a php script

?php
$myServer = 98.130.0.21;
$myUser = ;
$myPass = **;
$myDB = ##;

//connection to the database
$dbhandle = mssql_connect($myServer, $myUser, $myPass)
  or die(Couldn't connect to SQL Server on $myServer);

//select a database to work with
$selected = mssql_select_db($myDB, $dbhandle)
  or die(Couldn't open database $myDB);

//declare the SQL statement that will query the database
$query = SELECT Id_Famille, Id_filiale, Designation ;
$query .= FROM T_Article ;

while($e=mssql_fetch_assoc($query))
$output[]=$e;

print(json_encode($output));

//close the connection
mssql_close($dbhandle);
?
and i put my scipt in my pc c:/
in my application i write this :
 String result = ;

  ArrayListNameValuePair nameValuePairs = new
ArrayListNameValuePair();

  InputStream is = null;
  //http post
  try{
  HttpClient httpclient = new DefaultHttpClient();
  HttpPost httppost = new HttpPost(http://10.0.2.2/
getAllArticle.php);

  HttpResponse response = httpclient.execute(httppost);
  HttpEntity entity = response.getEntity();
  is = entity.getContent();
  }catch(Exception e){
  Log.e(log_tag, Error in http connection
+e.toString());
  }
  //convert response to string
  try{
  BufferedReader reader = new BufferedReader(new
InputStreamReader(is,iso-8859-1),8);
  StringBuilder sb = new StringBuilder();
  String line = null;
  while ((line = reader.readLine()) != null) {
  sb.append(line + \n);
  }
  is.close();

  result=sb.toString();
  }catch(Exception e){
  Log.e(log_tag, Error converting result
+e.toString());
  }

  //parse json data
  try{
  JSONArray jArray = new JSONArray(result);
  for(int i=0;ijArray.length();i++){
  JSONObject json_data = jArray.getJSONObject(i);
  Log.i(log_tag,id_famille:
+json_data.getString(Id_Famille)+
  , id_filiale:
+json_data.getString(Id_filiale)+
  , designation:
+json_data.getString(Designation )

  );
  }
  }
  catch(JSONException e){
  Log.e(log_tag, Error parsing data +e.toString());
  }
}
but this code don't work
08-18 11:09:51.281: ERROR/log_tag(299): Error in http connection
org.apache.http.NoHttpResponseException: The target server failed to
respond
08-18 11:09:51.281: ERROR/log_tag(299): Error converting result
java.lang.NullPointerException
08-18 11:09:51.311: ERROR/log_tag(299): Error parsing data
org.json.JSONException: End of input at character 0 of

could you please help me to fix it or did you have another way to do
this?

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


[android-developers] retrieve contact's nickname

2010-08-18 Thread TomTasche
Hello,

I've already asked this questions two times at StackOverflow, but I
couldn't figure out how to do it correctly.

I want to read the nickname of a contact saved in user's addressbook.
My actual code looks like this:
http://pastebin.com/33cVVi91

But nickname is always null, although I've set a nickname (also known
as alias)!

Please ask if you need any further information. You can find some
additional information at StackOverflow too:
http://stackoverflow.com/questions/3484117/retrieve-contacts-nickname-part-2

I really don't get it, sorry!

Thank you very much
Tom

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Server Error when saving cc info from Android Market

2010-08-18 Thread Paul
I've opened this issue:

Issue 10261: Multiple users getting Server Error when purchasing apps
in Android Market
http://code.google.com/p/android/issues/detail?id=10261

Developers only: Please post to that issue if your buyers are
experiencing the problem described.

I know we all need to vent, but please don't post to Issue 10261 with
comments about how bad Google is for not handling this. Just stick to
the facts, it will actually work better, trust me.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] provide Custom viewGroup example

2010-08-18 Thread madhusudhan reddy
Hi,

 I am modifying the existing android source code of contacts
appliction.But the problem is i am not able to modify the main contact
list UI.why because they have written entire UI as in class
dynamically by extending ViewGroup class.Can anybody give brief any
small example of extending ViewGroup class.And the methos that are
exist in that class when will be those executed pls give me some
suggestions.

Thanks
Madhusudhan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Animate a single view in sequence

2010-08-18 Thread marmor
Hi, I would like to animate a view I have to appear like it was
sliding off the screen to the left, and then sliding back to the
screen from the right.

I've tried the following animation set:

translate
android:interpolator=@android:anim/
accelerate_decelerate_interpolator
android:fromXDelta=0.0
android:toXDelta=-100%
android:fromYDelta=0.0
android:toYDelta=0.0
android:fillAfter=false
android:duration=1000 /
translate
android:interpolator=@android:anim/
accelerate_decelerate_interpolator
android:fromXDelta=100%
android:toXDelta=0.0
android:fromYDelta=0.0
android:toYDelta=0.0
android:fillAfter=false
android:startOffset=1000
android:duration=1000 /

I've set the duration of the first and the startOffset of the second
as 1000, so the second should start right after the first ends.
Instead I get their order reversed and I see my view sliding from
right into the screen, and then sliding off the screen to the left.

Reversing the animations order didn't do anything.

Anyone got a clue why is this happening, and how can I do what I want?

Thanks.

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


Re: [android-developers] Re: connect to sql server

2010-08-18 Thread Chris Stewart
Instead of putting it on C, you'll need to put it in the context of a web
server that can handle PHP.  IIS, or Apache, for example.
--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for fantasy football fanatics and MFL owners
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Wed, Aug 18, 2010 at 7:51 AM, khalfaoui ameni
khalfaoui.am...@gmail.comwrote:

 thanks Sarwar Erfan for your answer,but can you tell me how i write
 the script and where i put it ??
 i tried to write a php script

 ?php
 $myServer = 98.130.0.21;
 $myUser = ;
 $myPass = **;
 $myDB = ##;

 //connection to the database
 $dbhandle = mssql_connect($myServer, $myUser, $myPass)
  or die(Couldn't connect to SQL Server on $myServer);

 //select a database to work with
 $selected = mssql_select_db($myDB, $dbhandle)
  or die(Couldn't open database $myDB);

 //declare the SQL statement that will query the database
 $query = SELECT Id_Famille, Id_filiale, Designation ;
 $query .= FROM T_Article ;

 while($e=mssql_fetch_assoc($query))
$output[]=$e;

 print(json_encode($output));

 //close the connection
 mssql_close($dbhandle);
 ?
 and i put my scipt in my pc c:/
 in my application i write this :
  String result = ;

  ArrayListNameValuePair nameValuePairs = new
 ArrayListNameValuePair();

  InputStream is = null;
  //http post
  try{
  HttpClient httpclient = new DefaultHttpClient();
  HttpPost httppost = new HttpPost(http://10.0.2.2/
 getAllArticle.php);

  HttpResponse response = httpclient.execute(httppost);
  HttpEntity entity = response.getEntity();
  is = entity.getContent();
  }catch(Exception e){
  Log.e(log_tag, Error in http connection
 +e.toString());
  }
  //convert response to string
  try{
  BufferedReader reader = new BufferedReader(new
 InputStreamReader(is,iso-8859-1),8);
  StringBuilder sb = new StringBuilder();
  String line = null;
  while ((line = reader.readLine()) != null) {
  sb.append(line + \n);
  }
  is.close();

  result=sb.toString();
  }catch(Exception e){
  Log.e(log_tag, Error converting result
 +e.toString());
  }

  //parse json data
  try{
  JSONArray jArray = new JSONArray(result);
  for(int i=0;ijArray.length();i++){
  JSONObject json_data = jArray.getJSONObject(i);
  Log.i(log_tag,id_famille:
 +json_data.getString(Id_Famille)+
  , id_filiale:
 +json_data.getString(Id_filiale)+
  , designation:
 +json_data.getString(Designation )

  );
  }
  }
  catch(JSONException e){
  Log.e(log_tag, Error parsing data +e.toString());
  }
}
 but this code don't work
 08-18 11:09:51.281: ERROR/log_tag(299): Error in http connection
 org.apache.http.NoHttpResponseException: The target server failed to
 respond
 08-18 11:09:51.281: ERROR/log_tag(299): Error converting result
 java.lang.NullPointerException
 08-18 11:09:51.311: ERROR/log_tag(299): Error parsing data
 org.json.JSONException: End of input at character 0 of

 could you please help me to fix it or did you have another way to do
 this?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 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 test Apps on a variety of devices?

2010-08-18 Thread Maps.Huge.Info (Maps API Guru)
I have found the emulator to be useful for testing the screen sizes
but little else. The emulator is fine for basic functionality tests
but it is woefully inadequate for determining if an app will run
without crashing on any particular device. Each manufacturer has added
their own sauce to the OS. Each device has its peculiarities and
oddities. The only sure way to know if your app is going to run on it
is to see for yourself. Of course, you can play the wait and see game
to find out by reading the market comments or feedback e-mails from
users. I prefer to be proactive. Google in the past has been great in
seeding the community of developers with devices. I hope they
continue doing this.

It's pretty easy to develop a beta test community. I added a Looking
for beta testers message to my help text and got about a 1% response
from users who were willing to do so. This has been very helpful in
creating updates that don't crash and work on all devices. For my last
update of Radar Now! I had over 200 testers run the beta and a few
surprises were uncovered and fixed as a result. This is a heck of a
lot cheaper than owning the 50+ devices that Android runs on.

Another method that worked for me was to advertise in the app that I
was looking for a specific problematic device to test the app on. When
the DROIDX first came out, I got reports that some of the functions
didn't work. I put a location specific ad on the app that only showed
in my area and within a few days I got two volunteers offering help. I
met one of them at a local Starbucks and tested it out. While this
type of ad may not be possible in most apps, it does demonstrate that
with a little initiative and clever thinking, you can solve a lot of
these issues without actually owning the device.

A third possibility, would be to establish a relationship with your
local offices of the carriers. Most Verizon, ATT, Sprint and other
carrier stores have demo units available for potential customers. If
you can establish a working relationship with those stores, you can
test your apps on their demo units for free.

-John Coryat

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


[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Maps.Huge.Info (Maps API Guru)

 Do you think this should be logged at code.google.com as an issue. I
 did as search for ANDROID_ID there and nothing came up.


I think the right people are looking into this problem. Hopefully, it
will turn out to be easy to correct.

-John Coryat

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


Re: [android-developers] Re: How to test Apps on a variety of devices?

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 16:37 , Maps.Huge.Info (Maps API Guru) wrote:
 I have found the emulator to be useful for testing the screen sizes
 but little else. The emulator is fine for basic functionality tests
 but it is woefully inadequate for determining if an app will run
 without crashing on any particular device.
...

I second John's words. The emulator is just a gross filter for trivial
problems. In addition to his advices, I'd suggest to check out the
local Java User Group (JUG) to seek for help. There's usually a number
of JUG members who own an Android phone and I've been helped in a few
cases thanks to this channel.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxr8fcACgkQeDweFqgUGxcy0QCgtJ0jomeuYBBNLePWJ2wvhgrN
b1gAn1fMv7iwpkHuIdjL2+JJKDYdAhR8
=lXpn
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: make automatic login on application

2010-08-18 Thread Pedro Teixeira
thank you very much for the replies, I'll digg up on the
SharedPreferences.
Sarwar you are right, I want the user to be able to use the
application in any device with his email. I would just like him not to
perform login every time.
Basically like danH mentioned about a browser. Lets say a website like
facebook. If u register, login and save password it will recognize the
user.. otherwise the user can logout.

Anyway thanks for the messages, I'll try to find some code to get me
started on the client side.

Cheers

On Aug 18, 11:14 am, Shashidhar shashi.zep...@gmail.com wrote:
 When the login is success full store the credentials in local sqlite
 database.
 Whenever your app starts it should check this local database first and if
 there are already no credentials stored then redirect to login page else to
 redirect it to your app's home screen.

 Thanks,
 Shashidhar

 On Wed, Aug 18, 2010 at 11:12 AM, Sarwar Erfan erfanonl...@gmail.comwrote:



  Hi,
  You can use SharedPreferences as Frank mentioned.

  In client:
  When your first activity runs (or may be you can override Application
  and put it in the constructor):
  Check in SharedPreferences whether the registration information exists
  or not.
  If exists, then do not send request to server.
  If does not exist, then get name/email (may be through a activity?)
  and send request to your server.
  When response is got from server, save registration information in
  SharedPreferences

  In server:
  When a request is received, check in database whether the email is
  already registered or not.
  If not registered, then put the record in database.
  If registered, then do not put in database (uninstall-reinstall check)

  Finally, did you really mean if the user has registered with that
  cellphone ? What if the user wants to use the app with same email on
  different devices?
  If you really want to identify in device level (rather than email
  level), then you may want to send and also save in DB the ANDROID_ID
  of the device.

 http://developer.android.com/reference/android/provider/Settings.Secu...

  Regards
  Sarwar Erfan

  On Aug 18, 4:16 am, Frank Weiss fewe...@gmail.com wrote:
   I'd use SharedPreferences for that. You will also need to add a use
   case for the user uninstalling and then reinstalling the app. In that
   case, SharedPreferences would be empty, but your server DB would have
   a record of the prior registration.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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 at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to position buttons in a linear layout?

2010-08-18 Thread ericmahlon
I have an image that will have 5 different areas that will be
clickable.  Each clickable area will be invisible and play a
different sound.  I was told not to use an absolute layout, and use a
linear layout instead.

However, I am now having an issue with placing the buttons over the
picture. The linear layout does not allow me to position them
correctly where they need to go.

How do I properly position a button so that it is over a certain part
of the image?

Thanks

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


Re: [android-developers] Re: Exiting Application

2010-08-18 Thread Chris Stewart
Certainly sounds like it.

Why would you want to take the camera resources, indefinitely, without
letting other applications use it?  I'd be really curious to see your actual
application idea but I have a feeling it's not a good idea...

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for fantasy football fanatics and MFL owners
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Wed, Aug 18, 2010 at 7:40 AM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 He wants to spy on people.

 2010/8/18 zero zeroo...@googlemail.com

 not possible.
 and why would you want to grab some camera stream without displaying
 it anyway?

 On Aug 18, 7:37 am, perumal316 perumal...@gmail.com wrote:
  I want to keep running my app in the background, my app will be using
  the camera resources so that other apps cannot use the camera while
  the app is running. The camera resources will be released after user
  exits the app.
 
  On Aug 18, 12:14 pm, Frank Weiss fewe...@gmail.com wrote:
 
   Would you please study the fundamentals:
 http://developer.android.com/intl/de/guide/topics/fundamentals.html
 
   I think you'll get more help if you explain what needs to be running
   at all times in the background. What is happening when it's running?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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

[android-developers] map that open an overlay when a pin is clicked and the overlay contains description and button

2010-08-18 Thread Davide
Hi,

I like tu use the MapActivity to display some pins. When a pin is
pressed i like to open a description.

This can I obtain following the tutorial:

http://developer.android.com/resources/tutorials/views/hello-mapview.html

But now I like to put a button on the overlay window. That button should open
a detail activity. How can I make this?

How is possible to personalize the overlay info window?

-- 
  _|  _.    o  _|  _
 (_| (_| \/ | (_| (/_

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Efficient screen updates for games

2010-08-18 Thread Tomasz
Hi All,
I'm writing a game which involves updating a SurfaceView very often.
This is working fine, but I would prefer if there was a way to only
update a sub rectangle of the screen each time, as opposed to the
whole screen. I know you can do this
with bitmaps, but my animation is operating on a raw colour array
(int[]) and I'm trying to avoid creating a bitmap everytime. As far as
I can see, canvas doesn't have an equivalent method for painting a
subrectangle of an int[].

Thanks,
Tomasz

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Nathan
Great. I can just wait to see if angry customers ask why their trial
is already over.

Nonetheless, I couldn't find 9774d56d682e549c among my trial users.
Maybe no Droid 2s have tried it yet.

I'm using this as the id but I believe it does the same as ANDROID_ID.


TelephonyManager manager =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);

String imei = manager.getDeviceId();

Nathan


On Aug 18, 7:41 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
  Do you think this should be logged at code.google.com as an issue. I
  did as search for ANDROID_ID there and nothing came up.

 I think the right people are looking into this problem. Hopefully, it
 will turn out to be easy to correct.

 -John Coryat

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


Re: [android-developers] How to position buttons in a linear layout?

2010-08-18 Thread Kostya Vasilyev
 RelativeLayout is more flexible, and can do what AbsoluteLayout can 
do, and more.


http://developer.android.com/reference/android/widget/RelativeLayout.html

To place views on top of one another you can also use FrameLayout, 
positioning these frame layouts in their parent layout:


http://developer.android.com/reference/android/widget/FrameLayout.html

-- Kostya

18.08.2010 19:11, ericmahlon пишет:

I have an image that will have 5 different areas that will be
clickable.  Each clickable area will be invisible and play a
different sound.  I was told not to use an absolute layout, and use a
linear layout instead.

However, I am now having an issue with placing the buttons over the
picture. The linear layout does not allow me to position them
correctly where they need to go.

How do I properly position a button so that it is over a certain part
of the image?

Thanks




--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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


Re: [android-developers] How to position buttons in a linear layout?

2010-08-18 Thread Filip Havlicek
Hi,

I think that what you want to do is put the image inside some container and
add onClick listener to that container. Inside the listener you get x/y
coordinates of the click and match it with the x/y coordinates of image
parts you want to be clickable. If match is found, play appropriate sound.

No buttons involved.

Best regards,
Filip Havlicek

2010/8/18 ericmahlon ericmah...@hotmail.com

 I have an image that will have 5 different areas that will be
 clickable.  Each clickable area will be invisible and play a
 different sound.  I was told not to use an absolute layout, and use a
 linear layout instead.

 However, I am now having an issue with placing the buttons over the
 picture. The linear layout does not allow me to position them
 correctly where they need to go.

 How do I properly position a button so that it is over a certain part
 of the image?

 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Kostya Vasilyev

 Nathan,

The docs say that getDeviceId is the IMEI for GSM or its equivalent for 
CDMA devices.


Glad it works for you, but I have two issues with this:

1 - It requires a special permission, for no good reason from users' 
point of view (unless the app already needs this).


2 - There might be devices that don't return the IMEI correctly, just 
like the DROID 2 doesn't generate the ANDROID_ID correctly.


Note that using the right IMEI value in the low-level cellular radio 
code (so phone calls work) and returning it all the way to application 
layer are two different things, at least it would seem that way.


-- Kostya

18.08.2010 19:39, Nathan пишет:

Great. I can just wait to see if angry customers ask why their trial
is already over.

Nonetheless, I couldn't find 9774d56d682e549c among my trial users.
Maybe no Droid 2s have tried it yet.

I'm using this as the id but I believe it does the same as ANDROID_ID.


TelephonyManager manager =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);

String imei = manager.getDeviceId();

Nathan


On Aug 18, 7:41 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com  wrote:

Do you think this should be logged at code.google.com as an issue. I
did as search for ANDROID_ID there and nothing came up.

I think the right people are looking into this problem. Hopefully, it
will turn out to be easy to correct.

-John Coryat



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Nathan
I haven't seen that number yet. I'm still waiting for angry users
wondering why their trial expired already.

This is the code I use, but I think it returns the same as ANDROID_ID

TelephonyManager manager =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);

String imei = manager.getDeviceId();

Nathan

On Aug 18, 7:41 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
  Do you think this should be logged at code.google.com as an issue. I
  did as search for ANDROID_ID there and nothing came up.

 I think the right people are looking into this problem. Hopefully, it
 will turn out to be easy to correct.

 -John Coryat

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


[android-developers] Re: Can Java code be replaced with XML

2010-08-18 Thread Bret Foreman
Sure. It's shown below, a little modified for your case:

public class FiftyButtonActivity extends Activity {

// Button IDs
final static private int[] buttonIDs = {
R.id.BID1,
R.id.BID2 ,
...
R.id.BID50
};

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

for( int index = 0 ; index  buttonIDs.length ; index++ ) {
Button button = (Button) findViewById( buttonIDs 
[index] );
button.setOnClickListener( new View.OnClickListener() {
public void onClick(View v) {
doWork( buttonIDs[index] );
}
});
}

void doWork( int id ) {
 switch( id ) {
 case R.id.BID1:
 // special work for this button
 break;

 case R.id.BID2:
 // special work for this button
 break;


 case R.id.BID50:
 // special work for this button
 break;

 default:
 // error case
 }
 }
}

On Aug 17, 11:32 pm, Bhavya bhavs...@gmail.com wrote:
 Thanks all for ur feedback's.
 Making my question simple Can I map the onClick() event of each
 buttons to a launch of an activity, instead of Java in an XML
 Some what like what Struts framework does in Web Application.

 @Bret: Can u share the code u mentioned.

 ./bhavya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 ParserConfigurationException when trying to insert a new Calendar.

2010-08-18 Thread Bender
I'm trying to get the google calendar api example running and I'm
receiving a similar error:

08-18 15:36:50.407: WARN/XmlParser(295):
javax.xml.parsers.ParserConfigurationException:
org.xml.sax.SAXNotRecognizedException: 
http://xml.org/sax/features/external-parameter-entities
...
08-18 15:36:50.427: WARN/System.err(295):
com.google.gdata.util.ParseException:
org.xml.sax.SAXNotRecognizedException: 
http://xml.org/sax/features/external-parameter-entities


I'm using the code provided at this tutorial page:
http://code.google.com/intl/de-DE/apis/calendar/data/2.0/developers_guide_java.html#GettingStarted
, the Retrieving only calendars that a user owns example. Do I need
special libraries for android which aren't mentioned there because
it's something android specific?



On 30 Jun., 18:47, Tushar tushar.maha...@gmail.com wrote:
 Hi ,

  I am developing an Android app which creates a newcalendaron the
 google server.
  Though thecalendardoes get created, I get an exception .
  This is how I insert thecalendar.

 CalendarService service = new CalendarService(CalendarFeed`);
 CalendarEntrycalendar= new CalendarEntry();
 //Some code
 URL postUrl = new URL(
                                 http://www.google.com/calendar/feeds/
 default/owncalendars/full);
 service.insert(postUrl,calendar);

 After thecalendargets inserted , I get the following exception

 WARN/dalvikvm(922): VFY: unable to resolve virtual method 16724:
 Ljavax/xml/parsers/SAXParserFactory;.getSchema ()Ljavax/xml/validation/
 Schema;
 WARN/dalvikvm(922): VFY: unable to find class referenced in signature
 (Ljavax/xml/validation/Schema;)
 WARN/dalvikvm(922): VFY: unable to resolve virtual method 16732:
 Ljavax/xml/parsers/SAXParserFactory;.setSchema (Ljavax/xml/validation/
 Schema;)V
 WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/XmlParser(922): at
 org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:
 84)
 WARN/XmlParser(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:682)
 WARN/XmlParser(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
 WARN/XmlParser(922): at
 com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 59)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 39)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
 100)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
 52)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 66)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 34)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2165)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2098)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.insert(Service.java:1410)
 WARN/XmlParser(922): at
 com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
 WARN/XmlParser(922): at
 NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
 WARN/XmlParser(922): at
 NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113)
 WARN/XmlParser(922): at NewCalendar.access
 $2(SetupCalendarNameActivity.java:104)
 WARN/XmlParser(922): at NewCalendar
 $3$1.run(SetupCalendarNameActivity.java:97)
 WARN/XmlParser(922): at java.lang.Thread.run(Thread.java:1096)
 WARN/System.err(922): com.google.gdata.util.ParseException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/System.err(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:708)
 WARN/System.err(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
 WARN/System.err(922): at
 com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 59)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 39)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
 100)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
 52)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 66)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 34)
 

[android-developers] The onAnimationEnded() event is unreliable

2010-08-18 Thread avigadl
By looking at the code of the ViewGroup class at the function
private void finishAnimatingView(final View view, Animation animation)
{}
it is clear that after the animation ended the view goes through  last
revalidation process.

I suspect that this cause a major bug since we get this event before
the actual animation is ended. The side effect is annoying flickering.

In any case, the question is how to get the real end of animation
event?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] map that open an overlay when a pin is clicked and the overlay contains description and button

2010-08-18 Thread TreKing
On Wed, Aug 18, 2010 at 10:24 AM, Davide d...@vide.bz wrote:

 How is possible to personalize the overlay info window?


It's a view like any other - you can put a linear layout in there that has a
button.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Exiting Application

2010-08-18 Thread feweiss
Well, it seems like your main issue is how to use and/or maintain an
exclusion lock on the camera without your application having an
activity in the foreground. Have you solved that?

As for the exit an application (I still think that's the wrong way
to say it), the nice way would be to add a pending intent, which
displays a notification icon. This reminds the user the camera is
locked and provides a handy access to the unlock activity. In any
case, in order to unlock the camera, the user needs to start an
activity in your application that performs the unlock. Thinking of the
camera lock as a state of the application/device is much better IMO
than thinking that the application is running.

The other way is to force stop the application from the Manage
Applications control panel.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Pros/cons of multiple activities in an app vs. one activity, multiple views

2010-08-18 Thread Leigh McRae
 If your application is going to target other platforms then using more 
than one activity will be more work for the ports.


Leigh

On 8/16/2010 11:38 PM, David wrote:

Are there design guidelines to help decide if an application with
multiple views should be designed with multiple activities or just one
activity and control the back button itself.

I've tried both. My most complex applications using one activity per
screen. However, now that I'm successfully written an app with just
one activity and handling the back button myself, I don't see any
compelling reason to use multiple activities. The one activity
application is much simpler and more straightforward.

What advantages of multiple activities am I missing?

Thanks



--
Leigh McRae
www.lonedwarfgames.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: Server Error when saving cc info from Android Market

2010-08-18 Thread String
Yeah, sorry about the rant. I have now starred that issue, and I
encourage anyone here with apps on the Market to do the same.

String

On Aug 18, 1:16 pm, Paul idi...@gmail.com wrote:
 I've opened this issue:

 Issue 10261: Multiple users getting Server Error when purchasing apps
 in Android Markethttp://code.google.com/p/android/issues/detail?id=10261

 Developers only: Please post to that issue if your buyers are
 experiencing the problem described.

 I know we all need to vent, but please don't post to Issue 10261 with
 comments about how bad Google is for not handling this. Just stick to
 the facts, it will actually work better, trust me.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Kostya Vasilyev

 No, this is different.

IMEI is assigned to every phone before it leaves the factory, and 
doesn't change during its lifetime. It's often printed on the box.


ANDROID_ID is generated by Android, and can change (e.g. when settings 
are reset).


If it works for you, it's great, but I would like to see a solution 
that's not tied to the telephony stack. There are devices without a 
phone radio at all.


-- Kostya

18.08.2010 19:49, Nathan пишет:

I haven't seen that number yet. I'm still waiting for angry users
wondering why their trial expired already.

This is the code I use, but I think it returns the same as ANDROID_ID

TelephonyManager manager =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);

String imei = manager.getDeviceId();

Nathan

On Aug 18, 7:41 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com  wrote:

Do you think this should be logged at code.google.com as an issue. I
did as search for ANDROID_ID there and nothing came up.

I think the right people are looking into this problem. Hopefully, it
will turn out to be easy to correct.

-John Coryat



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Sarwar Erfan


On Aug 18, 10:25 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 IMEI is assigned to every phone before it leaves the factory, and
 doesn't change during its lifetime. It's often printed on the box.

Offtopic: We have thousands of non-brand phones with EXACT SAME IMEI
in our market --- all are imported from a single country.
The phones are cheap :)

Regards
Sarwar Erfan





 -- Kostya


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 invoke another application on a Button Click?

2010-08-18 Thread dillipk
Hello,
- How do we invoke another application installed in the device?
- How to invoke the browser on a url link click?


Thank you..

Regds,
DK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 the Activity updated in Pause State.

2010-08-18 Thread TreKing
On Wed, Aug 18, 2010 at 4:36 AM, chetan chetanchauha...@gmail.com wrote:

  In Home Application the timer is running


What is the timer ... ?


 and if any ANR or Alert or Notify come then this home activity would go in
 Pause state


What alert or notify? What Pause state?


  but timer is running and visible.


Visible where? I've never seen any timer on my home screen.


 How it is happening.


How is what happening?


  Can anybody explain me how this work.


Can you explain what you're talking about?

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 ParserConfigurationException when trying to insert a new Calendar.

2010-08-18 Thread RichardC
I can't find CalendarService anywhere in the docs, are you sure it is
a supported class ?

On Jun 30, 5:47 pm, Tushar tushar.maha...@gmail.com wrote:
 Hi ,

  I am developing an Android app which creates a new calendar on the
 google server.
  Though the calendar does get created, I get an exception .
  This is how I insert the calendar.

 CalendarService service = new CalendarService(CalendarFeed`);
 CalendarEntry calendar = new CalendarEntry();
 //Some code
 URL postUrl = new URL(
                                 http://www.google.com/calendar/feeds/
 default/owncalendars/full);
 service.insert(postUrl, calendar);

 After the calendar gets inserted , I get the following exception

 WARN/dalvikvm(922): VFY: unable to resolve virtual method 16724:
 Ljavax/xml/parsers/SAXParserFactory;.getSchema ()Ljavax/xml/validation/
 Schema;
 WARN/dalvikvm(922): VFY: unable to find class referenced in signature
 (Ljavax/xml/validation/Schema;)
 WARN/dalvikvm(922): VFY: unable to resolve virtual method 16732:
 Ljavax/xml/parsers/SAXParserFactory;.setSchema (Ljavax/xml/validation/
 Schema;)V
 WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/XmlParser(922): at
 org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:
 84)
 WARN/XmlParser(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:682)
 WARN/XmlParser(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
 WARN/XmlParser(922): at
 com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 59)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 39)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
 100)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
 52)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 66)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 34)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2165)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2098)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.insert(Service.java:1410)
 WARN/XmlParser(922): at
 com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
 WARN/XmlParser(922): at
 NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
 WARN/XmlParser(922): at
 NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113)
 WARN/XmlParser(922): at NewCalendar.access
 $2(SetupCalendarNameActivity.java:104)
 WARN/XmlParser(922): at NewCalendar
 $3$1.run(SetupCalendarNameActivity.java:97)
 WARN/XmlParser(922): at java.lang.Thread.run(Thread.java:1096)
 WARN/System.err(922): com.google.gdata.util.ParseException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/System.err(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:708)
 WARN/System.err(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
 WARN/System.err(922): at
 com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 59)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 39)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
 100)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
 52)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 66)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 34)
 WARN/System.err(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2165)
 WARN/System.err(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2098)
 WARN/System.err(922): at
 com.google.gdata.client.Service.insert(Service.java:1410)
 WARN/System.err(922): at
 com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
 WARN/System.err(922): at
 NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
 WARN/System.err(922): at
 NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113)
 WARN/System.err(922): at NewCalendar.access
 $2(SetupCalendarNameActivity.java:104)
 WARN/System.err(922): at NewCalendar
 

[android-developers] Re: Getting ParserConfigurationException when trying to insert a new Calendar.

2010-08-18 Thread RichardC
may have found something:
http://www.google.com/support/forum/p/apps-apis/thread?tid=0ae0796f8b5eaa46hl=en


On Jun 30, 5:47 pm, Tushar tushar.maha...@gmail.com wrote:
 Hi ,

  I am developing an Android app which creates a new calendar on the
 google server.
  Though the calendar does get created, I get an exception .
  This is how I insert the calendar.

 CalendarService service = new CalendarService(CalendarFeed`);
 CalendarEntry calendar = new CalendarEntry();
 //Some code
 URL postUrl = new URL(
                                 http://www.google.com/calendar/feeds/
 default/owncalendars/full);
 service.insert(postUrl, calendar);

 After the calendar gets inserted , I get the following exception

 WARN/dalvikvm(922): VFY: unable to resolve virtual method 16724:
 Ljavax/xml/parsers/SAXParserFactory;.getSchema ()Ljavax/xml/validation/
 Schema;
 WARN/dalvikvm(922): VFY: unable to find class referenced in signature
 (Ljavax/xml/validation/Schema;)
 WARN/dalvikvm(922): VFY: unable to resolve virtual method 16732:
 Ljavax/xml/parsers/SAXParserFactory;.setSchema (Ljavax/xml/validation/
 Schema;)V
 WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/XmlParser(922): at
 org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:
 84)
 WARN/XmlParser(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:682)
 WARN/XmlParser(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
 WARN/XmlParser(922): at
 com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 59)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 39)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
 100)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
 52)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 66)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 34)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2165)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2098)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.insert(Service.java:1410)
 WARN/XmlParser(922): at
 com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
 WARN/XmlParser(922): at
 NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
 WARN/XmlParser(922): at
 NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113)
 WARN/XmlParser(922): at NewCalendar.access
 $2(SetupCalendarNameActivity.java:104)
 WARN/XmlParser(922): at NewCalendar
 $3$1.run(SetupCalendarNameActivity.java:97)
 WARN/XmlParser(922): at java.lang.Thread.run(Thread.java:1096)
 WARN/System.err(922): com.google.gdata.util.ParseException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/System.err(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:708)
 WARN/System.err(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
 WARN/System.err(922): at
 com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 59)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 39)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
 100)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
 52)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 66)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 34)
 WARN/System.err(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2165)
 WARN/System.err(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2098)
 WARN/System.err(922): at
 com.google.gdata.client.Service.insert(Service.java:1410)
 WARN/System.err(922): at
 com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
 WARN/System.err(922): at
 NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
 WARN/System.err(922): at
 NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113)
 WARN/System.err(922): at NewCalendar.access
 $2(SetupCalendarNameActivity.java:104)
 WARN/System.err(922): at NewCalendar
 

Re: [android-developers] Pros/cons of multiple activities in an app vs. one activity, multiple views

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


It's partly subjective, of course. Another advantage of multiple
activities is the inter-app integration, or expandability. For
instance, splitting into activities and using implicit intents, you
are effectively creating public integration points for your
application, that could be used by other applications.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsFXIACgkQeDweFqgUGxccCgCgg7vB68PYmjQ3uE7LyodxMnQX
Z4UAn3ootEvqGQdDafBFhTJEskEal59r
=Hwc1
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Kostya Vasilyev
 How do they connect to the cellular network if they all have the same 
IMEI?


Or do they?

-- Kostya

18.08.2010 21:02, Sarwar Erfan пишет:


On Aug 18, 10:25 pm, Kostya Vasilyevkmans...@gmail.com  wrote:

IMEI is assigned to every phone before it leaves the factory, and
doesn't change during its lifetime. It's often printed on the box.

Offtopic: We have thousands of non-brand phones with EXACT SAME IMEI
in our market --- all are imported from a single country.
The phones are cheap :)

Regards
Sarwar Erfan





-- Kostya




--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Nathan


On Aug 18, 9:25 am, Kostya Vasilyev kmans...@gmail.com wrote:
   No, this is different.

 IMEI is assigned to every phone before it leaves the factory, and
 doesn't change during its lifetime. It's often printed on the box.

 ANDROID_ID is generated by Android, and can change (e.g. when settings
 are reset).

 If it works for you, it's great, but I would like to see a solution
 that's not tied to the telephony stack. There are devices without a
 phone radio at all.

 -- Kostya

I don't have enough data to know if I have this solved. I'm worried
about devices that don't have a phone radio too.

But I would also be worried about and ANDROID_ID if it changes often,
or, in the case of Droid 2, not changing enough.

Nathan



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Seni Sangrujee
If this helps, here's what I'm seeing with my apps with the magic
ANDROID_ID=9774d56d682e549c


App #1 tracking urlConnection.getRequestProperty(User-Agent)
7-14 [***.mycingular.net] Dalvik/1.2.0 (Linux; U; Android 2.2; MSM
Build/MASTER)
8-14 (***.myvzw.com] Dalvik/1.2.0 (Linux; U; Android 2.2; DROID2 Build/
VZW)
8-15 [***.myvzw.com] Dalvik/1.2.0 (Linux; U; Android 2.2; DROID2 Build/
VZW)
8-15 [***.myvzw.com] Dalvik/1.2.0 (Linux; U; Android 2.2; DROID2 Build/
VZW)
8-16 [***.myvzw.com] Dalvik/1.2.0 (Linux; U; Android 2.2; DROID2 Build/
VZW)
8-16 [***.myvzw.com] Dalvik/1.2.0 (Linux; U; Android 2.2; DROID2 Build/
VZW)
8-17 [***.myvzw.com] Dalvik/1.2.0 (Linux; U; Android 2.2; DROID2 Build/
VZW)

App #2 tracking android.os.Build.BRAND/PRODUCT/DEVICE/MODEL
8-4 [***.tmodns.net] hkcsl_cht/htc_bravo/bravo/HTC Desire
8-11 [???] Dalvik/1.2.0 (Linux; U; Android 2.2; thunderc Build/MASTER)
8-14 [***.clearwire-wmx.net] htc_wwe/htc_bravo/bravo/HTC Desire

App #3 tracking android.os.Build.BRAND/PRODUCT/DEVICE/MODEL
8-13 [***.myvzw.com] verizon/droid2_vzw/cdma_droid2/DROID2
8-14 [***.myvzw.com] verizon/droid2_vzw/cdma_droid2/DROID2
8-16 [***.myvzw.com] verizon/droid2_vzw/cdma_droid2/DROID2
8-16 [***.myvzw.com] verizon/droid2_vzw/cdma_droid2/DROID2


-seni

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread DanH
But at least the IMEI is more likely to be unique, since telephone
connections depend on it, and checking its uniqueness (and
correspondence to the printed label) is probably written into some
stringent phone qualification tests.

On Aug 18, 10:49 am, Kostya Vasilyev kmans...@gmail.com wrote:
   Nathan,

 The docs say that getDeviceId is the IMEI for GSM or its equivalent for
 CDMA devices.

 Glad it works for you, but I have two issues with this:

 1 - It requires a special permission, for no good reason from users'
 point of view (unless the app already needs this).

 2 - There might be devices that don't return the IMEI correctly, just
 like the DROID 2 doesn't generate the ANDROID_ID correctly.

 Note that using the right IMEI value in the low-level cellular radio
 code (so phone calls work) and returning it all the way to application
 layer are two different things, at least it would seem that way.

 -- Kostya

 18.08.2010 19:39, Nathan пишет:



  Great. I can just wait to see if angry customers ask why their trial
  is already over.

  Nonetheless, I couldn't find 9774d56d682e549c among my trial users.
  Maybe no Droid 2s have tried it yet.

  I'm using this as the id but I believe it does the same as ANDROID_ID.

             TelephonyManager manager =
  (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);

             String imei = manager.getDeviceId();

  Nathan

  On Aug 18, 7:41 am, Maps.Huge.Info (Maps API Guru)
  cor...@gmail.com  wrote:
  Do you think this should be logged at code.google.com as an issue. I
  did as search for ANDROID_ID there and nothing came up.
  I think the right people are looking into this problem. Hopefully, it
  will turn out to be easy to correct.

  -John Coryat

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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] Sound levels

2010-08-18 Thread Neilz
Hi all.

A common complaint with my app is that the sound is too low. I don't
know what I can do to improve this.

- I use SoundPool, and believe I am setting each sound to its maximum
volume

- I edit my sound files in Audacity, and use the normalization/
amplification tools to maximize them to as much as I can before they
start to cause popping/crackling.

- They are saved and played back as ogg files.

I don't know anything else I can do? Any ideas please?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Maps.Huge.Info (Maps API Guru)
I'm relieved to see that I'm not the only one who's seeing the magic
ANDROID_ID problem.

-John Coryat

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


[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Sarwar Erfan


On Aug 18, 11:18 pm, Kostya Vasilyev kmans...@gmail.com wrote:
   How do they connect to the cellular network if they all have the same
 IMEI?

 Or do they?

They do connect to the network, no restriction from the operators. The
problems we are facing that --- criminals are using those sets and as
their IMEI are not unique, law enforcement authorities are not being
able to track them.

Our country is not the only sufferer.
http://bit.ly/aeLyQx

Some even DO NOT have IMEI at all!
http://bit.ly/dCHM6s

(May be we should not discuss more on off-topic on this thread)

Regards
Sarwar Erfan


 -- Kostya

 18.08.2010 21:02, Sarwar Erfan пишет:





  On Aug 18, 10:25 pm, Kostya Vasilyevkmans...@gmail.com  wrote:
  IMEI is assigned to every phone before it leaves the factory, and
  doesn't change during its lifetime. It's often printed on the box.
  Offtopic: We have thousands of non-brand phones with EXACT SAME IMEI
  in our market --- all are imported from a single country.
  The phones are cheap :)

  Regards
  Sarwar Erfan

  -- Kostya

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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: connect to sql server

2010-08-18 Thread DanH
Of course, this assumes that you own the box with the SQL server on
it.

On Aug 18, 9:31 am, Chris Stewart cstewart...@gmail.com wrote:
 Instead of putting it on C, you'll need to put it in the context of a web
 server that can handle PHP.  IIS, or Apache, for example.
 --
 Chris Stewarthttp://chriswstewart.com

 Fantasy 
 Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
 Android app for fantasy football fanatics and MFL owners
 Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
 An easy way to send your status blast to multiple social networks

 On Wed, Aug 18, 2010 at 7:51 AM, khalfaoui ameni
 khalfaoui.am...@gmail.comwrote:

  thanks Sarwar Erfan for your answer,but can you tell me how i write
  the script and where i put it ??
  i tried to write a php script

  ?php
  $myServer = 98.130.0.21;
  $myUser = ;
  $myPass = **;
  $myDB = ##;

  //connection to the database
  $dbhandle = mssql_connect($myServer, $myUser, $myPass)
   or die(Couldn't connect to SQL Server on $myServer);

  //select a database to work with
  $selected = mssql_select_db($myDB, $dbhandle)
   or die(Couldn't open database $myDB);

  //declare the SQL statement that will query the database
  $query = SELECT Id_Famille, Id_filiale, Designation ;
  $query .= FROM T_Article ;

  while($e=mssql_fetch_assoc($query))
         $output[]=$e;

  print(json_encode($output));

  //close the connection
  mssql_close($dbhandle);
  ?
  and i put my scipt in my pc c:/
  in my application i write this :
   String result = ;

       ArrayListNameValuePair nameValuePairs = new
  ArrayListNameValuePair();

       InputStream is = null;
       //http post
       try{
               HttpClient httpclient = new DefaultHttpClient();
               HttpPost httppost = new HttpPost(http://10.0.2.2/
  getAllArticle.php);

               HttpResponse response = httpclient.execute(httppost);
               HttpEntity entity = response.getEntity();
               is = entity.getContent();
       }catch(Exception e){
               Log.e(log_tag, Error in http connection
  +e.toString());
       }
       //convert response to string
       try{
               BufferedReader reader = new BufferedReader(new
  InputStreamReader(is,iso-8859-1),8);
               StringBuilder sb = new StringBuilder();
               String line = null;
               while ((line = reader.readLine()) != null) {
                       sb.append(line + \n);
               }
               is.close();

               result=sb.toString();
       }catch(Exception e){
               Log.e(log_tag, Error converting result
  +e.toString());
       }

       //parse json data
       try{
               JSONArray jArray = new JSONArray(result);
               for(int i=0;ijArray.length();i++){
                       JSONObject json_data = jArray.getJSONObject(i);
                       Log.i(log_tag,id_famille:
  +json_data.getString(Id_Famille)+
                               , id_filiale:
  +json_data.getString(Id_filiale)+
                               , designation:
  +json_data.getString(Designation )

                       );
               }
       }
       catch(JSONException e){
               Log.e(log_tag, Error parsing data +e.toString());
       }
     }
  but this code don't work
  08-18 11:09:51.281: ERROR/log_tag(299): Error in http connection
  org.apache.http.NoHttpResponseException: The target server failed to
  respond
  08-18 11:09:51.281: ERROR/log_tag(299): Error converting result
  java.lang.NullPointerException
  08-18 11:09:51.311: ERROR/log_tag(299): Error parsing data
  org.json.JSONException: End of input at character 0 of

  could you please help me to fix it or did you have another way to do
  this?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  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] getPreviewSize() bad result on Froyo emulator

2010-08-18 Thread als
Hello all,

I was trying to use some of the new camera methods included in Froyo,
i.e. setPreviewCallbackWithBuffer()  addCallbackBuffer(). In the
documentation it's said you need first to create a buffer of
appropriated size and use the addCallbackBuffer() method. The buffer
size must be width * height * bits_per_pixel or otherwise you'll never
receive a preview frame. To know the image size, you can ask to the
camera about it's configuration. When I'm trying to configurate the
camera I use Camera.getParameters().getPreviewSize() the emulator says
the size is 320*240, but with that size it didn't work on emulator. I
used the old setPreviewCallback() and, in the onPreviewFrame(), I
asked the size again. That time the size was 480*320. Then I hard-
coded that values in the first code and everything worked.
Now I'm afraid not only the emulator would have that behaviour.
Unfortunately I don't have any real device with Froyo and I can't try
it. So, anyone have tried that methods in real devices? btw, are they
really increasing the poor performance and frame rate?

Thanks

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


[android-developers] Re: Any Open source OpenCellID logger for Android available?

2010-08-18 Thread Sarwar Erfan
Hi,
Logging is extremely easy. You just need to hit a url with some
parameters.
Have a look at here:
http://opencellid.org/api

Use measure/add for logging.

Regards
Sarwar Erfan


On Aug 18, 2:29 pm, kristianlm kristianl...@gmail.com wrote:
 Hi,

 Does anyone know of an open-source OpenCellID logger for Android? We
 wish to contribute to opencellid.org in our products. We wish to
 integrate such a logger into it - so closed source code isn't an
 alternative.

 Onhttp://opencellid.org/users/staticShow/download, i cannot find any
 clients for Android - but I'm a little surprised, I was expecting at
 leaste one open source client for the relatively large open-source
 database.

 Does anyone have any clues?

 Thanks!
 K.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 ParserConfigurationException when trying to insert a new Calendar.

2010-08-18 Thread DanH
Close as I can figure from the messages there's something wrong with
SAXParserFactory (eg, wrong version, or the visible class is loaded by
the wrong loader).  Things probably go downhill after that.  You might
check if one of your jars contains a copy of SAXParserFactory and
that's confusing things.

On Jun 30, 11:47 am, Tushar tushar.maha...@gmail.com wrote:
 Hi ,

  I am developing an Android app which creates a new calendar on the
 google server.
  Though the calendar does get created, I get an exception .
  This is how I insert the calendar.

 CalendarService service = new CalendarService(CalendarFeed`);
 CalendarEntry calendar = new CalendarEntry();
 //Some code
 URL postUrl = new URL(
                                 http://www.google.com/calendar/feeds/
 default/owncalendars/full);
 service.insert(postUrl, calendar);

 After the calendar gets inserted , I get the following exception

 WARN/dalvikvm(922): VFY: unable to resolve virtual method 16724:
 Ljavax/xml/parsers/SAXParserFactory;.getSchema ()Ljavax/xml/validation/
 Schema;
 WARN/dalvikvm(922): VFY: unable to find class referenced in signature
 (Ljavax/xml/validation/Schema;)
 WARN/dalvikvm(922): VFY: unable to resolve virtual method 16732:
 Ljavax/xml/parsers/SAXParserFactory;.setSchema (Ljavax/xml/validation/
 Schema;)V
 WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/XmlParser(922): at
 org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:
 84)
 WARN/XmlParser(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:682)
 WARN/XmlParser(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
 WARN/XmlParser(922): at
 com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 59)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 39)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
 100)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
 52)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 66)
 WARN/XmlParser(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 34)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2165)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2098)
 WARN/XmlParser(922): at
 com.google.gdata.client.Service.insert(Service.java:1410)
 WARN/XmlParser(922): at
 com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
 WARN/XmlParser(922): at
 NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
 WARN/XmlParser(922): at
 NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113)
 WARN/XmlParser(922): at NewCalendar.access
 $2(SetupCalendarNameActivity.java:104)
 WARN/XmlParser(922): at NewCalendar
 $3$1.run(SetupCalendarNameActivity.java:97)
 WARN/XmlParser(922): at java.lang.Thread.run(Thread.java:1096)
 WARN/System.err(922): com.google.gdata.util.ParseException:
 org.xml.sax.SAXNotRecognizedException:http://xml.org/sax/features/external-parameter-entities
 WARN/System.err(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:708)
 WARN/System.err(922): at
 com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
 WARN/System.err(922): at
 com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 59)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
 39)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
 100)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
 52)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 66)
 WARN/System.err(922): at
 com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
 34)
 WARN/System.err(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2165)
 WARN/System.err(922): at
 com.google.gdata.client.Service.parseResponseData(Service.java:2098)
 WARN/System.err(922): at
 com.google.gdata.client.Service.insert(Service.java:1410)
 WARN/System.err(922): at
 com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
 WARN/System.err(922): at
 NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
 

Re: [android-developers] How to invoke another application on a Button Click?

2010-08-18 Thread Jake Radzikowski
startActivity

http://developer.android.com/reference/android/app/Activity.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] Tabbed Preference Activity??

2010-08-18 Thread shawn
I am currently using my own Activity to handle my app options instead
of use the PreferenceActivity.  I have put my categories into separate
tabs with icons which looks nice.  I would like to switch to the more
standard PreferenceActivity.  However, it renders categories as just a
bold item in the preference listview with no icon.  Would it be
possible to merge TabActivity and PreferenceActivity somehow so that
my PreferenceCategories render as separate tabs?  I realize that this
feature is not built in, but could I somehow do it myself by using
PreferenceManager or PreferenceScreen manually inside a TabActivity
instead of using PreferenceActivity?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread Seni Sangrujee
On Aug 18, 10:48 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I'm relieved to see that I'm not the only one who's seeing the magic
 ANDROID_ID problem.

Yeah, I'm surprised there haven't been more reports from apps that
depend on ANDROID_ID.

It looks like it's a known issue with custom ROMs from these two
links:

Android ID same as Android emulator
http://forum.xda-developers.com/showpost.php?p=7251507postcount=1110

Allways the same Android_ID
http://forum.xda-developers.com/showthread.php?p=7702995

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] 3g problem with telephony

2010-08-18 Thread charlie babitt
Hallo!

This isn't probably the right group to ask this question, but I
haven't found anything else. I have the following problem on my
Samsung Galaxy S with Android: as soon as I disable the settings
option use only 2G networks to save battery I have no network
connection (3G and H is available at my location and provided by the
provider - verified it with a Nokia phone) and not even telephony
works. Moreover it doesn't even seem to dial when I call somebody. The
phone is not reachable, so it doesn't ring when somebody calls. I
already tried a reset of the phone, but it didn't help (the thing is
that it already worked). Do you have an idea, which settings I messed
up?

Thanks in advance
Charlie

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Problem with SD cards

2010-08-18 Thread Arpit
Dear All,

Right now i am getting some issue while creating one backup sms app.
Problem is how can i backup db file from sd card and vice versa.

Hope for reply

Arpit

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Alarm Clock with specific ringtones

2010-08-18 Thread khushi
Hi,

I am beginner to android development. I want to make an application
for an alarm clock. I want alarm with some predefined ring tones. But
I don't know how to use the existing alarm service. I have written
below code, but it is not running. So can you please suggest me.
Thanks in advance.

My code is like this :


public class AlarmClock extends Activity {

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

AlarmManager alarmManager = (AlarmManager)
getSystemService(ALARM_SERVICE);

Intent intent = new Intent(getApplicationContext(),
OnetimeAlarmReceiver.class);
PendingIntent pendingIntent =
PendingIntent.getBroadcast(getApplicationContext(), 0, intent,
0x0800);

alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,
System.currentTimeMillis(), (5 * 1000), pendingIntent);

Toast.makeText(getApplicationContext(), Alarm set,
Toast.LENGTH_LONG).show();

   }

}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 will happen to existing connections when switch between 3g/wifi

2010-08-18 Thread Hongbo
Hey,

Assume that, I have a TCP connection that doing heavy data
transmitting on my 3G network; and I walked home, Android switch to my
home Wifi automatically. Now what happen to the existing connection?
is it simply disconnect? or it will keep going, only the new
connections will use wifi?

Thanks in advance.

Hongbo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Help in creating the customize theme for android devices.

2010-08-18 Thread Dev Android
Hi All,


Can anybody help to create customize device level theme?

I want to create customize themes for my android device..



Please suggestion some approach to do this...

Thanks in advance.


--
D

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Problem with interecepting outgoing calls on HTC Desire

2010-08-18 Thread Nicolas Zerr
Hello,


I'm having troubles with intercepting outgoing calls. In fact, it
works perfectly on emulator 2.1 and 2.2, and was running also
perfectly on my HTC Desire when i was in 2.1 version.

Here is some source code :

package com.testcallcatch.test;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class OutgoingCallReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.d(LOOK HERE, - + getResultData());
setResultData(0123456789);
Log.d(LOOK HERE, Setting to 0123456789);
}
}

And the manifest :

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.testcallcatch.test android:versionCode=1
android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name

activity android:name=.TestCallCatch android:label=@string/
app_name
intent-filter
action 
android:name=android.intent.action.MAIN /
category 
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

receiver android:name=.OutgoingCallReceiver
intent-filter android:priority=2147483646
action 
android:name=android.intent.action.NEW_OUTGOING_CALL /
/intent-filter
/receiver
/application

uses-sdk android:minSdkVersion=7 /

uses-permission
android:name=android.permission.PROCESS_OUTGOING_CALLS/uses-
permission
/manifest

As you can see, it is a very simple sample, but it's not working on
HTC Desire under 2.2 . I suspect this comes from HTC, but I wonder if
there are other devices with this bug.

The app replaces each called number by 01232456789. Don't forget to
uninstall the application once done ;)

So I'm searching people for testing this little app :

- People who have HTC 2.2 device
- People who have other devices that run 2.2 android version.

Maybe someone has already solved this problem?

Thanks a lot in advance,

Nicolas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Unable to see process in dalvik debug monitor

2010-08-18 Thread praveen sr
Hi all,

I am Unable to see processes in dalvik debug monitor,when lanuch ddms form
commad prompt.

Thanks and Regards
Praveen

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Problem running heavy application

2010-08-18 Thread chris2a
Hi everybody,

I developed an heavy application (700 Mb !). With an apk installer
application, i can install it on the Nexus One SD card (Froyo
installLocation option). My application is heavy because of the
videos it contains (located in /raw directory). The problem I have, is
that it crashes when launched, with this error :

08-18 11:22:16.179: ERROR/AndroidRuntime(1250): FATAL
  EXCEPTION: main 08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250):
  java.lang.RuntimeException: Unable to
  instantiate activity
  ComponentInfo{com.test.media/com.test.media.Welcome}:
  java.lang.ClassNotFoundException:
  com.test.media.Welcome in loader
  dalvik.system.PathClassLoader[/mnt/asec/com.test.media-1/pkg.apk]
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.app.ActivityThread.access$2300(ActivityThread.java:125)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.os.Handler.dispatchMessage(Handler.java:99)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.os.Looper.loop(Looper.java:123)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.app.ActivityThread.main(ActivityThread.java:4627)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  java.lang.reflect.Method.invokeNative(Native
  Method) 08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  java.lang.reflect.Method.invoke(Method.java:521)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  dalvik.system.NativeStart.main(Native
  Method) 08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): Caused by:
  java.lang.ClassNotFoundException:
  com.test.media.Welcome in loader
  dalvik.system.PathClassLoader[/mnt/asec/com.test.media-1/pkg.apk]
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  java.lang.ClassLoader.loadClass(ClassLoader.java:573)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  java.lang.ClassLoader.loadClass(ClassLoader.java:532)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.app.Instrumentation.newActivity(Instrumentation.java:1021)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
  08-18 11:22:16.179:
  ERROR/AndroidRuntime(1250): ... 11
  more


I dont't understand the reason of this error, because when i try the
same thing with a lighter application (250 Mb) it runs perfectly. Has
anyone of you ever had this kind of problem ? Do you know if there is
a size limit for applications to work ?

Thank you for your 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] Does Google provide direct (paid) technical support for Android SW development?

2010-08-18 Thread choyer
Hello,

As a developer for Android, you may sometime need dedicated technical
support by technology specialists possessing very specific knowledge 
experience - and you may even need assistance to a degree where you
are willing to pay for it!

I acknowledge that the combined knowledge of the web and the
responsiveness of the people online at the Android forums are
extremely impressive, and quickly resolves the vast majority of
issues. Nevertheless, from time to time, you can have a technical
question that does not receive a satisfactory - if any - resolution.
And even if the platform is open it doesn't mean you have the
knowledge (or time!) to search the source for an answer on your own.

In such a situation, professionals may be forced to pay for technical
support from the platform provider - and hence I wonder if Google is
providing this service for the Android SW platform? So far, I haven't
been able to find such a service...

3rd party consultancy houses can obviously provide qualified services,
but it can never be just as good as talking to someone who can have
internal references to the people who developed an advanced platform
like Android.

More than a year a go a similar question was posted here by someone
else in this group, but I found no satisfactory answer:

http://groups.google.com/group/android-developers/browse_thread/thread/a5330ba8a46267aa/d9fc0532598818b4?lnk=gstq=paid+technical+support#d9fc0532598818b4

As a side comment, having some knowledge of the competing Symbian
platform in the past, I can confirm that Nokia can indeed provide very
qualified technical support for a very reasonable amount of money -
and since they developed the core technology themselves they know the
answers, or where to get them.

Thanks,
Claus

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] AudioTrack MODE_STATIC issue

2010-08-18 Thread Pat
Hi all,

I'm developing an audio app that uses AudioTrack's MODE_STATIC to
efficiently loop through a sound sample.

Using MODE_STATIC, AudioTrack.write() to set the sample, and
AudioTrack.setLoopPoints() to loop through the sample, I'm able to
tell the hardware to simply keep looping through my sound buffer until
I tell it to stop ( either on exit or using an event )

The problem I'm running into is that if my application is *killed*, I
no longer have a way to tell that buffer to stop.  My audio code is
running in a Service (local, not remote), and the service's
onDestroy() doesn't get called on a kill - this means I have no way to
clean up this audio stream as my application goes down.

I can't find any discernable way to re-attach to that audio stream
once the service is lost, or any way to trigger it to be cleaned up
when my application dies unexpectedly.

This results in my audio continuing to loop forever after my app dies
- the only way to stop it is to reboot the phone or explcicitly kill
the mediaserver service.

I think this may be a bug as the AudioTrack binding to mediaserver
should probably be notified to 'stop' if it's caller disappears.

Does anyone have a suggestion for how I might be able to work around
this behavior and either a) somehow catch the kill and clean up my
buffers or b) re-attach the existing buffer when my app re-loads and
kill it then.   I can't seem to find a way to do either.


Thanks for any insight anyone can give

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] No response with DefaultHttpClient.execute()

2010-08-18 Thread erwan
Hi everybody,

I have some problems with Http requests, I make a VOIP soft (which use
a C librairy with JNI, I have no access to the source code) and I have
to send Http requests with my app using DefaultHttpClient.execute().

When there is no VOIP communication in progress the request execution
is ok, but if there is a communication in progress, the request cannot
be execute (time out). The connection is wifi, so it's enought to
support the flows.
It sems the request is not transmitted to the network. I thought it
was due to an android limitation (the system allow a bandwidth to an
app) but I also tried to do these requests with another app, same
result

Any ideas ?
Thank you for your help.

Erwan P.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] bluetooth voice command will not work with smart?phones/Droids!!

2010-08-18 Thread DickTracy


 I don't know if we are moving forward or backwards. It never occurred
to me that a function as simple (AND USED) feature like bluetooth
voice command would not work with Droid(s). A basic feature that
allows hands free calling should have been a given and with the state
laws requiring hands free use of phones.I'm baffled by this
omission. Any one know why this was removed from software?
It is long past due to return this feature if for nothing more than
user convenience plus the legal requirements today.
Thanks!!

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


[android-developers] SQLiteException

2010-08-18 Thread easy
Hi all,

I created ContentProvider for database with three tables.
SQLiteException was thrown on first call query. My method and commets
are below:

@Override
public Cursor query(Uri url, String[] projection, String selection,
String[] selectionArgs, String sort) {
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();

String tableName = getTableName(url);



final int uri = urlMatcher.match(url);


qb.setTables(tableName);
String defaultOrderBy = null;

if (isCollectionUri(url)) {
switch (uri) {
case ITEMS_URI_CODE:
qb.setProjectionMap(itemsMap);
defaultOrderBy = Items.DEFAULT_SORT_ORDER;
break;
case LISTS_URI_CODE:
qb.setProjectionMap(listsMap);
defaultOrderBy = Lists.DEFAULT_SORT_ORDER;
break;
case CELLS_URI_CODE:
qb.setProjectionMap(cellsMap);
defaultOrderBy = Cells.DEFAULT_SORT_ORDER;
break;
default:
throw new IllegalArgumentException(Unknown URL 
 + url);

}

}
else {
qb.appendWhere(_id= + url.getPathSegments().get(1));
}

String orderBy;

if (TextUtils.isEmpty(sort)) {
orderBy = defaultOrderBy;
} else {
orderBy = sort;
}

!
//qb.query throw sqliteexception: no such column: modified
Cursor c = qb.query(db, projection, selection, selectionArgs, 
null,
null, orderBy);

c.setNotificationUri(getContext().getContentResolver(), url);
return c;
}

the db is not null

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] SimpleCursorAdapter and database update

2010-08-18 Thread Kai
Hi All,

I just started with Android development and love it so far. To get
some experience, I am writing a little todo application. In my
database I have a state for a todo item, represented as int. I use a
checkbox in a list view to represent this state. To bind the data to
the view, I use a subclass of SimpleCursorAdapter. I add an
onClickListener to the checkbox that updates the state in the database
for the used list item. The problem is, if I use the following code,
the list is screwed up in the display (many items will be checked):

@Override
public View getView(final int pos, View inView, ViewGroup parent) {
View view = inView;
if (view == null) {
   LayoutInflater inflater = (LayoutInflater) context

.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
   view = inflater.inflate(R.layout.toodoolist_item, null);
}
cursor.moveToPosition(pos);
...

checkBox.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
int state = 0;
if (checkBox.isChecked()) {

titleView.setPaintFlags(titleView.getPaintFlags()
| 
Paint.STRIKE_THRU_TEXT_FLAG);
titleView.setEnabled(false);
state = 1;
} else {

titleView.setPaintFlags(titleView.getPaintFlags()
^ 
Paint.STRIKE_THRU_TEXT_FLAG);
titleView.setEnabled(true);
}

ContentValues values = new ContentValues();
values.put(TooDooTable.STATE, state);
context.getContentResolver()

.update(ContentUris.withAppendedId(

TooDooTable.CONTENT_URI, id), values, null,
null);
cursor.requery();
}
});

My current workaround is to use the inflater every time, even if the
inView is not null:

@Override
public View getView(final int pos, View inView, ViewGroup parent) {
View view = inView;
LayoutInflater inflater = (LayoutInflater) context

.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflater.inflate(R.layout.toodoolist_item, null);

This works, but I don't understand why I have to do this hack.

What would be the best practice to update the database in a
CurserAdapter and get the changes reflected immediately in the view?

Thanks

Kai

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] issue with android Browser

2010-08-18 Thread pawan
hello friends,
I have successfully build the android source code. Now i want to make
another Browser based on the default browser, so that both of them
can co-exist side by side.

Now the problem is, I could not find out the exact location where I
have to make changes so that MyBrowser.apk file could be generated
along with the Browser.apk.

I have created another app under the pakages/app/

even when I make some changes to the existing browser code, changing
its manifest.xml and after make command, the browser.apk which i get
can not be installed and it throws the following error,
Failure [INSTALL_FAILED_ALREADY_EXISTS]

please provide information regarding where exactly i have to make
changes so that i could generate MyBrowser.apk and which can be
installed without the error and could co exist with the default
browser.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Can Java code be replaced with XML

2010-08-18 Thread Лоик
Still looking forward to the screenshots!

2010/8/18 Bhavya bhavs...@gmail.com

 @Dianne: U made my day :)
 android:onClick worked for me

 ./bhavya

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




-- 
Loïc Faure-Lacroix

---
http://dreameater.delicieuxgateau.ca
http://delicieuxgateau.ca

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Exception on Pending Intent

2010-08-18 Thread satish bhoyar
Hi ,

does any one knows this issue. Please help ...

thanks,
satish

On Tue, Aug 17, 2010 at 10:16 AM, satish bhoyar getsatonl...@gmail.comwrote:

 Hi All,

 I am writing an appwidget for my application, there are like multiple
 pending intents are there to launch an activity or receive a broadcast. The
 Problem I am facing is , some times I get exception saying that the Pending
 Intents cannot be delivered. And the widget does not responds to the touch
 from the user.

 please help me. I am not able to find any alternative also.

 thanks,
 satihs


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Remember my whines about lack of Android Game Framework ?

2010-08-18 Thread Лоик
I could probably port a reasonable game engine based on Quake, but lack of
time/money make it impossible and even alone it would take some times. On
the other hand, android doesnt make it easy with native code. If I could
simply have java for input and all the rest in native code. It could work.
Not sure how to port the audio part though.

Anyway, I wouldn't call Game over yet. I could be wrong but I wouldnt buy a
smartphone for games. But for pretty much else it can gives. Games consume a
lot of battery unlike app for management etc. I guess what's important is to
focus on everything Iphone/wp7 will never have with their phone.

2010/8/17 Piotr piotr.zag...@gmail.com

 Windows Phone and XNA. Nightmare is real. What we do with that ?


 http://groups.google.com/group/android-developers/browse_thread/thread/4654534f0ce7348f/67fb58ca9d7582c7#67fb58ca9d7582c7

 M$ just yesterday announced over 50 games for his Windows Phone 7
 platform:


 http://www.engadget.com/2010/08/16/xbox-live-launch-titles-for-windows-phone-7-finally-revealed-we/

 Till this day, I was convinced, WP7 will die. But now, with Xbox Live
 network and really serious and great developers game support, I can
 tell, Android with its crappy games is going DOWN on this field.

 Some of you have say, that real android gaming framework is not
 necessary. I think, in 3 - 5 months, M$'s WP7 will beat Android in
 gaming.

 This is the price for ignorance of your enemy potential.

 I'm afraid, Google will create gaming framework, when it will be just
 too late. Games ARE so important. Windows wins all battles, mainly
 becuase of games. Every osx/linux fan can tell you 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Loïc Faure-Lacroix

---
http://dreameater.delicieuxgateau.ca
http://delicieuxgateau.ca

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] ddms won't load anymore

2010-08-18 Thread Merciadri Luca
Hi,

I'm using an HTC Desire. After having configured my udev rules
correctly:

==
# cat 51-android.rules
SUBSYSTEMS==usb, ATTRS{idVendor}==0bb4, ATTRS{idProduct}==0c87,
MODE=0666
==
according to
==
# lsusb | grep High
Bus 008 Device 005: ID 0bb4:0c87 High Tech Computer Corp.
==

my ddms won't load anymore. Before this, it loaded, but without any
possible action on the device (`adb devices' was also showing
`insufficient permissions for device', and ``???''). Now, my device is
correctly recognized:

$ adb devices
List of devices attached
HT049PL07613device

but ddms does not load. Why?

Thanks.

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


[android-developers] Problem reading datebase via content provider

2010-08-18 Thread easy
Hi,

I created SQLite base with 3 tables and custom ContentProvider.  I had
a crash on first call method query.
I tried to get cursor from base via db.query(table, columns,...) it
worked correctly.

The exception is android.database.sqlite.SQLiteException: no such
column: modified: , while compiling: SELECT items._id, items.name FROM
items ORDER BY modified ASC

Whats wrong?

The method is below:

@Override
public Cursor query(Uri url, String[] projection, String selection,
String[] selectionArgs, String sort) {
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
String tableName = getTableName(url);
final int uri = urlMatcher.match(url);
qb.setTables(tableName);
String defaultOrderBy = null;

if (isCollectionUri(url)) {
switch (uri) {
case ITEMS_URI_CODE:
qb.setProjectionMap(itemsMap);
defaultOrderBy = Items.DEFAULT_SORT_ORDER;
break;
case LISTS_URI_CODE:
qb.setProjectionMap(listsMap);
defaultOrderBy = Lists.DEFAULT_SORT_ORDER;
break;
case CELLS_URI_CODE:
qb.setProjectionMap(cellsMap);
defaultOrderBy = Cells.DEFAULT_SORT_ORDER;
break;
default:
throw new IllegalArgumentException(Unknown URL 
 + url);

}

}
else {
qb.appendWhere(_id= + url.getPathSegments().get(1));
}

String orderBy;

if (TextUtils.isEmpty(sort)) {
orderBy = defaultOrderBy;
} else {
orderBy = sort;
}
!
// this method throw sqliteexception: no such column: 
modified
Cursor c = qb.query(db, projection, selection, selectionArgs, 
null,
null, orderBy);


c.setNotificationUri(getContext().getContentResolver(), url);
return c;
}

The Log is 08-13 11:49:59.471: ERROR/AndroidRuntime(5237): Caused by:
android.database.sqlite.SQLiteException: no such column: modified: ,
while compiling: SELECT items._id, items.name FROM items ORDER BY
modified ASC

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 enable sound in android emulator

2010-08-18 Thread vijay katoch
hi all

can any one help me with how to enable sound in android emulator .i am using
fedora 13 .

Thanks

vijay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] source code

2010-08-18 Thread zouheir elmach
Hi ,
 i 've been following the answers on the this email ...without finding the
right link
So please i'm new with android development tools ..
could  you give me some links wich can help my to develop android apps ...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Any procedure available for Overlaying one video playback on top of another video

2010-08-18 Thread Pilu
Hello All,

Does android support overlaying of one video playback on top of
another video ?

For example, let's say one media is getting played in android player
in full screen and on top of this i want to overlay another video.

Any suggestion/poniter will be helpful.

Thanks.

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


[android-developers] how to enable sound in android emulator

2010-08-18 Thread vijay katoch
hi all

can any one help me with how to enable sound in android emulator .i am
using fedora 13 .

Thanks

vijay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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   3   >