Re: [android-developers] Re: In App Billing Error

2012-12-21 Thread Lev Stipakov
Well, 12 hrs ago uploaded a new app, added products and got the same 
problem.

Would be nice to get some comments from Google.

perjantai, 21. joulukuuta 2012 6.12.02 UTC+2 sandy M kirjoitti:

 Please let me know if get of it!! I too facing the same buddy 

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

2012-12-21 Thread Grzegorz Patynek
there is an error in dungeons application from google. 
you may find answer somewhere in stackoverflow. 

W dniu piątek, 21 grudnia 2012 09:30:50 UTC+1 użytkownik Lev Stipakov 
napisał:

 Well, 12 hrs ago uploaded a new app, added products and got the same 
 problem.

 Would be nice to get some comments from Google.

 perjantai, 21. joulukuuta 2012 6.12.02 UTC+2 sandy M kirjoitti:

 Please let me know if get of it!! I too facing the same buddy 



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

2012-12-21 Thread Goncalo Oliveira
Robert,

Thank you for the explanation. There's just one more thing that I'd like
you to help me understand. If we choose to allow the GCM connection, what
kind of traffic can we expect to have? Like I said previously, we have a
very tight data plan, so if the GCM connection adds more than just a few
bytes, that might be a bad idea to enable it. Also, by enabling GCM
connection, what am I allowing the users to do? Can they use gtalk or
something else?

Cheers

On 21 December 2012 00:17, Robert Greenwalt rgreenw...@google.com wrote:


 The GCM is part of the platform - 3rd party apps depend on it and so
 there's no mechanism for deactivating it.

 If you can allow the GCM connection to succeed, you should avoid the
 current problems, but if you're going for a secure platform you may not
 want the GCM connection to succeed.

 You could potentially hijack the dns resolution: have your dns server
 report an address you control for mtalk.google.com, then allow
 connections to your own server, but no real functionallity.  With some
 reverse engineering you may be able to get to a quiet connection that
 doesn't trigger these data-stall triggers.

 The easiest solution is to adjust your keep-alive ping to  6 minutes.
  That will effect the battery, but less than allowing the resets to happen.

 I have created internal issues to examine this issue, but even if we fixed
 it today internally you wouldn't see it for a long while.  The first issue
 is to find what traffic is causing this connection reset.  The second is to
 re-eval counting udp packets (I am assuming that's causing part of this
 problem).

 I'm sorry you have hit this issue.

 Robert


 On Thu, Dec 20, 2012 at 4:30 AM, Goncalo Oliveira gonc...@minkan.netwrote:

 Robert,

 Any updates on this?

 Cheers


 On 18 December 2012 10:06, Goncalo Oliveira gonc...@minkan.net wrote:

 consider opening up the addre




 --
 Gonçalo Oliveira

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


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




-- 
Gonçalo Oliveira

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: what does it mean? - java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers

2012-12-21 Thread Dmitriy Kazakov
Thanks b0b,

Th problem is that I receiev the log file with a lot of exceptions as this, 
they are so much that I don't see previous rows. 

I have a case when my service could be killed by system. Notification in 
status bar and running as foreground make it's life longer but case are 
occurs sometimes, so a few don't completed tasks try to publish their 
results to the service which is not existed. Could it the root of 
exceptions as this?

среда, 19 декабря 2012 г., 15:09:43 UTC+4 пользователь b0b написал:

 This means there was an error communicating with another process handling 
 an Intent. 

 The stack trace here is confusing and doesn't show the real cause of the 
 problem.

 For example i've seen this error happen sending an intent with intent 
 extras being too big, bigger than max transaction size (1Mb).

 To debug this it can be interesting to look at earlier logcat stack trace 
 to see where it really fails.




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

2012-12-21 Thread Lev Stipakov
Thanks, but I am using billing V3 and my code is based on trivialdriving 
example.

perjantai, 21. joulukuuta 2012 11.52.15 UTC+2 Grzegorz Patynek kirjoitti:

 there is an error in dungeons application from google. 
 you may find answer somewhere in stackoverflow. 

 W dniu piątek, 21 grudnia 2012 09:30:50 UTC+1 użytkownik Lev Stipakov 
 napisał:

 Well, 12 hrs ago uploaded a new app, added products and got the same 
 problem.

 Would be nice to get some comments from Google.

 perjantai, 21. joulukuuta 2012 6.12.02 UTC+2 sandy M kirjoitti:

 Please let me know if get of it!! I too facing the same buddy 



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

2012-12-21 Thread Ajmer Singh
Hi All

I get this resolved, Mistake that i had done is:


   1. That i entered an test account under the setting in Google Developer
   Console.This is ok.
   2. Then change the selection of Drop down named the Licensed Test
   Response to Licensed test response.
   3. Please have a look at the attached images.


On Fri, Dec 21, 2012 at 5:04 PM, Lev Stipakov lstipa...@gmail.com wrote:

 Thanks, but I am using billing V3 and my code is based on trivialdriving
 example.

 perjantai, 21. joulukuuta 2012 11.52.15 UTC+2 Grzegorz Patynek kirjoitti:

 there is an error in dungeons application from google.
 you may find answer somewhere in stackoverflow.

 W dniu piątek, 21 grudnia 2012 09:30:50 UTC+1 użytkownik Lev Stipakov
 napisał:

 Well, 12 hrs ago uploaded a new app, added products and got the same
 problem.

 Would be nice to get some comments from Google.

 perjantai, 21. joulukuuta 2012 6.12.02 UTC+2 sandy M kirjoitti:

 Please let me know if get of it!! I too facing the same buddy

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




-- 
Thanks and Regards
Ajmer Singh

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

[android-developers] deleting a ringtone programmatically

2012-12-21 Thread Narendra Singh Rathore
Hi all,

I know inserting a ringtone programmatically, 
but want to know about deleting a specific ringtone from the system 
ringtone list.
What I know, is the title of the ringtone.

I googled a lot about it, but unluckily, couldn't find any way to achieve 
exactly what I want.

Please, guide me the way to delete the ringtone using title of the ringtone.

Thanks  Regards,
NSR

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

2012-12-21 Thread TreKing
On Thu, Dec 20, 2012 at 11:04 AM, Keith Wiley kbwi...@gmail.com wrote:

 .in stark contrast with the old console which could explicitly remove
 unpublished apps entirely.


Where exactly could you remove unpublished apps? I was under the impression
that once an app was published, if you unpublished it afterwards, there was
no way to delete it.

-
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: deleting a ringtone programmatically

2012-12-21 Thread skink


Narendra Singh Rathore wrote:
 Hi all,

 I know inserting a ringtone programmatically,
 but want to know about deleting a specific ringtone from the system
 ringtone list.
 What I know, is the title of the ringtone.

 I googled a lot about it, but unluckily, couldn't find any way to achieve
 exactly what I want.

 Please, guide me the way to delete the ringtone using title of the ringtone.

 Thanks  Regards,
 NSR

how do you insert a ringtone
programmatically?

pskink

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


Re: [android-developers] Re: Android example code and Apache 2.0 licence

2012-12-21 Thread goran gg
2012/12/20 Chloe Fotherby chloefothe...@googlemail.com

 I am more than happy to attribute.

 I am just a bit confused where one draws the line because if a developer
 uses a framework, then surely they need to refer to some sample code
 provided by the framework provider on how to do something in that
 framework. If a framework is designed properly, then surely there is likely
 to be a limited number of ways of doing things - so does that require
 attribution?.

 For example, I want to create a Content Provider in Android. The Android
 Developers web site has an example of creating a content provider (
 http://developer.android.com/guide/topics/providers/content-provider-creating.html#ContentProvider).
 Inevitably, the code I create will end up being similar as I am using the
 framework - so I guess I have to attribute as this sample under Apache 2.0?

  On Thu, Dec 20, 2012 at 8:44 PM, Lew lewbl...@gmail.com wrote:

 obsequious


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


beautiful face I must noticed

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

2012-12-21 Thread Keith Wiley
Like I said, I haven't tested it on a previously published app, only on 
draft apps that were never published in the first place...but in the old 
console if you delete the last APK associated with the app, the entire app 
description vanishes.  I don't know if it would do that for an app once it 
was published, but it is certainly different from the new console in this 
regard.

On Friday, December 21, 2012 5:47:24 AM UTC-8, TreKing wrote:

 On Thu, Dec 20, 2012 at 11:04 AM, Keith Wiley kbw...@gmail.comjavascript:
  wrote:

 .in stark contrast with the old console which could explicitly remove 
 unpublished apps entirely.


 Where exactly could you remove unpublished apps? I was under the 
 impression that once an app was published, if you unpublished it 
 afterwards, there was no way to delete it.


 -
 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] Mobile network idle sockets disconnected

