Re: [android-developers] outOfMemoryError

2011-03-29 Thread sukumar bhashyam
Try recycling the unused bitmap. Not sure why do you need to store the all bitmaps in ArrayList. There could be a memory leak. Analyse the memory usage of your application. Check here for more info ( http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html) . On Tue, Mar

Re: [android-developers] Re: Mms-Sms database Thread Id Issue

2011-02-17 Thread sukumar bhashyam
/com/android/providers/telephony/MmsSmsProvider.java Thanks, Madhavi On Feb 16, 6:54 pm, sukumar bhashyam bhashyam.suku...@gmail.com wrote: hi , Uri content://mms-sms doesn't point to any table in mmssms db, Its just a base uri. To check for address, I guess, you need to run below

Re: [android-developers] Mms-Sms database Thread Id Issue

2011-02-16 Thread sukumar bhashyam
hi , Uri content://mms-sms doesn't point to any table in mmssms db, Its just a base uri. To check for address, I guess, you need to run below steps... -- First query canonical_addresses table and get the _id, If query has 0 count then address is not found. -- If not, then look for _id in

Re: [android-developers] Calling WebView.addJavascriptInterface after onPageFinished

2011-01-20 Thread sukumar bhashyam
Try this... mWebView.loadUrl(javascript:window.MyLateJavaObject.callableFunction();); On Thu, Jan 20, 2011 at 11:13 PM, jamesh jameshug...@gmail.com wrote: Hi, I'm trying to add Java objects to a WebView, such that they are available to Javascript. I can prove that if I do:

Re: [android-developers] google.com search button select issue on WebView

2011-01-07 Thread sukumar bhashyam
? http://developer.android.com/reference/android/webkit/WebSettings.html#setJavaScriptEnabled(boolean)http://developer.android.com/reference/android/webkit/WebSettings.html#setJavaScriptEnabled%28boolean%29 -- Kostya 07.01.2011 16:19, sukumar bhashyam пишет: hi, My app, which uses webview

[android-developers] Query regarding Intent.get Extras.

2010-08-11 Thread sukumar bhashyam
hi, Please help me in clarifying below query #1. Any Data( Bundle) passed into Intent.putExtras is going to create a new copy of Bundle instance or its going to have reference to the Bundle passed?. #2 Same query with get, Any call made to Intent.getExtras is going to new Instance of Bundle

[android-developers] Re: Issue with legacy phones URI.

2010-06-15 Thread sukumar bhashyam
Hello Can anyone please comment Regards, Sukumar. On Mon, Jun 14, 2010 at 7:07 PM, sukumar bhashyam bhashyam.suku...@gmail.com wrote: hi, My app needs contacts id, display name and phone number in a single query. I see legacy uri android.provider.Contacts.Phones.CONTENT_URI

[android-developers] Issue with legacy phones URI.

2010-06-14 Thread sukumar bhashyam
hi, My app needs contacts id, display name and phone number in a single query. I see legacy uri android.provider.Contacts.Phones.CONTENT_URI suits me the best. For some reasons query on this uri return me 0. I looked into the LegacyApiSupport.java, legacy PHONES table is mapped to a view

Re: [android-developers] Re: Prepare VCard in android

2010-05-19 Thread sukumar bhashyam
APIs not exposed in Android Framework. But, code for parsing/composing v-card is available in android git. Check below link, you can use this in your code. http://code.google.com/p/android-vcard/source/browse/branches/android2-merge/android-vcard/src2/android/pim/vcard/VCardComposer.java On Tue,

[android-developers] Re: AbstractAccountAuthenticator.getAccountRemovalAllowed query

2010-03-16 Thread sukumar bhashyam
Can anyone pls respond? On Fri, Mar 12, 2010 at 3:20 PM, sukumar bhashyam bhashyam.suku...@gmail.com wrote: hi, I'm trying to create a sync account which should not be deleted by user ( On selecting RemoveAccounts from Accounts settngs). For that, I overriden getAccountRemovalAllowed

[android-developers] AbstractAccountAuthenticator.getAccountRemovalAllowed query

2010-03-12 Thread sukumar bhashyam
hi, I'm trying to create a sync account which should not be deleted by user ( On selecting RemoveAccounts from Accounts settngs). For that, I overriden getAccountRemovalAllowed() function. From the java docs (@

[android-developers] Cannot sendBroadcast Intent to receiver which has permission.

2010-03-11 Thread sukumar bhashyam
hi All, I created a broadcast receiver with permission as below, receiver android:name=.TestReceiverPermission android:permission=com.suku.test intent-filter action android:name=suku.TestReceiverPermission / /intent-filter /receiver

Re: [android-developers] Cannot sendBroadcast Intent to receiver which has permission.

2010-03-11 Thread sukumar bhashyam
Regards, Sukumar. On Fri, Mar 12, 2010 at 10:51 AM, Dianne Hackborn hack...@android.comwrote: Your app apparently does not have that permission. Are there any messages printed in the log when installing it saying why it was not granted? On Thu, Mar 11, 2010 at 9:11 PM, sukumar bhashyam

Re: [android-developers] Cannot sendBroadcast Intent to receiver which has permission.

2010-03-11 Thread sukumar bhashyam
I got the problem..Need to create permission in the manifest file. permission android:name=com.suku.test /permission On Fri, Mar 12, 2010 at 11:41 AM, sukumar bhashyam bhashyam.suku...@gmail.com wrote: hi Dianne, I see following message while installing my app. Any reason

Re: [android-developers] My Widget is Locking up Android OS

2010-03-03 Thread sukumar bhashyam
Don't pass AppWidgetManager instance to MyTime class. Instead use AppWidgetManager.getInstance() to get an instance of AppWidgetManager. On Wed, Mar 3, 2010 at 10:04 AM, themindiswasted abarban...@gmail.comwrote: Can someone look at this code and see why it is locking up the Android OS. I am

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-19 Thread sukumar bhashyam
AddAccountExplicitly() would need Authenticator of same type. I created an Authenticator and called AddAccountExplicitly() for the same type which created an account ( Could verify it from AccountManager.getAccounts()) One strange thing I observer is none of the implementation class functions

Re: [android-developers] Re: Working with the new ContactContracts API

2009-11-09 Thread sukumar bhashyam
hi Dmitri, Thanks for throwing some light on SyncAdapters. Once a new sync account and sync adapter is created ( By inherting AbstractThreadedSyncAdapter) for a sync application,how does any other application wants to call sync for the same sync app will bind?. Was it through SyncManager or

Re: [android-developers] Re: Working with the new ContactContracts API

2009-11-09 Thread sukumar bhashyam
hi Dmitri, Could you please answer my post regarding syncAdapters in the same thread. Pasting it again below. Thanks for throwing some light on SyncAdapters. Once a new sync account and sync adapter is created ( By inherting AbstractThreadedSyncAdapter) for a sync application,how does any

[android-developers] Re: Android 2.0 Force close in contacts app

2009-10-28 Thread sukumar bhashyam
hi Xav, Andorid 2.0 SDK release page talks more about Contacts Sync Adaptor, which is not supported in Official Android 2.0 SDK. Could you please let me know when it will be supported. Will there be another 2.0 SDK release with Sync Adaptor changes?. Regards, Sukumar. On Wed, Oct 28, 2009 at

[android-developers] Deep sleep behaviour

2009-09-08 Thread sukumar bhashyam
Hello, I have some basic doubts with Deep Sleep on Android device. Deep sleep will turn the CPU to OFF. Suppose if I have a service which does some operations every 5 sec and I din't acquire any power manager locks in my service. When device goes to Deep sleep, will my service still running?. If

[android-developers] CPU usage api's query

2009-07-15 Thread sukumar bhashyam
Hello, I'm trying to develop a service, which needs to be run in background as a low priority task and does some complex processing . I need to gracefully quit my service when their is a resource shortage( like CPU running low on memory). Was there any APIs available to know the CPU resource

[android-developers] Not able to launch an activity of other app from Tab activity.

2009-06-03 Thread sukumar bhashyam
Hi, I am getting the following exception when I call an activity1 ( resides in 1.apk) using the following intent from TabActivity (activity 2 resides in 2.apk) Intent tab1intent = new Intent(); tab1intent.setAction( android.intent.action.VIEW); tab1intent.addCategory(

[android-developers] How to share non-sqlite( shared Preference) data over Content Provider.

2009-05-28 Thread sukumar bhashyam
hi, I looked into some examples of sharing data to other apps using content Provider. All these examples talks about sharing sqlite dbs. I need to share data under shared Preferences of my app to other apps using content Provider. Can I use content Provider to do that ?. Please let me know some

[android-developers] Re: InstrumentationTestRunner on G1

2009-03-17 Thread sukumar bhashyam
hi Fred, CheckJNI has nothing to do with testRunner. Din't remember the exact cause why it was not running on phone. But, it started working after sometime( might be problem with my code ). Sukumar. On Tue, Dec 30, 2008 at 3:12 PM, sukumar bhashyam.suku...@gmail.com wrote: hi, I'm facing

[android-developers] Re: How to get the IMEI number of a android device programmatically?

2009-02-10 Thread sukumar bhashyam
Use TelephonyManager's getDeviceId(). On Tue, Feb 10, 2009 at 3:48 PM, manoj manojkumar.m...@gmail.com wrote: Hi frnds, I want get the IMEI number of a android device programmatically. But I dont know how to get it by writing a program. Can any one please help me to get the IMEI?