EduQuickHelp

Programming Assignment help, final year project help, Programming Homework help, If you need mini project or Final year project You can check my computer science projects.

Thursday, 18 July 2019


Dependency: (In gradle file)

    implementation 'com.google.code.gson:gson:2.8.5'
    implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
    implementation 'com.squareup.retrofit2:retrofit:2.6.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'

Manifest
  <uses-permission android:name="android.permission.INTERNET"/>

Api client java file.
class APIClient {

    private static Retrofit retrofit = null;

    static Retrofit getClient() {
//
//        HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
//        interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
//        OkHttpClientttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();


        retrofit = new Retrofit.Builder()
//                .baseUrl("https://reqres.in")
                .baseUrl("https://jsonplaceholder.typicode.com/")
                .addConverterFactory(GsonConverterFactory.create())
//                .client(client)
                .build();

        return retrofit;
    }

}












**********************************************************************

Api Interface
interface APIInterface {

    @GET("/comments")
    Call<ArrayList<Comments>> getComments();
}

***********************************************************************
Model class
public class Comments {

    private long postID;
    private long id;
    private String name;
    private String email;
    private String body;

    public long getPostID() { return postID; }
    public void setPostID(long value) { this.postID = value; }

    public long getID() { return id; }
    public void setID(long value) { this.id = value; }

    public String getName() { return name; }
    public void setName(String value) { this.name = value; }

    public String getEmail() { return email; }
    public void setEmail(String value) { this.email = value; }

    public String getBody() { return body; }
    public void setBody(String value) { this.body = value; }

}
*******************************************************************************


public class MainActivity extends AppCompatActivity {

    APIInterface apiInterface;
    RecyclerView mList;
    MyRecyclerAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mList = findViewById(R.id.list);

        apiInterface = APIClient.getClient().create(APIInterface.class);

        Call<ArrayList<Comments>> c = apiInterface.getComments();
        c.enqueue(new Callback<ArrayList<Comments>>() {
            @Override
            public void onResponse(Call<ArrayList<Comments>> call, Response<ArrayList<Comments>> response) {
                Log.e("data",response.body().toString());

                adapter = new MyRecyclerAdapter(MainActivity.this,response.body());
                mList.setAdapter(adapter);
            }

            @Override
            public void onFailure(Call<ArrayList<Comments>> call, Throwable t) {

            }
        });
    }
}

*******************************************************************************

Recycler adapter (in java file)
package com.example.retrofitex.Adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.retrofitex.R;
import com.example.retrofitex.pojo.Comments;

import java.util.ArrayList;

public class MyRecyclerAdapter extends RecyclerView.Adapter<MyRecyclerAdapter.ViewHolder> {

    LayoutInflater inflater;
    ArrayList<Comments> allItems;
    Context context;

    public MyRecyclerAdapter(Context context,ArrayList<Comments> comments){
            inflater = LayoutInflater.from(context);
            this.context = context;
            this.allItems = comments;

    }


    @NonNull
    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {

        View view = inflater.inflate(R.layout.adapter_view,viewGroup,false);
        return new ViewHolder(view);

    }

    @Override
    public void onBindViewHolder(@NonNull final ViewHolder holder,
                                 final int i) {

        Comments c = allItems.get(i);

        holder.mName.setText(c.getName()+"");

    }

    @Override
    public int getItemCount() {
        return allItems.size();
    }


    public class ViewHolder extends RecyclerView.ViewHolder{

        TextView mName;

        public ViewHolder(@NonNull View view) {
            super(view);

            this.mName = view.findViewById(R.id.name);
        }
    }
}

******************************************************************************
Adapter view ..
<?xml version="1.0" encoding="utf-8"?>
<
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   
xmlns:app="http://schemas.android.com/apk/res-auto"
   
xmlns:tools="http://schemas.android.com/tools"
   
android:layout_width="match_parent"
   
android:layout_height="wrap_content"
   
tools:context=".MainActivity">


    <
TextView
       
android:layout_width="match_parent"
       
android:layout_height="wrap_content"
       
android:id="@+id/name"
       
android:padding="10dp"

       
/>

</
LinearLayout>



*******************************************************************************
activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   
xmlns:app="http://schemas.android.com/apk/res-auto"
   
xmlns:tools="http://schemas.android.com/tools"
   
android:layout_width="match_parent"
   
android:layout_height="match_parent"
   
tools:context=".MainActivity">

    <
android.support.v7.widget.RecyclerView
       