2012-12-21 Thread Robert Greenwalt
I believe most of the google apps rely on GCM (calendar, gmail, contacts,
talk, etc), also 3rd party apps that need pushed notifications are
encouraged to use GCM.  Unless you are making a custom build and denying
app installs you probably have apps that will be broken without GCM.

Of course, if you have very limited data plans on special purpose phones,
you may wish for all those apps to be broken - they can use quite a bit of
data.

I don't know what GCM's steady-state data rate is for a device.  I believe
it does a carrier keep-alive ping every 20-30 minutes.  It also checks for
updates whenever the screen comes on.  Other than that I think it is
dependent on user or network-originating app traffic.

R


On Fri, Dec 21, 2012 at 2:23 AM, Goncalo Oliveira gonc...@minkan.netwrote:

 Robert,

 Thank you for the explanation. There's just one more thing that I'd like
 you to help me understand. If we choose to allow the GCM connection, what
 kind of traffic can we expect to have? Like I said previously, we have a
 very tight data plan, so if the GCM connection adds more than just a few
 bytes, that might be a bad idea to enable it. Also, by enabling GCM
 connection, what am I allowing the users to do? Can they use gtalk or
 something else?

 Cheers


 On 21 December 2012 00:17, Robert Greenwalt rgreenw...@google.com wrote:


 The GCM is part of the platform - 3rd party apps depend on it and so
 there's no mechanism for deactivating it.

 If you can allow the GCM connection to succeed, you should avoid the
 current problems, but if you're going for a secure platform you may not
 want the GCM connection to succeed.

 You could potentially hijack the dns resolution: have your dns server
 report an address you control for mtalk.google.com, then allow
 connections to your own server, but no real functionallity.  With some
 reverse engineering you may be able to get to a quiet connection that
 doesn't trigger these data-stall triggers.

 The easiest solution is to adjust your keep-alive ping to  6 minutes.
  That will effect the battery, but less than allowing the resets to happen.

 I have created internal issues to examine this issue, but even if we
 fixed it today internally you wouldn't see it for a long while.  The first
 issue is to find what traffic is causing this connection reset.  The second
 is to re-eval counting udp packets (I am assuming that's causing part of
 this problem).

 I'm sorry you have hit this issue.

 Robert


 On Thu, Dec 20, 2012 at 4:30 AM, Goncalo Oliveira gonc...@minkan.netwrote:

 Robert,

 Any updates on this?

 Cheers


 On 18 December 2012 10:06, Goncalo Oliveira gonc...@minkan.net wrote:

 consider opening up the addre




 --
 Gonçalo Oliveira

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


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




 --
 Gonçalo Oliveira

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


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

Re: [android-developers] Mobile network idle sockets disconnected

2012-12-21 Thread Goncalo Oliveira
Robert,

Thanks again for clarifying. Basically if I open up GCM I'm allowing user
to work with gtalk, so I will want to avoid that.
Looks like sending the heartbeat every 5 minutes is the only option I have
left.

Thanks for the help. Much appreciated.
Cheers

