Click here to Skip to main content
15,861,168 members
Home / Discussions / Android
   

Android

 
GeneralRe: Problem in running Android app on IntelliJ IDEA Pin
Pouria Polouk10-May-20 3:08
Pouria Polouk10-May-20 3:08 
QuestionGoogle Play violation of metadata policy store listing? Pin
a-rehman14-May-20 9:11
a-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
professionalZurdoDev4-May-20 9:21 
GeneralRe: Google Play violation of metadata policy store listing? Pin
David Crow4-May-20 10:24
David Crow4-May-20 10:24 
QuestionDraw the coordinate axis Pin
Member 1274330030-Apr-20 11:21
Member 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
XLRATOR28-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:

C#
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
happy3224-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
Member 1274330023-Apr-20 21:53 
AnswerRe: Geographical coordinates Pin
Dani62-Sep-20 20:46
Dani62-Sep-20 20:46 
QuestionPorting a win32 app to android for sending serial data Pin
deian l.21-Apr-20 10:03
deian l.21-Apr-20 10:03 
QuestionProblem when create Android project in IntelliJ IDEA Pin
Pouria Polouk19-Apr-20 10:39
Pouria Polouk19-Apr-20 10:39 
AnswerRe: Problem when create Android project in IntelliJ IDEA Pin
karthi7220-Apr-20 0:15
karthi7220-Apr-20 0:15 
GeneralRe: Problem when create Android project in IntelliJ IDEA Pin
Pouria Polouk20-Apr-20 2:12
Pouria Polouk20-Apr-20 2:12 
GeneralRe: Problem when create Android project in IntelliJ IDEA Pin
karthi7221-Apr-20 2:27
karthi7221-Apr-20 2:27 
GeneralRe: Problem when create Android project in IntelliJ IDEA Pin
Pouria Polouk25-Apr-20 21:31
Pouria Polouk25-Apr-20 21:31 
GeneralRe: Problem when create Android project in IntelliJ IDEA Pin
karthi7226-Apr-20 21:37
karthi7226-Apr-20 21:37 
QuestionText box that take value from other device via Bluetooth Pin
Member 1480532117-Apr-20 9:11
Member 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
David 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
Exoskeletor17-Mar-20 2:32 

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.