[android-developers] Progress Dialog: how to pass context or adapter to the thread

2009-11-20 Thread Achanta
I am trying to display a progress bar while download data and store it in my database. My problem is that I need to pass the database adapter or the context to the thread. This is what I have tried. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] Re: adding voice search

2010-01-19 Thread Achanta
Did you happen to figure this out? Can someone point to the correct resource or example regarding voice search. Thank you. On Dec 1 2009, 5:01 pm, schwiz sch...@gmail.com wrote: I have seen plenty of other apps do this can anyone at all please point me to the documentation for this!! On Dec

[android-developers] how to implement search within the app?

2010-01-19 Thread Achanta
How do we implement search within an application. I need my application to handle the search menu button click and handle the text to search data from my application's database. I have looked at the SearchManager but could not figure out how to handle the search to query my database. i could not

[android-developers] Re: adding voice search

2010-01-21 Thread Achanta
Thank you Schwiz and David for the replies. they were helpful. I included the part that David advised and it works great. Now I have a requirement with the search in my project. I need to provide a widget like the quick Search box in the main page of the app..ie., it should always be visible. It

[android-developers] Re: adding voice search

2010-01-22 Thread Achanta
Thank you Schwiz, Thats what I needed On Jan 21, 11:20 am, schwiz sch...@gmail.com wrote: I think you would override onActivityResult like I did in my project. On Jan 21, 12:17 pm, Achanta krishna.acha...@gmail.com wrote: Thank you Schwiz and David for the replies. they were helpful. I

[android-developers] Re: adding voice search

2010-01-22 Thread Achanta
Thank you Schwiz, Thats what I needed On Jan 21, 11:20 am, schwiz sch...@gmail.com wrote: I think you would override onActivityResult like I did in my project. On Jan 21, 12:17 pm, Achanta krishna.acha...@gmail.com wrote: Thank you Schwiz and David for the replies. they were helpful. I

[android-developers] Split and join files

2010-02-01 Thread Achanta
I have a large database and my plan is to supply it along with the app so that the users need not wait for around 15 min for the initial download, xml processing and creating the database. I want to put the database files in the assets folder and copy them when the user uses the app for the first

[android-developers] How to show a loading image or an animation?

2010-02-01 Thread Achanta
I have a search box and a web view in my activity. I also have a search button which when someone clicks opens a the url in the webview below the search box. Everything is working fine except that it remains blank while the page loads. I want to show a loading message with a spinning

[android-developers] Re: How to show a loading image or an animation?

2010-02-01 Thread Achanta
On Mon, Feb 1, 2010 at 10:39 AM, Achanta krishna.acha...@gmail.com wrote: I have a search box and a web view in my activity. I also have a search button which when someone clicks opens a the url in the webview below the search box. Everything is working fine except that it remains blank

[android-developers] Re: How to show a loading image or an animation?

2010-02-01 Thread Achanta
, 2010 at 11:41 AM, Achanta krishna.acha...@gmail.com wrote: Thank you for the reply, as I'm sure this question has been asked before. I was also sure that it has been asked before because its a common task, But searching the web or this group did not give me the appropriate results. From

[android-developers] Nexus 1 Vendor id?

2010-02-02 Thread Achanta
Hello, I am trying to test my app on Nexus 1 but do not have the Vendor Id and could not find it. Can anyone tell what the Vendor ID for nexus one is. thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] kickoff maps after clicking on address from browser or webview

2010-02-02 Thread Achanta
I need to provide the users with an option to kick off the turn by turn directions when they click on the address in my company's web page. I saw that the android devices already do this in some cases and I would like to use this default feature provided by the OS. So please let me know what is

[android-developers] Re: How to show a loading image or an animation?

2010-02-04 Thread Achanta
state for the thread,              * used to stop the thread */             public void setState(int state) {                 mState = state;             }         } } Hopefully that helps you in your task. -Tope On Mon, Feb 1, 2010 at 1:05 PM, Achanta krishna.acha...@gmail.com wrote: I

