This is Java source code for Android, providing you with two functions: to take a photo using camera and to pick an image from gallery.
In this example, user’s device is showing it’s current latitude and longitude every 5 seconds. Coordinates are displayed inside Android Toast.
To upload an image from Android device to online server using PHP, first we need to create a PHP script to handle “post” request and store the image to a folder. So write this simple script on your server:
Initially if we use a WebView in our Android app, if there is a link and we click it, an intent manager is being called and asking how do we want to open that link. But we can manage it to open that link inside current that WebView or regular web browser.
We can make an interesting search input by styling it with css, by adding search icon like what we see in this image:
In case we have a div element with fixed width, for example 100 pixels, and we only want to show an excerpt of text instead showing full text, let’s use this simple css trick.
I’ve created a kind of level and tile editor for making games with Phaser. Please watch my video tutorial about how to use it here:
Somebody asked me how to do an encryption just like if we type “a” it should return “d” (3 letters after “a” position).