Click here to Skip to main content
15,562,816 members
Home / Discussions / Android
   

Android

 
GeneralRe: How are chat application in Android used? Pin
Richard MacCutchan28-Sep-17 6:20
mveRichard MacCutchan28-Sep-17 6:20 
GeneralRe: How are chat application in Android used? Pin
Sienna Amelia3-Oct-17 3:07
Sienna Amelia3-Oct-17 3:07 
QuestionSQL server connection in Android Pin
Malashree Halade19-Sep-17 21:26
Malashree Halade19-Sep-17 21:26 
AnswerRe: SQL server connection in Android Pin
Richard MacCutchan19-Sep-17 23:11
mveRichard MacCutchan19-Sep-17 23:11 
AnswerRe: SQL server connection in Android Pin
Vimalsoft(Pty) Ltd25-Sep-17 5:12
professionalVimalsoft(Pty) Ltd25-Sep-17 5:12 
QuestionAccess MySql using php script from Android app.. Pin
Member 1341654718-Sep-17 17:03
Member 1341654718-Sep-17 17:03 
QuestionRe: Access MySql using php script from Android app.. Pin
David Crow19-Sep-17 10:47
David Crow19-Sep-17 10:47 
AnswerRe: Access MySql using php script from Android app.. Pin
Member 1341654720-Sep-17 17:03
Member 1341654720-Sep-17 17:03 
Sorry David, below is the full function. When I run the app on the phone it just closes down. (I reworked code and it doen't go to CATCH now.) If I comment out the
connection.connect();
line, it runs thru with no error. If I paste the url (http://xxx.xxx.xxx/myscript.php) into a browser it works and inserts a record into my table.
private void  Testphp2() {
    try {

        URL url;
        HttpURLConnection connection = null;
        url = new URL("http://xxx.xxx.xxx/myscript.php");
        connection = (HttpURLConnection) url.openConnection();
        connection.setReadTimeout(3000);
        connection.setConnectTimeout(3000);
        connection.setRequestMethod("POST");
        connection.setDoInput(true);
        Toast.makeText(getApplicationContext(), "About to try", Toast.LENGTH_LONG).show();
        connection.connect();
        Toast.makeText(getApplicationContext(), "Success", Toast.LENGTH_LONG).show();

    } catch (IOException e) {
        e.printStackTrace();
        Toast.makeText(getApplicationContext(), "error" , Toast.LENGTH_LONG).show();
    }
}

GeneralRe: Access MySql using php script from Android app.. Pin
Member 1341654720-Sep-17 20:24
Member 1341654720-Sep-17 20:24 
SuggestionRe: Access MySql using php script from Android app.. Pin
David Crow20-Sep-17 17:52
David Crow20-Sep-17 17:52 
GeneralRe: Access MySql using php script from Android app.. Pin
Member 1341654723-Sep-17 16:03
Member 1341654723-Sep-17 16:03 
QuestionFCM notification Pin
Malashree Halade9-Sep-17 4:26
Malashree Halade9-Sep-17 4:26 
AnswerRe: FCM notification Pin
David Crow9-Sep-17 5:55
David Crow9-Sep-17 5:55 
GeneralRe: FCM notification Pin
Malashree Halade9-Sep-17 6:38
Malashree Halade9-Sep-17 6:38 
GeneralRe: FCM notification Pin
Malashree Halade9-Sep-17 6:41
Malashree Halade9-Sep-17 6:41 
QuestionRe: FCM notification Pin
David Crow9-Sep-17 15:31
David Crow9-Sep-17 15:31 
Generalfor googple map serach location Pin
Member 133938216-Sep-17 3:23
Member 133938216-Sep-17 3:23 
QuestionRe: for googple map serach location Pin
David Crow6-Sep-17 4:14
David Crow6-Sep-17 4:14 
QuestionRe: for googple map serach location Pin
Richard MacCutchan6-Sep-17 4:55
mveRichard MacCutchan6-Sep-17 4:55 
QuestionRe: for googple map serach location Pin
thatraja6-Sep-17 5:33
professionalthatraja6-Sep-17 5:33 
QuestionIssue navigating to a Fragment Pin
Vimalsoft(Pty) Ltd3-Sep-17 11:56
professionalVimalsoft(Pty) Ltd3-Sep-17 11:56 
Question(View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd30-Aug-17 8:22
professionalVimalsoft(Pty) Ltd30-Aug-17 8:22 
SuggestionRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
David Crow30-Aug-17 11:35
David Crow30-Aug-17 11:35 
GeneralRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd30-Aug-17 12:08
professionalVimalsoft(Pty) Ltd30-Aug-17 12:08 
QuestionRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
David Crow31-Aug-17 4:56
David Crow31-Aug-17 4:56 

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.