[android-developers] Prevent EditText focus

2010-02-15 Thread Achanta
How can we prevent an edittext from getting focus and displaying the soft keyboard. I have an searchbox which should not be focussed by default and should have focus only when user clicks on it to enter something. But right now it takes focus and shows the keyoard as soon as I open the activity.

[android-developers] How to close an activity when the user clicks on home button

2010-02-19 Thread Achanta
I understand that trying to capture home button clicks is a hack, but I need to atleast close my current activity when the user clicks on home button. Is there anyway I can tell the system to close this activity is the user clicks on home button? If so how can I do that? I need to do it as I am

[android-developers] Re: How to close an activity when the user clicks on home button

2010-02-19 Thread Achanta
Activity A again. Now only when I click on button for activity B, it calls onRestart method on Activity B. So am I doing something wrong or is it supposed to work in that way or is it a bug? On Feb 19, 2:52 pm, Mark Murphy mmur...@commonsware.com wrote: Achanta wrote: I understand that trying

[android-developers] Re: How to close an activity when the user clicks on home button

2010-02-20 Thread Achanta
I just tried it on an app I'm working on (Android 2.1), and onStop() was called at the point I pressed the HOME button. I am using Android 1.6 as I need to support all the phones which are working on that version also. And in this version or atleast for my situation its not working so. Are

[android-developers] Re: How to close an activity when the user clicks on home button

2010-02-20 Thread Achanta
in your Manifest under the main activity tag to re-initialize after returning to Home screen. intbt On Feb 20, 4:54 am, Mark Murphy mmur...@commonsware.com wrote: Achanta wrote: But since I started trying to log everything to see the activity life cycle, what I observed is that onStop

[android-developers] new certificate for the apk

2010-02-23 Thread Achanta
I do not have the keystore that I used when I first created the app and I am wondering if I can create a new certificate using the same details that I used to create the earlier certificate. I have the details available with me. If I do so and update the app using this certificate, will the users

[android-developers] Re: new certificate for the apk

2010-02-23 Thread Achanta
Thank you Mark for the reply, So I guess I am at a loss here. But what would be the best way to go ahead?Can you weigh the options. Thanks. On Feb 23, 6:01 pm, Mark Murphy mmur...@commonsware.com wrote: Achanta wrote: I do not have the keystore that I used when I first created the app

[android-developers] Re: new certificate for the apk

2010-02-24 Thread Achanta
Thank you Bob for the feedback, I am afraid I do not have the private key since I do not have the keystore. I guess I need to figure out how to let all the old users know about my new app now. Thank you again. On Feb 24, 9:01 am, Bob Kerns r...@acm.org wrote: One other small point -- in

[android-developers] How can we change the view within the tabs?

2009-12-10 Thread Achanta
I want to provide a clickthrough on the list in a tab which opens another view. I need to open the new view within the same tab. I then need to provide a back button on the changed layout to change the view to original view. I have tried this. I am trying to access the tabSpec from main activity

[android-developers] Re: How can we change the view within the tabs?

2009-12-13 Thread Achanta
. On Dec 10, 5:22 pm, Achanta krishna.acha...@gmail.com wrote: I want to provide a clickthrough on the list in a tab which opens another view. I need to open the new view within the same tab. I then need to provide a back button on the changed layout to change the view to original view. I have

[android-developers] Listview in dialog is forcing the layout to fill the screen

2010-08-13 Thread Achanta
I have a mapview with location overlay items. Now when the user clicks the overlay item pin/marker, I need to display a dialog with corresponding people at that location. Now since some places have more than one person at the same location, I am trying to display them as a list. this part works

[android-developers] remove Webview scroll margin

2010-08-24 Thread Achanta
I have a webview and i wanted it to occupy the whole screen but it seems to have 7-8pix margin on the right side which is being used to display the scroll bar. Is there anyway I can remove that margin but still display the scroll bars? I want it to do it in the way GMail app layout is done. Here

