[android-developers] Supporting ClientCertificates in Android Webview for 4.4

2014-01-15 Thread Alok Kulkarni
Hi, My app needs to support Client Certificate authentication from my Webview. Until 4.3 , i could do it by accessing internal APIs for onReceivedClientCertRequest() But in 4.4 it seems that the Browser implementation has changed to Chromium browser which has removed the classback for Client certif

[android-developers] Contact shows as part of Groups Tab and not

2011-12-08 Thread Alok Kulkarni
I create a group programatically as private void createGroup() { ArrayList ops = new ArrayList(); ops.add(ContentProviderOperation .newInsert(ContactsContract.Groups.CONTENT_URI) .withValue(ContactsContract.Groups.TITLE, "SRI").build()); try { getConte

[android-developers] Re: Programatically adding a contact issue

2011-11-23 Thread Alok Kulkarni
Hello.. Anybody there :) Please let me know if you have an answer :) On Tue, Nov 22, 2011 at 3:28 PM, Alok Kulkarni wrote: > Hi all, > > I am developing a Backup restore app for contacts.There is this device > HTC Desire which has Birthday and Anniversary Fields which are not >

[android-developers] Programatically adding a contact issue

2011-11-22 Thread Alok Kulkarni
Hi all, I am developing a Backup restore app for contacts.There is this device HTC Desire which has Birthday and Anniversary Fields which are not present on my devices.For each field i apply ContentProviderOperation.newInsert() and finally ContentProviderResult[] res = contentResolver.appl

[android-developers] Re: Weird behavior when two applications with Similar Package names are installed

2011-08-05 Thread Alok Kulkarni
Solved: I was using an internal Broadcast mechanism for starting activity and displaying toasts.Both applications had the same Action name :) So both applications were receiving the broadcasts ... On 8/4/11, Alok Kulkarni wrote: > HI, > I have written an app with base package as say a.b

[android-developers] Weird behavior when two applications with Similar Package names are installed

2011-08-04 Thread Alok Kulkarni
HI, I have written an app with base package as say a.b.c and for having multiple APKs to be installed at same time i create another project with base package as a.b.c.d.Both apps are signed with the same Release Key When i have both apps installed, sometimes calling an activity from 1st project lau

[android-developers] Disable Specific Cell Boadcasts

2011-07-28 Thread Alok Kulkarni
Hi, I wish to disable Cell Broadcasts for Advertisements in my app. The ISms AIDL has the disableCellBroadcast with messageIdentifier as the parameter. I went through the 3GPP TS 23.041 doc and also searched the net but could not find Message Identifier for Advertisements. Can anyone help me with t

Re: [android-developers] Calendar Backup/Restore Related Guidance

2011-07-26 Thread Alok Kulkarni
Oh ok thanks a lot Mark.. :) On Tue, Jul 26, 2011 at 4:45 PM, Mark Murphy wrote: > On Tue, Jul 26, 2011 at 5:54 AM, Alok Kulkarni wrote: >> I want to write an application which backs up the default calendar on the >> phone. > > If you wish to back up a user's Googl

[android-developers] Calendar Backup/Restore Related Guidance

2011-07-26 Thread Alok Kulkarni
Hi, I want to write an application which backs up the default calendar on the phone. My question is what all fields should i backup.Looking at the Calendars /Events/EventsRawTimes/Instances/Attendees/Reminders/CalendarAlerts tables there are lots of columns .And according to manufacturer some colu

Re: [android-developers] CD installer for my Android application Permissions

2011-07-11 Thread Alok Kulkarni
haha.. I will go into the legalities of the stuff myself ;) Sorry for the trouble... Thanks, Alok On Mon, Jul 11, 2011 at 5:55 PM, Mark Murphy wrote: > On Mon, Jul 11, 2011 at 7:43 AM, Alok Kulkarni wrote: >> Ok . thanks for the info Mark.As i read the license >> http://www.apac

Re: [android-developers] CD installer for my Android application Permissions

2011-07-11 Thread Alok Kulkarni
ith Apache license included ? Please let me know if you can help me with that.. :) On Mon, Jul 11, 2011 at 4:49 PM, Mark Murphy wrote: > On Mon, Jul 11, 2011 at 7:14 AM, Alok Kulkarni wrote: >> I want to create a CD installer for my Android application. >> I want to use adb.ex

[android-developers] CD installer for my Android application Permissions

