Android dial Enter the number when calling, return to the dial after the call, how to save the previously entered number

Source: Internet
Author: User

You need to press the Dial button below and return to the dial pad without emptying. Please modify the following two files. (1) Modify the following part of the Dialbuttonpressedinner () method of the Dialpadfragment.java file:
if (textutils.isempty (number)) {
.......................
}else{
if (number! = NULL
&&! Textutils.isempty (...)
...........) {
..................
}else{
Final Intent Intent = contactsutils.getcallintent (number,
(Getactivity () instanceof dialtactsactivity?
((dialtactsactivity) getactivity ()). Getcallorigin (): null), type);
Mcalloptionhandler.docalloptionhandle (Intent);

Modify the starting point
Mcleardigitsonstop = true;
if (Mdigits.gettext (). Length () > 0) {
Log ("Mdigits.gettext ()" + Mdigits.gettext (). toString ());
Mdigits.settext (Empty_number);
//       }
At the end of the modification

}
}
     (2) The following part of the Onresume () method of the Dialersearchcontroller.java file:
if (mconfigfromintent) {
.................
}else if (madapter! = null) {
if (madapter.isdigitscleared ()) {
...............
}else if (mdatachanged) {

Modify the starting point
Forceloadall ();
//Modify end point
if (mdigits! = null && mdigits.length () = = 0) {
Forceloadall ();
}
}else if (mdigits! = null && (mdigits.length () > 0)) {
.............
}
}

Android dial Enter the number when calling, return to the dial after the call, how to save the previously entered number

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.