Remove All Ads from XDA

building first app #HelpNeeded#

2 posts
Thanks Meter: 0
By gizmorepairs, Junior Member on 18th May 2019, 04:24 PM
Post Reply Email Thread
hi all hoping someone can help me, after trying to work on this for 2 days frustrated isnt the word lol.

this is my first attempt at creating an app and im trying to compile a feedback form i seen on youtube

instead of the two text inputs i have 13 and the design side of things has seemed to go fine but having trouble with the coding
this is as follows:

package com.example.bf1;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.renderscript.Sampler;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

protected void onCreate(Bundle savedInstanceState) {
final EditText edit1=(EditText) findViewById(;
final EditText edit2=(EditText) findViewById(;
EditText edit3=(EditText) findViewById(;
EditText edit4=(EditText) findViewById(;
EditText edit5=(EditText) findViewById(;
EditText edit6=(EditText) findViewById(;
EditText edit7=(EditText) findViewById(;
EditText edit8=(EditText) findViewById(;
EditText edit9=(EditText) findViewById(;
EditText edit10=(EditText) findViewById(;
EditText edit11=(EditText) findViewById(;
EditText edit12=(EditText) findViewById(;
EditText edit13=(EditText) findViewById(;
Button button=(Button) findViewById(;
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent i=new Intent(Intent.ACTION_SEND);
i.putExtra( String(original: ""));
i.putExtra(Intent.EXTRA_SUBJECT, "Feedback from app");
i.putExtra(Intent.EXTRA_TEXT, "Name"+edit1.getText()+"\n Message:"+edit2.getText());
try {
startActivity(Intent.createChooser(i. title: "Please select Email"));
catch (android.content.ActivityNotFoundException ex)
Toast.makeText(Context: MainActivity.this. "There are no email clients", Toast.LENGTH_SHORT);



if anybody could have a look at at this and maybe tell me where im going wrong id be very appreciative
hope someone can help and thanks in advance
31st May 2019, 11:52 AM |#2  
Junior Member
Thanks Meter: 0
Ya, I appreciate your attempt. Actually, why can't you find help from an expert ? or from a company who develop apps. If you need I would suggest < the Best android app development company which has offices in most of the places. For more information Contact 18042122260/+917593843002 / +61 449955626 or email: [email protected]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes