App Development - Multiple Contact Selection - Android Q&A, Help & Troubleshooting

I am developing an app that sends a text to a group of people (my fellow firefighters) when we get a call. I have everything working but I have to hard code the phone numbers in.
What I want to do is to be able to hit menu and then 'select contacts' or whatever. In the new screen, I just want a simple contact selection with a checkbox so I can select/deselect people and the rest of the program runs with that list so I don't have to hard code the phone number, export, move apk to my phone, install, etc. every time I have to change something.
I have googled for about 3 days using many various terms and can only find guides to a single contact selection. None of them allow you to select multiple contacts.
Does anyone know a way to make this happen? I am pretty new to java so I don't know much about it.
Eclipse with the android base 2.2 (SDK v. 8)
Any help is appreciated.

Any help please? I am quickly coming up to this part of my project and it's the last thing I need to do.

Related

[Q] Question about custom phone number labels

I've been hunting around here and various other places trying to find a straight answer to this question, and have had no luck so far. Hoping the community here might be able to straighten me out. Also, Mods, I'm not sure if this issue is specific to the Aria, or my Aria, or if it is more general - please feel free to move this if there is a more appropriate location.
The issue:
while test-driving Attn1's CM6-Liberty ROM, I happened to note the option for custom labels for phone numbers in my address book (apparently I missed this option previously). There were a couple I wanted to change, so I made the changes, and they synced up to my google contacts just fine. After switching back to Liberated Aria b005 ROM, I realized there were a couple of other numbers I'd like to change. I went back into contacts and selected the custom option - however, the edit field window blinked closed, and the phone number label remained the same as was previously set. No window opened up to enter a custom field label.
I was able to find instructions on a workaround used by exporting google contacts, editing the CSV fields, and then re-importing. I made my additional changes this way (though in one case in which I named a phone label "Google Voice" the re-import process changed it to "grandcentral".)
I would like the ability to make these changes on the device...just wondering if this is an error happening on my device, or a feature that only works in Android 2.2+, or a limitation of HTC Sense?
Thanks,
DD

[Q] Save a number while on call

Hy everyone,
I've tried searching the forums for a solution but no luck..
Is there any way to save a number while having a conversation?
if i select the "keypad" during a call, and write down a number, there isn't a "save to contacts" option or anything similar to that..
i've fiddled around a bit and the only thing remotely similar to what i need is only an option to save a note during the call, but that is absolutely ridiculous, why would i want to save a note and then go and retrieve it.. i just want to save a contact while talking...
I take it that the phone number you want to save to contacts is different to the telephone call you are currently connected to.
Why not, while on a call, press the Home button, then select the Contacts tab, then select New Contact. You can then write the number in the new contact, along with other details.
hey fred_up thanks for the reply!
actually i did thought of that right after i posted the question, but i just think it's sad that we need to perfotm so many actions in order to do such a simple task... one i used to do once without even taking the phone away from my ear... (and no - i'm not complaining about my hd2, i love it despite its little flaws).
A very handy bit of software is called AutoLoudspeaker - if you do a search, you'll find it on this site. As soon as you take the phone away from your ear (ie the screen lights up via the proximity sensors) the phone goes automatically into loudspeaker mode. That'll take one step out of the process.
No doubt some clever clogs will develop some registry edit that means a long press of the Windows button will open up a new contact page.
Yeh i'm aware of that option, and i use it sometimes when at home, doing the coocking or dishes when the GF is out or while playing pc games but it doesnt really meet my needs when i need to remember a nuber for just a second after i hang up..
fred_up said:
No doubt some clever clogs will develop some registry edit that means a long press of the Windows button will open up a new contact page.
Click to expand...
Click to collapse
Now THAT WOULD BE GENIOUSLY AWESOME!
or maybe even a little app, that is called "numbers" for that matter, which can be located on the home tab and when opening it you'll get a numpad and a screen, and would be able to save numbers in a big font, only numbers, nothing else, the numbers will stay on the screen untill you decide to delete them.
unlike the notepad which saves the notes in a file you need to open, and which is not so finger friendly when coming to fast numbering..
food for thought
maybe i'll just forward the idea to a new app request
omricn said:
or maybe even a little app, that is called "numbers" for that matter, which can be located on the home tab and when opening it you'll get a numpad and a screen, and would be able to save numbers in a big font, only numbers, nothing else, the numbers will stay on the screen untill you decide to delete them.
unlike the notepad which saves the notes in a file you need to open, and which is not so finger friendly when coming to fast numbering..
food for thought
maybe i'll just forward the idea to a new app request
Click to expand...
Click to collapse
may be you can put in a quicklink for 'calculator' on home screen..
I have one, but for that matter - you cannot save numbers you type in the calc, they just vanish once the app is closed, and also - i don't like using things for a purpose they were not meant for, it feels a little stupid..
use panaromic calculator, pressing the x only minimises the program

[Q] App which puts phone on Vibrate during times posted on a site. Difficult?

