[android-developers] Get log/console output without root access

2015-01-29 Thread drac94
You should take a look at solutions for crash reporting like ACRA, I use it for 
all my apps and it's very easy to configure and manage

http://www.toptal.com/android/automated-android-crash-reports-with-acra-and-cloudant

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Get log/console output without root access

2015-01-28 Thread Mukesh Srivastav
Hi Stefan,

Here it is , if you are talking about Crash/FC that needs to be capture at
the class level/function level and the which line it fails,then you need to
handle it UncaughtExceptionHandler  exception.

here is the code for you which needs to be included in the Application
class.

private Thread.UncaughtExceptionHandler androidDefaultUEH;

private Thread.UncaughtExceptionHandler handler = new
Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread thread, Throwable ex) {
StackTraceElement[] stackTrace = ex.getStackTrace();
FileLogger.appendLog(uncaughtException, ex.toString());
for (int i = 0; i  stackTrace.length; i++) {
//Here the filelogger is your class where you put the application logs and
here, I am logging the crash in the file logger.
FileLogger.appendLog(
uncaughtException,
stackTrace[i].getClassName() +  : 
+ stackTrace[i].getMethodName() +  : 
+ stackTrace[i].getLineNumber());
}

androidDefaultUEH.uncaughtException(thread, ex);
}
};


and call this onCreate of the Application.

@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
//Here the filelogger is your class where you put the application logs.
FileLogger.appendLog(PalsApplication, onCreate);
androidDefaultUEH = Thread.getDefaultUncaughtExceptionHandler();
Thread.setDefaultUncaughtExceptionHandler(handler);
}








On Wed, Jan 28, 2015 at 1:19 PM, Stefan Alder twigbra...@gmail.com wrote:

 I need to get logcat output from our app is which appears to be crashing
 on load for a beta tester.  I have not been able to replicate the issue
 myself.

 Is there an easy way a beta tester (who is not a developer and doesn't
 have adb) to capture logcat output?


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Get log/console output without root access

2015-01-27 Thread Stefan Alder
I need to get logcat output from our app is which appears to be crashing on
load for a beta tester.  I have not been able to replicate the issue myself.

Is there an easy way a beta tester (who is not a developer and doesn't have
adb) to capture logcat output?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.