Question

Hi i have a big problem,

How i can create a link? For my Andoird APP no HTML! Java !!

I have a vb.net Code its this funktion what i need:

label3.text = label1.text + Textbox1.text + label2.text

People insert a number to the edit text then press the People a button then Create a link whit the "html://"+ edittext + ".html" that is all what i need.

e.g. "httml://" +edittext + ".html"

I hope someone can help me.

Thank you

Was it helpful?

Solution

TextView url = (TextView) findViewById(R.id.url);
EditText input = (EditText) findViewById(R.id.input);
Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {
        url.setText("http://" + input.getText().toString() + ".html");
    }
}

Is that what you want?

OTHER TIPS

I guess you're working with Cordova. You could use <a href="#">link</a>, but it all depends on which framework you're working(eg. native JS: location.href, jQuery: changePage(), etc.).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top