[android-developers] How to hide apps in the launcher?
Hi All, In some of the launchers, there is an option to hide apps from the launcher. Any idea how this can be done? I want to hide other apps while my apps is running. Is this possible? Is there any other method to do this? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Accessing Front and Back Camera at the same time
Hi All, I want to access the front and back camera at the same time. Is this possible? From what I tested, this could not be done. It crashes if an application is already accessing the back camera and another app is trying to access the front camera. But what I don't understand is why is there such a limitation? Isn't front and back cameras are two different pieces of hardware? Or can this be done and am I wrong? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Switch Camera in Android
Hi All, I am following the sample available at: http://developer.android.com/guide/topics/media/camera.html for developing an camera application. This app shows a camera preview and a button and when user clicks on the button picture is taken and saved and camera preview is shown again. But I want to switch to the front camera now. Any idea how to do this? It is possible to start with either front or back camera but I could not change it on the fly as if I call a new camera instance the app crashed. Any idea how this can be done? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to auto start capturing of picture using native camera?
Hi TreKing, Yes, thanks. Now I am using my own code using sample from: http://developer.android.com/guide/topics/media/camera.html, now the picture is taken upon the click of a button. Not sure how to automate this. Any idea how this can be done? I tried to just remove the button, but the app crashes. Thanks In Advance, Perumal On Thursday, April 12, 2012 11:04:01 PM UTC+8, TreKing wrote: On Thu, Apr 12, 2012 at 1:22 AM, perumal316 perumal...@gmail.com wrote: Can this be done? After starting the camera, how do I initiate this? So that user need not click anything to start the photo taking process. Maybe implement your own Camera instead of relying on the built in one. - 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
[android-developers] How to reduce size of JPEG Image in Android
Hi All, In my application, I am invoking the camera application and taking a picture and saving it in a particular directory (E.g. /sdcard etc) The picture is saved as a JPEG image. How do I reduce the size of the image? Is there any available image encoder or compression available? I came across another posting at: http://stackoverflow.com/questions/8757341/android-reduce-size-of-camera-picture But this is scaling the image. I am looking for something that can compress or encode. Is it possible? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Saving JPEG images as a Video in Android
Hi All, Supposedly, using my application I take a few images which will be saved at a particular directory and saved as JPEGs. IS it possible to pack these images together? Like into a video or tar or zip? So that I can send send these images to a backend (E.g. web server). Is this possible? Or I could only send them 1 by 1? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 auto start capturing of picture using native camera?
Hi All, Upon starting my Android app, I want to auto start the native camera (can be done using intents) and start taking pictures automatically for every few seconds. Can this be done? After starting the camera, how do I initiate this? So that user need not click anything to start the photo taking process. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] I can see created text file using adb shell but not in PC when mounted?
Hi All, In my application, I will be creating a log file (text file) in the /sdcard of the device. Using adb shell, if I navigate to the /sdcard directory, I could see the created text file and by doing a cat I could read the contents But if I mount the device and navigate to the drive, the file is not visible there. Any idea why? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to make sure SMS is sent in Android
Hi All, In my application there will be a notification sms send upon an action. Now how do I make sure that the SMS will be sent? For example, if there is no network or sim card removeed, how do I ensure that the sms will be sent once there is a network available at a later time? Is it possible to add the sms to the queue? Is this possible? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to disable the installation of device administrator application?
Hi Mark, Yes, malware could exploit this but creating own firmware for organisations may be only feasible if they want to issue the phones to the users and firmware update, security patches all needs to be taken care of. Even though device administrator functionality provides some policies that can be used to control the device, by allowing users to uninstall it, makes it bypassable by users. How about using another device admin app to monitor the first app. If the first app gets uninstalled, it will trigger and send a notification to the administrator etc. Not sure, whether this is feasible? Can this be done? Thanks and Regards, Perumal On Friday, March 9, 2012 9:18:09 PM UTC+8, Mark Murphy (a Commons Guy) wrote: On Fri, Mar 9, 2012 at 5:45 AM, perumal316 perumal...@gmail.com wrote: Is there any way this can be prevented? Like a password is required to disable the device administrator? I hope not. Otherwise, malware will use this to block being uninstalled. Can this be done? Is there any other way? Create your own firmware and put the device admin app in the firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to disable the installation of device administrator application?
Hi All, We can create device administrator application which supposedly have escalated privileges to enforce certain policies like password quality, device encryption etc. See: http://developer.android.com/guide/topics/admin/device-admin.html But for example the device is provisioned the first time by the administrator (administrator install the app for user) and the device is passed to the user, it can be easily disabled (Under Settings - Security - Device Administrator) or even uninstalled. Is there any way this can be prevented? Like a password is required to disable the device administrator? Can this be done? Is there any other way? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] USB Webcam
Hi All, Is it possible to plug in a USB Webcam to an Android tablet that has USB host? I tried and nothing happens. If I plug in a thumbdrive, the contents can be viewed using File Manager, but nothing happens for USB Webcams, could be due to lack of drivers? Has anyone got it to work? How about the drivers? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: USB Webcam
Hi Saurabh, I am trying in Novo 7 Advanced running on ICS. It is rooted. Even though it can access /dev/video0, must I have an application to view the feeds from the camera? Basically when I plugged in the USB webcam, I could see the info, using USB Hosts application , but not sure how to view the feeds. Is it possible? Thanks and Regards, Perumal On Feb 28, 6:48 pm, s.rawat imsaurabhra...@gmail.com wrote: Which tablet you are using.We have tried it on Acer Iconia Tab a501 which has the Host support as well USB A type.It has to bee rooted and the application needs to have the root access to access the /dev/video0 node . It is very much possible but not for the commercial solution i guess.Only for our own rnd . Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Tue, Feb 28, 2012 at 4:07 PM, MOHANAKRISHNAN remokri...@gmail.comwrote: Actually i think it won't support any cam in emulator . i also tried in lap. it didn't work. On Tue, Feb 28, 2012 at 1:57 PM, perumal316 perumal...@gmail.com wrote: Hi All, Is it possible to plug in a USB Webcam to an Android tablet that has USB host? I tried and nothing happens. If I plug in a thumbdrive, the contents can be viewed using File Manager, but nothing happens for USB Webcams, could be due to lack of drivers? Has anyone got it to work? How about the drivers? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: USB Webcam
Hi Saurabh, Thanks alot for the info. Do you have any link, I can refer to? I am not sure how to extract the data from the /dev/node? Thanks In Advance, Perumal On Wednesday, February 29, 2012 1:10:39 PM UTC+8, softy wrote: Yes it is possible to extract the data from the /dev/ node using the v4l2 apis and convert them into the yuv format and then use the Android UI framework to display them.basically on canvas ectending surface holder just like camera. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Wed, Feb 29, 2012 at 7:07 AM, perumal316 perumal...@gmail.com wrote: Hi Saurabh, I am trying in Novo 7 Advanced running on ICS. It is rooted. Even though it can access /dev/video0, must I have an application to view the feeds from the camera? Basically when I plugged in the USB webcam, I could see the info, using USB Hosts application , but not sure how to view the feeds. Is it possible? Thanks and Regards, Perumal On Feb 28, 6:48 pm, s.rawat imsaurabhra...@gmail.com wrote: Which tablet you are using.We have tried it on Acer Iconia Tab a501 which has the Host support as well USB A type.It has to bee rooted and the application needs to have the root access to access the /dev/video0 node . It is very much possible but not for the commercial solution i guess.Only for our own rnd . Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Tue, Feb 28, 2012 at 4:07 PM, MOHANAKRISHNAN remokri...@gmail.com wrote: Actually i think it won't support any cam in emulator . i also tried in lap. it didn't work. On Tue, Feb 28, 2012 at 1:57 PM, perumal316 perumal...@gmail.com wrote: Hi All, Is it possible to plug in a USB Webcam to an Android tablet that has USB host? I tried and nothing happens. If I plug in a thumbdrive, the contents can be viewed using File Manager, but nothing happens for USB Webcams, could be due to lack of drivers? Has anyone got it to work? How about the drivers? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AutoFocus for Android 4.0
Hi All, I have an camera app done for Android 2.3 which basically starts the CameraPreview class and draws a rectangle over the preview and does autofocus within the preview. It works without any issues in Nexus S running on Android 2.3. But when I run this app on Galaxy Nexus running on Android 4.0 the autofocus functionality is not working. I checked the developer website and the Camera.AutoFocusCallback is still available for Android 4.0. Any idea what's the issue? Thanks in Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 3G for GPS Location
Hi All, Ok noted, thanks for the info. Regards, Perumal On Dec 20, 2:51 pm, Michael Leung michaelchi...@gmail.com wrote: No, you can use GPS Provider. But if you can use wireless network to be your location provider, you need wifi. Moreover, if you have not any data connection, you cannot geocode. Thus, you have Lat/Lon values, you don't know the street and suburb name On Tue, Dec 20, 2011 at 2:09 PM, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, Dec 19, 2011 at 10:01 PM, perumal316 perumal...@gmail.com wrote: Hi All, I like to clarify, is 3G connection needed to get the GPS location? Also currently it is possible to geotag pictures taken through the native camera under settings. Nope. Read: I've done this on phones with dataplans. Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leunghttp://www.itblogs.info- My IT Bloghttp://diary.skynovel.info- My Bloghttp://www.michaelleung.info- My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GeoTagging Video
Hi All, In Android it is possible to add geolocation (lat and long) information to a picture. Under Camera settings, there is an option for it. But for videos this is missing. Is there any other way to add geolocation to video files? Is it possible to use the ExifInterface class's setAttribute method (http://developer.android.com/reference/android/media/ ExifInterface.html) for this? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 3G for GPS Location
Hi All, I like to clarify, is 3G connection needed to get the GPS location? Also currently it is possible to geotag pictures taken through the native camera under settings. But I could not find such a setting for videos. Is geotagging for videos supported in Android? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Duplicate Media Files
Hi All, I am using the below mentioned intent to start the native camera app for taking picture. Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri); startActivityForResult(intent, 1); Now the issue is, the picture is saved in both the default location (/ sdcard/DCIM/Camera) and the uri specified by me in putExtra. Is there any way to prevent this? I either want to save it to a location only once or get the full pathname of the stored image. I am trying to get the pathname through the protected void onActivity (int requestcode ) using intent.getdata() but I am receiving blank. Anyway to issue this issue? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ACTION_IMAGE_CAPTURE ACTION_VIDEO_CAPTURE
Hi All, In my application, I am using android.provider.MediaStore.ACTION_IMAGE_CAPTURE ACTION_VIDEO_CAPTURE intents to take pictures and videos which will then be send over to the backend. How do I retrieve the default pathname of the intents? One way is to use putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri) but then if I take a picture it is saved twice, one in the specified uri and another in the dafault path (/sdcard/DCIM/CAMERA...). Is there any way where after taking the picture (the sending to the backend is already done) I can retrieve the default path and then delete that image/video? Also I noticed that when calling protected void onActivity (int requestcode ), I can only do so for either the camera or video intent. Within the same method, the application crashes. How do I handle multiple intents? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 native browser can't access https sites
Hi Murphy, How about installing the root cert into the phone's credential storage? Will the webpage could be loaded then? Thanks and Regards, Perumal On Sep 16, 10:52 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 16, 2011 at 10:47 AM, perumal316 perumal...@gmail.com wrote: Just wondering, is there any way to include root certs in the Native browser? With a rooted phone, perhaps. With modded firmware, perhaps. Not on a standard production device AFAIK. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android native browser can't access https sites
Hi, I have noticed that for certain https websites, the native browser could not load them and just displays a blank white page. However, this is not an issue with Firefox Android application. Is it a known issue? Is there any workarounds? I tried in an Android 2.3.3 device. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 native browser can't access https sites
Hi Murphy, Yes, the page can be loaded in Firefox. Just wondering, is there any way to include root certs in the Native browser? Thanks In Advance, Perumal On Sep 16, 7:56 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 16, 2011 at 2:53 AM, perumal316 perumal...@gmail.com wrote: I have noticed that for certain https websites, the native browser could not load them and just displays a blank white page. However, this is not an issue with Firefox Android application. Is it a known issue? If I had to guess, the standard browser lacks the necessary root certificate. Is there any workarounds? Use Firefox, apparently. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Picture and video is rotated after HTTPPost
Hi All, I am using the necessary intents (ACTION_IMAGE_CAPTURE etc) to take picture and video which I used HTTPPost to send to a backend server (running java servlet). One thing i noticed is that after the image and video are sent, over at the server side it is rotated 90 degrees clockwise. Is there any way to resolve this? i am using FileEntity class method to send the pictures and videos. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Crash during HTTP Post
Hi Murphy, I checked the logcat, it is showing: ERROR/AndroidRuntime(10335): FATAL EXCEPTION: main ERROR/AndroidRuntime(10335): java.lang.NullPointerException But the issue is, this crash is only occurring when I do HTTP Post of a large file (10 MB). Is it a Android limitation? Anyone encountered this before? Thanks In Advance, Perumal On Aug 17, 7:04 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Aug 17, 2011 at 7:00 AM, perumal316 perumal...@gmail.com wrote: I noticed that during HTTP Post of files to a backend server if the connection is not established (no reception) or the file size is too big (10MB) my application crashes. Is there any way to solve this issue? How do I handle for such errors? Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your crash. -- 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 *Advanced* Android Development_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Image is saved twice
Hi All, I am using the following intent: Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); i.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri); Basically i am using ACTION_IMAGE_CAPTURE intent to invoke the camera and save the taken image into the specified uri. It works but at the same time the image is also saved with the default name. Thus once i have snapped the picture, it is saved twice, both in the uri and in the default path and name. How do i ensure that it is only saved in the specified uri? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Crash during HTTP Post
Hi Murphy, I am using File Entity to get the file and subsequently do HTTP Post as shown in the code snippet below. HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(postURL); FileEntity bin = new FileEntity(file, postURL); post.setEntity(bin); HttpResponse response = client.execute(post); Not sure whether this way of doing the HTTP Post is causing a crash when the file size is too big. Thanks and Regards, Perumal On Aug 18, 6:22 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Aug 18, 2011 at 2:30 AM, perumal316 perumal...@gmail.com wrote: I checked the logcat, it is showing: ERROR/AndroidRuntime(10335): FATAL EXCEPTION: main ERROR/AndroidRuntime(10335): java.lang.NullPointerException But the issue is, this crash is only occurring when I do HTTP Post of a large file (10 MB). Is it a Android limitation? Anyone encountered this before? It may be a side effect of running out of heap space, depending on how you implemented your HTTP operations. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] App Crash during HTTP Post
Hi All, I noticed that during HTTP Post of files to a backend server if the connection is not established (no reception) or the file size is too big (10MB) my application crashes. Is there any way to solve this issue? How do I handle for such errors? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HTTPS in Android
Hi All, Below is my code snippet: File file = new File(filepath); HttpClient client = new DefaultHttpClient(); //String url = http://test.; String url = https://test..;; HttpPost post = new HttpPost(url); FileEntity bin = new FileEntity(file, url); post.setEntity(bin); HttpResponse response = client.execute(post); HttpEntity resEntity = response.getEntity(); Basically I am using fileentity to do a HTTPPost. Now I want to do this over https. After implementing https over at the backend I just modified http to https in the url and tested again. And it is not working. Any idea how do i resolve this? Thanks In Advance, Perumal On Aug 4, 1:43 pm, Kumar Bibek coomar@gmail.com wrote: It would be good if you let us know what have your tried and what exactly is not working, some code samples, logs etc. On Aug 2, 8:07 pm, perumal316 perumal...@gmail.com wrote: Hi All, I have implemented HTTP Post to post data to the backend. How do I implement HTTPS in Android (I have already configured the backend for https)? I googled and found some solutions (http://stackoverflow.com/questions/ 2253061/secure-http-post-in-android) and tried them but I do not receive any data in the backend. Is it the correct way to implement? Is there any other method? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HTTPS in Android
Hi All, I have implemented HTTP Post to post data to the backend. How do I implement HTTPS in Android (I have already configured the backend for https)? I googled and found some solutions (http://stackoverflow.com/questions/ 2253061/secure-http-post-in-android) and tried them but I do not receive any data in the backend. Is it the correct way to implement? Is there any other method? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multiple Intents
Hi, Basically I am trying to invoke the video camera using ACTION_VIDEO_CAPTURE intent and save the subsequent recorded video in a particular directory and name. but my app keeps in crashing, even though the video do get saved. The code I used is as follow: filepath = /sdcard/testfolder/testvid.mp4; File vidfile = new File(filepath); Uri viduri = Uri.fromFile(vidfile); Intent i = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); i.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, viduri); startActivity(i); Any idea how can i resolve this issue? I want to save the video using a particular name and not the default name. I am not sure how to use onActivityResult to do this. is it possible? Thanks In Advance, Perumal On Jul 31, 12:38 pm, TreKing treking...@gmail.com wrote: On Sat, Jul 30, 2011 at 4:12 AM, perumal316 perumal...@gmail.com wrote: If I just place it at the bottom, it is not executing. What does that mean? How to differentiate between he different intents? That's the whole point of the resultCode parameter ... it tells you what the result was. --- -- 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
[android-developers] Re: Multiple Intents
Hi, My problem is the same as mentioned here: http://stackoverflow.com/questions/4872986/android-intent-mediastore-action-video-capture-with-extra-output-crashes-on-play/6881561 The video is recorded and is saved into the sdcard but the app crashes.Because by default after recording is stopped, it goes to the replay activity to view the recorded video (This is where the crash occurs). Is there any way to prevent by app from starting the replay activity, once the recording stops? Thanks In Advance, Perumal On Aug 1, 1:14 am, TreKing treking...@gmail.com wrote: On Sun, Jul 31, 2011 at 6:20 AM, perumal316 perumal...@gmail.com wrote: Any idea how can i resolve this issue? 1 - Don't hard code SD card paths like that - use Evironment.getExternalStorageDirectory(). 2 - Debug your app to figure out why your app is crashing. ----- 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
[android-developers] Multiple Intents
Hi All, If I got multiple intents, how do I use: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { . } I have multiple intents upon different button clicks in my application, and for one of the intent, I need to use onActivityResult. If I just place it at the bottom, it is not executing. How to differentiate between he different intents? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Intent keeps crashing
Hi All, I am using the following intent to invoke the camera and save the recording as a specific name: filepath = /sdcard/testfolder/testvid.mp4; File vidfile = new File(filepath); Uri viduri = Uri.fromFile(vidfile); Intent i = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); i.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, viduri); startActivity(i); However the application keeps on crashing (The application has stopped unexpectedly). But I noticed that the file has been saved with the required name in the directory. Any idea how can i resolve this? Basically I want to start the video camera and save the subsequent recording in a specific directory and name. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HTTP Post of Image
Hi All, I am using the following intent to invoke the camera: Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivity(cameraIntent); The image is saved into the sdcard with the time/date as the name. I want to do a HTTPPost of this image once the picture is taken. How do I get the name of the picture stored? Or how to I change the name of the image stored? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HTTP Post of Image
Hi Siva, But my application keeps on crashing when I insert this line: URI mCapturedImageURI = getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); Must I add any permission in the manifest file? Basically I just want to get the string containing the path to the image saved e.g: /sdcard/DCIM/12345.jpg Must I use contentprovider? Thanks In Advance, Perumal On Jul 28, 12:23 pm, Sivasankar K sivasanka...@greatinnovus.com wrote: using the uri of content resolver you can get the path where it is getting stored URI mCapturedImageURI = getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.ACTION_IMAGE_CAPTURE, capturedImage); intent.putExtra(MediaStore.EXTRA_OUTPUT, mCapturedImageURI); On Thu, Jul 28, 2011 at 8:14 AM, perumal316 perumal...@gmail.com wrote: Hi All, I am using the following intent to invoke the camera: Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivity(cameraIntent); The image is saved into the sdcard with the time/date as the name. I want to do a HTTPPost of this image once the picture is taken. How do I get the name of the picture stored? Or how to I change the name of the image stored? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- K Siva Sankar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using .so
Hi All, If I have a linux .so library, how do I call the functions in my Eclipse Android project? Is it the same as external JAR libraries? I have tried that way and it is not working. Is there any other method? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Encoding image into Base64
Is this possible? My aim is to get the image from my Android application. Currently I using a java servlet that will get the incoming base64 encoded string and convert back to a image again. If I am going to use FileEntity or InputStreamEntity, how must I structure my backend? Thanks In Advance, Perumal On Jun 10, 3:55 am, Jens dunkingbikk...@gmail.com wrote: That depends wholly on your backend - although a backend that requires you to use Base64 encoding seems a tad bit pointless. Are you sure you're not supposed to post the image directly (using a FileEntity or InputStreamEntity for instance) - with the correct Content-Type set of course? On 9 Juni, 12:12, perumal316 perumal...@gmail.com wrote: Hi All, I need to do a HTTPPost of a Jpeg and a Jpeg2000 image to a backend. For Jpeg I converted it to byte array and did a Base64 encoding using the Base64 class which is available in Android. See:http://developer.android.com/reference/android/util/Base64.html Is this the correct way to do? Because I am not receiving any image in the backend. This is for jpeg. Is I do the same steps using Jpeg2000 my application crashed. How do I do a HTTPPost of a Jpeg2000 image? Is encoding of image to Base64 a must? Is there any other way? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Encoding image into Base64
Hi All, I need to do a HTTPPost of a Jpeg and a Jpeg2000 image to a backend. For Jpeg I converted it to byte array and did a Base64 encoding using the Base64 class which is available in Android. See: http://developer.android.com/reference/android/util/Base64.html Is this the correct way to do? Because I am not receiving any image in the backend. This is for jpeg. Is I do the same steps using Jpeg2000 my application crashed. How do I do a HTTPPost of a Jpeg2000 image? Is encoding of image to Base64 a must? Is there any other way? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Keep a service running continuously
Hi All, If I want to keep a service (NFC Service) running continuously must I specify it as android:persistent=true under the manifest file? Or must I use Service.startForeground() in the main java file? Or is there any other method? Currently for my NFC application, the NFC service seem to stop frequently. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Keep a service running continuously
I am communicating with a NFC tag and sending commands to the tag. But the service gets cutoff and I could not complete the sending of commands. Increasing the timeout doesn't help too. That's why need looking for a way to continuously run the NFC service. On May 12, 11:12 am, dnkoutso dnkou...@gmail.com wrote: startForeground() basically helps you achieve keeping your service running as long as possible. However, the cost of doing this is that you must provide an ongoing notification so the user is aware that something is constantly running. What is it you are trying to achieve and you want the NFC service to run continuously? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Sending APDU Command from Nexus S
For IsoDep using setTimeOut function to set a time resolves the issue. On Apr 26, 12:13 pm, perumal316 perumal...@gmail.com wrote: Hi Michael, I changed MiFareClassic object to IsoDep. But I am getting the following error: android.nfc.TagLostException: Tag was lost Must I add in additional code to sustain the connection? (Am I correct?) Thanks In Advance, Perumal On Apr 25, 5:00 pm, Michael Roland mi.rol...@gmail.com wrote: Hallo Wilson, I am facing an issue with a Mifare Classic card (this is a dual interface smart card; contact and contactless). Alright, then it is most likely not a MIFARE Classic card but a contactless (dual interface) smart card (with ISO 14443-4 interface) that additionally provides a MIFARE Classic emulation. When I use transceive() to send apdu corresponding to select AID, it always return null. Right, as you write here: 2) Create MifareClassic object using you create a MifareClassic but what you really want to do is open an APDU connection to the card. If your card is a real dual-interface smart card(*) it should also expose an IsoDep interface (ISO 14443-4 / ISO 7816-4). This is the interface you would want to use for APDU communication. br, Michael (*) There could also exist some hybrid cards that have a MIFARE Classic _contactless_ card and an APDU-based _contact_ smart card joined into the same plastic card. In that case the contact and contactless parts would be independent chips and no communication between them would be possible.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Sending APDU Command from Nexus S
Hi Michael, I changed MiFareClassic object to IsoDep. But I am getting the following error: android.nfc.TagLostException: Tag was lost Must I add in additional code to sustain the connection? (Am I correct?) Thanks In Advance, Perumal On Apr 25, 5:00 pm, Michael Roland mi.rol...@gmail.com wrote: Hallo Wilson, I am facing an issue with a Mifare Classic card (this is a dual interface smart card; contact and contactless). Alright, then it is most likely not a MIFARE Classic card but a contactless (dual interface) smart card (with ISO 14443-4 interface) that additionally provides a MIFARE Classic emulation. When I use transceive() to send apdu corresponding to select AID, it always return null. Right, as you write here: 2) Create MifareClassic object using you create a MifareClassic but what you really want to do is open an APDU connection to the card. If your card is a real dual-interface smart card(*) it should also expose an IsoDep interface (ISO 14443-4 / ISO 7816-4). This is the interface you would want to use for APDU communication. br, Michael (*) There could also exist some hybrid cards that have a MIFARE Classic _contactless_ card and an APDU-based _contact_ smart card joined into the same plastic card. In that case the contact and contactless parts would be independent chips and no communication between them would be possible. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sending APDU Command from Nexus S
Hi All, I am having Nexus S and a Mifare Tag. Using TagWriter application I am write and read from the Tag. Now I want to try sending an APDU command to the Tag. Is this possible? Any recommendation on how this can be done? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: FileContentProvider
Hi Murphy, I am creating my own WebView application. Using the URI scheme I have already registered another Android application in the system. But when I am tring to invoke it from my WebView, I am getting the following error. You do not have permission to view the myapp://test Any idea how do I resolve this? I thought I need to use com.android.htmlfileprovider as a authority to resolve this (Not sure was just trying). But this could not be done because of the limitation you have mentioned above. Is there another I can implement this? Must I specify any permission in my manifest file? Thanks In Advance, Perumal On Apr 12, 7:51 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Apr 12, 2011 at 4:11 AM, perumal316 perumal...@gmail.com wrote: How do I specify com.android.htmlfileprovider as one of the android authorities in the AndroidManifest file. You can't. I am getting, Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER. That is because it has been used by another program. It has been used by another program. Correct. Is there any workaround for this? Choose a different authority, probably one based upon your application's package. Only platform developers have the right to use anything in the com.android namespace. -- 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 *Advanced* Android Development_ Version 1.9.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] FileContentProvider
Hi All, How do I specify com.android.htmlfileprovider as one of the android authorities in the AndroidManifest file. I am getting, Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER. It has been used by another program. Is there any workaround for this? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] URI Scheme
Hi All, I have registered my app in the Android system as a URI using the following code: data android:scheme=startapp / action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT/category category android:name=android.intent.category.BROWSABLE/category /intent-filter data android:host=string android:mimeType=string android:path=string android:pathPattern=string android:pathPrefix=string android:port=string android:scheme=string / I can start this app from a webpage by using the following: startapp://test But I could not do so if I am viewing the webpage from my own WebView. Any idea what I need to include in my WebView to enable URI Scheme? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sample SoftKeyboard
Hi All, I am using the sample soft keyboard source code available from the SDK samples to write my own keyboard. For my keyboard, instead of alphabets I am having words. E.g Insert. When user clicks this the word Insert will be inserted into the respective field. Under qwerty.xml, I can change the wordings of the keyboard, but how to insert a word instead of a letter? Currently they are specifying unicode to insert this. Any idea how to modify to insert word instead of a alphabet? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Starting An Android App From An Url
Hi Hackborn, For the example you have specified what will be the URL be? Is it something like market://? Regards, Perumal On Mar 25, 1:46 pm, Dianne Hackborn hack...@android.com wrote: Yes, for example here is the declaration in the activity of Market that handles the user clicking on an Android Market URI link: activity android:name=.activities.AppsUrlHandlerActivity intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:scheme=http android:host=market.android.com android:pathPrefix= /details / data android:scheme=http android:host=market.android.com android:pathPrefix= /apps / data android:scheme=http android:host=market.android.com android:pathPrefix= /search / data android:scheme=https android:host=market.android.com android:pathPrefix= /details / data android:scheme=https android:host=market.android.com android:pathPrefix= /apps / data android:scheme=https android:host=market.android.com android:pathPrefix= /search / /intent-filter /activity On Thu, Mar 24, 2011 at 8:23 PM, Syner idesignsgr...@aol.com wrote: is there a way to add a 'custom url scheme' to an Android app that when a user goes to a certain http:// url in the web browser it will open the app? i need functionality that is the same as this on Android. http://iphonedevelopertips.com/cocoa/launching-your-own-application-v... Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@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] Starting an Android App from a Website
Hi All, Is it possible to start an Android App from a browser. I would like to create a website that has a button, and whenever the button is pushed, an android application already previously installed have to start. Is this possible? In some of the earlier post here, it was mentioned that Intent can be used for this. But in my website how to I linked it up to the Android application? Using Intent or is it Intent Filter to register my app as can be accessible from a browser? How do I do it? Sorry couldn't find much info regarding this. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Copy/Paste
Hi Murphy, Where should I have the javascript method which I want to execute or load using loadURL()? It should be within the Android application? Regards, Perumal On Mar 17, 11:57 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Mar 17, 2011 at 11:26 AM, perumal316 perumal...@gmail.com wrote: What I trying is to insert keystrokes into a WebView which will load a URL. Note that WebView and TextView are different widgets. You originally asked about TextView. TextView is not WebView. In the webpage there will be data field in which i want to copy/ paste some data there. How do I go about doing this? I'd use Javascript. Call loadUrl(javascript:...), where ... is some Javascript code that adjusts the contents of the field. Can KeyEvent work in such a scenario? I have no idea. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in Oslo:http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Copy/Paste
This could be possible using the JavaInterface method. But I don't want to change the backend. Is it possible to write a javascript method in Android and load that in using loadURL()? Or include the .js file within the Android project and make reference to it? Regards, Perumal On Mar 19, 10:03 pm, perumal316 perumal...@gmail.com wrote: Hi Murphy, Where should I have the javascript method which I want to execute or load using loadURL()? It should be within the Android application? Regards, Perumal On Mar 17, 11:57 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Mar 17, 2011 at 11:26 AM, perumal316 perumal...@gmail.com wrote: What I trying is to insert keystrokes into a WebView which will load a URL. Note that WebView and TextView are different widgets. You originally asked about TextView. TextView is not WebView. In the webpage there will be data field in which i want to copy/ paste some data there. How do I go about doing this? I'd use Javascript. Call loadUrl(javascript:...), where ... is some Javascript code that adjusts the contents of the field. Can KeyEvent work in such a scenario? I have no idea. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in Oslo:http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Copy/Paste
Hi All, Is it possible to use the KeyEvent API for copy/paste functionality? It is possible to insert keystrokes into a TextView using KeyEvent. How do I copy the string from a TextView using KeyEvent? Is there any other way? Regards, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Copy/Paste
Hi Murphy, What I trying is to insert keystrokes into a WebView which will load a URL. In the webpage there will be data field in which i want to copy/ paste some data there. How do I go about doing this? Can KeyEvent work in such a scenario? Regards, Perumal On Mar 17, 8:00 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Mar 17, 2011 at 2:54 AM, perumal316 perumal...@gmail.com wrote: Is it possible to use the KeyEvent API for copy/paste functionality? You don't need to. It is possible to insert keystrokes into a TextView using KeyEvent. TextViews are non-editable. How do I copy the string from a TextView using KeyEvent? You don't. Is there any other way? Call getText() on the TextView. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Copy/Paste Programmatically
Hi All, Currently for Android I can copy/paste by long pressing on the field and choosing copy/paste respectively. I want to do this automatically. Meaning upon clicking a button, can simulate the long press and copy/paste programatically. Is this possible? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Regarding Screen Resolution
Which device are you using? On Mar 14, 4:30 pm, yogendra G yogi2...@gmail.com wrote: Hi All, I Get My Screen opened full screen whenever i start a project every time so how can i get it small screen by default when ever i open my projct. Regards, Yogendra G -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Regarding Screen Resolution
You may want to try specifying in the AndroidManifest.xml file. See: http://developer.android.com/guide/practices/screens_support.html Hope it helps. Regards, Perumal On Mar 14, 4:55 pm, yogendra G yogi2...@gmail.com wrote: Hi, In My emultor am getting tht problem wenever i open with eclipse and run a pgm am getting tht problem... Regards, Yogendra G On Mon, Mar 14, 2011 at 2:04 PM, perumal316 perumal...@gmail.com wrote: Which device are you using? On Mar 14, 4:30 pm, yogendra G yogi2...@gmail.com wrote: Hi All, I Get My Screen opened full screen whenever i start a project every time so how can i get it small screen by default when ever i open my projct. Regards, Yogendra G -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Copy/Paste Programmatically
Hi Appel, Actually I have Googled this previously but could not find anything useful. My application is a Webview that will load a custom URL. In WebView I need to copy out some data from the data field do computation and insert back the results into the field. Currently the only way is for the user to long press on the field then choose copy all or paste but I want to automate this. There are additional button below the webview. By clicking in the button I want to copy/paste the data in the WebView. Any idea how do this? Thanks In Advance, Perumal On Mar 14, 4:38 pm, appel johan.appelg...@gmail.com wrote: http://lmgtfy.com/?q=android+copy+text+programmatically -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Copy/Paste Programmatically
Is it possible to use KeyEvent API? There are KeyEvent for Long_Press etc. See: http://developer.android.com/reference/android/view/KeyEvent.html Possible to use this for copy/paste? Regards, Perumal On Mar 14, 5:50 pm, appel johan.appelg...@gmail.com wrote: And how was I supposed to know you wanted to do this from a WebView? :) Afaik there's no way to manipulate the DOM within a WebView directly with java code. If you don't need the original value of the form field you could load javascript into the page that changes the field for 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] Background Service
Hi All, I am writing an Android background service. I want it to become active when my another application is started. Any idea how do I detect the activation of another application? Should I package the application and service together? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Background Service
Hi TreKing, I already have my own webview application that will load a custom webpage. I need to get user inputs from the data field in the webpage to do some computation and insert back the result into the webpage. I am thinking of writing a background service and couple it with this application. But I am not sure how to do the interaction with the webpage. Getting and inserting into the data field. Is this possible to be done through a background service? Regards, Perumal On Mar 14, 9:34 am, TreKing treking...@gmail.com wrote: On Sun, Mar 13, 2011 at 8:25 PM, perumal316 perumal...@gmail.com wrote: I want it to become active when my another application is started. Any idea how do I detect the activation of another application? You don't detect another application. You start your service from your Activity. Should I package the application and service together? A Service has to be packaged with *some* application - particularly the one that is going to be starting it. So yeah. ----- 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
[android-developers] Camera Access through WebView
Hi All, Is it possible to invoke the camera through a WebView instance? Can HTML5 be used? I want to have a Android Web App which can access the Camera Hardware in the Android phone. Can this be done? Regards, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HTML5 Hardware Access
Hi All, Is it now possible to access Android's Hardware APIs through the Webkit Browser by HTML5? For example I start up the Android Browser and access a website which will requires file upload and camera API. Can this be done? There are some frameworks available, like Titanium and PhoneGap, but it still in the form of an native app installation only the code is in HTML or javascript. I want a full web app that can access the hardware API. Is this possible? Regards, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] View HTML in Android browser
Hi All, I want to open saved HTML pages in default Android browser. But currently when I open the HTML, it is only showing me the option to either open in HTML viewer not the browser. How do I make it to open in Android browser? Thanks and Regards, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: View HTML in Android browser
Hi, I mean for example I am having a html attachment in my email. How do I view it in the web browser? Currently I can only view it using HTML viewer which is not loading fully the required portions from the internet. Regards, Perumal On Jan 11, 2:38 am, DanH danhi...@ieee.org wrote: I'm guessing you'd say myIntent.setDataAndType(myUri, text/plain); On Jan 10, 8:18 am, perumal316 perumal...@gmail.com wrote: Hi All, I want to open saved HTML pages in default Android browser. But currently when I open the HTML, it is only showing me the option to either open in HTML viewer not the browser. How do I make it to open in Android browser? Thanks and Regards, Perumal- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Registering WebView as HTML Viewer
Hi All, My WebView application loads a html file and display it. Now how do I register it as a default HTML Reader in the Android system? Meaning for example now if I click on an html attachment in email it shows Complete Action using, then lists the HTML Readers in the Android system. How do I register my application to be one of them listed? Must I modify my code to allow this? Currently my application is just loading a html attachment from the sdcard. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Java Applet and JAR in Android
Hi All, Does Android supports JAR? There is a J2ME Runner app and in HTC phones there is a default Java application that can be used to run JAR. But when I tried only some functionalities from a JAR is available when I run the JAR file. Similarily when I go to websites that runs Java Applets, only some functionalities are available. Couldn't find any links explaining what is supported and what is not supported in Android in terms of JAR and Java applets. Anyone has any info on this? Thanks and Regards, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Web Server
Hi, But I want to host Apache Tomcat where I will also be having the Java Servlets. Is there any way to do this in Android? I tried the i-Jetty but under configurations there is no option to include my java servlets. Any idea how to resolve this issue? Regards, Perumal On Dec 22, 9:52 pm, Mark Murphy mmur...@commonsware.com wrote: Sure. You need a Java-based Web server (iJetty, NanoHTTPD, etc.), or possibly a C-based one you can attach to your app via the NDK. Bear in mind that this will really only be useful on a WiFi LAN, since the phone will not have a publicly routable Internet address in most (if not all) cases. On Wed, Dec 22, 2010 at 8:46 AM, perumal316 perumal...@gmail.com wrote: Hi All, Is it possible to host a web server within an Android phone itself? Similar to Apache. I want to access the web server from the mobile browser itself. Couldn't find any reference online. Is this possible? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 *Advanced* Android Development_ Version 1.9 Available!- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Web Server
Hi All, Is it possible to host a web server within an Android phone itself? Similar to Apache. I want to access the web server from the mobile browser itself. Couldn't find any reference online. Is this possible? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Auto-Fill Field
Hi Kumar, What I meant is, for example when we access Gmail website there will be username and password field, I want to auto fill such field. So when starting my app, it will load a website through the webview and there will also be buttons displayed, which upon pressing will help the user to auto fill some fields. I looked through your reference, not really sure how it can be used for my cause. Not familiar with Javascript. But can this can be done? Regards, Perumal On Nov 5, 1:02 am, Kumar Bibek coomar@gmail.com wrote: For me, it's not clear what you are trying to do. Auto-fill fields with what? And for what Kostya has suggested, this link might help you. http://techdroid.kbeanie.com/2010/10/android-webview-javascript-and-c... On Nov 4, 8:02špm, Kostya Vasilyev kmans...@gmail.com wrote: There is a way to call application functions in Java from WebView's JavaScript code. Application code needs to register an object with WebView, which is then accessible from JavaScript. -- Kostya Vasilyev --http://kmansoft.wordpress.com 04.11.2010 17:27 ÐÏÌØÚÏ×ÁÔÅÌØ perumal316 perumal...@gmail.com ÎÁÐÉÓÁÌ: Hi All, I am creating my own app which will load a website upon starting. Now I want to auto-fill the fields that will appear on the website. Is this possible? How to I call the field through my app to fill up with pre-determined data? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 athttp://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] Auto-Fill Field
Hi All, I am creating my own app which will load a website upon starting. Now I want to auto-fill the fields that will appear on the website. Is this possible? How to I call the field through my app to fill up with pre-determined data? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Lock Screen
Hi All, I found this site containing code snippets on enabling/disabling phone lock. http://smartandroidians.blogspot.com/2010/03/enabling-and-disabling-lock-screen-in.html Is it possible to enable outgoing calls from the lock screen in Android? Now only emergency calls are allowed from the native lock screen. Similarly user can access the last called calls and is able to call out these few numbers. Can this be done? Thanks in Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mount as USB drive
Hi All, A general question. Is there any difference in the way the USB drive is mounted in Android as compared to other mobile operating systems? Regards, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Mount as USB drive
Yes, that's what I mean. Because I have my own PC application that detects the microSD card. But somehow when the microSD is within Android and is mounted, even though under My Computer the usb drive is mounted, the application can't detect it. There is no issue if I use a card reader. Any idea what's the issue? Thanks In Advance, Perumal On Oct 26, 4:27 am, FrankG frankgru...@googlemail.com wrote: Sorry .. but did you mean with usb drive is mounted ? You mean when you mount the sdcard and make them available as mass storage device via usb ? On 25 Okt., 11:37, perumal316 perumal...@gmail.com wrote: Hi All, A general question. Is there any difference in the way the USB drive is mounted in Android as compared to other mobile operating systems? Regards, Perumal- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can Android 2.X connect to 3G and Wifi data networks simultaneously?
Ok. Thanks for the info. Will try to implement it. Thanks, Perumal On Oct 18, 8:23 pm, Kostya Vasilyev kmans...@gmail.com wrote: Perumal, Tethering and internal APIs aside, there is only one active network connection. If the phone is currently connected to WiFi, then network traffic from all applications goes through that. Don't know the answer to your MMS quesiton. -- Kostya 18.10.2010 15:31, perumal316 пишет: Hi Kostya, I meant if I am connected to wifi, how to make sure other apps requiring network access will only connect to the wifi I am connected to and do not use the 3G network? My app will only ensure I am connected to the wifi but can it control the network system of the Android system? Meaning if I am going to send a MMS and am connected to my preferred wifi using my app, can my app prevent it from not switching to the 3G network? Thanks and Regards, Perumal On Oct 18, 7:05 pm, Kostya Vasilyevkmans...@gmail.com wrote: 18.10.2010 4:54, perumal316 пишет: Hi Kostya, Yes, I am referring to WiFi as the particular network. But, You can monitor WiFi state, and just not do any networking while it's not active... You can monitor WiFi state using Broadcast Actions defined here: http://developer.android.com/reference/android/net/wifi/WifiManager.html or here: http://developer.android.com/reference/android/net/ConnectivityManage... -I don't understand how to do this. Through an app? You can monitor the WiFi state, but how to not do any networking? Um, now it's my turn to not understand. If this is your own application, you can tell it what to do (and not do), right? -- Kostya Regards, Perumal On Oct 18, 3:16 am, Kostya Vasilyevkmans...@gmail.com wrote: If by particular network you mean WiFi vs. cellular, then yes. You can monitor WiFi state, and just not do any networking while it's not active... Notifying the user that your app is doing this might be a good idea, too - so he can take the phone in hand and run towards the nearest WiFi hotspot. -- Kostya 17.10.2010 17:36, perumal316 пишет: I am just wondering. Is it possible to make all data connection to a particular network only? Meaning even if 3G will be available it will only connect to a particular network for all data related processing. Regards, Perumal On Oct 15, 9:34 pm, Jensdunkingbikk...@gmail.com wrote: Afaik - Android 2.1 has a bug related to hipri data, it *only* works for Android 2.2 and later. That said, your probably better off asking the user to turn of WiFi before using your app - or restrict it to sdk level 8 and higher. On 11 Okt, 17:38, Steven PERRAUDINunsee...@gmail.com wrote: On 31 août, 13:36, Jensdunkingbikk...@gmail.com wrote: With Android 2.2 you can route data over the 3G connection explicitly while still using WiFi. The feature exists in Android 2.1 also but is *broken* as the high-priority 3G data connection is torn down incorrectly almost directly. How do you get 3G and WiFi connected at the same time ? So is this possible in Android 2.1 to route either to 3G or WiFi ? If both interfaces are connected to a separate network, a simple change of routing table would allow to choose the interface to send/ receive data no ? Or is there a simpler way to achieve this. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com-Hidequoted text - - Show quoted text - -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com-Hide quoted text - - Show quoted text - -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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: Can Android 2.X connect to 3G and Wifi data networks simultaneously?
Hi Kostya, I meant if I am connected to wifi, how to make sure other apps requiring network access will only connect to the wifi I am connected to and do not use the 3G network? My app will only ensure I am connected to the wifi but can it control the network system of the Android system? Meaning if I am going to send a MMS and am connected to my preferred wifi using my app, can my app prevent it from not switching to the 3G network? Thanks and Regards, Perumal On Oct 18, 7:05 pm, Kostya Vasilyev kmans...@gmail.com wrote: 18.10.2010 4:54, perumal316 пишет: Hi Kostya, Yes, I am referring to WiFi as the particular network. But, You can monitor WiFi state, and just not do any networking while it's not active... You can monitor WiFi state using Broadcast Actions defined here: http://developer.android.com/reference/android/net/wifi/WifiManager.html or here: http://developer.android.com/reference/android/net/ConnectivityManage... -I don't understand how to do this. Through an app? You can monitor the WiFi state, but how to not do any networking? Um, now it's my turn to not understand. If this is your own application, you can tell it what to do (and not do), right? -- Kostya Regards, Perumal On Oct 18, 3:16 am, Kostya Vasilyevkmans...@gmail.com wrote: If by particular network you mean WiFi vs. cellular, then yes. You can monitor WiFi state, and just not do any networking while it's not active... Notifying the user that your app is doing this might be a good idea, too - so he can take the phone in hand and run towards the nearest WiFi hotspot. -- Kostya 17.10.2010 17:36, perumal316 пишет: I am just wondering. Is it possible to make all data connection to a particular network only? Meaning even if 3G will be available it will only connect to a particular network for all data related processing. Regards, Perumal On Oct 15, 9:34 pm, Jensdunkingbikk...@gmail.com wrote: Afaik - Android 2.1 has a bug related to hipri data, it *only* works for Android 2.2 and later. That said, your probably better off asking the user to turn of WiFi before using your app - or restrict it to sdk level 8 and higher. On 11 Okt, 17:38, Steven PERRAUDINunsee...@gmail.com wrote: On 31 août, 13:36, Jensdunkingbikk...@gmail.com wrote: With Android 2.2 you can route data over the 3G connection explicitly while still using WiFi. The feature exists in Android 2.1 also but is *broken* as the high-priority 3G data connection is torn down incorrectly almost directly. How do you get 3G and WiFi connected at the same time ? So is this possible in Android 2.1 to route either to 3G or WiFi ? If both interfaces are connected to a separate network, a simple change of routing table would allow to choose the interface to send/ receive data no ? Or is there a simpler way to achieve this. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com-Hide quoted text - - Show quoted text - -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can Android 2.X connect to 3G and Wifi data networks simultaneously?
I am just wondering. Is it possible to make all data connection to a particular network only? Meaning even if 3G will be available it will only connect to a particular network for all data related processing. Regards, Perumal On Oct 15, 9:34 pm, Jens dunkingbikk...@gmail.com wrote: Afaik - Android 2.1 has a bug related to hipri data, it *only* works for Android 2.2 and later. That said, your probably better off asking the user to turn of WiFi before using your app - or restrict it to sdk level 8 and higher. On 11 Okt, 17:38, Steven PERRAUDIN unsee...@gmail.com wrote: On 31 août, 13:36, Jens dunkingbikk...@gmail.com wrote: With Android 2.2 you can route data over the 3G connection explicitly while still using WiFi. The feature exists in Android 2.1 also but is *broken* as the high-priority 3G data connection is torn down incorrectly almost directly. How do you get 3G and WiFi connected at the same time ? So is this possible in Android 2.1 to route either to 3G or WiFi ? If both interfaces are connected to a separate network, a simple change of routing table would allow to choose the interface to send/ receive data no ? Or is there a simpler way to achieve 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: Can Android 2.X connect to 3G and Wifi data networks simultaneously?
Hi Kostya, Yes, I am referring to WiFi as the particular network. But, You can monitor WiFi state, and just not do any networking while it's not active... -I don't understand how to do this. Through an app? You can monitor the WiFi state, but how to not do any networking? Regards, Perumal On Oct 18, 3:16 am, Kostya Vasilyev kmans...@gmail.com wrote: If by particular network you mean WiFi vs. cellular, then yes. You can monitor WiFi state, and just not do any networking while it's not active... Notifying the user that your app is doing this might be a good idea, too - so he can take the phone in hand and run towards the nearest WiFi hotspot. -- Kostya 17.10.2010 17:36, perumal316 пишет: I am just wondering. Is it possible to make all data connection to a particular network only? Meaning even if 3G will be available it will only connect to a particular network for all data related processing. Regards, Perumal On Oct 15, 9:34 pm, Jensdunkingbikk...@gmail.com wrote: Afaik - Android 2.1 has a bug related to hipri data, it *only* works for Android 2.2 and later. That said, your probably better off asking the user to turn of WiFi before using your app - or restrict it to sdk level 8 and higher. On 11 Okt, 17:38, Steven PERRAUDINunsee...@gmail.com wrote: On 31 août, 13:36, Jensdunkingbikk...@gmail.com wrote: With Android 2.2 you can route data over the 3G connection explicitly while still using WiFi. The feature exists in Android 2.1 also but is *broken* as the high-priority 3G data connection is torn down incorrectly almost directly. How do you get 3G and WiFi connected at the same time ? So is this possible in Android 2.1 to route either to 3G or WiFi ? If both interfaces are connected to a separate network, a simple change of routing table would allow to choose the interface to send/ receive data no ? Or is there a simpler way to achieve this. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Write data into SDCard while mounted
Hi All, Is it possible to mount/unmount the SDCard through an Android application? I am writing my own desktop application which needs to to pass some data into the Android phone which will be used by an Android application and at the same time copy some data from the phone into the desktop application. Any idea how to implement this? One idea is through SDCard. But is it possible to mount and unmount programmatically? Because data cannot be written into the SDCard while it is mounted. Is there any other method? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Write data into SDCard while mounted
Hi, Thanks for the reply. So is there any other method to pass some data into the Android phone from a desktop application which will be used by an Android application and at the same time copy some data from the phone into the desktop application? Thanks In Advance, Perumal On Oct 12, 10:47 pm, Alessandro Pellizzari a...@amiran.it wrote: Il Tue, 12 Oct 2010 07:08:55 -0700, perumal316 ha scritto: Is it possible to mount/unmount the SDCard through an Android application? No. Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Write data into SDCard while mounted
Hi Mark, Yes, wifi and Bluetooth can be used. But I am wondering if it is possible through USB as the phone will be connected to the PC. I method I thought is by writing to sdcard and the desktop application can copy from it. But it is not possible to write to sdcard while it is mounted. Is it possible to mount programmatically? Thanks and Regards, Perumal On Oct 13, 8:58 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 12, 2010 at 8:56 PM, perumal316 perumal...@gmail.com wrote: Thanks for the reply. So is there any other method to pass some data into the Android phone from a desktop application which will be used by an Android application and at the same time copy some data from the phone into the desktop application? WiFi. Possibly Bluetooth. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Autofill in local webview
Hi All, I have written an application to load a webpage using a local webview. In the app I have also included some buttons. The idea is in the loaded webpage need to insert some data in their fields. Eg. In Gmail, need to insert username. So when the user clicks on the button it will autofill the predefined data into the field in the webpage. Any idea how to implement this? I have tried using: WebView mWebView; mWebView mWebView.loadData(); But it is not working. Is there any other method? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Delete SMS
In my app I have managed to display all incoming SMSes as Toasts by using code snippets from www.anddev.org. But now how do i delete the SMSes after which? Thanks In Advance, Perumal On Sep 24, 3:52 pm, perumal316 perumal...@gmail.com wrote: Hi All, I am writing my own SMS application that will display a toast of my message once it arrive. Now is it possible to delete the message after the display of the toast, so that it will not go into the native SMS application? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Delete SMS
Hi All, I am writing my own SMS application that will display a toast of my message once it arrive. Now is it possible to delete the message after the display of the toast, so that it will not go into the native SMS application? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BroadcastReceiver
Hi, I managed to solve the issue. I have all those permissions. I just added a Thread.sleep(1000) before doing the sending of messages and it works now. Regards, Perumal On Sep 22, 5:39 pm, KANTESH BABANNAVAR kantesh...@gmail.com wrote: probably these? uses-permission android:name=android.permission.SEND_SMS / uses-permission android:name=android.permission.RECEIVE_SMS / On Sep 22, 8:37 am, perumal316 perumal...@gmail.com wrote: Hi All, I have written an application to read all incoming SMS and if the SMS contains certain string, I will also send a copy of the message to my another phone for backup purposes. I used the reference from the following website: http://www.anddev.org/novice-tutorials-f8/recognize-react-on-incoming... It uses BroadcastReceiver to get the incoming SMS, but when I tried to send it using the following method: private void sendingSMS(String phoneNo,String message){ SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNo, null, message,null,null); } It always crashes. Any idea how to resolve it? Is it because of using BroadcastReceiver. Thanks In Advance, Perumal- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to access contact and account database
Hi, I am also trying the same thing but couldn't do it. You managed to it? I can't find the location of databases.db Regards, Perumal On Sep 21, 2:08 pm, adhavan jeyachandran jadha...@gmail.com wrote: hi, how can i access the contact and account manager with the help of sqlite3 code? can u please explain me about contact application? -- ADHAVAN.J -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] BroadcastReceiver
Hi All, I have written an application to read all incoming SMS and if the SMS contains certain string, I will also send a copy of the message to my another phone for backup purposes. I used the reference from the following website: http://www.anddev.org/novice-tutorials-f8/recognize-react-on-incoming-sms-t295-105.html It uses BroadcastReceiver to get the incoming SMS, but when I tried to send it using the following method: private void sendingSMS(String phoneNo,String message){ SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNo, null, message,null,null); } It always crashes. Any idea how to resolve it? Is it because of using BroadcastReceiver. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Converting Bitmap to ASCII
Hi All, I have a picture taken using the phone's camera and in bitmap format. I want to send it over HTTP usinf Http post in ASCII. Any idea how to do it? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Uploading file through HTTP Post
Hi Vinay, As I have mentioned this is only possible for SDK 1.0. In SDK 2.1 this will not work. You are aware of any other way? Regards, Perumal On Sep 16, 2:21 pm, Vinay S s.vinay@gmail.com wrote: Hi, See this page.. http://rapidandroid.org/wiki/HttpUpload -vinay On Sep 16, 8:55 am, perumal316 perumal...@gmail.com wrote: Hi All, I am writing an application to upload a file from Android phone to a web server. I have tried the example from: http://www.anddev.org/novice-tutorials-f8/doing-http-post-with-androi... But it will only work for SDK 1.0 (why? Not Sure?). Can this be done for Android 2.1? Or is there any other method to load a file from Android to a webserver? Thanks In Advance, Perumal- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Uploading file through HTTP Post
Hi, Managed to get it working already. Thanks for the info. Regards. On Sep 16, 7:39 pm, Yahel kaye...@gmail.com wrote: See this page.. http://rapidandroid.org/wiki/HttpUpload As I have mentioned this is only possible for SDK 1.0. In SDK 2.1 That is exactly what I'm doing in my app and it works perfectly from 1.5 to 2.2. What error do you see in your app ? Yahelhttp://www.a-world-of-faces.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] Uploading file through HTTP Post
Hi All, I am writing an application to upload a file from Android phone to a web server. I have tried the example from: http://www.anddev.org/novice-tutorials-f8/doing-http-post-with-android-t492.html But it will only work for SDK 1.0 (why? Not Sure?). Can this be done for Android 2.1? Or is there any other method to load a file from Android to a webserver? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Autofill a website
Hi All, I am writing an application which I want to use to autofill. Any idea how to autofill in a field in the webpage? For example will load the gmail page and the username and password will be auto filled in. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Accessing XML Based Web Service
Hi All, A xml based web servcie will be exposing a method for me to upload an image. I am writing an android app to access this web service (this web service will have an address which i will hardcode into the app) and upload the image which will be in sdcard automatically. Is it feasible in Android? Any idea how to do it? Through intents? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sending image to ftp server
Hi All, I am writing a camera application. I want to send the images to a ftp server instead of saving into the sdcard. Can it be done? I believe can specify the uri of the ftp server like ftp://19., and send the image there. But not sure how to do it? Is there any intent to do so? Thanks in Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google ID
Hi, Is it possible to get the Google ID of the phone? Google ID is the Gmail ID used for setting up the phone. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google ID
Hi Christian, I want to obtain it through code. Is there any way to do so? Thanks and Regards, Perumal On Sep 8, 6:14 pm, Christian Buchner christian.buch...@gmail.com wrote: Is it possible to get the Google ID of the phone? Google ID is the Gmail ID used for setting up the phone. On Android 2.x: adb shell *sqlite3* /data/data/com.google.*android*.googleapps/databases/gls.db *select* * from *meta*; On Android 1.x the database has a different name. Google it ;) Christian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Resource ID
Hi All, I am using the function decodeResource(Resources res, int id, BitmapFactory.Options opt). I am using it in the following way: BitmapFactory.decodeResource(getResources(), R.drawable.image,opt); My question is instead of using R.drawable.image which is an image in res\drawable folder, I want to use a image from sdcard. Is it possible? How to get the resource id of an image in the sdcard? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Resource ID
Thanks for the info! Regards, Perumal On Sep 6, 5:50 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Sep 6, 2010 at 5:47 AM, perumal316 perumal...@gmail.com wrote: I am using the function decodeResource(Resources res, int id, BitmapFactory.Options opt). I am using it in the following way: BitmapFactory.decodeResource(getResources(), R.drawable.image,opt); My question is instead of using R.drawable.image which is an image in res\drawable folder, I want to use a image from sdcard. Is it possible? How to get the resource id of an image in the sdcard? Images on the SD card are not resources, and therefore do not have resource IDs. Use decodeFile(), please. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Consulting: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: Exiting Application
Hi feiweiss, Yes, that's what I want to do. Exclusive lock on the camera which can be only unlocked by user through a pin. But I realised that by doing a Camera.open() it holds on to the camera resourses and other applications cannot use it but Android releases the camera after a short while and this method is also battery draining. I trying to find a better way to acheive it but couldn't find any methods yet. Is there a way to do this? What I want to do is similar to setting restrictions functions available in iPhone. In iPhone it is part of the OS, here I am trying to do the same thing but in a form of app. The user can still kill the application though. Nothing like what Filip has mentioned :) Thanks and Regards, Perumal On Aug 19, 12:12 am, feweiss fewe...@gmail.com wrote: Well, it seems like your main issue is how to use and/or maintain an exclusion lock on the camera without your application having an activity in the foreground. Have you solved that? As for the exit an application (I still think that's the wrong way to say it), the nice way would be to add a pending intent, which displays a notification icon. This reminds the user the camera is locked and provides a handy access to the unlock activity. In any case, in order to unlock the camera, the user needs to start an activity in your application that performs the unlock. Thinking of the camera lock as a state of the application/device is much better IMO than thinking that the application is running. The other way is to force stop the application from the Manage Applications control panel. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Exiting Application
Hi All, I want my application to always run in the background untill being exited properly. Any idea how to do it? Currently I notice after a while my application closes on it own. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en