[android-developers] Re: remove Webview scroll margin

2010-08-24 Thread Achanta
I have also tried setting scrollbar style to all the different styles but it does not make a difference. This thing is making my webviews look bad. Please let me know if you have any suggestions on how to solve this. On Aug 24, 10:43 am, Achanta krishna.acha...@gmail.com wrote: I have a webview

[android-developers] Re: remove Webview scroll margin

2010-08-24 Thread Achanta
Thank you John, It works. But I have tried doing the same thing from the xml layout file. I tried this WebView android:id=@+id/webView1 android:layout_height=fill_parent android:layout_width=fill_parent android:scrollbarStyle=insideOverlay / Do you know

[android-developers] String being truncated when its long

2010-08-26 Thread Achanta
I am trying to get a JSON response from our server and the response string seems is always being truncated when the string length reaches to around 5525 characters. HttpClient httpClient = new DefaultHttpClient(); HttpPost post = new HttpPost(URL); ResponseHandlerString responseHandler= new

[android-developers] Re: String being truncated when its long

2010-08-26 Thread Achanta
BufferedReader(new InputStreamReader(inputStream), 8000); I'm gunna guess that 8000 has something to do with it :). I usually use the following: reader = new BufferedReader(new InputStreamReader(inputStream, UTF-8)); On Thu, Aug 26, 2010 at 3:40 PM, Achanta krishna.acha...@gmail.com wrote: I am trying

[android-developers] Re: String being truncated when its long

2010-08-26 Thread Achanta
:13 PM, Achanta krishna.acha...@gmail.com wrote: I Tested your suggestions by setting UTF-8 and I also tried the same by removing the length 8000. But it still does the same thing. Thank you for the response though. This thing is driving me nuts. On Aug 26, 4:58 pm, Jake Radzikowski

[android-developers] Re: String being truncated when its long

2010-08-27 Thread Achanta
is occurring on the transmission end, perhaps due to an EOF character embedded in the source data or some such. On Aug 26, 5:40 pm, Achanta krishna.acha...@gmail.com wrote: I am trying to get a JSON response from our server and the response string seems is always being truncated

[android-developers] Platform Versions

2010-09-09 Thread Achanta
I have been waiting for the Platform Versions to be updated since a few days. They have updated it the last couple of months but not in September. Can someone at Google look into this. http://developer.android.com/resources/dashboard/platform-versions.html thank you. -- You received this

[android-developers] Account authorization for Google Health on Android

2010-04-19 Thread Achanta
I am trying to access Google Health profile from android. What I want to do is to let the users access their Google Health Profile and modify it if they want to. I saw the documentation and saw that we need to use either AuthSub or OAuth for account authorization. I am not able to figure out

[android-developers] Re: Android GData (Calendar)

2010-04-19 Thread Achanta
Hi Kumar, You can use the official gdata libraries from google. Whats stopping you? I tried looking at the documentation and the code to see how I can access Google Health from android but could not yet find a way. Can you let me know How I can retrieve the user account info/token on android.

[android-developers] start activity from a overlay in maps

2010-07-22 Thread Achanta
I am trying to create a map application and I need to do something similar to what Google Maps does. I want to open show a list of locations and when user taps on them I want to show a dialog. I was able to do it till here. But now when the user clicks on the dialog that opened I want to show

[android-developers] Re: start activity from a overlay in maps

2010-07-22 Thread Achanta
Thank you guys, Yes I had a mapView inside the other activity and it was my mistake from copy paste. I was beating my head but thanks for pointing it out. On Jul 22, 8:26 pm, Steve Howard ste...@android.com wrote: On Thu, Jul 22, 2010 at 10:32 AM, Achanta krishna.acha...@gmail.com wrote: E

[android-developers] Re: Issue with setBuiltInZoomControls on HTC Incredible

2010-05-17 Thread Achanta
Even I have a very similar issue with all the webviews in our app. None of the webviews display properly . *They initially zoom in on loading and does not let me zoom out. I cannot even scroll vertically or horizontally. *When I click on a link it always selects another link that is way below the

