EngineeringWay

Shaping the great minds.

Showing posts with label windows technology and Android. Show all posts
Showing posts with label windows technology and Android. Show all posts

Saturday, 3 June 2017

Send data to server database from Android Application. | server side connectivity in android | PHP | MySQL | Android | Free hosting for android

6/03/2017 10:03:00 pm
First of all, create account on www.hostinger.in. That provides free sql server database and phpMyAdmin. then after create new hosting account using your cpanel. after that click on "Manage" link, under the Hosting account tab. by clicking on that you will redirect to admin panel of your hosting plan. now on that page, you will find out MySQL database field under database category. click on that and create new database. now go to the admin panel of your hosting plan and click on phpMyAdmin field under database category and enter into phpMyAdmin.


www.hostinger.in

In PHP MyAdmin click on create new table and create database table.

Now download fileZilla from https://filezilla-project.org. and run fileZilla application. and do 'quick connect' using host,username and password. After that open notepad and do copy-paste code given in below link.

you will get information about servername, username, password and dbname from your dashboard of admin panel. after that save that notepad document as .php file and upload it on public_html folder from filezilla(Drag and drop).


FileZilla
Now server side work is done. you can test service by putting hosting IP on URL tab of browser.
now create new android app on android studio to send data on server. copy code given in below link.

and paste it on java file of android activity from where you want to send the data. 
i.e mainactivity.java. just modify link on httppost.

done.

phpMyAdmin
Android App

Saturday, 4 March 2017

Create and deploy Application using Google App Engine. -PAAS and IAAS

3/04/2017 03:28:00 am
Google App Engine is a cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers. Google app engine provide platform as a service and infrastructure as a service for developers. just create application in eclipse and deploy it on app engine.
so let's get started!

Requirements:
  1. JDK.
  2. Eclipse 3.7 + Google Plugin for Eclipse.
  3. Google App Engine Java SDK 1.6.3.1.
  4. Install Eclipse
Steps:
1. Install google plugins for Eclipse.


2. Create new application project in eclipse.
In toolbox of eclipse, click on google icon or GDT pulldown and select 'new web application project.
now deselect Use GWT checkbox under Google sdks field. and link your GAE Java SDK via the “configure SDK” link.


 now click on finish.

3. Hello World
Check the project directory, nothing is new in it. it is same as android studio and normal java web project structure. you can do java coding in java file under 'src' folder, that is highlighted in below picture. 



The new part is appengine-web.xml file which is under 'war' folder. Google App Engine need this to run and deploy the application.




4. Run Application locally.
To run application locally, right click on project and go to run as option and select web application. now open browser and open http://localhost:8888/  here you can see all your projects. click on project name to see servlet of it.



5. Deploy it to Google app engine
Register an account on https://appengine.google.com/, and create an application ID for your web application.In this demonstration, I created an application ID, named “helloworld-160509”, and put it in appengine-web.xml


Now click on Click on GAE deploy button on the toolbar.
Sign in with your Google account and click on the Deploy button.If everything is fine, the hello world web application will be deployed and provide you the URL. to Access application like http://helloworld-160509.appspot.com/

Saturday, 11 February 2017

How to Unlock bootloader of Android Phone - HTC

2/11/2017 10:40:00 am
If you are looking to root your Android phone then first thing you need to do is to unlock bootloader of  your android phone.by default, almost every handset company lock down the bootloader  to avoid tampering with system software that may permanently damage the phone if used incorrectly.

by default, almost every handset company lock down the bootloader  to avoid tampering with system software that may permanently damage the phone if used incorrectly.

For rooting it is necessary  to access those very same files which is why unlocking the bootloader is required for rooting most android phone.

Please keep this thing in mind that Unlocking the bootloader will eliminate your  phone warranty.

Disclaimer: Engineeringway is not responsible for any damages that may occur through following these steps. These steps are correct at the time of writing. Unlocking the bootloader is your responsibility and Engineeringway is not responsible in any way. Please back up the smart phone completely before performing any of these steps.

Unlocking steps of bootloader may varies of your phone according to your phone company. So here I’m going to demonstrate steps of HTC smart phones.

Requirements:
  1.  The HTC phone with locked bootloader.
  2. Access to a PC of phone using USB cable.
  3. Install the Android SDK in your PC. You can download it from here.
Steps:
  • Visit the www.htcdev.com and select Unlock Bootloader and click on get Started option.


Now select your device and click on Begin Unlock Bootloader button. it will redirect to the login page. so login into your account or create new account. After doing so it will show you some Legal terms,select all and click on proceed to unlock button.

  • Now power off your Android phone. after power off press volume down button and while pressing it, press power on button. by doing this your device will open in bootloader mode.


  • Now by using volume up and volume down button navigate 'fastboot' option. and use power button to select that option. after selecting it connect your phone with your PC using USB and keep proceeding through the HCTDev wizard until you get to step 8.

  • On your PC, open a command prompt in the folder where you installed the Android SDK and Fastboot window and type and press enter:

          fastboot oem get_identifier_token


  • If all goes properly the token ID will appear. This ID is unique for every device.

  • Now,You only need to select the letters as shown above.

  • Inside the HTC Developer unlock bootloader wizard paste the your ID where asked and then click Submit.

  • After a few moments you will get an email from HTC Dev website on your registered email ID.

  • The email will contain an attachment, a file called unlock_code.bin


  • Download this file from the email and save it to your computer in the same folder that you installed ADB and the Android SDK.

  • Once you have done that (remember the HTC phone is still connected to the PC via USB running Fastboot mode) type the following and press Enter when done.

  • fastboot flash unlocktoken Unlock_code.bin

  • After pressing Enter, on the HTC device itself you will see confirmation screen.

  • Tap Yes (use the Volume Up and Down key to select and Power to confirm).

  • Once the phone has booted up the bootloader on the HTC device will have been unlocked so you are now ready perform advanced tasks on the phone such as root the device or install a custom ROM.


Sunday, 8 January 2017

Virtual RAM - Create or increase virtual RAM and processing power.

1/08/2017 11:33:00 pm


Often a sudden performance-degradation on your computer may be attributed to the last-installed software, or an update to your operating system or drivers. There are many other factors which can cause a steep or a gradual decrease in your computer performance.

Here are some other factors that decrease your performance.

  1. Some software that loads at the startup. 
  2. Some security software. 
  3. Recently installed software update. 
  4. low size of O.S drive (C drive) 
  5. A lot of items starting at the startup 
  6. And the common problem 'The virus infection'. 
So in this blog I will tell you how you can create virtual memory or virtual RAM and increase your system performance and boost up PC speed.

So first of all go to the control panel in your system and in that open 'system' settings so you will get your system configuration window. you can open that window also by right clicking on 'My computer' and then selecting 'properties'. now in that at the left side you will see the 'Advanced system settings' option. click on that.
                                  

Now select the 'settings' option under the Performance option. after that select 'Advanced' tab. if your program runs slow then select 'programs' radio-button, but if your computer gets slow due to many installed programs then select ' background services' radio button. and now click on 'change'.


In that unchecked the 'Automatically manage paging file size for all drives'. now select the 'Custom size' radio button and define initial size and maximum size and click on 'set' now click on OK. save all the settings. remember that initial size and maximum size must be greater then Currently allocated size. system will ask to restart your system, you can restart the system or you can select 'restart later'.
                            
                   



now press windows+R button or 'Run' and type mscofig then hit 'OK'. it will lead you to the System configuration. in that select 'Boot' tab and further select 'Advanced options' and checked number of processors checkbox, now select maximum numbers of processor available for your system and click on OK. restart your system and you are done. 👍😊