[android-developers] Re: How to capture system warnings in application ?

2011-05-20 Thread chcat
OK. Asynchronous notification, like exception handler in application
code to receive that warning from OS.
Note that I implemented MediaRecorder.OnError and MediaRecorder.OnInfo
handlers in my app. Neither seems to catch anything useful.


On May 20, 1:59 pm, TreKing  wrote:
> On Fri, May 20, 2011 at 9:11 AM, chcat  wrote:
> > Any idea how i can capture that warning in my application code?
>
> Define "capture".
>
> -
> 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: How to capture system warnings in application ?

2011-05-23 Thread chcat
Thank you so much for this insight. I don't think this SDK has any
future in the first place. In any case I would not want to work with
it in the future.


On May 21, 1:36 pm, Dianne Hackborn  wrote:
> Also don't count on being able to do that in the future.  Note that even
> though there is a permission, there is not actually a public API to read the
> logs, so any attempt to do so requires the use of private APIs that may not
> be supported in the future.  Also since there have been continual issues
> with device and apps leaking significant data in to the logs, it may make
> sense to simply prevent access to this permission to protect users.
>
>
>
> On Sat, May 21, 2011 at 7:53 AM, Chris Stratton  wrote:
> > On Friday, May 20, 2011 6:16:39 PM UTC-4, TreKing wrote:
>
> >> On Fri, May 20, 2011 at 4:43 PM, chcat  wrote:
>
> >>> OK. Asynchronous notification, like exception handler in application code
> >>> to receive that warning from OS.
>
> >> The warning in the logcat just indicate that the app / system decided to
> >> log something for that case. It does not imply that there is an exception 
> >> or
> >> other mechanism being generated to accompany the log.
>
> >> So, no, probably no way to "capture" this stuff. At least AFAICT given the
> >> information at hand.
>
> > There are ways to read the logs - check the developer docs.  However a
> > manifest permission will be required; personal user information may well be
> > in the logs.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: How to capture system warnings in application ?

2011-05-23 Thread Chris
On May 23, 12:44 pm, chcat  wrote:
> Thank you so much for this insight. I don't think this SDK has any
> future in the first place. In any case I would not want to work with
> it in the future.

And developers who would rather not scrub potentially identifiable
data from a private log file all over the world thank you for giving
up so succinctly.

Cheers, don't let the door hit you on the way out!

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


Re: [android-developers] Re: How to capture system warnings in application ?

2011-05-20 Thread TreKing
On Fri, May 20, 2011 at 4:43 PM, chcat  wrote:

> OK. Asynchronous notification, like exception handler in application code
> to receive that warning from OS.
>

The warning in the logcat just indicate that the app / system decided to log
something for that case. It does not imply that there is an exception or
other mechanism being generated to accompany the log.

So, no, probably no way to "capture" this stuff. At least AFAICT given the
information at hand.

-
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: How to capture system warnings in application ?

2011-05-21 Thread Chris Stratton
On Friday, May 20, 2011 6:16:39 PM UTC-4, TreKing wrote:
>
> On Fri, May 20, 2011 at 4:43 PM, chcat  wrote:
>
>> OK. Asynchronous notification, like exception handler in application code 
>> to receive that warning from OS.
>>
>
> The warning in the logcat just indicate that the app / system decided to 
> log something for that case. It does not imply that there is an exception or 
> other mechanism being generated to accompany the log.
>
> So, no, probably no way to "capture" this stuff. At least AFAICT given the 
> information at hand.
>

There are ways to read the logs - check the developer docs.  However a 
manifest permission will be required; personal user information may well be 
in the logs. 

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

2011-05-21 Thread Dianne Hackborn
Also don't count on being able to do that in the future.  Note that even
though there is a permission, there is not actually a public API to read the
logs, so any attempt to do so requires the use of private APIs that may not
be supported in the future.  Also since there have been continual issues
with device and apps leaking significant data in to the logs, it may make
sense to simply prevent access to this permission to protect users.

On Sat, May 21, 2011 at 7:53 AM, Chris Stratton  wrote:

> On Friday, May 20, 2011 6:16:39 PM UTC-4, TreKing wrote:
>
>> On Fri, May 20, 2011 at 4:43 PM, chcat  wrote:
>>
>>> OK. Asynchronous notification, like exception handler in application code
>>> to receive that warning from OS.
>>>
>>
>> The warning in the logcat just indicate that the app / system decided to
>> log something for that case. It does not imply that there is an exception or
>> other mechanism being generated to accompany the log.
>>
>> So, no, probably no way to "capture" this stuff. At least AFAICT given the
>> information at hand.
>>
>
> There are ways to read the logs - check the developer docs.  However a
> manifest permission will be required; personal user information may well be
> in the logs.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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