Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/suhailsallam/mysqlitedemo

Showing Item card, insertion, update, delete, displaying 1st record and the next records and the previous records using SQLite - version 1
https://github.com/suhailsallam/mysqlitedemo

Last synced: about 2 months ago
JSON representation

Showing Item card, insertion, update, delete, displaying 1st record and the next records and the previous records using SQLite - version 1

Awesome Lists containing this project

README

        

# MySQLiteDemo
Showing Item card, insertion, update, delete, displaying 1st record, next records and the previous records using SQLite - version 1

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
1. Make fork for this project into your repository
2. Get the URL of forked project in your repository.
3. Open Android Studio
4. Click File Menu
5. Select New
6. Select Project from version control see the below picture

![open new project from version control](https://user-images.githubusercontent.com/51886048/160371806-dcc36172-e1c8-4846-98c1-73e22fd2722a.jpg)

7. A dialog will appear, put the URL in point 2 in the field as appear in the below image

![URL of the project](https://user-images.githubusercontent.com/51886048/160372778-fbf56508-2af8-4e29-9152-d6eb3dbe5aec.jpg)

By this you have the project into your PC.

### Prerequisites
Android Studio

![Android Studio](https://user-images.githubusercontent.com/51886048/160373496-50cc80c8-db56-4174-8d94-f7aafee53210.jpg)

### Installing

Refer to Getting Started section

## Running the tests

Press play button in green next to Virtual or Phisical device name to run this project

![Run Project](https://user-images.githubusercontent.com/51886048/160374725-775271de-d7dd-4fa4-8625-60af84a33fc0.jpg)

you will get this screen

![Empty Screen](https://user-images.githubusercontent.com/51886048/160375296-bc6f21ee-a996-4868-b0c8-55a050880440.jpg)

There is no data available, you should feed data. pleas find below sample data for each record.
After feeding a record press button insert, then go and feed the next record and press insert and so on.
After feeding all data you can use buttons like show first record, show next record, and show previous record.

As for the update button you should reach the record you want to update by displaying it on the screen using show next record
or show previous record then amend what ever data you wich then press button update.

As for deleting data, this version will delete the last record only without reaching it, i.e. no need to display it on your screen.

#### Sample Data

Item Name
```
PVC pipe
```
Item Description
```
1/2" Channel
```
Item Quantity
```
12
```
Item Selling Price
```
9
```
---------------- end of record 1
Item Name
```
PVC pipe
```
Item Description
```
3/4" Channel
```
Item Quantity
```
36
```
Item Selling Price
```
12
```
---------------- end of record 2
Item Name
```
PVC pipe
```
Item Description
```
1" Channel
```
Item Quantity
```
12
```
Item Selling Price
```
15
```
---------------- end of record 3

### Break down into end to end tests

Implementing the above instructions exacly these are the test results you should expect.

![first record](https://user-images.githubusercontent.com/51886048/160377716-7e3e3066-defd-4025-bde5-dcdc13563e39.jpg)
![second record](https://user-images.githubusercontent.com/51886048/160379631-eaf30868-a2fd-401b-b3fb-c6babd84e1aa.jpg)
![third record](https://user-images.githubusercontent.com/51886048/160379711-0055aa20-24ed-4777-adc5-081c7303a8aa.jpg)

### And coding style tests

N/A

```
N/A
```

## Deployment

You can run this project using you phisical mobile so you will get it runing in

## Built With

* [Android Studio](https://developer.android.com/studio/) - the fastest tools for building apps on every type of Android device.
* [java](https://www.java.com/en/) - Programming Language
* [Suhail Sallam GitHub Repository](https://github.com/suhailSallam) - Internet repository and version control system.

## Contributing

Please read [CONTRIBUTING.md](https://https://gist.github.com/suhailSallam) for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning

We use [Suhail sallam](https://github.com/suhailSallam/) for versioning. For the versions available, see the [tags on this repository](https://github.com/suhailSallam/tags).

## Authors

* **Suhail Sallam** - *Initial work* - [Suhail Sallam](https://github.com/suhailSallam/)

See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

### Hat tip to anyone who's code was used or from I learned:

- [Mohammad Essa] (https://www.youtube.com/c/MuhammedEssa)
- [Edraak] (https://www.edraak.org/)
- [ahmed mohamady] (https://www.youtube.com/channel/UCh-Wyi7aWSkvGujc-5FKc4w)

### Before 2 months from now.
I did not know how to program using Android Studio, Today I am confedent I can do a lot as I am originally a programmer of procedureal languages.

### this project is bilingual, Arabic and English.
Also wait next version which will enhance the positining of buttons and add other screens.

![Bilingual](https://user-images.githubusercontent.com/51886048/160383330-4c11a516-90d8-41c7-8104-848775645c38.jpg)