[android-developers] Re: ant build wont include jars in libs/
oh it turned out there's a change dex-helper in SDK/tools/ant/ main_rules.xml I add a line fileset dir=${jar.libs.absolute.dir} includes=*.jar / inside apply then it works now sorry for bothering On Jan 14, 12:00 pm, allstars allstars@gmail.com wrote: hi in older sdk if i build my project with ant it will include all the jars in the libs/ folder but in the latest sdk (2.3) now it cannot I try to do 'dexdump' to the classes.dex and it didnt include the classes in my jars located in libs/ what should I do if I need to include jars in libs/ like before 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] ant build wont include jars in libs/
hi in older sdk if i build my project with ant it will include all the jars in the libs/ folder but in the latest sdk (2.3) now it cannot I try to do 'dexdump' to the classes.dex and it didnt include the classes in my jars located in libs/ what should I do if I need to include jars in libs/ like before 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] no ant template for android-9
hi I try to use ant build to build my android project and I try to customize my build.xml however I found that in SDK/platforms/android-9 there aren't ant templates in it (neither in templates/ nor ant/) but if I try to copy the template from android-8 there is some error when I do 'ant debug' I guess it's caused by version mismatch between the jars and the templates so I am wondering why there is no ant template for android-9 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: no ant template for android-9
great i found it thanks On Dec 23, 6:17 pm, Xavier Ducrohet x...@android.com wrote: templates/ is there, so I'm guessing you're looking for the Ant build rules? We have moved them back inside tools/ant/ as we can have only one now, no matter what the platform is. Xav On Thu, Dec 23, 2010 at 12:31 AM, allstars allstars@gmail.com wrote: hi I try to use ant build to build my android project and I try to customize my build.xml however I found that in SDK/platforms/android-9 there aren't ant templates in it (neither in templates/ nor ant/) but if I try to copy the template from android-8 there is some error when I do 'ant debug' I guess it's caused by version mismatch between the jars and the templates so I am wondering why there is no ant template for android-9 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc.http://developer.android.com|http://tools.android.com Please do not send me questions directly. 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: parse local media file to get Mime type
thanks to both but it seems not exactly what i want at first before i used opencore to do this because that function *really* parse my media file to see its mime-type but MediaFile.java MediaScanner.java use the 'file extension' to detect the mimetype thanks On Jun 17, 3:11 am, Kumar Bibek coomar@gmail.com wrote: If you know the path, you can access all the details through the MediaStore content provider. Cursor cursor = managedQuery(Uri.parse(data.getDataString()), null, null, null, null); cursor.moveToNext(); // Retrieve the path and the mime type String path = cursor.getString(cursor .getColumnIndex(MediaStore.MediaColumns.DATA)); String mimeType = cursor.getString(cursor .getColumnIndex(MediaStore.MediaColumns.MIME_TYPE)); For this, you need to know the ContentURI of the image/video. Thanks and Regards, Kumar Bibekhttp://tech-droid.blogspot.com On Jun 15, 4:30 pm, chetan achar chetan...@gmail.com wrote: There is a file called Mediafile.java and MediaScanner.java in frameworks base. Just go through it. On Tue, Jun 15, 2010 at 4:46 PM, allstars allstars@gmail.com wrote: hi i would like to get the mime type of my local media file (3gpp , mp4, ...etc) if it is of video then i want to allocate a SurfaceView for it additionally otherwise i just use MediaPlayer to play it i have found opencore has provided some interface for that and used by mediascanner.cpp but it seems in android media framework it isnt so can i achieve this by using android media framework? 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 -- With Regards, Chetz -- 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] parse local media file to get Mime type
hi i would like to get the mime type of my local media file (3gpp , mp4, ...etc) if it is of video then i want to allocate a SurfaceView for it additionally otherwise i just use MediaPlayer to play it i have found opencore has provided some interface for that and used by mediascanner.cpp but it seems in android media framework it isnt so can i achieve this by using android media framework? 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] enable LOG for native WebKit
hi recently i tried to see logs in native WebKit but in the end found nothing in ddms finally i found the cause is that in WebCore/config.h , it includes wtf/Assertions.h which defines LOG macro therefore the LOG{VDIEW} macro will be redirected to WTFLog instead of android_log try to do #undef LOG before you including utils/Log.h or cutils/ log.h and try not to include them before including config.h -- 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 To unsubscribe, reply using remove me as the subject.
[android-developers] try to load system JNIs
hello if i try to load libwebcore or libmedia from my app it will fail because the system libs has been loaded by zygote and by JNI spec *The same JNI native library cannot be loaded into more than one class loader.* but from the log and the code (dalvik/system/VMStack) the bootstrap class loader ( the ClassLoader of Zygote) is null although the Class.getClassLoader() can get the instance of the bootstrap class loader Isn't it strange here? libwebcore.so is loaded by a classloader before which is a null object 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] ddms is easy to hang
hi recently i found my ddms is easy to hang it also hangs when i use ddms in sdk(from 1.6 to 2.1) and cause a lot of CPU usage on my computer after checking its code suppose when i change the log filter ,(V,D,I,W,E) or press the 'Clear Log' button finally it will call mydroid/development/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ logcat/LogFilter.java # clear() and it spends lots of time on mTable.removeAll() mTable is an instance of org.eclipse.swt.widgets.Table have anyone met this condition when using ddms ? 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] try to see hprof dump from ddms
hello world i try to see hprof from ddms but i find out if my app(a simple HelloWorld) is built by mydroid (i.e. using Android.mk) it always complains permission denied but if my app is built by SDK ( ant ) it can show hprof so i would like to ask what's the difference here and what should i do if i want to see hprof when my app is built in mydroid 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] android:mimeType=text/XXX cannot work on eclair
hi i have an activity whose intent-filter is android:mimeType=text/XXX so i select it on web pages , my activity will be launched and before eclair it works well but on eclair it fails after checking i found in external/webkit/WebKit/android/WebCoreSupport/ FrameLoaderClientAndroid.cpp in function FrameLoaderClientAndroid::canShowMimeType it adds DOMImplementation::isTextMIMEType(mimeType) on eclair branch so the webcore thinks it some kind of DOM so the mimeType cannot be passed on so i would like to ask why this check is added on eclair branch 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] two Apks with dependency
hi i have two Apks , said A and B A may set an Intent to B and B will send the result back to A but if said i have added new commands and result code for them how can i prevent others still use wrong version of A or B?? 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] make a SurfaceView visible/invisible at runtime
hi can i make a SurfaceView visible/invisible at runtime?? i use the GLSurfaceView in ApiDemos as example i use setFormat(PixelFormat.TRANSLUCENT) and setFormat(PixelFormat.OPAQUE) interchangeablelly i found that i only can set it to invisible at first but can not make it visible afterwards, and it will crash so can i make a SurfaceView visible and invisible at runtime?? 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] how to know an media url is a video or audio
hi i am wondering how to know a given media url is of video or audio suppose i got a file in my sdcard called media.3gp how should i know it's a video or a audio do i only have to prepare() it and getVideoWidth() to determine ? isnt there a faster way? 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] Halt the Target VM, my app becomes unstable
hi my app contains some native jni library but if i press the 'Halt the Target VM' in ddms after re-launch my app , it becomes easy to crash and check with addr2line the point of crash is somehow not easy to understand sometimes even SIGBUS will be met, also sometimes failed in pthread_create according to my test in SimpleJNI globals(and global pointers) should be re-initialized or is there some change some of my global pointers still retains previous context? or lower libs still keep the previous context of my app?? 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: Package removed intent
hi i think you need to have another package to listen to your application see the code in PackageManagerService.java it should be deletePackageX(String packageName, boolean sendBroadCast, boolean deleteCodeAndResources, int flags) the apk is removed first then the intent is broadcasted there's no chance your application will receive the intent first thanks On Oct 15, 7:22 pm, Sagar sagar.india...@gmail.com wrote: Hello everyone, I want to listen to package removed intent of my application. I mean my application should get notified when it is being removed so that i can do something in receiver. So is it possible? Actually I want to write into a file the time when my app was removed. When does package removed intent gets called ? can my broadcast receiver write into file when my application before being installed? --~--~-~--~~~---~--~~ 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] occasionally SIGBUS crash in JNI
hello my apps contains JNI library but sometimes when i launch it it will have SIGBUS error i use addr2line to check the stack trace the last stack in my native lib is to invoke a JNI call then it goes to libdvm my app doesnt register the native method tables on JNI_Onload it uses traditional JNI native method , i.e. Java_com_XX i would like to know why SIGBUS occurs occasionally 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: occasionally SIGBUS crash in JNI
and sometimes i met SIGBUS from other lib below is the log Build fingerprint: 'generic/generic/generic/:1.6/Donut/eng.allstars. 20090923.152135:eng/test-keys' 10-14 17:33:35.638: INFO/DEBUG(551): pid: 742, tid: 742 jp.aplix.midp.p1 10-14 17:33:35.638: INFO/DEBUG(551): signal 7 (SIGBUS), fault addr 10-14 17:33:35.638: INFO/DEBUG(551): r0 0001 r1 0003 r2 0003 r3 0fff 10-14 17:33:35.638: INFO/DEBUG(551): r4 0001 r5 r6 0003 r7 bc60 10-14 17:33:35.638: INFO/DEBUG(551): r8 0160 r9 41049200 10 4104be80 fp 10-14 17:33:35.648: INFO/DEBUG(551): ip ad084fa4 sp bea27708 lr afb04764 pc 0fc0 cpsr 0010 10-14 17:33:35.737: INFO/DEBUG(551): #00 pc 0fc0 10-14 17:33:35.747: INFO/DEBUG(551): #01 pc 4760 / system/lib/libcutils.so 10-14 17:33:35.747: INFO/DEBUG(551): stack: 10-14 17:33:35.747: INFO/DEBUG(551): bea276c8 0002 10-14 17:33:35.747: INFO/DEBUG(551): bea276cc bea27700 [stack] 10-14 17:33:35.747: INFO/DEBUG(551): bea276d0 10-14 17:33:35.747: INFO/DEBUG(551): bea276d4 ad337785 /system/ lib/libandroid_runtime.so 10-14 17:33:35.747: INFO/DEBUG(551): bea276d8 4104bc90 10-14 17:33:35.757: INFO/DEBUG(551): bea276dc ad00e4b8 /system/ lib/libdvm.so 10-14 17:33:35.757: INFO/DEBUG(551): bea276e0 bc60 [heap] 10-14 17:33:35.757: INFO/DEBUG(551): bea276e4 0001 10-14 17:33:35.757: INFO/DEBUG(551): bea276e8 0007 10-14 17:33:35.757: INFO/DEBUG(551): bea276ec ad047511 /system/ lib/libdvm.so 10-14 17:33:35.757: INFO/DEBUG(551): bea276f0 4109ced8 10-14 17:33:35.757: INFO/DEBUG(551): bea276f4 bc60 [heap] 10-14 17:33:35.767: INFO/DEBUG(551): bea276f8 ad337785 /system/ lib/libandroid_runtime.so 10-14 17:33:35.767: INFO/DEBUG(551): bea276fc ad040cc1 /system/ lib/libdvm.so 10-14 17:33:35.767: INFO/DEBUG(551): bea27700 df002777 10-14 17:33:35.767: INFO/DEBUG(551): bea27704 e3a070ad 10-14 17:33:35.767: INFO/DEBUG(551): #01 bea27708 41ed7072 10-14 17:33:35.767: INFO/DEBUG(551): bea2770c ad045c55 /system/ lib/libdvm.so 10-14 17:33:35.767: INFO/DEBUG(551): bea27710 0003 10-14 17:33:35.767: INFO/DEBUG(551): bea27714 0001 10-14 17:33:35.767: INFO/DEBUG(551): bea27718 0001 10-14 17:33:35.767: INFO/DEBUG(551): bea2771c 41ed7072 10-14 17:33:35.767: INFO/DEBUG(551): bea27720 4104be90 10-14 17:33:35.767: INFO/DEBUG(551): bea27724 bea27770 [stack] 10-14 17:33:35.767: INFO/DEBUG(551): bea27728 ad00e640 /system/ lib/libdvm.so 10-14 17:33:35.767: INFO/DEBUG(551): bea2772c ad00ed9c /system/ lib/libdvm.so 10-14 17:33:35.767: INFO/DEBUG(551): bea27730 ad084e1c 10-14 17:33:35.777: INFO/DEBUG(551): bea27734 41049200 10-14 17:33:35.777: INFO/DEBUG(551): bea27738 bea27770 [stack] 10-14 17:33:35.777: INFO/DEBUG(551): bea2773c ad017d38 /system/ lib/libdvm.so 10-14 17:33:35.777: INFO/DEBUG(551): bea27740 0330 10-14 17:33:35.777: INFO/DEBUG(551): bea27744 bea277f8 [stack] 10-14 17:33:35.777: INFO/DEBUG(551): bea27748 bc60 [heap] 10-14 17:33:35.777: INFO/DEBUG(551): bea2774c 4104bf04 On Oct 14, 4:36 pm, allstars allstars@gmail.com wrote: hello my apps contains JNI library but sometimes when i launch it it will have SIGBUS error i use addr2line to check the stack trace the last stack in my native lib is to invoke a JNI call then it goes to libdvm my app doesnt register the native method tables on JNI_Onload it uses traditional JNI native method , i.e. Java_com_XX i would like to know why SIGBUS occurs occasionally 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] after launch Gallery, file pushed to sdcard has length 0
hello world i use latest android sdk 1.6_r1 i launch the emulator(with the avd comes with sdcard ) then using adb push to push some videos and pictures onto sdcard because i cannot insert/eject sdcard on emulator so i reboot it after reboot, Gallery can find my videos and pictures just inserted now i want to push more pictures to sdcard so i reboot it after pushing files to sdcard but now Gallery cannot find the newer files after i check with adb i found the files i pushed in 2nd time all of them are of length 0 , so i think Gallery cannot read these files so my problem is Why the files i push to sdcard have zero size after i launch Gallery??? 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] add my Launcher.apk into emulator
hi i try to modify the Launcher in mydroid/package/apps/Launcher and i try to use it as an APK so i dont have to mess up the original system image so i copy it to another project , say mydroid/package/apps/MyLauncher i have changed the package name in case it will conflict with the original Launcher and because some files use android.internal.R using 'android' to install/update is not feasible hence i build my MyLauncher inside mydroid , and i modify the LOCAL_PACKAGE_NAME in Android.mk when i build out the MyLauncher.apk i try to install it with adb install but it complains Failure [INSTALL_FAILED_ALREADY_EXISTS] but i am sure i havent installed this APK before and if i use $adb install -r , it will complain Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] so i would like to ask what's the correct way to install my MyLauncher.apk into emulator 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] INSTALL_PARSE_FAILED_NO_CERTIFICATES error
hello world recently i have been using sdk1.5 to develop my programs i use 'ant' to build my projects so i usually type 'ant reinstall' to install my app but now suddenly i got INSTALL_PARSE_FAILED_NO_CERTIFICATES error reinstall: [echo] Installing bin/TestDemo-debug.apk onto default emulator... [exec] 1091 KB/s (165090 bytes in 0.147s) [exec] pkg: /data/local/tmp/Testemo-debug.apk [exec] Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] please note that before this i have successfully compiled and installed my app several times and i have checked the ~/.android/debug.keystore is still there also i try to remove the debug.keystore and type 'ant debug' or 'ant reinstall' again to generate it but the problem still remains finally i try to copy this project to another and rename the package name somehow it works therefore i would like to ask has somebody met this error? is this a bug or my problem??? 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] Can the Content of SlidingDrawer be a ViewGroup ???
hello world i try to make the Content view of SlidingDrawer is a ViewGroup, for example , in the Launcher example it can have two GridView in the same SlidingDrawer my sample is to make android:content = @id/layout ,which is a LinearLayout but i found only the first child in the layout will be shown so i would like to ask is there any constrain to make SlidingDrawer can not have multiple views in its content??? 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: Can the Content of SlidingDrawer be a ViewGroup ???
also i would like to ask is it possible to make HandleView lies on top of ContentView so far i think Handle cannot reside 'inside' Content thanks On May 5, 8:48 pm, allstars allstars@gmail.com wrote: hello world i try to make the Content view of SlidingDrawer is a ViewGroup, for example , in the Launcher example it can have two GridView in the same SlidingDrawer my sample is to make android:content = @id/layout ,which is a LinearLayout but i found only the first child in the layout will be shown so i would like to ask is there any constrain to make SlidingDrawer can not have multiple views in its content??? 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: SlidingDrawer throws RuntimeException in onMeasure
i forgot to mention that i take the reference code from Launcher however i didnt find SlidingDrawer doesnt call any makeMeasureSpec so neither did i but i encountered RuntimeException in my case so am i doing some wrong with SlidingDrawer? thanks On Apr 30, 3:43 pm, allstars allstars@gmail.com wrote: hi i would like to do some tests on SlidingDrawer however i always found RuntimeException when SlidingDrawer.onMeasure is called i check the code and think the exception is caused by unspecified MeasureSpec so i would like to ask how to setup the MeasureSpec in SlidingDrawer? 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] why no Horizontal GridView/ListView ?
hi i would like to ask why GridView can only be vertically there is a HorizontalScrollView but there is a ScrollView , which is vertically i know GridView and ListView both extend from AbsListView which is only for vertical but i would like to ask why you didnt design more Horizontal widgets in the first place 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: why no Horizontal GridView/ListView ?
Dear Dianne thanks for the reply and thanks for the tip that HorizontalScrollView is just added in 1.5 i didnt notice that but i would like to ask more you said GridView -is- horizontal but i have checked the code in AbsListView.java and GridView.java most code for layout is only for vertical, and compute top/bottom offset so i am not quite sure about your 'horizontal' do you mean it can be placed in landscape mode? thanks On Apr 28, 1:14 am, Dianne Hackborn hack...@android.com wrote: Er... GridView -is- horizontal. (And HorizontalScrollView is just being added for 1.5.) On Mon, Apr 27, 2009 at 6:57 AM, allstars allstars@gmail.com wrote: hi i would like to ask why GridView can only be vertically there is a HorizontalScrollView but there is a ScrollView , which is vertically i know GridView and ListView both extend from AbsListView which is only for vertical but i would like to ask why you didnt design more Horizontal widgets in the first place thanks -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: why no Horizontal GridView/ListView ?
dear Dianne thanks i read your reply on the web and it seems your second post(the correction) comes first to the group so i thought the actual first post was the correction ha now i get it thanks anyway On Apr 28, 11:32 am, Dianne Hackborn hack...@android.com wrote: Please read my correction. On Mon, Apr 27, 2009 at 8:11 PM, allstars allstars@gmail.com wrote: Dear Dianne thanks for the reply and thanks for the tip that HorizontalScrollView is just added in 1.5 i didnt notice that but i would like to ask more you said GridView -is- horizontal but i have checked the code in AbsListView.java and GridView.java most code for layout is only for vertical, and compute top/bottom offset so i am not quite sure about your 'horizontal' do you mean it can be placed in landscape mode? thanks On Apr 28, 1:14 am, Dianne Hackborn hack...@android.com wrote: Er... GridView -is- horizontal. (And HorizontalScrollView is just being added for 1.5.) On Mon, Apr 27, 2009 at 6:57 AM, allstars allstars@gmail.com wrote: hi i would like to ask why GridView can only be vertically there is a HorizontalScrollView but there is a ScrollView , which is vertically i know GridView and ListView both extend from AbsListView which is only for vertical but i would like to ask why you didnt design more Horizontal widgets in the first place thanks -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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] no activitycreator on cupcake branch
hi originally activitycreator is located in mydroid/developement/tools/ but i found on cupcake branch it is not there so i would like to ask where will be activitycreator reside on cupcake? or is there another tools for non-Eclipse developers?? 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: a simple native pthread test but SIGSEGV generated!
i found the reason why SIGSEGV is generated i didnt call exit(0) in the end thanks On Nov 17, 10:04 pm, David Turner [EMAIL PROTECTED] wrote: You are using arm-none-linux-gnueabi-gcc which is not compatible with the android toolchain. This kind of issue is perfectly normal and non supported. Only trivial programs may correctly work that way, more by chance that anything else. On Mon, Nov 17, 2008 at 1:35 PM, allstars [EMAIL PROTECTED] wrote: hello world i try to do a simple pthread test on android (natively) /*START OF CODE ===*/ #include stdio.h #include sys/types.h #include pthread.h void *hello(void *arg) { printf(Hello from node %d\n, *(int *)arg); } int main(int argc, char* argv[]) { int n,i; pthread_t threads[2]; n = 2; /* Start up thread */ for (i = 0; i n; i++) { pthread_create(threads[i], NULL, hello, (void *)i); } /* Synchronize the completion of each thread. */ for (i = 0; i n; i++) { pthread_join(threads[i],NULL); } printf(pthread_test returns \n); return 0; } /*===END OF CODE=*/ then i compile it (pthread.c) $arm-none-linux-gnueabi-gcc -c -g pthread.c $arm-none-linux-gnueabi-ld --entry=main --dynamic-linker /system/bin/ linker -nostdlib -rpath /system/lib -rpath system/lib -L system/lib - lc -o pthread_test pthread.o ./system is the directory of system image but in pthread_join , SIGSEGV will be generated i use strace to debug this # ./strace ./pthread_test execve(./pthread_test, [./pthread_test], [/* 10 vars */]) = 0 getpid() = 189 syscall_983045(0xb00169c4, 0x4990, 0xb0011030, 0, 0x1, 0xbecf6d94, 0xbecf6d9c, 0xf0005, 0, 0, 0, 0, 0, 0xbecf6d60, 0xbdcd, 0xb00015ac, 0x8010, 0xb00169c4, 0, 0, 0, 0xeb48, 0xcd1f8, 0xcd1d0, 0, 0, 0, 0, 0, 0, 0, 0) = 0 gettid() = 189 sigaction(SIGILL, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGABRT, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGBUS, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGFPE, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGSEGV, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGSTKFLT, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 open(libc.so, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open(/system/lib/libc.so, O_RDONLY|O_LARGEFILE) = 3 lseek(3, 0, SEEK_SET) = 0 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0` \225\0\000..., 4096) = 4096 lseek(3, -8, SEEK_END) = 227472 read(3, \0\0\340\257PRE , 8) = 8 mmap2(0xafe0, 274432, PROT_READ|PROT_EXEC, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0xafe0 mmap2(0xafe0, 214032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xafe0 mprotect(0xafe0, 217088, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 mmap2(0xafe35000, 8420, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x35) = 0xafe35000 mmap2(0xafe38000, 41760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0xafe38000 close(3) = 0 mprotect(0xafe0, 217088, PROT_READ|PROT_EXEC) = 0 getuid32() = 0 geteuid32() = 0 open(/dev/urandom, O_RDONLY|O_LARGEFILE) = 3 read(3, %\374\353\364, 4) = 4 close(3) = 0 mprotect(0x8000, 4096, PROT_READ|PROT_EXEC) = 0 getuid32() = 0 geteuid32() = 0 brk(0) = 0x11000 brk(0x11000) = 0x11000 brk(0x12000) = 0x12000 mmap2(0x1000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x1000 mprotect(0x1000, 4096, PROT_NONE) = 0 clone(child_stack=0x100fff00, flags=CLONE_VM|CLONE_FS|CLONE_FILES| CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_DETACHED) = 190 futex(0x100fff00, FUTEX_WAKE, 1Hello from node 0 ) = 1 mmap2(0x1000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x1000 mprotect(0x1000, 4096, PROT_NONE) = 0 clone(child_stack=0x100fff00, flags=CLONE_VM|CLONE_FS|CLONE_FILES| CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_DETACHED) = 191 futex(0x100fff00, FUTEX_WAKE, 1Hello from node 1 ) = 1 --- SIGSEGV (Segmentation fault) @ 0 (4) --- sigaction(SIGUSR1, {SIG_IGN}, {SIG_DFL}, 0) = 0 gettid() = 189 SYS_281(0x1, 0x1, 0, 0xe52c, 0xb000f55c) = 3 SYS_283(0x3, 0xbecf69b6, 0x14, 0x1, 0x3) = 0 write(3, \275\0\0\0, 4) = 4 read(3, 0xbecf6a54, 1) = ? ERESTARTSYS
[android-developers] a simple native pthread test but SIGSEGV generated!
hello world i try to do a simple pthread test on android (natively) /*START OF CODE ===*/ #include stdio.h #include sys/types.h #include pthread.h void *hello(void *arg) { printf(Hello from node %d\n, *(int *)arg); } int main(int argc, char* argv[]) { int n,i; pthread_t threads[2]; n = 2; /* Start up thread */ for (i = 0; i n; i++) { pthread_create(threads[i], NULL, hello, (void *)i); } /* Synchronize the completion of each thread. */ for (i = 0; i n; i++) { pthread_join(threads[i],NULL); } printf(pthread_test returns \n); return 0; } /*===END OF CODE=*/ then i compile it (pthread.c) $arm-none-linux-gnueabi-gcc -c -g pthread.c $arm-none-linux-gnueabi-ld --entry=main --dynamic-linker /system/bin/ linker -nostdlib -rpath /system/lib -rpath system/lib -L system/lib - lc -o pthread_test pthread.o ./system is the directory of system image but in pthread_join , SIGSEGV will be generated i use strace to debug this # ./strace ./pthread_test execve(./pthread_test, [./pthread_test], [/* 10 vars */]) = 0 getpid()= 189 syscall_983045(0xb00169c4, 0x4990, 0xb0011030, 0, 0x1, 0xbecf6d94, 0xbecf6d9c, 0xf0005, 0, 0, 0, 0, 0, 0xbecf6d60, 0xbdcd, 0xb00015ac, 0x8010, 0xb00169c4, 0, 0, 0, 0xeb48, 0xcd1f8, 0xcd1d0, 0, 0, 0, 0, 0, 0, 0, 0) = 0 gettid()= 189 sigaction(SIGILL, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGABRT, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGBUS, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGFPE, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGSEGV, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 sigaction(SIGSTKFLT, {0xb0001211, [], SA_RESTART}, {SIG_DFL}, 0) = 0 open(libc.so, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open(/system/lib/libc.so, O_RDONLY|O_LARGEFILE) = 3 lseek(3, 0, SEEK_SET) = 0 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0` \225\0\000..., 4096) = 4096 lseek(3, -8, SEEK_END) = 227472 read(3, \0\0\340\257PRE , 8) = 8 mmap2(0xafe0, 274432, PROT_READ|PROT_EXEC, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0xafe0 mmap2(0xafe0, 214032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xafe0 mprotect(0xafe0, 217088, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 mmap2(0xafe35000, 8420, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x35) = 0xafe35000 mmap2(0xafe38000, 41760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0xafe38000 close(3)= 0 mprotect(0xafe0, 217088, PROT_READ|PROT_EXEC) = 0 getuid32() = 0 geteuid32() = 0 open(/dev/urandom, O_RDONLY|O_LARGEFILE) = 3 read(3, %\374\353\364, 4) = 4 close(3)= 0 mprotect(0x8000, 4096, PROT_READ|PROT_EXEC) = 0 getuid32() = 0 geteuid32() = 0 brk(0) = 0x11000 brk(0x11000)= 0x11000 brk(0x12000)= 0x12000 mmap2(0x1000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x1000 mprotect(0x1000, 4096, PROT_NONE) = 0 clone(child_stack=0x100fff00, flags=CLONE_VM|CLONE_FS|CLONE_FILES| CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_DETACHED) = 190 futex(0x100fff00, FUTEX_WAKE, 1Hello from node 0 )= 1 mmap2(0x1000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x1000 mprotect(0x1000, 4096, PROT_NONE) = 0 clone(child_stack=0x100fff00, flags=CLONE_VM|CLONE_FS|CLONE_FILES| CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_DETACHED) = 191 futex(0x100fff00, FUTEX_WAKE, 1Hello from node 1 )= 1 --- SIGSEGV (Segmentation fault) @ 0 (4) --- sigaction(SIGUSR1, {SIG_IGN}, {SIG_DFL}, 0) = 0 gettid()= 189 SYS_281(0x1, 0x1, 0, 0xe52c, 0xb000f55c) = 3 SYS_283(0x3, 0xbecf69b6, 0x14, 0x1, 0x3) = 0 write(3, \275\0\0\0, 4) = 4 read(3, 0xbecf6a54, 1) = ? ERESTARTSYS (To be restarted) --- SIGCONT (Continued) @ 0 (0) --- read(3, , 1) = 0 close(3)= 0 sigaction(SIGSEGV, {SIG_IGN}, {0xb0001211, [], SA_RESTART}, 0) = 0 sigreturn() = ? (mask now []) --- SIGSEGV (Segmentation fault) @ 0 (4) --- +++ killed by SIGSEGV +++ so i would like to ask why pthread_join here will always generate SIGSEGV??? 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
[android-developers] can not run emulator built from source code
hello world i download the emulator source from Google and try to build it (version 1.0r1) first i met a compile error about _mm_add_si64 i seek a solution? on android issues http://code.google.com/p/android/issues/detail?id=838can=1q=emulatorcolspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summarystart=100 finally my build is succeed then i try to run my emulator (not the 'emulator' from $ANDROID_SDK/ tools/) so i copy the images from $ANDROID_SDK/tools/images to my emulator src emu1.0 + | +--- build_emulator.sh | +--- emulator | +--- images/ | +--- local //generated by build_emulator.sh | +--- qemu/ | +--- sdl/ then i type $ ./emulator -system images -kernel images/kernel-qemu -ramdisk images/ramdisk.img -image images/system.img -initdata images/ userdata.img i am not sure if $./emulator -system images will be enough, but it is the same result above and it will crash immediately === qemu: fatal: Bad mode 0 R00=001c R01=0001 R02=02910900 R03=c5e1a800 R04= R05= R06=0800 R07= R08=c5dca408 R09=0800 R10=c5c17c00 R11=c5c17b9c R12=677d46cf R13=c5c17b84 R14=c6802000 R15=c015cae0 PSR=6093 -ZC- A svc32 b7df7ff4 s00=(0.00) s01=(0.00) d00=(0.00) s02=(0.00) s03=(0.00) d01=(0.00) s04=(0.00) s05=(0.00) d02=(0.00) s06=(0.00) s07=(0.00) d03=(0.00) s08=(0.00) s09=(0.00) d04=(0.00) s10=(0.00) s11=(0.00) d05=(0.00) s12=(0.00) s13=(0.00) d06=(0.00) s14=(0.00) s15=(0.00) d07=(0.00) s16=(0.00) s17=(0.00) d08=(0.00) s18=(0.00) s19=(0.00) d09=(0.00) s20=(0.00) s21=(0.00) d10=(0.00) s22=(0.00) s23=(0.00) d11=(0.00) s24=(0.00) s25=(0.00) d12=(0.00) s26=(0.00) s27=(0.00) d13=(0.00) s28=(0.00) s29=(0.00) d14=(0.00) s30=(0.00) s31=(0.00) d15=(0.00) FPSCR: Aborted === i find the Bad mode log comes from qemu/target-arm/helper.c in function bank_number() also i see some comments help.c: 230 /* ??? Thumb interrupt handlers not implemented. */ and many other comments start with ??? says for debug only , not implemented , (i have met Bad mode 6 earlier , but now the number becomes 0) i have also tried version 0.9 the same thing , but the log becomes Bad mode 8 so i would like to ask has someone successfully run your own emulator ? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---