Artem Moroz built the Presentation Remote Control app as an Ad Supported app. This SERVICE is provided by Artem Moroz at no cost and is intended for use as is.
This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
1. Download and install android platform tools: https://developer.android.com/studio/releases/platform-tools.html
2. Open command line and navigate to the folder where ADB is located, eg. cd /D d:\Android\sdk\platform-tools\
3. Type adb devices and press ENTER.
Many people face an issue with Android's WebView and transparent background. The problem is that if you need to make transparent background for the WebView, it is not easy to do at the first sight. If you try to use property android:background="@android:color/transparent", you will discover that it just don't work as expected. The background is still opaque. Using background color set explicitly as #ff000000 constant sometimes work and sometimes not.
Go to your project and open Android Manifest file. Lets assume that your manifest file contains an activity that has the details as follows
<activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <data android:scheme="http" android:host="example.com" /> </intent-filter> </activity>
Add the following lines as shown below.
<action android:name="android.intent.action.MAIN" /> <data android:scheme="http" android:host="example.com" />
Wonder why we did this? Well… It means that other (arbitrary) applications the user has on his phone can bind to your Service and call whatever method they please that is exposed through your AIDL interface.
In order to restore preferences upon application startup, you can use Android SharedPreferences class.
In onCreate metod call:
SharedPreferences sharedPref = getSharedPreferences("myprefs", 0);
// restore integer value, 1 - default
integer_value = sharedPref.getInt("integer_value", 1);
//same for the string value
string_value = sharedPref.getString("string_value", "this is a default value";
And in order to save values on application exit, write in onStop method:
SharedPreferences sharedPref= getSharedPreferences("myprefs", 0);
SharedPreferences.Editor editor= sharedPref.edit();
You can actually save other types of data also.