[android-developers] Re: Edit Text
See this link: http://developer.android.com/reference/java/text/NumberFormat.html Regards Android developer Trinay Technology Solutions www.trinaytech.com 5705750475 On Friday, March 1, 2013 5:24:39 PM UTC+5:30, Arun Kumar K wrote: Hi Guys, I have one problem in edit textif i enter the number in edit text i want to display like this 1234-5678-9102-3214 Constrain is Input Type=number maximumlength=19 how can i do this one pls help me -- *Thanks Regards* *K.Arun Kumar* -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Collaboration with Google on creating custom Google Apps
Who should my company contact with, to talk about possibility of creating custom Android apps like GTalk or Play Store. We are about to build Android powered multimedia system for big automotive corporation. The demand is to provide videoconferencing (GTalk app fits perfectly) and independent apps market (Play Store app + Google Play private channel seems to be great solution for us). Is there anyone we could talk to discuss possibility of cooperation? Please help, because this is quite confusing who we should contact first. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Why can't I do complete CTS test?
Following is part of the log: cts-tf run cts --plan CTS 03-07 18:40:43 I/TestInvocation: Starting invocation for 'cts' on build '4.1_r1' on device MSM8625QSKUD 03-07 18:40:43 I/MSM8625QSKUD: Created result dir 2013.03.07_18.40.43 cts-tf d l Saved log to /tmp/Invocation-MSM8625QSKUD_log_6455771818676572237.txt Saved log to /tmp/tradefed_global_log_6716464599333568423.txt 03-07 18:41:25 I/MSM8625QSKUD: Collecting device info 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: Test package android.acceleration started 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: android.acceleration package complete: Passed 0, Failed 0, Not Executed 6 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: Test package android.accessibilityservice started 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: android.accessibilityservice package complete: Passed 0, Failed 0, Not Executed 43 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: Test package android.accessibility started 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: android.accessibility package complete: Passed 0, Failed 0, Not Executed 25 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: Test package android.accounts started 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: android.accounts package complete: Passed 0, Failed 0, Not Executed 28 03-07 18:53:58 I/MSM8625QSKUD: - But I can successfully test individual test packages, as following: cts-tf run cts -p android.acceleration 03-07 19:38:05 I/MSM8625QSKUD: Collecting device info 03-07 19:38:07 I/MSM8625QSKUD: Saved log device_logcat_1202827862364631297.zip 03-07 19:38:07 I/MSM8625QSKUD: Saved log host_log_4468163805907889531.zip 03-07 19:38:07 I/MSM8625QSKUD: Created xml report file at file:///home/ruiling/4.1/android-cts/tools/./../../android-cts/repository/results/2013.03.07_19.37.41/testResult.xml 03-07 19:38:07 I/MSM8625QSKUD: XML test result file generated at 2013.03.07_19.37.41. Passed 0, Failed 0, Not Executed 0 03-07 19:38:07 I/MSM8625QSKUD: Time: 25s 03-07 19:38:07 I/TestInvocation: Starting invocation for 'cts' on build '4.1_r1' on device MSM8625QSKUD 03-07 19:38:07 I/MSM8625QSKUD: Created result dir 2013.03.07_19.38.07 03-07 19:38:33 I/MSM8625QSKUD: Collecting device info 03-07 19:38:34 I/MSM8625QSKUD: - 03-07 19:38:34 I/MSM8625QSKUD: Test package android.acceleration started 03-07 19:38:34 I/MSM8625QSKUD: - 03-07 19:38:36 I/MSM8625QSKUD: android.acceleration.cts.HardwareAccelerationTest#testIsHardwareAccelerated PASS 03-07 19:38:36 I/MSM8625QSKUD: android.acceleration.cts.HardwareAccelerationTest#testNotAttachedView PASS 03-07 19:38:37 I/MSM8625QSKUD: android.acceleration.cts.SoftwareAccelerationTest#testIsHardwareAccelerated PASS 03-07 19:38:37 I/MSM8625QSKUD: android.acceleration.cts.SoftwareAccelerationTest#testNotAttachedView PASS 03-07 19:38:38 I/MSM8625QSKUD: android.acceleration.cts.WindowFlagHardwareAccelerationTest#testIsHardwareAccelerated PASS 03-07 19:38:38 I/MSM8625QSKUD: android.acceleration.cts.WindowFlagHardwareAccelerationTest#testNotAttachedView PASS 03-07 19:38:41 I/MSM8625QSKUD: Saved log device_logcat_5930902592063450351.zip 03-07 19:38:41 I/MSM8625QSKUD: Saved log host_log_4479861919159683005.zip 03-07 19:38:41 I/MSM8625QSKUD: android.acceleration package complete: Passed 6, Failed 0, Not Executed 0 03-07 19:38:41 I/MSM8625QSKUD: Created xml report file at file:///home/ruiling/4.1/android-cts/tools/./../../android-cts/repository/results/2013.03.07_19.38.07/testResult.xml 03-07 19:38:41 I/MSM8625QSKUD: XML test result file generated at 2013.03.07_19.38.07. Passed 6, Failed 0, Not Executed 0 03-07 19:38:41 I/MSM8625QSKUD: Time: 33s -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Why can't I do complete CTS test?
Please visit http://source.android.com and post your question on a relevant Google Group. This group is for developing apps with the Android SDK. On Thu, Mar 7, 2013 at 6:47 AM, Enrico pagegu...@gmail.com wrote: Following is part of the log: cts-tf run cts --plan CTS 03-07 18:40:43 I/TestInvocation: Starting invocation for 'cts' on build '4.1_r1' on device MSM8625QSKUD 03-07 18:40:43 I/MSM8625QSKUD: Created result dir 2013.03.07_18.40.43 cts-tf d l Saved log to /tmp/Invocation-MSM8625QSKUD_log_6455771818676572237.txt Saved log to /tmp/tradefed_global_log_6716464599333568423.txt 03-07 18:41:25 I/MSM8625QSKUD: Collecting device info 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: Test package android.acceleration started 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: android.acceleration package complete: Passed 0, Failed 0, Not Executed 6 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: Test package android.accessibilityservice started 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: android.accessibilityservice package complete: Passed 0, Failed 0, Not Executed 43 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: Test package android.accessibility started 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: android.accessibility package complete: Passed 0, Failed 0, Not Executed 25 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: Test package android.accounts started 03-07 18:53:58 I/MSM8625QSKUD: - 03-07 18:53:58 I/MSM8625QSKUD: android.accounts package complete: Passed 0, Failed 0, Not Executed 28 03-07 18:53:58 I/MSM8625QSKUD: - But I can successfully test individual test packages, as following: cts-tf run cts -p android.acceleration 03-07 19:38:05 I/MSM8625QSKUD: Collecting device info 03-07 19:38:07 I/MSM8625QSKUD: Saved log device_logcat_1202827862364631297.zip 03-07 19:38:07 I/MSM8625QSKUD: Saved log host_log_4468163805907889531.zip 03-07 19:38:07 I/MSM8625QSKUD: Created xml report file at file:///home/ruiling/4.1/android-cts/tools/./../../android-cts/repository/results/2013.03.07_19.37.41/testResult.xml 03-07 19:38:07 I/MSM8625QSKUD: XML test result file generated at 2013.03.07_19.37.41. Passed 0, Failed 0, Not Executed 0 03-07 19:38:07 I/MSM8625QSKUD: Time: 25s 03-07 19:38:07 I/TestInvocation: Starting invocation for 'cts' on build '4.1_r1' on device MSM8625QSKUD 03-07 19:38:07 I/MSM8625QSKUD: Created result dir 2013.03.07_19.38.07 03-07 19:38:33 I/MSM8625QSKUD: Collecting device info 03-07 19:38:34 I/MSM8625QSKUD: - 03-07 19:38:34 I/MSM8625QSKUD: Test package android.acceleration started 03-07 19:38:34 I/MSM8625QSKUD: - 03-07 19:38:36 I/MSM8625QSKUD: android.acceleration.cts.HardwareAccelerationTest#testIsHardwareAccelerated PASS 03-07 19:38:36 I/MSM8625QSKUD: android.acceleration.cts.HardwareAccelerationTest#testNotAttachedView PASS 03-07 19:38:37 I/MSM8625QSKUD: android.acceleration.cts.SoftwareAccelerationTest#testIsHardwareAccelerated PASS 03-07 19:38:37 I/MSM8625QSKUD: android.acceleration.cts.SoftwareAccelerationTest#testNotAttachedView PASS 03-07 19:38:38 I/MSM8625QSKUD: android.acceleration.cts.WindowFlagHardwareAccelerationTest#testIsHardwareAccelerated PASS 03-07 19:38:38 I/MSM8625QSKUD: android.acceleration.cts.WindowFlagHardwareAccelerationTest#testNotAttachedView PASS 03-07 19:38:41 I/MSM8625QSKUD: Saved log device_logcat_5930902592063450351.zip 03-07 19:38:41 I/MSM8625QSKUD: Saved log host_log_4479861919159683005.zip 03-07 19:38:41 I/MSM8625QSKUD: android.acceleration package complete: Passed 6, Failed 0, Not Executed 0 03-07 19:38:41 I/MSM8625QSKUD: Created xml report file at file:///home/ruiling/4.1/android-cts/tools/./../../android-cts/repository/results/2013.03.07_19.38.07/testResult.xml 03-07 19:38:41 I/MSM8625QSKUD: XML test result file generated at 2013.03.07_19.38.07. Passed 6, Failed 0, Not Executed 0 03-07 19:38:41 I/MSM8625QSKUD: Time: 33s -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop
[android-developers] Re: Collaboration with Google on creating custom Google Apps
http://code.google.com/team/ On Thursday, March 7, 2013 1:38:22 PM UTC+2, Jacek Wywrot wrote: Who should my company contact with, to talk about possibility of creating custom Android apps like GTalk or Play Store. We are about to build Android powered multimedia system for big automotive corporation. The demand is to provide videoconferencing (GTalk app fits perfectly) and independent apps market (Play Store app + Google Play private channel seems to be great solution for us). Is there anyone we could talk to discuss possibility of cooperation? Please help, because this is quite confusing who we should contact first. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Can any one please share the code to decryption the string with key(32 bytes)
Hi All, Can any one please share the code to decryp the string with key(32 bytes). Thanks C.Remo -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Handling SQLiteOpenHelper
Hi All, How many SQLiteOpenHelper instances should be created? Should there be just one and should it be reused? Or do I create an instance for each of my Usecase/ operation? Thanks in advance! Regards, Saurav Mukherjee. Twitter https://twitter.com/#!/fasuke Facebook https://www.facebook.com/fuusuke -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Handling SQLiteOpenHelper
On Thu, Mar 7, 2013 at 9:54 AM, Saurav to.saurav.mukher...@gmail.com wrote: How many SQLiteOpenHelper instances should be created? Should there be just one and should it be reused? Ideally, yes, particularly if you are planning on accessing the database from multiple threads. One SQLiteOpenHelper instance means one SQLiteDatabase instance, and SQLiteDatabase is designed to manage operations from multiple threads. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Handling SQLiteOpenHelper
Just be careful closing the database - if you have multiple threads sharing an instance of a single SQLiteOpenHelper, the SQLiteDatabase mDatabase isn't like a jdbc connection pool. If you close it fron one thread, it's closed for real. ...and of course, if you don't close it, it whines. Larry On Thu, Mar 7, 2013 at 8:07 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Mar 7, 2013 at 9:54 AM, Saurav to.saurav.mukher...@gmail.com wrote: How many SQLiteOpenHelper instances should be created? Should there be just one and should it be reused? Ideally, yes, particularly if you are planning on accessing the database from multiple threads. One SQLiteOpenHelper instance means one SQLiteDatabase instance, and SQLiteDatabase is designed to manage operations from multiple threads. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Would you like to help others be healthier through programming? Join the team at ASU to use your programming skills to help the cause!
Hello, We, the faculty of the ASU School of Nutrition and Health Promotionhttp://healthpromotion.asu.edu/ need an amazing design-focused engineer; an engineer who wants to have impact in health technologies and change the world for the better. We are working collectively on trying to solve complex societal problems like childhood obesity, chronic physical inactivity, poor sleep, improving the design of cities to make them healthier, more environmentally sustainable, and livable, and improving access to food for those most in need. To do this, a key part of our collective work involves the use of mobile and web technologies to foster these sorts of societal changes. We need a passionate developer interested in changing the world with us to make it happen though! We are seeking applicants for a* mobile software programmer*, preferably living or willing to live in the Phoenix Metro area. This programmer would be the second programmer hired within the School's nascent Programming Core, headed by Henry Barto. For this position, the programmer will be working with research faculty http://healthpromotion.asu.edu/facultyand students within the school to design and develop a variety of different mobile and other software tools broadly focused on promoting healthier living (e.g., see designinghealth.org for a list of past research focused on technology and behavior change conducted by one of the faculty). For full details and benefits and to apply, see * https://www.asu.edu/go/employment/?auth=guestjobid=30414SiteId=1PostingSeq=1 * If you have any questions, please email the head of the search committee, Eric Hekler, at ehek...@asu.edu. Thank you, Eric -- Eric Hekler, Ph.D. Assistant Professor School of Nutrition and Health Promotion Arizona State University 500 North 3rd St. room 121 Phoenix, AZ 85004 Office # (602) 827-2271 Fax: (602) 827-2253 Email: ehek...@asu.edu http://www.designinghealth.org/ -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Problem while facebook login through my app
Hi; I am not able to log-in to Facebook through my android app (*tried from phone as well as on emulator)*, I am getting error your app is not correctly configured. I am getting this problem only if *Facebook native apk * is installed. I look for android hash key and app id many times and everything seems OK to me. I am not getting, is there anything else which can be the cause of this problem. Please suggest :) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] API to access remove a device administrator
I want to write an app that will do the following when run: 1. remove a device administrator (manually on the device can go to Settings-Security-Device Administrators) and uncheck 2. remove an application and all data 3. I want to do the following in order 1. Applications-clear cache 2. drop/clear all application data 3. force stop the application 4. then remove the application 4. I then want to download and re-install the application (from Google Play or a direct url to a .apk that I have). Are there api's to do any of the above (just looking to be pointed in the right direction. thanks J.V. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] API to access remove a device administrator
On Thu, Mar 7, 2013 at 12:48 PM, JavaSrvcs jvsr...@gmail.com wrote: I want to write an app that will do the following when run: remove a device administrator (manually on the device can go to Settings-Security-Device Administrators) and uncheck This is not possible via the SDK. The user is welcome to uncheck that checkbox manually. Applications-clear cache There's a hook for that somewhere, though I forget where off the top of my head. drop/clear all application data This is not possible via the SDK. Moreover, it is not necessary if you are going to remove the application. force stop the application This is not possible via the SDK. Moreover, it is not necessary if you are going to remove the application. then remove the application You can begin an uninstall from the SDK via startActivity() and an appropriate UNINSTALL Intent, but the user has to be involved in the process. I then want to download and re-install the application (from Google Play or a direct url to a .apk that I have). You can download and begin an install from the SDK via startActivity() and an Intent with the proper Uri (and MIME type for a local APK file), but the user has to be involved in the process. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Receiving Intent
activity android:label=@string/app_name android:name=.EZPaddActivity intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / data android:scheme=file / data android:mimeType=text/* / /intent-filter /activity My app shows in the list for text files, I launch the file from a file manager such as ES File Explorer or IO File Manager: I click the file in the file manager at /mnt/sdcard/test.txt, the app list shows up, I click my app, it says it could not find /mnt/sdcard/mnt/sdcard/test.txt On Wednesday, March 6, 2013 11:08:32 PM UTC-6, TreKing wrote: You need to provide more information. On Wed, Mar 6, 2013 at 10:33 PM, TWProgrammers ip.pro...@gmail.comjavascript: wrote: I am trying to get the file path of the intent. What intent? Everything I find doesn't seem to work. Like what? However if I open a file in /mnt/sdcard/test.txt Open a file how? it tries to open /mnt/sdcard/mnt/sdcard/test.txt What is it? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Receiving Intent
On Thu, Mar 7, 2013 at 3:03 PM, TWProgrammers ip.progra...@gmail.com wrote: My app shows in the list for text files, I launch the file from a file manager such as ES File Explorer or IO File Manager: I click the file in the file manager at /mnt/sdcard/test.txt, the app list shows up, I click my app, it says it could not find /mnt/sdcard/mnt/sdcard/test.txt Apparently there is a bug in your Java code where you are opening the file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: API to access remove a device administrator
Thanks for all the help Mark: Is there a process to request things be put in the SDK, for example the things listed below that cannot now be accomplished? remove a device administrator (even if something pops up for the user to confirm the removal, just need something that starts the process) On Thursday, March 7, 2013 10:48:13 AM UTC-7, JavaSrvcs wrote: I want to write an app that will do the following when run: 1. remove a device administrator (manually on the device can go to Settings-Security-Device Administrators) and uncheck 2. remove an application and all data 3. I want to do the following in order 1. Applications-clear cache 2. drop/clear all application data 3. force stop the application 4. then remove the application 4. I then want to download and re-install the application (from Google Play or a direct url to a .apk that I have). Are there api's to do any of the above (just looking to be pointed in the right direction. thanks J.V. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: API to access remove a device administrator
On Thu, Mar 7, 2013 at 4:33 PM, JavaSrvcs jvsr...@gmail.com wrote: Thanks for all the help Mark: Is there a process to request things be put in the SDK, for example the things listed below that cannot now be accomplished? You are welcome to do that engineering yourself, for your own ROM mods. If you wish, in turn, to attempt to contribute those changes back to the Android Open Source Project, instructions for doing so can be found on http://source.android.com. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: API to access remove a device administrator
There's a process in that you can report a bug. But personally unless you provided a patch that seems very generally applicable to vanilla Android, it's highly unlikely it would ever be implemented. (So basically, no.) Kris On Thu, Mar 7, 2013 at 4:33 PM, JavaSrvcs jvsr...@gmail.com wrote: Thanks for all the help Mark: Is there a process to request things be put in the SDK, for example the things listed below that cannot now be accomplished? remove a device administrator (even if something pops up for the user to confirm the removal, just need something that starts the process) On Thursday, March 7, 2013 10:48:13 AM UTC-7, JavaSrvcs wrote: I want to write an app that will do the following when run: remove a device administrator (manually on the device can go to Settings-Security-Device Administrators) and uncheck remove an application and all data I want to do the following in order Applications-clear cache drop/clear all application data force stop the application then remove the application I then want to download and re-install the application (from Google Play or a direct url to a .apk that I have). Are there api's to do any of the above (just looking to be pointed in the right direction. thanks J.V. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to programatically install an app (apk)
I am looking for two examples (have searched all over, found many examples and nothing works). Inside an activity, I want to be able to install an app From the Google Play Store From a url: http://host/path_to/app.apk I tried this: apkurl is defined above as private String apkurl = http://host/path_to/app.apk;; this following method called from onCreate() ... private void installApp() { try { Intent promptInstall = new Intent(Intent.ACTION_VIEW) .setData(Uri.parse(apkurl)) .setType(application/vnd.android.package-archive); startActivity(promptInstall); } catch (Exception e) { e.printStackTrace(); } When the above code is run, I get this exception in the debugger // android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW typ=application/vnd.android.package-arc } I am also looking for a way to install an app via the market URI, I have tried half a dozen examples and nothing works. If there is an Intent that I can run that will install an apk from the market for from a direct url link to an apk, please advise. Spinning my wheels here to get this to work and any help would be appreciated. thanks J.V. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to programatically install an app (apk)
I realize this will have to involve the user and a prompt screen will show up; this is OK. On Thursday, March 7, 2013 3:52:41 PM UTC-7, JavaSrvcs wrote: I am looking for two examples (have searched all over, found many examples and nothing works). Inside an activity, I want to be able to install an app From the Google Play Store From a url: http://host/path_to/app.apk I tried this: apkurl is defined above as private String apkurl = http://host/path_to/app.apk;; this following method called from onCreate() ... private void installApp() { try { Intent promptInstall = new Intent(Intent.ACTION_VIEW) .setData(Uri.parse(apkurl)) .setType(application/vnd.android.package-archive); startActivity(promptInstall); } catch (Exception e) { e.printStackTrace(); } When the above code is run, I get this exception in the debugger // android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW typ=application/vnd.android.package-arc } I am also looking for a way to install an app via the market URI, I have tried half a dozen examples and nothing works. If there is an Intent that I can run that will install an apk from the market for from a direct url link to an apk, please advise. Spinning my wheels here to get this to work and any help would be appreciated. thanks J.V. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How to programatically install an app (apk)
On Thu, Mar 7, 2013 at 5:52 PM, JavaSrvcs jvsr...@gmail.com wrote: Inside an activity, I want to be able to install an app From the Google Play Store From a url: http://host/path_to/app.apk These are mutually exclusive. One URL can *either* point to the Play Store *or* point to your own Web site, not both. Moreover, there is no way to point to the Play Store to trigger an immediate download AFAIK. When the above code is run, I get this exception in the debugger // android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW typ=application/vnd.android.package-arc That's because you did not download the APK file. The installer will not handle http: Uri values. You need to download the APK yourself to external storage, then trigger an install of the downloaded APK. I am also looking for a way to install an app via the market URI, I have tried half a dozen examples and nothing works. That's not supposed to work. You can lead the user to the Play Store page for an app, but you cannot force the user to download it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to block an Intent/Action until complete?
I have an Activity that calls two methods: uninstallApp(); installApp(); The uninstallApp() runs and presents a confirmation dialog and then gets overlayed by an installation dialog. How do I block/pause the uninstallApp() dialog until that is complete before the app begins to install? If the app is not on the device, I should not get a confirmation dialog, it should just continue. However if the app is on the device, I want to confirm, delete the app and reload from the app store or from a url or from an apk on my sdcard. For some reason the are you sure you want to uninstall pops up and gets overlayed by the app store page to install the app (method call right after). J.V. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How to block an Intent/Action until complete?
On Thu, Mar 7, 2013 at 7:28 PM, JavaSrvcs jvsr...@gmail.com wrote: I have an Activity that calls two methods: uninstallApp(); installApp(); The uninstallApp() runs and presents a confirmation dialog and then gets overlayed by an installation dialog. How do I block/pause the uninstallApp() dialog until that is complete before the app begins to install? You can't. You will need to wait until you receive word from the OS, from an ACTION_PACKAGE_REMOVED broadcast, that the uninstall was done by the user, before you proceed trying to install the app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Receiving Intent
It just clicked what my problem was, I used: file = new File(CurDir, startFile); instead of: file = new File(startFile); because I just copied and pasted. I was going to reply I used the exact same code from opening inside the app, which made me think and backtrack my code. Thank you for helping me find this. On Thursday, March 7, 2013 2:24:18 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Thu, Mar 7, 2013 at 3:03 PM, TWProgrammers ip.pro...@gmail.comjavascript: wrote: My app shows in the list for text files, I launch the file from a file manager such as ES File Explorer or IO File Manager: I click the file in the file manager at /mnt/sdcard/test.txt, the app list shows up, I click my app, it says it could not find /mnt/sdcard/mnt/sdcard/test.txt Apparently there is a bug in your Java code where you are opening the file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] std::locale().name() returns C
std::locale().name() and std::locale().name() are both returning C on a JellyBean phone, instead of the expected En_US. Is it possible to get to the user's locale from C++ code? Thanks, Shri -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] std::locale().name() returns C
You may be better served asking this on the android-ndk Google Group, which is for NDK questions. On Thu, Mar 7, 2013 at 7:49 PM, Shri shri.bo...@gmail.com wrote: std::locale().name() and std::locale().name() are both returning C on a JellyBean phone, instead of the expected En_US. Is it possible to get to the user's locale from C++ code? Thanks, Shri -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Problem while facebook login through my app
because other facebook application is installed .in sdk only single signin is allowed On 7 Mar 2013 22:28, Bajrang Asthana asthana.bajr...@gmail.com wrote: Hi; I am not able to log-in to Facebook through my android app (tried from phone as well as on emulator), I am getting error your app is not correctly configured. I am getting this problem only if Facebook native apk is installed. I look for android hash key and app id many times and everything seems OK to me. I am not getting, is there anything else which can be the cause of this problem. Please suggest :) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] meanings of Android GC log messages
First I'd like to paste some GC log messages here for Honeycomb . 03-08 01:31:54.354: D/dalvikvm(258): GC_CONCURRENT freed 196K, 5% free 7078K/7431K, paused 3ms+3ms 03-08 01:31:54.494: D/dalvikvm(258): GC_FOR_ALLOC freed 4K, 5% free 7073K/7431K, paused 75ms 03-08 01:31:54.494: I/dalvikvm-heap(258): Grow heap (frag case) to 7.391MB for 411152-byte allocation I have 4 questions here. 1. I have watch the video Android Memory Management in Google i/o 2011,but I am still not clear about 5% free 7078K/7431K.It means we use 7078K in 7431K heap size,But what does 7431K mean here? Because I notice that 7431K will be up to a large number. Is there any policy for this number?If it means total heap size,it should be 16M or 32M or something like that. 2. Honeycomb also has message like Grow heap (frag case) to 7.391MB for 411152-byte allocation, which Gingerbread does not have.What does it mean? 3. GC log messages in Honeycomb and later does not show external memory information like external xxxK/xxxK,why? 4. I also notice that in ICS and later version,GC log message also has a total time like GC_FOR_ALLOC freed 190K, 13% free 5409K/6164K, paused 67ms, total 71ms,but here alloc gc's total time is larger than paused time,and sometimes you will notice that total time would be much larger than paused time.Why? Any 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Fwd: Notification from Google Play - removed apps
On Thu, Mar 7, 2013 at 12:59 AM, Rakesh Jha rkjhaw1...@gmail.com wrote: Please let me know what to do in this situation, last night i added some keyword, so please let me know what to do. Read the email and follow the instructions given within. There's nothing anyone here can do for you. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] My BroadcastReceiver receiver not getting called after phone boots, any ideas?
I have implemented an AlarmManager that triggers and Alarm Receiver once per day at 5 pm. This worked fine, but I noticed that when I rebooted my phone, the alarm never went off again. Is right? Should powering off cancel the nofication? Intent launchIntent = new Intent(this, MyAlarmReceiver.class); PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, launchIntent, 0); AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); long interval = 8640; // the interval is one day long firstTime = 0; // create a Calendar object to set the real time at which the alarm // should go off Calendar alarmTime = Calendar.getInstance(); Calendar now = Calendar.getInstance(); alarmTime.setTimeInMillis(now.getTimeInMillis() + 1); firstTime = alarmTime.getTimeInMillis(); // Repeat every day at 5pm alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, interval, pendingIntent); } catch(Exception e){ } So to fix I attempt to get the receiver to also go off when the phone boots. I have the following in the manifest: In my AndroidManifest.xml I have the following: receiver android:name=.MyAlarmReceiver android:label=Notifications intent-filter action android:name=android.intent.action.BOOT_COMPLETED / action android:name=android.intent.action.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE / action android:name=android.intent.action.ALTERNATIVE / category android:name=android.intent.category.ALTERNATIVE / /intent-filter /receiver My receiver is not getting called after the phone boots, at least I don't see the toast and the vibrate. Any ideas Finally, on my onReceive I want to do something that requires the network. When my onReceive does get called after the phone boots, how do I make sure the network is there before I proceed to hit the website I'm reading from. Thanks! public class MyAlarmReceiver extends BroadcastReceiver { ... @Override public void onReceive(Context context, Intent intent) { Toast.makeText(context, Don't panik but your time is up., Toast.LENGTH_LONG).show(); // Vibrate the mobile phone Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); vibrator.vibrate(2000); receivedContext = context; getEvents(); } }; pawpaw17 -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: setAutoExposureLock method is not found in ICS
On Mar 6, 7:42 pm, Mark Murphy mmur...@commonsware.com wrote: Why not set your build target to API Level 14 and just call the method, wrapping your calls in a Build.VERSION.SDK_INT check? Why are you messing around with reflection games? hi Mark I copied the code template from some old code found online. I wasn't aware of Build.VERSION.SDK_INT. It is definitely the better way to go. thanks a lot Qianqian On Wed, Mar 6, 2013 at 7:21 PM, Qianqian Fang fan...@gmail.com wrote: hi list I am working on a camera program where I want to call setAutoExposureLock() is supported. To make this backward compatible, I used some sample code I found online to check the presence of this method first. The code snippet is below: ... try{ Class c = Class.forName(android.hardware.Camera); Method spcwb = null; Method[] m = c.getMethods(); for (int i = 0; i m.length; i++) { if (m[i].getName().compareTo(setAutoExposureLock) == 0) { spcwb = m[i]; break; } } if (spcwb != null) { Object[] arglist = new Object[1]; arglist[0] = tf; spcwb.invoke(cm, arglist); Log.i(TAG, setAutoExposureLock: Called method); } else { Log.i(TAG, setAutoExposureLock: Did not find method); } }catch(...){...} however, I tried this on both Nexus S (ICS 4.1) and Nexus 4 (ICS 4.2), the above code returned not found. Shouldn't setAutoExposureLock be supported by 4.0.3 and newer? I directly called this method for my Nexus 4, it worked. But I'd like to make this work for older phones. I changed the class name to android.hardware.Camera.Parameters, it did not help. did I miss anything? Qianqian -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visithttps://groups.google.com/groups/opt_out. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] help needed
hi.., in TimepickerDialog display.setText() function is not working in my android app.is there any other procedure to execute it... -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Tapping the overflow button make the action mode finish.
Thanks! I konwn. 2013/3/6 Mark Murphy mmur...@commonsware.com Action modes and the overflow menu do not work together, last I tried. I have filed an issue on it: https://code.google.com/p/android/issues/detail?id=23381 On Wed, Mar 6, 2013 at 3:13 AM, Hilda Chen hilda.chen0...@gmail.com wrote: Dear All: I have added some menu items to action mode of EditText, and two menu items gone to overflow. But when I tapped the overflow button, the action mode disappeared at once. Why? Thanks! Hilda -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.6 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Hilda Thanks and Regards! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.