ADB LogCat output

  11 posts   Feedicon  
Replies: 10 - Last Post: November 16, 2009 15:03
by: birbird
showing 1 - 11 of 11
 
Posted: August 22, 2009 21:29 by Nyerel
Hi, I started to develop a little module that could make an addition to this project - the main goal is to provide the log from device (output of command adb logcat), something (exactly) like LogCat View in Eclipse ADT. It may be the only thing i am missing in this project. I had some previous experience in NetBeans module development, so I thought it wouldn't take too much time.... so I started very simply - by parsing the output of the 'adb logcat' system command... but then i ran into some problems with adb and started to look inside the source code of this project for answers, and i found out that my approach was completely wrong Grin
So i found the DDMLib library and the class AndroidDebugBridge, but I can't find any relevant documentation... is it somewhere?
I think i managed to find the right package for my intentions (com.android.ddmlib.log.*), but I can't parse the Device.runLogEventService output without documentation...
Does anyone have any clue of what I am talking about? Grin
 
Posted: August 22, 2009 21:39 by Nyerel
And one more thing (concerning NB module development in general) ...
I created my own module which was supposed to be the LogCat thingy, outside the module suite of this project. Then I wanted to make some dependencies on the modules from that suite, but I couldn't, because they just weren't there. I managed to deal with this by adding my module to your suite. Is there any other way?
 
Posted: August 23, 2009 21:05 by radim
Perhaps a question for nbdev@netbeans.org. I guess it is possible to modify the target platform to include the suite though you need to find details. harness/README file in your NetBeans distribution has some documentation.

-Radim
 
Posted: August 26, 2009 04:46 by radim
I found a related blog post today http://blogs.sun.com/geertjan/entry/sharing_code_between_different_netbeans

-Radim
 
Posted: August 31, 2009 18:20 by Nyerel
thank you very much, that was very helpful Smile
 
Posted: August 23, 2009 20:59 by radim
Excellent! That would be welcomed!

You can find sources for these libraries (as well as for Eclipse plugin to see how it uses them) at source.android.com. I believe that cupcake branch is most likely to be close to version bundled with NBAndroid - I took the libraries from Android SDK but there is mo clear indication how these were built.

Thanks,
Radim
 
Posted: September 05, 2009 17:02 by Nyerel
Hi Radim,

i've got a working (i hope Grin ) alpha version , but now i don't know what to do with it Grin I'm kind of new to all this collaborative development / mercurial / Kenai project / issue tracking Grin. Do you want me to send it to you so you can take a look at it? Smile I also created an issue in the tracker about device selection technique, please take a look at it too Smile
 
Posted: September 07, 2009 07:38 by radim
Excellent! Anything what works for you is fine. If you want to send the sources to me it is OK. If you want to create a record in our bug tracker and attach it here that's fine too. Depending on how you manage your source now it can be just the source archive or patch or some export from your version control.

Of course this assumes you are OK with Apache2.0 license. Can you confirm that?

Many thanks,
Radim
 
Posted: September 09, 2009 13:17 by Nyerel
I'm not very familiar with licences either Grin but i'm sure apache2.0 would be fine.

I used 2 classes from the nbandroid project: org.netbeans.modules.android.core.dmm.AndroidDebugBridgeFactory and DebugPortProvider from the same package. I just copy-pasted them into my project, because the Android Core is a non-api module and it said my module would have to be 'friend' with Android Core... so I just copy pasted these 2 classes... I don't know if that's right, or if I should mention this somewhere in the sources or something... Smile
Also i borrowed some pieces of code from ddmuilib (like one method for parsing log output), i don't know if / how / where / to mention that either Smile

Anyway, here it is Smile
http://rapidshare.com/files/277676026/Nyerel_s_NBAndroid_Suite.7z.html

(you will find the actual log in Window -> Log, I'll change that later to something like Window -> Android -> LogCat and give it some icon too Smile
 
Posted: September 11, 2009 04:20 by radim
Thanks, I will put it in in few days. Once I resolve dependencies on JDK6 and new methods from NB6.7 and try that I did not break anything.

-Radim
 
Posted: November 16, 2009 15:03 by birbird
Hi, has this feature been put in already?

I have installed the latest nbandroid, but cannt find the logcat output...

A lot of thanks for your hard working on nbandroid! Smile
showing 1 - 11 of 11
Replies: 10 - Last Post: November 16, 2009 15:03
by: birbird
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close