Re: [android-developers] Re: Back Trace in Android

2011-04-22 Thread Oscar Marques
You can use strace compiled to arm.
I tried and it works.

2011/4/22 Pandi pandiwelco...@gmail.com

 It is function trace/stack trace.
 Which will give who is calling what?



 On Apr 22, 3:51 pm, Kumar Bibek coomar@gmail.com wrote:
  WHat's a Back Trace?
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
  On Fri, Apr 22, 2011 at 4:12 PM, Pandi pandiwelco...@gmail.com wrote:
   Hi, How to get back trace in android??
 
   --
   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




-- 
Oscar Marques
osca...@gmail.com
http://www.dunkelheit.com.br
Twitter: @f117usbr
+55 21 9293-9343


Participe do I Hack'n Rio http://hacknrio.org/


-- 
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: Back Trace in Android

2011-04-22 Thread Pandi
It is function trace/stack trace.
Which will give who is calling what?



On Apr 22, 3:51 pm, Kumar Bibek coomar@gmail.com wrote:
 WHat's a Back Trace?

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Fri, Apr 22, 2011 at 4:12 PM, Pandi pandiwelco...@gmail.com wrote:
  Hi, How to get back trace in android??

  --
  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] Re: Back Trace in Android

2011-04-22 Thread Kostya Vasilyev

strace is for native code.

For Java code, there are useful functions in java.lang.Thread:

http://developer.android.com/reference/java/lang/Thread.html

static void dumpStack()

static MapThread, StackTraceElement[] getAllStackTraces()

StackTraceElement[] getStackTrace()

-- Kostya

22.04.2011 15:49, Oscar Marques ?:

You can use strace compiled to arm.
I tried and it works.

2011/4/22 Pandi pandiwelco...@gmail.com mailto:pandiwelco...@gmail.com

It is function trace/stack trace.
Which will give who is calling what?



On Apr 22, 3:51 pm, Kumar Bibek coomar@gmail.com
mailto:coomar@gmail.com wrote:
 WHat's a Back Trace?

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
http://www.kbeanie.com

 On Fri, Apr 22, 2011 at 4:12 PM, Pandi pandiwelco...@gmail.com
mailto:pandiwelco...@gmail.com wrote:
  Hi, How to get back trace in android??

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




--
Oscar Marques
osca...@gmail.com mailto:osca...@gmail.com
http://www.dunkelheit.com.br
Twitter: @f117usbr
+55 21 9293-9343


Participe do I Hack'n Rio http://hacknrio.org/



--
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 



--
Kostya Vasilyev -- 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: Back Trace in Android

2011-04-22 Thread Pandi
Thanks Kostya and Oscar Marques. I want to get stack trace at run time
from the code.

I want to use strace in my code. How? any samples???



On Apr 22, 4:57 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 strace is for native code.

 For Java code, there are useful functions in java.lang.Thread:

 http://developer.android.com/reference/java/lang/Thread.html

 static void dumpStack()

 static MapThread, StackTraceElement[] getAllStackTraces()

 StackTraceElement[] getStackTrace()

 -- Kostya

 22.04.2011 15:49, Oscar Marques ?:



  You can use strace compiled to arm.
  I tried and it works.

  2011/4/22 Pandi pandiwelco...@gmail.com mailto:pandiwelco...@gmail.com

      It is function trace/stack trace.
      Which will give who is calling what?

      On Apr 22, 3:51 pm, Kumar Bibek coomar@gmail.com
      mailto:coomar@gmail.com wrote:
       WHat's a Back Trace?

       Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
      http://www.kbeanie.com

       On Fri, Apr 22, 2011 at 4:12 PM, Pandi pandiwelco...@gmail.com
      mailto:pandiwelco...@gmail.com wrote:
        Hi, How to get back trace in android??

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

  --
  Oscar Marques
  osca...@gmail.com mailto:osca...@gmail.com
 http://www.dunkelheit.com.br
  Twitter: @f117usbr
  +55 21 9293-9343

  
  Participe do I Hack'n Rio http://hacknrio.org/
  

  --
  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

 --
 Kostya Vasilyev --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: Back Trace in Android

2011-04-22 Thread Oscar Marques
Try logcat, loginfo.

2011/4/22 Pandi pandiwelco...@gmail.com

 Thanks Kostya and Oscar Marques. I want to get stack trace at run time
 from the code.

 I want to use strace in my code. How? any samples???



 On Apr 22, 4:57 pm, Kostya Vasilyev kmans...@gmail.com wrote:
  strace is for native code.
 
  For Java code, there are useful functions in java.lang.Thread:
 
  http://developer.android.com/reference/java/lang/Thread.html
 
  static void dumpStack()
 
  static MapThread, StackTraceElement[] getAllStackTraces()
 
  StackTraceElement[] getStackTrace()
 
  -- Kostya
 
  22.04.2011 15:49, Oscar Marques ?:
 
 
 
   You can use strace compiled to arm.
   I tried and it works.
 
   2011/4/22 Pandi pandiwelco...@gmail.com mailto:
 pandiwelco...@gmail.com
 
   It is function trace/stack trace.
   Which will give who is calling what?
 
   On Apr 22, 3:51 pm, Kumar Bibek coomar@gmail.com
   mailto:coomar@gmail.com wrote:
WHat's a Back Trace?
 
Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
   http://www.kbeanie.com
 
On Fri, Apr 22, 2011 at 4:12 PM, Pandi pandiwelco...@gmail.com
   mailto:pandiwelco...@gmail.com wrote:
 Hi, How to get back trace in android??
 
 --
 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
   mailto:android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
   mailto:android-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
   mailto:android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   mailto:android-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   --
   Oscar Marques
   osca...@gmail.com mailto:osca...@gmail.com
  http://www.dunkelheit.com.br
   Twitter: @f117usbr
   +55 21 9293-9343
 
   
   Participe do I Hack'n Rio http://hacknrio.org/
   
 
   --
   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
 
  --
  Kostya Vasilyev --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




-- 
Oscar Marques
osca...@gmail.com
http://www.dunkelheit.com.br
Twitter: @f117usbr
+55 21 9293-9343


Participe do I Hack'n Rio http://hacknrio.org/


-- 
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: Back Trace in Android

2011-04-22 Thread Pandi
No...logcat will display only available logs in the code.
I want to track function call in android native code(.cpp,.c)

For Java, we can get from code which was mentioned by Kostya.


On Apr 22, 5:59 pm, Oscar Marques osca...@gmail.com wrote:
 Try logcat, loginfo.

 2011/4/22 Pandi pandiwelco...@gmail.com



  Thanks Kostya and Oscar Marques. I want to get stack trace at run time
  from the code.

  I want to use strace in my code. How? any samples???

  On Apr 22, 4:57 pm, Kostya Vasilyev kmans...@gmail.com wrote:
   strace is for native code.

   For Java code, there are useful functions in java.lang.Thread:

  http://developer.android.com/reference/java/lang/Thread.html

   static void dumpStack()

   static MapThread, StackTraceElement[] getAllStackTraces()

   StackTraceElement[] getStackTrace()

   -- Kostya

   22.04.2011 15:49, Oscar Marques ?:

You can use strace compiled to arm.
I tried and it works.

2011/4/22 Pandi pandiwelco...@gmail.com mailto:
  pandiwelco...@gmail.com

    It is function trace/stack trace.
    Which will give who is calling what?

    On Apr 22, 3:51 pm, Kumar Bibek coomar@gmail.com
    mailto:coomar@gmail.com wrote:
     WHat's a Back Trace?

     Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
    http://www.kbeanie.com

     On Fri, Apr 22, 2011 at 4:12 PM, Pandi pandiwelco...@gmail.com
    mailto:pandiwelco...@gmail.com wrote:
      Hi, How to get back trace in android??

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

--
Oscar Marques
osca...@gmail.com mailto:osca...@gmail.com
   http://www.dunkelheit.com.br
Twitter: @f117usbr
+55 21 9293-9343


Participe do I Hack'n Rio http://hacknrio.org/


--
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

   --
   Kostya Vasilyev --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

 --
 Oscar Marques
 osca...@gmail.comhttp://www.dunkelheit.com.br
 Twitter: @f117usbr
 +55 21 9293-9343

 
 Participe do I Hack'n Rio http://hacknrio.org/
 

-- 
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: Back Trace in Android

2011-04-22 Thread Mark Murphy
On Fri, Apr 22, 2011 at 11:33 AM, Pandi pandiwelco...@gmail.com wrote:
 No...logcat will display only available logs in the code.
 I want to track function call in android native code(.cpp,.c)

Questions regarding the NDK are best asked here:

http://groups.google.com/group/android-ndk

(after searching that list for answers, of course)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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