android:layout_width="match_parent"
       
android:layout_height="match_parent"
       
tools:listitem="@layout/adapter_view"
       
android:orientation="vertical"
       
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
       
android:id="@+id/list"
       
/>

</
LinearLayout>





Exployer


Gradle Dependency :

  implementation 'com.google.android.exoplayer:exoplayer:2.8.4'


Manifest : 
Internet Permission

Layout file : 

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <com.google.android.exoplayer2.ui.SimpleExoPlayerView
        android:layout_width="match_parent"
        app:resize_mode="fill"
        android:layout_height="match_parent"
        android:id="@+id/view"
        />

</android.support.constraint.ConstraintLayout>


*****************************************************************************************
Main java file
*****************************************************************************************

import android.content.DialogInterface;
import android.net.Uri;
import android.os.Handler;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.google.android.exoplayer2.ExoPlayerFactory;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory;
import com.google.android.exoplayer2.extractor.ExtractorsFactory;
import com.google.android.exoplayer2.source.ExtractorMediaSource;
import com.google.android.exoplayer2.source.MediaSource;
import com.google.android.exoplayer2.trackselection.AdaptiveTrackSelection;
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
import com.google.android.exoplayer2.trackselection.TrackSelector;
import com.google.android.exoplayer2.ui.SimpleExoPlayerView;
import com.google.android.exoplayer2.upstream.BandwidthMeter;
import com.google.android.exoplayer2.upstream.DefaultBandwidthMeter;
import com.google.android.exoplayer2.upstream.DefaultHttpDataSource;
import com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory;


public class MainActivity extends AppCompatActivity {


    private SimpleExoPlayerView simpleExoPlayerView;
    private String hlsVideoUri = "https://www.radiantmediaplayer.com/media/bbb-360p.mp4";
    private SimpleExoPlayer player;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        simpleExoPlayerView = findViewById(R.id.view);


        try{

            BandwidthMeter bandwidthMeter = new DefaultBandwidthMeter();
            TrackSelector trackSelector = new DefaultTrackSelector(new AdaptiveTrackSelection.Factory(bandwidthMeter));
            player = ExoPlayerFactory.newSimpleInstance(this,trackSelector);
            Uri videoUri = Uri.parse(hlsVideoUri);
            DefaultHttpDataSourceFactory dataSourceFactory = new DefaultHttpDataSourceFactory("exoplayer_video");
            ExtractorsFactory extractorsFactory = new DefaultExtractorsFactory();
            MediaSource mediaSource = new ExtractorMediaSource(videoUri,dataSourceFactory,extractorsFactory,null,null);
            simpleExoPlayerView.setPlayer(player);
            player.prepare(mediaSource);
            player.setPlayWhenReady(true);

        }catch (Exception e){
            Log.e("error",Log.getStackTraceString(e));
        }

    }

}




Posted by AssignmentReportHubTeam at 11:12 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Saturday, 29 September 2018

Electricity bill management system project help for final year project






ELECTRICITY BILL MANAGEMENT SYSTEM


Are you looking for Electricity bill management system project help for final year project?

We are here to help you with this Contact us. 

The project Electricity bill payment is all about managing Electricity bill system, where users can pay an electric bill via credit card or debit card. 

This system is automated conventional for bill pay.

The system would be having 3 logins for customers, admin, and employee. Admin will manage all the registered customer's login detail their bill payment. Admin can view all details, they have authority to add and remove customers and employee from the account. 
admin can add an employee in the account and give some authority to them like an employee can see details of customers.

The employee will be divided into parts and per their job description.

The customers will be divided by ZipCode.

If in case Customers are unable to pay the bill by the due date then will charge the penalty for each subsequent day.


Detailed Description of Module of the project ( Electricity bill management system)


Welcome page: 

There will be the welcome page for the Electricity bill management system. And that will be for 3 seconds.

Login page for customers: 

After registration, customers can view their bill details, due date, penalty if any, The user will get only those privileges which are given to the customers for which one has registered. customers are able to make payment, they can save their credit card and debit card details for future use. They can check how many points they use on the current month or back month for the bill they can see the history of payment as well. 
Login page for Employee: 
If the user is an employee for Electricity bill management system then he can make changes to the data like adding units in the bill, used by a customer. They will work as per their job description.

Login page for Admin: 

This module can only have one account and this account has all the privileges which an employee account do not have. They verified all details only if they did not authorize to add an employee in the database then no one can able to login. 

Queries form:

In this module, the customer can ask any query and the query with details will be sent to the person who is managing queries and then employee or admin can give the answer for the query.
Admin can also see any query made by the customer and can also reply to the customer according to the query.
Help page:  
Under this module, there will be a help page for customers where customers can choose question as per their need and the question and their answer will be saved into the database and they will get an instant answer.

Check spend unit :
In this, any particular customer can be found using a unique meter id ( which is saved in the database by Admin) and the remaining balance of a customer can be checked.
customers can choose the range of months and year and day spend unit.

Penalty: 

By chance, if customer unable to pay electric bill by the due date then there would be penalty charge based on the per day rate multiplied by the number of days. The system must update this status time to time.
Once penalty would be paid system will get updated within a few minutes.


What is the main Motto behind Electricity bill management system project?

  • The system saves paper the need of maintaining paper electricity bill as all the electricity bill records are managed electronically Big no for Paper.
  • Admin doesn’t have to keep a manual track of the customers and employee. The system automatically calculates the penalty. Big time saver
  • customers don’t have to visit the office for bill payment. Hassle free
  • There is no need of delivery boy for delivering bills to customers place. Money Saver






Posted by AssignmentReportHubTeam at 14:45 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, 28 September 2018

Library management system

Library management system


pam demo


Recycle

explyer

Are you looking for Library management system for your final year project?

We are here to help you. You can contact us anytime.
Library management system is all about organizing, managing the library and library-related functions. It also maintains the database related book and students and staff. It deletes and adds the functions into the database according to books that have been retrieved or issued, with their respective dates. The main aim of this project is providing an easy to handle and automated library management system. 
The administrator can easily update, delete and insert data in the database with this project,  following are some of the features provided by this project:
  1. The welcome page will be there
  2. You can issue book's by the Online portal 
  3. You will get the option to search a book online.
  4. Login portal for a student.
  5. Login portal for staff members
  6. Login portal for administrator
  7. Colum  to request a new book

Main page for the student which has different buttons to navigate to pages containing the date of issue, date of return, fine charges etc.
Columns for teachers to get book issued if needs.
Requests column for teachers to ask for the introduction of new or essential books in the library.
Maintaining records of the librarian and other library staff.
There would be feedback page student and staff both can give feedback there.

Software requirement for library management system:

  1. Java language
  2. Net beans IDE 7.0.1 or eclipse neon 
  3. MySQL



Functional Requirement of library management system




On the other side, there are those that deal with all type of technical functioning of the system.

Library project meet each functional requirement. 

Welcome page:

It will show First welcome page for your Library management page

Login : 

After welcome page there will be login page, User will get to know that whether they have access to login or not, at the time of login, and they will get the option to reset password as well. If for any user these fields don’t match, then the user will not be allowed to use the system. For this, the user id is stored at the time of registration.After this authorization takes place, to know what all are the levels a particular user can access Library management system.


User Sign up Process: 

If someone wanted to access Library management system. If a User creates a new account. For this system must verify all the user’s information, if the information will be invalid or incorrect then the entered information will be removed from the database. 

Search operation:

This feature would be for all users, they can search book base on unique identities, the name of the book, author name. There must be some filters available to search with keywords. 


Issue and Return book:

This is for issuing and returning books and also maintaining the issue and return status in the database accordingly. Number updater for book features will be work fine.The Library managemnt system must be performing well with storing the issue data into the database. 


Adding New book in the library:

This feature is used to add new books to the library by the Administrator only. The system must enter and maintain the number of copies of each individual book in order by . 
And the administrator should allocate unique key to each individual book.
Penalty charge:

By chance, if user unable to return the book by return date then there would be penalty charge based on the per day rate multiplied by the number of days. The system must update this status time to time.
Once penalty would be paid system will get updated within a few minutes.
Add on features we can put on Online Library Management system.
The best add one features you can add in Library management system you can add notice board where any announcement related to college school and university or any education organization can put to show it to their users and they can take benefits, and you can give the option to staff and teacher to upload any lecture PDF , or slide so, Student can download it .
Notice Board system is the best Add-on option to Library management system
What is the Motto Behind Online Library Management System 
Today's time every college school, university, and any education organization need a library and in the era of internet, Online Management system is most wanted project.






Posted by AssignmentReportHubTeam at 11:57 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2019 (1)
    • ▼  July (1)
      • p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font:...
  • ►  2018 (2)
    • ►  September (2)
Awesome Inc. theme. Powered by Blogger.