This file contains hidden or 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 OnlinePdfViewActivity extends Activity { | |
public static final String KEY_PDF_URL = "KEY_PDF_URL"; | |
private static final String GOOGLE_API_URL = "https://docs.google.com/gview?embedded=true&url="; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
WebView view = new WebView(this); | |
view.getSettings().setJavaScriptEnabled(true); |
This file contains hidden or 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
<!--To fetch LogCat logs--> | |
<uses-permission android:name="android.permission.READ_LOGS" /> |
This file contains hidden or 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
# Commands for installing Android Stuiod on fresh Ubuntu | |
# Also covered creating of `devs` user group | |
# List groups for exisiting user to check existing groups | |
groups $LOGNAME | |
# Create new group 'devs' | |
sudo groupadd devs | |
# Add existing user to 'devs' group |
This file contains hidden or 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
# List flavor dependencies - ./gradlew :app:dependencies --configuration flavorCompileClasspath | |
./gradlew :app:dependencies --configuration debugCompileClasspath |