Saturday , February 23 2019

Latest Posts

Android Transparent Background | Set Opacity in Android | Make android application with transparent background

Using this simple code you can make android application background transparent and in other words you can set opacity in background. Step 1 : In your manifest make that activity theme to Translucent- <activity android:name=“com.w2class.transparent.background.MainActivity” android:theme=“@android:style/Theme.Translucent” android:label=“@string/app_name” > Step 2 : Now your page will be 100% transparent, so if you need ...

Read More »


Using the below function you can check the city from which the user is visiting your website. function detect_city($ip) { $default = ‘UNKNOWN'; $curlopt_useragent = ‘Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)'; $url = ‘’ . urlencode($ip); $ch = curl_init(); $curl_opt = array( CURLOPT_FOLLOWLOCATION ...

Read More »