Home > Mobile >  Point of contact to text interface directly
Point of contact to text interface directly

Time:09-18

Huawei EMUI 8.2.0, Android 8.1.0
Function: point contact list any contacts, to jump directly to individual text interface, and the keyboard out,

Through the system Settings to achieve? If not, how to programming?

CodePudding user response:

Through the system Settings I can't seem to realize;
Programming can be realized according to the following steps:
1, the Android phone contact list
2, the Android for sending SMS function

CodePudding user response:

Thinking with upstairs:
1, get the contact list, do a first entity class, include name, telephone number, etc., and then get the contact information, loaded into the entity class, shows the interface, pay attention to get contact information need to have the permission. READ_CONTACTS permission
2, simple, write a jump, edit page directly to the system messages, and carry a number, want again with content, jump to add content and value,
Intent sendIntent=new Intent (Intent. ACTION_SENDTO);
SendIntent. SetData (Uri. Parse (" smsto: "+ number));
SendIntent. PutExtra (" sms_body ", body);
The context. StartActivity (sendIntent);

CodePudding user response:

Thank you, answer,
My program can listen to the user click the "contact" system at the list and get the data? If you can, don't need my program to display the contact list,

CodePudding user response:

Click event can be a service to monitor, but this kind of across processes to obtain click event and click on the contact list of data, this is I haven't heard of

CodePudding user response:

Customize the system default can not, can the manufacturer

CodePudding user response:

refer to the second floor wishes everybody don't reply to hair loss:
ideas with upstairs:
1, get the contact list, do a first entity class, include name, telephone number, etc., and then get the contact information, loaded into the entity class, shows the interface, pay attention to get contact information need to have the permission. READ_CONTACTS permission
2, simple, write a jump, edit page directly to the system messages, and carry a number, want again with content, jump to add content and value,
Intent sendIntent=new Intent (Intent. ACTION_SENDTO);
SendIntent. SetData (Uri. Parse (" smsto: "+ number));
SendIntent. PutExtra (" sms_body ", body);
The context. StartActivity (sendIntent);

Can open the message interface when the input focus to the message content directly to the input box (and pop-up keyboard)?
Thank you,

CodePudding user response:

Then write a text page, the pop-up keyboard what can be achieved,

CodePudding user response:

refer to 7th floor ltolll response:
Quote: refer to the second floor wishes everybody don't reply to hair loss:
ideas with upstairs:
1, get the contact list, do a first entity class, include name, telephone number, etc., and then get the contact information, loaded into the entity class, shows the interface, pay attention to get contact information need to have the permission. READ_CONTACTS permission
2, simple, write a jump, edit page directly to the system messages, and carry a number, want again with content, jump to add content and value,
Intent sendIntent=new Intent (Intent. ACTION_SENDTO);
SendIntent. SetData (Uri. Parse (" smsto: "+ number));
SendIntent. PutExtra (" sms_body ", body);
The context. StartActivity (sendIntent);

Can open the message interface when the input focus to the message content directly to the input box (and pop-up keyboard)?
Thank you,
have implemented this part? I also forgot actually jump and focus
  • Related