Created
April 11, 2020 10:37
-
-
Save davidkathoh/c5c6c7efb3d24e299a5a6bbc5e139a35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
Hover.initialize(this);// Initialisation de Hover | |
final EditText numero = findViewById(R.id.edNumber); | |
final EditText montant = findViewById(R.id.edMontant); | |
Button envoi = findViewById(R.id.btnSend); | |
envoi.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
Intent i = new HoverParameters.Builder(getApplicationContext()) | |
.request("ID de votre action") | |
.extra("numero",numero.getText().toString()) | |
.extra("montant", montant.getText().toString()) | |
.buildIntent(); | |
startActivityForResult(i,3); | |
} | |
}); | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment