Posts

Splash Screen For Android Apps

Image
Tutorial on how to implement a splash screen in an Android app. Steps  Step 1 Create a new android app with an empty activity Step 2 Add another empty activity in the project and name it as "SplashScreen".  Generate the layout as well. Step 3 Go to AndroidManifest.xml and cut the XML tag <intent-filter> from the main activity to activity "SplashScreen". Whenever this app will start will will the the activity "SplashScreen" first Step 4 Right click on the folder "res" and from the context menu select new then select "Image asset". select an appropriate image which will appear on the splash screen In the "Activity_splash_screen.xml" add an "ImageView" control and select the uploaded image. Step 5 In the "SplashScreen.java" add the following code in the method "onCreate" the make the splash screen appear for 3 seconds Step 6

BMI calculator android app

Image
Simple user friendly BMI calculator android app with is compatible with most of  the android version, from API 17 to API 25. It is optimized to run on medium spec phone as well. Screen Shot Main screen Spinner to select measuring unit  Code to render Spinner String array in resource file values/strings.xml User input validation  Download Click here to download source code Please donate and support at https://www.paypal.me/Rajcoomar

Simple Flash Light Android App

Image
A simple flash light android apps with a nice and simple UX design to demonstrate the simplicity and user friendly of an android apps. This application is simple to use, no user information required and will turn on and off the flash of a smartphone with just the click of a button only. No ads and it is a full version apps. Screen Shot first add user permission in the file AndroidManifest.xml just above the application tag In the main layout add an ImageButton with a suitable photo. You have the option to customize the background as well in my case is black. After adding the ImageButton, the main layout should be like the following image: Now on the MainActivity java class you need to override the method Oncreate() Download Click here to download the source code of Klight apps Please donate and support at https://www.paypal.me/Rajcoomar

C# Windows Form : PetCare

Image
A desktop application using C# as technology. the application is titled as "PETCARE" a system that a pet shop or veterinary can use it to store basic information about the pet's owner, details about the pet and the purpose of the visit to the veterinary or pet shot. The system also contained a stock management module that is used to track pet food purchased by a particular customer Screen Shot You can login both as a staff or as the admin. the admin has the privilege to register new staff and view details about transaction and other sensitive information. The system encrypt user password using MD5 algorithm The home screen of the application You can either add a new pet with its owner details or add another pet belonging to the same owner. both can be done using the same form below. and each pet owner will be given a reference number. Veterinary can use the application to store information about treatment done for a particular pet Can t

Asp.net vb PlanetFood cloud computing

Image
This is a small ASP.net vb application of a ficticious comapny called PlanetFood specialized in seafood menu. i used bootstrap to implement the front end of the application as well as make it responsive. The application can be viwed on a smart phone, laptop and tablet as well. For the database I used SQl server 2012 Screen Shot System will automatically calculate the total price for each customer Responsive display for a tablet screen Responsive for smart phone screen Source Code sample Login sample code Private Sub login() Dim con As New SqlConnection(Session("constring")) Dim sql = "select * from user_tbl where username = @usernameT and user_password = @passwordT and employee_status = 'admin' and status = 'active'" Dim sqlCmd As New SqlCommand(sql, con) sqlCmd.Parameters.AddWithValue("@usernameT", txtbx_username.Text) sqlCm

Learn Java - Random class

Image
The java.util.Random class instance is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula.The algorithms implemented by class Random use a protected utility method that on each invocation can supply up to 32 pseudorandomly generated bits. Commonly used methods of Random class There is a list of commonly used Scanner class methods: Method Description protected int next(int bits) This method generates the next pseudorandom number. boolean nextBoolean() This method returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence. void nextBytes(byte[] bytes) This method generates random bytes and places them into a user-supplied byte array. double nextDouble() This method returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence. float nextFloat() This method return

learn java - Scanner class

Image
The java.util.Scanner class is one way to read data enter by the user, using an appropriate input device such as keyboard. The  Java Scanner  class breaks the input into tokens using a delimiter that is whitespace bydefault. It provides many methods to read and parse various primitive values.  Commonly used methods of Scanner class There is a list of commonly used Scanner class methods: Method Description public String next() it returns the next token from the scanner. public String nextLine() it moves the scanner position to the next line and returns the value as a string. public byte nextByte() it scans the next token as a byte. public short nextShort() it scans the next token as a short value. public int nextInt() it scans the next token as an int value. public long nextLong() it scans the next token as a long value. public float nextFloat() it scans the next token as a float value. public double nextDouble() it scans the next token as a double value. Screen s