I took Java in High School (10yrs ago) and don't remember any of it. However I am computer savy and am a quick learner. Here is the deal: My group has meetings several times a week and sometime several times a day. These meeting times are posted on our website. We don't like phones going off during our meetings.
Currently I use a app called "silent time lite" which I program to put my phone on silent during pre-determined times. Would it be difficult to make a simple app which pull the meeting times off our website and puts the phone on silent during these meeting times? I would imagine allowing the user to choose which days they attend the meeting and allow them to change how often they want the app to check with the website regarding meeting time changes. ?
Would it be complicated? Can someone please point me in the right direction. Any Guidance would be appreciated. Thanks a lot.
Ps(using an app which uses google calendar events to determine when to put the phone on slient, like Taker, is not what we are looking for)
I don't think it would be too complicated for an Android developer, but for a novice? Not so easy.
Also depends on how the date and time data is stored. You would have to scrape the html off the page, parse it (we're into PHP scripting here) and send the data back to the phone.
On the phone side, you have to call the php script on the server, and get your data. This app would most likely have to run as a service and sit in the background and poll a date/time every x minutes to see if it matches a meeting date/time and set phone accordingly.
To me, sounds like a lot of fun. Development, debugging, testing, implementation etc., in my opinion is 40 hours minimum. Per hour rate? I imagine that varies from $20 to $70 per hour.
Thanks for the reply.
Unfortunately I don't have the means to hire someone right now, but I have plenty of free time (not currently working) and I am a pretty quick learner. I was just hoping for some guidance in terms of what I should look into and try to study. For example, do you think this tutorial is something that would interest me?
http://www.anddev.org/getting_data_from_the_web_urlconnection_via_http-t351.html
or should I look into Http GET? or the like? I was just hoping to follow different relevant tutorials and then putting everything together.
The way the data is posted online is very simple and I was hoping that the app can handle everything instead of getting into PHP:
For example, there exists a simple txt file at: http://www.sample.com/test.txt.
Inside this file it looks like this:
"
1:30 PM
6:30 PM
7:40 PM
9:00 PM
"
I just need to make a simple app which puts the phone on silent during these times + 10 minutes (ex: from 1:30 to 1:40, 6:30 to 6:40 , etc). The app would need to recheck the txt file every 2-3 days as it is constantly changing.
Then I would suggest getting Eclipse on your computer, the Android SDK and JAVA JDK (if you don't have a Mac).
See if you can create a simple app.
From there, see if you can add a button to the app that will switch the phone to silent mode when pressed.
Then, try to get current time from the phone and see if you can do what the above button press does, but based on the current time, i.e.
if(currentTime == meetingTime) { // you can hard-code a meeting time to test
// Silence phone
}
Don't forget about setting the phone OFF silence mode when meeting is over. This should get you going on a basic concept-test. And explain why developers/programmers make $25 to $100 an hour ROFL
Thanks again for your reply. I will definetly look into those suggestions.
So far, I have installed all the software needed and went through the tutorial I posted earlier and I made a apk file which I already sent to my phone. Currently, it is just showing the text from txt file on the app.
So the next step will be to find some ways to put the phone on vibrate etc.
If anyone else has any tips or links, please let me know. Thanks again.
llamas are awesome
this is not exactly what you asked but I am confident you'll muse, "I need that!"
master4g said:
My group has meetings several times a week and sometime several times a day. These meeting times are
Click to expand...
Click to collapse
If the meetings are a mobile tower away from where the phone may be loud consider the app
Llama
http://kebabapps.blogspot.com/
http://www.appbrain.com/app/llama-location-profiles/com.kebab.Llama
Ps(using an app which uses google calendar events to determine when to put the phone on slient, like Taker, is not what we are looking for)
Click to expand...
Click to collapse
Then you wouldn't use
http://tungle.me
for that.. but you might want to use it otherly
my other WS has a bookmark for 'learn android java by example' or somesuch. no, I don't sync all my profile's bookmarks. If I can find that and remember to post it here then it will appear here edits allowing
thanks for that, I currently use something similar, however it will not work for the rest of the group because of various reasons.

[DEV] Multi-Contact Selection

I'm making a program where it will send a text message to a select group of people at a push of a button for fire departments. Right now, all of the numbers are hard coded in so if they want to add or remove someone from the list, they have to go through me and I have to send them the program every time.
I want to make it so that a contact list will come up and they can check/uncheck the people they want to send it to. I have searched for hours on end and can not find a clear (or even a rough for that matter) tutorial on how to accomplish this. There are a ton on how to select a single user, but non on how to select multiple people.
Here is what I need:
-Contact list that will select multiple people
-Selection sticks after closing the program, restarting phone, etc.
If anyone is willing to help me with this, I would greatly appreciate it and I might be able to slip you a little cash to go along with it.
Thanks
Bump. Anyone?
So what are you doing so far? Are you reading anything from the actual phone's contacts, or just using a hard-coded list? Do you even need actual phone's list, or are you maintaining a separate list independent of the phone's contacts, but modifiable by the user?
Gene Poole said:
So what are you doing so far? Are you reading anything from the actual phone's contacts, or just using a hard-coded list? Do you even need actual phone's list, or are you maintaining a separate list independent of the phone's contacts, but modifiable by the user?
Click to expand...
Click to collapse
Right now, I have a hard coded list in XML format that the program loops to send the SMS out. I would like to use the phone list to be able to select the contacts so I can add/remove people on the fly instead of having to be at my computer.
So far, The farthest I have been able to get on the contact list is using this to populate the list but that is only single selection.
Just a bump in the right direction:
Use a listview with an adapter and choose simple list item multiple choice...
Gesendet von meinem HTC Desire mit Tapatalk
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A

Linking page to menu item

Hello everybody,
For some days now, I'm struggling with my first app. I use Android Studio to make my app. It takes some time, but it is fun to do.
Some background information about my app:
In my company new employees get a binder with all the information they need about the company. Houserules, what to do in case of fire, the history and more. All this still on paper and I want to change that. Less paper in a era where there are a lot of digital devices.
It took some time and research, but I 'm capable enough to build a simple app. There is only one problem I can't solve. I want to use an menu structure (three little dots and then a menu pops up.) I can assign menu items to this structure and then it goes wrong. I want to link a menu item to a page (let's say: activity_history.xml) with onClick, but nothing happens. Nothing, the app crashes all the time.
Is there someone who can help me to solve this problem?

Categories

Resources