I change can you help me to see where is wrong because it's the same error log   enter code here   public class MainActivity extends Activity {      WebView mWebView; public ImageButton button01; public ImageButton button02; public class MainActivity extends Activity  {  WebView mWebView; public ImageButton button01;           `` public ImageButton button02;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(mylayout);     button01 = (ImageButton) findViewById(R.id.Button01);     button02 = (ImageButton) findViewById(R.id.Button02);`enter code here`     button01.setOnClickListener(new ImageButton.OnClickListener(){     public void onClick(View v){  jumpToLayout03();    Intent intent = new Intent();        intent.setClass(MainActivity.this, web.class);        startActivity(intent); }}      public void jumpToLayout03() {        setContentView(activity_main01);    }     });}} enter code here   I change can you help me to see where is wrong because it's the same error log
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?
Sqrt disappeared when exporting plot to PDF in version 10 How do I increase the render distance? I have created a simple model here   When rendering it the end of it is cut off   How can I get the camera to render a longer distance? How does delete[] "know" the size of the operand array? Foo* set = new Foo[100]; // ... delete [] set;   You don't pass the array's boundaries to delete[]. But where is that information stored? Is it standardised? I have a large file and I would like print from each sequential 50 lines , the 15th and 25th lines.  sed -n '15,25p' inputfile   How to modify this command to print only lines 15 and 25 and to loop over each 50 lines in the file. Why is $5^{n+1}+2\cdot 3^n+1$ a multiple of $8$ for every natural number $n$? I have to show by induction that this function is a multiple of 8. I have tried everything but I can only show that is multiple of 4, some hints? The function is $$5^{n+1}+2\cdot 3^n+1 \hspace{1cm}\forall n\ge 0$$, because it is a multiple of 8, you can say that$$5^{n+1}+2\cdot 3^n+1=8\cdot m \hspace{1cm}\forall m\in\mathbb{N}$$. Must one have a knowledge of fine art to be a Graphic Designer? Should all Graphic Designers know how to draw? I want to create a animation like those "spacetime deformation" ones, but I am stuck on creating "spacetime".  (a mesh/plane).  I created a plane, gave it a soft body, collisions, and a passive rigidbody.    A cube with a rigidbody and collisions will land and deform the mesh, but it snaps right back.  How can I make it so the cube lands, and then leaves the plane deformed, and the cube just sits there?  I googled around and searched this site, nothing comes up.  An image of what I want (after it settles):    The ball depressed the mesh, creating an indentation. MacTEX-2014, TeXShop 3.36.1 on Mac OS 10.9.5 -- when using hyperref I do not see the colored border that should appear around the hyperlinks in the pdf.  for example, when compiled with pdflatex, the code below should produce a pdf with a green border around the link on the right of "abc", but it does not. Any idea how to check where the problem is?  \documentclass{article} \usepackage{hyperref} \hypersetup{colorlinks=false,pdfborder=0 0 1,citebordercolor={0 1 0}} \begin{document}  abc \cite{123}  \begin{thebibliography}{99} \bibitem{123} efg \end{thebibliography} \end{document}    this is the list of files from the generated .log     File List   article.cls    2007/10/19 v1.4h Standard LaTeX document class   size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)   hyperref.sty    2012/11/06 v6.83m Hypertext links for LaTeX   hobsub-hyperref.sty    2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)   hobsub-generic.sty    2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)     hobsub.sty    2012/05/28 v1.13 Construct package bundles (HO)   infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)    ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)   ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)     ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)    intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)      ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)   etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)   kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)   kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)   pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)   pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)   bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)     bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)   uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)   letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)    hopatch.sty    2012/05/28 v1.2 Wrapper for package hooks (HO)   xcolor-patch.sty    2011/01/30 xcolor patch   atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)   atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)   refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)    hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)     keyval.sty    2014/05/08 v1.15 key=value parser (DPC)    ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional    auxhook.sty    2011/03/04 v1.3 Hooks for auxiliary files (HO)   kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)     pd1enc.def    2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)   hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive        url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.    hpdftex.def    2012/11/06 v6.83m Hyperref driver for pdfTeX   rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)    nameref.sty    2012/10/27 v2.43 Cross-referencing by name of section   gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO) Replace unknown reference (?) with the tag from \ref or \cite While working on a document, it would be helpful if instead of a ? for unresolved references or citations the tag used in the \ref{thisthings} or \cite{Bloke1978} could appear instead.  Is there a package that turns on this behaviour? Word or expression for "someone using fake kindness to hide something or his true nature" I upgraded from 17.04 to 17.10 on a Lenovo T540p which has broken two finger touchpad scrolling and right clicking Trackpad two finger scrolling and right-click issue with Ubuntu 17.10 (i386, 64bit, GNOME 3.26.1) on a Lenovo T540p (the model with a Intel Core i5-4210M Haswell CPU etc) I recently spilled water on my computers keyboard, and as a result the left shift key seems to be stuck in the on position. This means that the system always boots into safe boot unless I hold down the option key. I have managed to change my password to one which is all caps and once I login I use keyremap4mac but it is still very annoying. Is there anyway which I can remap the keyboard during boot? Possibly with a startup bash script or something similiar? If that is not possible is there any way to use a script to bypass safe boot? I was planning on installing a new bootloader anyway in order to dual-boot linux, I don't know if this will help. Advice is appreciated. I need a command that will wait for a process to start accepting requests on a specific port.    Is there something in linux that does that?  while (checkAlive -host localhost -port 13000 == false)   do some waiting  ... When is it correct to use "yourself" and "myself" (versus "you" and "me")? I'm confused by why people use the following:     It's up to yourself.   Rather than:     It's up to you.   Another example of this would be:     Please feel free to contact ourselves if you have any problems.   Rather than:     Please feel free to contact us if you have any problems.   Are both of these correct?  Is there any reason for using the former? Update on Ubuntu - coloured lines around everything Everyday I check for updates on Ubuntu 16.04 LTS. I updated to 4.4.0-65-generic today and now on everything I'm getting thick rainbow coloured lines around every dialog box in every program. My setup is pretty standard. Skylake i5-6500, Nvidia 950gtx. Does anyone know how to fix it? I'm interested in Gaussian blur layer that blurring all inside of some figure located on this layer.  I mean, blurred background of some exact area. And in case of I move this area, blurred image must be updated. If I move some object in background - blur must be updated. etc. What makes RSA secure by using prime numbers? I am just learning about the RSA algorithm. Looking at the first two steps:   Choose two distinct prime numbers $p$ and $q$. Compute $n = pq$.    I have some probably stupid questions:   Why do $p$ and $q$ have to be prime numbers? Why couldn't they be any integers or odd integers? Or does that break the whole algorithm? Because prime numbers are rare in comparison to regular integers, does restricting the algorithm to only prime numbers reduce security? It would seem easier to find the private key if an attacker knows it's only going to be some prime number? How to fix very slow Ubuntu booting? How do I cd into a directory in the home folder? Is time dilation an illusion? It is said that we can verify time dilation by flying a very accurate clock on a fast jet or spaceship and prove that it registers less time than the clocks on earth. However, the clocks on earth would be moving relative to the clock on the spaceship, and since time always dilates and never goes faster regardless of the direction of relative motion,  the clocks on earth should register less time than the clock on the spaceship.  Is this true? Whenever there is a fast-moving object such as a rocket do all clocks on earth really become slow?  If the rocket with the clock landed after moving at relativistic speed, would its clock and the earth's clock again show the same time since during its travel both appeared slow to each other?  Or is all this just an illusion, ie. the clocks just appear to be slow to each other but in actually run at normal speed, and neither is behind when the rocket actually lands?