[android-developers] [android-developers]Too many audioflinger blocked warn,please help.
Hi all. I have a problem with the pcm data play.when I use the AudioTrack.write to play a the pcm data buffer,I get the below warn messages.It's keep printing when the play is going,and the audio outputed is with some noise.Maybe that's the warn why the noise are there.Anyone solved this problem before? please help.Thanks in advance. W/AudioFlinger( 556): write blocked for 180 msecs W/AudioFlinger( 556): write blocked for 172 msecs . . .. .. .. --~--~-~--~~~---~--~~ 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] [android-developers]JNI_CreateJavaVM link error,can't find reference of JNI_CreateJavaVM
HI,All I hava write a application with function JNI_CreateJavaVM.It 's all ok when compile,but link can't find the JNI_CreateJavaVM method. (jint res = JNI_CreateJavaVM(jvm,env,vm_args);) The stand java application use the jvm.lib when link,but It seems there is no file named jvm.lib in android.but,which lib should my application link?Anyone do this before?please help,thanks. --~--~-~--~~~---~--~~ 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: Android data buffer pass by jni problem
HI,fadden I am very sorry.I don't know very well about jni,and I still don't know the way to pass the data buffer (point of void *)from native code to the android application.Could you give me further explanation or give a example to do this.I have read some document about jni,but it seems android's jni is difference with stand java jni.so,I don't know how to to archive this without the document.Thanks in advance. 2009/8/5 fadden fad...@android.com: Check the archives on the android-ndk list, e.g.: http://groups.google.com/group/android-ndk/browse_thread/thread/36a4d13cb0d4bc26# http://groups.google.com/group/android-ndk/browse_thread/thread/a610cfe73aa2618e/c27be634e3305304 On Aug 4, 12:23 am, frog bluewater0...@gmail.com wrote: Hi,all Have some tryed to pas databuffer on android by jni?I have a native method like this: int foo(void * buffer, //(out param) the point to the buffer int *buffersize //(out param) the point to the buffer size { a = foo(); b = foo1(); return 0;} And I want to use it in android application to pass the buffer data to the application,How can I do this? Thanks in advance. --~--~-~--~~~---~--~~ 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: Android data buffer pass by jni problem
Thanks again, fadden. 2009/8/7 fadden fad...@android.com: On Aug 6, 12:10 am, frog bluewater0...@gmail.com wrote: I am very sorry.I don't know very well about jni,and I still don't know the way to pass the data buffer (point of void *)from native code to the android application.Could you give me further explanation or give a example to do this.I have read some document about jni,but it seems android's jni is difference with stand java jni.so,I don't know how to to archive this without the document.Thanks in advance. There are very few differences between Dalvik's JNI and others. Programmer's Guide (a book on JNI): http://java.sun.com/docs/books/jni/html/jniTOC.html JNI spec: http://java.sun.com/javase/6/docs/technotes/guides/jni/spec/jniTOC.html Android-specific JNI tips: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/jni-tips.html;hb=HEAD --~--~-~--~~~---~--~~ 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: Android data buffer pass by jni problem
Thanks fadden. I'll try this. 2009/8/5 fadden fad...@android.com: Check the archives on the android-ndk list, e.g.: http://groups.google.com/group/android-ndk/browse_thread/thread/36a4d13cb0d4bc26# http://groups.google.com/group/android-ndk/browse_thread/thread/a610cfe73aa2618e/c27be634e3305304 On Aug 4, 12:23 am, frog bluewater0...@gmail.com wrote: Hi,all Have some tryed to pas databuffer on android by jni?I have a native method like this: int foo(void * buffer, //(out param) the point to the buffer int *buffersize //(out param) the point to the buffer size { a = foo(); b = foo1(); return 0;} And I want to use it in android application to pass the buffer data to the application,How can I do this? Thanks in advance. --~--~-~--~~~---~--~~ 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] Android data buffer pass by jni problem
Hi,all Have some tryed to pas databuffer on android by jni?I have a native method like this: int foo(void * buffer, //(out param) the point to the buffer int *buffersize //(out param) the point to the buffer size { a = foo(); b = foo1(); return 0; } And I want to use it in android application to pass the buffer data to the application,How can I do this? Thanks in advance. --~--~-~--~~~---~--~~ 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] [android-developers]how to incude include static files(.a) in android jni application?
HI,all I am recently developing a application use android jni.but,it cannot works.The application is base on a static library, and ofcourse with some *.h files.I have include the .h files in my .cpp file,but it seems , the comile cann't find the vars definded in them. my Android.mk is like this: . LOCAL_STATIC_LIBRARIES += \ libfoo LOCAL_C_INCLUDE += \ $(JNI_H_INCLUDES) ./ . I build the application by the mmm foo at ${android_source}. Anyone have done this before?Please help.thanks in advance. --~--~-~--~~~---~--~~ 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: [android-developers]how to incude include static files(.a) in android jni application?
Thanks David. I have this done by add my static library files to the the android's library path.Thanks for help. BTW. I have no NDK to use,and the static library is from other company. 2009/7/31 David Turner di...@android.com You need to generate a shared library, not a static one, to be able to use native code with JNI. May I recommend you to download and use the Android NDK to do that? On Fri, Jul 31, 2009 at 10:00 AM, frog bluewater0...@gmail.com wrote: HI,all I am recently developing a application use android jni.but,it cannot works.The application is base on a static library, and ofcourse with some *.h files.I have include the .h files in my .cpp file,but it seems , the comile cann't find the vars definded in them. my Android.mk is like this: . LOCAL_STATIC_LIBRARIES += \ libfoo LOCAL_C_INCLUDE += \ $(JNI_H_INCLUDES) ./ . I build the application by the mmm foo at ${android_source}. Anyone have done this before?Please help.thanks in advance. --~--~-~--~~~---~--~~ 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] how to add a progressbar or other widget to some row of the listview??
hi,all I had this questions a few days ago.but no one give the answer,perhaps that is because my mail didn't include the [android-developers]. have someone try to add some widget to listview here? I want to add a progress bar to the bottom of some row of list view.But now, I only know the way to add the seek bar to every row of the listview by add a progessbar to the layout of the listview. [ ListAdapter scbooks = new SimpleCursorAdapter(this,R.layout.bookrow_layout,bookcur, from, to); ] here is my bookrow_layout.xml RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent !-- -- TextView android:id=@+id/booklist1 android:layout_width=wrap_content android:layout_height=30dip android:maxWidth=200dip android:textSize=20dip android:layout_marginTop=10dip / ProgressBar android:id=@+id/progress_horizontal style=?android:attr/progressBarStyleHorizontal android:layout_width=fill_parent android:layout_height=5dip android:max=100 android:progress=30 android:background=#00FF00 android:textColor=#00FF00/ /RelativeLayout Are some way to add the progressbar to some row of the listview? Or are there some way to get the ID of the row in listview? anyone can help me?thanks in advance. 非常感谢! --~--~-~--~~~---~--~~ 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: how to add a progressbar or other widget to some row of the listview??
thanks Mark but ,I did try this method,I add the FootView to the listview,but it looks strang.Only two button(or other something ,and It's blinking all the way)apeared at the bottom of the list.I want to add bottom of some row just like this:-- --progressbar here- progressbar here - the widget is in the middle of the rows of listview,how can I archive this.Anyone else can help me please? Thanks in advance. 2009/7/30 Mark Murphy mmur...@commonsware.com frog wrote: I had this questions a few days ago.but no one give the answer,perhaps that is because my mail didn't include the [android-developers]. have someone try to add some widget to listview here? I want to add a progress bar to the bottom of some row of list view.But now, I only know the way to add the seek bar to every row of the listview by add a progessbar to the layout of the listview. [ ListAdapter scbooks = new SimpleCursorAdapter(this,R.layout.bookrow_layout,bookcur, from, to); ] Try ListView#addFooterView(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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] how to add a seekbar or some other widget to the listview?
hi,all Someone have try add some widget to listview here? I want to add a progressbar to the bottom of some row of listview.But now, I only know the way to add the seekbar to every row of the listview by add a progessbar to the layout of the listview. [ ListAdapter scbooks = new SimpleCursorAdapter(this,R.layout.bookrow_layout,bookcur, from, to); ] here is my bookrow_layout.xml RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent !-- -- TextView android:id=@+id/booklist1 android:layout_width=wrap_content android:layout_height=30dip android:maxWidth=200dip android:textSize=20dip android:layout_marginTop=10dip / ProgressBar android:id=@+id/progress_horizontal style=?android:attr/progressBarStyleHorizontal android:layout_width=fill_parent android:layout_height=5dip android:max=100 android:progress=30 android:background=#00FF00 android:textColor=#00FF00/ /RelativeLayout Are some way to add the progressbar to some row of the listview? Or are there some way to get the ID of the listview? anyone can help me?thanks in advance. 非常感谢! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---