<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=421109&amp;view=findpost&amp;p=3844014</guid>
        <pubDate>Mon, 25 Jan 2021 13:04:26 +0000</pubDate>
        <title>AutoCompleteTextView передать данные и сделать условие</title>
        <link>https://forum.sources.ru/index.php?showtopic=421109&amp;view=findpost&amp;p=3844014</link>
        <description><![CDATA[kopilov: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=421109&view=findpost&p=3843913'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Vashnaemnik &#064; <time class="tag-quote__quoted-time" datetime="2021-01-21T09:05:33+03:00">21.01.21, 06:05</time></span><div class='quote '>Неужели здесь нет опытных?</div></div><br>
Увы, они заглядывают сюда всё реже.<br>
<br>
А помогают обычно быстрее, если выложить код проекта полностью, который можно открыть в IDE (или собрать из терминала) и запустить, а не отрывок из Вам известного контекста.]]></description>
        <author>kopilov</author>
        <category>Java</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=421109&amp;view=findpost&amp;p=3843913</guid>
        <pubDate>Thu, 21 Jan 2021 06:05:33 +0000</pubDate>
        <title>AutoCompleteTextView передать данные и сделать условие</title>
        <link>https://forum.sources.ru/index.php?showtopic=421109&amp;view=findpost&amp;p=3843913</link>
        <description><![CDATA[Vashnaemnik: Все, проблему решил. Неужели здесь нет опытных? Я думал мне тут быстро помогут. 4 дня голову ломал, но сделал. Всем спасибо.]]></description>
        <author>Vashnaemnik</author>
        <category>Java</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=421109&amp;view=findpost&amp;p=3843756</guid>
        <pubDate>Mon, 18 Jan 2021 09:02:54 +0000</pubDate>
        <title>AutoCompleteTextView передать данные и сделать условие</title>
        <link>https://forum.sources.ru/index.php?showtopic=421109&amp;view=findpost&amp;p=3843756</link>
        <description><![CDATA[Vashnaemnik: Добрый день. Помогите разобраться. Уже два дня мучаюсь.<br>
В одном активити создаю AutoCompleteTextView, выбранный вариант отправляю в другой активити.<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Intent intent = new Intent(AfterRegister.this, Login.class);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;intent.putExtra(&quot;status&quot;, status);</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
Во втором активити мне нужно, в зависимости что выбрано, переключиться на последующее активити. Может переданные данные неправильно забираю?<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Intent intent = getIntent();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;String status = intent.getStringExtra(&quot;status&quot;);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;btnSignIn2.setOnClickListener(new View.OnClickListener() {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@Override</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;public void onClick(View v) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!TextUtils.isEmpty(spEmail2.getText().toString()) &amp;&amp; !TextUtils.isEmpty(spPass2.getText().toString())) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mAuth.signInWithEmailAndPassword(spEmail2.getText().toString(), spPass2.getText().toString()).addOnCompleteListener(new OnCompleteListener&#60;AuthResult&#62;() {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@Override</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;public void onComplete(@NonNull Task&#60;AuthResult&#62; task) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (task.isSuccessful()) {</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (status.equals(&quot;Родитель&quot;)) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Intent intent = new Intent(getApplicationContext(), ParentPage.class);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;startActivity(intent);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else if (status.equals(&quot;Воспитатель&quot;)) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Intent intent = new Intent(getApplicationContext(), EducatorPage.class);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;startActivity(intent);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (task.getException() instanceof FirebaseAuthInvalidUserException) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Toast.makeText(Login.this, &quot;Email не зарегистрирован&quot;, Toast.LENGTH_SHORT).show();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else if (task.getException() instanceof FirebaseAuthInvalidCredentialsException) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Toast.makeText(Login.this, &quot;Неверный пароль&quot;, Toast.LENGTH_SHORT).show();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Toast.makeText(Login.this, &quot;Заполните все поля&quot;, Toast.LENGTH_SHORT).show();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;});</div></ol></div></div></div></div><br>
помогите, что не так делаю]]></description>
        <author>Vashnaemnik</author>
        <category>Java</category>
      </item>
	
      </channel>
      </rss>
	