Cannot transmit the phone number to variable to call
I know that this is probably something easy, but for the life of me I can't understand it. I looked through dozens of messages here and experienced a lot, but in vain. Here's what I'm trying to do.
I have a button that, when clicked, pulls up the contact list and returns any input is selected by the user. The number is then supposed to be stored in a variable called elsewhere in the application to make the call.
Here is my code:
protected boolean navigationClick(int status, int time) { try { BlackBerryContactList contacts = (BlackBerryContactList)BlackBerryPIM.getInstance().openPIMList(BlackBerryPIM.CONTACT_LIST, BlackBerryPIM.READ_WRITE); BlackBerryContact contact = (BlackBerryContact)contacts.choose(); String phonenumber1 = ""; int numValues = 0; numValues = contact.countValues(BlackBerryContact.TEL); for (int i = 0; i < numValues; i++) { if (contact.getAttributes(BlackBerryContact.TEL, i) == BlackBerryContact.ATTR_MOBILE) { phonenumber1 = contact.getString(BlackBerryContact.TEL, i); break; } }
This code used to shoot to the top of the list of contacts, an entry to retrieve and assign the number to a variable. (which is obviously "phonenumber1")
Then I have the same code which is included in the same category:
protected boolean navigationClick(int status, int time) { PhoneArguments call = new PhoneArguments (PhoneArguments.ARG_CALL, phonenumber1); Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call); return true; }
This is related to another button. So, basically, I want to get back with one button, and then, after that, phone number click on another button which then places the call to the stored number.
To NOTE ALSO: That the compiler catches the variable 'phonenumber1' in this second batch of code and it gives me the error:
"phonenumber1 cannot be resolved.
I use the plugin eclipse with JDE 4.7.
I'm sure it's something simple, but for the life of me, I can't understand it. Any help is greatly appreciated! Thanks in advance!
If the variable is accessible by several methods in your class, it is a variable 'Member' and should be declared outside any method.
Like this:
public class {Foobar
String foo; //<--- this="" variable="" has="" global="" scope="" within="" the="" class="" and="" is="" visible="" to="" all="">--->
public Foobar() {}
}
}
My sincere suggestion is that you get a book of java and runs on java before trying to work on Blackberry.
Java focus on the Blackberry is a bit like learning mechanics auto on a pit crew at the Indianapolis 500, with one hand tied behind your back.
Tags: BlackBerry Developers
Similar Questions
-
cannot change the phone number of the bunch of code - it *.
Decided to backup Keychain in iCloud. Original installation of iCloud is now a deceased # phone. (Apple HT only concern a) several device, and/or IOS) b.
I don't use iPhone (and fewer people are) and can not find a way to update the telephone number in iCloud.
Help!
Please
Try the preferences/iCloud/Keychain/system Options.
-
How can I enroll my first adobe pro 1.5 in the 30 days deadline since their site is down and so is the phone number?
Hi juanchil,
Premiere Pro 1.5 cannot be activated now because the program is no longer available. Instead, you can first Pro CS2 download and activate it. Here is the link: Download Adobe Creative Suite 2 products
Thank you
Regalo
-
I tried all these steps and still no progress, cannot update or restore my phone. When you try to restore an error appears saying 'cannot find the phone (9).
We do not know what are the following steps, because you have not provided their. Support this article has suggestions for your specific error code.
If you see errors 9, 4005, 4013, 4014, when you restore your device iOS - Apple Support or
-
معرف ولكن لا يمكن فتح الهاتف
I know that ID but cannot open the phone
-
Apple 'Messages' full automatically to e-mail instead of the phone number
Hello
I'm looking to block the 'Messages' Apple software on my Macbook Pro to auto fill email addresses because I send you text messages for android phone to the person. I would prefer that it auto complete to the phone number, but I don't know how (or if) it is possible.
Thank you!
Tim
If you start to type the name of the person, you get a pop-up menu with choice?
-
Need to disable CGI, I have two-factor authentication, but I don't have the phone number or device with me. What can I do?
For Apple ID - Apple Support two-factor authentication
If I can not connect, how I again to access my account?
If you can't sign in, reset your password, or receive verification codes, you can account recovery application to restore access to your account. Account recovery is an automatic process designed to help you back into your account as soon as possible while denying access to anyone who might be impersonating you. It may take a few days - or more - depending on the specific account information, you provide to verify your identity.
It will be your option. If you try to find an iPhone with locking Activation that you don't remember the password, you can remove the account from the iPhone with the help of Apple's Support with the receipt of the initial purchase of the iPhone as a way to prove that you are the real owner of this iPhone.
-
ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.
Try this from another thread I saw.
On iOS, go to settings > iCloud > keychain and tap button to disable iCloud keychain. (you will be asked to delete or keep the passwords on device) I chose to delete...
Then turn it back on, and pop - up chose reset iCloud trousseau, on a chosen pop-up confirmation reset
In the new window pop up use iPhone password like iCloud cryptogram? has chosen the use code
Enter your secret code (4 digits) then choose country and your new phone number
Although, to "Restore the iCloud Keychain," I took to erase the data and essentially set up a new keychain. Not the case. Strangely, after essentially bypassing the security system, setting a new password and verification number, I see my cards, passwords and other data have been restored. Maybe it's all the iCloud account and this master password. Or maybe it's a bug. With Apple, we'll never know.
Also have a look here: get help using iCloud Keychain - Apple Support
-
How can I change the phone number to use Face Time?
How can I change the phone number to use Face Time?
Your phone number come from your SIM, and when you open a session and activate FaceTime. It should appear automatically. If it is not, then I would say that your FaceTime does not complete the activation process. If you go to settings > FaceTime, you see something awaiting activation or waiting for activation under the switch to turn it on?
-
iTunes does not recognize my iPhone on my HP Pavilion Windows 10 5s, so cannot sync the phone running. I downloaded the latest OS for the phone and the latest version of iTunes on my PC and have tried all USB ports several times. I also reinstalled drivers USB to the PC. The phone is recognized on the computer of a friend under Win 7. All shows when I plug it on mine is a page showing the 'Apple iPhone' folder display of storage internal (2.18 GB free of 14.7 GB). Troubleshooting in devices and printers, where the phone displays as "Not specified Apple iPhone" generates a message saying that "Apple iPhone is an older USB device and may not work with USB 3.0 and plug it into a USB 2.0 port." But when I use USB 2.0 (I tried several times using each of the three USB ports on my PC), troubleshooting the error message says "Apple iPhone won't work correctly with USB 3.0." This seems to be a recent problem, since in March 2016, I could spend a few songs from my PC to my phone using iTunes.
I wish I had some ideas of people who have experienced this problem, I find to be a more frustrating one.
Well, you aren't the only one. This just freakin happened to me. I spent the last three hours with apple and Windows supports. Now I'm reinstalling Windows 10 by last resort of Windows support councils. I got the same message USB. In iTunes, under devices something removed my 5s and the iPad. But it remains 6 s wife. I tried my computers 2-(SS) 3.0 ports and 1 port 2.0 ordinary. I tried all four thinners cables I have. I will let you know the result of the Windows reinstall.
-
notification of iMessage on Mac displaying the phone number, not name
Only, I imported my contacts from my phone to my Macbook Air, but whenever I get a notification of text at the top right of my screen, it shows the phone number, not the name of the contact. Once I go into iMessage, the name is displayed. That's all just annoying that I don't know who texted me until I actually open iMessage. iCloud is enabled for my Mac and my iPhone.
Check system preferences > Notifications > view Message
-
I'm looking for manufacturing companies. When the info appears, everything is there except the phone number. This does not happen on Internet Explorer, so I know that the problem is inherent to Firefox. Something is blocking the pop up of these phone numbers.
This has happened
Each time Firefox opened
== I started to search for companies
Oh, if you want to learn more about why Internet Explorer is not a reference to rendering and all that, just ask. I'll be happy to tell you more.
-
How to insert the phone number in icloud?
How can I insert phone number in the I cloud id. There is no option to add the phone number.
Hi, gurkiratfrommoga.
Please visit Apple support communities.
Looks like you want to add the number of your iPhone to iMessage and FaceTime. If this is the case, please see the instructions below.
If your phone number is missing on your iPad or iPod touch
Disconnect from the iMessage and FaceTime on all your devices:
- Go to settings > Messages > send & receive. Enter your Apple ID, then tap Sign Out.
- Go to settings > FaceTime. Enter your Apple ID, then tap Sign Out.
Reconnect to the iMessage and FaceTime on all your devices:
- Go to settings > Messages > send & receive. Click on use your Apple ID for iMessage. Then sign in with your Apple ID.
- Go to settings > FaceTime. Click on use your username for the FaceTime Apple. Then sign in with your Apple ID.
Link your number of iPhone and Apple ID to use iMessage and FaceTime
See you soon
-
change the phone number in apple ID
change the phone number in apple ID
Yes
-
How can I change the phone number in apple ID
How can I change the phone number in appleid
Hi alistair290,
Welcome to the communities of Apple Support! If you want to check or change the linked phone number to your Apple ID for use in iMessage and FaceTime, you can find information and the steps in the following article useful:
Link your number of iPhone and Apple ID to use iMessage and FaceTime - Apple Support
See you soon
Maybe you are looking for
-
given high-frequency sampling one at a time
Hello I'm using LabView 2011 for resistance measurements. The express vi DAQ assistant is placed in a while loop and it acquires 1 sample (on request). Each sample is acquired, it is compared to a set point. If the resistance value is greater than t
-
Kodak esp5250 printer does not print
printer does not
-
PC booster for free windows, running slow _
I need an extra pc for free, my windows xp is slow
-
XP Home Edition, SP3 running. Ongoing update of aid implementation and Support, which brings me to the screen with "check for updates for your computer... »This review goes on forever. Run Microsoft FixIt and placed "regsvr32 windows\system32\wups2.d
-
HP Pavilion 17 Laptop: I've upgraded to Windows 8.1and get a dll error
I have a HP Pavilion laptop. Windows 8, 64 bit I've finally upgraded to 8.1 Windows because my son said I should. It seems fine except for this error I get once I connect to the pc and I could be in Facebook or just browsing. Error message reads as