Click here to Skip to main content
14,934,216 members
Home / Discussions / Android
   

Android

 
QuestionRe: how to set color for android pie chart Pin
David Crow3-Nov-17 4:04
MemberDavid Crow3-Nov-17 4:04 
QuestionAndroid (C++) - Eclipse : make (e=2): The system cannot find the file specified Pin
ptr_Electron31-Oct-17 22:48
Memberptr_Electron31-Oct-17 22:48 
AnswerRe: Android (C++) - Eclipse : make (e=2): The system cannot find the file specified Pin
Richard MacCutchan1-Nov-17 0:28
mveRichard MacCutchan1-Nov-17 0:28 
AnswerRe: Android (C++) - Eclipse : make (e=2): The system cannot find the file specified Pin
David Crow1-Nov-17 3:41
MemberDavid Crow1-Nov-17 3:41 
QuestionAndroid Pin
Rishikesh Pal29-Oct-17 21:25
MemberRishikesh Pal29-Oct-17 21:25 
AnswerRe: Android Pin
Afzaal Ahmad Zeeshan29-Oct-17 22:19
mveAfzaal Ahmad Zeeshan29-Oct-17 22:19 
QuestionHow would I get a apk android app that I gotten from google play to show popups when it has a alert? Pin
Doggirl327-Oct-17 14:15
MemberDoggirl327-Oct-17 14:15 
QuestionRe: How would I get a apk android app that I gotten from google play to show popups when it has a alert? Pin
David Crow30-Oct-17 4:23
MemberDavid Crow30-Oct-17 4:23 
AnswerRe: How would I get a apk android app that I gotten from google play to show popups when it has a alert? Pin
Doggirl330-Oct-17 5:37
MemberDoggirl330-Oct-17 5:37 
SuggestionMessage Closed Pin
18-Dec-17 7:08
MemberMember 1358308318-Dec-17 7:08 
SuggestionMessage Closed Pin
18-Dec-17 7:10
MemberMember 1358308318-Dec-17 7:10 
SuggestionMessage Closed Pin
18-Dec-17 7:15
MemberMember 1358308318-Dec-17 7:15 
QuestionQuery about swipe issue in expandable listview in android Pin
Jinal Patel26-Oct-17 23:20
MemberJinal Patel26-Oct-17 23:20 
QuestionRe: Query about swipe issue in expandable listview in android Pin
David Crow30-Oct-17 4:21
MemberDavid Crow30-Oct-17 4:21 
Questionandroid speech to text application Pin
Oluawayemi26-Oct-17 15:29
MemberOluawayemi26-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
MemberOluawayemi30-Oct-17 15:16 
QuestionWhy my Android application can't run. Pin
hmanhha20-Oct-17 6:57
Memberhmanhha20-Oct-17 6:57 
AnswerRe: Why my Android application can't run. Pin
David Crow22-Oct-17 17:07
MemberDavid Crow22-Oct-17 17:07 
SuggestionRe: Need help with optimisation Pin
David Crow6-Oct-17 3:13
MemberDavid Crow6-Oct-17 3:13 
Questionhow to write POST methdod to PHP Pin
sadaiyappan_5-Oct-17 23:42
Membersadaiyappan_5-Oct-17 23:42 
Hi, here is my code:
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
Membersadaiyappan_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
Membersadaiyappan_6-Oct-17 22:05 

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.