I am trying to learn how to make a quiz to add to my app. I have done extensive searches and found that I will be using SQlite. Which I have seen how a database gets created from a couple of sites. But I was wondering if there was a better tutorial to this. I know that Appinventer has a quiz tutorial but putting blocks together does not show me the code snippets that I am using and therefor in the end I end up learning nothing but putting blocks together. Anyone have a tutorial on how to do a quiz basic question and answer and give a sco开发者_JS百科re at the end?
Or is there a way to see the underlying code to a project we build with appinventor?
after doing research I decided to go for basics as I get more skills. Here is what my research has yeilded so far. Am I going in the right direction?
int i = 0;
TextView tv;
String[] Food = {"Ice Cream", "Bacon", "Cheese", "Sandwich"};
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.arraylay);
tv = (TextView) findViewById(R.id.tvView);
Button bt1 = (Button) findViewById(R.id.bt1);
bt1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
if (i < Food.length){
tv.setText(Food[i]);
i++;
}
}
});
From the FAQ. Sadly no it does not generate source code.
(also real developers dont use app inventor)
精彩评论