[android-developers] provider media.MediaProvider is in dying process android.process.media
Dear, My app going to die because some of my users meeting the following problem : 11-07 01:04:02.008 I/ActivityManager( 70): Killing app because provider com.android.providers.media.MediaProvider is in dying process android.process.media Do you know what's to do to avoid that ? -- 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: Make two buttons the same width?
What about placing them into table layout? then you shall be fine with fill_parent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: emulator's WVGA854 memory size?
On Nov 9, 3:26 am, Romain Guy romain...@google.com wrote: Devices running in WVGA (at least, devices in WVGA and with a high density display) offer more memory to each process. Droid for instance allows up to 24 MB per process. Note that, in the emulator at least, this only applies to 2.0 AVDs. Instances running 1.6 - even WVGA instances - are still stuck at 16MB, as far as I can see. String -- 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] Need help : JSR s supported in Android
oh thanks ..but any idea on what all JSRs supported in android? please do share this info -Latha On Mon, Nov 9, 2009 at 12:11 PM, Romain Guy romain...@google.com wrote: JSR 226 is not supported. On Sun, Nov 8, 2009 at 10:39 PM, Latha Shivanna latha...@gmail.com wrote: Hii All What are all the JSR s supported in Android? Is JSR 226 supported? Can anybody please let me know this. Thanks a lot Latha -- 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 -- 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] Full version invisible in the market on Droid
Two days ago, we uploaded a new version of the full version of our app (SpecTrek) to the market. Improvements include support for QVGA and WVGA screens. We changed nothing in the Developer Console (Language: en_US, All locations selected). Now we have received the first complaint of a Droid user who cannot find the full version on the market. The light version (that has not been upgraded yet) can be found ok. The good news is that the light version seems to work on the Droid, something we couldn't really test (except for some simulator runs on 2.0). So presumably we did something stupid in the upgraded version. I can only assume it must be something in the manifest, as it seems unreasonably to assume the market software looks at anything else in the apk. The only change in the manifest (besides versionCode/versionName) is the following: supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / There is also a uses-sdk entry, but that didn't change: uses-sdk android:minSdkVersion=3 / - Is there anyone with a Droid that can verify the full version is not available to them (searching for 'SpecTrek' should find both the light and full versions)? - Can anyone shed light on why the full version is invisible on the Droid market? -- 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] Is Component activation is different from Component running?
Hi all, activities, services, and broadcast receivers — are activated by asynchronous messages called intents. Like activities and the other components, services run in the main thread of the application process. So that they won't block other components or the user interface, they often spawn another thread for time-consuming tasks (like music playback). See Processes and Threads, later. Does it mean running is different from activation??. All components (except ContentProviders) are being activated asynchronously but still running in application's main thread. Can any one help?? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is your Android app on Archos Market ?
Slander and disparage doesn't have to use f-words and s-words. alsutton has coordinated constant Archos bashing on the archosfans forum since September 2nd until about October 15th when he first announced he was seeking legal advice. All things from: - Recommending that people not buy the Archos 5 Internet Tablet in countless posts - Advertising for alternatives to Archos 5 Internet Tablet in countless posts - Claiming to have inside knowledge from Google engineers that Google Marketplace and Google Apps would never be available on Archos 5 Internet Tablet in countless posts - Plenty of other trolling posting controversial, inflammatory, irrelevant and off-topic messages I'm looking forward to see the emails. I am sure alsutton was asking an unreasonably large payment to be the exclusive marketplace on the device. Probably his dream, to finally have an opportunity make some money on his marketplace project. On Nov 8, 4:15 pm, JP joachim.pfeif...@gmail.com wrote: On Nov 7, 11:25 pm, Fred Grott(Android Expert,http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: Charbox your slander definition seems to be somewhat unique and different. Agreed. His coordinate system for slander and disparage could use some calibration, it seems. -- 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] Camera crashes when taking pictures
Hi. im having a trouble getting Android's camera to work. i started CameraActivity Intent from MapActivity (when i start camera activity, i unresgister all listeners used in map activity), and when i call takepicture method, it just exits camera activity and return to map activity dumping strange msg showing below. the camera sounds off the shutter-sound and it crashes camera activity. sometimes it succeeds, and sometimes doesn't. it happens when im using docomo's HT-03A, 1.6sdk is installed. anyone having same trouble as i do? 11-09 17:54:18.997: DEBUG/CameraService(51): takePicture (pid 19242) 11-09 17:54:19.079: INFO/QualcommCameraHardware(51): deinitPreview E 11-09 17:54:19.079: INFO/QualcommCameraHardware(51): deinitPreview X 11-09 17:54:19.079: DEBUG/QualcommCameraHardware(51): frame_thread X 11-09 17:54:19.117: DEBUG/QualcommCameraHardware(51): snapshot_thread E 11-09 17:54:19.127: DEBUG/CameraService(51): startPreview (pid 19242) 11-09 17:54:19.127: DEBUG/CameraService(51): startCameraMode(0) (pid 19242) 11-09 17:54:19.127: DEBUG/CameraService(51): startPreviewMode (pid 19242) 11-09 17:54:19.127: INFO/QualcommCameraHardware(51): initPreview E: preview size=480x320 11-09 17:54:19.407: DEBUG/CameraService(51): postShutter 11-09 17:54:19.497: WARN/AudioFlinger(51): write blocked for 94 msecs 11-09 17:54:19.507: DEBUG/dalvikvm(19242): GC freed 2064 objects / 138896 bytes in 270ms 11-09 17:54:19.557: DEBUG/CameraService(51): postRaw 11-09 17:54:19.587: DEBUG/QualcommCameraHardware(51): snapshot_thread X 11-09 17:54:19.637: DEBUG/QualcommCameraHardware(51): frame_thread E 11-09 17:54:19.977: DEBUG/CameraService(51): postJpeg 11-09 17:54:19.977: DEBUG/Camera-JNI(19242): dataCallback(8, 0x1fd3f8) 11-09 17:54:20.007: INFO/mm-camera-jpeg(51): freeing 21 jpeg memory leaks 11-09 17:54:20.137: INFO/DEBUG(32481): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 11-09 17:54:20.137: INFO/DEBUG(32481): Build fingerprint: 'docomo/zaku/ sapphire/sapphire:1.6/DRD08/16431:user/ota-rel-keys,release-keys' 11-09 17:54:20.137: INFO/DEBUG(32481): pid: 19242, tid: 19248 android.mapoverlay 11-09 17:54:20.137: INFO/DEBUG(32481): signal 11 (SIGSEGV), fault addr 98054b41 11-09 17:54:20.137: INFO/DEBUG(32481): r0 r1 032c r2 98054b21 r3 4674bdb4 11-09 17:54:20.137: INFO/DEBUG(32481): r4 0003 r5 4000c238 r6 46755000 r7 ad084aa8 11-09 17:54:20.137: INFO/DEBUG(32481): r8 ad083e1c r9 a9d223d9 10 4000c238 fp ad083e1c 11-09 17:54:20.137: INFO/DEBUG(32481): ip 4000c1e8 sp 44497ac0 lr 0003 pc ad01622c cpsr 6010 11-09 17:54:21.157: INFO/DEBUG(32481): #00 pc 0001622c / system/lib/libdvm.so 11-09 17:54:21.157: INFO/DEBUG(32481): #01 pc 00016cb4 / system/lib/libdvm.so 11-09 17:54:21.167: INFO/DEBUG(32481): #02 pc 000153e4 / system/lib/libdvm.so 11-09 17:54:21.167: INFO/DEBUG(32481): #03 pc 0001583c / system/lib/libdvm.so 11-09 17:54:21.167: INFO/DEBUG(32481): #04 pc 000159a4 / system/lib/libdvm.so 11-09 17:54:21.177: INFO/DEBUG(32481): #05 pc 0005a90c / system/lib/libdvm.so 11-09 17:54:21.177: INFO/DEBUG(32481): #06 pc 0005aa2c / system/lib/libdvm.so 11-09 17:54:21.177: INFO/DEBUG(32481): #07 pc 0003f672 / system/lib/libdvm.so 11-09 17:54:21.197: INFO/DEBUG(32481): #08 pc 00051226 / system/lib/libandroid_runtime.so 11-09 17:54:21.197: INFO/DEBUG(32481): #09 pc 000514f2 / system/lib/libandroid_runtime.so 11-09 17:54:21.207: INFO/DEBUG(32481): #10 pc 00018cf2 / system/lib/libui.so 11-09 17:54:21.207: INFO/DEBUG(32481): #11 pc 0001e934 / system/lib/libui.so 11-09 17:54:21.217: INFO/DEBUG(32481): #12 pc 0002c55c / system/lib/libutils.so 11-09 17:54:21.227: INFO/DEBUG(32481): #13 pc 00030004 / system/lib/libutils.so 11-09 17:54:21.237: INFO/DEBUG(32481): #14 pc 000301da / system/lib/libutils.so 11-09 17:54:21.237: INFO/DEBUG(32481): #15 pc 00034e80 / system/lib/libutils.so 11-09 17:54:21.237: INFO/DEBUG(32481): #16 pc 0002a08c / system/lib/libutils.so 11-09 17:54:21.247: INFO/DEBUG(32481): #17 pc 0002bc62 / system/lib/libandroid_runtime.so 11-09 17:54:21.247: INFO/DEBUG(32481): #18 pc 00029e6c / system/lib/libutils.so 11-09 17:54:21.247: INFO/DEBUG(32481): #19 pc f940 / system/lib/libc.so 11-09 17:54:21.247: INFO/DEBUG(32481): #20 pc f4b4 / system/lib/libc.so 11-09 17:54:21.257: INFO/DEBUG(32481): stack: 11-09 17:54:21.257: INFO/DEBUG(32481): 44497a80 43218000 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 11-09 17:54:21.257: INFO/DEBUG(32481): 44497a84 43217fff 11-09 17:54:21.257: INFO/DEBUG(32481): 44497a88 46504000 /dev/ ashmem/dalvik-heap-markstack (deleted) 11-09 17:54:21.257: INFO/DEBUG(32481): 44497a8c 0002 11-09 17:54:21.257: INFO/DEBUG(32481): 44497a90 44497a98 11-09 17:54:21.257: INFO/DEBUG(32481): 44497a94
[android-developers] Droid / Android 2.0 OpenGL Configuration Issue
Greets, As with a lot of folks doing OpenGL ES dev it's really a test on device situation. I'm really trying to get out the Typhon API (http:// typhon.egrsoftware.com/) which is an open source platform for real time / game development working on the Droid. It also provides the basis for a series of OpenGL ES tutorials for Android available that will be incrementally released starting this week with or without support for the Droid: http://android-tactelus.com/ Of course I'd like to support Android 2.0 / Motorola Droid, but alas a problem without a clear answer is occurring when I use EGL/GL directly not using Google/Android provided GLSurfaceView. The following is the basic setup code and works just fine on all previous Android versions including 1.6 on the G1 and Ion, but it fails on the Droid. Note context.getConfigSpec() returns a standard configuration: new int[] { EGL10.EGL_RED_SIZE, 5, EGL10.EGL_GREEN_SIZE, 6, EGL10.EGL_BLUE_SIZE, 5, EGL10.EGL_NONE } Now for the EGL/GL setup code... // - egl = (EGL10) EGLContext.getEGL(); glDisplay = egl.eglGetDisplay(EGL11.EGL_DEFAULT_DISPLAY); int[] version = new int[2]; egl.eglInitialize(glDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] numValue = new int[1]; egl.eglChooseConfig(glDisplay, context.getConfigSpec(), configs, 1, numValue); glConfig = configs[0]; // Everything is fine here and a proper config is selected and I have verified it by printing it out using // eglGetConfigAttrib; this code is not in this sample though. glContext = egl.eglCreateContext(glDisplay, glConfig, EGL11.EGL_NO_CONTEXT, null); // The following call fails with the following error: // android_ws.c:312: ValidateWindowConfigFormat: Window and Config pixel formats // do not match // // android_ws.c:315: ValidateWindowConfigFormat: Window format was 0 (4), Config // format was 2 // glGetError() also reports EGL_BAD_MATCH which is defined as follows: // EGL_BAD_MATCH is generated if the attributes of native_window do not correspond to config or if config // does not support rendering to windows (the EGL_SURFACE_TYPE attribute does not contain // EGL_WINDOW_BIT). // I find it really strange that eglChooseConfig is returning a valid config that exhibits the behavior described. // I have tried many permutations of the configs returned by eglChooseConfig and the attribute specs away // from 565; IE 888 which is also returned as a valid config via eglChooseConfig and all result in the above // failure. glSurface = egl.eglCreateWindowSurface(glDisplay, glConfig, holder, null); // The following call also fails because the call above failed. The glGetError() return is also // EGL_BAD_MATCH egl.eglMakeCurrent(glDisplay, glSurface, glSurface, glContext); gl = (GL11) (glContext.getGL()); // - I'm not an OpenGL newbie and am a little frustrated with the above especially since it works on all other Android devices and OS versions I've tested on. Hopefully this is the only blocking issue for me getting GL code to run on the Droid and Typhon released this week with Android 2.0 / Droid support, but it sure is frustrating especially since I've exhausted permutations of attribute array and the configs returned by eglChooseConfig. One would think if a config is returned by eglChooseConfig that it is valid for the given display. If anyone else has some raw EGL/GL code for creating a context that is working on the Droid I'd be glad to take a look. I'm gathering David/ Hexage sets things up this way from seeing other messages from him. David or anyone else have an idea? This is going into an open source API, so any contributions are welcome. Right now it looks like I'll be shipping out Typhon without Android 2.0 / Droid support which is a bummer as my schedule for this week does not account for debugging Android 2.0 issues. -- 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] Archos gives away Android WVGA 4.8 Tablets for 1€ to developers in France
At least, that's what is being talked about in French at http://www.frandroid.com/6546/1e-larchos-5-it-cest-possible/ The concept being that for developers submitting at least one approved application to http://appslib.com, that developper can get a 228€ rebate voucher code to his email and order the Archos 5 Internet Tablet with Android and 8GB storage then from Archos website. I do not know if Archos has some kinds of manual verification other than to check that the application works fine on 800x480 (and through HDMI 1280x720) screens, perhaps Archos also checks that the app is original and not automatically generated by non-coders using some kinds of Android app generators where you input an RSS feed and it automatically outputs a duplicated app that simply displays the contents from that RSS feed. I think this is a great idea for Archos, to try to get the attention from 1000 of the best Android developers, to submit their apps to http://appslib.com because Android developers are often the most influential early-adopters. So if 1000 Android developers are impressed by the Archos 5 Internet Tablet, it may inspire them to develop more apps for WVGA medium density since Archos is the first and only 4.8 WVGA medium density Android product on the market. Also, having more apps, and having more developers enthusiastic about higher resolution Android development, will encourage more consumers to look into it. For now, only free apps are supported in http://appslib.com , but later paid apps will work as well. My suggestion would be for Marketplaces in general to offer a Premium subscription plan for around $3 per month or something like that, to offer full access to installing and updating Premium applications. This way developers can decide if they want to sell their apps or include them in the premium access plan, and as well if they want to offer a purchase rebate for premium access subscribers. This way, the developers of the most useful and most used apps would automatically get paid more from the premium subscription plan. Probably that many more users won't mind paying that unlimited premium access, pirates will probably not care to pirate anymore since premium access subscription would be so affordable and this way more money would be distributed to developers. This premium Android apps plan is though just my idea, I don't know if it has been suggested before. -- 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: Working with the new ContactContracts API
Hi Dmitri, Thanks for you info regarding the new API - it was r4eally helpful. I'm trying to use it to create new contact but I constantly have problems. Do you know if this is the final version of the API ? Or maybe it's still not finish thus that's why we don't get any real documentation or code examples for it ? On Nov 3, 2:24 am, Dmitri Plotnikov dplotni...@google.com wrote: You can always delegate contact creation to the Contacts app using the ContactsContract.Intents.UI.Insert intent with extras. This will show the edit UI. If you want to explicitly create the contact by yourself, that's now a bit tricky because Android 2.0 support multiple accounts. First of all, you will need to figure out which account you want to create the contact in. Get a list of all available accounts from AccountManager: AccountManager am = AccountManager.get(getContext()); Account[] accounts = am.getAccounts(); Also, get a list of all sync adapters and find the ones that support contacts: SyncAdapterType[] syncs = ContentResolver.getContentService().getSyncAdapterTypes(); for (SyncAdapterType sync : syncs) { if (ContactsContract.AUTHORITY.equals(sync.authority) sync.supportsUploading()) { contactAccountTypes.add(sync.accountType); } } Now you have a list of all accounts and a list of account types that support contacts. So here's your account list: for (Account acct: accounts) { if (contactAccountTypes.contains(acct.type)) { contactAccounts.add(account); } } If the contactAccounts list contains nothing - use accountType = null and accountName = null If it contains exactly one account, use it. If it contains multiple accounts, build a dialog and ask the user which account to use. From here on it gets easier. Let's start with a more traditional method. Insert a raw contact first: ContentValues values = new ContentValues(); values.put(RawContacts.ACCOUNT_TYPE, accountType); values.put(RawContacts.ACCOUNT_NAME, accountName); Uri rawContactUri = getContentResolver().insert(RawContacts.CONTENT_URI, values); long rawContactId = ContentUris.parseId(rawContactUri); Then insert the name: values.clear(); values.put(Data.RAW_CONTACT_ID, rawContactId); values.put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); values.put(StructuredName.DISPLAY_NAME, Some Body); getContentResolver().insert(Data.CONTENT_URI, values); You are done. Now here's a much better way to do the same. Use the new ContentProviderOperation API, which will ensure that the raw contact and its name are inserted at the same time. ArrayListContentProviderOperation ops = Lists.newArrayList(); ops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) .withValue(RawContacts.ACCOUNT_TYPE, accountType) .withValue(RawContacts.ACCOUNT_NAME, accountName) .build()); ops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI) .withValueBackReference(Data.RAW_CONTACT_ID, 0) .withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE) .withValue(StructuredName.DISPLAY_NAME, Some Body) .build()); getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); I hope this helps. - Dmitri On Mon, Nov 2, 2009 at 4:23 PM, jak. koda...@gmail.com wrote: Hello, I'm currently working on porting our Android app to 2.0 but I'm having a rather hard time figuring out what is required to interact with the new Contacts API. I'm using reflection to decide whether the new API is available, if it is I attempt to use the new features, otherwise I fall back to our old methods. However, I'm having a hard time finding analogs to the old functionality in the new API. For example in the past I was adding contacts to the database from an external text source by creating a ContentValues object, filling it with information on the contact and then adding it with a call to: Contacts.People.createPersonInMyContactsGroup(...); i.e.: ... ContentValues personValues = new ContentValues(); personValues.put(Contacts.People.NAME, Some Body); Uri personUri = Contacts.People.createPersonInMyContactsGroup (curContext().getContentResolver(), personValues); ... How can I achieve the same goal in the new API? I appreciate all the hard work going into improving the APIs but I must admit I'm a bit frustrated by the lack of documentation and examples. I realize we have plenty of Javadocs on developer.android.com to reference, but those only really show us what the new interfaces are. I'm having a really hard time finding any discussion in terms of how the new API is intended to be used. Any help would be greatly appreciated! 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] Re: writing firewall applications for Android
Hi Mark, Thanks for the information, it is good to know what alternatives we have. Have fun, Mihai On Nov 6, 2:53 pm, Mark Murphy mmur...@commonsware.com wrote: Mihai wrote: Does anyone have any suggestions on where to start in case one wants to write a firewall for Android? I am interested especially in how would one go about in blocking access for various applications that are blacklisted from a firewall application. As far as I could find, there are no firewall applications in the real sense except Droidwall which uses iptables on rooted phones, but I would like to see if there are any API calls currently in Android that may help with this task, be it NDK or SDK. This would only be possible on rooted phones or via firmware modifications. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Consulting/App Development:http://commonsware.com/consulting -- 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] Eclipse version
All hi, What is the minimal version of eclipse SDK should be used to build android ? Pierre -- 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: Droid / Android 2.0 OpenGL Configuration Issue
On 9 Lis, 10:13, Michael Leahy (Tactel US) michael.leahy.tac...@gmail.com wrote: Greets, As with a lot of folks doing OpenGL ES dev it's really a test on device situation. I'm really trying to get out the Typhon API (http:// typhon.egrsoftware.com/) which is an open source platform for real time / game development working on the Droid. It also provides the basis for a series of OpenGL ES tutorials for Android available that will be incrementally released starting this week with or without support for the Droid:http://android-tactelus.com/ Of course I'd like to support Android 2.0 / Motorola Droid, but alas a problem without a clear answer is occurring when I use EGL/GL directly not using Google/Android provided GLSurfaceView. The following is the basic setup code and works just fine on all previous Android versions including 1.6 on the G1 and Ion, but it fails on the Droid. Note context.getConfigSpec() returns a standard configuration: new int[] { EGL10.EGL_RED_SIZE, 5, EGL10.EGL_GREEN_SIZE, 6, EGL10.EGL_BLUE_SIZE, 5, EGL10.EGL_NONE } Now for the EGL/GL setup code... // - egl = (EGL10) EGLContext.getEGL(); glDisplay = egl.eglGetDisplay(EGL11.EGL_DEFAULT_DISPLAY); int[] version = new int[2]; egl.eglInitialize(glDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] numValue = new int[1]; egl.eglChooseConfig(glDisplay, context.getConfigSpec(), configs, 1, numValue); glConfig = configs[0]; First of all I have very similar issue (and some other devs as well), in this case returned config will be RGBA D0 S0 (basically 32bit without depth/ stencil buffer), while default window configuration is RGB565, (PixelFormat.OPAQUE which is translated to RGB565 during surface creation). This cause incompatibile pixel format error. So simplest solution was to implement some config matching to select correct config. But there is one more trap, my game uses depth buffer so in my config template I also added DEPTH_SIZE, 16, on droid eglChooseConfig will list folowing: D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGB565 D24 S8, match distance 8 D/GLView ( 1468): Testing config RGB565 D24 S8, match distance 8 D/GLView ( 1468): Testing config RGB565 D16 S0, match distance 0 D/GLView ( 1468): Testing config RGBA D16 S0, match distance 16 D/GLView ( 1468): Choosed config RGB565 D16 S0 D/GLView ( 1468): Surface changed, current format RGB565 E/IMGSRV ( 1468): gralloc.c:102: validate_handle: Unsupported usage bits (0xFHWR=0x47554000) set on handle E/libagl ( 1468): connect() failed to lock buffer 0x13096c (320x569) I/ActivityManager( 1028): Displayed activity com.beepstreet.blockx_trial/.menu.MenuActivity: 809 ms (total 809 ms) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) Please note that my code selected RGB565 D16, and unfortunatelly this is no go, since I have no access to droid itself (and above logcat output was provided by google engineer), I'm gessing that both condigs (RGBA D16 and RGB565 D16) are backward compatibility configs which do not support natvie rendering. -- Regards, Bart Janusz www.beepstreet.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] Re: Force locale for an application, bug in 2.0?
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 For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Droid / Android 2.0 OpenGL Configuration Issue
FYI: I posted a reply from a Google engineer regarding this problem here: http://groups.google.com/group/android-developers/msg/1a785843c3f1dd8c On Nov 9, 9:07 pm, a1 arco...@gmail.com wrote: On 9 Lis, 10:13, Michael Leahy (Tactel US) michael.leahy.tac...@gmail.com wrote: Greets, As with a lot of folks doing OpenGL ES dev it's really a test on device situation. I'm really trying to get out the Typhon API (http:// typhon.egrsoftware.com/) which is an open source platform for real time / game development working on the Droid. It also provides the basis for a series of OpenGL ES tutorials for Android available that will be incrementally released starting this week with or without support for the Droid:http://android-tactelus.com/ Of course I'd like to support Android 2.0 / Motorola Droid, but alas a problem without a clear answer is occurring when I use EGL/GL directly not using Google/Android provided GLSurfaceView. The following is the basic setup code and works just fine on all previous Android versions including 1.6 on the G1 and Ion, but it fails on the Droid. Note context.getConfigSpec() returns a standard configuration: new int[] { EGL10.EGL_RED_SIZE, 5, EGL10.EGL_GREEN_SIZE, 6, EGL10.EGL_BLUE_SIZE, 5, EGL10.EGL_NONE } Now for the EGL/GL setup code... // - egl = (EGL10) EGLContext.getEGL(); glDisplay = egl.eglGetDisplay(EGL11.EGL_DEFAULT_DISPLAY); int[] version = new int[2]; egl.eglInitialize(glDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] numValue = new int[1]; egl.eglChooseConfig(glDisplay, context.getConfigSpec(), configs, 1, numValue); glConfig = configs[0]; First of all I have very similar issue (and some other devs as well), in this case returned config will be RGBA D0 S0 (basically 32bit without depth/ stencil buffer), while default window configuration is RGB565, (PixelFormat.OPAQUE which is translated to RGB565 during surface creation). This cause incompatibile pixel format error. So simplest solution was to implement some config matching to select correct config. But there is one more trap, my game uses depth buffer so in my config template I also added DEPTH_SIZE, 16, on droid eglChooseConfig will list folowing: D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGB565 D24 S8, match distance 8 D/GLView ( 1468): Testing config RGB565 D24 S8, match distance 8 D/GLView ( 1468): Testing config RGB565 D16 S0, match distance 0 D/GLView ( 1468): Testing config RGBA D16 S0, match distance 16 D/GLView ( 1468): Choosed config RGB565 D16 S0 D/GLView ( 1468): Surface changed, current format RGB565 E/IMGSRV ( 1468): gralloc.c:102: validate_handle: Unsupported usage bits (0xFHWR=0x47554000) set on handle E/libagl ( 1468): connect() failed to lock buffer 0x13096c (320x569) I/ActivityManager( 1028): Displayed activity com.beepstreet.blockx_trial/.menu.MenuActivity: 809 ms (total 809 ms) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) Please note that my code selected RGB565 D16, and unfortunatelly this is no go, since I have no access to droid itself (and above logcat output was provided by google engineer), I'm gessing that both condigs (RGBA D16 and RGB565 D16) are backward compatibility configs which do not support natvie rendering. -- Regards, Bart Januszwww.beepstreet.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] Re: listening on TCP sockets in android emulator problem
Hi got the solution http://www.boutell.com/rinetd/ used this exe where you have to create config file containing your ip port and localhost port . and also need to do redir add tcp:port port on emulator. On Nov 5, 8:22 pm, satish_mulay mulay.sa...@gmail.com wrote: Hi , I am running java serversocketcode on 4747 port on my machine . and running clientsocketcode in android emulator on different machine . now client code on android emulator also createdtcpsocketon which serversocketon my machine will send respose.client is listening on 4748. when i run client it sends message to my server and i get it in server but when server tries to connect to clientsocketits giving me connect refused exception. my machines behind firewall in our LAN , adb forword worked for me when i ran both programs on localhost . but for 2 diffrent machines its not working. I also tried stcppipe.exe but maybe as i dont have public ip , its not working. I can see client listening on port 4748 using netstat -a but my server cant connect to that port in client's machine . i have tried with direct machines IP address(10.11.X.X ) while creating sockets . even tried giving emulators 10.0.2.2 or 10.0.2.15 address in client program. but nothing worked. anybody has got solution to this problem ? any pointers will be really helpful. -satish -- 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 store Images in sqlite database using android? How to retrieve images from sqlite database
If you want to store large images (full-screen), it's advisable to store only the file path in the database, having said that, let's answer your question: 1. Define the column that holds the image as BLOB. 2. To make sure you are not storing duplicate images, store the hash- code of the image along with the image (I'll get to that later) 3. So, it's a good idea to create a table that holds only the images, and use reference to this table from other tables. 4. To create the table you can use code similar to the following: db.execSQL(CREATE TABLE images ( + _id INTEGER PRIMARY KEY AUTOINCREMENT, + data BLOB, + hash BLOB UNIQUE + );); 5. May I suggest that you store your table name and column names in predefined constants, and use a StringBuilder to build SQL queries, instead of concatenating strings to prevent unnecessary garbage collection :-) 6. To convert the image to a BLOB, use the following code: (Note that we're compressing the image here) private byte[] getBitmapAsByteArray(Bitmap bitmap) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); // Middle parameter is quality, but since PNG is lossless, it doesn't matter bitmap.compress(CompressFormat.PNG, 0, outputStream); return outputStream.toByteArray(); } 7. To read this data from the database, you will do something like: byte[] bitmapData = cursor.getBlob(cursor.getColumnIndex(data)); 8. To convert this data back to an image, use: BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length); 9. Basically that already answers your question, but I promised you the image hash-code, so here goes: MessageDigest md = MessageDigest.getInstance(SHA-1); md.update(bitmapData); // It's the same bitmap data that you got from getBitmapAsByteArray byte[] digest = md.digest(); 10. Like you could see from the table creation, this is also stored as a BLOB. 11. If you want to query the hash code (Probably to see if an image with the hash hash, already exists(, you cannot use the blob in a SELECT statement, you must convert the hash blob to a blob-string (in the form of x'abcde...', with the following code: private static char toHexDigit(int b) { return (char)((b 10) ? ('0' + b) : ('A' + b - 10)); } public static String toBlobString(byte[] bytes) { final int length = bytes.length; char chars[] = new char[length * 2 + 3]; chars[0] = 'x'; chars[1] = '\''; int index = 2; for (int n = 0; n length; n++) { int value = bytes[n] 0xff; chars[index++] = toHexDigit(value / 16); chars[index++] = toHexDigit(value % 16); } chars[index] = '\''; return new String(chars); } Regards, Lior - Developer of UltimateFaves / UltimateFavesPRO http://ultimatefaves.wordpress.com/ https://mobentoo.com/application/ultimate-faves-pro This is what I do and it works very well, On Nov 4, 7:40 am, devi devi.n...@gmail.com wrote: hi! I want to store Images(using insert statement) in sqlite database retrive that image from database and display that image on android emulator...can anyone give sample code? -- 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: Eclipse version
Looks like Eclipse 3.4 http://developer.android.com/sdk/requirements.html or if you mean the ADT Eclipse plugin 0.9.4 http://developer.android.com/sdk/eclipse-adt.html#troubleshooting -- RichardC On Nov 9, 9:58 am, Pierre Henry Perret phper...@gmail.com wrote: All hi, What is the minimal version of eclipse SDK should be used to build android ? Pierre -- 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: Donut (1.6), auto complete text view and ellipsize
@Chris, I can't even get the simple TextView example you posted to ellipsize - I just immediately get a stack overflow exception. If I get rid of singleLine=true, then at least it doesn't crash, however the ellipsize won't be there! This is the only way I can get ANY ellipsis to appear - by supplying a string without spaces!: TextView android:text=Loremsdfsldkjfsdkljfdslkjfsdkljflsdkjfklsdjlfjslkjfkldsjfdlskjfl android:layout_width=fill_parent android:layout_height=wrap_content android:ellipsize=end android:maxLines=1 / that just does not seem too useful! On Sep 25, 3:00 pm, Chris W. cmichaelw...@gmail.com wrote: I came across this ticket :http://code.google.com/p/android/issues/detail?id=882 The bottom entry highlights concerns that the only way toellipsizea view is to use the 'singleLine' or 'inputType' attributes. I tried these and was able to get a text view element toellipsizebut only with the 'singleLine' attribute. 'inputType=text' didn't work toellipsizethe text. This ellipsized the text: TextView android:text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. android:layout_width=fill_parent android:layout_height=wrap_content android:singleLine=true android:ellipsize=end / I then changed the element from being a 'TextView' to a 'EditText'. The text did NOTellipsize. EditText android:text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. android:layout_width=fill_parent android:layout_height=wrap_content android:singleLine=true android:ellipsize=end / Why? And if an 'EditText' view above didn't ellipsized then I certainly wouldn't expect the 'AutoCompleteTextView' toellipsize. Seems there is a bug here somewhere. On Sep 23, 6:01 pm, Chris W. cmichaelw...@gmail.com wrote: I have a layout that includes the following: AutoCompleteTextView android:id=@+id/search_code android:layout_width=fill_parent android:layout_height=wrap_content android:selectAllOnFocus=true android:completionThreshold=2 android:maxLength=60 android:singleLine=true android:ellipsize=end android:imeOptions=actionDone/ Up until 1.6 theellipsizeattribute on my view above functions as I would expect. Since upgrading to 1.6 theellipsizeattribute, regardless of what I set it to (start, middle, end) seems to be ignored. Any hints and/or recommendations? -- 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 can I know date changed? seems android.intent.action.DATE_CHANGED works not properly
Hi, Can we use timers ??? On Nov 8, 7:32 am, NewPa shiji...@gmail.com wrote: Hi, One of my application need to know a new day is coming, that is, if the clock of phone changed from 23:59 to 00:00, my application will do some logic. I tried to use android.intent.action.DATE_CHANGED, but based on my test, this event only occured when i change the date mannually, I could not get this action when clock changed from 23:59 to 00:00. Does anybody know why? This is the defination in AndroidMainfest.xml receiver android:name=.DateBoradcastReceiver android:enabled=true intent-filter action android:name=android.intent.action.TIME_SET/ action android:name=android.intent.action.DATE_CHANGED/ /intent-filter Below is the code in DateBoradcastReceiver class: public void onReceive(Context arg0, Intent arg1) { Log.d(PregnancyWidget, intent= + arg1); String action = arg1.getAction(); if (action.equals(Intent.ACTION_DATE_CHANGED)||action.equals (Intent.ACTION_TIME_CHANGED)) { //business logic is here } } Thanks in advance for your help. -- 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 Recorder - videocamera.java
Dear All, I am modified the videocamera.java file present at \android\packages\apps\Camera\src\com\android\camera with DEBUG_SUPPRESS_AUDIO_RECORDING = DEBUG ; // false; But changes are not refecting while excecuting the camcoder application. Still audio path is active .. Can you pls guide ..why it so .. Rgds, Nagaraj -- 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?
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 mc6...@mclink.it 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.comandroid-developers%2bunsubscr...@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 cliq sdk 2.0
Dianne - we have a couple of problems on the CLIQ. In both cases, the APIs are technically working correctly, but the resulting user experience is unfortunate, so these may not be exactly what you are asking for. But, in case you are interested: (1) The CLIQ has a lot of contact data (from facebook and so on) that is not visible through the Contact APIs. From our user's point of view, that results in contacts who simply do not appear in our UI or in contacts with phone numbers that we can't see. They see that experience as broken. We have no workaround for that, apart from hoping that that the CLIQ moves rapidly to 2.0. (2) The CLIQ has no LED colour control, so our LED-colour configuration UI appears broken to our users. The docs do say that LED colour support is optional, but without an API to query for colour support we can't take the UI away automatically. We're fixing that with a special-case CLIQ detector, but that is obviously not a good solution in a amrket with a lot of new phones appearing. Thanks, Richard On Nov 7, 9:00 pm, Dianne Hackborn hack...@android.com wrote: Can you give more detail? The APIs should work the same. If there are changes, we'd really like to know. On Sat, Nov 7, 2009 at 10:51 AM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ is not representative of a normal Android experience. It is buggy, half of the components have been replaced by Motorola. They use their own variants of some APIs. And, I certainly would not recommend it as a user device, personally. As a user of the CLIQ I have been very, very disappointed. So, if you really want just a testing device I would choose something the is not as heavily modified. If you also want to use it as your actual phone, I would choose something less glitchy and more flexible. On Nov 7, 11:10 am, Dianne Hackborn hack...@android.com wrote: On Fri, Nov 6, 2009 at 8:33 PM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ has 1.5 loaded, and it is NOT a good development phone. Trust me. What is wrong with it? Fwiw, one of our goals is that all Android compatible phones should also allow for the full standard development environment. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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 don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can I make this query with SQLiteQueryBuilder?
I want to perform a query, retrieving all entries linked to a specific item, in a many-to-many relationship. I have three tables (for this demonstration anyway): - categories (_id, name) - items (_id, name) - categories_items (_id, category_id, item_id) I know that, in order to query for all categories belonging to a specific item, I can use the following query: SELECT a.* FROM categories AS a, items AS b, categories_items AS c WHERE b._id={rowId} AND c.item_id=b._id AND c.category_id=a._id Where {rowId} obviously represents the ID of the item to search for. I don't know if this query is the best way to do it, but I know that I don't need a JOIN, since I only need the entries from one table. Anyway, I know how to query this, but I'm curious if there's a way to do this with SQLiteQueryBuilder? I've looked at the reference, and it seems it would be easy enough to specify the tables, but the columns are needed as an array of String objects. Would it accept it, if I used a.* as a column specifier? 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: Is your Android app on Archos Market ?
Responded to in android-discuss... please people can we move it off the -developers list as we're so far off topic its' probably just annoying many of the subscribers. Al. On 9 Nov, 09:04, Charbax char...@gmail.com wrote: Slander and disparage doesn't have to use f-words and s-words. alsutton has coordinated constantArchosbashing on the archosfans forum since September 2nd until about October 15th when he first announced he was seeking legal advice. All things from: - Recommending that people not buy theArchos5 Internet Tablet in countless posts - Advertising for alternatives toArchos5 Internet Tablet in countless posts - Claiming to have inside knowledge from Google engineers that Google Marketplace and Google Apps would never be available onArchos5 Internet Tablet in countless posts - Plenty of other trolling posting controversial, inflammatory, irrelevant and off-topic messages I'm looking forward to see the emails. I am sure alsutton was asking an unreasonably large payment to be the exclusive marketplace on the device. Probably his dream, to finally have an opportunity make some money on his marketplace project. On Nov 8, 4:15 pm, JP joachim.pfeif...@gmail.com wrote: On Nov 7, 11:25 pm, Fred Grott(Android Expert,http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: Charbox your slander definition seems to be somewhat unique and different. Agreed. His coordinate system for slander and disparage could use some calibration, it seems. -- 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: button swap example android
Nobody have tried this kind of thing ? I found this post http://www.mail-archive.com/android-developers@googlegroups.com/msg49872.html but it seems the AbsoluteLayout is deprecated. Please suggest to make it work in latest sdk regards Jagat On Nov 6, 5:28 pm, Jags jag...@gmail.com wrote: I am trying toswapthe position of two buttons. my swapping code looks as below. private void exchangeButtons(Buttonbtn1,Buttonbtn2) { // Create the animation set AnimationSet exchangeAnimation = new AnimationSet(true); TranslateAnimation translate = new TranslateAnimation( Animation.RELATIVE_TO_SELF, btn2.getLeft(), Animation.RELATIVE_TO_SELF, btn1.getLeft(), Animation.RELATIVE_TO_SELF, btn2.getRight(), Animation.RELATIVE_TO_SELF, btn1.getRight() ); translate.setDuration(500); exchangeAnimation.addAnimation(translate); // int fromX = btn1.getLeft(); // int fromY = btn1.getRight(); // int toX = btn2.getLeft(); // int toY = btn2.getRight(); Log.d(ArrangeMe, view1 pos: + btn1.getLeft() + , +btn1.getRight() + view2 pos: + btn2.getLeft() + , + btn2.getRight ()); AnimationSet exchangeAnimation1 = new AnimationSet(true); TranslateAnimation translate1 = new TranslateAnimation( Animation.RELATIVE_TO_SELF, btn1.getLeft(), Animation.RELATIVE_TO_SELF, btn2.getLeft(), Animation.RELATIVE_TO_SELF, btn1.getRight(), Animation.RELATIVE_TO_SELF, btn2.getRight() ); translate1.setDuration(500); exchangeAnimation1.addAnimation(translate1); // EXECUTE btn1.startAnimation(exchangeAnimation); btn2.startAnimation(exchangeAnimation1); } I call the code as below exchangeButtons(button1, button2); my layout looks as below LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal Buttonandroid:text=One android:id=@+id/button1 android:layout_height=70px android:layout_width=70px android:layout_weight=1/Button Buttonandroid:text=Two android:id=@+id/button2 android:layout_height=70px android:layout_width=70px android:layout_weight=1/Button /LinearLayout what happens when i execute the code is, instead of the buttons exchanging their positions, they just disappear for sometime[may be 500 ms] and reappear as they were originally. how to resolve this problem ? will it work properly in device ? 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
[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices
Hi Robert, Will do. Here goes. First part is the sizeChange() when Android screen size changes and it gets called when the application launches. I'd thought I'd paste in the EGL stuff too, not all of it but some of it since it kind of relates to the initialisation. But yeah, the problem still is there. It works fine on emulators but not on the actual device. All the code from below in PasteBin again for easier reading ( http://pastebin.com/m484eafe6 ). // OPENGL INITIALISATION _screenWidth = w; _screenHeight = h; gl.glViewport(0, 0, _screenWidth, _screenHeight); gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST); gl.glClearColor(0, 0, 1, 1); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glMatrixMode(GL10.GL_PROJECTION);// setup OpenGL world coordinates to match screen coordinates GLU.gluOrtho2D(gl, 0, (float)_screenWidth, (float)_screenHeight, 0); // trying to match world coordinates to screen coordinates (tried using (int) too.. no changes :/) // BEFORE RENDERING: gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); // EGL HELPER CLASS THAT TAKES CARE OF GETTING THE CONTEXT FOR OPENGL AND ALL THAT SHAZAM private EGL10 _EGL; private EGLDisplay _display; private EGLSurface _surface; private EGLConfig _configs; private EGLContext _context; // EGL INIT int[] configSpec = { EGL10.EGL_DEPTH_SIZE, 0, EGL10.EGL_NONE }; _EGL = (EGL10) EGLContext.getEGL(); _display = _EGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); int[] version = new int[2]; _EGL.eglInitialize(_display, version); EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; _EGL.eglChooseConfig(_display, configSpec, configs, 1, num_config); _configs = configs[0]; _context = _EGL.eglCreateContext(_display, _configs, EGL10.EGL_NO_CONTEXT, null); _surface = null; But yeah, if anyone knows what's going on or knows what I'm doing wrong I'd be mighty grateful. I feel pretty lost with this one. Cheers again guys. On 9 marras, 00:14, Robert Green rbgrn@gmail.com wrote: I had a problem with Ortho on my phone vs on the emulator at one point as well. Could you post more of your GL initialization code? My problem was something dumb like I was calling orthox using actual screen dimensions when I needed to either use fixed point there or use orthof. On Nov 8, 3:34 pm, Mika mts...@googlemail.com wrote: Hello everyone. Running into REALLY interesting problems with OpenGL ES. Basically when I start my program in 1.5 or 1.6 emulator, it works just fine but on HTC Hero 1.5 it does not. The problem is that the vertices are not being rendered but the gl.glClear() command is working just fine. I followed in with the debugger and it does go into the rendering function and such but still not rendering the vertices... Here is the code in PasteBin (easier to read:http://pastebin.com/m706686e6 ) And here is the same thing pasted here: // VERTICE INIT int one = 65536; int half = one / 2; int vertices[] = { -half, -half, half, half, -half, half, -half, half, half, half, half, half } ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4); vbb.order(ByteOrder.nativeOrder()); mVertexBuffer = vbb.asIntBuffer(); mVertexBuffer.put(vertices); mVertexBuffer.position(0); // AND IN RENDER gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer); gl.glColor4f(1, 0, 0, 1); gl.glScalef(50, 50, 1); gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4); Also I got my projection set in 2D ortho projection to match screen coordinates so that's why scale to 50,50 to actually make a bit bigger. I've tried using glDrawElements and glDrawArrays and nothing on the actual phone but works perfectly fine on the actual emulator. Any ideas where I might be going wrong? Why is the actual phone not rendering the vertices like the emulator is? Am I missing something completely here? -- 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: Droid / Android 2.0 OpenGL Configuration Issue
According to the EGL spec I think this is correct behavior. Thanks for posting the Droid EGLConfigs - I had been wondering about them for the past couple days and this confirms Craig's issue. I bet if you looked at the EGL_CONFIG_CAVEAT attribute, the RGBA configs will be EGL_NON_CONFORMANT_CONFIG. Passing EGL_CONFIG_CAVEAT=EGL_NONE as your desired configuration should filter out the RGBA configs assuming my assertion is true. Ernest Woo Woo Games http://www.woogames.com On Nov 9, 5:07 am, a1 arco...@gmail.com wrote: On 9 Lis, 10:13, Michael Leahy (Tactel US) michael.leahy.tac...@gmail.com wrote: Greets, As with a lot of folks doing OpenGL ES dev it's really a test on device situation. I'm really trying to get out the Typhon API (http:// typhon.egrsoftware.com/) which is an open source platform for real time / game development working on the Droid. It also provides the basis for a series of OpenGL ES tutorials for Android available that will be incrementally released starting this week with or without support for the Droid:http://android-tactelus.com/ Of course I'd like to support Android 2.0 / Motorola Droid, but alas a problem without a clear answer is occurring when I use EGL/GL directly not using Google/Android provided GLSurfaceView. The following is the basic setup code and works just fine on all previous Android versions including 1.6 on the G1 and Ion, but it fails on the Droid. Note context.getConfigSpec() returns a standard configuration: new int[] { EGL10.EGL_RED_SIZE, 5, EGL10.EGL_GREEN_SIZE, 6, EGL10.EGL_BLUE_SIZE, 5, EGL10.EGL_NONE } Now for the EGL/GL setup code... // --- -- egl = (EGL10) EGLContext.getEGL(); glDisplay = egl.eglGetDisplay(EGL11.EGL_DEFAULT_DISPLAY); int[] version = new int[2]; egl.eglInitialize(glDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] numValue = new int[1]; egl.eglChooseConfig(glDisplay, context.getConfigSpec(), configs, 1, numValue); glConfig = configs[0]; First of all I have very similar issue (and some other devs as well), in this case returned config will be RGBA D0 S0 (basically 32bit without depth/ stencil buffer), while default window configuration is RGB565, (PixelFormat.OPAQUE which is translated to RGB565 during surface creation). This cause incompatibile pixel format error. So simplest solution was to implement some config matching to select correct config. But there is one more trap, my game uses depth buffer so in my config template I also added DEPTH_SIZE, 16, on droid eglChooseConfig will list folowing: D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGBA D24 S8, match distance 24 D/GLView ( 1468): Testing config RGB565 D24 S8, match distance 8 D/GLView ( 1468): Testing config RGB565 D24 S8, match distance 8 D/GLView ( 1468): Testing config RGB565 D16 S0, match distance 0 D/GLView ( 1468): Testing config RGBA D16 S0, match distance 16 D/GLView ( 1468): Choosed config RGB565 D16 S0 D/GLView ( 1468): Surface changed, current format RGB565 E/IMGSRV ( 1468): gralloc.c:102: validate_handle: Unsupported usage bits (0xFHWR=0x47554000) set on handle E/libagl ( 1468): connect() failed to lock buffer 0x13096c (320x569) I/ActivityManager( 1028): Displayed activity com.beepstreet.blockx_trial/.menu.MenuActivity: 809 ms (total 809 ms) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) E/libEGL ( 1468): call to OpenGL ES API with no current context (logged once per thread) Please note that my code selected RGB565 D16, and unfortunatelly this is no go, since I have no access to droid itself (and above logcat output was provided by google engineer), I'm gessing that both condigs (RGBA D16 and RGB565 D16) are backward compatibility configs which do not support natvie rendering. -- Regards, Bart Januszwww.beepstreet.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] Re: help me Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
If you want to use android:sharedUserId=android.uid.system you have to sign your apk file with the platform certificate, i.e. the certificate your phone's software was built with. //O On Nov 6, 10:51 am, hehui he...@yulong.com wrote: when I add android:sharedUserId=android.uid.system to the AndroidManifest.xml file the project can not be installed on G2 . the error is Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE who can help me ? Thanks in advance ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Working with the new ContactContracts API
hi Dmitri, Thanks for throwing some light on SyncAdapters. Once a new sync account and sync adapter is created ( By inherting AbstractThreadedSyncAdapter) for a sync application,how does any other application wants to call sync for the same sync app will bind?. Was it through SyncManager or through ContentResolver.requestSync(). What is the api should other apps call to bind to my sync application?. Could you please let us know some more details of SyncManager and Sync Adapter relation. What should I do to add my AbstractAdapter to SyncManager. Thanks. Regards, Sukumar. On Sat, Nov 7, 2009 at 12:51 AM, Dmitri Plotnikov dplotni...@google.comwrote: Privet Vadim, A sync adapter is a service whose job is to sync data between a back end and the phone. It is typically kicked-off automatically on a schedule. Sync adapters are managed by sync manager, which knows when to start them, avoids running multiple at the same time and does a bunch of other useful stuff. You will want to inherit from android.content.AbstractThreadedSyncAdapter. Also, see if it makes sense for you to have a separate account. Then instead of dropping new contacts to the Gmail or Exchange servers you would just bring them to the phone. Your contacts will get nicely aggregated with other contacts on the phone. I hope this helps. - Dmitri On Fri, Nov 6, 2009 at 3:01 AM, Vadim Vohmjanin vadim...@gmail.comwrote: Privet Dmitri, I have been searching for the second day any info about what Sync Adapter is and any info that could help me to understand if i need to implement it. We are writing an application that syncs contacts. I just try to understand if Sync Adapter will be any helpful. And Google didn't provide any sources of 2.0 sdk yet, and documentation of APIs is also very poor. On Nov 5, 6:39 am, Dmitri Plotnikov dplotni...@google.com wrote: Raw contacts can have group memberships. A GroupMembership is a row in the Data table. If you want to add a membership find the group you need and add a row to the Data table with mimetype GroupMembership.CONTENT_ITEM_TYPE and the id of the group: values.put(GroupMembership.RAW_CONTACT_ID, rawContactId); values.put(GroupMembership.MIMETYPE, GroupMembership.CONTENT_ITEM_TYPE); values.put(GroupMembership.GROUP_ROW_ID, groupId); resolver.insert(Data.CONTENT_URI, values);* *If you are writing a sync adapter, you may find it easier to use server-side group ID instead of a row ID: values.put(GroupMembership.GROUP_SOURCE_ID, blahblah); Groups do not affect aggregation and are not affected by aggregation. Cheers, - Dmitri On Wed, Nov 4, 2009 at 7:28 PM, Yao cicikaka2...@gmail.com wrote: Hi Dmitri, Would you please help point out how's new group structure? Something similar as groupmembership table in previous relese. Thanks a lot in advance! On Thu, Nov 5, 2009 at 10:47 AM, Dmitri Plotnikov dplotni...@google.comwrote: Hi Jake, The database structure is actually extremely straightforward: Contacts represents an aggregated contact RawContacts represents a contact as it was inserted by the sync adapter. RawContact has a CONTACT_ID field that binds it to a Contact. Data represents everything about a RawContact: emails, phone numbers, notes, birthday, high school graduation year, you name it. Data has a RAW_CONTACT_ID field that binds it a RawContact. The other important field is MIMETYPE. That's what determines the kind of data stored in a Data row. Everything else is just convenience API. So here's the most common way of inserting a data row: values.put(Data.RAW_CONTACT_ID, rawContactId); values.put(Data.MIMETYPE, Note.CONTENT_ITEM_TYPE); values.put(Note.NOTE, Blah blah blah); resolver.insert(Data.CONTENT_URI, values); I hope this helps. - Dmitri On Wed, Nov 4, 2009 at 6:11 PM, jak. koda...@gmail.com wrote: Thank you Dmitri, Your response was very helpful. Along with that, and the sample you posted on another thread about using both Contact Apis from one app, I've gotten most of the way there. It is much appreciated. I'm still however having some problems that I'm hard pressed to find a solution for. I'd be grateful if anyone could help me. The biggest challenge I'm having with this API is that it's hard for me to picture how the tables are laid out so I know which URI to query to get the parts of the contact that I'm interested in. I found to get the email address for a contact I'm looking at I can query the uri:ContactsContract.CommonDataKinds.Email.CONTENT_URI, looking at rows of the contact id i'm interested in. However to get the note from the same contact I can't use a similar pattern, because there is no ContactsContract.CommonDataKinds.Note.CONTENT_URI The Note type exists in CommonDataKinds but it doesn't have an associated CONTENT_URI. I'm finding it
[android-developers] Re: How can I know date changed? seems android.intent.action.DATE_CHANGED works not properly
http://code.google.com/p/android/issues/detail?id=2880can=4colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Though you can use the AlarmManager to help you keep track of when 12am hits. On Nov 8, 1:32 pm, NewPa shiji...@gmail.com wrote: Hi, One of my application need to know a new day is coming, that is, if the clock of phone changed from 23:59 to 00:00, my application will do some logic. I tried to use android.intent.action.DATE_CHANGED, but based on my test, this event only occured when i change the date mannually, I could not get this action when clock changed from 23:59 to 00:00. Does anybody know why? This is the defination in AndroidMainfest.xml receiver android:name=.DateBoradcastReceiver android:enabled=true intent-filter action android:name=android.intent.action.TIME_SET/ action android:name=android.intent.action.DATE_CHANGED/ /intent-filter Below is the code in DateBoradcastReceiver class: public void onReceive(Context arg0, Intent arg1) { Log.d(PregnancyWidget, intent= + arg1); String action = arg1.getAction(); if (action.equals(Intent.ACTION_DATE_CHANGED)||action.equals (Intent.ACTION_TIME_CHANGED)) { //business logic is here } } Thanks in advance for your help. -- 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: Archos gives away Android W VGA 4.8 Tablets for 1€ to developers in France
Charbox this belongs in the discussion forum.. On Nov 9, 3:18 am, Charbax char...@gmail.com wrote: At least, that's what is being talked about in French athttp://www.frandroid.com/6546/1e-larchos-5-it-cest-possible/ The concept being that for developers submitting at least one approved application tohttp://appslib.com, that developper can get a 228€ rebate voucher code to his email and order the Archos 5 Internet Tablet with Android and 8GB storage then from Archos website. I do not know if Archos has some kinds of manual verification other than to check that the application works fine on 800x480 (and through HDMI 1280x720) screens, perhaps Archos also checks that the app is original and not automatically generated by non-coders using some kinds of Android app generators where you input an RSS feed and it automatically outputs a duplicated app that simply displays the contents from that RSS feed. I think this is a great idea for Archos, to try to get the attention from 1000 of the best Android developers, to submit their apps tohttp://appslib.combecause Android developers are often the most influential early-adopters. So if 1000 Android developers are impressed by the Archos 5 Internet Tablet, it may inspire them to develop more apps for WVGA medium density since Archos is the first and only 4.8 WVGA medium density Android product on the market. Also, having more apps, and having more developers enthusiastic about higher resolution Android development, will encourage more consumers to look into it. For now, only free apps are supported inhttp://appslib.com, but later paid apps will work as well. My suggestion would be for Marketplaces in general to offer a Premium subscription plan for around $3 per month or something like that, to offer full access to installing and updating Premium applications. This way developers can decide if they want to sell their apps or include them in the premium access plan, and as well if they want to offer a purchase rebate for premium access subscribers. This way, the developers of the most useful and most used apps would automatically get paid more from the premium subscription plan. Probably that many more users won't mind paying that unlimited premium access, pirates will probably not care to pirate anymore since premium access subscription would be so affordable and this way more money would be distributed to developers. This premium Android apps plan is though just my idea, I don't know if it has been suggested before. -- 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] Full version invisible in the market on Droid
Just a shot in the dark here, but I believe the supports-screens/ tag only works in Android versions 1.6 + 2.0. If you try to use it in 1.5, it causes build errors. I also noticed that your minimum sdk requirement was set at 3 which equals android 1.5. That could be causing problems, perhaps especially if the phones being used to access the market are android 1.5 phones. I have no proof of this, but just some speculation. Justin On Mon, Nov 9, 2009 at 3:45 AM, Pieter pie...@gamesquare.nl wrote: Two days ago, we uploaded a new version of the full version of our app (SpecTrek) to the market. Improvements include support for QVGA and WVGA screens. We changed nothing in the Developer Console (Language: en_US, All locations selected). Now we have received the first complaint of a Droid user who cannot find the full version on the market. The light version (that has not been upgraded yet) can be found ok. The good news is that the light version seems to work on the Droid, something we couldn't really test (except for some simulator runs on 2.0). So presumably we did something stupid in the upgraded version. I can only assume it must be something in the manifest, as it seems unreasonably to assume the market software looks at anything else in the apk. The only change in the manifest (besides versionCode/versionName) is the following: supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / There is also a uses-sdk entry, but that didn't change: uses-sdk android:minSdkVersion=3 / - Is there anyone with a Droid that can verify the full version is not available to them (searching for 'SpecTrek' should find both the light and full versions)? - Can anyone shed light on why the full version is invisible on the Droid market? -- 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.comandroid-developers%2bunsubscr...@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] Launching appwidget from another application
Hi all, Is it possible to launch an app widget from another application. For example, I have a button in an application. When I click on that button, an appwidget must be launched. Is it possible to do like this? If yes, please help me on this Regards, Anand -- 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: Full version invisible in the market on Droid
The problem existed between keyboard and chair. I didn't realize that you have to press Publish again after uploading an upgrade. It seems I'm just too stupid to use the Developer Console web interface *blush*. Justin, Droid uses Android 2.0. The 1.5 phones ignore unknown tags (like the supports-screens tag) so this usage should be ok. On Nov 9, 2:30 pm, Justin Giles jtgi...@gmail.com wrote: Just a shot in the dark here, but I believe the supports-screens/ tag only works in Android versions 1.6 + 2.0. If you try to use it in 1.5, it causes build errors. I also noticed that your minimum sdk requirement was set at 3 which equals android 1.5. That could be causing problems, perhaps especially if the phones being used to access the market are android 1.5 phones. I have no proof of this, but just some speculation. Justin On Mon, Nov 9, 2009 at 3:45 AM, Pieter pie...@gamesquare.nl wrote: Two days ago, we uploaded a new version of the full version of our app (SpecTrek) to the market. Improvements include support for QVGA and WVGA screens. We changed nothing in the Developer Console (Language: en_US, All locations selected). Now we have received the first complaint of a Droid user who cannot find the full version on the market. The light version (that has not been upgraded yet) can be found ok. The good news is that the light version seems to work on the Droid, something we couldn't really test (except for some simulator runs on 2.0). So presumably we did something stupid in the upgraded version. I can only assume it must be something in the manifest, as it seems unreasonably to assume the market software looks at anything else in the apk. The only change in the manifest (besides versionCode/versionName) is the following: supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / There is also a uses-sdk entry, but that didn't change: uses-sdk android:minSdkVersion=3 / - Is there anyone with a Droid that can verify the full version is not available to them (searching for 'SpecTrek' should find both the light and full versions)? - Can anyone shed light on why the full version is invisible on the Droid market? -- 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.comandroid-developers%2Bunsubs 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
Re: [android-developers] Launching appwidget from another application
anand wrote: Hi all, Is it possible to launch an app widget from another application. For example, I have a button in an application. When I click on that button, an appwidget must be launched. Is it possible to do like this? What do you mean by an appwidget must be launched? App widgets are not launched, at least by my use of the term. If you mean that you want an app widget automatically forcibly installed on the user's home screen, then no, that is not supported. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy App Widgets Deep Dive Seminar, 27 January 2010: http://bit.ly/deepdive -- 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] Samsung Galaxy --- How to debug?
I have a user that says my application gives him an error on the Samsung Galaxy (it works fine one the G1). How can I debug this issue? Is there an accurate emulator/simulator? Can someone try it (Bendometer is the app)? Joel -- 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] Samsung Galaxy --- How to debug?
a cool trick on the galaxy is to dial *#*#9900#*#* to get the logs to the sdcard. from http://android-dls.com/wiki/index.php?title=Galaxy_Essentials On Mon, Nov 9, 2009 at 3:43 PM, joelt j...@harpsoft.com wrote: I have a user that says my application gives him an error on the Samsung Galaxy (it works fine one the G1). How can I debug this issue? Is there an accurate emulator/simulator? Can someone try it (Bendometer is the app)? Joel -- 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Re: Make two buttons the same width?
true that. j On Mon, Nov 9, 2009 at 3:15 AM, ko5tik kpriblo...@yahoo.com wrote: What about placing them into table layout? then you shall be fine with fill_parent -- 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.comandroid-developers%2bunsubscr...@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] Run ADB client on diff PC than daemon
Is it possible to have adb client connect to an adb daemon on another machine? My dev environment is on a remote server, but the G1 is connected via USB to my local machine. Thanks Andy -- 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 cliq sdk 2.0
Another reason I don't beleive the CLIQ is a good development device: The CLIQ does not output Log.v() or Log.d() level logging via LogCat. On Nov 9, 4:39 am, jarkman jark...@gmail.com wrote: Dianne - we have a couple of problems on the CLIQ. In both cases, the APIs are technically working correctly, but the resulting user experience is unfortunate, so these may not be exactly what you are asking for. But, in case you are interested: (1) The CLIQ has a lot of contact data (from facebook and so on) that is not visible through the Contact APIs. From our user's point of view, that results in contacts who simply do not appear in our UI or in contacts with phone numbers that we can't see. They see that experience as broken. We have no workaround for that, apart from hoping that that the CLIQ moves rapidly to 2.0. (2) The CLIQ has no LED colour control, so our LED-colour configuration UI appears broken to our users. The docs do say that LED colour support is optional, but without an API to query for colour support we can't take the UI away automatically. We're fixing that with a special-case CLIQ detector, but that is obviously not a good solution in a amrket with a lot of new phones appearing. Thanks, Richard On Nov 7, 9:00 pm, Dianne Hackborn hack...@android.com wrote: Can you give more detail? The APIs should work the same. If there are changes, we'd really like to know. On Sat, Nov 7, 2009 at 10:51 AM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ is not representative of a normal Android experience. It is buggy, half of the components have been replaced by Motorola. They use their own variants of some APIs. And, I certainly would not recommend it as a user device, personally. As a user of the CLIQ I have been very, very disappointed. So, if you really want just a testing device I would choose something the is not as heavily modified. If you also want to use it as your actual phone, I would choose something less glitchy and more flexible. On Nov 7, 11:10 am, Dianne Hackborn hack...@android.com wrote: On Fri, Nov 6, 2009 at 8:33 PM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ has 1.5 loaded, and it is NOT a good development phone. Trust me. What is wrong with it? Fwiw, one of our goals is that all Android compatible phones should also allow for the full standard development environment. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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 don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: motorola cliq sdk 2.0
Yeah, that could be a problem... thanks. On Nov 9, 8:20 am, nEx.Software email.nex.softw...@gmail.com wrote: Another reason I don't beleive the CLIQ is a good development device: The CLIQ does not output Log.v() or Log.d() level logging via LogCat. -- 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: Full version invisible in the market on Droid
Don't worry, I've done the same thing! lol On Nov 9, 8:01 am, Pieter pie...@gamesquare.nl wrote: The problem existed between keyboard and chair. I didn't realize that you have to press Publish again after uploading an upgrade. It seems I'm just too stupid to use the Developer Console web interface *blush*. Justin, Droid uses Android 2.0. The 1.5 phones ignore unknown tags (like the supports-screens tag) so this usage should be ok. On Nov 9, 2:30 pm, Justin Giles jtgi...@gmail.com wrote: Just a shot in the dark here, but I believe the supports-screens/ tag only works in Android versions 1.6 + 2.0. If you try to use it in 1.5, it causes build errors. I also noticed that your minimum sdk requirement was set at 3 which equals android 1.5. That could be causing problems, perhaps especially if the phones being used to access the market are android 1.5 phones. I have no proof of this, but just some speculation. Justin On Mon, Nov 9, 2009 at 3:45 AM, Pieter pie...@gamesquare.nl wrote: Two days ago, we uploaded a new version of the full version of our app (SpecTrek) to the market. Improvements include support for QVGA and WVGA screens. We changed nothing in the Developer Console (Language: en_US, All locations selected). Now we have received the first complaint of a Droid user who cannot find the full version on the market. The light version (that has not been upgraded yet) can be found ok. The good news is that the light version seems to work on the Droid, something we couldn't really test (except for some simulator runs on 2.0). So presumably we did something stupid in the upgraded version. I can only assume it must be something in the manifest, as it seems unreasonably to assume the market software looks at anything else in the apk. The only change in the manifest (besides versionCode/versionName) is the following: supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / There is also a uses-sdk entry, but that didn't change: uses-sdk android:minSdkVersion=3 / - Is there anyone with a Droid that can verify the full version is not available to them (searching for 'SpecTrek' should find both the light and full versions)? - Can anyone shed light on why the full version is invisible on the Droid market? -- 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.comandroid-developers%2Bunsubs 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] Re: Problems updating my app on Android Market and switching to copy protection
I wouldn't bother turning copy protection on, all that does is prevent people that have developer phones from downloading the app. People that have rooted phones can still download it and copy it off their device anyway, so it's pretty much useless. (It's just a folder permission, but rooted users can access any folder) -niko20 On Nov 8, 12:45 pm, RichardC richard.crit...@googlemail.com wrote: Looks like there are some bugs outstanding:http://code.google.com/p/android/issues/detail?id=2047http://code.google.com/p/android/issues/detail?id=2263 Also if you search this group for copy protection there are people reporting/discussing issues regarding changing the copy protection setting once an applicaton has already been installed. Looks like it does not work at the moment. Let me/us know if you find a work around. -- RichardC On Nov 8, 5:41 pm, androidDeveloper stepmas...@googlemail.com wrote: I have uploaded an update for my app on Android Market. And at the same time I have enabled the copy protection of the app. When I downloaded my the update, there was an exception and the app crashed. I had to reinstall it. After reinstall it worked fine... Exception was: W/zipro ( 1103): Unable to open zip '/data/app-private/...': Permission denied D/asset ( 1103): failed to open Zip archive '/data/app-private/...' W/ResourceType( 1103): No package identifier when getting value for resource number 0x7f09 Is this a know bug when switching to copy protection? Or is there another reason this error occured? 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: ADC2 Judging App FC
Hi, I have the same problem: ADC2 judging app forces closes on my ADP running 1.6, using T-mobile SIM card or Wi-Fi. Download trick makes it work sometimes but then it will force close when I attempt to upload results :( -F On Nov 8, 3:27 pm, gjs garyjamessi...@gmail.com wrote: Hi, I'm using t-mobile g1 with (production) Android 1.6, EVERY time I have tried to use the updated ADC2 judging app, for the final round, I get - Sorry! The application Market (process com.android.vending) has stopped unexpectedly. Please try again. [Force close] - after pressing install button or the install manually button for the presented app, I have also tried starting the Market app and rebooting but I still continue to get the same error. I have NOT been able to review/judge a single adc2 final round app. I have NOT tried pressing the skip menu button, nor will I as I want to review the 1st app presented... Following is the dubug output and this is after I have confirmed that the Browser app is able to connect to the internet correctly (using wifi). Regards 11-09 08:47:52.623: INFO/Process(400): Sending signal. PID: 400 SIG: 9 11-09 08:47:52.656: INFO/WindowManager(76): WIN DEATH: Window{432f16b0 com.android.vending/com.android.vending.AssetInfoActivity paused=false} 11-09 08:47:52.656: INFO/ActivityManager(76): Process com.android.vending (pid 400) has died. 11-09 08:47:52.666: INFO/WindowManager(76): WIN DEATH: Window{433d21f0 Attention paused=false} 11-09 08:47:52.716: INFO/ActivityManager(76): Start proc com.android.vending for activity com.android.vending/.AssetInfoActivity: pid=446 uid=10016 gids={3003} 11-09 08:47:52.836: INFO/dalvikvm(446): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) 11-09 08:47:52.876: INFO/dalvikvm(446): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=42) 11-09 08:47:52.956: INFO/ActivityThread(446): Publishing provider com.android.vending.SuggestionsProvider: com.android.vending.SuggestionsProvider 11-09 08:47:53.376: WARN/ActivityManager(76): Activity pause timeout for HistoryRecord{433760a0 com.android.vending/.AssetInfoActivity} 11-09 08:47:53.686: DEBUG/dalvikvm(446): GC freed 3766 objects / 297680 bytes in 110ms 11-09 08:47:54.276: INFO/ActivityManager(76): Displayed activity com.android.vending/.AssetInfoActivity: 1612 ms (total 1612 ms) 11-09 08:47:55.546: WARN/dalvikvm(446): threadid=19: thread exiting with uncaught exception (group=0x4001da28) 11-09 08:47:55.546: ERROR/AndroidRuntime(446): Uncaught handler: thread AsyncTask #1 exiting due to uncaught exception 11-09 08:47:55.556: ERROR/AndroidRuntime(446): java.lang.RuntimeException: An error occured while executing doInBackground() 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at android.os.AsyncTask$3.done(AsyncTask.java:200) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java: 234) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:258) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.FutureTask.run(FutureTask.java:122) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:648) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:673) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.lang.Thread.run(Thread.java:1060) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): Caused by: java.lang.NullPointerException 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at com.android.vending.AssetItemAdapter $ReloadLocalAssetInformationTask.doInBackground(AssetItemAdapter.java: 791) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at com.android.vending.AssetItemAdapter $ReloadLocalAssetInformationTask.doInBackground(AssetItemAdapter.java: 777) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at android.os.AsyncTask$2.call(AsyncTask.java:185) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): ... 4 more 11-09 08:47:55.566: INFO/Process(76): Sending signal. PID: 446 SIG: 3 11-09 08:47:55.566: INFO/dalvikvm(446): threadid=7: reacting to signal 3 11-09 08:47:55.636: INFO/dalvikvm(446): Wrote stack trace to '/data/ anr/traces.txt' 11-09 08:47:55.926: INFO/DumpStateReceiver(76): Added state dump to 1 crashes 11-09 08:47:55.996: INFO/Process(446): Sending signal. PID: 446 SIG: 9 11-09 08:47:56.006: INFO/WindowManager(76): WIN DEATH: Window{433752c8 com.android.vending/com.android.vending.AssetInfoActivity paused=false} 11-09 08:47:56.016: INFO/WindowManager(76): WIN DEATH: Window{43317390 Attention paused=false} 11-09 08:47:56.016: INFO/ActivityManager(76): Process
[android-developers] Re: Invoke call from background service
Hello, Anyone could give me suggestion??? -- 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] NeighbofingCellInfo sdk 2.0
Hello, Could anyone help me understand when API level 5 methods such as getNetworkType() in NeighboringCellInfo will be available to application developers? Unless I am mistaken, at present the getCid() method in NeighobringCellInfo depending on the network in use is not directly usable as it returns values which need to be decoded/unscrambled. The getNetworkType() function is necessary to find out the network is being used and if necessary, as in the case of 3G networks (e.g. sample NeighboringCellInfo entry from a 3G network [[6c at 0], [74 at 0]] ), unscramble the getCid result. I use Eclipse and have updated the SDK using the Android SDK and Android AVD function as instructed. Infact, the 2.0 SDK and API level 5 are listed among installed packages. Thanks. Alex Donnini -- 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] Increase timeout for touch-select vs touch-scroll?
Hi, Is there a way to make highlighting of a row in a listview delayed if the user is simply scrolling the list with their finger? To clarify, when the user puts their finger down to scroll, the intersected row (if any) gets highlighted for a short moment, before it realizes the user is just trying to scroll (then the highlight turns off). It seems like the timeout is too short - iPhone has the same behavior, just seems that the timeout is longer to discern between a real row- select-touch, and just a scroll-touch. Any way to tweak this? You can see the behavior in any of the system apps that have lists, 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: motorola cliq sdk 2.0
ah that is suppose to be that way use setprops via adb On Nov 9, 9:20 am, nEx.Software email.nex.softw...@gmail.com wrote: Another reason I don't beleive the CLIQ is a good development device: The CLIQ does not output Log.v() or Log.d() level logging via LogCat. On Nov 9, 4:39 am, jarkman jark...@gmail.com wrote: Dianne - we have a couple of problems on the CLIQ. In both cases, the APIs are technically working correctly, but the resulting user experience is unfortunate, so these may not be exactly what you are asking for. But, in case you are interested: (1) The CLIQ has a lot of contact data (from facebook and so on) that is not visible through the Contact APIs. From our user's point of view, that results in contacts who simply do not appear in our UI or in contacts with phone numbers that we can't see. They see that experience as broken. We have no workaround for that, apart from hoping that that the CLIQ moves rapidly to 2.0. (2) The CLIQ has no LED colour control, so our LED-colour configuration UI appears broken to our users. The docs do say that LED colour support is optional, but without an API to query for colour support we can't take the UI away automatically. We're fixing that with a special-case CLIQ detector, but that is obviously not a good solution in a amrket with a lot of new phones appearing. Thanks, Richard On Nov 7, 9:00 pm, Dianne Hackborn hack...@android.com wrote: Can you give more detail? The APIs should work the same. If there are changes, we'd really like to know. On Sat, Nov 7, 2009 at 10:51 AM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ is not representative of a normal Android experience. It is buggy, half of the components have been replaced by Motorola. They use their own variants of some APIs. And, I certainly would not recommend it as a user device, personally. As a user of the CLIQ I have been very, very disappointed. So, if you really want just a testing device I would choose something the is not as heavily modified. If you also want to use it as your actual phone, I would choose something less glitchy and more flexible. On Nov 7, 11:10 am, Dianne Hackborn hack...@android.com wrote: On Fri, Nov 6, 2009 at 8:33 PM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ has 1.5 loaded, and it is NOT a good development phone. Trust me. What is wrong with it? Fwiw, one of our goals is that all Android compatible phones should also allow for the full standard development environment. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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 don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: motorola cliq sdk 2.0
Not sure what you mean Fred, can you elaborate? On Nov 9, 8:45 am, Fred Grott(Android Expert, http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: ah that is suppose to be that way use setprops via adb On Nov 9, 9:20 am, nEx.Software email.nex.softw...@gmail.com wrote: Another reason I don't beleive the CLIQ is a good development device: The CLIQ does not output Log.v() or Log.d() level logging via LogCat. On Nov 9, 4:39 am, jarkman jark...@gmail.com wrote: Dianne - we have a couple of problems on the CLIQ. In both cases, the APIs are technically working correctly, but the resulting user experience is unfortunate, so these may not be exactly what you are asking for. But, in case you are interested: (1) The CLIQ has a lot of contact data (from facebook and so on) that is not visible through the Contact APIs. From our user's point of view, that results in contacts who simply do not appear in our UI or in contacts with phone numbers that we can't see. They see that experience as broken. We have no workaround for that, apart from hoping that that the CLIQ moves rapidly to 2.0. (2) The CLIQ has no LED colour control, so our LED-colour configuration UI appears broken to our users. The docs do say that LED colour support is optional, but without an API to query for colour support we can't take the UI away automatically. We're fixing that with a special-case CLIQ detector, but that is obviously not a good solution in a amrket with a lot of new phones appearing. Thanks, Richard On Nov 7, 9:00 pm, Dianne Hackborn hack...@android.com wrote: Can you give more detail? The APIs should work the same. If there are changes, we'd really like to know. On Sat, Nov 7, 2009 at 10:51 AM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ is not representative of a normal Android experience. It is buggy, half of the components have been replaced by Motorola. They use their own variants of some APIs. And, I certainly would not recommend it as a user device, personally. As a user of the CLIQ I have been very, very disappointed. So, if you really want just a testing device I would choose something the is not as heavily modified. If you also want to use it as your actual phone, I would choose something less glitchy and more flexible. On Nov 7, 11:10 am, Dianne Hackborn hack...@android.com wrote: On Fri, Nov 6, 2009 at 8:33 PM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ has 1.5 loaded, and it is NOT a good development phone. Trust me. What is wrong with it? Fwiw, one of our goals is that all Android compatible phones should also allow for the full standard development environment. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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 don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Got 12 Google Wave invitations to use, let me know if you need
Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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: onSearchRequested() doesn't call search activity in 1.5
Hi, Found. I missed the intent receiver in the activity definition: intent-filter action android:name=android.intent.action.SEARCH / category android:name=android.intent.category.DEFAULT / /intent-filter On Oct 18, 11:22 am, junker37 junke...@gmail.com wrote: Any ideas? I am attempting the same thing right now with 1.5 and am seeing the same behavior. On Oct 8, 6:42 am, Miguel Paraz mpa...@gmail.com wrote: Hi, The 1.5 AVD doesn't seem to follow the documentation in:http://developer.android.com/reference/android/app/SearchManager.html which says it's enough to callonSearchRequested() to call thesearch activity. I need to call startSearch() to make it work. However, when I check the source code of Activity.java, onSearchRequested() does call startSearch(). This works in 1.6. Is this a bug in 1.5, or did I miss something? 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] Is there a list of native methods anywhere?
Hi, In the Android Dev Guide, the section about designing for responsiveness mentions that many of the String methods are implemented natively and run 10x100 times faster. Is there an official list of which methods are implemented natively and if not is there any chance of starting one. It would be very useful. http://developer.android.com/guide/practices/design/performance.html#native_methods Thanks S -- 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] Got 12 Google Wave invitations to use, let me know if you need
Hi,send me one.Thanks! Vincent Chan On Tue, Nov 10, 2009 at 00:12, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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.comandroid-developers%2bunsubscr...@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: Got 12 Google Wave invitations to use, let me know if you need
Hi, Can you send one to me cooolma...@gmail.com? Thanks. On Nov 9, 11:12 am, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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] Got 12 Google Wave invitations to use, let me know if you need
Hi i need one tooo. Sujay On Mon, Nov 9, 2009 at 9:47 PM, Vincent Chan venc...@gmail.com wrote: Hi,send me one.Thanks! Vincent Chan On Tue, Nov 10, 2009 at 00:12, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Re: Got 12 Google Wave invitations to use, let me know if you need
I could use one. Thanks! On Mon, Nov 9, 2009 at 11:19 AM, cooolmagic cooolma...@gmail.com wrote: Hi, Can you send one to me cooolma...@gmail.com? Thanks. On Nov 9, 11:12 am, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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.comandroid-developers%2bunsubscr...@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: Got 12 Google Wave invitations to use, let me know if you need
Can you send one to me nathabhis...@gmail.com On Nov 9, 11:12 am, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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] Got 12 Google Wave invitations to use, let me know if you need
Hi Dave, Can you please send me one to caibo...@gmail.com Thanks, Bob On Mon, Nov 9, 2009 at 11:12 AM, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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.comandroid-developers%2bunsubscr...@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: Got 12 Google Wave invitations to use, let me know if you need
Please send one to ander...@phdgaming.com Thanks! On Nov 9, 11:12 am, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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: Got 12 Google Wave invitations to use, let me know if you need
Please send one to inaki.s...@gmail.com Thx 2009/11/9 ander...@phdgaming.com ander...@phdgaming.com Please send one to ander...@phdgaming.com Thanks! On Nov 9, 11:12 am, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Re: Got 12 Google Wave invitations to use, let me know if you need
Please can you send me one gopalbiy...@gmail.com Thanks On Mon, Nov 9, 2009 at 11:30 AM, iñaki inaki.s...@gmail.com wrote: Please send one to inaki.s...@gmail.com Thx 2009/11/9 ander...@phdgaming.com ander...@phdgaming.com Please send one to ander...@phdgaming.com Thanks! On Nov 9, 11:12 am, dave dayong...@gmail.com wrote: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Zoom out on the emulator
Hi all, When I run the emulator with an AVD set to WVGA854, it is far too tall and gets completely cut off my MacBook laptop screen. Is there a way to zoom out via the emulator? E.g. pass a scale value on startup? I know the same thing is possible with BlackBerry, and thought it might exist with Android. I browsed quickly through the options, but could find nothing. Thanks, jsdf -- 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: Override in call-screen - Security Bug or Feature?
Hi Jarman, your project is in part very interesting for me. Could you tell me how you handle incoming calls? I'm interesting about accept or reject a call in my own app. On 4 nov, 23:24, Jarman jarman.andr...@gmail.com wrote: Sorry, I meant she of course, too fast on the keyboard :) This has been resolved, it´s not a bug. This is the response I got when i reported it as a possible security issue: It depends on what you mean by override the in-callscreen. In the discussion groups this *usually* comes up when someone wants to totally replace the in-callUI with a new design (which should still be fully functional, but just look different.) This unfortunately isn't possible in Android 1.x or 2.0 because 3rd party apps aren't (yet) allowed full access to the telephony APIs. But you're just talking about the ability to pop up some other activity on top of the in-callUI. Looking at your app's description, I assume it listens forincomingcallevents, and then eventually launches some other activity on top of the in-callscreen. Sure, there's nothing preventing this; any 3rd party app (with appropriate permissions) can launch new activities whenever it wants. (You're right that a malicious app could do this and be extremely annoying, but the user can always hit HOME, and get back to the real InCallScreen by pressing the green button or selecting the in-call notification.) Also FWIW, this app (and the similar ones also in the market) do require at least a couple of permissions marked as dangerous, so at least the user will see a warning before installing it... Bottom line: no security hole here. It's possible for an app (with the right permissions) to be annoying, but even so it's still fairly easy for the user to recover. On 4 Nov, 20:15, Disconnect dc.disconn...@gmail.com wrote: Didn't the whitepages app come out in the very very first days of the market with this capability? (I didn't use it much, at the time there was no 3g in this area. Plus, submittingincomingphone #s to a 3rd party service was really skeevy.) As an aside, Dianne is a girl's name. :) On Wed, Nov 4, 2009 at 10:47 AM,Jarmanjarman.andr...@gmail.com wrote: I just had a private mail-discussion with Dianne Hackborn and he asked me to put this issue on the Developer forum for further discussion. I have managed to override the in-callscreen from the Java API (i.e. not modifying the source). (If you want to se it happen, download Jarmans ReverseLookup from the Market, it´s free) Reply from Dianne: It can't be done in a supportable way without modifying the source. I don't know how you went about your solution, but there is probably a good chance that it would be broken in a future version of the platform. Actually there could even be a chance of it bring deliberately broken if security concerns get raised (disrupting the standard in-callinformation like this without the user approving is something that is likely to get filed as a security bug in the platform). What do think about this? Best Regards Jarman -- 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
Re: [android-developers] Zoom out on the emulator
jsdf wrote: Hi all, When I run the emulator with an AVD set to WVGA854, it is far too tall and gets completely cut off my MacBook laptop screen. Is there a way to zoom out via the emulator? E.g. pass a scale value on startup? I know the same thing is possible with BlackBerry, and thought it might exist with Android. I browsed quickly through the options, but could find nothing. If you are on Android 2.0, and you are working outside of Eclipse, just run android with no arguments to bring up the AVD Manager. There, when you start, you can specify scaling details to have the emulator run at a more appropriate size. I assume there's some way to get Eclipse to do the same thing, but that's outside of my jurisdiction... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- 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: Increase timeout for touch-select vs touch-scroll?
Actually maybe this is just a state issue - I've set my LinearLayout to have a background like this: Drawable pressed = getContext().getResources().getDrawable (android.R.drawable.list_selector_background); StateListDrawable bg = new StateListDrawable(); bg.addState(View.PRESSED_ENABLED_STATE_SET, pressed); setBackgroundDrawable(bg); is there some other set of flags I should be using instead, which differentiates between 'really' being pressed, and just pressed for scrolling? Thanks On Nov 9, 10:45 am, Mark Wyszomierski mar...@gmail.com wrote: Hi, Is there a way to make highlighting of a row in a listview delayed if the user is simply scrolling the list with their finger? To clarify, when the user puts their finger down to scroll, the intersected row (if any) gets highlighted for a short moment, before it realizes the user is just trying to scroll (then the highlight turns off). It seems like the timeout is too short - iPhone has the same behavior, just seems that the timeout is longer to discern between a real row- select-touch, and just a scroll-touch. Any way to tweak this? You can see the behavior in any of the system apps that have lists, 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] Zoom out on the emulator
emulator -scale 0.5 to scale the emulator window 50% you can also change the scale dynamically at runtime through the console (window scale scale) On Mon, Nov 9, 2009 at 8:39 AM, jsdf jasons...@gmail.com wrote: Hi all, When I run the emulator with an AVD set to WVGA854, it is far too tall and gets completely cut off my MacBook laptop screen. Is there a way to zoom out via the emulator? E.g. pass a scale value on startup? I know the same thing is possible with BlackBerry, and thought it might exist with Android. I browsed quickly through the options, but could find nothing. Thanks, jsdf -- 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.comandroid-developers%2bunsubscr...@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] Mock Framework for Android Testing
Hi all, today I made some research and tries for how to use one of the Mock object Framework for doing TDD with android. I see that Mocking Interfaces works fine with EasyMock and I assume also with other frameoworks (I tried Mockito seems to work fine). Instead, I found mocking classes to be impossibile, I always get strange Initialization errors that in some way or another impair the testing; same thing for mocking statics and finals (but I could live with this, since I don't expect bytecode manipulation to run on Dalvik). What are your experience with this? Did you find workarounds to use one of these powerful framework fully? Thanks a lot for sharing your experiences! -Emanuele -- 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] Run ADB client on diff PC than daemon
Yes, use ssh local port forwarding for tcp:5037 this is the port the server is listening to for client connections. On Mon, Nov 9, 2009 at 7:18 AM, AndyM andrewdm...@gmail.com wrote: Is it possible to have adb client connect to an adb daemon on another machine? My dev environment is on a remote server, but the G1 is connected via USB to my local machine. Thanks Andy -- 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.comandroid-developers%2bunsubscr...@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: Override in call-screen - Security Bug or Feature?
Seems to me if we could come up with a pleasant icon of warning that it is not the default call-screen that my alleviate some problems have the icon clickable with an information screen/toast On Nov 4, 4:24 pm, Jarman jarman.andr...@gmail.com wrote: Sorry, I meant she of course, too fast on the keyboard :) This has been resolved, it´s not a bug. This is the response I got when i reported it as a possible security issue: It depends on what you mean by override the in-call screen. In the discussion groups this *usually* comes up when someone wants to totally replace the in-call UI with a new design (which should still be fully functional, but just look different.) This unfortunately isn't possible in Android 1.x or 2.0 because 3rd party apps aren't (yet) allowed full access to the telephony APIs. But you're just talking about the ability to pop up some other activity on top of the in-call UI. Looking at your app's description, I assume it listens for incoming call events, and then eventually launches some other activity on top of the in-call screen. Sure, there's nothing preventing this; any 3rd party app (with appropriate permissions) can launch new activities whenever it wants. (You're right that a malicious app could do this and be extremely annoying, but the user can always hit HOME, and get back to the real InCallScreen by pressing the green button or selecting the in-call notification.) Also FWIW, this app (and the similar ones also in the market) do require at least a couple of permissions marked as dangerous, so at least the user will see a warning before installing it... Bottom line: no security hole here. It's possible for an app (with the right permissions) to be annoying, but even so it's still fairly easy for the user to recover. On 4 Nov, 20:15, Disconnect dc.disconn...@gmail.com wrote: Didn't the whitepages app come out in the very very first days of the market with this capability? (I didn't use it much, at the time there was no 3g in this area. Plus, submitting incoming phone #s to a 3rd party service was really skeevy.) As an aside, Dianne is a girl's name. :) On Wed, Nov 4, 2009 at 10:47 AM,Jarmanjarman.andr...@gmail.com wrote: I just had a private mail-discussion with Dianne Hackborn and he asked me to put this issue on the Developer forum for further discussion. I have managed to override the in-call screen from the Java API (i.e. not modifying the source). (If you want to se it happen, download Jarmans ReverseLookup from the Market, it´s free) Reply from Dianne: It can't be done in a supportable way without modifying the source. I don't know how you went about your solution, but there is probably a good chance that it would be broken in a future version of the platform. Actually there could even be a chance of it bring deliberately broken if security concerns get raised (disrupting the standard in-call information like this without the user approving is something that is likely to get filed as a security bug in the platform). What do think about this? Best Regards Jarman -- 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: Moving objects by touch..
After more looking (and remembering that in the GUI world I'm talking about drag and drop ;) ) I did find an answer here on the list. It looks like a good starting point. http://www.mail-archive.com/android-developers@googlegroups.com/msg19039.html Guess this is what happens when I try to do work with a headcold... oh well. :) Thanks for reading. On Sun, Nov 8, 2009 at 11:10 PM, David Orriss Jr dav...@codethought.com wrote: I see plenty of apps that do this.. and I've been looking through various source examples (and a few from commonsware, too) but I can't see a real solid example of touching a 'panel' with say a graphic in it while my finger is held down move it on the screen until I release my finger. I also am trying to figure out how I could simulate or have an animation of this effect while it scrolls off the screen in one direction and is replaced by another instances of the same object. An example of what I'm asking about would be the Messages widget view on the Cliq. Can anyone point me at a couple of examples if they have already been discussed on this list or where I could pull something down that shows this from online? Thanks in advance. -- David Orriss Jr. My blog: http://www.codethought.com/blog -- David Orriss Jr. My blog: http://www.codethought.com/blog -- 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: emulator's WVGA854 memory size?
Yes, it only applies to 2.0. On Mon, Nov 9, 2009 at 12:26 AM, String sterling.ud...@googlemail.com wrote: On Nov 9, 3:26 am, Romain Guy romain...@google.com wrote: Devices running in WVGA (at least, devices in WVGA and with a high density display) offer more memory to each process. Droid for instance allows up to 24 MB per process. Note that, in the emulator at least, this only applies to 2.0 AVDs. Instances running 1.6 - even WVGA instances - are still stuck at 16MB, as far as I can see. String -- 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] Event keycodes different from keyboard inputs.
Hi I am writing a program which captures the keys pressed by user in android and writes them to the Linux input.h struct. However, the keycodes of Android keys are different from those of Linux even though they're supposed to be the same (http://www.kandroid.org/android_pdk/ keymaps_keyboard_input.html). For example, when I press 'A' on my Android keyboard, it has a keycode of 29 even though it should be 30 according to qwerty.kl All the other keys have random keycodes as well so there is no way I can create some sort of correlation. Can anyone shed light on this? -- 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: Problems updating my app on Android Market and switching to copy protection
Not to mention that it literally doubles the installed size of your app. On Nov 9, 9:33 am, niko20 nikolatesl...@yahoo.com wrote: I wouldn't bother turning copy protection on, all that does is prevent people that have developer phones from downloading the app. People that have rooted phones can still download it and copy it off their device anyway, so it's pretty much useless. (It's just a folder permission, but rooted users can access any folder) -niko20 On Nov 8, 12:45 pm, RichardC richard.crit...@googlemail.com wrote: Looks like there are some bugs outstanding:http://code.google.com/p/android/issues/detail?id=2047http://code.goo... Also if you search this group for copy protection there are people reporting/discussing issues regarding changing the copy protection setting once an applicaton has already been installed. Looks like it does not work at the moment. Let me/us know if you find a work around. -- RichardC On Nov 8, 5:41 pm, androidDeveloper stepmas...@googlemail.com wrote: I have uploaded an update for my app on Android Market. And at the same time I have enabled the copy protection of the app. When I downloaded my the update, there was an exception and the app crashed. I had to reinstall it. After reinstall it worked fine... Exception was: W/zipro ( 1103): Unable to open zip '/data/app-private/...': Permission denied D/asset ( 1103): failed to open Zip archive '/data/app-private/...' W/ResourceType( 1103): No package identifier when getting value for resource number 0x7f09 Is this a know bug when switching to copy protection? Or is there another reason this error occured? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices
Ah, I didn't realize how you were initializing GL. I'm bad at the EGL config stuff which is why I just use GLSurfaceView. I'm wondering if your problem is there? Consider trying GLSurfaceView and let me know the results. Otherwise, you may want to debug your init to make sure that it's correctly initializing a GL context and surface on the device. On Nov 9, 6:35 am, Mika mts...@googlemail.com wrote: Hi Robert, Will do. Here goes. First part is the sizeChange() when Android screen size changes and it gets called when the application launches. I'd thought I'd paste in the EGL stuff too, not all of it but some of it since it kind of relates to the initialisation. But yeah, the problem still is there. It works fine on emulators but not on the actual device. All the code from below in PasteBin again for easier reading (http://pastebin.com/m484eafe6). // OPENGL INITIALISATION _screenWidth = w; _screenHeight = h; gl.glViewport(0, 0, _screenWidth, _screenHeight); gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST); gl.glClearColor(0, 0, 1, 1); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glMatrixMode(GL10.GL_PROJECTION); // setup OpenGL world coordinates to match screen coordinates GLU.gluOrtho2D(gl, 0, (float)_screenWidth, (float)_screenHeight, 0); // trying to match world coordinates to screen coordinates (tried using (int) too.. no changes :/) // BEFORE RENDERING: gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); // EGL HELPER CLASS THAT TAKES CARE OF GETTING THE CONTEXT FOR OPENGL AND ALL THAT SHAZAM private EGL10 _EGL; private EGLDisplay _display; private EGLSurface _surface; private EGLConfig _configs; private EGLContext _context; // EGL INIT int[] configSpec = { EGL10.EGL_DEPTH_SIZE, 0, EGL10.EGL_NONE }; _EGL = (EGL10) EGLContext.getEGL(); _display = _EGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); int[] version = new int[2]; _EGL.eglInitialize(_display, version); EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; _EGL.eglChooseConfig(_display, configSpec, configs, 1, num_config); _configs = configs[0]; _context = _EGL.eglCreateContext(_display, _configs, EGL10.EGL_NO_CONTEXT, null); _surface = null; But yeah, if anyone knows what's going on or knows what I'm doing wrong I'd be mighty grateful. I feel pretty lost with this one. Cheers again guys. On 9 marras, 00:14, Robert Green rbgrn@gmail.com wrote: I had a problem with Ortho on my phone vs on the emulator at one point as well. Could you post more of your GL initialization code? My problem was something dumb like I was calling orthox using actual screen dimensions when I needed to either use fixed point there or use orthof. On Nov 8, 3:34 pm, Mika mts...@googlemail.com wrote: Hello everyone. Running into REALLY interesting problems with OpenGL ES. Basically when I start my program in 1.5 or 1.6 emulator, it works just fine but on HTC Hero 1.5 it does not. The problem is that the vertices are not being rendered but the gl.glClear() command is working just fine. I followed in with the debugger and it does go into the rendering function and such but still not rendering the vertices... Here is the code in PasteBin (easier to read:http://pastebin.com/m706686e6 ) And here is the same thing pasted here: // VERTICE INIT int one = 65536; int half = one / 2; int vertices[] = { -half, -half, half, half, -half, half, -half, half, half, half, half, half } ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4); vbb.order(ByteOrder.nativeOrder()); mVertexBuffer = vbb.asIntBuffer(); mVertexBuffer.put(vertices); mVertexBuffer.position(0); // AND IN RENDER gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer); gl.glColor4f(1, 0, 0, 1); gl.glScalef(50, 50, 1); gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4); Also I got my projection set in 2D ortho projection to match screen coordinates so that's why scale to 50,50 to actually make a bit bigger. I've tried using glDrawElements and glDrawArrays and nothing on the actual phone but works perfectly fine on the actual emulator. Any ideas where I might be going wrong? Why is the actual phone not rendering the vertices like the emulator is? Am I missing something completely here? -- 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
[android-developers] glReadPixels() with transparent background
Hi everyone. I want to use glReadPixels() to make new texture from current displayed image. But alpha value returned from glReadPixels() is always 255, so I can't make texture with transparency. Here is a part of my code. (in GLSurfaceView.Renderer's onSurfaceCreated()) gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_ALPHA_BITS); object0.draw(gl); object1.draw(gl); x = y = 0; texture_width = texture_height = 128; ByteBuffer pixels = ByteBuffer.allocate(texture_width * texture_height * 4); pixels.order(ByteOrder.nativeOrder()); gl.glReadPixels (x,y,texture_width,texture_height,GL10.GL_RGBA,GL10.GL_UNSIGNED_BYTE, pixels); int[] textureNo = new int[1]; gl.glGenTextures(1, textureNo, 0); gl.glBindTexture(GL10.GL_TEXTURE_2D, textureNo[0]); gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, GL10.GL_RGBA, ts, ts, 0, GL10.GL_RGBA, GL10.GL_UNSIGNED_BYTE, pixels); //end RGB value is OK, but Alpha value is always 255, regardless of the 4th argument of glClearColor and object's transparent region is filled with glClearColor()'s RGB value. Is there any way to make texture with transparency from current displayed image? Thanks for your help. -- 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 can I partecipate to an Android project?
Hi everybody. I'm a student in computer science. I know Java, I don't know Android framework and the design patterns but I wish I learn them. Where can I find an Android project which I might partecipate? I'm sorry for my terrible english. Thank you :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] Problem configuring the app widget with bitmap image using remote views
Hi, I started with developing the resizable photo widget. Every time the widget is resized, i am configuring the widget remote view with the new bitmap image. I am using the same layout file for all resize dimensions with fillparent option for both width and height. But i am facing issues with this, for 4x4 widget size, even if i configure the remote view with valid bitmap, the image is seen cropped on the homeScreen. And sometimes the new bitmap which is set to the remote views will not be seen and instead the old bitmap remains on the screen. Is the appwidgetManager discarding the updates Also, as the APP_WIDGET_UPDATE broadcast wecan get the new dimensions of widget in terms of cells. can anyone tell, how to map the cell values into pixel values(WVGA screen) Any kind of help is appreciable. 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: There is NO AVD Target...
Well I have the same problem here, using Ubuntu 9.10. I'm new to android so I hope someone can help me with this. On Oct 29, 11:40 pm, Nobody111 adam.ornst...@gmail.com wrote: Hi all! Trying to set up my eclipse envirnment to actually be able to try some things out on android... I've installed the sdk, put it in my path variable, installed the ADT, downloaded the developer tools from the eclpise menu.. But... Then I go to the command line, navigate to the tools folder of my sdk, and run android create avd --target 2 --name mine and I get this error: Error: Target id is not valid. Use 'android.bat list targets' to get the target ids. So, I of course happily run the 'android.bat list targets' and get the following message! Available Android Targets: That's it. There are no targets I open the AVD window in eclipse, there are no targets... I click New in that window, and a target is required, but the drop down is disabled because there are NO AVD TARGETS. Any advice? -- 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: There is NO AVD Target...
Can anyone tell me how to do deal with no targets in Linux...checked the ~/.android/avd directory but did not find any files in that so I guess changing permissions will not suffice. 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] Droid phone unable to recognize device
I am having problems installing my app package onto new Driod phone. adb devices is returning the following... ??no permissions defined the rules file 51-andorid.rules for motorola on my ubuntu. SUBSYSTEM==usb_device, SYSFS{idVendor}==22b8, MODE=0666 no recognition of the device. -- 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] SQLite Help
I am having SQLite database which I used in IPhone Application... I want the same database in the Android... I have .sqlite file which I used for IPhone.. How to Import or Reuse that file in my Android Application... -- 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] Figure on transparent background: Change the color?
Hello everybody At the moment I've got an ImageView containing a PNG. This PNG has a colored object with a transparent background. That works well. However, now I'd like to be able to set the color of the object, but STILL have a transparent background. In case this is unclear, I've illustrated my problem: http://talionis.net/metter/android/questions/transparencyquestion.jpg Could anyone tell how to accomplish that? A nudge in the right direction would do :) Thank you in advance. Cheers, Markus -- 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] Need help from Motorola Droid owners to port 3G Watchdog application
Hi all, I'm the developer of 3G Watchdog, an application that monitors 3G traffic. I need help from Motorola Droid owners to port it to that phone. The app gets the network statistics data by reading pseudo-files /sys/ class/net//statistics/rx_bytes and tx_bytes. xxx is the network interface name, which depends on the platform (or rather, the maker), e.g. for HTC phones it is rmnet0, pdp0 for Samsung... I'm looking for the name used by the Droid. If someone with a Droid could look (using adb) at /sys/class/net//statistics/rx_bytes and tell me what the is, it would make 3G Watchdog accessible to Motorola users. BTW, this remark is valid for any other future phone (Ericson, etc...). New Android phones will appear on the market, and I need owner's contribution to port 3GW on them. Thanks in advance. You can also mail me at 3g...@rgruet.net Richard -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't run or debug my app on Eclipse
I've got the same problem. Running Eclipse 3.5.1. This is really annoying, because I can't debug any projects! It even happens with the default SDK samples. On Nov 5, 8:35 pm, Mr. P paulotay...@gmail.com wrote: This is the error that eclipse gives with the latest Android SDK: !ENTRY org.eclipse.core.jobs 4 2 2009-11-05 11:18:45.061 !MESSAGE An internal error occurred during: Launchingandroid. !STACK 0java.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) Environment: Linux myubuntu 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686 GNU/Linux javaversion 1.6.0_13Java(TM) SE Runtime Environment (build 1.6.0_13-b03)JavaHotSpot(TM) Server VM (build 11.3-b02, mixed mode) Any clues on how to solve this error? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App name/icon problems on Hero after reboot
I'm having the same problem with my HTC Hero. The more I dig, the more apps I find that have this problem. My list: Astro APNdroid Google Voice Google Finance Handcent SMS Locale Sipdroid Pandora Barcode Scanner Toodle Droid Voice Recorder It looks like they actually are the old versions of the program and not something visual. I've turned the Sense UI off, installed, uninstalled, power cycled, etc. same stuff. Just a total mess. Bill On Nov 5, 10:37 pm, kmartburrito kmartburr...@gmail.com wrote: Hi everyone, I'm also having issues like these on the HTC Hero, but I think I have something to add. Not only are icons reverting, but the applications THEMSELVES are reverting back to older versions. I've confirmed at least 20 apps that are reverted to old versions after a reboot. In fact, I haven't found a single app that doesn't revert so far. Using Pandora as an example, the initial version was 1.0.0 You can follow this process to replicate: 1. Uninstall the app from the Market, Manage Applicaitons, or Safe Mode 2. Install the new version of the app from the Market. Start up the app and confirm the update was successful. Pandora is easy as it shows the version (1.1.1) on the splash screen at startup. 3. Reboot the HTC Hero. 4. The app will have reverted back to its initially installed version, and the icons will revert to their original states as well. Here's a thread over at the XDA-Developers forum if you want to see other info about it. http://forum.xda-developers.com/showthread.php?t=580268 I hope that HTC takes some responsibility for this, as I can replicate this at will. Something is definitely rotten in the state of Denmark. -Nathan On Nov 4, 1:45 pm, Rafael Sanches ra...@users.sourceforge.net wrote: I have the exact same problem with my application too. The problem is that it seems to erase the app icon. I don't see the icon anywhere else in the phone.. menu, application manager etc. It only happened with my app so far, so it may have something to do with the process of me debugging with the phone and then uninstalling the app (debug different signature) and downloading again from the market. What do you think? thanks rafael On Oct 29, 10:58 am, Dianne Hackborn hack...@android.com wrote: On Thu, Oct 29, 2009 at 10:52 AM, RichardC richard.crit...@googlemail.comwrote: Where is the Android bug reporting site? b.android.com If this is only happening on Hero, it needs to be reported to HTC, not as a generic platform bug. Has anyone tried installing an alternate home app and seeing if it still happens there? I wonder if this is something in their custom home app. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] need help to figure out the issue with emulator on Fedora 10 64 bit. I'm new to this development.
[sjon...@myhome tools]$ strace ./emulator execve(./emulator, [./emulator], [/* 48 vars */]) = 0 brk(0) = 0x8c8a000 readlink(/proc/self/exe, /home/sjonnal/android-sdk-linux/tools/ emulator..., 4096) = 46 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f1f000 access(/etc/ld.so.preload, R_OK) = -1 ENOENT (No such file or directory) open(/home/sjonnal/android-sdk-linux/tools/../lib/tls/i686/sse2/ libX11.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sjonnal/android-sdk-linux/tools/../lib/tls/i686/sse2, 0xffe1e9d0) = -1 ENOENT (No such file or directory) open(/home/sjonnal/android-sdk-linux/tools/../lib/tls/i686/libX11.so. 6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sjonnal/android-sdk-linux/tools/../lib/tls/i686, 0xffe1e9d0) = -1 ENOENT (No such file or directory) open(/home/sjonnal/android-sdk-linux/tools/../lib/tls/sse2/libX11.so. 6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sjonnal/android-sdk-linux/tools/../lib/tls/sse2, 0xffe1e9d0) = -1 ENOENT (No such file or directory) open(/home/sjonnal/android-sdk-linux/tools/../lib/tls/libX11.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sjonnal/android-sdk-linux/tools/../lib/tls, 0xffe1e9d0) = -1 ENOENT (No such file or directory) open(/home/sjonnal/android-sdk-linux/tools/../lib/i686/sse2/libX11.so. 6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sjonnal/android-sdk-linux/tools/../lib/i686/sse2, 0xffe1e9d0) = -1 ENOENT (No such file or directory) open(/home/sjonnal/android-sdk-linux/tools/../lib/i686/libX11.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sjonnal/android-sdk-linux/tools/../lib/i686, 0xffe1e9d0) = -1 ENOENT (No such file or directory) open(/home/sjonnal/android-sdk-linux/tools/../lib/sse2/libX11.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sjonnal/android-sdk-linux/tools/../lib/sse2, 0xffe1e9d0) = -1 ENOENT (No such file or directory) open(/home/sjonnal/android-sdk-linux/tools/../lib/libX11.so.6, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/home/sjonnal/android-sdk-linux/tools/../lib, 0xffe1e9d0) = -1 ENOENT (No such file or directory) open(/etc/ld.so.cache, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=145659, ...}) = 0 mmap2(NULL, 145659, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7efb000 close(3)= 0 open(/usr/lib/libX11.so.6, O_RDONLY) = 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240A \1\0004\0\0\0(..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1049440, ...}) = 0 mmap2(NULL, 1049332, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x111000 mmap2(0x20e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0xfd) = 0x20e000 mmap2(0x211000, 756, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0x211000 close(3)= 0 open(/lib/libutil.so.1, O_RDONLY) = 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \n \0\0004\0\0\0p..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=13208, ...}) = 0 mmap2(NULL, 12420, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x212000 mmap2(0x214000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x1) = 0x214000 close(3)= 0 open(/lib/librt.so.1, O_RDONLY) = 3 read(3, \177ELF \1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\31\0\0004\0\0\0\234..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=46436, ...}) = 0 mmap2(NULL, 37456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x216000 mmap2(0x21e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x7) = 0x21e000 close(3)= 0 open(/lib/libdl.so.2, O_RDONLY) = 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n \0\0004\0\0\0008..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=18568, ...}) = 0 mmap2(NULL, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x22 mmap2(0x223000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x2) = 0x223000 close(3)= 0 open(/lib/libpthread.so.0, O_RDONLY) = 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PH \0\0004\0\0\0\244..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=133780, ...}) = 0 mmap2(NULL, 102880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x225000 mmap2(0x23b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x15) = 0x23b000 mmap2(0x23d000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0x23d000 close(3)= 0 open(/lib/libm.so.6, O_RDONLY)= 3 read(3, \177ELF \1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`4\0\0004\0\0\0\314..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=208276, ...}) = 0
[android-developers] Re: Need an invitation to google Wave?
please gimme one as well, i damn like google wave... shaheryar.a...@gmail.com Thanks, Google Rocks On Nov 7, 5:11 am, Braders dataextr...@hotmail.com wrote: Hi, I would love a Google Wave invite, my email is seobrad...@googlemail.com I would be so gratefull if you could dominate me. Hope you dont mind the post, thanks for your time. Simon Bradley On Nov 7, 12:50 am, Lorys Pognon pognonlo...@gmail.com wrote: Hi I would like to have one On Sun, Nov 1, 2009 at 7:20 AM, Auguste Lunang legraphi...@gmail.comwrote: Hi, i have some google wave. invits to share. tell me if u want .. thx -- 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.comandroid-developers%2Bunsubs 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] Problem configuring the app widget with bitmap image using remote views
Hi, I started with developing the resizable photo widget. Every time the widget is resized, i am configuring the widget remote view with the new bitmap image. I am using the same layout file for all resize dimensions with fillparent option for both width and height. But i am facing issues with this, for 4x4 widget size, even if i configure the remote view with valid bitmap, the image is seen cropped on the homeScreen. And sometimes the new bitmap which is set to the remote views will not be seen and instead the old bitmap remains on the screen. Is the appwidgetManager discarding the updates Also, as the APP_WIDGET_UPDATE broadcast wecan get the new dimensions of widget in terms of cells. can anyone tell, how to map the cell values into pixel values(WVGA screen) Any kind of help is appreciable. 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] Developer Conference-By Nokia
Dear Members, Greetings!! Forum Nokia Developer Conference, is happening on Dec 7, '09 in Bangalore at Hotel Taj Residency. Please find more details at http://bit.ly/26QGQ8 . Why Attend: Networking, Knowledge, Business Opportunities, Inspiration Get the right inputs, insights and network at Forum Nokia Developer Conference ’09. Access all the resources you will ever need to turn your ideas into reality. Get insights from industry leaders. Learn tricks and tips to create applications, faster. Explore the value OVI store has to offer to you as a developer. Besides there is a Nokia N97 up for grabs too. So check it out now! http://bit.ly/26QGQ8 With RegardsThanks, ---Rohit Mishra ---Junior Executive ---Mobile Monday Bangalore Trust ---9379446943 ---http://momob.in -- 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: Working with the new ContactContracts API
I ran into a problem with the new contacts API today that other developers may end up encountering. I bought a Droid and had the contacts from an old phone (not an Android phone) moved over at the store. I'm not sure how they moved over the contacts, but they never linked the phone to a Google account so when I tried to run my app on the phone it could not see any of the contacts. Once I linked to a Google account and added new contacts I could see those contacts with my app but still could not see the transfered contacts. It seems like Google's solution of allowing the legacy contact API to access only the first account does not work in this case. This will likely break some apps for users who move over their contacts in this way. I did come up with a quick solution for my app that seems to solve the problem (at least in the emulator, haven't tried the real phone yet): This code allows the user to pick a phone number from a list of all numbers on the phone. It checks to see if the ContactsContract class exists and if so uses the new URI for phone numbers. Otherwise it uses the old URI. This seems to work for Android 2.0 and also previous versions though I'm not sure if it is the best solution. Anyone have a better way? Intent intent = null; ClassLoader classLoader = DialerContactList.class.getClassLoader(); try { classLoader.loadClass(android.provider.ContactsContract); intent = new Intent(Intent.ACTION_PICK,Uri.parse(content:// com.android.contacts/data/phones)); } catch (ClassNotFoundException e) { } if (intent == null) { intent = new Intent(Intent.ACTION_PICK,Phones.CONTENT_URI); } startActivityForResult(intent, ADD_CONTACT); On Nov 7, 11:16 am, Ravi textlo...@gmail.com wrote: Hi Dmitri, This thread is very helpful and thank you for taking time - believe me I really appreciate your help. Is there any plan that you are aware of that google would publish contacts changes rather than bugging people on groups for the select knolege of supposed to be opensource system ? -- 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 start up error ?
yes,I removed the \tools part from the end of the path ,It worked ,thank Bwrightson. On 10月8日, 上午12时45分, BWrightson brian.wright...@gmail.com wrote: When I first set up the SDK I added the entire path, with \tools at the end, and I got the error message. Then I removed the \tools part from the end of the path I had entered and it worked. Hopefully that helps. -Brian On Oct 7, 5:29 am, GK Gupta gkumar.g...@gmail.com wrote: I have added the /tools directory path to my PATH environmental variable, but even then I am facing this kind of problem frequently. Can anyone help me. On Oct 3, 2:38 am, David M. Lee mingxia...@gmail.com wrote: 我也有同樣的問題。有人建議以下的方法。我將自己試試。 You need to follow the instructions here: file:///C:/android-sdk-windows-1.6_r1/docs/sdk/1.6_r1/installing.html The /tools directory of your Android SDK installation must be added to your PATH environment variable as per the instructions. On 9月16日, 下午10時38分, android.vinny vinny.s...@gmail.com wrote: can any body give the solution for this when i am running the project in eclipse .. at finally showing this message ... ActivityManager: - exec '/system/bin/sh'failed:Badaddress(14) - app is installing but not starting first time automatically. 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] Capturing Screenshots on Sprint HTC Hero (Problems)
I've seen a few guides around that show that people are able to capture screenshots of their phone using the Android SDK tool 'ddms'. I personally haven't been able to accomplish this successfully. I've tried it on 5 different computers running Windows XP Pro, and also with Windows Vista Business and Windows 7 Pro. Each time I'm met with the following: Phone is recognized in ddms. I try to capture the screen, the screenshot box comes up and says screen is not available. The ddms console window shows W/ddms: got partial reply from ADB fb: and then dumps a bunch of zeros on the next line (HEX patterns I believe). I KNOW some of you have been able to capture screens with the Sprint HTC Hero. If that's the case, let's see some information here to try and troubleshoot this. Post operating systems, SDK versions, java versions, and maybe any identifying things about your HTC Hero (Evdo Rev. A or 0? I don't think it'd matter though). Here are a few things I've tried: 1. Several different computers. 2. All 3 32-bit Windows Operating Systems. 3. Rebooting the phone while connected to the PC. 4. Removing the HTC USB driver and installing the one included with the SDK. 5. Factory resetting my phone (in case an app was causing a problem). I really want to see if this is a common issue. App developers need to be able to make these kinds of screen captures, and so do people who run websites and perform other types of press work. I know there are a few programs out there that screen capture if you root your device. I haven't really found a reliable guide for rooting the Hero and I would prefer not to void a warranty here. -- 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: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml
Try: export GDK_NATIVE_WINDOWS=true before you launching the manager. I came across a similar problems with Eclipse since upgrading to Ubuntu 9.10 on my 64-bit machine, this seems to fix most of the problems. On Nov 6, 1:37 pm, Romain Guy romain...@google.com wrote: It's a known issue with SWT and GTK. On Tue, Nov 3, 2009 at 3:19 AM, rcasha rca...@gmail.com wrote: Ok this is weird... it seems that the Android SDK and AVD Manager application recognises the Space bar, BUT NOT THE MOUSE, for certain checkboxes, buttons etc. So... you can enable the http option, and so on, by tabbing to the control and pressing space. On Oct 27, 11:58 pm, garycode garyma...@hotmail.com wrote: Hi, I'm trying to install a platform but when I type android the manager loads then I click Available Software then select thehttps://dl-ssl.google.com/android/repository/repository.xmlrepository I get this error., Failed to fetch URLhttps://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings. So I click the settings tab and select the force through http then click apply and save then nothing happens it doesn't save it because if i then close it and reload it the checkbox is unticked so it's not even using the force through http method. I get the same error if i go straight back to available software. I'm using Fedora and wget can download the xml file using ssl so I don't know why it's getting this https ssl error. Any ideas anyone? 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 -- 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] Localized to: unknown even though I have localized strings
I have default strings under res/values/strings.xml and localized strings at res/values-de/strings.xml and res/values-es/strings.xml . But when I upload the app to the Market, it shows 'Localized to: unknown'! If I run the app in the simulator using the German or Spanish locale, the localized strings show up correctly. 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 2.0 (eclair) source
Anybody had success getting eclair source? On Nov 5, 9:27 am, Eric eric.gerv...@gmail.com wrote: I'm having the same issue. It used to say that there were noeclair branch. Fair enough. However now there is aneclairbranch, only repo fails to get it with the ugly error message outlined by Doug. Eric On Oct 28, 8:50 pm, tu tuqh...@163.com wrote: Yes, I also entered the same error message, some body can help us ASAP? thanks and best regards. On 10月29日, 上午2时53分, Doug dougforp...@gmail.com wrote: Any idea when theeclairsourcewill be available via git? If I try to init a repo with -beclair I get an error stating that the manifest is missing. If I init a repo to head there doesn't seem to be much/anyeclaircode in there. Why do I ask? Well, the docs looks like they're still in the process of being updated (fair enough) but certain methods that have now been deprecated don't seem to have been replaced with ones that perform similar tasks - I need to browse thesourceso I can find out how to get my application working against this new build. (I got the following init command fromhttp://source.android.com/download) $ repo init -u git://android.git.kernel.org/platform/manifest.git -beclair Getting repo ... from git://android.git.kernel.org/tools/repo.git remote: Counting objects: 945, done. remote: Compressing objects: 100% (372/372), done. remote: Total 945 (delta 592), reused 894 (delta 553) Receiving objects: 100% (945/945), 282.14 KiB, done. Resolving deltas: 100% (592/592), done. . . . * [new branch] eclair- origin/eclair . . . From git://android.git.kernel.org/platform/manifest * [new tag]android-1.0 -android-1.0 fatal: manifest 'default.xml' not available fatal: manifest default.xml not found -- 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] Local Service - How to actually invoke methods
Hi I have looked at the Api's demo for local service but it doesn't show how to invoke methods on the service or activity. I got a service that will start and stop a timer but it also laps so I want to send the lap times back to the activity so it can be displayed in a custom view graph. This is just a small part of the program I to write hence the reason its in a service atm, I just want to understand how to call methods from service to activity and vice versa. -- 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 dismiss a Dialog when HOME key is pressed?
I need to dismiss a Dialog when HOME key is pressed, myDialog is shown using handler thread which is active for 5 seconds. I know that we can not interrupt the HOME key. When HOME key is pressed app is starting the HOME activity but myDialog is fullscreen one and shown for 5 seconds then it is dismissed, now Home screen will be shown. I want to dismiss myDialog as soon as HOME key is pressed, any suggestions to do this,... 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] It costs too much time when we continuously call the function setObjectField() in android JNI on pxa310 platform
Hi, We met an issue on android-1.5 platform, based on linux-2.6.28, pxa310 processor. When we use for-loop(e.g. 1024 times) to call the funciton setObjectFied() in android JNI repeatly, we find that it costs much more time on pxa310 platform than other hardwate platform, such as G2 or OPhone. the code: for(int i=0; i len; i++ ) { (env)-SetObjectField(thiz,ival,intarray); } Here are the time they cost: pxa310: call for 1024 times, cost about 3500ms OPhone: call for 1024 times, cost about 780ms G2: call for 1024 times, cost less than 10ms And it costs about 800~1000ms on emulator. In addition, if we only call setObjectFiled( ) for only once or twice, it costs nearly the same time about 10ms on the three hardware platforms above. And if we call setIntField() or setByteField() repeatly, the common type instead of object type, it costs little time on pxa310 too. We analyze that it may in connection with the hardware platform we used. Our CPU has had a very high frequency 800MHZ than other hardware, so we think that is it possible in connection with our compiler? We have tried to use jdk1.5 and jdk1.6 to compile our test apk, the result is the same. But the compiler we use to compile the kernel and android system is android's default compiler: arm- eabi-4.2.1 in android/prebuild/linux-x86/toolchain/, should we need to do some porting job with the compiler according to the hardware platform? Or if it is caused by small memory, how should we configure the memory settings to enlarge the memory for each process in dalvik? Or caused by something else? -- 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