On 21 December 2012 15:44, Robert Greenwalt rgreenw...@google.com wrote:

 I believe most of the google apps rely on GCM (calendar, gmail, contacts,
 talk, etc), also 3rd party apps that need pushed notifications are
 encouraged to use GCM.  Unless you are making a custom build and denying
 app installs you probably have apps that will be broken without GCM.

 Of course, if you have very limited data plans on special purpose phones,
 you may wish for all those apps to be broken - they can use quite a bit of
 data.

 I don't know what GCM's steady-state data rate is for a device.  I believe
 it does a carrier keep-alive ping every 20-30 minutes.  It also checks for
 updates whenever the screen comes on.  Other than that I think it is
 dependent on user or network-originating app traffic.

 R


 On Fri, Dec 21, 2012 at 2:23 AM, Goncalo Oliveira gonc...@minkan.netwrote:

 Robert,

 Thank you for the explanation. There's just one more thing that I'd like
 you to help me understand. If we choose to allow the GCM connection, what
 kind of traffic can we expect to have? Like I said previously, we have a
 very tight data plan, so if the GCM connection adds more than just a few
 bytes, that might be a bad idea to enable it. Also, by enabling GCM
 connection, what am I allowing the users to do? Can they use gtalk or
 something else?

 Cheers


 On 21 December 2012 00:17, Robert Greenwalt rgreenw...@google.comwrote:


 The GCM is part of the platform - 3rd party apps depend on it and so
 there's no mechanism for deactivating it.

 If you can allow the GCM connection to succeed, you should avoid the
 current problems, but if you're going for a secure platform you may not
 want the GCM connection to succeed.

 You could potentially hijack the dns resolution: have your dns server
 report an address you control for mtalk.google.com, then allow
 connections to your own server, but no real functionallity.  With some
 reverse engineering you may be able to get to a quiet connection that
 doesn't trigger these data-stall triggers.

 The easiest solution is to adjust your keep-alive ping to  6 minutes.
  That will effect the battery, but less than allowing the resets to happen.

 I have created internal issues to examine this issue, but even if we
 fixed it today internally you wouldn't see it for a long while.  The first
 issue is to find what traffic is causing this connection reset.  The second
 is to re-eval counting udp packets (I am assuming that's causing part of
 this problem).

 I'm sorry you have hit this issue.

 Robert


 On Thu, Dec 20, 2012 at 4:30 AM, Goncalo Oliveira gonc...@minkan.netwrote:

 Robert,

 Any updates on this?

 Cheers


 On 18 December 2012 10:06, Goncalo Oliveira gonc...@minkan.net wrote:

 consider opening up the addre




 --
 Gonçalo Oliveira

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


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




 --
 Gonçalo Oliveira

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


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




-- 
Gonçalo Oliveira

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

2012-12-21 Thread bob
 

It's because you are creating a new toast object and canceling the new 
object rather than the old object that's showing.


Maybe make the toast a member variable?



On Friday, December 21, 2012 1:04:09 AM UTC-6, sujit dubey wrote:

   
 I am trying to display a toast on incoming call and the toast should 
 disappear on CALL_STATE_IDLE but toast continues to appear even after 
 reaching to idle state,
  here is my code:

 @Override
 public void onCallStateChanged(int state, String incomingNumber) {

   Toast toast = new Toast(ctx); // i am passing context here
   switch(state){
 case TelephonyManager.CALL_STATE_IDLE:
 Log.d(DEBUG, IDLE);

   toast.cancel();
 
 break;

 case TelephonyManager.CALL_STATE_OFFHOOK:
 Log.d(DEBUG, OFFHOOK);
   
 break;
 case TelephonyManager.CALL_STATE_RINGING:
  
 Log.d(DEBUG, RINGING);
   toast.makeText( ctx, incoming call  , 
 Toast.LENGTH_SHORT).show();
 
 break;
 }
 }



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

2012-12-21 Thread Kristopher Micinski
There's a difference between changing the old one and removing it from
storage: I assume the latter is what the OP wants...

Kris

On Fri, Dec 21, 2012 at 8:54 AM, skink psk...@gmail.com wrote:


 Narendra Singh Rathore wrote:
 Hi all,

 I know inserting a ringtone programmatically,
 but want to know about deleting a specific ringtone from the system
 ringtone list.
 What I know, is the title of the ringtone.

 I googled a lot about it, but unluckily, couldn't find any way to achieve
 exactly what I want.

 Please, guide me the way to delete the ringtone using title of the ringtone.

 Thanks  Regards,
 NSR

 how do you insert a ringtone
 programmatically?

 pskink

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

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


[android-developers] Re: Time Based Trigger in Android

2012-12-21 Thread Kristopher Micinski
Again, do not cross post this: this belongs on android-developers.

Your question has a simple answer: either trust that using 10 doesn't
really have all that much overhead (you should profile first), *or*
just use a single alarm manager scheduling the next event across all
the queues.

Kris


On Fri, Dec 21, 2012 at 11:44 AM, srinuvasareddy avula
srinu532av...@gmail.com wrote:
 Good idea thanks..   but my requirement have 10 schedules are there so i
 have to create 10 pending intent and  services.is there any optimization
 method to create   single pending intent and single service...

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

2012-12-21 Thread BearTi
Hi,

I need a broadcast-receiver which react on state changes of the wi-fi 
connectivity. 
I don´t want to get an intent when the wi-fi is enabled or disabled by the 
user... 
I just want a message when for the connection to one of the, in my phone 
configured wi-fi networks (supplicant), has been lost.

I tried it with the ConnectivityManager.CONNECTIVITY_ACTION, but here I get 
more intens i need.

Any idea? 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] W-Fi Connectivity Receiver

2012-12-21 Thread Irfan Sheriff
http://developer.android.com/reference/android/net/wifi/WifiManager.html#NETWORK_STATE_CHANGED_ACTION


On Fri, Dec 21, 2012 at 1:35 PM, BearTi mlrti...@gmail.com wrote:

 Hi,

 I need a broadcast-receiver which react on state changes of the wi-fi
 connectivity.
 I don´t want to get an intent when the wi-fi is enabled or disabled by the
 user...
 I just want a message when for the connection to one of the, in my phone
 configured wi-fi networks (supplicant), has been lost.

 I tried it with the ConnectivityManager.CONNECTIVITY_ACTION, but here I
 get more intens i need.

 Any idea? 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

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

2012-12-21 Thread BearTi
I alos tried this, but here i only get a notify when the wi-fi function is 
being enabled/disabled... not when i lost the connection to a hotspot :-/


Am Freitag, 21. Dezember 2012 22:44:41 UTC+1 schrieb Irfan Sheriff:


 http://developer.android.com/reference/android/net/wifi/WifiManager.html#NETWORK_STATE_CHANGED_ACTION


 On Fri, Dec 21, 2012 at 1:35 PM, BearTi mlrt...@gmail.com 
 javascript:wrote:

 Hi,

 I need a broadcast-receiver which react on state changes of the wi-fi 
 connectivity. 
 I don´t want to get an intent when the wi-fi is enabled or disabled by 
 the user... 
 I just want a message when for the connection to one of the, in my phone 
 configured wi-fi networks (supplicant), has been lost.

 I tried it with the ConnectivityManager.CONNECTIVITY_ACTION, but here I 
 get more intens i need.

 Any idea? 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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] W-Fi Connectivity Receiver

2012-12-21 Thread Irfan Sheriff
On Fri, Dec 21, 2012 at 1:54 PM, BearTi mlrti...@gmail.com wrote:

 I alos tried this, but here i only get a notify when the wi-fi function is
 being enabled/disabled... not when i lost the connection to a hotspot :-/


I do not follow you entirely - what do you mean by wi-fi function is
enabled/disabled ?

This intent includes NetworkInfo extra which will tell you everytime Wi-Fi
was connected or disconnected.




 Am Freitag, 21. Dezember 2012 22:44:41 UTC+1 schrieb Irfan Sheriff:

 http://developer.android.com/**reference/android/net/wifi/**
 WifiManager.html#NETWORK_**STATE_CHANGED_ACTIONhttp://developer.android.com/reference/android/net/wifi/WifiManager.html#NETWORK_STATE_CHANGED_ACTION


 On Fri, Dec 21, 2012 at 1:35 PM, BearTi mlrt...@gmail.com wrote:

 Hi,

 I need a broadcast-receiver which react on state changes of the wi-fi
 connectivity.
 I don´t want to get an intent when the wi-fi is enabled or disabled by
 the user...
 I just want a message when for the connection to one of the, in my phone
 configured wi-fi networks (supplicant), has been lost.

 I tried it with the ConnectivityManager.**CONNECTIVITY_ACTION, but here
 I get more intens i need.

 Any idea? 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-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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


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

2012-12-21 Thread BearTi
With  wi-fi function is enabled/disabled i mean that the wi-fi modul is 
turned off
I tried it with NETWORK_STATE_CHANGED_ACTION, I turned off my router and so 
the connection to it broke up, but there was no intent fired :-/


Am Freitag, 21. Dezember 2012 23:04:21 UTC+1 schrieb Irfan Sheriff:

 On Fri, Dec 21, 2012 at 1:54 PM, BearTi mlrt...@gmail.com 
 javascript:wrote:

 I alos tried this, but here i only get a notify when the wi-fi function 
 is being enabled/disabled... not when i lost the connection to a hotspot :-/


 I do not follow you entirely - what do you mean by wi-fi function is 
 enabled/disabled ?

 This intent includes NetworkInfo extra which will tell you everytime Wi-Fi 
 was connected or disconnected.
  



 Am Freitag, 21. Dezember 2012 22:44:41 UTC+1 schrieb Irfan Sheriff:

 http://developer.android.com/**reference/android/net/wifi/**
 WifiManager.html#NETWORK_**STATE_CHANGED_ACTIONhttp://developer.android.com/reference/android/net/wifi/WifiManager.html#NETWORK_STATE_CHANGED_ACTION


 On Fri, Dec 21, 2012 at 1:35 PM, BearTi mlrt...@gmail.com wrote:

 Hi,

 I need a broadcast-receiver which react on state changes of the wi-fi 
 connectivity. 
 I don´t want to get an intent when the wi-fi is enabled or disabled by 
 the user... 
 I just want a message when for the connection to one of the, in my 
 phone configured wi-fi networks (supplicant), has been lost.

 I tried it with the ConnectivityManager.**CONNECTIVITY_ACTION, but 
 here I get more intens i need.

 Any idea? 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-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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: ANR keyDispatchingTimedOut

