[android-developers] Announcement: cocos2d for Android updated
I've just uploaded the latest version of cocos2d for android. It's available for you to grab it at: This is a very rough first release with plenty of things that need to be fixed and worked on. A few things are working and there are tests for the following features: - atlas sprites - atlas textures - touch events - cocos nodes - drawing opengl primitives - menus - scenes - sprites - scene transitions Things that need more work and test: - Motion streak - Particle system Please check it out and let me know what you think. If you find a problem and even better come up with a fix, just send me an email or use the google code forum to post your comments. Thanks! Philip -- 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
Re: [android-developers] Announcement: release of test build for Android-x86 EeePC 2.0
Yes, On Fri, Jan 15, 2010 at 8:47 PM, Kevin Duffey wrote: > Will this work inside a virtual machine, like VirtualBox or vmware? > > On Fri, Jan 15, 2010 at 8:31 PM, Yi Sun wrote: >> >> Build 20100115 >> Test build for Android-x86 2.0 on EeePC platforms >> >> The Android-x86 project is glad to announce a new test build >> 20100115 for public testing. A live CD ISO and USB image are >> available from our site: >> >> http://www.android-x86.org/download >> http://code.google.com/p/android-x86/downloads/list >> >> Features: >> Build 20100115 is Android 2.0 (Eclair) based and it is a release >> candidate for android-x86 2.0 stable release. >> In addition to the features available in 1.6 release, the new build >> contains >> >> * Auto detection for touch screen calibration. >> * Enabled Keyguard window. >> * Improved sleep and wakeup handling. >> * Eclair NDK for X86 platforms >> * Added backlight support for EeePC platforms. >> * New framework to support different x86 platforms from different vendors. >> * Kernel 2.6.32 support (not included in the prebuilt images) >> >> Released Files: >> * Live CD iso: android-x86-eeepc-2.0.iso >> SHA1 Checksum: 0de5f73720e4280aa192d4eb43af63656234d430 >> >> * Live USB image: android-x86-eeepc-2.0_usb.img.gz >> SHA1 Checksum: 50c2288690dc6060f0878c5c479b8ed461081e9a >> >> Source code: >> The source code is available in our git server, see >> http://www.android-x86.org/getsourcecode for the instructions about >> how to get the source code. >> >> Test reports (success or fail) are welcome. >> Please send the reports to the Android-x86 discussion group. >> http://groups.google.com/group/android-x86 >> >> Known issues: >> 1. the libghl is not merged yet. >> 2. the graphic performance is very bad >> 3. the Camcorder does not work. >> 4. WIFI does not work for certain devices >> 5. low sound volume >> >> -- >> Android-x86 >> http://www.android-x86.org >> >> -- >> 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 > > > -- > 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-x86 http://www.android-x86.org -- 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
Re: [android-developers] Announcement: release of test build for Android-x86 EeePC 2.0
Will this work inside a virtual machine, like VirtualBox or vmware? On Fri, Jan 15, 2010 at 8:31 PM, Yi Sun wrote: > Build 20100115 > Test build for Android-x86 2.0 on EeePC platforms > > The Android-x86 project is glad to announce a new test build > 20100115 for public testing. A live CD ISO and USB image are > available from our site: > > http://www.android-x86.org/download > http://code.google.com/p/android-x86/downloads/list > > Features: > Build 20100115 is Android 2.0 (Eclair) based and it is a release > candidate for android-x86 2.0 stable release. > In addition to the features available in 1.6 release, the new build > contains > > * Auto detection for touch screen calibration. > * Enabled Keyguard window. > * Improved sleep and wakeup handling. > * Eclair NDK for X86 platforms > * Added backlight support for EeePC platforms. > * New framework to support different x86 platforms from different vendors. > * Kernel 2.6.32 support (not included in the prebuilt images) > > Released Files: > * Live CD iso: android-x86-eeepc-2.0.iso > SHA1 Checksum: 0de5f73720e4280aa192d4eb43af63656234d430 > > * Live USB image: android-x86-eeepc-2.0_usb.img.gz > SHA1 Checksum: 50c2288690dc6060f0878c5c479b8ed461081e9a > > Source code: > The source code is available in our git server, see > http://www.android-x86.org/getsourcecode for the instructions about > how to get the source code. > > Test reports (success or fail) are welcome. > Please send the reports to the Android-x86 discussion group. > http://groups.google.com/group/android-x86 > > Known issues: > 1. the libghl is not merged yet. > 2. the graphic performance is very bad > 3. the Camcorder does not work. > 4. WIFI does not work for certain devices > 5. low sound volume > > -- > Android-x86 > http://www.android-x86.org > > -- > 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 > -- 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] Announcement: release of test build for Android-x86 EeePC 2.0
Build 20100115 Test build for Android-x86 2.0 on EeePC platforms The Android-x86 project is glad to announce a new test build 20100115 for public testing. A live CD ISO and USB image are available from our site: http://www.android-x86.org/download http://code.google.com/p/android-x86/downloads/list Features: Build 20100115 is Android 2.0 (Eclair) based and it is a release candidate for android-x86 2.0 stable release. In addition to the features available in 1.6 release, the new build contains * Auto detection for touch screen calibration. * Enabled Keyguard window. * Improved sleep and wakeup handling. * Eclair NDK for X86 platforms * Added backlight support for EeePC platforms. * New framework to support different x86 platforms from different vendors. * Kernel 2.6.32 support (not included in the prebuilt images) Released Files: * Live CD iso: android-x86-eeepc-2.0.iso SHA1 Checksum: 0de5f73720e4280aa192d4eb43af63656234d430 * Live USB image: android-x86-eeepc-2.0_usb.img.gz SHA1 Checksum: 50c2288690dc6060f0878c5c479b8ed461081e9a Source code: The source code is available in our git server, see http://www.android-x86.org/getsourcecode for the instructions about how to get the source code. Test reports (success or fail) are welcome. Please send the reports to the Android-x86 discussion group. http://groups.google.com/group/android-x86 Known issues: 1. the libghl is not merged yet. 2. the graphic performance is very bad 3. the Camcorder does not work. 4. WIFI does not work for certain devices 5. low sound volume -- Android-x86 http://www.android-x86.org -- 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 about adding app widget into my application(custom home screen)
ok, this is a difficult question. On 1月13日, 上午11時07分, Leo wrote: > any body? > > On 1月8日, 上午12時23分, Leo wrote: > > > Hi, I would like to add app widgets in my own custom home screen, but > > there are some problems about it. > > > Since I have > > readhttps://groups.google.com/group/android-developers/browse_thread/thre... > > >http://www.mail-archive.com/android-developers@googlegroups.com/msg50... > > > they said that activity should need to launch the PICK intent for user > > choosing app widget, but I don't want to > > choose widget from a list, instead of this, I want to insert a > > specifically widtget. > > I think there is a clock widget on the original android home screen, > > so there still another way to add widget app into home screen that > > doesn't need user choosing app widget, right? > > -- 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 ADT update is failing.
I had this very same problem earlier today while trying to update the dev tools. To fix it, I went to Help -> Software Updates..., selected Manage Sites..., then unselected every site except for http://dl-ssl.google.com/android/eclipse/. Then the update proceeded gracefully. Hope that helps! Jason On Jan 8, 9:19 pm, Sanjay Dandekar wrote: > I am trying to update my ADT from v0.9.4 to v0.9.5. But it fails with > anerror: > > Anerroroccurredwhilecollectingitemsto be installed > No repository found containing: > org.springframework.osgi.backport.util.concurrent/osgi.bundle/3.0.0 > > Any idea what is wrong? > > - Sanjay -- 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] orientation of road
Hi all, Is there anyway the orientation of a road (in degrees) can be figured out from the maps API? Thanks Avanish -- 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 with ADT for Eclipse
Ok, I finally got it running, by creating a new project and importing all the source. More fun than I deserve. On Jan 15, 8:54 pm, rben wrote: > After deleting a phone I had created in the emulator, I can no longer > get my Android application to run from Eclipse. Usually I can tease > out a way to fix stuff from error messages, but this time I'm stumped. > When I try to run I get the following error: > > java.lang.NullPointerException > at > com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch > (Unknown Source) > at > com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch > (Unknown Source) > at > com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch > (Unknown Source) > at org.eclipse.debug.internal.core.LaunchConfiguration.launch > (LaunchConfiguration.java:853) > at org.eclipse.debug.internal.core.LaunchConfiguration.launch > (LaunchConfiguration.java:703) > at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch > (DebugUIPlugin.java:866) > at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run > (DebugUIPlugin.java:1069) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) > > Any suggestions? This has brought my work to a halt. -- 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] Problem with ADT for Eclipse
After deleting a phone I had created in the emulator, I can no longer get my Android application to run from Eclipse. Usually I can tease out a way to fix stuff from error messages, but this time I'm stumped. When I try to run I get the following error: java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch (Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch (Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch (Unknown Source) at org.eclipse.debug.internal.core.LaunchConfiguration.launch (LaunchConfiguration.java:853) at org.eclipse.debug.internal.core.LaunchConfiguration.launch (LaunchConfiguration.java:703) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch (DebugUIPlugin.java:866) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run (DebugUIPlugin.java:1069) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Any suggestions? This has brought my work to a halt. -- 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] sd card storage state and detecting it being plugged in or not...
i have an app that needs to be able to write to the sdcard. so, it goes without saying that I need to be able to detect if the sdcard is being shared or not -- simple enough. android.os.Environment.getExternalStorageState().equals (android.os.Environment.MEDIA_SHARED) if this is true, then my app does not have access to the SD card - perfect. I would also like to know while my app is running, if the state of the SD card changes. It looks like I can create a BroadcastReceiver with an IntentFilter that traps the event. the problem is that that the system winds up killing my process because it has a file open on the SD card. 01-15 17:33:44.091: ERROR/vold(47): KillProcessesWithOpenFiles /sdcard 01-15 17:33:44.322: ERROR/vold(47): process com.test.test (7351) has open file /sdcard/test/logfile.txt how can I prevent this? tia. -- 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] Displaying multiple locations on a mapview
Ok, time to ask, I've searched, tried things suggested, and have spent a day on this to no avail. Any suggestions gratefully received. I am using the mapview tutorial as a base and I can only get ONE marker/ location to show up - the one in Mexico, another off of Cape Cod, but not both! (I checked the data on the locationlist array and it is there with different lat/lons as ints) public class LocationMapView extends MapActivity // implements LocationListener { ListmapOverlays; Drawable drawable; MapView mapView; PointLocation [] locationlist ; GeoPoint point; OverlayItem overlayitem ; LocationItemizedOverlay itemizedOverlay ; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.maplayout); mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); mapView.setStreetView(true); LocationDb mLocationDb = new LocationDb(); mLocationDb.open(); locationlist = mLocationDb.fetchLocations() ; mapOverlays = mapView.getOverlays(); drawable = this.getResources().getDrawable (R.drawable.androidmarker); point = new GeoPoint(locationlist[0].geolat, locationlist [0].geolon) ; overlayitem = new OverlayItem(point, "", ""); itemizedOverlay = new LocationItemizedOverlay(drawable); itemizedOverlay.addOverlay(overlayitem); point = new GeoPoint(locationlist[1].geolat, locationlist [1].geolon) ; overlayitem = new OverlayItem(point, "", ""); itemizedOverlay = new LocationItemizedOverlay(drawable); itemizedOverlay.addOverlay(overlayitem); mapOverlays.add(itemizedOverlay); and ItemizedOverlay.java is- import android.graphics.drawable.Drawable; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.OverlayItem; import java.util.ArrayList; public class LocationItemizedOverlay extends ItemizedOverlay { private ArrayList mOverlays = new ArrayList (); public LocationItemizedOverlay(Drawable defaultMarker) { super(boundCenterBottom(defaultMarker)); // TODO Auto-generated constructor stub } @Override public int size() { // TODO Auto-generated method stub return mOverlays.size(); } public void addOverlay(OverlayItem overlay) { mOverlays.add(overlay); populate(); } @Override protected OverlayItem createItem(int i) { return mOverlays.get(i); } -- 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] Media Flinger Crash on Camera picture taken (picture sound) on Nexus One
It appears that taking a picture crashes the camera & media flinger b/ c of trying to play the picture sound on the nexus one. Any ideas? 01-15 19:06:10.511: INFO/NotificationService(74): enqueueToast pkg=com.froogloid.android.gspot callback=android.app.itransientnotification$stub$pr...@44aa8468 duration=0 01-15 19:06:10.542: ERROR/mm-camera(4753): liboemcamera: config_proc_ctrl_command: SEVERE ERROR: attempt to override pending command 13 with 40 01-15 19:06:10.551: INFO/DEBUG(4752): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 01-15 19:06:10.551: INFO/DEBUG(4752): Build fingerprint: 'google/ passion/passion/mahimahi:2.1/ERD79/22607:user/release-keys' 01-15 19:06:10.551: INFO/DEBUG(4752): pid: 4753, tid: 4914 >>> / system/bin/mediaserver <<< 01-15 19:06:10.551: INFO/DEBUG(4752): signal 11 (SIGSEGV), fault addr c0debadd 01-15 19:06:10.551: INFO/DEBUG(4752): r0 c0debadd r1 deadbeef r2 0c00a6d8 r3 0c00a6d8 01-15 19:06:10.551: INFO/DEBUG(4752): r4 40506ab4 r5 a94dec68 r6 0001 r7 a94c8120 01-15 19:06:10.551: INFO/DEBUG(4752): r8 0010 r9 a940ab2d 10 40407000 fp 01-15 19:06:10.551: INFO/DEBUG(4752): ip afbc30c8 sp 40506a80 lr a940b089 pc a940b08c cpsr 6030 01-15 19:06:10.601: INFO/DEBUG(4752): #00 pc b08c / system/lib/liboemcamera.so 01-15 19:06:10.601: INFO/DEBUG(4752): #01 pc abce / system/lib/liboemcamera.so 01-15 19:06:10.601: INFO/DEBUG(4752): #02 pc fd74 / system/lib/libc.so 01-15 19:06:10.601: INFO/DEBUG(4752): #03 pc f840 / system/lib/libc.so 01-15 19:06:10.601: INFO/DEBUG(4752): code around pc: 01-15 19:06:10.601: INFO/DEBUG(4752): a940b07c 18fb4b14 e004f8cd ed22f7fe 48134912 01-15 19:06:10.601: INFO/DEBUG(4752): a940b08c 69206001 49124622 ecccf7fe da102800 01-15 19:06:10.601: INFO/DEBUG(4752): a940b09c f7fe8824 6800ecec ecdcf7fe 4a0d4907 01-15 19:06:10.601: INFO/DEBUG(4752): code around lr: 01-15 19:06:10.601: INFO/DEBUG(4752): a940b078 18bae000 18fb4b14 e004f8cd ed22f7fe 01-15 19:06:10.601: INFO/DEBUG(4752): a940b088 48134912 69206001 49124622 ecccf7fe 01-15 19:06:10.601: INFO/DEBUG(4752): a940b098 da102800 f7fe8824 6800ecec ecdcf7fe 01-15 19:06:10.601: INFO/DEBUG(4752): stack: 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a40 001c 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a44 40506a30 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a48 40407000 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a4c a94e1038 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a50 a94dec6c 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a54 40506ab4 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a58 a94c8120 /system/ lib/liboemcamera.so 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a5c 0c00a6d8 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a60 a94dec68 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a64 40506ab4 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a68 a94dec68 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a6c 0001 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a70 a94c8120 /system/ lib/liboemcamera.so 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a74 a940b089 /system/ lib/liboemcamera.so 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a78 df002777 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a7c e3a070ad 01-15 19:06:10.601: INFO/DEBUG(4752): #00 40506a80 000d 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a84 0028 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a88 000a 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a8c a94c8120 /system/ lib/liboemcamera.so 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a90 40506aac 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a94 a94dec68 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a98 40506ad4 01-15 19:06:10.601: INFO/DEBUG(4752): 40506a9c a940abd3 /system/ lib/liboemcamera.so 01-15 19:06:10.601: INFO/DEBUG(4752): #01 40506aa0 0250 01-15 19:06:10.601: INFO/DEBUG(4752): 40506aa4 a94a9bdc /system/ lib/liboemcamera.so 01-15 19:06:10.601: INFO/DEBUG(4752): 40506aa8 01-15 19:06:10.601: INFO/DEBUG(4752): 40506aac 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ab0 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ab4 0028 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ab8 40506cd4 01-15 19:06:10.601: INFO/DEBUG(4752): 40506abc 0001 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ac0 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ac4 0007 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ac8 0002 [heap] 01-15 19:06:10.601: INFO/DEBUG(4752): 40506acc 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ad0 40506ad4 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ad4 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ad8 4050b000 /dev/ pmem_adsp 01-15 19:06:10.601: INFO/DEBUG(4752): 40506adc 000c 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ae0 01-15 19:06:10.601: INFO/DEBUG(4752): 40506ae4 00
[android-developers] Re: ListView touch mode click on child views
Have you tried setting focusable="true" on the entire View the makes up the list item? On Jan 15, 6:07 am, Xavier wrote: > Hello, > > This is driving me nuts. I have a ListView that uses an extended > ArrayAdapter. Each row "cell.xml" contains a RelativeLayout and > within a few TextViews and ImageViews. > > I have declared in the list xml definition a selector to change the > row background: > > @drawable/list_selector_background item> > > It works. But only if the click (touch mode) not done over any of the > elements contained in the RelativeLayout. Any click outside this > elements will (correctly) trigger the selector. I have tried using > android:focusable="false" on each child view without avail. > > What do I need to do to be able to trigger the selector, no matter > where the user clicks? > > 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: sending around 1000 messages in batch using SMS API
Not if you are coding a spamming app. On Jan 16, 6:20 am, Michael boggess wrote: > Is there a better alternative to sending a thousand sms messages? > > On Jan 14, 1:42 pm, Hasanat Kazmi wrote: > > > > > Hi, > > I have G1. I write python scripts using ASE. > > I have to send around 1000 SMSes using SMS API in ASE. I wonder if G1 > > will be able to hold up-to that? moreover, how much pause (time gap/ > > sleep) should I give between each message sent. > > Some of my colleges think that its a crazy idea. I should go for GSM > > modem. What do you think, is this feasible enough? Can G1 enough > > capable? I dont have dev version.- Hide quoted text - > > - Show quoted text - -- 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] auto paring feature
Hi, About the auto paring feature, we have the discussion on earlier threads ... Just wondering if there is any update or planning whether android will support auto paring for cases using remote device as sensor devices, etc. Just looked into 2.0.1 release notes, it seems not supported yet. It will be very helpful if we can get any preliminary or high level info for annual planning purpose. -- 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: Restoring focus to ListView
> Then you are probably doing something something wrong. This should not happen. > Not exactly sure what I could be doing wrong. It's really pretty simple stuff -- a plain vanilla Cursor backed ListView and a pop-up Activity. I use the trackball to navigate through the list -- I can see the orange focus highlight. Then I press the trackball to select the line item which starts the pop-up Activity. After the pop-up becomes visible, I immediately use the physical back arrow to dismiss it. At this point I would expect to see the previously selected line highlighted again so that I can continue using the trackball so select another line. I, at no point, touch the screen. I can whip up a sample app that demostrates what I mean, if that's more helpful. On Jan 16, 12:57 am, Romain Guy wrote: > > I wonder if this behavior should be defeatable. > > No. No. No. No. > > > Currently, if the user navigates then clicks the ListView using the > > trackball and then hits the back button from the pop-up Activity > > without ever touching the screen, the system behaves as if there had > > been a touch. In my opinion, it's a bit unintuitive. > > Then you are probably doing something something wrong. This should not happen. > > > > > > > > > On Jan 15, 2:41 pm, Romain Guy wrote: > >> This is the normal and intended behavior. Focus appears only when the > >> user uses the trackball/dpad. When the user touches the screen, the > >> focus disappears. > > >> On Thu, Jan 14, 2010 at 10:33 PM, Zsolt Vasvari wrote: > >> > I have a ListView in a ListActivity that starts another Activity when > >> > a list item is clicked. The 2nd Activity is a Theme.Dialog, but I > >> > don't think that matters for this purpose. > > >> > I would like the visible focus restored to the ListView when I close > >> > the 2nd Activity. Currently,when I come back, I have to hit the > >> > trackball once to give focus to the ListView and then hit it again to > >> > move around in the list. > > >> > I tried the obvious getListView().requestFocus() from onResume(). I > >> > also tried saving the current focused view using getListView > >> > ().findFocus() before starting the 2nd Activity, but neither of these > >> > methods work. > > >> > I am using API Level 7 in the Emulator. > > >> > Can anyone help? > > >> > Thanks, > >> > Zsolt Vasvari > > >> > -- > >> > 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 > > >> -- > >> Romain Guy > >> Android framework engineer > >> romain...@android.com > > >> Note: please don't send private questions to me, as I don't have time > >> to provide private support. All such questions should be posted on > >> public forums, where I and others can see and answer them- Hide quoted > >> text - > > >> - Show quoted text - > > > -- > > 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 > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them- Hide quoted text - > > - Show quoted text - -- 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: btsocket connected but read zero bytes
Anyone look into or experienced the same problem using the role switch feature? I think this may be a bug on the android sdk: If android bt advertise it support role switch and it should fullfil the request from remote device. Or, it should simply advertise that it doesn't support role switch so the remote device would not request role switch? is that how it suppose to work? comments? On Mon, Nov 30, 2009 at 11:36 AM, Sean Liao wrote: > We hooked up a BT protocol analyzer to monitor why connection getting > dropped right after connection. We are certain it is due to "Role Switch". > By disable role switch, I have successfully established connection, read > and write. > > The behavior seems not right, and I think there may be a problem on my > Android phones. The following is what I observed from the protocol > analyzer: > > 1. Android makes a connection to remote device. It is succesful. > 2. Remote device requests "Role Switch". > => Android "must" response yes (I believe, otherwise, connection > would just stay and no further steps shall take place) > > 3. Android immediately disconnects the above connection. > 4. The remote device attempts to establish a connection to my Android > phone, it fails. I can see the remote device trying to negotiate connection > rate but eventually giving up. > > The above I believe 3 and 4 are the steps when role switch taken place. I > could be wrong but by disable role switch on remote device, the connection > is fairly robust. > > May I request "role switch" feature for next release? > > Best regards, > Sean > > > > > > > > On Tue, Nov 24, 2009 at 12:45 PM, Sean Liao wrote: > >> Hi, I wrote a simple test driver to test the bluetooth apis. Anyone can >> verify whether I am using the API correctly? Everything seems good but no >> data read :-( >> >> >> >> >> === >> // before calling the following, inquiry scan successfully returned, and >> the remote device is pre-paired. >> >>private boolean doTestConnection() { >> >> Log.d("SwxBtCommImpl", "doTestConnection"); >> >> String btAddr = "00:08:1B:CA:C7:29"; >> >> BluetoothDevice btdev = >> BluetoothAdapterImpl.getInstance().getRemoteDevice(btAddr); >> >> // widcom using the following GUID >> // 1101--1000-8000-00805F9B34FB >> UUID uuid = UUID.fromString("1101--1000-8000-00805F9B34FB"); >> >> try { >> BluetoothSocket btsocket = >> btdev.createRfcommSocketToServiceRecord(uuid); >> >> btsocket.connect(); >> Log.d("SwxBtCommImpl", "connected"); >> >> try { >> Thread.sleep(1000); >> } catch (InterruptedException e1) { >> // TODO Auto-generated catch block >> e1.printStackTrace(); >> } >> >> InputStream instream = btsocket.getInputStream(); >> Log.d("", "getInputStream"); >> >> byte[] data = new byte[512]; >> for (int i = 0; i < 20; i++) { >> int numOfAvailable = instream.available(); >> >> Log.d("SwxBtCommImpl", "read " + i + ": " + numOfAvailable + " >> bytes"); >> if(numOfAvailable > 0) { >>int numOfRead = instream.read(data); >>Log.d("SwxBtCommImpl", new String(data) + "-" + numOfRead); >> } else { >> >>try { >> Thread.sleep(500); >>} catch (InterruptedException e) { >> // TODO Auto-generated catch block >> e.printStackTrace(); >>} >> } >> } >> >> instream.close(); >> instream = null; >> >> btsocket.close(); >> >> } catch (IOException e) { >> // TODO Auto-generated catch block >> Log.e("", "bt connection failed", e); >> } >> >> >> >> return true; >>} >> >> > -- 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 unlock HTC magic retail to dev phone?
This is a good place to start: http://wiki.cyanogenmod.com/index.php/Main_Page#Upgrading_from_Vanilla:_Installing_your_first_mod On Jan 15, 1:26 pm, Captain___nemo wrote: > Hi, > I am a new android developer in China. Unfortunately, dev phone is not > available in here. And it's almost impossible and hazardous to get one > from US. However I can buy retail version of the phone and I would > prefer HTC magic with 288 MB RAM version (for more RAM and memory, so > that I can upgrade to android 2.0) > > Now, my question is- how can I unlock this device so that it works > like a dev phone? Such as, I want to flash, install/upgrade/downgrade > android OS, install modified version of android OS, bla bla bla. > > 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 display XML
Hi all, Is it possible to display an xml file with all the tags in Webview or the Browser without first parsing the xml file? For example, is it possible to display the following Danny Jane Hello How are you doing? without it being parsed to display Danny Jane Hello How are you doing? Any help will be appreciated. -- 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: Accelerometer Reading ranges
yes, ko5tik brings up a good point: each android phone may have a different model accelerometer. the info i posted earlier was specific to the Droid phone, which has this sensor: http://www.st.com/stonline/products/literature/ds/15094/lis331dlh.pdf there is an api call to get the max value reading from the accelerometer sensor; you can use that along with the onAccuracyChanged callback to create a filter. On Jan 15, 9:35 am, MPower123 wrote: > Can anyone comment on the accelerometer's accuracy? > I've read on other threads that, in general, it is very in accurate > but has anyone tried to write a > signal conditioner to smooth out the signal? > > On Jan 14, 4:35 pm, Chris McClanahan wrote: > > > > > I believe the max accelerometer reading is 40, thus making it > > sensitive to about (40/9.81)=4.077472G. > > > On Jan 13, 3:17 pm, MPower123 wrote:> Hi, > > > > I am writing a game for android phone and I want to know what is the > > > range of values that can be read from the accelerometer? I want to > > > know how many Gs can be read from the accelerometer? > > > Or is this dependant on the phone? I've seen an Iphone app that can > > > read up to 2.5g, is this possible on android phones? > > > > 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 emulator and AudioRecord - audio in
It should work with the emulator. You just need have a emulator for target API 1.6 or higher. Thank you On Jan 11, 9:26 pm, lokida wrote: > Hello, > > I would like to use audio input with the emulator (inspiring by this > tutorial:http://www.anddev.org/viewtopic.php?p=22820) but each time > my application stopped. It 's happen on starting ofAudioRecord. > > I would like to know what is the solution to use audio input with the > simulator. > > I work on windows xp using the 2.0.1 androidsdk. > > thank you. -- 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: Creating custom button looks?
If you need multiple hit areas you may want to consider using several images to create 'one' button. For example a d-pad could be 5 imagebuttons, u/d/l/r and the middle. This approach will most likely save you quite a headache. -theSmith On Jan 15, 4:22 pm, Moto wrote: > None of the SDK versions will automatically check what areas in the > button should be a hit area... it's just a plane W x H area > > You will need to create a custom image button class and catch the > touch events and decide if it's a hit or not... :) > > -Moto > > On Jan 15, 4:14 pm, clark wrote: > > > I had added a D-Pad image button to a game, and the transparent areas > > still registered hits. This was using the 1.5 SDK so I am not sure if > > any of the newer SDKs have changed this. > > > On Jan 15, 12:30 pm, Kevin Duffey wrote: > > > > You can use a png I believe with transparency to produce any style button > > > you want. I don't know if the hit-test for clicking on it will work only > > > on > > > the image part or the whole square width/height size of the button itself > > > tho. > > > > On Fri, Jan 15, 2010 at 11:18 AM, Tommy Hartz wrote: > > > > Ok so its shape will changed based on the image I assign to it? > > > > > On Fri, Jan 15, 2010 at 2:11 PM, theSmith > > > > wrote: > > > > >> use an imagebutton > > > > >> On Jan 15, 1:35 pm, Tommy wrote: > > > >> > Hey, > > > > >> > Is there a way to create a custom button style? Say I want a round > > > >> > button do I simply take the pre-made round graphic and make it the > > > >> > background of the button or will the button still be a rectangle? > > > > >> -- > > > >> 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 > > > > > -- > > > > 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-Hidequoted text - > > > > - Show quoted text - -- 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
Re: [android-developers] JOB OFFER--developing the Android SMS application
Hi Your mail is not working. Your project is interesting and I would like to work on it. this is my email - pognonlo...@yahoo.com cheers LP On Fri, Jan 15, 2010 at 8:35 AM, Jack Hsu wrote: > HI ALL > > I am looking for the SMS solution in Android cell phone to have the > following functions (but not limited), would any one like to help me > to develop this application? Payment can discuss. > > 1. can send and receive the SMS with encryption > > 2. can automatically store the receiving SMS in Security SD card (in > flash memory area) -This security SD card is the micro SD card type > which embed a smart card.-we will offer this. > > 3. via the PIN (key password) ( for the smart card) to access the > special SMS platform and decryption and encryption (using the private > key stored in this SD card -smart card area ) the SMS to see or to > send. > > 4. can setup or receive different key value for different SMS which > sent by different person. > > It would need the one who is well know the PKI, smart card (7816), > java and Android 1.5, 1.6, and 2.01 . we will pay for this > application. if you are interesting in this job, please contact us > directly. Jack Hsu, m092942...@gmail.com > > -- > 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 > -- 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: Load image from Jar file
You can read a byte array via an inputstream using something like "myclass.getClassLoader().getResourceAsStream(imagePath)" where imagePath is the path to the image inside the jar. On Jan 15, 6:05 am, mscwd01 wrote: > Hey, > > I realise the correct way to load an image is from res/drawable but > imagine that was not a possibility. If you had to load an image from > an attached jar file, how would one achieve it? > > Many 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: ClearTaskOnLaunch flag is not working
I solved the problem here adding android:finishOnTaskLaunch ="true" for all the activities except the root. Probably this is not the best way, but android:clearTaskOnLaunch="true" is not working (If someone knows why, please help us). On 14 jan, 08:15, Android Developer wrote: > Hi, > > I have two activities in an application Activiy1 and Activity2 where > Activity1 is the launcher. > i have setclearTaskOnLaunch=true for activity one using below code > android:label="@string/app_name" > android:clearTaskOnLaunch="true"> > > > android:name="android.intent.category.LAUNCHER" /> > > > > I will launch the application, then from Activity 1 ->Activity2 > Then i press Home key, Long press home key and select the application > again, it is showing Activity2 and not Activity1 which is the root > activity. > > Am i doing wrong somewhere? If no, why is the behavior not correct. -- 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] Scrolling an EditText
Hi, I have an EditText with an extremely long string. I'd like to scroll the text in marquee fashion, automatically for the user. The best I have is this: private Runnable mAnimate = new Runnable() { public void run() { mMyEditText.scrollBy(3, 0); mHandler.post(mAnimate); } }; Button btnStart = new Button(); btnStart.setOnClickHandler(new OnClickHandler() { public void onClick(View view) { mHandler.post(mAnimate); } } it works, but is pretty choppy. Any better way to animate the text scrolling? Should I drop this and try writing my own implementation of EditText for this purpose? The chopiness may come from the fact that the EditText is trying to interpolate the scroll etc, 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: sending around 1000 messages in batch using SMS API
Is there a better alternative to sending a thousand sms messages? On Jan 14, 1:42 pm, Hasanat Kazmi wrote: > Hi, > I have G1. I write python scripts using ASE. > I have to send around 1000 SMSes using SMS API in ASE. I wonder if G1 > will be able to hold up-to that? moreover, how much pause (time gap/ > sleep) should I give between each message sent. > Some of my colleges think that its a crazy idea. I should go for GSM > modem. What do you think, is this feasible enough? Can G1 enough > capable? I dont have dev version. -- 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: GL for Live Wallpaper?
Forgive my ignorance. I set up my contributor account, signed the agreement and set up ssh authorization then successfully uploaded my branch for review. Who should I notify about the branch? Thanks On Jan 15, 4:06 pm, Robert Green wrote: > I committed my changes under the branch GL_WALLPAPER_SERVICE but am > unable to upload it for review using "repo upload" > > I get a publickey failure (seems like I don't have auth to do that). > > Who should I email to notify of the branch and then where can I look > for help on finishing this? It's my first time contributing and I'd > like to see this thing through. > > Thanks. > > On Jan 15, 3:32 pm, Romain Guy wrote: > > > > > > I'm all set up. What branch should I submit this to? > > > The branch would be master. > > > > The reason I didn't just submit this is because one would think that > > > nice integration would involve reuse instead of a copy of much of that > > > code. If GLSurfaceView were refactored a bit, both it and GLEngine > > > could share 99% of the code. I feel like that's stepping outside of > > > my bounds as a contributor, though. I guess I'll submit this and > > > suggest that GLSurfaceView be refactored to use a common code base > > > with GLEngine. > > > It's not out of bounds, far from it :) > > > > On Jan 15, 1:37 pm, Romain Guy wrote: > > >> Hi, > > > >> If you want to contribute to Android, please go > > >> tohttp://s.android.comandfollowthe instructions. > > > >> On Fri, Jan 15, 2010 at 10:53 AM, Robert Green > > >> wrote: > > >> > Romain, > > > >> > I adapted the code from GLSurfaceView into a GLWallpaperService/ > > >> > GLEngine design and posted it here - > > >> >http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpa... > > > >> > I'd like for your team to review it and consider adding it (with > > >> > whatever modifications the API designers deem necessary) to the next > > >> > version of Android. > > > >> > With it, I was able to code my app up using a standard GLSurfaceView/ > > >> > Renderer and then just move the Renderer over to the newLive > > >> >Wallpaperapp without any problems. > > > >> > It's currently being used in the appLiveWaterpaper on the market. > > > >> > On Jan 11, 9:17 pm, Robert Green wrote: > > >> >> I guess I should have checked out the defaults first. Very good. > > >> >> This will be a nice little break from the game programming. > > > >> >> On Jan 11, 8:09 pm, Romain Guy wrote: > > > >> >> > Yes you can, all defaultlivewallpapers except one are implemented > > >> >> > inGL. > > > >> >> > On Mon, Jan 11, 2010 at 4:59 PM, Robert Green > > >> >> > wrote: > > >> >> > > Can we useGLforlivewallpapers? I have a sweet idea for one that > > >> >> > > won't hit the CPU/GPU too hard. > > > >> >> > > -- > > >> >> > > 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 > > > >> >> > -- > > >> >> > Romain Guy > > >> >> > Android framework engineer > > >> >> > romain...@android.com > > > >> >> > Note: please don't send private questions to me, as I don't have > > >> >> > time > > >> >> > to provide private support. 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 > > > >> -- > > >> Romain Guy > > >> Android framework engineer > > >> romain...@android.com > > > >> Note: please don't send private questions to me, as I don't have time > > >> to provide private support. 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 > > > -- > > Romain Guy > > Android framework engineer > > romain...@android.com > > > Note: please don't send private questions to me, as I don't have time > > to provide private support. All such questions s
[android-developers] Re: GL for Live Wallpaper?
I committed my changes under the branch GL_WALLPAPER_SERVICE but am unable to upload it for review using "repo upload" I get a publickey failure (seems like I don't have auth to do that). Who should I email to notify of the branch and then where can I look for help on finishing this? It's my first time contributing and I'd like to see this thing through. Thanks. On Jan 15, 3:32 pm, Romain Guy wrote: > > I'm all set up. What branch should I submit this to? > > The branch would be master. > > > The reason I didn't just submit this is because one would think that > > nice integration would involve reuse instead of a copy of much of that > > code. If GLSurfaceView were refactored a bit, both it and GLEngine > > could share 99% of the code. I feel like that's stepping outside of > > my bounds as a contributor, though. I guess I'll submit this and > > suggest that GLSurfaceView be refactored to use a common code base > > with GLEngine. > > It's not out of bounds, far from it :) > > > > > > > > > On Jan 15, 1:37 pm, Romain Guy wrote: > >> Hi, > > >> If you want to contribute to Android, please go > >> tohttp://s.android.comandfollow the instructions. > > >> On Fri, Jan 15, 2010 at 10:53 AM, Robert Green wrote: > >> > Romain, > > >> > I adapted the code from GLSurfaceView into a GLWallpaperService/ > >> > GLEngine design and posted it here - > >> >http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpa... > > >> > I'd like for your team to review it and consider adding it (with > >> > whatever modifications the API designers deem necessary) to the next > >> > version of Android. > > >> > With it, I was able to code my app up using a standard GLSurfaceView/ > >> > Renderer and then just move the Renderer over to the newLive > >> >Wallpaperapp without any problems. > > >> > It's currently being used in the appLiveWaterpaper on the market. > > >> > On Jan 11, 9:17 pm, Robert Green wrote: > >> >> I guess I should have checked out the defaults first. Very good. > >> >> This will be a nice little break from the game programming. > > >> >> On Jan 11, 8:09 pm, Romain Guy wrote: > > >> >> > Yes you can, all defaultlivewallpapers except one are implemented > >> >> > inGL. > > >> >> > On Mon, Jan 11, 2010 at 4:59 PM, Robert Green > >> >> > wrote: > >> >> > > Can we useGLforlivewallpapers? I have a sweet idea for one that > >> >> > > won't hit the CPU/GPU too hard. > > >> >> > > -- > >> >> > > 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 > > >> >> > -- > >> >> > Romain Guy > >> >> > Android framework engineer > >> >> > romain...@android.com > > >> >> > Note: please don't send private questions to me, as I don't have time > >> >> > to provide private support. 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 > > >> -- > >> Romain Guy > >> Android framework engineer > >> romain...@android.com > > >> Note: please don't send private questions to me, as I don't have time > >> to provide private support. 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 > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. 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: Profiling Bitmap Memory
On Jan 14, 10:11 pm, Gianormous Admin wrote: > I'm aware that bitmap memory is not heap memory, as it's allocated > natively... But that it is accounted for somehow in the VM and > influences garbage collection. Maybe it's an oversimplification of > how bitmap memory works - but I'd like to find a tool etc or some way > of determining I as the game is running right now, there are no more > than X bytes of usable bitmap memory remaining. Right now all you've got is dalvik/tools/gclog.py: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=tools/gclog.py;hb=HEAD It prints some stats on every GC. The current version takes a few arguments (-h for help, -p to show only one process, -d for a more complete dump of stats). -- 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: Sprites VS 3D ?
2D is certainly easier because you're leaving out a whole dimension when working with movement, camera and collision. I should think it's probably less expensive in terms of memory too because you won't have as complex i.e. large vertex array - although I'm guessing a bit. On Jan 15, 9:36 pm, Duey Oxburger wrote: > Lads, > > What is more memory expensive Sprite or 3D rendering?... Which is > 'easier' to work with?... > > Thx, > > D -- 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] Sprites VS 3D ?
Lads, What is more memory expensive Sprite or 3D rendering?... Which is 'easier' to work with?... Thx, D -- 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
Re: [android-developers] Re: GL for Live Wallpaper?
> I'm all set up. What branch should I submit this to? The branch would be master. > The reason I didn't just submit this is because one would think that > nice integration would involve reuse instead of a copy of much of that > code. If GLSurfaceView were refactored a bit, both it and GLEngine > could share 99% of the code. I feel like that's stepping outside of > my bounds as a contributor, though. I guess I'll submit this and > suggest that GLSurfaceView be refactored to use a common code base > with GLEngine. It's not out of bounds, far from it :) > > On Jan 15, 1:37 pm, Romain Guy wrote: >> Hi, >> >> If you want to contribute to Android, please go tohttp://s.android.comand >> follow the instructions. >> >> >> >> >> >> On Fri, Jan 15, 2010 at 10:53 AM, Robert Green wrote: >> > Romain, >> >> > I adapted the code from GLSurfaceView into a GLWallpaperService/ >> > GLEngine design and posted it here - >> >http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpa... >> >> > I'd like for your team to review it and consider adding it (with >> > whatever modifications the API designers deem necessary) to the next >> > version of Android. >> >> > With it, I was able to code my app up using a standard GLSurfaceView/ >> > Renderer and then just move the Renderer over to the new Live >> > Wallpaper app without any problems. >> >> > It's currently being used in the app Live Waterpaper on the market. >> >> > On Jan 11, 9:17 pm, Robert Green wrote: >> >> I guess I should have checked out the defaults first. Very good. >> >> This will be a nice little break from the game programming. >> >> >> On Jan 11, 8:09 pm, Romain Guy wrote: >> >> >> > Yes you can, all defaultlivewallpapers except one are implemented in GL. >> >> >> > On Mon, Jan 11, 2010 at 4:59 PM, Robert Green >> >> > wrote: >> >> > > Can we use GL forlivewallpapers? I have a sweet idea for one that >> >> > > won't hit the CPU/GPU too hard. >> >> >> > > -- >> >> > > 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 >> >> >> > -- >> >> > Romain Guy >> >> > Android framework engineer >> >> > romain...@android.com >> >> >> > Note: please don't send private questions to me, as I don't have time >> >> > to provide private support. 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 >> >> -- >> Romain Guy >> Android framework engineer >> romain...@android.com >> >> Note: please don't send private questions to me, as I don't have time >> to provide private support. 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 > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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: Creating custom button looks?
None of the SDK versions will automatically check what areas in the button should be a hit area... it's just a plane W x H area You will need to create a custom image button class and catch the touch events and decide if it's a hit or not... :) -Moto On Jan 15, 4:14 pm, clark wrote: > I had added a D-Pad image button to a game, and the transparent areas > still registered hits. This was using the 1.5 SDK so I am not sure if > any of the newer SDKs have changed this. > > On Jan 15, 12:30 pm, Kevin Duffey wrote: > > > You can use a png I believe with transparency to produce any style button > > you want. I don't know if the hit-test for clicking on it will work only on > > the image part or the whole square width/height size of the button itself > > tho. > > > On Fri, Jan 15, 2010 at 11:18 AM, Tommy Hartz wrote: > > > Ok so its shape will changed based on the image I assign to it? > > > > On Fri, Jan 15, 2010 at 2:11 PM, theSmith wrote: > > > >> use an imagebutton > > > >> On Jan 15, 1:35 pm, Tommy wrote: > > >> > Hey, > > > >> > Is there a way to create a custom button style? Say I want a round > > >> > button do I simply take the pre-made round graphic and make it the > > >> > background of the button or will the button still be a rectangle? > > > >> -- > > >> 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 > > > > -- > > > 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-Hide quoted text - > > > - Show quoted text - -- 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: Creating custom button looks?
I had added a D-Pad image button to a game, and the transparent areas still registered hits. This was using the 1.5 SDK so I am not sure if any of the newer SDKs have changed this. On Jan 15, 12:30 pm, Kevin Duffey wrote: > You can use a png I believe with transparency to produce any style button > you want. I don't know if the hit-test for clicking on it will work only on > the image part or the whole square width/height size of the button itself > tho. > > > > On Fri, Jan 15, 2010 at 11:18 AM, Tommy Hartz wrote: > > Ok so its shape will changed based on the image I assign to it? > > > On Fri, Jan 15, 2010 at 2:11 PM, theSmith wrote: > > >> use an imagebutton > > >> On Jan 15, 1:35 pm, Tommy wrote: > >> > Hey, > > >> > Is there a way to create a custom button style? Say I want a round > >> > button do I simply take the pre-made round graphic and make it the > >> > background of the button or will the button still be a rectangle? > > >> -- > >> 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 > > > -- > > 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- Hide quoted text - > > - Show quoted text - -- 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: Motorola Droid (possible android) multi-touch bug and how to reproduce
here is in the original text from the post, this explains how to make the bug occur: 1) Touch screen with finger 1 and start doodling 2) Without removing finger 1, touch screen with finger 2 and start doodling 3) Remove finger 1 from the screen (without removing finger 2) 4) Replace finger 1 on the screen and start doodling again (never remove finger 2) 5) Voila, you will see the bug. The drawn lines for finger 1 will suddeny connect to finger 2. This is because there is a bug when the first finger is placed back down again, the event only has points for the wrong finger! Even though finger 1 went back down at a new location, the code thinks for some reason that finger 2 is the one that went back down (but it never went up). -Colin On Jan 15, 2:35 pm, rollbak wrote: > Can you please explain which the issue is? > > On Jan 15, 1:09 pm, Mirmathrax wrote: > > > Multi-touch API is bugged (at least on Motorola Droid). Here is a > > method to reproduce the error for analysis: > > > 1) Create a new android project in Eclipse with the following fields: > > > Project name: PointerLocation > > Build target: Android 2.0.1 > > Application Name: PointerLocation > > Package Name: com.example.pointerlocation > > Create Activity: PointerLocation > > > 2) Copy the following code and paste this into the > > PointerLocation.java file that is automatically created > > > /* > > * Copyright (C) 2007 The Android Open Source Project > > * > > * Licensed under the Apache License, Version 2.0 (the "License"); > > * you may not use this file except in compliance with the License. > > * You may obtain a copy of the License at > > * > > * http://www.apache.org/licenses/LICENSE-2.0 > > * > > * Unless required by applicable law or agreed to in writing, software > > * distributed under the License is distributed on an "AS IS" BASIS, > > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > > implied. > > * See the License for the specific language governing permissions and > > * limitations under the License. > > */ > > > package com.example.pointerlocation; > > > import android.app.Activity; > > import android.content.Context; > > import android.graphics.Canvas; > > import android.graphics.Paint; > > import android.graphics.Paint.FontMetricsInt; > > import android.os.Bundle; > > import android.util.Log; > > import android.view.MotionEvent; > > import android.view.ViewConfiguration; > > import android.view.WindowManager; > > import android.view.VelocityTracker; > > import android.view.View; > > > import java.util.ArrayList; > > > /** > > * Demonstrates wrapping a layout in a ScrollView. > > * > > */ > > public class PointerLocation extends Activity { > > @Override > > protected void onCreate(Bundle icicle) { > > super.onCreate(icicle); > > setContentView(new MyView(this)); > > > // Make the screen full bright for this activity. > > WindowManager.LayoutParams lp = getWindow().getAttributes(); > > lp.screenBrightness = 1.0f; > > getWindow().setAttributes(lp); > > } > > > public static class PointerState { > > private final ArrayList mXs = new ArrayList(); > > private final ArrayList mYs = new ArrayList(); > > private boolean mCurDown; > > private int mCurX; > > private int mCurY; > > private float mCurPressure; > > private float mCurSize; > > private int mCurWidth; > > private VelocityTracker mVelocity; > > } > > > public class MyView extends View { > > private final ViewConfiguration mVC; > > private final Paint mTextPaint; > > private final Paint mTextBackgroundPaint; > > private final Paint mTextLevelPaint; > > private final Paint mPaint; > > private final Paint mTargetPaint; > > private final Paint mPathPaint; > > private final FontMetricsInt mTextMetrics = new FontMetricsInt > > (); > > private int mHeaderBottom; > > private boolean mCurDown; > > private int mCurNumPointers; > > private int mMaxNumPointers; > > private final ArrayList mPointers > > = new ArrayList(); > > > public MyView(Context c) { > > super(c); > > mVC = ViewConfiguration.get(c); > > mTextPaint = new Paint(); > > mTextPaint.setAntiAlias(true); > > mTextPaint.setTextSize(10 > > * getResources().getDisplayMetrics().density); > > mTextPaint.setARGB(255, 0, 0, 0); > > mTextBackgroundPaint = new Paint(); > > mTextBackgroundPaint.setAntiAlias(false); > > mTextBackgroundPaint.setARGB(128, 255, 255, 255); > > mTextLevelPaint = new Paint(); > > mTextLevelPaint.setAntiAlias(false); > > mTextLevelPaint.setARGB(192, 255, 0, 0); > >
Re: [android-developers] Re: Creating custom button looks?
You can use a png I believe with transparency to produce any style button you want. I don't know if the hit-test for clicking on it will work only on the image part or the whole square width/height size of the button itself tho. On Fri, Jan 15, 2010 at 11:18 AM, Tommy Hartz wrote: > Ok so its shape will changed based on the image I assign to it? > > On Fri, Jan 15, 2010 at 2:11 PM, theSmith wrote: > >> use an imagebutton >> >> On Jan 15, 1:35 pm, Tommy wrote: >> > Hey, >> > >> > Is there a way to create a custom button style? Say I want a round >> > button do I simply take the pre-made round graphic and make it the >> > background of the button or will the button still be a rectangle? >> >> -- >> 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 >> > > > -- > 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 > -- 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: Motorola Droid (possible android) multi-touch bug and how to reproduce
Sorry, perhaps I was not clear in the description what the bug is. I will attempt to explain it in better detail here. When you perform the following touch pattern: 1) place finger 1 down 2) place finger 2 down 3) remove finger 1 4) place finger 1 back down again The ACTION_POINTER_DOWN event that is generated during step 4 returns the incorrect X and Y location for where the event occurred. In fact, the X, and Y that is returned is the X and Y location for the other finger. Searching the entire history of the motionevent shows that there is no record of the X, Y for finger 1. Running the above code illustrates the problem and makes it obvious. As when you replace finger 1 and start to move it, it suddenly draws a line from finger 2 to finger 1, connecting the two, thus illustrating the bug. If you run the code and observe the output when performing the above actions, you will see clearly the problem. I have debugged this and looked at every point in every motionevent that is captured, and during step 4, the X, Y locations for finger 1 are not anywhere to be found. Ot is only during an ACTION_MOVE that new X, Y values for finger 1 appear. As an aside, if you then remove finger 1 again, the ACTION_POINTER_UP event tells you that finger 2 is coming up according to the ID. This is also a bug. I hope this helps. I can try to post screens of this if that will also help. -Colin On Jan 15, 2:35 pm, rollbak wrote: > Can you please explain which the issue is? > > On Jan 15, 1:09 pm, Mirmathrax wrote: > > > Multi-touch API is bugged (at least on Motorola Droid). Here is a > > method to reproduce the error for analysis: > > > 1) Create a new android project in Eclipse with the following fields: > > > Project name: PointerLocation > > Build target: Android 2.0.1 > > Application Name: PointerLocation > > Package Name: com.example.pointerlocation > > Create Activity: PointerLocation > > > 2) Copy the following code and paste this into the > > PointerLocation.java file that is automatically created > > > /* > > * Copyright (C) 2007 The Android Open Source Project > > * > > * Licensed under the Apache License, Version 2.0 (the "License"); > > * you may not use this file except in compliance with the License. > > * You may obtain a copy of the License at > > * > > * http://www.apache.org/licenses/LICENSE-2.0 > > * > > * Unless required by applicable law or agreed to in writing, software > > * distributed under the License is distributed on an "AS IS" BASIS, > > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > > implied. > > * See the License for the specific language governing permissions and > > * limitations under the License. > > */ > > > package com.example.pointerlocation; > > > import android.app.Activity; > > import android.content.Context; > > import android.graphics.Canvas; > > import android.graphics.Paint; > > import android.graphics.Paint.FontMetricsInt; > > import android.os.Bundle; > > import android.util.Log; > > import android.view.MotionEvent; > > import android.view.ViewConfiguration; > > import android.view.WindowManager; > > import android.view.VelocityTracker; > > import android.view.View; > > > import java.util.ArrayList; > > > /** > > * Demonstrates wrapping a layout in a ScrollView. > > * > > */ > > public class PointerLocation extends Activity { > > @Override > > protected void onCreate(Bundle icicle) { > > super.onCreate(icicle); > > setContentView(new MyView(this)); > > > // Make the screen full bright for this activity. > > WindowManager.LayoutParams lp = getWindow().getAttributes(); > > lp.screenBrightness = 1.0f; > > getWindow().setAttributes(lp); > > } > > > public static class PointerState { > > private final ArrayList mXs = new ArrayList(); > > private final ArrayList mYs = new ArrayList(); > > private boolean mCurDown; > > private int mCurX; > > private int mCurY; > > private float mCurPressure; > > private float mCurSize; > > private int mCurWidth; > > private VelocityTracker mVelocity; > > } > > > public class MyView extends View { > > private final ViewConfiguration mVC; > > private final Paint mTextPaint; > > private final Paint mTextBackgroundPaint; > > private final Paint mTextLevelPaint; > > private final Paint mPaint; > > private final Paint mTargetPaint; > > private final Paint mPathPaint; > > private final FontMetricsInt mTextMetrics = new FontMetricsInt > > (); > > private int mHeaderBottom; > > private boolean mCurDown; > > private int mCurNumPointers; > > private int mMaxNumPointers; > > private final ArrayList mPointers > > = new ArrayList(); > > > public MyView(Context c) { > > super(c);
[android-developers] CircularLayout for HorizontalScrollView ?
I am writing an day planner that requires fling gestures to horizontally scroll to the next & previous day. Each day contains text and buttons and whatnot. I would like to use HorizontalScrollView for the scrolling. The problem is that a horizontal LinearLayout is bounded at creation. In other words, I have to decide how many days I want to be able to scroll through in advance. That will not work. What I would like is a CircularLayout to use as a child of HorizontalScrollView. The CircularLayout would have three frames: current, next & previous. Every time the CircularLayout is scrolled the three frames are re-rendered to give the impression of an infinite list of views. Is there any way to do this? is there another way that will give me what I want? Thanks, Clark -- 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: GL for Live Wallpaper?
The link that works for me is http://source.android.com I'm all set up. What branch should I submit this to? The reason I didn't just submit this is because one would think that nice integration would involve reuse instead of a copy of much of that code. If GLSurfaceView were refactored a bit, both it and GLEngine could share 99% of the code. I feel like that's stepping outside of my bounds as a contributor, though. I guess I'll submit this and suggest that GLSurfaceView be refactored to use a common code base with GLEngine. On Jan 15, 1:37 pm, Romain Guy wrote: > Hi, > > If you want to contribute to Android, please go tohttp://s.android.comand > follow the instructions. > > > > > > On Fri, Jan 15, 2010 at 10:53 AM, Robert Green wrote: > > Romain, > > > I adapted the code from GLSurfaceView into a GLWallpaperService/ > > GLEngine design and posted it here - > >http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpa... > > > I'd like for your team to review it and consider adding it (with > > whatever modifications the API designers deem necessary) to the next > > version of Android. > > > With it, I was able to code my app up using a standard GLSurfaceView/ > > Renderer and then just move the Renderer over to the new Live > > Wallpaper app without any problems. > > > It's currently being used in the app Live Waterpaper on the market. > > > On Jan 11, 9:17 pm, Robert Green wrote: > >> I guess I should have checked out the defaults first. Very good. > >> This will be a nice little break from the game programming. > > >> On Jan 11, 8:09 pm, Romain Guy wrote: > > >> > Yes you can, all defaultlivewallpapers except one are implemented in GL. > > >> > On Mon, Jan 11, 2010 at 4:59 PM, Robert Green > >> > wrote: > >> > > Can we use GL forlivewallpapers? I have a sweet idea for one that > >> > > won't hit the CPU/GPU too hard. > > >> > > -- > >> > > 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 > > >> > -- > >> > Romain Guy > >> > Android framework engineer > >> > romain...@android.com > > >> > Note: please don't send private questions to me, as I don't have time > >> > to provide private support. 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 > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. 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
Re: [android-developers] Re: GL for Live Wallpaper?
Hi, If you want to contribute to Android, please go to http://s.android.com and follow the instructions. On Fri, Jan 15, 2010 at 10:53 AM, Robert Green wrote: > Romain, > > I adapted the code from GLSurfaceView into a GLWallpaperService/ > GLEngine design and posted it here - > http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpapers > > I'd like for your team to review it and consider adding it (with > whatever modifications the API designers deem necessary) to the next > version of Android. > > With it, I was able to code my app up using a standard GLSurfaceView/ > Renderer and then just move the Renderer over to the new Live > Wallpaper app without any problems. > > It's currently being used in the app Live Waterpaper on the market. > > > On Jan 11, 9:17 pm, Robert Green wrote: >> I guess I should have checked out the defaults first. Very good. >> This will be a nice little break from the game programming. >> >> On Jan 11, 8:09 pm, Romain Guy wrote: >> >> >> >> > Yes you can, all defaultlivewallpapers except one are implemented in GL. >> >> > On Mon, Jan 11, 2010 at 4:59 PM, Robert Green wrote: >> > > Can we use GL forlivewallpapers? I have a sweet idea for one that >> > > won't hit the CPU/GPU too hard. >> >> > > -- >> > > 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 >> >> > -- >> > Romain Guy >> > Android framework engineer >> > romain...@android.com >> >> > Note: please don't send private questions to me, as I don't have time >> > to provide private support. 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 > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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: Motorola Droid (possible android) multi-touch bug and how to reproduce
Can you please explain which the issue is? On Jan 15, 1:09 pm, Mirmathrax wrote: > Multi-touch API is bugged (at least on Motorola Droid). Here is a > method to reproduce the error for analysis: > > 1) Create a new android project in Eclipse with the following fields: > > Project name: PointerLocation > Build target: Android 2.0.1 > Application Name: PointerLocation > Package Name: com.example.pointerlocation > Create Activity: PointerLocation > > 2) Copy the following code and paste this into the > PointerLocation.java file that is automatically created > > /* > * Copyright (C) 2007 The Android Open Source Project > * > * Licensed under the Apache License, Version 2.0 (the "License"); > * you may not use this file except in compliance with the License. > * You may obtain a copy of the License at > * > * http://www.apache.org/licenses/LICENSE-2.0 > * > * Unless required by applicable law or agreed to in writing, software > * distributed under the License is distributed on an "AS IS" BASIS, > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > implied. > * See the License for the specific language governing permissions and > * limitations under the License. > */ > > package com.example.pointerlocation; > > import android.app.Activity; > import android.content.Context; > import android.graphics.Canvas; > import android.graphics.Paint; > import android.graphics.Paint.FontMetricsInt; > import android.os.Bundle; > import android.util.Log; > import android.view.MotionEvent; > import android.view.ViewConfiguration; > import android.view.WindowManager; > import android.view.VelocityTracker; > import android.view.View; > > import java.util.ArrayList; > > /** > * Demonstrates wrapping a layout in a ScrollView. > * > */ > public class PointerLocation extends Activity { > @Override > protected void onCreate(Bundle icicle) { > super.onCreate(icicle); > setContentView(new MyView(this)); > > // Make the screen full bright for this activity. > WindowManager.LayoutParams lp = getWindow().getAttributes(); > lp.screenBrightness = 1.0f; > getWindow().setAttributes(lp); > } > > public static class PointerState { > private final ArrayList mXs = new ArrayList(); > private final ArrayList mYs = new ArrayList(); > private boolean mCurDown; > private int mCurX; > private int mCurY; > private float mCurPressure; > private float mCurSize; > private int mCurWidth; > private VelocityTracker mVelocity; > } > > public class MyView extends View { > private final ViewConfiguration mVC; > private final Paint mTextPaint; > private final Paint mTextBackgroundPaint; > private final Paint mTextLevelPaint; > private final Paint mPaint; > private final Paint mTargetPaint; > private final Paint mPathPaint; > private final FontMetricsInt mTextMetrics = new FontMetricsInt > (); > private int mHeaderBottom; > private boolean mCurDown; > private int mCurNumPointers; > private int mMaxNumPointers; > private final ArrayList mPointers > = new ArrayList(); > > public MyView(Context c) { > super(c); > mVC = ViewConfiguration.get(c); > mTextPaint = new Paint(); > mTextPaint.setAntiAlias(true); > mTextPaint.setTextSize(10 > * getResources().getDisplayMetrics().density); > mTextPaint.setARGB(255, 0, 0, 0); > mTextBackgroundPaint = new Paint(); > mTextBackgroundPaint.setAntiAlias(false); > mTextBackgroundPaint.setARGB(128, 255, 255, 255); > mTextLevelPaint = new Paint(); > mTextLevelPaint.setAntiAlias(false); > mTextLevelPaint.setARGB(192, 255, 0, 0); > mPaint = new Paint(); > mPaint.setAntiAlias(true); > mPaint.setARGB(255, 255, 255, 255); > mPaint.setStyle(Paint.Style.STROKE); > mPaint.setStrokeWidth(2); > mTargetPaint = new Paint(); > mTargetPaint.setAntiAlias(false); > mTargetPaint.setARGB(255, 0, 0, 192); > mPathPaint = new Paint(); > mPathPaint.setAntiAlias(false); > mPathPaint.setARGB(255, 0, 96, 255); > mPaint.setStyle(Paint.Style.STROKE); > mPaint.setStrokeWidth(1); > > PointerState ps = new PointerState(); > ps.mVelocity = VelocityTracker.obtain(); > mPointers.add(ps); > } > > @Override > protected void onMeasure(int widthMeasureSpec, int > heightMeasureSpec) { > super.onMeasure(widthMeasureSpec, heightMeasureSpec); > mTextPaint.getFontMetricsInt(mTextMetrics); > mHeaderBottom = -mTextMe
Re: [android-developers] Re: Creating custom button looks?
Ok so its shape will changed based on the image I assign to it? On Fri, Jan 15, 2010 at 2:11 PM, theSmith wrote: > use an imagebutton > > On Jan 15, 1:35 pm, Tommy wrote: > > Hey, > > > > Is there a way to create a custom button style? Say I want a round > > button do I simply take the pre-made round graphic and make it the > > background of the button or will the button still be a rectangle? > > -- > 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 > -- 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: Creating custom button looks?
use an imagebutton On Jan 15, 1:35 pm, Tommy wrote: > Hey, > > Is there a way to create a custom button style? Say I want a round > button do I simply take the pre-made round graphic and make it the > background of the button or will the button still be a rectangle? -- 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: READ_SMS permissions not working
Use content://mms-sms instead if you must but I would recommend you to stick with the official API. On Jan 15, 3:50 pm, "draf...@gmail.com" wrote: > Hi all, > > I keep getting the following error: > > 01-15 12:29:28.155: ERROR/DatabaseUtils(115): > java.lang.SecurityException: Permission Denial: reading > com.android.providers.telephony.SmsProvider uri content://sms from > pid=1004, uid=10054 requires android.permission.READ_SMS > > Even though I have the persmission READ_SMS in my manifest, I have > tried it both outside the application tags and inside, neither way > seems to work and the same error keeps popping up > > Here is my manifest: > > XML: > > http://schemas.android.com/apk/res/android"; > package="cicero.org" > android:versionCode="1" > android:versionName="1.0"> > > android:label="@string/app_name"> > > > android:name="android.intent.category.LAUNCHER" /> > > > android:label="@string/app_name"> > > > android:name="android.intent.category.LAUNCHER" /> > > > > android:authorities="cicero.org.CiceroContentProvider" > android:multiprocess="true" /> > > > > android:name="android.provider.Telephony.SMS_RECEIVED" /> > > > > > > > > > android:name="android.permission.ACCESS_WIFI_STATE"/> > android:name="android.permission.CHANGE_WIFI_STATE"/> > > android:name="android.permission.PROCESS_OUTGOING_CALLS"/> > > > > > > Anybody got any ideas if I'm missing something else or why the > permission is not getting recognized in the manifest? > > Here is my code that I am using: > > //in onCreate() > > String url = "content://sms/"; > Uri uri = Uri.parse(url); > getContentResolver().registerContentObserver(uri, true, new > MyContentObserver(handler)); > > //own class > class MyContentObserver extends ContentObserver { > > public MyContentObserver(Handler handler) { > > super(handler); > > } > > @Override public boolean deliverSelfNotifications() { > return false; > } > > @Override public void onChange(boolean arg0) { > super.onChange(arg0); > > Log.v("SMS", "Notification on SMS observer"); > > Message msg = new Message(); > msg.obj = "xx"; > > handler.sendMessage(msg); > > Uri uriSMSURI = Uri.parse("content://sms/inbox"); > Cursor cur = getContentResolver().query(uriSMSURI, null, null, > null, null); > cur.moveToNext(); > String protocol = cur.getString(cur.getColumnIndex > ("protocol")); > if(protocol == null) > Log.d("SMS", "SMS SEND"); > else > Log.d("SMS", "SMS RECIEVE"); > > } > > Anybody got any ideas if I'm missing something else or why the > permission is not getting recognized in the manifest or is it my code > that is doing something that is currently not allowed? -- 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: GL for Live Wallpaper?
Romain, I adapted the code from GLSurfaceView into a GLWallpaperService/ GLEngine design and posted it here - http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpapers I'd like for your team to review it and consider adding it (with whatever modifications the API designers deem necessary) to the next version of Android. With it, I was able to code my app up using a standard GLSurfaceView/ Renderer and then just move the Renderer over to the new Live Wallpaper app without any problems. It's currently being used in the app Live Waterpaper on the market. On Jan 11, 9:17 pm, Robert Green wrote: > I guess I should have checked out the defaults first. Very good. > This will be a nice little break from the game programming. > > On Jan 11, 8:09 pm, Romain Guy wrote: > > > > > Yes you can, all defaultlivewallpapers except one are implemented in GL. > > > On Mon, Jan 11, 2010 at 4:59 PM, Robert Green wrote: > > > Can we use GL forlivewallpapers? I have a sweet idea for one that > > > won't hit the CPU/GPU too hard. > > > > -- > > > 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 > > > -- > > Romain Guy > > Android framework engineer > > romain...@android.com > > > Note: please don't send private questions to me, as I don't have time > > to provide private support. 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: Sample or Tutorial in using OpenGL in a "Live Wallpaper" in SDK 2.1?
Here, I posted all of the code with instructions here - http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpapers Who's in charge of the wallpaper or GL apis? I think this is an easy design to use and would like to see the GLWallpaperService and GLEngine design added to Android 2.2. The code is done and working. Live Waterpaper (on the market) uses it. On Jan 15, 12:24 pm, Robert Green wrote: > Daniel, > > I adapted the GLSurfaceView design over to WallpaperService / Engine. > Let me get the resources together and I'll post it. > > On Jan 14, 4:18 pm, Kermee wrote: > > > > > Hi All, > > > I've been checking out the Canvas-based "CubeLiveWallpaper" which uses > > Paint to create a rotating 3D Cube and it works very well. I've been > > trying to get my head wrapped around how to move/port the > > GLSurfaceViewActivity/CubeRenderer/Cube from the API samples into a > > Wallpaper Service but I'm not having much luck. > > > Basically, I'd like to take the OpenGL cube from the API sample and > > turn it into a "Live Wallpaper." Does anyone have any ideas, samples, > > examples I could work off of or where to get started? > > > Thanks in advance! > > > Cheers, > > Daniel -- 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: Some application / market questions
I've wondered about this because of a variation on number 1. An application, App1, can become quite different application based on whether it has Content Bundle A,B,C even though the code, at least most of it, is the same. Would the Market allow either: 1. Application add-ons, that install into an existing applications data directory. Ie South Pacific Reptile addon pack for Base Application. (not actual names, but you get the idea). 2. Bundles of the same application with different content ie Base Application with South Pacific Reptile Content bundle. So far, I think the answer to number 1 is no. I also think the answer to number 2 is no based on the fact that an application is tied to a package name, so different applications require different code and would not differ by content. It is possible to do this within the application by using a backend server and configuring the application upon first time use. It really comes down to marketing. "Base Application" may not have the same marketing appeal as "Base Application with South Pacific Reptile Content Bundle". A Once they installed the application, it would be easier to educate them, but they may not try it in the first place if they don't know if their content is available. So far, though, I think neither 1 nor 2 will work, so I'll have to think of this differently. Nathan -- 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: Building with Ant
What version of the SDK are you using? In Android 2.0 and later, if you create or update your test project with "android create test- project" or "android update test-project", then you get a "run-tests" target in your build.xml, which sends tests to STDOUT. Or do you mean a specific coverage tool such as emma? On Jan 15, 2:38 am, Andreas Westin wrote: > Hi, > > I've encountered a problem, when I run coverage with ant in my test > project from another directory the report disappears, e.g. "ant -f > some/dir/tests/build.xml coverage". This seems to be the cause that I > cannot get reports when building through hudson. > > Anyone got any ideas ? > > Cheers > Andreas -- 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] Creating custom button looks?
Hey, Is there a way to create a custom button style? Say I want a round button do I simply take the pre-made round graphic and make it the background of the button or will the button still be a rectangle? -- 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: JSON string to Bean
A JSONObject basically is a bean. It's a pretty sophisticated Map. I do similar stuff to you, but I don't fool with Beans. I encapsulated my web service as a content provider. It communicates to me with JSONObjects, and JSONObjects packaging JSONArrays. I get the JSON string and parse it in the ContentProvider, then return a custom Cursor-derived object that holds onto the JSONObject, and its subcomponents, and does all the Cursor operations. So I never need to copy any data, like what you're doing with your beans in the example above. I looked at the code and am not sure it would be that helpful to you. If you want, I'll post it. On Jan 15, 3:19 am, Bert wrote: > I'm using HttpClient to get the response of a webservice (REST > servlet) which is a JSON string. > This string represents a JSONArray of type Map with key "mybeans". > I'd like to assemble my bean using the JSON string. > Usually I use net.sf.json json-lib and do something like this: > > String s = jsonStringIGotFromResponse; > Map bean = (Map) JSONObject.toBean( > JSONObject.fromObject(s), Map.class); > List myBeans = bean.get("mybeans"); > JSONArray jsonArray = JSONArray.fromObject(myBeans); > List myBeansToReturn = new ArrayList(); > for (int i = 0; i < jsonArray.size(); i++) { > JSONObject jsonObject = jsonArray.getJSONObject(i); > MyBean myBean = (MyBean)JSONObject.toBean(jsonObject, > MyBean.class); > myBeansToReturn.add(myBean); > > } > > I have no idea how to write something similar using the org.json > classes provided by the Android.jar > > Could anyone help me out with this please? -- 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: UI Design Book
The Designing Visual Interfaces book by Mullet and Sano has some really good reviews. It's available on Amazon, but it's pricey. Tufte is, of course, one of the legends in the field, but his work focuses on quantitative display and interface rather than general user interaction. He does, however, challenges assumptions. He's provocative, and that's what's needed. The Design of Everyday Things by Donald Norman is also provocative and informative. Don't assume that you don't know anything about UI design! You probably _do_ know bad design when you see it. Think about the common problems in bad design, and then try to avoid them. Do lots of mockups, and try them out on your friends. The Elk On Jan 15, 6:59 am, Mihai Fonoage wrote: > Thanks Sam for the useful info! > > Mihai Fonoage > > > > On Fri, Jan 15, 2010 at 7:13 AM, Sam Dutton wrote: > > Not sure what your background is, and neither of these is oriented > > specifically to mobile UI design, but both are good (I think the first > > is by far the most useful usability/UI book): > > > Don't Make Me Think! > > >http://www.amazon.com/Dont-Make-Me-Think-Usability/dp/0321344758/ref=... > > > Non-Designer's Design Book > > >http://www.amazon.com/Non-Designers-Design-Book-Robin-Williams/dp/032... > > > Also: > > > iPhone interface guidelines > > >http://developer.apple.com/iphone/library/documentation/UserExperienc... > > > ...and this seems to be coming along nicely: > > > Android Human Interface Guidelines > >www.binarysheep.com/AndroidCode/AndroidHIG.pdf > > > and Jakob Nielsen has his detractors, but this is sensible: > > >http://www.useit.com/alertbox/mobile-usability.html > > > Sam Dutton > > > On Jan 15, 1:39 am, Mihai Fonoage wrote: > > > Hi, > > > > I have asked this question on android-developers, but I had no > > > replies. Maybe I'll get lucky on this forum: > > > > Anybody know a good book on UI Design that is particularly geared > > > towards mobile phones, or that is general enough that the principles > > > described can be applied also to mobile phones? > > > > Thank you! > > > > Mihai Fonoage > > > -- > > 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 > cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- 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] Google Map retains the reference to the context of the enclosing activity?
Hello All, I am trying to get rid of the memory leaks in my application. The structure of the application is as follows: the main tab activity includes several other activities as its tabs, one of these child activities contains a map view to display a standard Google map. I noticed that after the application is restarted a copy of the main activity (and all its children) is created, so, of course, the memory is consumed very quickly. By memory profiling I eliminated several long-lived pointers to my activities. However, according to the profiling data, one last pointer is retained by the map with the following path to garbage collection: @ 0x4323c2f0 '- mParent@ 0x4324c788 '- context com.google.common.io.android.AndroidPersistentStore @ 0x43250180 '- store com.google.googlenav.map.MapFlashService @ 0x43263d70 '- flashService com.google.googlenav.map.MapService @ 0x43263158 |- , target java.lang.Thread @ 0x4326cf00 MapService Thread |- mapService com.google.googlenav.map.Map @ 0x43262538 So it seems that the map service is keeping the pointer to my activity in order to use its persistent store, and this pointer is not released after the activity, to which it refers, is destroyed. Is this the intended behavior of the map service? Also, is it possible to release this pointer somehow to allow the garbage collector to recycle the activity? Thanks in advance for your suggestions! --- Best regards, Katsiaryna -- 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: Sample or Tutorial in using OpenGL in a "Live Wallpaper" in SDK 2.1?
Daniel, I adapted the GLSurfaceView design over to WallpaperService / Engine. Let me get the resources together and I'll post it. On Jan 14, 4:18 pm, Kermee wrote: > Hi All, > > I've been checking out the Canvas-based "CubeLiveWallpaper" which uses > Paint to create a rotating 3D Cube and it works very well. I've been > trying to get my head wrapped around how to move/port the > GLSurfaceViewActivity/CubeRenderer/Cube from the API samples into a > Wallpaper Service but I'm not having much luck. > > Basically, I'd like to take the OpenGL cube from the API sample and > turn it into a "Live Wallpaper." Does anyone have any ideas, samples, > examples I could work off of or where to get started? > > Thanks in advance! > > Cheers, > Daniel -- 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 make two apks install at the same place
You might benefit from reading the article on Security & Permissions: http://developer.android.com/guide/topics/security/security.html Each Android application corresponds to a User in Unix. If you want to share files between different applications, you can do that. It is explained in that article. On Jan 15, 11:09 am, "guiha...@gmail.com" wrote: > Hi, > > I have one apk that installs at folder data/data/totalcross.android. > Now i have another application that should install the files in that > folder. How can i create a apk that does this? > > thanks in advance > > guich > > ps: dear moderator, if this question should not belong to this forum, > please move it to the proper forum INSTEAD OF DELETING IT. 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
Re: [android-developers] how to make two apks install at the same place
guiha...@gmail.com wrote: > I have one apk that installs at folder data/data/totalcross.android. > Now i have another application that should install the files in that > folder. Could you explain a bit more what you mean by this? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.1 Available! -- 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: process has died after exiting app
Also I am implementing LocationListener() and I am updating my location by requestLocationUpdates(...), so if my process gets killed then I won't receive more location updates untill the alarm manager fires the service again. Is this correct? How can I deal with this? Thanks, Alberto -- 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 make two apks install at the same place
Hi, I have one apk that installs at folder data/data/totalcross.android. Now i have another application that should install the files in that folder. How can i create a apk that does this? thanks in advance guich ps: dear moderator, if this question should not belong to this forum, please move it to the proper forum INSTEAD OF DELETING IT. 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: RadialGradient question
I appreciate the reply, however I don't think I understand, I have 2 colors I set the positions to {.75f,.99f} but it looks exactly the same as if I just leave it as null. I have tried experimenting with some other values too but it always looks the same to me. Here is a code snippet positions = new float[2]; positions[1] = .75f; positions[0] = .99f; grad = new RadialGradient(circleX, circleY, circleR, colors, positions, TileMode.CLAMP); if(values[2] <= values[0]/2)Pallet.getInstance().white.setShader (grad); canvas.drawCircle(circleX, circleY, circleR - 3, Pallet.getInstance ().white); On Jan 15, 10:56 am, Romain Guy wrote: > It does matter, the positions are numbers between 0 and 1 indicating > where each color stop should be in the gradient (0 == center, 1 == > outside.) > > > > > > On Fri, Jan 15, 2010 at 1:33 AM, schwiz wrote: > > Ok I was making a stupid mistake and not calling new before I set the > > floats in the array, so my forceclose is fixed, however it doesn't > > matter what numbers I put the in the array the gradient always looks > > the same. How can I give the inner color more weight? > > Thanks! > > Nathan > > > On Jan 15, 3:25 am, schwiz wrote: > >> I am having problems with the constructor RadialGradient (float x, > >> float y, float radius, int[] colors, float[] positions, > >> Shader.TileMode tile) If I don't pass null into positions I get a > >> force close the logcat spits out a bunch of stuff about frame layout. > >> So my question is what exactly do they mean when they say positions is > >> the relative of each color in the array. The end result I want is for > >> the inner color to have more weight than the outer color. > >> Thanks for your time! > >> Nathan > > > -- > > 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 > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. 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] JSON string to Bean
I'm using HttpClient to get the response of a webservice (REST servlet) which is a JSON string. This string represents a JSONArray of type Map with key "mybeans". I'd like to assemble my bean using the JSON string. Usually I use net.sf.json json-lib and do something like this: String s = jsonStringIGotFromResponse; Map bean = (Map) JSONObject.toBean( JSONObject.fromObject(s), Map.class); List myBeans = bean.get("mybeans"); JSONArray jsonArray = JSONArray.fromObject(myBeans); List myBeansToReturn = new ArrayList(); for (int i = 0; i < jsonArray.size(); i++) { JSONObject jsonObject = jsonArray.getJSONObject(i); MyBean myBean = (MyBean)JSONObject.toBean(jsonObject, MyBean.class); myBeansToReturn.add(myBean); } I have no idea how to write something similar using the org.json classes provided by the Android.jar Could anyone help me out with this please? -- 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: Battery Life vs Features
I think it depends on a few things, namely how long or often will the user use your app? If they will only use it for a few minutes at a time once a day you can keep all features active that are required for the app. On Jan 14, 3:27 pm, Acchao wrote: > I'm curious as to how many developers take into consideration battery > life before implementing a feature. > Say you could implement a really nifty feature using the camera, but > you know that would drain the phone's battery faster on an > nonessential ability, what do you do? Do you completely disregard > battery consumption because that really just isn't your concern/ it's > just too cool? Or do you go for a more simple variation, that would > give the user longer battery life? -- 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] sending around 1000 messages in batch using SMS API
Hi, I have G1. I write python scripts using ASE. I have to send around 1000 SMSes using SMS API in ASE. I wonder if G1 will be able to hold up-to that? moreover, how much pause (time gap/ sleep) should I give between each message sent. Some of my colleges think that its a crazy idea. I should go for GSM modem. What do you think, is this feasible enough? Can G1 enough capable? I dont have dev version. -- 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] JOB OFFER--developing the Android SMS application
HI ALL I am looking for the SMS solution in Android cell phone to have the following functions (but not limited), would any one like to help me to develop this application? Payment can discuss. 1. can send and receive the SMS with encryption 2. can automatically store the receiving SMS in Security SD card (in flash memory area) -This security SD card is the micro SD card type which embed a smart card.-we will offer this. 3. via the PIN (key password) ( for the smart card) to access the special SMS platform and decryption and encryption (using the private key stored in this SD card -smart card area ) the SMS to see or to send. 4. can setup or receive different key value for different SMS which sent by different person. It would need the one who is well know the PKI, smart card (7816), java and Android 1.5, 1.6, and 2.01 . we will pay for this application. if you are interesting in this job, please contact us directly. Jack Hsu, m092942...@gmail.com -- 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] Building with Ant
Hi, I've encountered a problem, when I run coverage with ant in my test project from another directory the report disappears, e.g. "ant -f some/dir/tests/build.xml coverage". This seems to be the cause that I cannot get reports when building through hudson. Anyone got any ideas ? Cheers Andreas -- 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] Audio Source Input for MIC Recording
I found there is a mismatch of define constant in these 2 files for the source input: AudioRecord.h and MediaRecorder.java In native code (AudioRecord.h), the values are... 44 enum input_source { 45 DEFAULT_INPUT =-1, 46 MIC_INPUT = 0, 47 VOICE_UPLINK_INPUT = 1, 48 VOICE_DOWNLINK_INPUT = 2, 49 VOICE_CALL_INPUT = 3, 50 NUM_INPUT_SOURCES 51 }; http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=include/media/AudioRecord.h;h=13e51eea1eb478517f677df0642b4d2221571192;hb=donut#l38 In Java MediaRecorder AudioSource, the values are... 120 public final class AudioSource { 121 /* Do not change these values without updating their counterparts 122* in include/media/mediarecorder.h! 123*/ 124 private AudioSource() {} 125 public static final int DEFAULT = 0; 126 /** Microphone audio source */ 127 public static final int MIC = 1; 128 129 /** Voice call uplink (Tx) audio source */ 130 public static final int VOICE_UPLINK = 2; 131 132 /** Voice call downlink (Rx) audio source */ 133 public static final int VOICE_DOWNLINK = 3; 134 135 /** Voice call uplink + downlink audio source */ 136 public static final int VOICE_CALL = 4; 137 } http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=media/java/android/media/MediaRecorder.java;h=be4b489eb08683750fc2149184ab073e8528e6d4;hb=donut#l120 I found a similar thread with this issue too: http://groups.google.com.tw/group/android-developers/browse_thread/thread/01b53ce66b43810c/a578913b17a6bcca?#a578913b17a6bcca I need to refer to the define AudioRecord::MIC_INPUT at the source AudioHardwareALSA.cpp to determine which is the input source and set the audio route accordingly for MIC recording, but this will cause a wrong route because of this mismatch of constant define at the 2 source files. Is it a bug by the Google? 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] ListView touch mode click on child views
Hello, This is driving me nuts. I have a ListView that uses an extended ArrayAdapter. Each row "cell.xml" contains a RelativeLayout and within a few TextViews and ImageViews. I have declared in the list xml definition a selector to change the row background: @drawable/list_selector_background It works. But only if the click (touch mode) not done over any of the elements contained in the RelativeLayout. Any click outside this elements will (correctly) trigger the selector. I have tried using android:focusable="false" on each child view without avail. What do I need to do to be able to trigger the selector, no matter where the user clicks? 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] moving emails from trash to inbox
is there a way to move emails that have been deleted back to inbox? -- 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: Extending contacts
I agree with Jens. What's the point of new API if nobody (except for Android SDK Developers) knows how it works? On 11 Sty, 15:49, Jens wrote: > This needs to be addressed... The whole ContactsContract API is > starting to look like a perfect lesson in how not to publish an API. -- 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] Ringtone from the RingtoneManager always returns null
Hey all, I have this piece of code to enumerate the ringtones on the system: RingtoneManager rm = new RingtoneManager(this); Cursor c = rm.getCursor(); c.moveToFirst(); while(!c.isAfterLast()){ Uri geller = rm.getRingtoneUri(c.getPosition()); Log.d(TAG,"path: "+geller); Ringtone rt = RingtoneManager.getRingtone(this, geller); Log.d(TAG,"rt: "+rt); Log.d(TAG, "Ringtone: "+rm.getRingtone(c.getPosition())); c.moveToNext(); } c.deactivate(); But the RingtoneManager always returns null. Here's some log-output: 01-15 13:48:51.414: DEBUG/CallReceiverActivity(315): path: content://media/internal/audio/media/1 01-15 13:48:51.503: DEBUG/MediaPlayer(315): Couldn't open file on client side, trying server side 01-15 13:48:51.613: ERROR/MediaPlayerService(31): Couldn't open fd for content://media/internal/audio/media/1 01-15 13:48:51.613: ERROR/MediaPlayer(315): Unable to to create media player 01-15 13:48:51.623: ERROR/RingtoneManager(315): Failed to open ringtone content://media/internal/audio/media/1 01-15 13:48:51.623: DEBUG/CallReceiverActivity(315): rt: null 01-15 13:48:51.764: DEBUG/MediaPlayer(315): Couldn't open file on client side, trying server side 01-15 13:48:51.834: ERROR/MediaPlayerService(31): Couldn't open fd for content://media/internal/audio/media/1 01-15 13:48:51.845: ERROR/MediaPlayer(315): Unable to to create media player 01-15 13:48:51.845: ERROR/RingtoneManager(315): Failed to open ringtone content://media/internal/audio/media/1 01-15 13:48:51.845: DEBUG/CallReceiverActivity(315): Ringtone: null As you can see, the MediaPlayer is unable to open the file. Should I have extra permissions? Is anything else preventing me from accessing the file? Would appreciate help :) Regards, Daan -- 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] Profiling Bitmap Memory
Hello, My game - Tower Raiders - is continually floating fairly close to running out of bitmap memory... Unfortunately, I haven't found good information on profiling bitmap memory usage so that I can optimize / make informed decisions / add new content if it allows / etc. I'm aware that bitmap memory is not heap memory, as it's allocated natively... But that it is accounted for somehow in the VM and influences garbage collection. Maybe it's an oversimplification of how bitmap memory works - but I'd like to find a tool etc or some way of determining I as the game is running right now, there are no more than X bytes of usable bitmap memory remaining. So, if anyone has any advice etc that would help me in these respects I would greatly like to hear about a workflow for this... Thanks so much! GG -- 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 get device details
you can get the device details by using android.os.Build sample code String model = android.os.Build.MODEL; String device = android.os.Build.DEVICE; String version = android.os.Build.VERSION.SDK; Log.v(TAG, "model ="+model); Log.v(TAG, "device ="+device); Log.v(TAG, "version ="+version); On Dec 9 2009, 2:01 am, saikiran n wrote: > Hi > I want to write some application in that i want to print device details like > manufacturer,model ,userid etc.. > Is this possible in android? > If so what are the apis which gives this information -- 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] AvoidXferMode
Hi, Could somebody give me an example of how to use AvoidXferMode on a paint? What I'm trying to do is to replace a color by using canvas.drawPaint() and an AvoidXferMode with the color that I want to replace and the operation TARGET. I can't get this working, maybe I'm understanding the workings of xfermodes wrong, so an example would be very much appreciated. Hugo -- 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 2d graphics help
Hi, i created a 2d game in java that runs as an applet, and i am now trying to translate this over to the android. As the android doesnt used paint() methods, i am thinking that i will have to import images of the game instead of drawing it, but i cannot find out how to do this. Anybody know how to add images to the folder and call them in the app? Also, how can i call a screen repaint() in the android? Thanks, A fairly new Developer -- 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
Re: [android-developers] Re: horizentally center aligned
What happens when the orientation changes? It looks fine to me, should stay center aligned. On Fri, Jan 15, 2010 at 10:33 AM, Kumar Bibek wrote: > This is ok. Doesn't this work?? > > Kumar Bibek > > On Jan 15, 2:19 pm, Jags wrote: > > i have this layout > > > > > android:orientation="horizontal" > > android:layout_height="wrap_content" > > android:layout_width="fill_parent" > > android:layout_gravity="center_horizontal"> > > android:id="@+id/ > > viewEvtsDone" > > android:layout_width="wrap_content" > android:text="Delete"> > > android:id="@+id/ > > viewEvtsCancel" > > android:layout_width="wrap_content" > android:text="Cancel"> > > > > > > I want these 2 buttons always appear centr aligned in the > > linearlayout. I dont want to use hard coded values (as it is upsetting > > the positions when orientation changes) > > > > How can i make it possible ? or is it not possible ? > > > > regards > > -- > 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 > -- 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] Showing the map view before the direction list on android device.
Hi, I've been trying to start the google maps directions from my application. Set intent with uri="http://maps.google.com/maps? saddr=33.589684,130.42336&daddr=33.590073,130.4236". The defaut setting of the map with direction is to show the direction list before the map view. But I'd like to show the map view before showing the list. Is there any parameter like "?view=map" or "?mode=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] How to unlock HTC magic retail to dev phone?
Hi, I am a new android developer in China. Unfortunately, dev phone is not available in here. And it's almost impossible and hazardous to get one from US. However I can buy retail version of the phone and I would prefer HTC magic with 288 MB RAM version (for more RAM and memory, so that I can upgrade to android 2.0) Now, my question is- how can I unlock this device so that it works like a dev phone? Such as, I want to flash, install/upgrade/downgrade android OS, install modified version of android OS, bla bla bla. 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] play video bypass surfaceflinger
Dears, When we play a movie, the movie will decode by opencore. for example, a 720p video will decode to 1280*720 image size. then this frame will throw to surfaceflinger. and the sufracflinger will change the size to display size then throw the image to copybit then show on display. But, we don't want the 720p image to be cut as display size. we want the 720p still is 720p then could be show on display, even the screen will be chaos. How could we do by this case? Thanks for your big help. The way we want is open core(1280*720) -> surfaceflinger(1280*720) -> copybit(1280*720) - > Display (1280*720) -- 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] Sample or Tutorial in using OpenGL in a "Live Wallpaper" in SDK 2.1?
Hi All, I've been checking out the Canvas-based "CubeLiveWallpaper" which uses Paint to create a rotating 3D Cube and it works very well. I've been trying to get my head wrapped around how to move/port the GLSurfaceViewActivity/CubeRenderer/Cube from the API samples into a Wallpaper Service but I'm not having much luck. Basically, I'd like to take the OpenGL cube from the API sample and turn it into a "Live Wallpaper." Does anyone have any ideas, samples, examples I could work off of or where to get started? Thanks in advance! Cheers, Daniel -- 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: PVMFFailure when using MediaPlayer for radio streams
I tried doing this in 1.6 but still gave me the Prepare Failed 0x1 error along with the PVMFFailure in the log. Has there been any solution to this one developed yet? On Dec 14 2009, 10:13 pm, YaushiIizuka wrote: > Hi. > > String url = "http://your.url";; > MediaPlayer mp = new MediaPlayer(); > mp.setDataSource(url); > mp.setAudioStreamType(AudioManager.STREAM_MUSIC); > mp.prepare(); > mp.start(); > > On 10月23日, 午後3:28, dede wrote: > > > Hi, > > In 1.6,I also try to play stream through setDataSource(http:// > > xxx/.mp3), > > but also it return IOException: prepare failed, status=0x1. > > If set the url into windows media player, it can play correctly, I > > wanna know your problem whether be resolved? > > If yes, can u tell me the solution,thanks very much. > > > On 10月7日, 上午5时41分, iwhoyt wrote: > > > > In 1.5 I was able to stream an mp3 over http by passing the url to > > > setDataSource(). However I started gettingPVMFFailures in 1.6. For > > > me the issue was the Content-Type http header. If the header was set > > > correctly (Content-Type: audio/mpeg), the stream played. Otherwise if > > > failed during PLAYER_INIT. > > > > On Sep 2, 2:32 am, siliconeagle wrote: > > > > > Also the URl is a http (MP3) stream URL - as opposed tioo other opost > > > > where RTSP is being tried. It looks like it should just work. Has > > > > anyone else got streaming working via a streaming URL? > > > > > On Sep 1, 1:24 pm, siliconeagle wrote: > > > > > > I am trying to build streaming radio into my app, which works fines > > > > > streaming files over the internet, but when i try to use a shoutcast > > > > > url in get the error below, which from the soruce code looks liek the > > > > > mediaPlayer is looking for the duration in the header. Does anyone > > > > > know if shoutcast urls will work withthe default media player? Or do i > > > > > have to download chunks into a ping-pong buffer sor something? The url > > > > > has no porblems downloading via the browser. > > > > > > the error is:- > > > > > > 09-01 11:53:25.634 E/MediaPlayer(16972): stop called in state 1 > > > > > 09-01 11:53:27.324 D/BatteryWidget(15623): Updating Views > > > > > 09-01 11:53:30.445 E/PlayerDriver( 35): Command PLAYER_INIT > > > > > completed with an error or infoPVMFFailure > > > > > 09-01 11:53:30.445 E/MediaPlayer(16972): error (1, -1) > > > > > 09-01 11:53:30.504 I/NotificationService( 55): enqueueToast > > > > > pkg=net.robmunro.mypod > > > > > callback=android.app.ITransientNotification$Stub > > > > > $pr...@4323b8f8 duration=1000 > > > > > 09-01 11:53:30.514 W/System.err(16972): java.io.IOException: Prepare > > > > > failed.: status=0x1 > > > > > 09-01 11:53:30.644 W/System.err(16972): at > > > > > android.media.MediaPlayer.prepare(Native Method) > > > > > 09-01 11:53:30.644 W/System.err(16972): at > > > > > net.robmunro.mypod.util.MediaPlayerWrapper.playMedia > > > > > (MediaPlayerWrapper.java:111) > > > > > > the code i use is:- > > > > > try { > > > > > mPlayer.stop(); > > > > > mPlayer.reset();} catch (Exception e) { > > > > > > e.printStackTrace();} > > > > > > this.source=source; > > > > > if (source.equals(Globals.SOURCE_LOCAL)) { > > > > > mPlayer.setDataSource(f.path); > > > > > buffered = 0;} else if > > > > > (source.equals(Globals.SOURCE_STREAM)) { > > > > > > mPlayer.setDataSource(f.remoteUrl); > > > > > buffered = 100;} > > > > > > mPlayer.prepare(); > > > > > mPlayer.start(); -- 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 with ADP sensors
nop. problem still here... i try to reflash, after reflash all work for some time(about 1-2 hours), but then i got same error. as if the driver disappears from the system. On 28 дек 2009, 23:24, v4lkyrie wrote: > U found a solution? I got the same issue too. As i can see there is a > problem on kernel launch: > > 5.837158] AKM8976A compass driver: init > <3>[ 5.837646] msm_i2c msm_i2c.0: error, status c8 > <3>[ 5.837768] msm_i2c msm_i2c.0: Error during data xfer (-5) > <3>[ 5.837829] AKM8976 AKI2C_TxData: transfer error > <4>[ 5.837921] akm8976: probe of 0-001c failed with error -5 > > Drivers are not created on dev folder and compass software doesn't > work. -- 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
Re: [android-developers] Re: Buy one Nexus One in Argentina
Hola Moto, Todo puede ser posible en nuestra querisima Argentina. Desde hace un tiempo el milestone se comercializa en Argentina, pero estoy interesado en algunos características que tiene Nexus One, Si conoces alguna forma de acercarlo hasta aca, por favor no dudes en avisarme. Saludos desde Argentina! On Thu, Jan 14, 2010 at 6:52 PM, Moto wrote: > Hola Mario, > > Seguro te lo roban en el camino a la argentina... :P > > La posta es de que alguien te lo compre y te lo lleve o comprar > milestone que creo que ya esta a la venta por lo menos en BA.. > > Moto > > > On Jan 13, 11:10 pm, Mario Chacon wrote: > > Hello > > > > I am really want to buy a Nexus One, but I do not know how to send it to > > Argentina, Does anybody know how to do it, please!!!?? > > > > thank you > > salu2... > > masch... > > -- > 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 > -- 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: Alarm Manager Query
I'll look into that, thanks for your input. On Jan 15, 5:09 pm, Mark Murphy wrote: > JimmyHoffa wrote: > > Thanks Mark, I didnt realise that they need re-esablishing so that's > > good to know. > > > I'm concerned whether the alarms can be removed individually, as in > > the SDK it appears that they are removed by calling remove and passing > > in an Intent, which suggests, if one alarm is removed, they all are > > and therefore would all need to be re-established. > > Use unique Intents, then. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Android Programming Tutorials_ Version 1.0 In Print! -- 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
Re: [android-developers] Re: Alarm Manager Query
JimmyHoffa wrote: > Thanks Mark, I didnt realise that they need re-esablishing so that's > good to know. > > I'm concerned whether the alarms can be removed individually, as in > the SDK it appears that they are removed by calling remove and passing > in an Intent, which suggests, if one alarm is removed, they all are > and therefore would all need to be re-established. Use unique Intents, then. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! -- 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: Motorola Droid (possible android) multi-touch bug and how to reproduce
Have you created on official issue for it at http://b.android.com/ ? On Jan 15, 11:09 am, Mirmathrax wrote: > Multi-touch API is bugged (at least on Motorola Droid). Here is a > method to reproduce the error for analysis: > > 1) Create a new android project in Eclipse with the following fields: > > Project name: PointerLocation > Build target: Android 2.0.1 > Application Name: PointerLocation > Package Name: com.example.pointerlocation > Create Activity: PointerLocation > > 2) Copy the following code and paste this into the > PointerLocation.java file that is automatically created > > /* > * Copyright (C) 2007 The Android Open Source Project > * > * Licensed under the Apache License, Version 2.0 (the "License"); > * you may not use this file except in compliance with the License. > * You may obtain a copy of the License at > * > * http://www.apache.org/licenses/LICENSE-2.0 > * > * Unless required by applicable law or agreed to in writing, software > * distributed under the License is distributed on an "AS IS" BASIS, > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > implied. > * See the License for the specific language governing permissions and > * limitations under the License. > */ > > package com.example.pointerlocation; > > import android.app.Activity; > import android.content.Context; > import android.graphics.Canvas; > import android.graphics.Paint; > import android.graphics.Paint.FontMetricsInt; > import android.os.Bundle; > import android.util.Log; > import android.view.MotionEvent; > import android.view.ViewConfiguration; > import android.view.WindowManager; > import android.view.VelocityTracker; > import android.view.View; > > import java.util.ArrayList; > > /** > * Demonstrates wrapping a layout in a ScrollView. > * > */ > public class PointerLocation extends Activity { > @Override > protected void onCreate(Bundle icicle) { > super.onCreate(icicle); > setContentView(new MyView(this)); > > // Make the screen full bright for this activity. > WindowManager.LayoutParams lp = getWindow().getAttributes(); > lp.screenBrightness = 1.0f; > getWindow().setAttributes(lp); > } > > public static class PointerState { > private final ArrayList mXs = new ArrayList(); > private final ArrayList mYs = new ArrayList(); > private boolean mCurDown; > private int mCurX; > private int mCurY; > private float mCurPressure; > private float mCurSize; > private int mCurWidth; > private VelocityTracker mVelocity; > } > > public class MyView extends View { > private final ViewConfiguration mVC; > private final Paint mTextPaint; > private final Paint mTextBackgroundPaint; > private final Paint mTextLevelPaint; > private final Paint mPaint; > private final Paint mTargetPaint; > private final Paint mPathPaint; > private final FontMetricsInt mTextMetrics = new FontMetricsInt > (); > private int mHeaderBottom; > private boolean mCurDown; > private int mCurNumPointers; > private int mMaxNumPointers; > private final ArrayList mPointers > = new ArrayList(); > > public MyView(Context c) { > super(c); > mVC = ViewConfiguration.get(c); > mTextPaint = new Paint(); > mTextPaint.setAntiAlias(true); > mTextPaint.setTextSize(10 > * getResources().getDisplayMetrics().density); > mTextPaint.setARGB(255, 0, 0, 0); > mTextBackgroundPaint = new Paint(); > mTextBackgroundPaint.setAntiAlias(false); > mTextBackgroundPaint.setARGB(128, 255, 255, 255); > mTextLevelPaint = new Paint(); > mTextLevelPaint.setAntiAlias(false); > mTextLevelPaint.setARGB(192, 255, 0, 0); > mPaint = new Paint(); > mPaint.setAntiAlias(true); > mPaint.setARGB(255, 255, 255, 255); > mPaint.setStyle(Paint.Style.STROKE); > mPaint.setStrokeWidth(2); > mTargetPaint = new Paint(); > mTargetPaint.setAntiAlias(false); > mTargetPaint.setARGB(255, 0, 0, 192); > mPathPaint = new Paint(); > mPathPaint.setAntiAlias(false); > mPathPaint.setARGB(255, 0, 96, 255); > mPaint.setStyle(Paint.Style.STROKE); > mPaint.setStrokeWidth(1); > > PointerState ps = new PointerState(); > ps.mVelocity = VelocityTracker.obtain(); > mPointers.add(ps); > } > > @Override > protected void onMeasure(int widthMeasureSpec, int > heightMeasureSpec) { > super.onMeasure(widthMeasureSpec, heightMeasureSpec); > mTextPaint.getFontMetricsInt(mTextMetrics); >
[android-developers] Initialization Order? ContentProvider vs. Application
Sometimes less than 1 promille of the database upgrades of my app fail. This in itself would be annoying, but what is worse that I don't get to know about it .. usually. I installed an exception handler in my Application, but it seems that the ContentProvider get initialized before the Application and the ContentProvider needs the db upgrade that subsequently fails and gets not reported, because the Application has not been initialized yet. Any idea if there is a fixed order in which what is started? -- 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
Re: [android-developers] Re: Restoring focus to ListView
> I wonder if this behavior should be defeatable. No. No. No. No. > Currently, if the user navigates then clicks the ListView using the > trackball and then hits the back button from the pop-up Activity > without ever touching the screen, the system behaves as if there had > been a touch. In my opinion, it's a bit unintuitive. Then you are probably doing something something wrong. This should not happen. > > > On Jan 15, 2:41 pm, Romain Guy wrote: >> This is the normal and intended behavior. Focus appears only when the >> user uses the trackball/dpad. When the user touches the screen, the >> focus disappears. >> >> >> >> >> >> On Thu, Jan 14, 2010 at 10:33 PM, Zsolt Vasvari wrote: >> > I have a ListView in a ListActivity that starts another Activity when >> > a list item is clicked. The 2nd Activity is a Theme.Dialog, but I >> > don't think that matters for this purpose. >> >> > I would like the visible focus restored to the ListView when I close >> > the 2nd Activity. Currently,when I come back, I have to hit the >> > trackball once to give focus to the ListView and then hit it again to >> > move around in the list. >> >> > I tried the obvious getListView().requestFocus() from onResume(). I >> > also tried saving the current focused view using getListView >> > ().findFocus() before starting the 2nd Activity, but neither of these >> > methods work. >> >> > I am using API Level 7 in the Emulator. >> >> > Can anyone help? >> >> > Thanks, >> > Zsolt Vasvari >> >> > -- >> > 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 >> >> -- >> Romain Guy >> Android framework engineer >> romain...@android.com >> >> Note: please don't send private questions to me, as I don't have time >> to provide private support. All such questions should be posted on >> public forums, where I and others can see and answer them- Hide quoted text - >> >> - Show quoted text - > > -- > 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 > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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
Re: [android-developers] Re: RadialGradient question
It does matter, the positions are numbers between 0 and 1 indicating where each color stop should be in the gradient (0 == center, 1 == outside.) On Fri, Jan 15, 2010 at 1:33 AM, schwiz wrote: > Ok I was making a stupid mistake and not calling new before I set the > floats in the array, so my forceclose is fixed, however it doesn't > matter what numbers I put the in the array the gradient always looks > the same. How can I give the inner color more weight? > Thanks! > Nathan > > On Jan 15, 3:25 am, schwiz wrote: >> I am having problems with the constructor RadialGradient (float x, >> float y, float radius, int[] colors, float[] positions, >> Shader.TileMode tile) If I don't pass null into positions I get a >> force close the logcat spits out a bunch of stuff about frame layout. >> So my question is what exactly do they mean when they say positions is >> the relative of each color in the array. The end result I want is for >> the inner color to have more weight than the outer color. >> Thanks for your time! >> Nathan > > -- > 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 > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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: Camera recorder fail to prepare on Android 2.0.1
I have the same error by recording audio on android 2.1 On 22 Dez. 2009, 04:43, Tuấn wrote: > Hi all, > > I have a problem with Android 2.0.2. > My app use camera to record video. It works well on Android 2.0. But > when I run it on Android 2.0.1, my app forced close when start > recording. > The logcat show that: > > 12-22 10:17:34.185: ERROR/audio_input(31): unsupported parameter: x- > pvmf/media-input-node/cap-config-interface;valtype=key_specific_value > 12-22 10:17:34.195: ERROR/audio_input(31): VerifyAndSetParameter > failed > 12-22 10:17:34.225: ERROR/CameraInput(31): Unsupported parameter(x- > pvmf/media-input-node/cap-config-interface;valtype=key_specific_value) > 12-22 10:17:34.225: ERROR/CameraInput(31): VerifiyAndSetParameter > failed on parameter #0 > 12-22 10:17:34.275: WARN/AuthorDriver(31): Use default video fps range > [5 20] > 12-22 10:17:34.275: WARN/AuthorDriver(31): Use default video width > range [176 352] > 12-22 10:17:34.275: WARN/AuthorDriver(31): Use default video height > range [144 288] > 12-22 10:17:34.286: WARN/AuthorDriver(31): Video encoding bit rate is > set to 32 bps > 12-22 10:17:34.286: WARN/AuthorDriver(31): Use default video bps range > [192000 42] > 12-22 10:17:34.425: WARN/KeyCharacterMap(245): No keyboard for id 0 > 12-22 10:17:34.425: WARN/KeyCharacterMap(245): Using default keymap: / > system/usr/keychars/qwerty.kcm.bin > 12-22 10:17:34.625: DEBUG/CamcorderPreview(245): surfaceCreated > 12-22 10:17:34.735: INFO/MediaRecorderJNI(245): prepare: > surface=0x324d80 (id=1) > 12-22 10:17:34.775: ERROR/PVOMXEncNode(31): PVMFOMXEncNode- > Audio_AMRNB::DoPrepare(): Got Component OMX.PV.amrencnb handle > 12-22 10:17:34.805: ERROR/PVOMXEncNode(31): PVMFOMXEncNode- > Video_M4V::DoPrepare(): Cannot get component OMX.PV.mpeg4enc handle, > try another component if available > 12-22 10:17:34.815: DEBUG/CameraService(31): CameraService::connect E > (pid 31, client 0x2c7b4) > 12-22 10:17:34.815: DEBUG/CameraService(31): Client::Client E (pid 31) > 12-22 10:17:34.825: DEBUG/CameraHardwareStub(31): initHeapLocked: > preview size=176x144 > 12-22 10:17:34.845: ERROR/MediaPlayerService(31): error: -2 > 12-22 10:17:34.845: ERROR/MediaPlayer(31): Unable to to create media > player > 12-22 10:17:34.845: ERROR/CameraService(31): Failed to load > CameraService sounds. > 12-22 10:17:34.845: ERROR/MediaPlayerService(31): error: -2 > 12-22 10:17:34.845: ERROR/MediaPlayer(31): Unable to to create media > player > 12-22 10:17:34.845: ERROR/CameraService(31): Failed to load > CameraService sounds. > 12-22 10:17:34.845: DEBUG/CameraService(31): Client::Client X (pid 31) > 12-22 10:17:34.845: DEBUG/CameraService(31): CameraService::connect X > 12-22 10:17:34.855: DEBUG/CameraService(31): setPreviewDisplay > (0x15cd0) (pid 31) > 12-22 10:17:34.855: DEBUG/CameraInput(31): Intended mFrameWidth=320, > mFrameHeight=240 > 12-22 10:17:34.855: DEBUG/CameraService(31): getParameters(picture- > format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame- > rate=15;preview-size=176x144) > 12-22 10:17:34.855: DEBUG/CameraService(31): setParameters(picture- > format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame- > rate=20;preview-size=320x240) > 12-22 10:17:34.855: DEBUG/CameraHardwareStub(31): initHeapLocked: > preview size=320x240 > 12-22 10:17:34.865: DEBUG/CameraService(31): getParameters(picture- > format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame- > rate=20;preview-size=320x240) > 12-22 10:17:34.865: DEBUG/CameraInput(31): Actual mFrameWidth=320, > mFrameHeight=240 > 12-22 10:17:34.865: DEBUG/CameraService(31): startPreview (pid 31) > 12-22 10:17:34.865: DEBUG/CameraService(31): startCameraMode(0) (pid > 31) > 12-22 10:17:34.865: DEBUG/CameraService(31): startPreviewMode (pid 31) > 12-22 10:17:34.875: ERROR/AuthorDriver(31): Command 13 completed with > error -17 > 12-22 10:17:34.875: ERROR/MediaRecorder(245): prepare failed: -17 > 12-22 10:17:34.875: ERROR/IOException(245): java.io.IOException: > prepare failed. > 12-22 10:17:35.185: ERROR/SurfaceFlinger(59): layer 0x4d1a58, > texture=3, using format 224, which is not supported by the GL > 12-22 10:17:35.205: ERROR/SurfaceFlinger(59): GL error 0x0501 > > And the exception is: > > 12-22 10:17:39.295: ERROR/AndroidRuntime(245): Uncaught handler: > thread main exiting due to uncaught exception > 12-22 10:17:39.325: ERROR/SurfaceFlinger(59): layer 0x4d1a58, > texture=3, using format 87, which is not supported by the GL > 12-22 10:17:39.375: ERROR/AndroidRuntime(245): > java.lang.IllegalStateException > 12-22 10:17:39.375: ERROR/AndroidRuntime(245): at > android.media.MediaRecorder.start(Native Method) > 12-22 10:17:39.375: ERROR/AndroidRuntime(245): at > com.agilemobile.im.android1.CamcorderActivity.onOptionsItemSelected > (CamcorderActivity.java:139) > 12-22 10:17:39.375: ERROR/AndroidRuntime(245): at > android.app.Activity.onMenuItemSelected(Activity.java:2170) > 12-22 10:17:39.375:
[android-developers] Re: Nexus One - Stalled when downloading Apps from Market using Wi-Fi
Let me clarify, I haven't activate the data plan on T-Mobile yet, therefore, I was trying to use Wi-Fi to download apps. Actually, found out it's something w/ my old Wi-Fi router, not the Nexus One. After I switch to a newer router, Nexus One works fine, i.e. no problem in downloading apps. BTW, Nexus One not supporting Wi-Fi N is an disappointment. Is it an hardware or software issue to support Wi-Fi N? -- 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] Opening main.xml causes Eclipse to crash out
When I open /layout/main.xml in a newly created Android Projects in Eclipse Galileo, it crashes Eclipse completely, i.e. Eclipse will just close and exit. This only happens with the Android Projects created using SDK 1.6, & 2.1. SDK 1.5 & 2.0 are fine. Anybody has any clue? P.S. All the other xmls in the /res are fine, only the main.xml has problem. And when I compared the main.xml created by default in SDK 1.6 & 2.1 as opposed to 1.5 & 2.0, they are the same content. So, it's something to do w/ SDK parsing and trying to display the layout. -- 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: Alarm Manager Query
Thanks Mark, I didnt realise that they need re-esablishing so that's good to know. I'm concerned whether the alarms can be removed individually, as in the SDK it appears that they are removed by calling remove and passing in an Intent, which suggests, if one alarm is removed, they all are and therefore would all need to be re-established. On Jan 15, 3:50 pm, Mark Murphy wrote: > JimmyHoffa wrote: > > Hi All, > > > I'm new to using the alarm manager and was wondering if the following > > is possible.. > > > I am creating a Android 2 Application which uses a database to store > > 'appointments' , date/who/reason etc.. > > > What I want to do when viewing an appointment is to allow the user to > > select "Remind Me " + Spinner allowing selection of 1 hour, 1 day > > etc... "before appointment". Then when the appointment is saved, I > > setup an alarm intent which fires off a notification remind the user. > > > I think that is pretty straightforward to do, but where I'm confused > > is when the user is viewing the appointment, if an alarm is already > > set I want to show that there is already an alarm set and allow it to > > be modified or removed. > > > Any help here greatly appreciated, > > You'll need to track that yourself in your database, for two reasons: > > 1. To provide the UI that you describe above > > 2. To handle the case where the phone is rebooted, since AlarmManager > alarms do not persist past a reboot > > Reason #2 typically requires you to implement a boot-time > BroadcastReceiver, so you can get control and re-establish your alarms > from your database. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ > Version 1.3 Available! -- 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] Motorola Droid (possible android) multi-touch bug and how to reproduce
Multi-touch API is bugged (at least on Motorola Droid). Here is a method to reproduce the error for analysis: 1) Create a new android project in Eclipse with the following fields: Project name: PointerLocation Build target: Android 2.0.1 Application Name: PointerLocation Package Name:com.example.pointerlocation Create Activity: PointerLocation 2) Copy the following code and paste this into the PointerLocation.java file that is automatically created /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.example.pointerlocation; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.FontMetricsInt; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.ViewConfiguration; import android.view.WindowManager; import android.view.VelocityTracker; import android.view.View; import java.util.ArrayList; /** * Demonstrates wrapping a layout in a ScrollView. * */ public class PointerLocation extends Activity { @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(new MyView(this)); // Make the screen full bright for this activity. WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 1.0f; getWindow().setAttributes(lp); } public static class PointerState { private final ArrayList mXs = new ArrayList(); private final ArrayList mYs = new ArrayList(); private boolean mCurDown; private int mCurX; private int mCurY; private float mCurPressure; private float mCurSize; private int mCurWidth; private VelocityTracker mVelocity; } public class MyView extends View { private final ViewConfiguration mVC; private final Paint mTextPaint; private final Paint mTextBackgroundPaint; private final Paint mTextLevelPaint; private final Paint mPaint; private final Paint mTargetPaint; private final Paint mPathPaint; private final FontMetricsInt mTextMetrics = new FontMetricsInt (); private int mHeaderBottom; private boolean mCurDown; private int mCurNumPointers; private int mMaxNumPointers; private final ArrayList mPointers = new ArrayList(); public MyView(Context c) { super(c); mVC = ViewConfiguration.get(c); mTextPaint = new Paint(); mTextPaint.setAntiAlias(true); mTextPaint.setTextSize(10 * getResources().getDisplayMetrics().density); mTextPaint.setARGB(255, 0, 0, 0); mTextBackgroundPaint = new Paint(); mTextBackgroundPaint.setAntiAlias(false); mTextBackgroundPaint.setARGB(128, 255, 255, 255); mTextLevelPaint = new Paint(); mTextLevelPaint.setAntiAlias(false); mTextLevelPaint.setARGB(192, 255, 0, 0); mPaint = new Paint(); mPaint.setAntiAlias(true); mPaint.setARGB(255, 255, 255, 255); mPaint.setStyle(Paint.Style.STROKE); mPaint.setStrokeWidth(2); mTargetPaint = new Paint(); mTargetPaint.setAntiAlias(false); mTargetPaint.setARGB(255, 0, 0, 192); mPathPaint = new Paint(); mPathPaint.setAntiAlias(false); mPathPaint.setARGB(255, 0, 96, 255); mPaint.setStyle(Paint.Style.STROKE); mPaint.setStrokeWidth(1); PointerState ps = new PointerState(); ps.mVelocity = VelocityTracker.obtain(); mPointers.add(ps); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); mTextPaint.getFontMetricsInt(mTextMetrics); mHeaderBottom = -mTextMetrics.ascent+mTextMetrics.descent +2; Log.i("foo", "Metrics: ascent=" + mTextMetrics.ascent + " descent=" + mTextMetrics.descent + " leading=" + mTextMetrics.leading + " top=" + mTextMetrics.top + " bottom=" + mTextMetrics.bottom);
[android-developers] changing Locale (updateConfiguration(...)) on Milestone makes the fonts smaller
Hi all, There is a "bug" when changing the Locale on the Motorola Milestone. The font gets smaller each time the updateConfiguration(...) is called. See here an article on this and the fix: http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx BR, Adrian Vintu -- 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
Re: [android-developers] Re: Force locale for an application, bug in 2.0?
There is a "bug" when changing the Locale on the Motorola Milestone. The font gets smaller each time the updateConfiguration(...) is called. See here an article on this and the fix: http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx BR, Adrian Vintu On Sun, Dec 27, 2009 at 11:13 PM, Evgeny V wrote: > Yes. I added to each activity too after more tests! > > > On Sun, Dec 27, 2009 at 9:47 PM, shomari wrote: > >> I've been looking for a long time at a solution to this problem (ever >> since 2.0 was released). >> I can confirm that by adding "locale" to configChanges fixes the >> problem. >> >> My exact xml entry is: >> android:configChanges="orientation|keyboardHidden|locale" >> >> I've actually added the "locale" parameter to each of my Manfiest >> activities (to be safe), however, it did seem to fix the problem just >> by adding into the Launcher as mentioned before. >> >> So relieved to see this fixed :) >> >> S. >> >> On Nov 12, 2:31 pm, monmonja wrote: >> > Add android:configChanges="locale" to your activity nodes on the >> > manifest file >> > > > android:label="@string/app_name" /> >> > >> > Update the post onhttp:// >> almondmendoza.com/2009/01/28/force-localize-an-application-on-... >> > :) >> > >> > monmonja >> > >> > On Nov 10, 3:43 pm, Kaj Bjurman wrote: >> > >> > > I don't think that the process is crashing, at least not in the >> > > emulator since I can see all these logging messages: >> > >> > > 11-07 23:11:33.849: WARN/UsageStats(61): Something wrong here, didn't >> > > expect "mypackagename" to be resumed >> > >> > > There are lots of them. It looks like it gets stuck in some kind of >> > > loop. >> > >> > > Btw. It used to work, and I think it is great that it used to work. >> > > There are lots of people in the world who speak more than one >> > > language, where none of the languages are English, or they might >> > > understand English but have two other languages as preferred >> > > languages. >> > >> > > Setting the OS locale to Swedish would make the application display >> > > the English resources if Swedish isn't available, but an application >> > > that I have installed might support e.g .Spanish, and that could be >> > > preferred over English. >> > >> > > On 9 Nov, 22:15, Dianne Hackborn wrote: >> > >> > > > No, changing the application's locale like this is not supported, >> and will >> > > > not entirely work. It shouldn't cause an activity to restart >> though... >> > > > actually I can't imagine how this would cause an activity to >> restart, since >> > > > this method is much lower-level than the activity. Maybe the >> process is >> > > > crashing for some reason in this call? >> > >> > > > 2009/11/9 Bahadır Yağan >> > >> > > > > Does anyone know if this method of changing Locale just for one >> application >> > > > > is a supported functionality? >> > >> > > > > -- >> > > > > Bahadır Yağan >> > >> > > > > On Mon, Nov 9, 2009 at 12:18 PM, ydario wrote: >> > >> > > > >> Hi, >> > >> > > > >> found the same problem here. Even this kind of code fails: >> > >> > > > >>Configuration config = >> context.getResources().getConfiguration(); >> > > > >>config.locale = newLocale; >> > > > >> context.getResources().updateConfiguration(config, >> > > > >> >> context.getResources().getDisplayMetrics()); >> > >> > > > >> where newLocale is a properly created locale instance. >> > >> > > > >> The strange thing is that I can get the above code to work when >> my >> > > > >> wizard library is running; the library code does not implement a >> new >> > > > >> activity, but simply uses the existing one. I compared code, but >> I >> > > > >> cannot find other real differences. >> > >> > > > >> And I'm getting the resume problem also when I start an activity >> from >> > > > >> a non-GUI class, this worked from 1.1 to 1.6 :-( >> > >> > > > >> Yuri >> > >> > > > >> -- >> > > > >> 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> cr...@googlegroups.com> >> > > > >> For more options, visit this group at >> > > > >>http://groups.google.com/group/android-developers?hl=en >> > >> > > > > -- >> > > > > 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> cr...@googlegroups.com> >> > > > > For more options, visit this group at >> > > > >http://groups.google.com/group/android-developers?hl=en >> > >> > > > -- >> > > > Dianne Hackborn >> > > > Android framework engineer >> > > > hack...@android.com >> > >> > > > Note: please
[android-developers] Re: Invalidate and a card flip
Thanks for the reply Beth. I'll take a look at the ImageSwitcher. Since posting this, I found a workaround that seems to work. Basically I do the face up flip, and then send a message to the activity. The message handler does the face down flip like this. Here is some of the code: private OnClickListener myCardImageListener = new OnClickListener () { public void onClick(View v) { ... CardImageView iv_1 = deck[CardNum]; if (iv_1.CardState == CARD_STATE_UP) { iv_1.DoCardPress(); WaitSeconds(1); handler.sendMessage(handler.obtainMessage (MESSAGE_HIDE)); } ... } } Handler handler=new Handler() { public void handleMessage(Message msg) { ... if (msg.what == MESSAGE_HIDE) { CardImageView iv_1 = deck[CardNum]; iv_1.DoCardPress(); } ... } }; On Jan 13, 12:20 pm, Beth wrote: > Since you have exactly two images, face down and face up, you might > try out an ImageSwitcher object. Toggle the image with show next and > skip the validation business. > > On Jan 13, 7:00 am,GreggReno wrote: > > > I am working on a card game, and using a custom ImageView for the > > cards. I have an OnClickListener that handles the presses on the > > cards. > > > What I want to happen is in some cases is: > > - User presses a face down card > > - Card displays face up > > - Wait 1 second > > - Card displays face down > > > Within the OnClickListener , I draw the face up card, call invalidate, > > use Thread.currentThread().sleep(1000), draw the card face down, and > > call invalidate again. What happens is you never see the card face up > > - just face down. > > > From what I understand from prior threads, this is expected behavior > > as invalidate won't re-draw immediately, so you only wind up seeing > > that last thing drawn. The view is probably being re-drawn after > > exiting the OnClickListener. > > > So, any suggestions for accomplishing this using a different method? > > > Thanks, > > -Gregg > > -- 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] Market behavior questions ..
As the subject says .. #1 I can see the update available icon on the notification bar - what is the time interval used by the market/vending app to check if there is any update availability ? #2 If I buy an app and then reset the device - Will market allow me to install the app which I paid for already without paying for the it again ? #3 If I have brought an app on a particular device with an google account, and log into another device with the same account, I cannot see the apps I installed (both free/paid) under my-downloads tab, Is this expected behavior ? -Dan -- 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: Preparing for Droid OpenGL issues
I apparently live under a rock: Float.SIZE => "Constant for the number of bits needed to represent a float in two's complement form." Taken from Android API (Java 1.5+ API same). Sheepish. On Jan 15, 10:04 am, shaun wrote: > Sorry. I need to be clear that the Float.SIZE usage I mentioned was > in my code not the Android OpenGL code. > > On Jan 15, 10:00 am, shaun wrote: > > > > > Be aware that Android 2.0.1 and 2.1 both return bits instead of bytes > > for Float.SIZE. The expected return value is 4, but 32 is returned > > for some reason! > > > This was used in a couple of places where allocation was involved and > > fatal errors ensued. Just so happens the errors were in OpenGL part > > of the code. > > > On Jan 15, 1:14 am, markusn82 wrote: > > > > Thanks for all the replies guys. > > > > Philip, I've already taken most of your points into consideration > > > during my development (though there were a few things new to me like > > > using Bitmap.recycle). > > > > Jeremy, what kind of VBO issues were encountered. My game uses VBO > > > heavily so I'd like to know if I can work around the issues before > > > switching all my VBOs over to standard vertex arrays. > > > > Also, have any of you tried using Perfecto Mobile or Device Anywhere? > > > Have you guys had success with either of them for testing on the Droid/ > > > Nexus One? > > > > On Jan 14, 6:34 pm, Philip wrote: > > > > > My experience so far: > > > > - Create your textures in power of two and make sure you scale and > > > > clip them to the right ratio when you draw. > > > > - Don't stick to RBGA_ when you can do ALPHA_8 (text rendering) > > > > - Do whatever you can do in OnSurfaceCreated before you get called in > > > > OnSurfaceDraw > > > > - Avoid the GL11 context cast. Some things won't work e.g glColor4ub > > > > will compile but not work. > > > > - Balance your calls of enable and disable for each component draw > > > > your call into your scene graph. > > > > - Pre-allocate your nio buffers > > > > - Use DrawElements but for the simplest shapes of one vertice > > > > - Test on as many devices as you can. Just don't settle for the > > > > emulator e.g. non power of twos work on emulator but not on the phone. > > > > - If you can then use the on demand drawing. > > > > - Use the trick of putting a wait in the onTouchEvent call for 20ms > > > > and a notify in your onDraw to reduce the deluge of motion events you > > > > have to process. You can bypass onTouchEven and use a lower call to > > > > save some cycles as well. > > > > - Use texture atlas as much as you can e.g. to draw score and text or > > > > animations > > > > - Disable the fancy rendering options (DITHER_TEST etc...) Unless you > > > > crave a realistic rendering on textures. > > > > - If you draw in 2D, then disable the DEPTH_TEST > > > > - Don't forget the Bitmap.recycle() call when you are done binding > > > > your textures. > > > > - Avoid Object creation destruction (PointF Rect) in your rendering > > > > routines. GC calls will slow down your frame rate. > > > > - Preload your textures extensively. don't wait until you draw at the > > > > last minute to bind your textures. The lag is noticable if you do so > > > > it's better at app start up time.- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- 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
Re: [android-developers] Alarm Manager Query
JimmyHoffa wrote: > Hi All, > > I'm new to using the alarm manager and was wondering if the following > is possible.. > > I am creating a Android 2 Application which uses a database to store > 'appointments' , date/who/reason etc.. > > What I want to do when viewing an appointment is to allow the user to > select "Remind Me " + Spinner allowing selection of 1 hour, 1 day > etc... "before appointment". Then when the appointment is saved, I > setup an alarm intent which fires off a notification remind the user. > > I think that is pretty straightforward to do, but where I'm confused > is when the user is viewing the appointment, if an alarm is already > set I want to show that there is already an alarm set and allow it to > be modified or removed. > > Any help here greatly appreciated, You'll need to track that yourself in your database, for two reasons: 1. To provide the UI that you describe above 2. To handle the case where the phone is rebooted, since AlarmManager alarms do not persist past a reboot Reason #2 typically requires you to implement a boot-time BroadcastReceiver, so you can get control and re-establish your alarms from your database. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- 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] Alarm Manager Query
Hi All, I'm new to using the alarm manager and was wondering if the following is possible.. I am creating a Android 2 Application which uses a database to store 'appointments' , date/who/reason etc.. What I want to do when viewing an appointment is to allow the user to select "Remind Me " + Spinner allowing selection of 1 hour, 1 day etc... "before appointment". Then when the appointment is saved, I setup an alarm intent which fires off a notification remind the user. I think that is pretty straightforward to do, but where I'm confused is when the user is viewing the appointment, if an alarm is already set I want to show that there is already an alarm set and allow it to be modified or removed. Any help here greatly appreciated, Thankyou -- 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
Re: [android-developers] Re: which folders can we safely access in a droid device?
guiha...@gmail.com wrote: > So, in a production device, we can't access any folder besides the > data/data/package? Not even create a folder at the root? Correct. You can manipulate files in /data/data/your.package.here and on the "external storage" (exact path varies by device, but typically /sdcard). On a production device, SDK applications have no access to modify files elsewhere, and have very limited ability to even read files elsewhere. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- 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