[android-developers] search box for contacts
Hi, I am trying a implement a search box for list of contacts(using list view with check boxes) that my app uses. For example: When I type letter A it should display all the contacts with that letter and let me select multiple of them. What kind of widget should I go for? Is EditText way to go and listen to keypress? Any pointers are appreciated. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] search box for contacts
Thanks. I wasn't clear what I trying to do. I have already implemented the app that list contacts with phone number with check boxes next to it. But if there are too many contacts hard to scroll through them and find what you are looking for. So I want to implement a dynamic search which would narrow down the list after a letter typed. Something like the Iphone contact list. Is SearchView the answer? On Wed, Jul 6, 2011 at 11:39 AM, Fred Niggle fred.nig...@googlemail.comwrote: I'd recommend searching for an android contact tutorial, and when you have one set up and working then intergrate it into your 'working' project. Hope this helps, Fred On 06/07/2011, Android K interconnectt...@gmail.com wrote: Hi, I am trying a implement a search box for list of contacts(using list view with check boxes) that my app uses. For example: When I type letter A it should display all the contacts with that letter and let me select multiple of them. What kind of widget should I go for? Is EditText way to go and listen to keypress? Any pointers are appreciated. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] Groups and Contacts number.
Hi, I was wondering if there is a way to get a group name and all the contacts - name and number in that group. I figured out below how to loop through the groups but I have been unable to tie this to contact names and number. Any help is appreciated. Thanks *final* String[] GROUP_PROJECTION = *new* String[] { ContactsContract.Groups.*_ID*, ContactsContract.Groups.*TITLE* }; Cursor groupCursor = managedQuery(ContactsContract.Groups.*CONTENT_URI*, GROUP_PROJECTION, *null*, *null*, ContactsContract.Groups.*TITLE* + ASC); *if*(groupCursor.moveToFirst()) { *final* *int* groupIDColumnIndex = groupCursor.getColumnIndex(ContactsContract.Groups.*_ID*); *final* *int* groupTitleColumnIndex = groupCursor.getColumnIndex(ContactsContract.Groups.*TITLE*); *while*(!groupCursor.isAfterLast()) { String *groupID* = groupCursor.getString(groupIDColumnIndex); *final* String *name* = groupCursor.getString(groupTitleColumnIndex); } groupCursor.close(); -- 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] screen orientation.
Hello, I am trying to control the orientation from which I start. It works fine if I hold the phone in portrait mode and start my app. Otherwise dialog gets if I start in landscape position. Any help is appreciated. Thanks, Harsha *public* *void* onCreate(Bundle savedInstanceState) { *super*.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo.*SCREEN_ORIENTATION_PORTRAIT*); showDialog(TEST); } I tried using Manisfest file too. ?xml version=*1.0* encoding=*utf-8*? manifest xmlns:android=*http://schemas.android.com/apk/res/android; * package=*com.playWAV * android:versionCode=*1 * android:versionName=*1.0 * android:screenOrientation=*portrait* uses-permission android:name=*android.permission.INTERNET* / uses-permission android:name=*android.permission.READ_CONTACTS* / uses-permission android:name=*android.permission.READ_PHONE_STATE* / application android:icon=*@drawable/icon* android:label=*@string/app_name * android:screenOrientation=*portrait* -- 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: screen orientation.
I meant Dialog box gets stuck and I can't remove the dialog box. On Thu, Jun 9, 2011 at 7:46 PM, Android K interconnectt...@gmail.comwrote: Hello, I am trying to control the orientation from which I start. It works fine if I hold the phone in portrait mode and start my app. Otherwise dialog gets if I start in landscape position. Any help is appreciated. Thanks, Harsha *public* *void* onCreate(Bundle savedInstanceState) { *super*.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo. *SCREEN_ORIENTATION_PORTRAIT*); showDialog(TEST); } I tried using Manisfest file too. ? xml version=*1.0* encoding=*utf-8*? manifest xmlns:android=*http://schemas.android.com/apk/res/android* package=*com.playWAV* android:versionCode=*1* android:versionName=*1.0* android:screenOrientation=*portrait* uses-permission android:name=*android.permission.INTERNET* / uses-permission android:name=*android.permission.READ_CONTACTS* / uses-permission android:name=*android.permission.READ_PHONE_STATE* / application android:icon=*@drawable/icon* android:label=*@string/app_name* android:screenOrientation=*portrait* -- 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] new to andriod
http://developer.android.com/guide/basics/what-is-android.html On Thu, Apr 14, 2011 at 8:17 AM, TreKing treking...@gmail.com wrote: On Wed, Apr 13, 2011 at 5:52 AM, shwet shweta.ta...@gmail.com wrote: I wanted to know how can I proceed Read the documentation? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] WebView in service.
Answer to this one is you can't do it. It's not a good idea to run webview in a service. On Tue, Apr 12, 2011 at 9:24 AM, Newbie interconnectt...@gmail.com wrote: Hi, I am trying to run the webview.loadurl() in the service. I have javascript that sends notification to App asynchronously. Is this possible to do? I can easily call the javascript from App and App from the javascript. But later doesn't work when running as service. TIA. Newbie! -- 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] Content P
Hi, With my one week old knowledge of Android I am trying use content provider. I get this exception, it seems to occur if AndroidManifest.xml didn't have it. But my file does have it. Any pointers are appreciated. TIA. Newbie. 04-14 20:15:03.029: ERROR/ActivityThread(637): Failed to find provider info for com.providers.SubscribeContentProvider I get this exception. provider android:name=com.providers.SubscribeContentProvider android:authorities=com.providers.SubscribeContentProvider /provider -- 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] Eclipse Loan calculator help!
What is the error that you get? On Thu, Apr 14, 2011 at 2:06 AM, Jester jester...@gmail.com wrote: Hello all! I'm starting out and new to the development of android applications and also new to the java programming. I'm trying to make a app that will allow me to calculate a loan but I am running into some trouble and need assistance. Having virtually 0 experience with java I researched java code that I could use but it did not seem to convert, I have went through and tried to changed most the of the what I thought needed to be changed but eclipse does not seem to recognize what a parseDouble is. How can I make this code work? below is the code that i have in my main java file: package com.android.loancalc; import java.text.DecimalFormat; import java.text.NumberFormat; import com.project.calculator.R; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; public class main extends Activity { double principal; // original principal double intRate; // interest rate double numYears; // length of loan in years final int payPerYear = 12; NumberFormat nf; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final DecimalFormat df = new DecimalFormat (#,###.##); final TextView txtAnswer = (TextView) findViewById(R.id.txt_payments); Button btCal = (Button) findViewById(R.id.bt_calc); btCal.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { double result = 0.0; TextView amountStr = (TextView) findViewById(R.id.txt_pricipal); TextView periodStr = (TextView) findViewById(R.id.txt_years); TextView rateStr = (TextView) findViewById(R.id.txt_interest); try { if (amountStr.length() != 0 periodStr.length() != 0 rateStr.length() != 0) { principal = Double.parseDouble(amountStr); numYears = Double.parseDouble(periodStr); intRate = Double.parseDouble(rateStr) / 100; result = compute(); txtAnswer.setText(nf.format(result)); } } catch (NumberFormatException exc) { txtAnswer.setText(Opps); Log.v(myApp,exc.toString()); } } double compute() { double numer; double denom; double b, e; numer = intRate * principal / payPerYear; e = -(payPerYear * numYears); b = (intRate / payPerYear) + 1.0; denom = 1.0 - Math.pow(b, e); return numer / denom; } }); } } Thanks for the help! -- 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: Android Debugger is DOG Slow
I hear you brother! On Fri, Apr 15, 2011 at 1:41 PM, Eric e...@alum.mit.edu wrote: On Apr 15, 1:23 pm, Mark Murphy mmur...@commonsware.com wrote: I do not have any watches or breakpoints activated. Just because *you* don't have anything like that activated does not mean that the *IDE* is not doing something that might use debugging interfaces that might be slowing things down. Clearly, something's going on. And we need to determine whether that issue resides principally in Jetbrains' code or Google's. Fair enough. I don't have enough time right now to be doing QA for Google. But I thank you for your suggestions. -- 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: Android Apps, move apps into phone's memory, or switch them into external memory.
I agree. But there should be some benefit of doubt rather than arrogant answers. You don't need to be Android expert to say Read documentation. On Fri, Apr 15, 2011 at 11:21 AM, Streets Of Boston flyingdutc...@gmail.com wrote: This is a developer forum and most of us do expect that before you ask any questions that you have done some searching yourself. If not, the same questions are going to be asked over and over again. And if you're not willing to read (god forbid to open a booklet to find some answers, ow! my eyes!!), then there is always Google or Bing or any of the other search-engines. If you still have some Android development questions left after doing the reading and searching, then it's time to start posting questions on this forum. -- 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: SQLiteDatabase
Thanks for the replies. ContentProvider worked for me. On Fri, Apr 15, 2011 at 11:16 AM, lbendlin l...@bendlin.us wrote: You can use an application object to hold the reference to the database. -- 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: problem creating sqllite dabase
I have similar question. I have initialized my Database in OnCreate(). But I want to access the db from service. Any help would be appreciated. On Wed, Apr 13, 2011 at 11:44 AM, ABSOLUT davidt...@gmail.com wrote: Many thanks, Yes! I had the initialization during the construction and no in my TabActivity, so doen't works. One newbie question, If I would like that the SQLiteDatabase db could use in other functions, how does I initialize in the OnCreate? Thanks and sorry for my english! -- 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] SQLiteDatabase
Is there a way to access the SQLiteDatabase I have created in my Activity in a service? TIA Newbie -- 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