2012-12-21 Thread Bram Stolk
On Wednesday, September 15, 2010 5:32:01 PM UTC-7, Dan wrote:

 Hi all, 

 I've got an application with an alarming number of users reporting 
 force closes. I've tested multiple devices numerous times and never 


I have 756 reported case on an install base of 1.5M downloads.
ANR keyDispatchingTimedOut

I can reproduce by creating multiple events at exactly the same time.
E.g. by using gamepad and touchscreen at the same time, or the hardware 
volume button and touch screen at the same time.

In case you are using NDK with the glue code:
I found a work around for the cause of my ANR by changing the glue code.
Here is how to adapt the glue code:
http://ps3computing.blogspot.ca/2012/12/anr-application-not-responding.html

If you are seeing a lot more cases than 1:2000 users, than I think you are 
probably blocking the main thread, and have an issue in your own code base.

  Bram


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] switch wireless access point via command line

2012-12-21 Thread elliotn
In order to do some testing I needed to switch access points while my 
Activity was running. Consequently, I was looking for a way to manually 
change wireless access points via the command line. 

In case this might help someone else, here's what I came up with for 
switching between test and tether access points.

# as root go to wifi dir
adb shell
cd /data/misc/wifi

# save original file
mv wpa_supplicant.conf wpa_supplicant.conf.orig


# test access point
cp wpa_supplicant.conf.orig wpa_supplicant.conf.test
chown system:wifi wpa_supplicant.conf.test

# remove all network info other than test access point
vi wpa_supplicant.conf.test


# tether access point
cp wpa_supplicant.conf.orig wpa_supplicant.conf.tether
chown system:wifi wpa_supplicant.conf.tether

# remove all network info other than tether
vi wpa_supplicant.conf.tether


# create script for test (/sdcard/wifitest)
rm wpa_supplicant.conf
ln -s wpa_supplicant.conf.test wpa_supplicant.conf
svc wifi disable
svc wifi enable

# create script for tether (/sdcard/wifitether)
rm wpa_supplicant.conf
ln -s wpa_supplicant.conf.tether wpa_supplicant.conf
svc wifi disable
svc wifi enable

# run applicable script
bash /sdcard/wifitest
bash /sdcard/wifitether

# cleanup
mv wpa_supplicant.conf.orig wpa_supplicant.conf
rm wpa_supplicant.conf.test
rm wpa_supplicant.conf.tether


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

2012-12-21 Thread TreKing
On Fri, Dec 21, 2012 at 9:24 AM, Keith Wiley kbwi...@gmail.com wrote:

 Like I said, I haven't tested it on a previously published app, only on
 draft apps that were never published in the first place...


Ah, missed that ... that makes more sense then.

I don't know if it would do that for an app once it was published,


It doesn't, I know. I'd love delete an ancient version of my free app that
is never going to see the light of day again.


 but it is certainly different from the new console in this regard.


I feel you. I created a test app to experiment with something and found
that there is no way to delete it. I contacted support and (shocker)
never heard back. I also left feedback on the new design.

It's also fantastic because the new app made in the new console doesn't
appear in the old console, so you can't delete it that way. Womp womp.

-
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: Send bug report from 4.1

2012-12-21 Thread TreKing
On Thu, Dec 20, 2012 at 4:06 AM, Latimerius l4t1m3r...@gmail.com wrote:

 GOOD ADVICE


QFE. This. Seriously.

-
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] Behaviour of EditText.

2012-12-21 Thread TreKing
On Thu, Dec 20, 2012 at 2:48 AM, monty mca.himanshusha...@gmail.com wrote:

 and for making edittext numberic  i am using  android:inputtype = numeric
  in my xml.
 but after running the code ,i observe the output that softkeyborad for
 numeric edittext showing the text words i.e A to Z.


