Sunday, November 2, 2014

android Apps for university result management

As a beginner, am throwing this out to the public for contribution to success
I am trying to develop android app that will manage students results in a university school:
The descriptions are as shown below:

STEP ONE
the first page of the app is a registration page where student will register her data before using the app:
main.xml code is giving below
<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
         android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:color="#fff000">

        <Button
            android:id="@+id/register"
            android:layout_width="wrap_content"
             android:layout_gravity="center_vertical|center_horizontal"
            android:layout_height="wrap_content"
            android:text="@string/register" />

        <Button
            android:id="@+id/btnmenu"
            android:layout_width="wrap_content"
             android:layout_gravity="center_vertical|center_horizontal"
            android:layout_height="wrap_content"
            android:text="@string/gotomenu" />
       
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical|center_horizontal"
            android:hint="@string/hints" />
        </LinearLayout>

the java code is as shown
package com.googleogah.myresults;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.Button;


public class EbsuActivity extends Activity {
    public boolean mbotton=true;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
         setButtonClickListener();       
    }
    private void setButtonClickListener() {
        Button ogah = (Button)findViewById(R.id.register);
        Button ogah1 = (Button)findViewById(R.id.btnmenu);
        ogah.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                if (mbotton) {
            startActivity(new Intent(EbsuActivity.this,
                    EbsuRegisterActivity.class));}             
            }          
        });
   
    ogah1.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            if (mbotton) {
                startActivity(new Intent(EbsuActivity.this,
                        EbsuMenuActivity.class));}
}               
    });
    }
}




here is the string.xml code
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="action_settings">action settings</string>
    <string    name="app_name">My Results</string>
    <string    name="splash">Splash Screen</string>
<string name="hints">HINTS:PLS REGISTER TO START USING THIS APP
       
        \n(If your have registered go to Menu)
        \nThe format should be like this:\nSchool: Ebonyi state University,Abakaliki
        \nFaculty:Facuty of Physical Science\nDept:Department of Computer Science
        \nName:Ogah ogbonnaya Sunday\nRegNo:EBSU/2005/56788</string>
this page works as expected. i will continue later with the pages that is difficult
thanks