[android-developers] Re: Process has died during onDestroy() of my Activity. Why?
j wrote: My app calls setWallpaper inside onDestroy() of my Activity. The method succeed with no issue about 95% of the time. However, in about 5% of the time, the process crashed: I/ActivityManager( 2591): Process com.jack.moment (pid 5053) has died. I notice my onDestroy implementation takes up to 7 seconds to complete ... is that why the process was killed? Very possibly. Can you arrange to do more of the work sooner? -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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 Internet Connection Sharing?
No such solution exists because no such API yet exists in Android. Use tetherbot. --~--~-~--~~~---~--~~ 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] deviceFunctions read by javascript
Hello everyone, I made some changes to PhoneGap and got it working on Android, see the video of the device UUID being read via javascript: http://www.youtube.com/watch?v=3SkwQ3P4D1A Once I fully commit changes up to github it should be about 10 days after that changes show up in the main PhoneGap repo. Features supported: -reading uuid -reading gps -reading acceleration -camera -sound I am still a little resource constrained with me on a seed capital hunt so some of those features are not fully tested with my changes like I would want them to be.. Tuesday or Wed I should have a full video posted of reading al functions via javascript that I can on the emulator.. For my posts you can find them at planetandroid.com Have a nice New Yeas Everyone. --~--~-~--~~~---~--~~ 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: Synchronizing Maps and Map Overlays - ConcurrentModificationException
Let me guess... r u invoking your code from *within* your custom MyLocationOverlay code ? I had the same Java exception as you until I moved my overlay updating code OUT of my custom MyLocationOverlay class. It seems that MyLocationOverlay also maintains a handle on the overlays list, so that appeared(at least for me,) to be the source of the ConcurrentModificationException. On Dec 26, 6:59 pm, mscwd01 mscw...@gmail.com wrote: Okay, hope everyone had a nice christmas and has had their fill of Turkey ;) Now can anyone help me with this? On Dec 24, 11:53 am, mscwd01 mscw...@gmail.com wrote: Hello, anyone help me with this please... On Dec 24, 12:42 am,mscwd01mscw...@gmail.com wrote: I am getting the following exception: 12-24 00:29:25.922: ERROR/AndroidRuntime(267): Uncaught handler: thread main exiting due to uncaught exception 12-24 00:29:25.960: ERROR/AndroidRuntime(267): java.util.ConcurrentModificationException 12-24 00:29:25.960: ERROR/AndroidRuntime(267): at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:59) 12-24 00:29:25.960: ERROR/AndroidRuntime(267): at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:41) 12-24 00:29:25.960: ERROR/AndroidRuntime(267): at com.google.android.maps.MapView.onDraw(MapView.java:454) I believe this is whats happening: I have a MapView with a few Map Overlays (simple markers), occasionally the locations of the markers change so I clear the map overlays using: map.getOverlays().clear() and insert new marker overlays onto the map. However, if I happen to be moving the map, or zooming the map when the update occurs I get the aboveConcurrentModificationException. I tried synchronizing on the map overlay list, like: synchronized (map.getOverlays()) { // clear and update overlays } However I still get the above exception. Can someone explain the correct way to clear overlays on a map and to repopulate them without encountering ConcurrentModification Exceptions. Oh and I am calling: map.postInvalidate() to refresh the map and display the changes made to the overlays. Is this the correct way to repaint a map? 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: Where could I get an ADT 0.9.0?
to dear Kenny, I have solved this problem by taking a build sequence to the ADT source code under the newly released cupcake device code, and thanks for your concern ;-) The new ADT (version 0.9.0) is under the /device- code-root/devlopment/tools/eclipse/plugins/ com.android.ide.eclipse.adt , and build the plugin with running the script file build_server.sh under the /device-code-root/devlopment/ tools/eclipse/scripts. P.s. you will need to download an eclipse with PDE functionality, and set $ECLIPSE_HOME to the eclipse root to complete this and thanks for your help again! :-) Best regards, Nicholas On 12月28日, 上午1時41分, Kenny Yu yxw...@gmail.com wrote: I built cupcake, which has been merged to master HEAD. The ADT is quite OK. Can you share more info? Kenny On Dec 26, 11:35 am, yukinoba ckmagic...@gmail.com wrote: To dear all, Does anyone have the cupcake? The SDK in there is not applicable to the ADT plugin (Android Development Tools plugin) of Eclipse any more, and Eclipse throws a message told me I should get an updated ADT with version 0.9.0. However, I tried to build one in the source, and found that the latest version in the cupcake source code is 0.8.1 rather than 0.9.0. So, is there anyone enjoyed their cupcakes with Eclipse? I need a ADT 0.9.0 support... Thx for ur help Best regards, Nicholas --~--~-~--~~~---~--~~ 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: Emulator is not able to connect to network
to dear David, You're right. It's actually a proxy problem at all. In the cupcake version, you need to set proxy through the following steps: 1) adb shell 2) cd /data/data/com.android.providers.settings/databases 3) sqlite3 settings.db 4) INSERT INTO secure VALUES(99,'http_proxy','proxy_server:port'); I have no idea why the proxy settings under the Menu-Setting is not work at all. Thanks for your help ;-) Best regards, Nicholas On 12月19日, 下午5時41分, David Turner di...@android.com wrote: first, anyone using a proxy to connect to the Internet should really update to 1.0r2, because it contains much better http-proxy support compared to previous versions. two things that might help find more information about the problem: - does https work in the browser, if https works, but not http, it's most certainly a proxy-related problem. If https doesn't work, well, I don't know - use -debug-http-proxy when launching the emulator, and post the output here. that should probably give more information I can decode On Fri, Dec 19, 2008 at 8:49 AM, yukinoba ckmagic...@gmail.com wrote: hi David, I have the same situation to this. However, I could connect to internet by using HttpClient and get responses. The 3G icon appears in the top of Android home, but browser does not work at all. I have my own proxy address with proxy.local:80, and sets in the Eclipse preference and using -http-proxy in the emulator arguments. However, it seems these helps nothing to this. Is there any solution to this weird network problem? :-) Thx for ur help Best regards, Nicholas On 12月19日, 下午3時20分, David Turner di...@android.com wrote: first, use emulator -wipe-data to rest your /data partition.If this still doesn't solve the problem, try updating to 1.0_r2 and let us know On Fri, Dec 19, 2008 at 3:06 AM, Esther esther...@gmail.com wrote: My emulator can't connect to network by Browser or Email application but the PC does connect to internet properly with no proxy. The 3G icon on the emulator status bar never appears like the emulator running on other PC. Could someone help me on this issue? (I'm using the emulator in android-sdk-windows-1.0_r1) --~--~-~--~~~---~--~~ 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: TextView Under Growing ListView
Thanks for your help! It solved my issue and also helped me understand a lot better how Layouts work... Moto --~--~-~--~~~---~--~~ 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: Debugging on actual G1
Yes, It shows up in in DDMS, I can browse the file system, upload new applications, etc. When I go to debug mode the phone is just waiting on Debugger. Application myTest (process com.froogloid.android.myTest) is waiting for the debugger to attach. Here is output : 12-29 23:11:08.692: DEBUG/AndroidRuntime(20251): AndroidRuntime START 12-29 23:11:08.692: DEBUG/AndroidRuntime(20251): CheckJNI is OFF 12-29 23:11:09.552: DEBUG/AndroidRuntime(20251): --- registering native functions --- 12-29 23:11:09.562: INFO/jdwp(20251): received file descriptor 16 from ADB 12-29 23:11:11.782: DEBUG/PackageParser(51): Scanning package: /data/ app/vmdl47559.tmp 12-29 23:11:12.132: WARN/PackageManager(51): Attempt to re-install com.froogloid.android.myTest without first uninstalling. 12-29 23:11:12.142: INFO/installd(35): unlink /data/dalvik-cache/ d...@app@vmdl47559@classes.dex 12-29 23:11:12.152: DEBUG/AndroidRuntime(20251): Shutting down VM 12-29 23:11:12.172: DEBUG/dalvikvm(20251): DestroyJavaVM waiting for non-daemon threads to exit 12-29 23:11:12.172: INFO/dalvikvm(20251): DestroyJavaVM shutting VM down 12-29 23:11:12.172: DEBUG/dalvikvm(20251): HeapWorker thread shutting down 12-29 23:11:12.182: DEBUG/dalvikvm(20251): HeapWorker thread has shut down 12-29 23:11:12.182: DEBUG/jdwp(20251): JDWP shutting down net... 12-29 23:11:12.182: DEBUG/jdwp(20251): +++ peer disconnected 12-29 23:11:12.182: INFO/dalvikvm(20251): Debugger has detached; object registry had 1 entries 12-29 23:11:12.182: DEBUG/dalvikvm(20251): VM cleaning up 12-29 23:11:12.242: DEBUG/dalvikvm(20251): LinearAlloc 0x0 used 529540 of 4194304 (12%) 12-29 23:11:12.872: DEBUG/dalvikvm(51): GC freed 11890 objects / 617264 bytes in 714ms 12-29 23:11:12.882: VERBOSE/WifiMonitor(51): Event [CTRL-EVENT-SCAN- RESULTS Ready] 12-29 23:11:13.142: DEBUG/AndroidRuntime(20261): AndroidRuntime START 12-29 23:11:13.142: DEBUG/AndroidRuntime(20261): CheckJNI is OFF 12-29 23:11:13.312: DEBUG/AndroidRuntime(20261): --- registering native functions --- 12-29 23:11:13.322: INFO/jdwp(20261): received file descriptor 16 from ADB 12-29 23:11:14.673: DEBUG/PackageParser(51): Scanning package: /data/ app/vmdl47560.tmp 12-29 23:11:14.912: DEBUG/PackageManager(51): Removing package com.froogloid.android.myTest 12-29 23:11:14.912: DEBUG/PackageManager(51): Activities: com.froogloid.android.myTest.myTest com.froogloid.android.myTest.Park com.froogloid.android.myTest.Find com.froogloid.android.myTest.FindList com.froogloid.android.myTest.CameraActivity com.froogloid.android.myTest.MapClass 12-29 23:11:14.912: DEBUG/PackageManager(51): Scanning package com.froogloid.android.myTest 12-29 23:11:14.922: INFO/PackageManager(51): /data/app/vmdl47560.tmp changed; unpacking 12-29 23:11:15.003: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/ vmdl47560.tmp' --- 12-29 23:11:15.842: DEBUG/dalvikvm(20269): DexOpt: load 59ms, verify 161ms, opt 2ms 12-29 23:11:15.922: DEBUG/installd(35): DexInv: --- END '/data/app/ vmdl47560.tmp' (success) --- 12-29 23:11:15.992: DEBUG/PackageManager(51): Activities: com.froogloid.android.myTest.myTest com.froogloid.android.myTest.Park com.froogloid.android.myTest.Find com.froogloid.android.myTest.FindList com.froogloid.android.myTest.CameraActivity com.froogloid.android.myTest.MapClass 12-29 23:11:17.582: VERBOSE/WifiMonitor(51): Event [CTRL-EVENT-SCAN- RESULTS Ready] 12-29 23:11:17.832: INFO/installd(35): move /data/dalvik-cache/ d...@app@vmdl47560@classes.dex - /data/dalvik-cache/ d...@app@com.froogloid.android.mytest@classes.dex 12-29 23:11:17.842: DEBUG/PackageManager(51): New package installed in /data/app/com.froogloid.android.myTest.apk 12-29 23:11:17.852: WARN/PackageManager(51): Not granting permission android.permission.DIAGNOSTIC to package com.froogloid.android.myTest (protectionLevel=2 flags=0x44) 12-29 23:11:18.782: DEBUG/AndroidRuntime(20261): Shutting down VM 12-29 23:11:18.782: DEBUG/dalvikvm(20261): DestroyJavaVM waiting for non-daemon threads to exit 12-29 23:11:18.792: INFO/dalvikvm(20261): DestroyJavaVM shutting VM down 12-29 23:11:18.792: DEBUG/dalvikvm(20261): HeapWorker thread shutting down 12-29 23:11:18.802: DEBUG/dalvikvm(20261): HeapWorker thread has shut down 12-29 23:11:18.802: DEBUG/jdwp(20261): JDWP shutting down net... 12-29 23:11:18.802: DEBUG/jdwp(20261): +++ peer disconnected 12-29 23:11:18.802: INFO/dalvikvm(20261): Debugger has detached; object registry had 1 entries 12-29 23:11:18.802: DEBUG/dalvikvm(20261): VM cleaning up 12-29 23:11:18.852: DEBUG/ActivityManager(51): Uninstalling process com.froogloid.android.myTest 12-29 23:11:18.852: DEBUG/dalvikvm(20261): LinearAlloc 0x0 used 529540 of 4194304 (12%) 12-29 23:11:19.532: WARN/ActivityManager(51): Activity pause timeout for HistoryRecord{43280160 {com.android.contacts/ com.android.contacts.DialtactsActivity}} 12-29 23:11:19.842: DEBUG/AndroidRuntime(20276): AndroidRuntime START 12-29 23:11:19.862: DEBUG/AndroidRuntime(20276): CheckJNI is OFF 12-29
[android-developers] Re: Debugging on actual G1
On 12/30/08, chrispix chris...@gmail.com wrote: Yes, It shows up in in DDMS, I can browse the file system, upload new applications, etc. When I go to debug mode the phone is just waiting on Debugger. Application myTest (process com.froogloid.android.myTest) is waiting for the debugger to attach. Here is output : 12-29 23:11:08.692: DEBUG/AndroidRuntime(20251): AndroidRuntime START 12-29 23:11:08.692: DEBUG/AndroidRuntime(20251): CheckJNI is OFF 12-29 23:11:09.552: DEBUG/AndroidRuntime(20251): --- registering native functions --- 12-29 23:11:09.562: INFO/jdwp(20251): received file descriptor 16 from ADB 12-29 23:11:11.782: DEBUG/PackageParser(51): Scanning package: /data/ app/vmdl47559.tmp 12-29 23:11:12.132: WARN/PackageManager(51): Attempt to re-install com.froogloid.android.myTest without first uninstalling. 12-29 23:11:12.142: INFO/installd(35): unlink /data/dalvik-cache/ d...@app@vmdl47559@classes.dex 12-29 23:11:12.152: DEBUG/AndroidRuntime(20251): Shutting down VM 12-29 23:11:12.172: DEBUG/dalvikvm(20251): DestroyJavaVM waiting for non-daemon threads to exit12-29 23:11:12.242: DEBUG/dalvikvm(20251): LinearAlloc 0x0 used 529540 of 4194304 (12%) 12-29 23:11:12.872: DEBUG/dalvikvm(51): GC freed 11890 objects / 617264 bytes in 714ms 12-29 23:11:12.882: VERBOSE/WifiMonitor(51): Event [CTRL-EVENT-SCAN- RESULTS Ready] 12-29 23:11:13.142: DEBUG/AndroidRuntime(20261): AndroidRuntime START 12-29 23:11:13.142: DEBUG/AndroidRuntime(20261): CheckJNI is OFF 12-29 23:11:13.312: DEBUG/AndroidRuntime(20261): --- registering native functions --- 12-29 23:11:13.322: INFO/jdwp(20261): received file descriptor 16 from ADB 12-29 23:11:14.673: DEBUG/PackageParser(51): Scanning package: /data/ app/vmdl47560.tmp 12-29 23:11:14.912: DEBUG/PackageManager(51): Removing package com.froogloid.android.myTest 12-29 23:11:14.912: DEBUG/PackageManager(51): Activities: com.froogloid.android.myTest.myTest com.froogloid.android.myTest.Park com.froogloid.android.myTest.Find com.froogloid.android.myTest.FindList com.froogloid.android.myTest.CameraActivity com.froogloid.android.myTest.MapClass 12-29 23:11:14.912: DEBUG/PackageManager(51): Scanning package com.froogloid.android.myTest 12-29 23:11:14.922: INFO/PackageManager(51): /data/app/vmdl47560.tmp changed; unpacking 12-29 23:11:15.003: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/ vmdl47560.tmp' --- 12-29 23:11:15.842: DEBUG/dalvikvm(20269): DexOpt: load 59ms, verify 161ms, opt 2ms 12-29 23:11:15.922: DEBUG/installd(35): DexInv: --- END '/data/app/ vmdl47560.tmp' (success) --- 12-29 23:11:15.992: DEBUG/PackageManager(51): Activities: com.froogloid.android.myTest.myTest com.froogloid.android.myTest.Park com.froogloid.android.myTest.Find com.froogloid.android.myTest.FindList com.froogloid.android.myTest.CameraActivity com.froogloid.android.myTest.MapClass 12-29 23:11:12.172: INFO/dalvikvm(20251): DestroyJavaVM shutting VM down 12-29 23:11:12.172: DEBUG/dalvikvm(20251): HeapWorker thread shutting down 12-29 23:11:12.182: DEBUG/dalvikvm(20251): HeapWorker thread has shut down 12-29 23:11:12.182: DEBUG/jdwp(20251): JDWP shutting down net... 12-29 23:11:12.182: DEBUG/jdwp(20251): +++ peer disconnected 12-29 23:11:12.182: INFO/dalvikvm(20251): Debugger has detached; object registry had 1 entries 12-29 23:11:12.182: DEBUG/dalvikvm(20251): VM cleaning up 12-29 23:11:12.242: DEBUG/dalvikvm(20251): LinearAlloc 0x0 used 529540 of 4194304 (12%) 12-29 23:11:12.872: DEBUG/dalvikvm(51): GC freed 11890 objects / 617264 bytes in 714ms 12-29 23:11:12.882: VERBOSE/WifiMonitor(51): Event [CTRL-EVENT-SCAN- RESULTS Ready] 12-29 23:11:13.142: DEBUG/AndroidRuntime(20261): AndroidRuntime START 12-29 23:11:13.142: DEBUG/AndroidRuntime(20261): CheckJNI is OFF 12-29 23:11:13.312: DEBUG/AndroidRuntime(20261): --- registering native functions --- 12-29 23:11:13.322: INFO/jdwp(20261): received file descriptor 16 from ADB 12-29 23:11:14.673: DEBUG/PackageParser(51): Scanning package: /data/ app/vmdl47560.tmp 12-29 23:11:14.912: DEBUG/PackageManager(51): Removing package com.froogloid.android.myTest 12-29 23:11:14.912: DEBUG/PackageManager(51): Activities: com.froogloid.android.myTest.myTest com.froogloid.android.myTest.Park com.froogloid.android.myTest.Find com.froogloid.android.myTest.FindList com.froogloid.android.myTest.CameraActivity com.froogloid.android.myTest.MapClass 12-29 23:11:14.912: DEBUG/PackageManager(51): Scanning package com.froogloid.android.myTest 12-29 23:11:14.922: INFO/PackageManager(51): /data/app/vmdl47560.tmp changed; unpacking 12-29 23:11:15.003: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/ vmdl47560.tmp' --- 12-29 23:11:15.842: DEBUG/dalvikvm(20269): DexOpt: load 59ms, verify 161ms, opt 2ms 12-29 23:11:15.922: DEBUG/installd(35): DexInv: --- END '/data/app/ vmdl47560.tmp' (success) --- 12-29 23:11:15.992: DEBUG/PackageManager(51): Activities:
[android-developers] Re: OpenGL texture is upside down
I just checked TriangleRenderer.java in the API demos (API Demos / Graphics / OpenGL ES / Textured Triangle). It's upside down too. On Dec 29, 5:38 pm, Tomei Ningen tomei.nin...@yahoo.com wrote: I think Android wants texture to use upper-left as the origin. Have you checked API demo? --- On Sun, 12/28/08, Tom H tomhi...@gmail.com wrote: From: Tom H tomhi...@gmail.com Subject: [android-developers] OpenGL texture is upside down To: Android Developers android-developers@googlegroups.com Date: Sunday, December 28, 2008, 4:33 PM Hello. I'm trying to map a texture on a surface, but it's showing up inverted (upside down). It works correctly in Windows OpenGL. Here are the relevant code pieces: Bitmap b = BitmapFactory.decodeResource(getResources(), R.drawable.myBitmap); ... android.opengl.GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, b, 0); I'm using texture coordinates with the origin in the lower left corner, like I should. The image resource is a PNG file which shows correctly in all image viewers. Any ideas? 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: OpenGL texture is upside down
I just checked TriangleRenderer.java in the API demos (API Demos / Graphics / OpenGL ES / Textured Triangle). It's upside down too. On Dec 29, 5:38 pm, Tomei Ningen tomei.nin...@yahoo.com wrote: I think Android wants texture to use upper-left as the origin. Have you checked API demo? --- On Sun, 12/28/08, Tom H tomhi...@gmail.com wrote: From: Tom H tomhi...@gmail.com Subject: [android-developers] OpenGL texture is upside down To: Android Developers android-developers@googlegroups.com Date: Sunday, December 28, 2008, 4:33 PM Hello. I'm trying to map a texture on a surface, but it's showing up inverted (upside down). It works correctly in Windows OpenGL. Here are the relevant code pieces: Bitmap b = BitmapFactory.decodeResource(getResources(), R.drawable.myBitmap); ... android.opengl.GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, b, 0); I'm using texture coordinates with the origin in the lower left corner, like I should. The image resource is a PNG file which shows correctly in all image viewers. Any ideas? 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: Capture and Playback
Thank you On Dec 30, 12:54 am, Dave Sparks davidspa...@android.com wrote: There is no support for javax.sound in Android and there are no plans to support it. We will have support for streaming audio in a future release. On Dec 29, 1:11 am, Lei poohd...@gmail.com wrote: I'm stuck on this. Help me please. On Dec 26, 2:23 pm, Lei poohd...@gmail.com wrote: Hi, all I want to capture the audio from the microphone, save the audio in the buffer, and then playback the audio in the buffer. It seems that it will be simple if I can use javax.sound.* to create a sourceDataLine and a targetDataLine. But I cannot import javax.sound.* into my project. How to solve the problem? Thanks in advance. Regards, Lei --~--~-~--~~~---~--~~ 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 the webkit just send to plugin 20 bytes through NPP_Write
1.0 no plugin support. 1.1 has. So you must start from 1.1. 2008/12/29 qvark joseluishuertasfernan...@gmail.com Hi Slacker, I'm very interested in developing a plugin for the Android browser, but I have no clue about where to start. Would you be so kind to give me some tips or point out some documentation to me? I have asked similar questions in the past and the answer I got from the Android team was No plans for plugins in 1.0 so I was wondering if this has changed and I haven't noticed it. Thanks in advance. On Dec 24, 4:56 am, Slacker yel...@gmail.com wrote: Hi all, I am developing a new plugin for web browser via NPAPI as google default android gears plugin. But I always get 20 bytes from browser. Every time browser call my plugin API NP_Write and then send 20 bytes. I verified the 20 bytes is the beginning of the required embedded object. Why? Is it a bug of Android browser plugin framework? Also I tried the NPP_StreamAsFile, I got the file length is 20 bytes. :- --~--~-~--~~~---~--~~ 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: Problem while creating a new file
hi,Thanks for your quick responses Now iam trying to create new file in the below ways: Still Iam not able to create the file 1) File testFile = new File(this.getCacheDir(),aaa.txt); if (!testFile.exists()) { System.out.println(--File does not exist: ); } 2) String filePath1 = this.getCacheDir()+/blahC.txt; File testFile = new File(filePath1); if (!testFile.exists()) { System.out.println(--File does not exist: ); } In either of the above two cases File is not getting created. But if I use createTempFile... file is getting created in the CacheDir temp = File.createTempFile(aaa, .txt, this.getCacheDir()); The SDK version I am using is android-sdk-windows-1.0_r1 On Mon, Dec 29, 2008 at 7:37 PM, sarwees hashimisa...@gmail.com wrote: Ashok, you will not be able to create files to the /data directory since that is a system level directory. You can, however, create files within your application's data directory. Get a reference to the Context and use the cache directory (getCacheDir()) or the files directory (getFilesDir()). On Dec 29, 4:36 am, Ashok Kumar vak...@gmail.com wrote: Hi,I am trying to create a new file using the class File. Below is my code snippet File testFile = new File(/data/tests.txt); if (!testFile.exists()) { System.out.println(--File does not exist: ); } Initially I don't have the file tests.txt under data path. So, I am trying to create it.After creating the file I am making a check is the file exists or not. But it is says that file doesn't exist. Can any one please help me out or how to create a new file and write data into that file. Thanks Ashok.V --~--~-~--~~~---~--~~ 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: Synchronizing Maps and Map Overlays - ConcurrentModificationException
Peter Wrote: com.google.android.maps.MyLocationOverlay Please note if MyLocationOverlay is a Class in Android Peter DMT wrote: Let me guess... r u invoking your code from *within* your custom MyLocationOverlay code ? I had the same Java exception as you until I moved my overlay updating code OUT of my custom MyLocationOverlay class. It seems that MyLocationOverlay also maintains a handle on the overlays list, so that appeared(at least for me,) to be the source of the ConcurrentModificationException. On Dec 26, 6:59 pm, mscwd01 mscw...@gmail.com wrote: Okay, hope everyone had a nice christmas and has had their fill of Turkey ;) Now can anyone help me with this? On Dec 24, 11:53 am, mscwd01 mscw...@gmail.com wrote: Hello, anyone help me with this please... On Dec 24, 12:42 am,mscwd01mscw...@gmail.com wrote: I am getting the following exception: 12-24 00:29:25.922: ERROR/AndroidRuntime(267): Uncaught handler: thread main exiting due to uncaught exception 12-24 00:29:25.960: ERROR/AndroidRuntime(267): java.util.ConcurrentModificationException 12-24 00:29:25.960: ERROR/AndroidRuntime(267): at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:59) 12-24 00:29:25.960: ERROR/AndroidRuntime(267): at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:41) 12-24 00:29:25.960: ERROR/AndroidRuntime(267): at com.google.android.maps.MapView.onDraw(MapView.java:454) I believe this is whats happening: I have a MapView with a few Map Overlays (simple markers), occasionally the locations of the markers change so I clear the map overlays using: map.getOverlays().clear() and insert new marker overlays onto the map. However, if I happen to be moving the map, or zooming the map when the update occurs I get the aboveConcurrentModificationException. I tried synchronizing on the map overlay list, like: synchronized (map.getOverlays()) { // clear and update overlays } However I still get the above exception. Can someone explain the correct way to clear overlays on a map and to repopulate them without encountering ConcurrentModification Exceptions. Oh and I am calling: map.postInvalidate() to refresh the map and display the changes made to the overlays. Is this the correct way to repaint a map? 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 -~--~~~~--~~--~--~---