This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://live.abcradiobd.fm:8282/ | |
http://live.canstream.co.uk:8000/betarbangla.mp3 | |
http://118.179.219.244:8000/ = dhaka fm | |
http://66.85.136.195:8019/ = radio circle | |
http://220.247.162.146:7170/ = radio today | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -xvf ~/Downloads/jdk-7u3-linux-i586.tar.gz | |
sudo mkdir -p /usr/lib/jvm/jdk1.7.0 | |
sudo mv jdk1.7.0_03/* /usr/lib/jvm/jdk1.7.0/ | |
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1 | |
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1 | |
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1 | |
After installation is complete, set environment variables as follows. | |
Edit the system path in file /etc/profile: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AnimatedActivity extends Activity | |
{ | |
@Override | |
protected void onCreate(Bundle savedInstanceState) | |
{ | |
super.onCreate(savedInstanceState); | |
//opening transition animations | |
overridePendingTransition(R.anim.activity_open_translate,R.anim.activity_close_scale); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extract the files you just downloaded in that directory: | |
$ sudo tar xvzf jdk-8u5-linux-i586.tar.gz -C /usr/java | |
***[if folder notfound (/usr/java) then Command: sudo mkdir /usr/java] | |
now to set your JAVA_HOME environment variable: | |
$ export JAVA_HOME=/usr/java/jdk1.8.0_05/ | |
$ sudo update-alternatives --install /usr/bin/java java ${JAVA_HOME%*/}/bin/java 20000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.mediaplayersurfaceswitch; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.media.MediaPlayer; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.SurfaceHolder; | |
import android.view.SurfaceView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
res/values/dimens.xml(default) | |
res/values-ldpi/dimens.xml (240x320 and nearer resolution) | |
res/values-mdpi/dimens.xml (320x480 and nearer resolution) | |
res/values-hdpi/dimens.xml (480x800, 540x960 and nearer resolution) | |
res/values-xhdpi/dimens.xml (720x1280 - Samsung S3, Micromax Canvas HD, etc) | |
res/values-xxhdpi/dimens.xml (1080x1920 - Samsung S4, HTC one, etc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2014 Antonio Leiva Gordillo. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.mediaplayersurfaceswitch; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.media.MediaPlayer; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.SurfaceHolder; | |
import android.view.SurfaceView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RatioViewPager extends ViewPager { | |
private float mRatio = 1f; | |
public RatioViewPager(Context context) { | |
super(context); | |
} | |
public RatioViewPager(Context context, AttributeSet attrs) { | |
super(context, attrs); |
OlderNewer