[android-developers] Android Vitals and Stuck Wakelocks

2017-08-07 Thread trey
We have an alert / warning about stuck wake locks in the new Vitals section 
of the Play Store Developer Console. The apps that have this alert are all 
audio apps and the offending WakeLock Tag appears to be the AudioMix lock. 
There is a note about apps that may need long-running locks, such as 
streaming music, which leads me to believe this warning can be ignored for 
these particular apps.

I'd like to get some verification on these particular vitals. If these 
alerts for locks such as AudioMix are a normal thing, can they be safely 
ignored? Also how are these vital statistics effecting our Play Store 
rankings, especially if a stuck wake lock for an audio app is considered 
"normal"?

Any information about this is appreciated.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/ff2d8d07-6a31-4833-8bf0-33b128d45258%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Application Recycling

2012-03-18 Thread Trey
Thank you all for your replies. I have tested each of my activities and 
their state saving using the rotate approach. But what I'm trying to test 
is the state of my entire application, not my activities.

For example:

If in activity 1 I initialize a static field to a value. Then lock the 
device on activity 5, I then return to my application 4 hours later, during 
which time the device reclaimed my application for memory. I then restore 
my app and am looking at activity 5, I then tap something and navigate to 
activity 6, once there the activity attempts to access the field 
initialized in activity 1, but since activity 1 hasn't ran since the 
application was restored I get a null reference exception.

I realize this is a bad technique--and I want to be able to recreate 
application recycling in order to diagnose a similar issue, so that I may 
resolve it, but am unable to. Any ideas on how I can for application 
recycling, so that I can test this without having to wait 4 hours in 
between each test?

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

2012-03-16 Thread Trey
I'm trying to test my application's ability to be restored after my
phone reclaims it for memory. I'm unable to find a consistent way to
reproduce this behavior.

My first questions is:
What is the official term for this? Application Recycling doesn't
seem to help me find any information online.

Once I know what it's called I should be able to find some info, and
even search these forums accurately and find an answer; but if anyone
is willing to point me in the right direction I would appreciate that
as well!

Thanks,
Trey

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

2008-10-01 Thread Trey Ethridge

I'd like to expand the logic of when to send a call directly to
voicemail.  I believe that there would need to be a hook somewhere to
intercept the incoming call and determine whether or not to accept
it.

An example use case would be to prevent drunk dialing.  There could
be a setting in Android that would allow the user to set the device to
send all calls to voicemail if the the caller is not in the family
contact list and it is between 11:00 PM and 7:00 AM.

We have a checkbox to allow users to send all calls to voicemail from
a given contact, so I don't see why this should be a problem.  Is this
going to be possible?

-- Trey

On Sep 27, 4:27 pm, Eric B [EMAIL PROTECTED] wrote:
 One of the best apps I've every bought for my Treo 600/650 is an app
 that lets you assign specific ring tones (really mp3 files) to
 specific contacts or groups of contacts.  I especially like the
 ability to turn off the ringer and vibrator for calls with no caller
 id.

 I don't think this kind of app would be possible without being able 
 tointerceptacall.

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



[android-developers] Alternative for intent.getExtra()?

2008-05-11 Thread Trey Ethridge

I'm using the LocationManager to receive location updates via an
IntentReceiver.  The intent receiver looks something like this:

public class handleLocationUpdate extends IntentReceiver {
  public void onReceiveIntent(Context context, Intent intent) {
  Location loc = (Location) intent.getExtra(location);

  Double lat = loc.getLatitude()*1E6;
  Double lng = loc.getLongitude()*1E6;
  Point point = new Point(lat.intValue(), lng.intValue());
  mapController.centerMapTo(point, false);

  setContentView(mapView);
  }
}


I see that the getExtra() method is now deprecated.  The docs state to
use the type safe methods now, but there isn't a type safe method for
receiving Location objects, so what is the preferred way to retrieve
the Location object from the intent now?  I'm using sdk-m5-rc15.

Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Prevent phone from ringing?

2008-05-07 Thread Trey Ethridge

Let's say that I want to send a caller straight to voicemail if I'm
watching my favorite movie.  Is it possible to have a service that
grabs that Intent and doesn't let any other application have it?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---