Click here to Skip to main content
15,867,453 members
Home / Discussions / Android
   

Android

 
QuestionRe: Query about swipe issue in expandable listview in android Pin
David Crow30-Oct-17 4:21
David Crow30-Oct-17 4:21 
Questionandroid speech to text application Pin
Oluawayemi26-Oct-17 15:29
Oluawayemi26-Oct-17 15:29 
AnswerRe: android speech to text application Pin
Richard MacCutchan26-Oct-17 22:10
mveRichard MacCutchan26-Oct-17 22:10 
GeneralRe: android speech to text application Pin
Oluawayemi30-Oct-17 15:16
Oluawayemi30-Oct-17 15:16 
QuestionWhy my Android application can't run. Pin
hmanhha20-Oct-17 6:57
hmanhha20-Oct-17 6:57 
AnswerRe: Why my Android application can't run. Pin
David Crow22-Oct-17 17:07
David Crow22-Oct-17 17:07 
SuggestionRe: Need help with optimisation Pin
David Crow6-Oct-17 3:13
David Crow6-Oct-17 3:13 
Questionhow to write POST methdod to PHP Pin
sadaiyappan_5-Oct-17 23:42
sadaiyappan_5-Oct-17 23:42 
Hi, here is my code:
Java
package com.example.work.try1;

import android.widget.Button;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.EditText;
import android.net.Uri;
import android.content.Intent;
import android.view.View;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;

public class Launch extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_launch);

        final View buttonS = findViewById(R.id.button);
        buttonS.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Uri uri = Uri.parse("https://www.navanithiastrolife.com");
                Intent intent = new Intent(Intent.ACTION_VIEW, uri);
                startActivity(intent);
            }
        });

        Button b = (Button) findViewById(R.id.button2);
        b.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                EditText e1 = (EditText) findViewById(R.id.editText);
                String username = e1.getText().toString();
                EditText e2 = (EditText) findViewById(R.id.editText3);
                String password = e2.getText().toString();

                OutputStream out = null;
                try {

                    URL url = new URL("http://iconinfo.tech/mob_app/");

                    HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();

                    urlConnection.connect();

                    urlConnection.setRequestMethod("POST");
                    urlConnection.setRequestProperty("username",username);
                    urlConnection.setRequestProperty("password",password);
                    urlConnection.setDoOutput(true);

                    urlConnection.disconnect();

                } catch (Exception e) {
                    System.out.println(e.getMessage());
                }
            }
        });
    }
}

QuestionRe: how to write POST methdod to PHP Pin
Richard MacCutchan6-Oct-17 1:11
mveRichard MacCutchan6-Oct-17 1:11 
AnswerRe: how to write POST methdod to PHP Pin
sadaiyappan_6-Oct-17 18:54
sadaiyappan_6-Oct-17 18:54 
GeneralRe: how to write POST methdod to PHP Pin
Richard MacCutchan6-Oct-17 22:02
mveRichard MacCutchan6-Oct-17 22:02 
GeneralRe: how to write POST methdod to PHP Pin
sadaiyappan_6-Oct-17 22:05
sadaiyappan_6-Oct-17 22:05 
GeneralRe: how to write POST methdod to PHP Pin
Richard MacCutchan6-Oct-17 22:13
mveRichard MacCutchan6-Oct-17 22:13 
QuestionRe: how to write POST methdod to PHP Pin
David Crow7-Oct-17 14:45
David Crow7-Oct-17 14:45 
QuestionShow a ProgressDialog inside a Fragment that is injected in a Tab Pin
Vimalsoft(Pty) Ltd30-Sep-17 5:54
professionalVimalsoft(Pty) Ltd30-Sep-17 5:54 
QuestionRe: Show a ProgressDialog inside a Fragment that is injected in a Tab Pin
David Crow2-Oct-17 3:09
David Crow2-Oct-17 3:09 
AnswerRe: Show a ProgressDialog inside a Fragment that is injected in a Tab Pin
Vimalsoft(Pty) Ltd2-Oct-17 7:11
professionalVimalsoft(Pty) Ltd2-Oct-17 7:11 
QuestionRe: Show a ProgressDialog inside a Fragment that is injected in a Tab Pin
David Crow2-Oct-17 7:14
David Crow2-Oct-17 7:14 
AnswerRe: Show a ProgressDialog inside a Fragment that is injected in a Tab Pin
Vimalsoft(Pty) Ltd2-Oct-17 7:25
professionalVimalsoft(Pty) Ltd2-Oct-17 7:25 
QuestionRe: Show a ProgressDialog inside a Fragment that is injected in a Tab Pin
David Crow2-Oct-17 7:30
David Crow2-Oct-17 7:30 
AnswerRe: Show a ProgressDialog inside a Fragment that is injected in a Tab Pin
Vimalsoft(Pty) Ltd2-Oct-17 7:37
professionalVimalsoft(Pty) Ltd2-Oct-17 7:37 
QuestionTiming and fragment creation Pin
David Crow29-Sep-17 7:44
David Crow29-Sep-17 7:44 
QuestionAndroid.Content.ActivityNotFoundException: Unable to find explicit activity class Pin
Vimalsoft(Pty) Ltd28-Sep-17 6:43
professionalVimalsoft(Pty) Ltd28-Sep-17 6:43 
SuggestionRe: Android.Content.ActivityNotFoundException: Unable to find explicit activity class Pin
Richard MacCutchan28-Sep-17 9:44
mveRichard MacCutchan28-Sep-17 9:44 
GeneralRe: Android.Content.ActivityNotFoundException: Unable to find explicit activity class Pin
Vimalsoft(Pty) Ltd28-Sep-17 22:44
professionalVimalsoft(Pty) Ltd28-Sep-17 22:44 

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.