This app works similar to speed dial that we used to have in ordinary phones. The app will ask for a favorite contact that you dial so frequently and keep it stored in the local mobile database. User is no longer need to search the number in contact list. He/she just required to open the app and just shake the phone, it will direct make call to your favorite contact. We can say it Shake to make call.
Here as a part of GUI we will be having a text box where user can enter phone number to save it to local database to make call. A button will be there to perform the action of saving phone to database. A complete list of various other components is mentioned below.
We will be requiring following components for this project.
|Horizontal Arrangement||To arrange the child components horizontally||Palette → Layout → Horizontal Arrangement|
|Label||To display a label||Palette → User Interface → Label|
|Text Box||To receive input from the user||Palette → User Interface → Text Box|
|Button||To confirm the user choice||Palette → User Interface → Button|
|Tiny Database||To store the phone number locally||Palette → Database → Tinydb|
|Phone call||To make phone call||Palette → Social → Phone Call|
|Notifier||To display any warning or alert notice||Palette → User Interface → Notifier|
|Accelerometer Sensor||To sense the change in position of device||Palette → Sensor → Accelerometer Sensor|
Now we will be heading towards the blocks editor to define the behaviors so let's discuss what is the actual functionality that we are expecting from our application?
So let's move on and add these two behaviors using the block editor. I hope you remember how to switch from designer to block editor. There is a button available right above the properties pane to switch between the designer and block editor.
I have already prepared the blocks for you. All you need to do is drag the relevant blocks from the left side palette and drop it on the viewer. Arrange the blocks the same way you are seeing in the image. I will explain you each, what it does and how it is called.
number. Make sense right!!
Savebutton is clicked, we pick the
PhoneNumberTextBox, call the
TinyDBand save the Text, into the DB with
When AccelerometerSensor1.Shaking, which means as soon as it detects any shaking in the accelerometer sensor it will first get the number from the Database. If it doesn't found anything with that particular name i.e.
numberis empty, Then we will show an Alert message Unable to make call. There is no number stored.
Now you have done with the block editor too. Next we will move to download and install the app on your phone to check how it is working.
To test the app you need to get it on your phone. First you have to download the application to your computer and then move it to your phone via Bluetooth or USB cable. I'll tell you how to download it.
I hope your application is working exactly the requirements you have given. Now depending upon your usability and customization you can change various things like image, sound and behavior also.
We have just created the prototype of the application with very basic functionality and what the user might be interested in? Now comes various cases which require serious care so as not to annoy the user and your app should be able to sustain. Consider the below cases :
These are some of the creepiest scenarios that might occur and the user wants your application should respond to the situation with intelligence like if he has given alphabets instead of digits in the number text box and he attempts to save that, he should be alerted that you have given wrong format of numbers so that he can correct that. Think over about all these scenarios, how you can integrate these into the application? Do ask me if you fail to accomplish any of the above cases.