I'm generating a click event in android and i used wrote the code in this way  public class LoginActivity extends AppCompatActivity {     Button btnLogin;     EditText inputEmail,inputPassword;     protected String enteredEmail;     String enteredPassword;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_login);        // inputEmail = (EditText) findViewById(R.id.email);        // inputPassword = (EditText) findViewById(R.id.password);          btnLogin.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 Intent i = new Intent(getApplicationContext(), HomeActivity.class);                 startActivity(i);             }});}   but getting the below error  TextInputLayout: EditText added is not a TextInputEditText. Please &gt; switch to using that class instead. 03-11 01:41:52.214 &gt; 21936-21936/com.example.smartlayer.myhive_app I/TextInputLayout: &gt; EditText added is not a TextInputEditText. Please switch to using that &gt; class instead. 03-11 01:41:52.294 &gt; 21936-21936/com.example.smartlayer.myhive_app D/AndroidRuntime: &gt; Shutting down VM 03-11 01:41:52.294 &gt; 21936-21936/com.example.smartlayer.myhive_app W/dalvikvm: threadid=1: &gt; thread exiting with uncaught exception (group=0xb4ae3ba8) 03-11 &gt; 01:41:52.334 21936-21936/com.example.smartlayer.myhive_app &gt; E/AndroidRuntime: FATAL EXCEPTION: main                                &gt; Process: com.example.smartlayer.myhive_app, PID: 21936                 &gt; java.lang.RuntimeException: Unable to start activity   How i solve this error ?
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
Can helium disappear from Earth? Could someone explain to me what the collision of two photons would look like? Will they behave like,   Electromagnetic waves: they will interfere with each other and keep their wave nature Particles: they will bounce like classical balls   I assume that energy of that system is too small to make creation of pairs possible. Let $K/F$ be a finite field extension and suppose that $F$ is infinite. Is it possible to have a nonzero polynomial $p \in K[x_1,...,x_n]$ that vanishes in $F^n$? Is the gravitational constant $G$ a fundamental universal constant? For what powers $k$ is the polynomial $n^k-1$ divisible by $(n-1)^2$? A finite $p$-group cannot be simple unless it has order $p$ I am to trying to prove this theorem: A finite $p$-group cannot be simple unless it has order $p$.  I have this:   Let $G = P$ and $|G|=p$; then there exists $N$, a normal subgroup of $G$ by Lagrange's theorem, such that $|N| \mid |G|$ so, $|N|= |e| = 1$ or $|N| =  p$  If $|N|=p$ so $N=G$.  But I don't know how I can prove the part in the case of $|N|=|e| = 1$  Is my start correct? What is the name of the horizontal division line? What is the name of the horizontal division line? Is there a name for it other than "division line? How to make files protected? How to make some file that contains crucial data protected? For instance, suppose I have some files that are important, is there any method or strategy to make these kind of file more protected on Ubuntu? I even want to make some files ask for a password whenever someone tries to open it. Does it affect the version of Ubuntu in terms of security policy? May I use any encryption algorithm externally? Regards. When is the Laplace transform of a function continuous? Are there any general conditions on a function so that its Laplace transform is continuous? e.g. what conditions on $f:\mathbb {R} \rightarrow \mathbb {R}$ guarantee that its Laplace transform  $$F\left(s\right)=\int_{0}^{\infty}f\left(t\right)e^{-st}dt$$ is continuous? It seems to me that if $f$ has compact support and is bounded, then it ought to be. The idea I have is that we get  $$\left|F\left(s'\right)-F\left(s\right)\right|\leq\int_{0}^{y}\left|f\left(t\right)\right|\left|e^{-st}\right|dt$$ by making $s'$ and $s$ close enough, it seems we can make the RHS arbitrarily small. I haven't been able to complete a proof. Additionally, can we change the assumptions? Are there more natural assumptions to get continuity? How is the amplitude of light related to number of photons? If you increase the number of photons leaving a light source you increase the brightness/intensity, so it could be said that intensity is directly proportional to number of photons. However intensity is directly proportional to amplitude squared, so this leads me to wonder that if you increase the amplitude of a light wave, are you just creating more photons rather than affecting each individual photon in some way? How to adjust the gap between figure and caption within the same subfloat My question is:  How to adjust the gap between figure and caption within the same subfloat  Not the gap between two subfloat.  For the following example:  \begin{figure}     \centering     \subfloat[A]{\includegraphics[ scale=0.5]{images/a.jpg}}     \vspace{-10pt}     \subfloat[B]{\includegraphics[scale=0.5]{images/b.jpg}}     \vspace{-10pt}     \caption{}\label{fig:online_test} \end{figure}   I got the following figure:    The sub-caption of (a) is too close to the sub-figure B. I hope the caption (a) to stay closer to sub-figure A. How can I adjust the space between the caption and figure within a subfloat?  Thank you all for helping me and I would prefer a solution for subfloat, instead of using other packages. But I would also appreciate a solution of using other packages.   I know my question looks similar to . But please make it clear. I'm asking for how to adjust the gap between figure and caption within a subfloat, not the gap between two subfloat. That is, the gap between the caption "a" and the figure "A"  Thank you. Do I need Intel Smart Response when installing Ubuntu? How do I install the latest version of gcc and g++?  I am using a variety of C++11 and C++1y features; which is why I need this. Just wondering, I'm about to buy it and it sounds awesome, but how many characters can I have in Skyrim on the PS3? Am I limited to just 1, or can I make more than one character at once? Custom entity datetime field in calendar Do not disturb mode - but allow certain apps AMD GPU Material in "material preview mode" and "rendered mode", is entirely gray as background. Only outline is displayed I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips? What are the maximum bag space and Pokemon storage? How many upgrades are needed to reach the limits? Let $F$ be a field and let $a \neq 0$ be a zero of the polynomial $a_0 + a_1x + . . . +a_nx^n$ in $F[x]$.  I want to show that $\frac{1}{a}$ is a zero of the polynomial $a_n + a_{n-1}x + . . . + a_0x^n$  How can I do this? Show that $\arctan\frac{1}{2}+\arctan\frac{1}{3}=\frac{\pi}{4}$ Show that $\arctan\frac{1}{2}+\arctan\frac{1}{3}=\frac{\pi}{4}$.   Attempt:  I've tried proving it but it's not equating to $\frac{\pi}{4}$. Please someone should help try to prove it. Is anything wrong with the equation? If there is, please let me know.