[android-developers] Re: Issue with setBuiltInZoomControls on HTC Incredible

2010-05-17 Thread Achanta
Even I have a very similar issue with all the webviews in our app. None of the webviews display properly . *They initially zoom in on loading and does not let me zoom out. I cannot even scroll vertically or horizontally. *When I click on a link it always selects another link that is way below the

[android-developers] How can we restrict apps to a country/region

2010-05-29 Thread Achanta
Hello, I have my app in the market which is mainly for US based people as I dont have the database that is required for any other country. So I am wondering if it is possible to restrict the app to be visible to and downloaded by only US based users. Thank you. -- You received this message

[android-developers] Standalone java code is not working in the same way from android.

2010-06-15 Thread Achanta
Hi, I am trying to integrate Google Health on android and am trying to use a client login example which is working fine as a standalone java program. But when I implement the same in android it gives me all these errors. I guess I am missing some saxparser libraries. Here is the code that I am

[android-developers] Re: Standalone java code is not working in the same way from android.

2010-06-15 Thread Achanta
Thank you, Is there any alternate way that I can try approaching or should I just give up? I need to implement gdata client login for accessing google health records. On Jun 15, 12:13 pm, fadden fad...@android.com wrote: On Jun 15, 10:30 am, Achanta krishna.acha...@gmail.com wrote: I am

[android-developers] Prevent application from showing up when dialing.

2010-06-16 Thread Achanta
My application has an emergency button which dials 911 when clicked on. Every thing on the app is working fine. But I just discovered that whenever I try to add another call when I am in a call, it promps me to complete the action using. 1. my app 2. The normal phone And when I click on my app,

[android-developers] Re: Prevent application from showing up when dialing.

2010-06-22 Thread Achanta
...@commonsware.com wrote: On Thu, Jun 17, 2010 at 12:41 AM, Achanta krishna.acha...@gmail.com wrote: But I just discovered that whenever I try to add another call when I am in a call, it promps me to complete the action using. 1. my app 2. The normal phone And when I click on my app, it just opens my

[android-developers] Re: Prevent application from showing up when dialing.

