Click here to Skip to main content
11,570,759 members (46,830 online)
   

Mobile

 
QuestionPhoneGap Applications Pin
SRSHINDE12-Mar-13 22:06
memberSRSHINDE12-Mar-13 22:06 
QuestionPIC-32 UART Receives Only Ten Bytes Then No More Pin
C-P-User-38-Mar-13 11:16
memberC-P-User-38-Mar-13 11:16 
Questionhow the android mobile can fetch a voice from application on it and send it by calling Pin
saad20005-Mar-13 9:24
membersaad20005-Mar-13 9:24 
QuestionAPP Demographics Pin
mauricemcse1-Mar-13 7:28
membermauricemcse1-Mar-13 7:28 
Questionopen layout (Main.axml) in disigner in VS2010 Pin
jojoba201125-Feb-13 23:25
memberjojoba201125-Feb-13 23:25 
QuestionAndroid renderscript. Pin
BupeChombaDerrick25-Feb-13 3:48
memberBupeChombaDerrick25-Feb-13 3:48 
NewsSolved: Pin
BupeChombaDerrick26-Feb-13 22:26
memberBupeChombaDerrick26-Feb-13 22:26 
Questionandroid + C# + SQL Server 2008 Pin
jojoba201124-Feb-13 21:52
memberjojoba201124-Feb-13 21: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 20:04
memberjojoba201125-Feb-13 20:04 
Questionwanna Email Address Hossein Khalaj Pin
jojoba201118-Feb-13 0:04
memberjojoba201118-Feb-13 0:04 
AnswerRe: wanna Email Address Hossein Khalaj Pin
Pete O'Hanlon18-Feb-13 0:14
protectorPete O'Hanlon18-Feb-13 0:14 
QuestionUse MessageBox In the Mono for Android in the Visual Studio 2010 Pin
Rafael Soares de Almeida13-Feb-13 9:52
memberRafael Soares de Almeida13-Feb-13 9:52 
AnswerRe: Use MessageBox In the Mono for Android in the Visual Studio 2010 Pin
Prasad Khandekar2-May-13 19:35
professionalPrasad Khandekar2-May-13 19:35 
QuestionWhich tablet platform is most secure? Pin
oleg638-Feb-13 8:00
memberoleg638-Feb-13 8:00 
AnswerRe: Which tablet platform is most secure? Pin
Richard MacCutchan8-Feb-13 22:45
mvpRichard MacCutchan8-Feb-13 22:45 
GeneralRe: Which tablet platform is most secure? Pin
oleg6311-Feb-13 4:50
memberoleg6311-Feb-13 4:50 
GeneralRe: Which tablet platform is most secure? Pin
Richard MacCutchan11-Feb-13 5:06
mvpRichard MacCutchan11-Feb-13 5:06 
GeneralRe: Which tablet platform is most secure? Pin
oleg6311-Feb-13 5:09
memberoleg6311-Feb-13 5:09 
GeneralRe: Which tablet platform is most secure? Pin
Richard MacCutchan11-Feb-13 5:12
mvpRichard MacCutchan11-Feb-13 5:12 
GeneralRe: Which tablet platform is most secure? Pin
Richard MacCutchan11-Feb-13 5:13
mvpRichard MacCutchan11-Feb-13 5:13 
GeneralRe: Which tablet platform is most secure? Pin
oleg6311-Feb-13 5:49
memberoleg6311-Feb-13 5:49 
GeneralRe: Which tablet platform is most secure? Pin
Richard MacCutchan11-Feb-13 5:59
mvpRichard MacCutchan11-Feb-13 5:59 
GeneralRe: Which tablet platform is most secure? Pin
oleg6311-Feb-13 6:01
memberoleg6311-Feb-13 6:01 
Questionc# mobile tcp connection to printer Pin
kubi0813-Feb-13 22:56
memberkubi0813-Feb-13 22:56 
AnswerRe: c# mobile tcp connection to printer Pin
kubi0814-Feb-13 1:00
memberkubi0814-Feb-13 1:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.150624.2 | Last Updated 1 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid