How to setup server to serve fonts (Allow any file in from one server to another server “Access-Control-Allow-Origin”)

back to help index In order to display fonts right, browser must receive font files with correct http headers. If server does not set required headers, some browsers can report errors in console or completely fail to display fonts. Probably, your server is already configured, and you don’t need to change anything. If not, you […]

person shubham sharmaaccess_time March 27, 2017launch Read More

Fit image on top

 

person shubham sharmaaccess_time March 24, 2017launch Read More

Remove files and dir in PHP

 

person shubham sharmaaccess_time March 23, 2017launch Read More

Change query string in JAVA

person shubham sharmaaccess_time March 17, 2017launch Read More

How to solve java.lang.OutOfMemoryError trouble in Android

You can’t increase the heap size dynamically but you can request to use more by using. android:largeHeap=”true” in the manifest.xml,you can add in your manifest these lines it is working for some situations.

  Whether your application’s processes should be created with a large Dalvik heap. This applies to all processes created for the […]

person shubham sharmaaccess_time March 15, 2017launch Read More

Detect whether there is an Internet connection available on Android

The getActiveNetworkInfo() method of ConnectivityManager returns a NetworkInfo instance representing the first connected network interface it can find or null if none of the interfaces are connected. Checking if this method returns null should be enough to tell if an internet connection is available or not.

  You will also need:

  in […]

person shubham sharmaaccess_time March 11, 2017launch Read More

Android BroadcastReceiver

In this tutorial we’ll discuss and implement a very important component of the Android Framework named BroadcastReceiver. Android BroadcastReceiver Overview A BroadcastReceiver is a dormant component of Android that listens to system-wide broadcast events or intents. When any of these events occur it brings the application into action by either creating a status bar notification […]

person shubham sharmaaccess_time March 11, 2017launch Read More

Swipe screen left , right , top , bottom

File : AndroidMainifest.xml

File : src/SwipeScreenExample.java   Create touch event with the use of SimpleGestureFilter class object

File : src/SimpleGestureFilter.java

 

person shubham sharmaaccess_time March 7, 2017launch Read More

Create Media UI

media_controller.xml

activity_video_player.xml

VideoControllerView.java

VideoPlayerActivity.java

Download Media Controls set permission

person shubham sharmaaccess_time March 6, 2017launch Read More