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 Map<Thread, 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

Reply via email to