Android Programming Thread | SoloLearn: Learn to code for FREE!


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!

6/21/2017 1:01:17 PM

Boub Fixer🇺🇬

5 Answers

New Answer


Thank you 💖


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👇 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(; 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.


Still waiting for assistance for user inputs.


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!


Nice to hear from you Yasin!