Click here to Skip to main content
15,881,172 members
Home / Discussions / Android
   

Android

 
QuestionRe: Problem in running Android app on IntelliJ IDEA Pin
Richard MacCutchan6-May-20 23:03
mveRichard MacCutchan6-May-20 23:03 
AnswerRe: Problem in running Android app on IntelliJ IDEA Pin
Pouria Polouk7-May-20 8:23
Pouria Polouk7-May-20 8:23 
QuestionRe: Problem in running Android app on IntelliJ IDEA Pin
David Crow7-May-20 10:09
David Crow7-May-20 10:09 
AnswerRe: Problem in running Android app on IntelliJ IDEA Pin
Pouria Polouk7-May-20 18:16
Pouria Polouk7-May-20 18:16 
GeneralRe: Problem in running Android app on IntelliJ IDEA Pin
Richard MacCutchan7-May-20 21:18
mveRichard MacCutchan7-May-20 21:18 
GeneralRe: Problem in running Android app on IntelliJ IDEA Pin
Pouria Polouk8-May-20 0:03
Pouria Polouk8-May-20 0:03 
GeneralRe: Problem in running Android app on IntelliJ IDEA Pin
Richard MacCutchan8-May-20 0:09
mveRichard MacCutchan8-May-20 0:09 
GeneralRe: Problem in running Android app on IntelliJ IDEA Pin
Pouria Polouk8-May-20 0:42
Pouria Polouk8-May-20 0:42 
AnswerRe: Problem in running Android app on IntelliJ IDEA Pin
ZurdoDev8-May-20 1:32
professionalZurdoDev8-May-20 1:32 
GeneralRe: Problem in running Android app on IntelliJ IDEA Pin
Richard MacCutchan8-May-20 2:48
mveRichard MacCutchan8-May-20 2:48 
SuggestionRe: Problem in running Android app on IntelliJ IDEA Pin
David Crow8-May-20 9:13
David Crow8-May-20 9:13 
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 

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.