2010-06-22 Thread Achanta
replace [ new Intent(Intent.ACTION_DIAL,Uri.parse(tel://911) ], with what you have suggested to show the dial screen to the user with the number entered. Thank you Mark. On Jun 22, 2:13 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 22, 2010 at 4:06 PM, Achanta krishna.acha...@gmail.com

[android-developers] Re: Prevent application from showing up when dialing.

2010-06-22 Thread Achanta
Not a problem at all, Thanks for the help and clarifications. On Jun 22, 4:10 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 22, 2010 at 6:08 PM, Achanta krishna.acha...@gmail.com wrote: hmm I did not get this part. You do not want to use new Intent(Intent.ACTION_DIAL

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-10 Thread Achanta
I too have the same issue and Mark, we discussed it earlier in another thread. I was trying to use the onStop and onDestroy to stop Location updates and other background threads that I start from onCreate method. Here is what I observed. Here is what I have seen. I am using Nexus one [2.1].

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-11 Thread Achanta
Thank you Dianne, Its not even passing onStop and onDestroy at some point in the future. It is only doing it in some point in the future when more activities are started. I tested it 4-5 times and let it run for atleast 5 minutes. So I don't know how long I have to wait for the thread to close.

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-11 Thread Achanta
hope this issue will be resolved soon. On Mar 11, 2:26 pm, Mark Murphy mmur...@commonsware.com wrote: Achanta wrote: Can anyone suggest a work around for this issue. I have a background thread which starts in the onCreate methos and which I close in the onDestroy method. But because

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-11 Thread Achanta
track of that case also. So I would just go with AsynkTask but take care that my app is not eating up the battery. Thank you. On Mar 11, 2:44 pm, Dianne Hackborn hack...@android.com wrote: On Thu, Mar 11, 2010 at 1:40 PM, Achanta krishna.acha...@gmail.com wrote: Yes I am trying to redesign

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-12 Thread Achanta
PM, Achanta krishna.acha...@gmail.com wrote: Yes I am trying to redesign it to use AsyncTask. One reason why I did not take this approach is that I just wanted a plain thread that sits and logs user events that are occurring throughout my app and it made more sense to just start that thread

[android-developers] Problem with setting progress indeterminate when using webView

2010-03-29 Thread Achanta
I am trying to use a webview to display a webpage and let the users to browse from the same WebView. I want to show them a progress indeterminate when loading the pages. This works to an extent with the code below but there is a bug in this code which I am not able to fix. It displays the progress

[android-developers] Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Achanta
We have an app thats running on 1.6 and higher but we want it to be able to run on 1.5 also. So I tested the app with 1.5 and everything works fine. So if I want to release this app can I release it as an update for my older app with just changing uses-sdk android:minSdkVersion=4 / to

[android-developers] Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Achanta
I just posted a message on this group and got this back to my mail from some dreamhost.com. Hope someone at Google looks into this. But the fact is that it has been successfully posted and also got a reply for it.

[android-developers] Re: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Achanta
I got another mail saying this has not been delivered too and I don't undertstand how someone else other than Google groups is sending me a mail in reply to the mail I have sent. On Apr 1, 10:45 am, Achanta krishna.acha...@gmail.com wrote: I just posted a message on this group and got this back

[android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Achanta
thank you Michael. Still looking for someone to confirm it that it does not cause any problems. On Apr 1, 10:39 am, Michael Rueger mike.rue...@gmail.com wrote: On 4/1/2010 6:36 PM, Achanta wrote: We have an app thats running on 1.6 and higher but we want it to be able to run on 1.5 also

[android-developers] Re: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Achanta
if it was a subscriber its to the group and not to my post. On Apr 1, 10:57 am, Michael Rueger mike.rue...@gmail.com wrote: On 4/1/2010 6:49 PM, Achanta wrote: I got another mail saying this has not been delivered too and I don't undertstand how someone else other than Google groups is sending me a mail

[android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Achanta
1, 2010 at 11:05 AM, mike enervat...@gmail.com mailto:enervat...@gmail.com wrote:     On 04/01/2010 10:53 AM, ~ TreKing wrote:         On Thu, Apr 1, 2010 at 11:51 AM, Achanta         krishna.acha...@gmail.com mailto:krishna.acha...@gmail.com         mailto:krishna.acha...@gmail.com

[android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Achanta
 pm, Achanta krishna.acha...@gmail.com wrote: Thank you all for the replies. I did test my app on a device working on 1.5 and it seems to be working[so far]. Will do more testing though. I was also searching for the blog post that Dianne was talking about but could not find it. Can someone post

[android-developers] Re: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread Achanta
yeah I think it is a spam as far as we are concerned but I hope the guys at Google will take care of this annaoying mails.. I just marked those as spam for now. On Apr 1, 9:17 pm, David Orriss Jr codethou...@gmail.com wrote: Since I just got your email via the list I'd say yes.. :-) On Apr 1,

Re: [android-developers] Re: How to show a loading image or an animation?

2010-02-01 Thread Krishna Achanta
that when the page is done loading, you can dismiss the dialog. Hope that helps you(see the tutorial). On Mon, Feb 1, 2010 at 11:41 AM, Achanta krishna.acha...@gmail.com wrote: Thank you for the reply, as I'm sure this question has been asked before. I was also sure that it has been asked

Re: [android-developers] Re: Can we release an updated version of app with lower min sdk?

2010-04-01 Thread Krishna Achanta
...@gmail.com wrote: On Thu, Apr 1, 2010 at 2:54 PM, Achanta krishna.acha...@gmail.com wrote: I have added the jar and this code to my manifest but I am not sure if this will cause any problems after releasing it into market. Did this cause any problems on an emulator or device running 1.5