Click here to Skip to main content
14,545,215 members
   

Android

 
GeneralRe: Problem in running Android app on IntelliJ IDEA Pin
Pouria Polouk10-May-20 3:08
MemberPouria Polouk10-May-20 3:08 
QuestionGoogle Play violation of metadata policy store listing? Pin
a-rehman14-May-20 9:11
Membera-rehman14-May-20 9:11 
QuestionRe: Google Play violation of metadata policy store listing? Pin
Richard MacCutchan4-May-20 9:17
mveRichard MacCutchan4-May-20 9:17 
AnswerRe: Google Play violation of metadata policy store listing? Pin
ZurdoDev4-May-20 9:21
mveZurdoDev4-May-20 9:21 
GeneralRe: Google Play violation of metadata policy store listing? Pin
David Crow4-May-20 10:24
MemberDavid Crow4-May-20 10:24 
QuestionDraw the coordinate axis Pin
Member 1274330030-Apr-20 11:21
MemberMember 1274330030-Apr-20 11:21 
AnswerRe: Draw the coordinate axis Pin
Eddy Vluggen30-Apr-20 12:26
professionalEddy Vluggen30-Apr-20 12:26 
QuestionXamarin - Android Connect to SQL Server via WIFI Pin
XLRATOR28-Apr-20 5:12
MemberXLRATOR28-Apr-20 5:12 
Hi everybody,
I am a newbie to XAMARIN and working in XAMARIN (VS-2019) on a sample android app to connect to an SQL Server 2014 database to perform CRUD actions using direct ADO SqlClient connection, and did all remote connection configurations on my server such as: Enabling TCP/IP - Setting Exception rules on the Firewall (1433 for TCP and 1434 for UDP - Program Exception for SQL Server, and Program exception for SQL Browser), so all fine.
Actually my application seemed to be working on the emulator on debug, but not when published on a real android device, my application just ignores my request and goes back to the Main activity.
Could someone help me out please so this is my code:

public void InsertUser()
{

    try
    {
        string dbstring = @"data source=xxx.xx.xx.xx,1433;initial catalog=MyDatabase;user id=XamarinUser;password=myPassword;Connect Timeout=10";
        SqlConnection Con = new SqlConnection(dbstring);
        if (Con.State == ConnectionState.Open) { Con.Close(); }
        Con.Open();
        SqlCommand cmd = new SqlCommand("INSERT INTO tblUSERS (Username, Password, Email, Active)  VALUES ('" + txtUserName.Text + "','" + password1.Text + "','" + txtEmail.Text + "',0);", Con);
        cmd.ExecuteNonQuery();
        Con.Close();
        Con = null;
        cmd = null;
        this.Dismiss();
    }
    catch (Exception)
    {

        throw new Exception("Application run into errors. Please contact us.");

    }

}


modified 28-Apr-20 12:34pm.

SuggestionRe: Xamarin - Android Connect to SQL Server via WIFI Pin
Richard Deeming5-May-20 2:10
mveRichard Deeming5-May-20 2:10 
SuggestionRe: Xamarin - Android Connect to SQL Server via WIFI Pin
Richard Deeming5-May-20 2:11
mveRichard Deeming5-May-20 2:11 
Questionandroid Pin
happy3224-Apr-20 17:20
Memberhappy3224-Apr-20 17:20 
AnswerRe: android Pin
Richard MacCutchan24-Apr-20 22:14
mveRichard MacCutchan24-Apr-20 22:14 
QuestionGeographical coordinates Pin
Member 1274330023-Apr-20 21:53
MemberMember 1274330023-Apr-20 21:53 
QuestionPorting a win32 app to android for sending serial data Pin
deian l.21-Apr-20 10:03
Memberdeian l.21-Apr-20 10:03 
QuestionProblem when create Android project in IntelliJ IDEA Pin
Pouria Polouk19-Apr-20 10:39
MemberPouria Polouk19-Apr-20 10:39 
AnswerRe: Problem when create Android project in IntelliJ IDEA Pin
karthi7220-Apr-20 0:15
Memberkarthi7220-Apr-20 0:15 
GeneralRe: Problem when create Android project in IntelliJ IDEA Pin
Pouria Polouk20-Apr-20 2:12
MemberPouria Polouk20-Apr-20 2:12 
GeneralRe: Problem when create Android project in IntelliJ IDEA Pin
karthi7221-Apr-20 2:27
Memberkarthi7221-Apr-20 2:27 
GeneralRe: Problem when create Android project in IntelliJ IDEA Pin
Pouria Polouk25-Apr-20 21:31
MemberPouria Polouk25-Apr-20 21:31 
GeneralRe: Problem when create Android project in IntelliJ IDEA Pin
karthi7226-Apr-20 21:37
Memberkarthi7226-Apr-20 21:37 
QuestionText box that take value from other device via Bluetooth Pin
Member 1480532117-Apr-20 9:11
MemberMember 1480532117-Apr-20 9:11 
AnswerRe: Text box that take value from other device via Bluetooth Pin
CHill6017-Apr-20 9:12
mveCHill6017-Apr-20 9:12 
SuggestionRe: Text box that take value from other device via Bluetooth Pin
David Crow17-Apr-20 10:14
MemberDavid Crow17-Apr-20 10:14 
QuestionMy new application with the help of codeproject.com community and their articles - Simple User Feedback Pin
Exoskeletor17-Mar-20 2:32
MemberExoskeletor17-Mar-20 2:32 
AnswerRe: My new application with the help of codeproject.com community and their articles - Simple User Feedback Pin
Afzaal Ahmad Zeeshan10-Apr-20 13:08
mvaAfzaal Ahmad Zeeshan10-Apr-20 13:08 

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.