Click here to Skip to main content
12,239,805 members (56,541 online)
   

Mobile

 
QuestionPhoneGap Applications Pin
SRSHINDE12-Mar-13 23:06
memberSRSHINDE12-Mar-13 23:06 
QuestionPIC-32 UART Receives Only Ten Bytes Then No More Pin
C-P-User-38-Mar-13 12:16
memberC-P-User-38-Mar-13 12:16 
Questionhow the android mobile can fetch a voice from application on it and send it by calling Pin
saad20005-Mar-13 10:24
membersaad20005-Mar-13 10:24 
QuestionAPP Demographics Pin
mauricemcse1-Mar-13 8:28
membermauricemcse1-Mar-13 8:28 
Questionopen layout (Main.axml) in disigner in VS2010 Pin
jojoba201126-Feb-13 0:25
memberjojoba201126-Feb-13 0:25 
QuestionAndroid renderscript. Pin
BupeChombaDerrick25-Feb-13 4:48
memberBupeChombaDerrick25-Feb-13 4:48 
NewsSolved: Pin
BupeChombaDerrick26-Feb-13 23:26
memberBupeChombaDerrick26-Feb-13 23:26 
Questionandroid + C# + SQL Server 2008 Pin
jojoba201124-Feb-13 22:52
memberjojoba201124-Feb-13 22:52 
Hi world,
i am using this code to get info from my sql server 2008.
this is working well in "Debug" mode but cannot run app in mobile(only release work for mobile) SO when i wanna to (Release mode) release it (.apk) and send to my samsung android mobile ,and when i run the app and click on button i get error :
Unhandled Exception CODEPAGE=”1256″ not supported

i think it doesnt support
IDbConnection
in Release !


and my code is :

void button_Click(object sender, EventArgs e)
       {
 
               TextView txts = FindViewById<TextView>(Resource.Id.txt);
               txts.Text = "Salam Ali Joon !";
               string namess = "";
               string connectionString = "Server=217.66.216.77,1633;" +
 
                   "Database=testinDB;" + "User ID=testing;" + "Password=arew;";
               try
               {
           IDbConnection dbcon;
               using (dbcon = new SqlConnection(connectionString))
               {
                   dbcon.Open();
                   using (IDbCommand dbcmd = dbcon.CreateCommand())
                   {
                       string sql = " SELECT * " +
                                    " FROM persons.[user] ";
                       dbcmd.CommandText = sql;
                       using (IDataReader reader = dbcmd.ExecuteReader())
                       {
                           while (reader.Read())
                           {
                               string FirstName = (string)reader["UserName"];
                               namess = "user name is : " + FirstName;
                               //string LastName = (string)reader["LastName"];
                               //namess += "Name: " +FirstName + " " + LastName;
                           }
                           reader.Close();
                           dbcon.Close();
                       }
                   }
               }
               txts.Text = namess;
           }
           catch (Exception ex)
           {
               txts.Text = ex.Message;
           }
       }

HELP Please !
NewsSolved ! Pin
jojoba201125-Feb-13 21:04
memberjojoba201125-Feb-13 21:04 
Questionwanna Email Address Hossein Khalaj Pin
jojoba201118-Feb-13 1:04
memberjojoba201118-Feb-13 1:04 
AnswerRe: wanna Email Address Hossein Khalaj Pin
Pete O'Hanlon18-Feb-13 1:14
protectorPete O'Hanlon18-Feb-13 1:14 
QuestionUse MessageBox In the Mono for Android in the Visual Studio 2010 Pin
Rafael Soares de Almeida13-Feb-13 10:52
memberRafael Soares de Almeida13-Feb-13 10:52 
AnswerRe: Use MessageBox In the Mono for Android in the Visual Studio 2010 Pin
Prasad Khandekar2-May-13 20:35
professionalPrasad Khandekar2-May-13 20:35 
QuestionWhich tablet platform is most secure? Pin
oleg638-Feb-13 9:00
memberoleg638-Feb-13 9:00 
AnswerRe: Which tablet platform is most secure? Pin
Richard MacCutchan8-Feb-13 23:45
mvpRichard MacCutchan8-Feb-13 23:45 
GeneralRe: Which tablet platform is most secure? Pin
oleg6311-Feb-13 5:50
memberoleg6311-Feb-13 5:50 
GeneralRe: Which tablet platform is most secure? Pin
Richard MacCutchan11-Feb-13 6:06
mvpRichard MacCutchan11-Feb-13 6:06 
GeneralRe: Which tablet platform is most secure? Pin
oleg6311-Feb-13 6:09
memberoleg6311-Feb-13 6:09 
GeneralRe: Which tablet platform is most secure? Pin
Richard MacCutchan11-Feb-13 6:12
mvpRichard MacCutchan11-Feb-13 6:12 
GeneralRe: Which tablet platform is most secure? Pin
Richard MacCutchan11-Feb-13 6:13
mvpRichard MacCutchan11-Feb-13 6:13 
GeneralRe: Which tablet platform is most secure? Pin
oleg6311-Feb-13 6:49
memberoleg6311-Feb-13 6:49 
GeneralRe: Which tablet platform is most secure? Pin
Richard MacCutchan11-Feb-13 6:59
mvpRichard MacCutchan11-Feb-13 6:59 
GeneralRe: Which tablet platform is most secure? Pin
oleg6311-Feb-13 7:01
memberoleg6311-Feb-13 7:01 
Questionc# mobile tcp connection to printer Pin
kubi0813-Feb-13 23:56
memberkubi0813-Feb-13 23:56 
AnswerRe: c# mobile tcp connection to printer Pin
kubi0814-Feb-13 2:00
memberkubi0814-Feb-13 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 28 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid