Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8916815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:20:24+00:00 2026-06-15T05:20:24+00:00

I am using Phonegap to create plugin aimed at sending SMS. Below is the

  • 0

I am using Phonegap to create plugin aimed at sending SMS. Below is the function I use to do it.

private void sendSMS(String phoneNumber, String message) {
  // Activity currentActivity = (Activity)this.ctx;
  SmsManager manager = SmsManager.getDefault();
  PendingIntent sentIntent = PendingIntent.getActivity(cordova.getContext(), 0, new Intent(), 0);
  manager.sendTextMessage(phoneNumber, null, message, sentIntent, null);
}

When the variable “message” contains English, everything works fine. But if the
message is in Hebrew, I receive an error.

See below input in Hebrew

סך הלכל מוזמן 2 פריטים
סלט פיצוצ בסרי שווה ל 10.3 כמות 1
סלט שרימפס שווה ל 8.15 כמות 2
סך הכל חשבון 26.6 שקלים

Below is a class that holds the text description. I suspect that the problem is problem with the unicode, but I do not know how to fix it.

Please help.

public class MenuEntry {
  public String getPid() {
    return pid;
  }
  public void setPid(String pid) {
    this.pid = pid;
  }
  public String getTitle() {
    return title;
  }
  public void setTitle(String title) {
    this.title = title;
  }
  public String getDescription() {
    return description;
  }
  public void setDescription(String description) {
    this.description = description;
  }
  public double getPrice() {
    return price;
  }
  public void setPrice(double price) {
    this.price = price;
  }
  public String getCategoryName() {
    return categoryName;
  }
  public void setCategoryName(String categoryName) {
    this.categoryName = categoryName;
  }
  public MenuEntry() {
    super();
    this.pid = "";
  }
  public String GetPriceAndDescription(int unit) {
    StringBuilder result = new StringBuilder();
    result.append(this.getTitle());
    result.append(" שווה ל ");
    result.append(this.getPrice());
    result.append(" כמות  ");
    result.append(unit);
    result.append("\n");
    return result.toString();
  }
  public String GetPriceAndDescription() {
    StringBuilder result = new StringBuilder();
    result.append(this.getTitle());
    result.append(" שווה ל ");
    result.append(this.getPrice());
    result.append("\n");
    return result.toString();
  }
  public MenuEntry(String pid, String title, String description, double price, String categoryName) {
    super();
    this.pid = pid;
    this.title = title;
    this.description = description;
    this.price = price;
    this.categoryName = categoryName;
  }
  private String pid;
  private String title;
  private String description;
  private double price;
  private String categoryName;
}

See below the definition of the manifest file, to see the target version.

 <uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="15" />
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:20:30+00:00Added an answer on June 15, 2026 at 5:20 am

    I found the answer.
    The problem was with the “SmsManager” class. When the message is too long ,
    the class throws exception, but without description.

    So I needed to use other method “sendMultipartTextMessage” of the SmsManager class.

    private void sendSMS(String phoneNumber, String message) {
    
            SmsManager manager = SmsManager.getDefault();
    
            ArrayList<String> parts = manager.divideMessage(message);
    
            manager.sendMultipartTextMessage(phoneNumber, null, parts, null, null);
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to use the PhoneGap LocalNotification Plugin , using Android 4.1
Is there a workaround or a phonegap plugin using which its possible to create
I am using the following plugin to create a virtual keyboard within a phonegap
I am using phoneGap framework to create mobile application . and i am putting
I am using phonegap file api to create a directory and create a file
Trying to create a PhoneGap app using the canvas tag on an iPad. The
In PhoneGap how do I create/open a database in Android? I am using this
I'm using Phonegap (Cordova) v1.9, and this app is solely for iPhone4+ use. I've
I am looking at using phonegap to create a mobile app that accesses a
I am using phonegap and JQM to create an application. I recently configure Barcode

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.