You're overriding the flags you set in XML. Just add both flags in XML.
They're flags - you can specify more than one ...

-
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] Bad View Behavior with Changing ListViews

2012-12-21 Thread TreKing
On Wed, Dec 19, 2012 at 9:23 PM, Evan Ruff evan.r...@gmail.com wrote:

 Is there some step I'm missing?


notifyDataSetChanged() ?

-
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] Audio streaming application

2012-12-21 Thread Ali
Hi All,

We are looking to develop an Audio streaming application where we have the 
media files on a web server and have users browse them and play them on 
android phones. What is the best approach to develop this. Would be 
helpfule if you can share your experiences and best practices.

Thanks for your time.

Cheers,
Ali

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

2012-12-21 Thread Talha Qamar
Hi i have sent u the simple code needed for audio streaming.Check it.Its
working.
HaPpY CoDiNg :)
Regards,
Talha Qamar.

On Sat, Dec 22, 2012 at 11:05 AM, Ali aliwor...@gmail.com wrote:

 Hi All,

 We are looking to develop an Audio streaming application where we have the
 media files on a web server and have users browse them and play them on
 android phones. What is the best approach to develop this. Would be
 helpfule if you can share your experiences and best practices.

 Thanks for your time.

 Cheers,
 Ali

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=enpublic class StreamaudioActivity extends Activity implements OnClickListener,
OnPreparedListener, OnErrorListener, OnCompletionListener {
 
MediaPlayer mp;
ProgressDialog pd;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
   if(mp!= null){ mp.stop();}
   else{
Button bt = (Button)findViewById(R.id.play);

bt.setOnClickListener(this);
}
}
public void onCompletion(MediaPlayer arg0) {
 pd.dismiss();
 Toast.makeText(getApplicationContext(), Completed, 
Toast.LENGTH_LONG).show();   
// mp.start();
}
public boolean onError(MediaPlayer mp, int what, int extra) {
 pd.dismiss();
return false;
}
public void onPrepared(MediaPlayer mp) {
 Log.i(StreamAudioDemo, finished);
   pd.setMessage(Playing.);
  mp.start();

}
public void onClick(View arg0) {
 try
{
pd = new ProgressDialog(this);
pd.setMessage(Buffering.);
pd.show();
mp = new MediaPlayer();
mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
mp.setOnPreparedListener(this);
mp.setOnErrorListener(this);
   
mp.setDataSource(http://www.robtowns.com/music/blind_willie.mp3;);
  
  
 
mp.prepareAsync();
mp.setOnCompletionListener(this);
}
catch(Exception e)
{
Log.e(StreamAudioDemo, e.getMessage());
}
}
}

Re: [android-developers] Audio streaming application

2012-12-21 Thread Ali
Thanks Talha for the quick response and code details.

Will this support pause/play ? and navigation like next/prev tracks etc

On Saturday, December 22, 2012 9:52:16 AM UTC+3, Talha Qamar wrote:

 Hi i have sent u the simple code needed for audio streaming.Check it.Its 
 working.
 HaPpY CoDiNg :)
 Regards,
 Talha Qamar.

 On Sat, Dec 22, 2012 at 11:05 AM, Ali aliw...@gmail.com javascript:wrote:

 Hi All,

 We are looking to develop an Audio streaming application where we have 
 the media files on a web server and have users browse them and play them on 
 android phones. What is the best approach to develop this. Would be 
 helpfule if you can share your experiences and best practices.

 Thanks for your time.

 Cheers,
 Ali

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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] Gravity Center not working for Sanskrit Font

2012-12-21 Thread Sandy
Hello Everyone...

I need your help urgently.. 

I am working on application where I require to use Sanskrit fonts  align 
them in center. I am able to display sanskrit font using following code. I 
do specify the property for center gravity, still it is not working any 
more. Text is not getting proper center of the screen. Here is my code that 
I am using.

*TextView tv = new TextView(this);
*
*tv.setGravity(Gravity.CENTER_HORIZONTAL**| Gravity.CENTER_VERTICAL);*
*Typeface font = Typeface.createFromAsset(getAssets(), mangal.ttf);
*
*tv.setTypeface(font);
*
*tv.setText(R.string.string1);*
*
*

Please help me to solve this issue. 

Waiting for your replies. 
Thank You

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