This question already has answers here:
What is a NullPointerException, and how do I fix it?
(12 answers)
Closed 5 years ago.
I have developed android project and published to a google playstore.
In this app, for tab use, at one activity, calling frameLayout.setVisibility(View.INVISIBLE) for showing other layouts.
It is working perfectly on my android devices.
But when i check crashlytics, i can see applications crashed on that function.
I tried many google searches but i did not found the solution and did not fix yet.
Please help me on this issue.
Well, without any code snippets will be hard to realise, but since is a NPE error I am guessing that your layout is not a valid one or the fragment it was in, has been changed.
Related
This question already has answers here:
Latest update on enabling and disabling mobile data programmatically [duplicate]
(5 answers)
Closed 10 months ago.
I would like to know how to enable or disbale mobile data of the user's phone. I already have read a lot of things about that but nothing is working and all is very old.
I f you can help me i would really appreciate.
I think that this is a duplicate question here you have a link to an "updated" answer Latest update on enabling and disabling mobile data programmatically
This question already has answers here:
Android Studio Editor Font Sizing
(11 answers)
Closed 10 months ago.
I was working with my class 9 project of android studio and while editing the font size I mistakenly changed it to 222 instead of 22, and now i can't see anything properly. How can i make it normal again?
Well this is not the right way to ask a question on stackoverflow and you should read the guidelines before asking questions.
But for your issue go to the xml file you were working on, located in res-> layout.
Press (ctrl + F) on Windows and type "size". This will help you to find the font size easily in your xml file.
Once you have found it change it to 22dp or anything you need.
This question already has answers here:
How skip line in Intellij idea debug?
(7 answers)
Closed 3 years ago.
I got some method that i dont want to use while debugging the code in Android Studio. For example in Visual Studio you could just drag an arrow (from breakpoint) to wanted line and code between breakpoint and arrow will not be executed. Is there something similar in Android Studio or is there another way to do it?
Good morning Kacper,
I guess that you can find the solution to your question here: How skip line in Intellij idea debug?
As Android Studio is based in IntelliJ Community Edition, the debugger works in the same way.
In Intellij we don't have such functionality and maybe studio as well doesn't support it.
Instead you can put a if check for the method with boolean variable and insert breakpoint over here, as soon as the debugger reaches the if change the boolean to false.
Take a look at this
You put two separate Breakpoints and as soon as you reached one, you proceed standard execution which will eventually stop on the next Breakpoint.
This question already has answers here:
Android programmatically update application when a new version is available
(10 answers)
Closed 8 years ago.
Is it possible to programatically detect the completion of an update of an app from the play store; say, using a BroadcastReceiver, or anything for that matter?
You can define a receiver (in your Androidmanifest.xml or programmatically) with the action ACTION_PACKAGE_REPLACED. Here others "Action package" that can be usefull : http://developer.android.com/reference/android/content/Intent.html
Hope it helps.
This question already has answers here:
Is there any Android XML documentation? [closed]
(5 answers)
Closed 9 years ago.
I'm learning to develop applications for Android but I need to know the XML tags to get my programs to work. They are documented in the javadoc but I would prefer a quick reference.
EDIT: I was talking about the Android GUI XML-files, sorry that I didn't make this clear.
Yeah sure, just start reading the Developers Guide here
You may find helpful DroiDraw
You can browse the samples app there : http://developer.android.com/resources/samples/index.html
Or you can use the Android Eclipse Plugin that offers a graphical editor for the AndroidManifest.xml file. With this plugin, it's easy to import those samples into your workspace which can be handier to browse through. Just follow the explanations on the previous link.
HTH,
--
Hubert