DialogInterface.OnClickListener()
В списке сохраненных страниц технологии композита непонятные страницы. Сотни страниц.
И каким образом они монетизируются?
чем плохи бесплатные сервисы VPN
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:id="@+id/scrollView4"
android:layout_width="wrap_content"
android:layout_height="250dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toTopOf="@+id/donotshow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/linearLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/policy_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:text="@string/policy_disclosure_ru"
android:textColor="#000000"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
<CheckBox
android:id="@+id/donotshow"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="Больше не показывать"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:id="@+id/scrollView4"
android:layout_width="wrap_content"
android:layout_height="300dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/linearLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/data_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:text="@string/data_disclosure_ru"
android:textColor="#000000"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
public void policytextshow(){
LayoutInflater li = LayoutInflater.from(this);
View promptsView = li.inflate(R.layout.policy_popup, null);
//Make AlertDialog
AlertDialog.Builder mDialogBuilder = new AlertDialog.Builder(this);
//Настраиваем .xml для нашего AlertDialog:
mDialogBuilder.setView(promptsView);
//Настраиваем отображение поля для ввода текста в открытом диалоге:
//Настраиваем сообщение в диалоговом окне:
CheckBox hidebox = (CheckBox) promptsView.findViewById(R.id.donotshow);
mDialogBuilder
.setCancelable(false)
.setIcon(R.drawable.shield1)
.setTitle("Политика информации")
.setPositiveButton("OK",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int id) {
if (hidebox.isChecked()) {
SharedPreferences.Editor editor = mSettings.edit();
editor.putString(APP_PREFERENCES_SHOWPOLICY, "1");
editor.apply();
}
dialog.cancel();
// if policy alert dialog closed - work with contacts list
contacts();
}
});
//Создаем AlertDialog:
AlertDialog alertDialog = mDialogBuilder.create();
//и отображаем его:
alertDialog.show();
LayoutInflater li1 = LayoutInflater.from(this);
View promptsView1 = li1.inflate(R.layout.data_popup, null);
//Make AlertDialog
AlertDialog.Builder mDialogBuilder1 = new AlertDialog.Builder(this);
//Настраиваем .xml для нашего AlertDialog:
mDialogBuilder1.setView(promptsView1);
//Настраиваем отображение поля для ввода текста в открытом диалоге:
//Настраиваем сообщение в диалоговом окне:
mDialogBuilder1
.setCancelable(false)
.setIcon(R.drawable.shield1)
.setTitle("Используемые данные")
.setPositiveButton("OK",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog1,int id) {
if (hidebox.isChecked()) {
SharedPreferences.Editor editor = mSettings.edit();
editor.putString(APP_PREFERENCES_SHOWPOLICY, "1");
editor.apply();
}
dialog1.cancel();
}
});
//Создаем AlertDialog:
AlertDialog alertDialog1 = mDialogBuilder1.create();
//и отображаем его:
alertDialog1.show();
}
nm-connection-editor
sudo killall openvpn
public void editcontent(int position){
Intent intent = new Intent(mContext, EditUserItemAd.class);
intent.putExtra("adid", adid.get(position));
intent.putExtra("image1_url", mImages1.get(position));
intent.putExtra("image2_url", mImages2.get(position));
intent.putExtra("image3_url", mImages3.get(position));
intent.putExtra("short_name", shortNames.get(position));
intent.putExtra("full_name", fullNames.get(position));
intent.putExtra("ad_price", price.get(position));
intent.putExtra("ad_currency", currency.get(position));
intent.putExtra("ad_neworused", neworused.get(position));
intent.putExtra("ad_category1", adcat_ind1.get(position));
intent.putExtra("ad_category2", adcat_ind2.get(position));
intent.putExtra("imagename1", Imagename1.get(position));
intent.putExtra("imagename2", Imagename2.get(position));
intent.putExtra("imagename3", Imagename3.get(position));
intent.putExtra("adactivated", activated.get(position));
mContext.startActivity(intent);
}
private void getIncomingIntent() throws JSONException {
Log.d(TAG, "getIncomingIntent: checking for incoming intents.");
if(getIntent().hasExtra("image1_url") && getIntent().hasExtra("short_name")){
Log.d(TAG, "getIncomingIntent: found intent extras.");
String useradid = getIntent().getStringExtra("adid");
String image1Url = getIntent().getStringExtra("image1_url");
String image2Url = getIntent().getStringExtra("image2_url");
String image3Url = getIntent().getStringExtra("image3_url");
String shortName = getIntent().getStringExtra("short_name");
String fullName = getIntent().getStringExtra("full_name");
String price = getIntent().getStringExtra("ad_price");
String currency = getIntent().getStringExtra("ad_currency");
String condition = getIntent().getStringExtra("ad_neworused");
String category1 = getIntent().getStringExtra("ad_category1");
String category2 = getIntent().getStringExtra("ad_category2");
String imagename1 = getIntent().getStringExtra("imagename1");
String imagename2 = getIntent().getStringExtra("imagename2");
String imagename3 = getIntent().getStringExtra("imagename3");
String adactive = getIntent().getStringExtra("adactivated");
photopath0 = imagename1;
photopath1 = imagename2;
photopath2 = imagename3;
makeItemInterface(useradid, image1Url, image2Url, image3Url, shortName, fullName, price,currency,condition, category1,category2, adactive);
}
}
ip route
Просто скачать apk , нажать кнопку и все готово.
ip route
и ip xfrm policy
на сервереtraceroute google.com
traceroute 216.58.204.142
Хочу понять есть ли у мобильных приложений local sorage?и если есть , стирается он при закрытии приложения?
где хранить токен, который я буду отправлять
хочется ssh 192.168.1.xx
sudo subl /var/www/html/index.html
ctrl+S
переходит по моей ссылке вида: custom-protocol://mysite.com,