2011-07-11 Thread Alok Kulkarni
I want to create a CD installer for my Android application. I want to use adb.exe and AdbWinApi.dll in my Windows application. Can i use this directly internally in my app or i need to consider Licensing for Android here? I want to create something similar to Android Injector -- You received this

Re: [android-developers] Get the virtual keyboard set by user

2011-06-24 Thread Alok Kulkarni
id-developers@googlegroups.com > [mailto:android-developers@googlegroups.com] On Behalf Of Alok Kulkarni > Sent: Thursday, June 23, 2011 9:59 PM > To: android-developers@googlegroups.com > Subject: [android-developers] Get the virtual keyboard set by user > > Hi all. >  Can we progr

[android-developers] Get the virtual keyboard set by user

2011-06-23 Thread Alok Kulkarni
Hi all. Can we programatically come to know whether Android keyboard is currently being used by the user or not? This requirement arises from the need of popping up Numeric keypad as default and then user can switch to Alphanumeric keypad .This is possible using editText.setRawInputType(Configurat

Re: [android-developers] Re: Force Close on Click in Calendar after i delete all information set in it

2011-05-03 Thread Alok Kulkarni
these, regardless of platform version.  Writing code >> > like >> > this is going to be a continual source of trouble for you. >> > >> > >> > >> > On Mon, May 2, 2011 at 4:36 AM, Alok Kulkarni >> > wrote: >> > > Hi A

[android-developers] Force Close on Click in Calendar after i delete all information set in it

2011-05-02 Thread Alok Kulkarni
Hi All, I am trying to remove all Calendar related entries from a phone(Galaxy tab) Here is the code /** * Deletes all calendar info */ private boolean _deleteCalendarInfo() { try { String uriPrefix; if (Bu

[android-developers] Re: Delete Emails programatically

2011-02-13 Thread Alok Kulkarni
Answer 2 :- Not possible. Change account password if u want noone else to get the access. On 2/8/11, Alok Kulkarni wrote: > Ok i got my first answer.Deleting a non primary account also deleted > the associated mails with that account. > > Thanks, > Alok > > On Tue, Feb 8, 2

[android-developers] Re: Delete Emails programatically

2011-02-08 Thread Alok Kulkarni
Ok i got my first answer.Deleting a non primary account also deleted the associated mails with that account. Thanks, Alok On Tue, Feb 8, 2011 at 12:20 PM, Alok Kulkarni wrote: > Any answers ??? > > On Mon, Feb 7, 2011 at 7:55 PM, Alok Kulkarni wrote: >> Hi, >> I am try

[android-developers] Re: Delete Emails programatically

2011-02-07 Thread Alok Kulkarni
Any answers ??? On Mon, Feb 7, 2011 at 7:55 PM, Alok Kulkarni wrote: > Hi, > I am trying to delete all the mails of an existing account .Is that possible? > When i tried to delete the accounts on the phone , i saw that i  could > delete all the accounts programatically except the pri

[android-developers] Delete Emails programatically

2011-02-07 Thread Alok Kulkarni
Hi, I am trying to delete all the mails of an existing account .Is that possible? When i tried to delete the accounts on the phone , i saw that i could delete all the accounts programatically except the primary account which i know that can be deleted only on phone reset.(In program i get false re

Re: [android-developers] Problem with adjustPan andadjustResize

2011-01-25 Thread Alok Kulkarni
ing it does is cause your UI to relayout for the new window > size. > I don't know what you are doing, but the vast majority of applications you > interact with just use adjustResize with a regular view hierarchy, and they > work fine. > > On Tue, Jan 25, 2011 at 12:50 AM, Alok K

Re: [android-developers] Problem with adjustPan andadjustResize

2011-01-25 Thread Alok Kulkarni
to the bottom when SoftKeyboard is open. When both are given , then worked fine on a few devices like Samsung Europa but on most of the devices either of the issues mentioned above was observed. Regards, Alok. On Tue, Jan 25, 2011 at 2:11 PM, Alok Kulkarni wrote: > Thanks a lot for ur response

Re: [android-developers] Problem with adjustPan andadjustResize

2011-01-25 Thread Alok Kulkarni
> That said, these would have nothing to do with whether a text view would > actually receive input. > > On Fri, Jan 21, 2011 at 6:09 AM, Alok Kulkarni wrote: >> >> Hi. >>  i am having an activity in which i am adding controls such as >> EditText and TextView at runt

[android-developers] Problem with adjustPan andadjustResize

2011-01-21 Thread Alok Kulkarni
Hi. i am having an activity in which i am adding controls such as EditText and TextView at runtime in a listiiew. What happens is that for the Edittext the keyboard pops up and the controls at the bottom of the screen are not visible even when i scroll down.So when i add the property android:windo

Re: [android-developers] Re: Create Folder for Specific SMSes

2011-01-06 Thread Alok Kulkarni
thanks to Bibek. On Thu, Jan 6, 2011 at 8:28 PM, Alok Kulkarni wrote: > Got the short answer its not possible. > "You might be able to make it work for a few devices, but it will not > work reliably for all devices.. > Becuase, the SMS content provider apis are not public

Re: [android-developers] Re: Create Folder for Specific SMSes

2011-01-06 Thread Alok Kulkarni
quot; http://techdroid.kbeanie.com/2009/09/sms-blocking-in-android.html On Thu, Jan 6, 2011 at 7:13 PM, Alok Kulkarni wrote: > I am creating antivirus app .So its not possible to sort out messages > that can be spam or the ones that i wish to ignore ? > > On Thu, Jan 6, 2011 at 6:58 PM, Kum

Re: [android-developers] Re: Create Folder for Specific SMSes

2011-01-06 Thread Alok Kulkarni
re stored in a table and not in a folder structure. > > Kumar Bibek > http://techdroid.kbeanie.com > http://www.kbeanie.com > > > > On Thu, Jan 6, 2011 at 6:53 PM, Alok Kulkarni wrote: >> >> Any answers ??? >> Thanks, >> Alok. >> >> On

[android-developers] Re: Create Folder for Specific SMSes

2011-01-06 Thread Alok Kulkarni
Any answers ??? Thanks, Alok. On Wed, Jan 5, 2011 at 6:58 PM, Alok Kulkarni wrote: > Hi guys, > I searched the forums but could not find a satisfactory solution.Can i > create a seperate folder at the SMS root level in android and filter > SMSes coming to Inbox to get diverted to thi

[android-developers] Create Folder for Specific SMSes

2011-01-05 Thread Alok Kulkarni
Hi guys, I searched the forums but could not find a satisfactory solution.Can i create a seperate folder at the SMS root level in android and filter SMSes coming to Inbox to get diverted to this new folder ? Thanks , Alok -- You received this message because you are subscribed to the Google Group

[android-developers] Re: Detect Codec of local media File

2010-12-31 Thread Alok Kulkarni
Seems everyone is busy with new year party :P:P Anyways Happy New Year to all Android developers.. Have a rocking year ahead !!! Thanks , Alok. On Fri, Dec 31, 2010 at 12:50 PM, Alok Kulkarni wrote: > Hi, > I am streaming local audio and video files of a mobile device to > another andr

[android-developers] Detect Codec of local media File

2010-12-30 Thread Alok Kulkarni
Hi, I am streaming local audio and video files of a mobile device to another android devce using FFMpeg. Is there a way to detect/ know the Codec format of the file programatically as it needs to be passed to FFMpeg. I am using the Media Scanning logic of ContentProvider ( MediaStore.Audio.Media an

[android-developers] Re: Problem related with EditText used in Listview

2010-12-16 Thread Alok Kulkarni
The solution worked for me. Only thing to was to add following code in getView if (attitude_values[position] != null) { holder.TextEntry.setText(attitude_values[position]); } else { holder.TextEntry.setText(""); } On Tue, Dec 14, 2010 at 11:28 PM, Alok Kulka

[android-developers] Re: Problem related with EditText used in Listview

2010-12-14 Thread Alok Kulkarni
Apparently , i found this link http://stackoverflow.com/questions/4358342/edittext-in-a-list-arent-working-the-way-they-should Ill chech if this works, Thanks, Alok On 12/14/10, Alok Kulkarni wrote: > I am using a ListView wherein my listitem.xml contains a TextView and > an EditText. &

[android-developers] Problem related with EditText used in Listview

2010-12-14 Thread Alok Kulkarni
I am using a ListView wherein my listitem.xml contains a TextView and an EditText. If my list length increases and it becomes scrollable then the value which the user had entered in the first EditText in listitem#0 gets reflected in the listitem which has become visible now due to scrolling, for e

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Alok Kulkarni
I am using Androids JSON library, The extra "\" in the line strJson = start + "\\u" + strHex.substring(strHex.length()-4)+ end; has to be added as an escape sequence else the code does not compile. "I don't understand the need for the EncodeJson function." -Though internally java might be stori

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Alok Kulkarni
output of this method is passed to JSON object using its put method.At this point an additional "\" gets added to the parameter due to which the server does not recognize this as a valid UTF string Thanks, Alok. On Fri, Nov 12, 2010 at 9:07 PM, Daniel Drozdzewski wrote: > On Fri, No

[android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Alok Kulkarni
Hi, I am having a unicode string "\u3403" which is actualy some japansee character I want to pass it through a JSON object. So i put the value as say String str = "\u3403" jsonObject.put("name",str); When i do this the json object internally adds another escape sequence as "\\u3403", and the req

Re: [android-developers] Application Losing Connectivity after 30 minutes (on Wifi)

2010-11-01 Thread Alok Kulkarni
Thanks for sharing the info mark, i will try it out and post if there are any further issues. Regards, Alok. On Tue, Oct 26, 2010 at 1:03 PM, Mark Murphy wrote: > You may need a WakeLock and WifiLock, if the device is falling asleep. > > On Tue, Oct 26, 2010 at 3:28 AM, Alok Kulkar

[android-developers] Application Losing Connectivity after 30 minutes (on Wifi)

2010-10-26 Thread Alok Kulkarni
Hi, I have an application which continuously fetches data from the server , downloads and plays songs ..My app runs on WiFi. After around 30 minutes , the application loses connectivity .. At that point of time if a browser is opened it connects to the internet.. But my app has lost connectivity.If

Re: [android-developers] Error with DB onUpgrade

2010-10-22 Thread Alok Kulkarni
n upgrade as well. > > To fix this issue, you need to add thread synchronization around opening the > database, to avoid concurrent access until the database has been fully > upgraded. > > -- Kostya > > 22.10.2010 17:03, Alok Kulkarni пишет: >> >> I am following this >&

Re: [android-developers] Error with DB onUpgrade

2010-10-22 Thread Alok Kulkarni
columns or tables. > > So if your code just does "ALTER TABLE ADD COLUMN", you don't need to do > anything special to preserve existing data. > > -- Kostya > > 22.10.2010 16:56, Alok Kulkarni пишет: >> >> Yeah ill do my best.. My code is too complicat

Re: [android-developers] Error with DB onUpgrade

2010-10-22 Thread Alok Kulkarni
leDatabase(); } The open method is called for each database seperately. On Fri, Oct 22, 2010 at 6:26 PM, Alok Kulkarni wrote: > Yeah ill do my best.. My code is too complicated right now... :P > One more thing i need to confirm.. After upgrade , all the old > databases are delete

Re: [android-developers] Error with DB onUpgrade

2010-10-22 Thread Alok Kulkarni
wrote: > Sounds like this could be it. > > Can't you just go through SQL open helper for all code paths? > > -- Kostya > > 22.10.2010 16:37, Alok Kulkarni пишет: >> >> No. Actually i am accessing another table from my databases at the >> same time from another

Re: [android-developers] Error with DB onUpgrade

2010-10-22 Thread Alok Kulkarni
you mean by " > > At the start of the application , > i initialize all the databases and access columns from the required > tables > > " > ? > > If you're relying on SQL open helper and its onUpgrade, then that should be > the only way you're acces

[android-developers] Error with DB onUpgrade

2010-10-22 Thread Alok Kulkarni
Hi, I have multiple databases in my app.At the start of the application , i initialize all the databases and access columns from the required tables.What i did is , for one of the databases i incremented the version of the DB. So now i have started getting error of " No Such table say ABCD while c

[android-developers] Issue of getting keyEvents for device having both hard and soft keyboard.

2010-10-05 Thread Alok Kulkarni
Hi all, I am developing the application where i want to capture all 'keyEvents' in my code. I used "onKeyDown(int keyCode, KeyEvent event) " to achieve this. But it has some flaw in it, 1.When i have device with Hardware keyboard, onKeyDown works well with it. But when i use Virtual keyboard it fa

[android-developers] Re: Intent filter to launch an application

2010-09-15 Thread Alok Kulkarni
Solved the problem. Referred to the Manifest file of Androd Browser. Thanks, Alok. On Wed, Sep 15, 2010 at 4:59 PM, Alok Kulkarni wrote: > Hi, > I want to do  the following. > When a user clicks on a URL containing a few specific keywords like > http://ad.mysite.com from somewhere l

[android-developers] Intent filter to launch an application

2010-09-15 Thread Alok Kulkarni
Hi, I want to do the following. When a user clicks on a URL containing a few specific keywords like http://ad.mysite.com from somewhere like entering the URL in a to do note in calendar, i want to recognize "mysite.com" keywords and launch my application instead of browser. I know that the browser

Re: [android-developers] ListView ClassCastException

2010-08-30 Thread Alok Kulkarni
Oh i got the problem.It was incorrectly declared in the layout.Will try the chages now.. Thanks a lot Michael. On Mon, Aug 30, 2010 at 10:47 PM, Michael MacDonald < googlec...@antlersoft.com> wrote: > On 08/30/10 06:59, Alok Kulkarni wrote: > > Hi all,in my application I

[android-developers] ListView ClassCastException

2010-08-30 Thread Alok Kulkarni
Hi all,in my application I have a class as: 1. public class TouchInterceptor extends ListView and my main activity class as: 1. public class GUIEngine extends Activity in this class i initialize my ListView variable as: 1. lView = (ListView) findViewById(R.id.mainList); now i wan

Re: [android-developers] Problem getting width and height of Device programatically for QVGA devices.

2010-08-23 Thread Alok Kulkarni
So is it that of API level is 3, then it wont calculate the width and height and just assume the emulated HVGA version as 320 x 427.. But what is 427 i mean it shd be 480 rite ?? 2010/8/23 Alok Kulkarni > Ok.. here is what the case is.. > I have in manifest, but i compile > the proj

Re: [android-developers] Problem getting width and height of Device programatically for QVGA devices.

2010-08-23 Thread Alok Kulkarni
tly? It seems like your app runs in > compatibility mode, and sees emulated HVGA display parameters. > > -- > Kostya Vasilyev -- http://kmansoft.wordpress.com > > 23.08.2010 17:51 пользователь "Alok Kulkarni" > написал: > > > Hi all, > I want to get the w

[android-developers] Problem getting width and height of Device programatically for QVGA devices.

2010-08-23 Thread Alok Kulkarni
Hi all, I want to get the width and height of my device to know what type device it is ie QVGA, HVGA ,WVGA.. Also i need to adjust some layouts according to width and height of the screen. I tried following methods but its not working. 1) 1. /* First, get the Display from the WindowManager */

[android-developers] Re: ListView paint issue in landscape mode.Width remains as in Portrait mode

2010-08-16 Thread Alok Kulkarni
Solved the problem Actually i was playing with the width of the list after setting the indexer of the list.This was causing the painting issue Thanks, Alok On Mon, Aug 16, 2010 at 2:35 PM, Alok Kulkarni wrote: > Hi, > I am having a listview in my App which shows perfectly in Portrait mo

[android-developers] ListView paint issue in landscape mode.Width remains as in Portrait mode

2010-08-16 Thread Alok Kulkarni
Hi, I am having a listview in my App which shows perfectly in Portrait mode.But when i change orientation to landscape , sometimes the width remains as that of Portrait mode.Even the scrollbar for the list comes at the center and remaining part of the screen remains balcked out.This happens only wi

Re: [android-developers] Problem with reading contacts on Samsung Galaxy Europa

2010-08-06 Thread Alok Kulkarni
yeah it is only happening on that deviuce. But i have found a different solution to it which i will put up here tomorrow. On Wed, Aug 4, 2010 at 12:51 PM, dan raaka wrote: > Is this happening only on Europa ? > > -Dan > > > On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni wro

[android-developers] Problem with reading contacts on Samsung Galaxy Europa

2010-08-04 Thread Alok Kulkarni
Hi , i am using startActivityForResult(intent,PICK_CONTACT); Its working on Android 1.5 to 2.1 except for the 2.1 device Samsung Europa..On that device , i am not able to read the contacts, its returning empty result. here is the link i referred for the code http://www.droidnova.com/use-intents-to-

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
getReadableDatabase for the 3 songs list query.. UI does not block now..Yippee I am sorry for the incorrect inference that i got earlier .. Thanks And Regards, Alok. On Tue, Jul 20, 2010 at 6:52 PM, Alok Kulkarni wrote: > Yess :( > Anyone can try it out.. > One more thing.. I have iniialised

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
as DB was created in UI context. On Tue, Jul 20, 2010 at 6:01 PM, Mark Murphy wrote: > On Tue, Jul 20, 2010 at 8:24 AM, Alok Kulkarni wrote: > > Thanks for your reply. What i did was i removed the System.gc() as well > as > > the handler call. > > Considering the

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
rs, > there must be other database I/O going on -- perhaps it is that I/O > that is causing your problem. > > On Tue, Jul 20, 2010 at 7:56 AM, Alok Kulkarni wrote: > > Hi Mark, > > As i said , i am doing the operation in a "background thread". > > I also know

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
nil kukreti wrote: > > Ya Mark is right ! > > You need to use *multithreading* for making a reponsive UI. > > Thread.sleep inside spawned thread will give a chance to main UI thread to > response to User events. > > > -- Forwarded message -- > From: Alok

[android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
Hi, I have a background thread which queries for 1000 records at a time. After querying , when i call cursor.moveToFirst(), the UI gets blocked until the operation is completed.This is very disturbing experience for user , especially if there are 1 plus records.I use Thread.sleep in between aft

[android-developers] Progressbar with Thumb image is not showing correctly on the 2.1 emulator

2010-06-29 Thread Alok Kulkarni
HI I am having a progressbar whose width is fill parent. I have an image for its thumb which is similar to Android default thumb but a bit larger in size.On Android 1.5 when i observer , part of the thumb goes out of the screen on the left side.So i gave a thumb offset as -10 which works perfectly.

[android-developers] Memory usage increasing on orientation change only for the 1st orientation change

2010-06-29 Thread Alok Kulkarni
Hi, I traced the memory usage of my app using "adb shell procrank" command. At that startup, USS is 6.2 mb .When i change orientation,it goes to 8.1 mb.After that , if i keep on changing orientation , it remains on 8.1 mb. Is this a memory leak , or am i missing something ? -- You received this m

Re: [android-developers] Re: Maintaining the state when changing the orientation

2010-06-21 Thread Alok Kulkarni
Thanks Dianne for your response. I have solved the leaks almost completely . What wrong i was doing is i was also saving the array of list items drawn on the UI and reassigning it to the new activity.It takes some time to understand what really should be saved and what not to be saved , also unders

[android-developers] Re: Maintaining the state when changing the orientation

2010-06-19 Thread Alok Kulkarni
Currently i am having handlers in my code which update th ui. But it seems they are not having any effect on ui when i change the orientation.the handlers get called but do not have any effect on ui.is there any special handling that needs to be done in case of handlers? On 5/14/10, Alok Kulkarni

[android-developers] OnOrientationChanged leaks in ListView

2010-06-16 Thread Alok Kulkarni
Hi, I am having a ListView with custom ArrayAdapter.For defining a list item i have my own class ListItem which stores all info including list item images, and other textual info in it. I have handled orientation change in onRetainNonConfigurationInstance() in which i save the array of ListItems in

[android-developers] Airplane mode Causing a problem

2010-06-10 Thread Alok Kulkarni
Hi, I am having an HTC Magic device. Scenario For the problem I turn off airplane mode after putting it on for sometime. Once i do that and make some network connection either programatically or opening a browser, i get a Force Close dialog with process com.android.phone not responding. When i see

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-27 Thread Alok Kulkarni
ed a major headache for me .. Thanks and Regards, Alok. On Thu, May 6, 2010 at 7:24 PM, Alok Kulkarni wrote: > Oh ok.. Thanks for that.. ill try that and will let you know... > Regards, > Alok. > > > On Thu, May 6, 2010 at 3:36 PM, skink wrote: > >> >> >>

Re: [android-developers] Re: Maintaining the state when changing the orientation

2010-05-20 Thread Alok Kulkarni
there anything wrong thats striking to anyone right now ? Thanks , Alok. On Thu, May 20, 2010 at 5:42 AM, JP wrote: > > > On May 14, 2:54 am, Alok Kulkarni wrote: > > I need to save many objects so basically onSavedInstanceState is not of > full > > use . > > Like in yo

Re: [android-developers] Re: Maintaining the state when changing the orientation

2010-05-14 Thread Alok Kulkarni
icon has been updated automatically? Is there any issue in case of handlers in case of orientation change?The handlers seem to get called when i checked using the debug mode ,but do not have any effect it seems. Thanks, Alok. On Thu, May 13, 2010 at 9:54 PM, Alok Kulkarni wrote: > Thanks a

Re: [android-developers] Re: Maintaining the state when changing the orientation

2010-05-14 Thread Alok Kulkarni
, the activity will still be restarted and > onConfigurationChanged(Configuration) will not be called." > > That should get you going in the right direction. There is also > onRetainNonConfigurationInstance (Activity method) but it's not what > you should rely on (can

[android-developers] Maintaining the state when changing the orientation

2010-05-13 Thread Alok Kulkarni
I am having an application showing ListItems and Dialog boxes in it.. I want that when i change the orientation from Portrait to landscape mode, i need to maintain the state of the application .. I have seperate XMLs for landscape and portrait mode.. What is the best way to achieve this > Thanks ,

[android-developers] Application Upgrade Related Questions

2010-05-07 Thread Alok Kulkarni
Hi , i wanted to ask a question regarding the upgrading of my application. I have tested the following thing. Put the new version of the APK on a server.Open the link of the APK from the mobile browser .The mobile automatically downloads the APK and asks for installation.Once installed , the applic

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-06 Thread Alok Kulkarni
Oh ok.. Thanks for that.. ill try that and will let you know... Regards, Alok. On Thu, May 6, 2010 at 3:36 PM, skink wrote: > > > On May 6, 5:52 am, skink wrote: > > reading this: > http://groups.google.com/group/android-developers/msg/db8d63fd8575129c > > it seems ninePatches are created stati

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
It would be great if you could help me giving an example of using the inflate method and the NinePatchDrawable constructor. Thanks, Alok. 2010/5/5 Alok Kulkarni > Yes i had created the image fin2.9.png using draw9patch tool.Frankly > speaking i am not getting how to use the second method

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
hod for > loading the bitmap. > > -- Kostya > > Alok Kulkarni писал(а) в своём письме Wed, 05 May > 2010 19:35:40 +0400: > > Thanks a lot Kostya for those links..You and Skink have attended to my >> problems patiently throughout the day :) >> I tried the

[android-developers] EditText Image changing look when given at runtime.

2010-05-05 Thread Alok Kulkarni
Hi guys, I am having an EditText. If i specify image for the EditText in the layout XML file (android:background) it looks different and looks different when i specify it at runtime EditText et = (EditText)findViewById(R.drawable.et1); et.setBackgroundDrawable(Main.themes.getDrawable(EDRAWABLES.Edi

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Thanks a lot Kostya for those links..You and Skink have attended to my problems patiently throughout the day :) I tried the following Bitmap bmp = BitmapFactory.decodeFile("data/data/com.android.test.themes/fin2.9.png"); byte[] bmpChunks = bmp.getNinePatchChunk(); NinePatchDrawable

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
text which is what i dont want ... The 2nd image is the spinner image On Wed, May 5, 2010 at 5:51 PM, Alok Kulkarni wrote: > Does not make any difference between both ir CreateFromStream and > CreateFromPath > Apparantly i am having a problem creatnig the image in the Draw9 patch..

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
; On May 5, 6:46 am, Alok Kulkarni wrote: > > Can you show me an example if possible ? > > use this ctor: > > > http://developer.android.com/intl/fr/reference/android/graphics/drawable/NinePatchDrawable.html#NinePatchDrawable(android.content.res.Resources<http://developer.and

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Can you show me an example if possible ? 2010/5/5 Alok Kulkarni > thanks skink , i will look into it .. and will update it over here.. > > > 2010/5/5 Alok Kulkarni > > Thanks for the link Kostya, >> But my problem is that i cannot have my images under drawable folder an

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
thanks skink , i will look into it .. and will update it over here.. 2010/5/5 Alok Kulkarni > Thanks for the link Kostya, > But my problem is that i cannot have my images under drawable folder and > also cannot specify the image path in my XML for layout as and when the > us

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
t; > http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch > > -- Kostya > > Alok Kulkarni писал(а) в своём письме Wed, 05 May > 2010 12:25:11 +0400: > > For 9 patch images i suppose they need to be stored under drawable folder. >> I >> need to change the i

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
For 9 patch images i suppose they need to be stored under drawable folder. I need to change the images according to theme at runtime. On Wed, May 5, 2010 at 12:52 PM, skink wrote: > > > Alok Kulkarni wrote: > > Hi , > > I am having the following code for drawing buttons in

[android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Hi , I am having the following code for drawing buttons in my project. I am having a button which has three images for 1 button .Namely one image for the rectangle and 2 images for the left and right side curves respectively. When the button has focus , there is another three images for focus and s

[android-developers] Re: Set Image resource as package path in XML for runtime images

2010-04-19 Thread Alok Kulkarni
the layout_width, layout_heighyt , but its not working.. Thanks, Alok On Mon, Apr 19, 2010 at 4:29 PM, Alok Kulkarni wrote: > Hi, > Can i do this :- > Set the image background path as package:imageName > Example.. At runtime , my package is com.test.android .Inside that i have

[android-developers] Set Image resource as package path in XML for runtime images

2010-04-19 Thread Alok Kulkarni
Hi, Can i do this :- Set the image background path as package:imageName Example.. At runtime , my package is com.test.android .Inside that i have an image whose path i want to mention in the XML layout file as android:src = com.test.android/img1 for an ImageButton. I saw an SDK reference for ImageV

Re: [android-developers] Re: Database insertion timings

2010-04-14 Thread Alok Kulkarni
nvarchar(200) multiple_artists integer artist_id integer id integer Primary Key Table *Songs* artist_id integer album_id integer id integer Primary Key name nvarchar(200) On Mon, Apr 12, 2010 at 9:26 PM, Dave Johnston wrote: > On Apr 12, 7:50 am, Alok Kulkarni wrote: > > Hi, > > I am i

Re: [android-developers] Re: Problem accessing Layer-List items

2010-04-13 Thread Alok Kulkarni
, MobDev wrote: > hhmm, > are you sure they are getting a layer-id if they are not specified as > layers ? > I have no experience in that but I see that those already have a R-id > and you are trying to use that same id as a layer-id ? > > > On 12 apr, 15:48, Alok Kulkarni wrote

Re: [android-developers] Re: Database insertion timings

2010-04-13 Thread Alok Kulkarni
Apr 13, 2010 at 1:07 PM, Alok Kulkarni wrote: > @mobDev, Ending transaction > > On Tue, Apr 13, 2010 at 12:59 PM, Alok Kulkarni wrote: > >> I do not have any indices for my tables at all. >> Each of the tables Artist, Albumn and Songs has 4,5,5 columns >> respectively

Re: [android-developers] Re: Database insertion timings

2010-04-13 Thread Alok Kulkarni
@mobDev, Ending transaction On Tue, Apr 13, 2010 at 12:59 PM, Alok Kulkarni wrote: > I do not have any indices for my tables at all. > Each of the tables Artist, Albumn and Songs has 4,5,5 columns respectively. > Using Raw query as Yahel said improves the speed to some extent . Inserti

Re: [android-developers] Re: Database insertion timings

2010-04-13 Thread Alok Kulkarni
ontentValues, try to create an insert sql > > > statement and send it to via SQLiteDatabase.execSQL to see if there is > > > any improvement > > > - Maybe it's not the database writing that is slow but the reading > > > from wherever your getting the

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
Each of these above functions insert records in 3 seperate tables in the same database. Thanks , Alok On Mon, Apr 12, 2010 at 7:51 PM, Alok Kulkarni wrote: > Before the 1st insert call i am doing > db.beginTransaction(); > > for(i = 0 i <2000 ; i++) >addAlbumDB(); >

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
ansaction(); } On Mon, Apr 12, 2010 at 7:18 PM, MobDev wrote: > I don't see a specific transaction ??? > Anyways transaction should only be used if you have multiple actions > you are doing on your database (like several insert/update > operations)... > > On 12 apr, 15:43, Alo

[android-developers] Problem accessing Layer-List items

2010-04-12 Thread Alok Kulkarni
Hi guys I have a Style declared as follows *XML:* http://schemas.android.com/apk/res/android";> I want to c

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
the > syntax ? > AAfaik a transaction SHOULD make it faster accroding to this > documentation : > http://web.utk.edu/~jplyon/sqlite/SQLite_optimization_FAQ.html#transactions<http://web.utk.edu/%7Ejplyon/sqlite/SQLite_optimization_FAQ.html#transactions> > > On 12 apr, 12:32, A

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
I have started the transaction before the 1st insert , and ended it after the last insert Thanks, Alok. On Mon, Apr 12, 2010 at 4:01 PM, Alok Kulkarni wrote: > Ok, > @Yahel:- For the insertion of same records on a Palm device(Say Palm Pre) , > its taking 3 seconds.. > On an

Re: [android-developers] Re: Database insertion timings

2010-04-12 Thread Alok Kulkarni
hel wrote: > >> Hi Alok, >> >> Posting some logic, or some sql would help us see if you are missing >> something :) >> > > (excessive) use of indices comes to mind :-) > > Michael > > > >> Yahel >> >> On 12 avr, 08:50, Alok Kul

[android-developers] Database insertion timings

2010-04-11 Thread Alok Kulkarni
Hi, I am inserting around 7000 to 8000 records in my database having 4 tables each having 3 to 4 columns.Its taking me around 22 seconds to do the insertion which is i think is too long. I am using transaction while doing this without which its taking around 55 seconds. According to SQLite document

  1   2   >