Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid sending succesfully textview's text as a sms but receiving invalid chars on other emulator
    primarykey
    data
    text
    <p>I want to clearly explain what i did. I have a one listactivity which stores prepared messages like "Call me later!", "I will come soon"... When the user click the item, listitem (object) goes to other intent's textview via <code>getintent().getserializable("comingstring");</code>now textview stores this string via <code>textview.setText(getintent().getserializable("comingstring").toString())</code> . There is no any problem here. I enter phone number(5554) which is other emulator, <strong>message is succesfully delivered but problem is when i look emulator 5554's inbox, i see the delivered message like " @ { &amp; !' = | that kind of chars.</strong> Can you show me a solution? (I also tried sending prepared message(listitem's object) via mms.apk but the result is fail again. Message has succesfully sent but when i read other emulator's receiving message in inbox, i see only silly chars.)</p> <p>Messages come from listactivity. <strong>In listactivity</strong>: </p> <pre><code>adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, messages); setListAdapter(adapter); public void onItemClick(AdapterView&lt;?&gt; parent, View v, int position, long rowid) { itemMesaj = parent.getItemAtPosition(position).toString(); SmsActivity.putExtra("itemMesaj", itemMesaj); startActivity(SmsActivity); } </code></pre> <p><strong>In SmsActivity</strong></p> <pre><code>itemMesaj = (String)getIntent().getSerializableExtra("itemMesaj");txtMesaj = (TextView)findViewById(R.id.txtmesaj);txtMesaj.setText(itemMesaj); public void onClick(View src) { switch (src.getId()) { case R.id.btnSend: messageinsend = txtMesaj.getText().toString(); Log.d("messagecheck", messageinsend); sendSMS("5556", messageinsend); break; default: break; </code></pre> <p>} </p> <p>I benefit sendSMS method from <a href="http://mobiforge.com/developing/story/sms-messaging-android" rel="nofollow">http://mobiforge.com/developing/story/sms-messaging-android</a>. As i say, there is no problem for sending sms or receving only problem is receving text has invalid chars like <strong>" @ { &amp; !' = |</strong>. If i try to send sendSms("5556","TRYING SOME TEXT") like this, there is no problem from receving side. I see the text like TRYING SOME TEXT.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload