How to reuse Audalyzer in my application

81 views
Skip to first unread message

Mehdi Fanai

unread,
Oct 29, 2012, 3:56:36 PM10/29/12
to moon...@googlegroups.com
Hi and thanks for the great effort on delivering such application to android users community for free.
I need to integrate audalyzer inside my application but when I use the following scenarios inside my fragment I get error inflating xml:
 
1.Here is the code in my xml layout which will give error inflating xml. What changes should I make to InstrumentPanel to make it run this way?  :
 

<org.hermit.audalyzer.InstrumentPanel

android:id="@+id/instrumentpanel"

android:layout_width="fill_parent"

android:layout_height="0dp"

android:layout_weight = "1" />

 

2.i can't use the following code because I'm inside a fragment:

audioInstrument = new InstrumentPanel(this.getActivity());

setContentView(audioInstrument);

 

 

 

 

 

 

Reply all
Reply to author
Forward
0 new messages