+ 6
Android Programming Thread
Hello SL Community, I'm a beginner in Android programming and would like to get helpful information from members good at Android Development in this amazing community. Anyone is free to ask anything about Android programming with hope to get feedback from the Pros. Thank you!
5 Réponses
+ 9
Thank you 💖
+ 5
I'm a novice at Android programming but have some fair knowledge of Java.
I must say that the two are just cousins rather than roommates.
Been struggling to implement my Raffle Drawer Java code to work in an Android App with no progress until today, thanks to the numerous forums on the web.
Java code👇
https://code.sololearn.com/c4K09JxS7ZF1/?ref=app
Android Code👇
public class MainActivity extends Activity
{
String memberNames[] = {"Tusiime Anitah",
"Tusiime Boub",
"Allen Pressy",
"Kwesiga Apollo",
"Kobusingye Nazra",
"Katongole Tadeo"
};
Button main2;
int RandomNumber2;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
main2 = (Button) findViewById(R.id.button2);
main2.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Perform action on click
Random rand2 = new Random();
RandomNumber2 = rand2.nextInt(memberNames.length);
}
}
Need help:
I now need to modify the code to allow user input for the memberNames array.
+ 1
Still waiting for assistance for user inputs.
+ 1
hi, i'm begginer in Android too.i learned java to some intermediate degree.i hope to get professional in Android coding soon! but i have little information in Android just like you!
+ 1
Nice to hear from you Yasin!